First stab at getting namespaces working with PPH. This change will
[official-gcc.git] / gcc / configure
blobfe0630ffb52f6fa130bdd0e9469c8985db9cfaa7
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 thread_file
625 out_object_file
626 out_file
627 objc_boehm_gc
628 md_file
629 local_prefix
630 lang_tree_files
631 lang_specs_files
632 lang_opt_files
633 install
634 out_host_hook_obj
635 host_xm_defines
636 host_xm_include_list
637 host_xm_file_list
638 host_exeext
639 gcc_gxx_include_dir
640 gcc_config_arguments
641 float_h_file
642 extra_programs
643 extra_passes
644 extra_parts
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 slibdir
671 dollar
672 gcc_tooldir
673 enable_lto
674 MAINT
675 zlibinc
676 zlibdir
677 HOST_LIBS
679 libgcc_visibility
680 gcc_cv_readelf
681 gcc_cv_objdump
682 ORIGINAL_NM_FOR_TARGET
683 gcc_cv_nm
684 ORIGINAL_LD_FOR_TARGET
685 ORIGINAL_PLUGIN_LD_FOR_TARGET
686 gcc_cv_ld
687 ORIGINAL_AS_FOR_TARGET
688 gcc_cv_as
689 enable_fast_install
690 objdir
691 OTOOL64
692 OTOOL
693 LIPO
694 NMEDIT
695 DSYMUTIL
696 STRIP
697 OBJDUMP
698 ac_ct_DUMPBIN
699 DUMPBIN
701 FGREP
703 LIBTOOL
704 collect2
705 STMP_FIXINC
706 BUILD_LDFLAGS
707 BUILD_CFLAGS
708 CC_FOR_BUILD
709 inhibit_libc
710 SYSTEM_HEADER_DIR
712 CROSS
713 CATOBJEXT
714 GENCAT
715 INSTOBJEXT
716 DATADIRNAME
717 CATALOGS
718 POSUB
719 GMSGFMT
720 XGETTEXT
721 INCINTL
722 LIBINTL_DEP
723 LIBINTL
724 USE_NLS
725 extra_opt_files
726 extra_modes_file
727 gthread_flags
728 objext
729 manext
730 LIBICONV_DEP
731 LTLIBICONV
732 LIBICONV
733 LDEXP_LIB
734 GNAT_LIBEXC
735 COLLECT2_LIBS
736 CXXCPP
739 BISON
740 FLEX
741 GENERATED_MANPAGES
742 BUILD_INFO
743 MAKEINFO
744 have_mktemp_command
745 make_compare_target
746 INSTALL_DATA
747 INSTALL_PROGRAM
748 INSTALL
749 ranlib_flags
750 RANLIB
752 LN_S
754 SET_MAKE
755 REPORT_BUGS_TEXI
756 REPORT_BUGS_TO
757 PKGVERSION
758 CONFIGURE_SPECS
759 CROSS_SYSTEM_HEADER_DIR
760 TARGET_SYSTEM_ROOT_DEFINE
761 TARGET_SYSTEM_ROOT
762 SYSROOT_CFLAGS_FOR_TARGET
763 RUNTIME_ROOT_PREFIX_DEFINE
764 NATIVE_SYSTEM_HEADER_DIR
765 enable_shared
766 enable_fixed_point
767 enable_decimal_float
768 enable_multilib
769 ENABLE_BUILD_WITH_CXX
770 coverage_flags
771 valgrind_command
772 valgrind_path_defines
773 valgrind_path
774 TREEBROWSER
775 nocommon_flag
776 warn_cxxflags
777 warn_cflags
778 c_strict_warn
779 strict_warn
780 c_loose_warn
781 loose_warn
782 EGREP
783 GREP
785 OUTPUT_OPTION
786 NO_MINUS_C_MINUS_O
787 GNATMAKE
788 GNATBIND
789 ac_ct_CXX
790 CXXFLAGS
792 OBJEXT
793 EXEEXT
794 ac_ct_CC
795 CPPFLAGS
796 LDFLAGS
797 CFLAGS
799 GENINSRC
800 target_subdir
801 host_subdir
802 build_subdir
803 build_libsubdir
804 target_noncanonical
805 target_os
806 target_vendor
807 target_cpu
808 target
809 host_os
810 host_vendor
811 host_cpu
812 host
813 build_os
814 build_vendor
815 build_cpu
816 build
817 target_alias
818 host_alias
819 build_alias
820 LIBS
821 ECHO_T
822 ECHO_N
823 ECHO_C
824 DEFS
825 mandir
826 localedir
827 libdir
828 psdir
829 pdfdir
830 dvidir
831 htmldir
832 infodir
833 docdir
834 oldincludedir
835 includedir
836 localstatedir
837 sharedstatedir
838 sysconfdir
839 datadir
840 datarootdir
841 libexecdir
842 sbindir
843 bindir
844 program_transform_name
845 prefix
846 exec_prefix
847 PACKAGE_URL
848 PACKAGE_BUGREPORT
849 PACKAGE_STRING
850 PACKAGE_VERSION
851 PACKAGE_TARNAME
852 PACKAGE_NAME
853 PATH_SEPARATOR
854 SHELL'
855 ac_subst_files='option_includes
856 language_hooks'
857 ac_user_opts='
858 enable_option_checking
859 with_build_libsubdir
860 with_local_prefix
861 with_gxx_include_dir
862 with_cpp_install_dir
863 enable_generated_files_in_srcdir
864 with_gnu_ld
865 with_ld
866 with_demangler_in_ld
867 with_gnu_as
868 with_as
869 enable_largefile
870 enable_werror_always
871 enable_checking
872 enable_coverage
873 enable_gather_detailed_mem_stats
874 enable_build_with_cxx
875 with_stabs
876 enable_multilib
877 enable___cxa_atexit
878 enable_decimal_float
879 enable_fixed_point
880 enable_threads
881 enable_tls
882 enable_objc_gc
883 with_dwarf2
884 enable_shared
885 with_native_system_header_dir
886 with_runtime_root_prefix
887 with_build_sysroot
888 with_sysroot
889 with_specs
890 with_pkgversion
891 with_bugurl
892 enable_languages
893 with_multilib_list
894 enable_rpath
895 with_libiconv_prefix
896 enable_initfini_array
897 enable_sjlj_exceptions
898 with_system_libunwind
899 enable_secureplt
900 enable_leading_mingw64_underscores
901 enable_cld
902 enable_frame_pointer
903 enable_win32_registry
904 enable_static
905 with_pic
906 enable_fast_install
907 enable_libtool_lock
908 with_plugin_ld
909 enable_gnu_indirect_function
910 enable_comdat
911 enable_gnu_unique_object
912 enable_linker_build_id
913 with_long_double_128
914 with_gc
915 with_system_zlib
916 enable_maintainer_mode
917 enable_version_specific_runtime_libs
918 with_slibdir
919 enable_canonical_prefixes
920 enable_plugin
921 enable_libquadmath_support
923 ac_precious_vars='build_alias
924 host_alias
925 target_alias
927 CFLAGS
928 LDFLAGS
929 LIBS
930 CPPFLAGS
932 CXXFLAGS
935 CXXCPP
936 GMPLIBS
937 GMPINC
938 PPLLIBS
939 PPLINC
940 CLOOGLIBS
941 CLOOGINC'
944 # Initialize some variables set by options.
945 ac_init_help=
946 ac_init_version=false
947 ac_unrecognized_opts=
948 ac_unrecognized_sep=
949 # The variables have the same names as the options, with
950 # dashes changed to underlines.
951 cache_file=/dev/null
952 exec_prefix=NONE
953 no_create=
954 no_recursion=
955 prefix=NONE
956 program_prefix=NONE
957 program_suffix=NONE
958 program_transform_name=s,x,x,
959 silent=
960 site=
961 srcdir=
962 verbose=
963 x_includes=NONE
964 x_libraries=NONE
966 # Installation directory options.
967 # These are left unexpanded so users can "make install exec_prefix=/foo"
968 # and all the variables that are supposed to be based on exec_prefix
969 # by default will actually change.
970 # Use braces instead of parens because sh, perl, etc. also accept them.
971 # (The list follows the same order as the GNU Coding Standards.)
972 bindir='${exec_prefix}/bin'
973 sbindir='${exec_prefix}/sbin'
974 libexecdir='${exec_prefix}/libexec'
975 datarootdir='${prefix}/share'
976 datadir='${datarootdir}'
977 sysconfdir='${prefix}/etc'
978 sharedstatedir='${prefix}/com'
979 localstatedir='${prefix}/var'
980 includedir='${prefix}/include'
981 oldincludedir='/usr/include'
982 docdir='${datarootdir}/doc/${PACKAGE}'
983 infodir='${datarootdir}/info'
984 htmldir='${docdir}'
985 dvidir='${docdir}'
986 pdfdir='${docdir}'
987 psdir='${docdir}'
988 libdir='${exec_prefix}/lib'
989 localedir='${datarootdir}/locale'
990 mandir='${datarootdir}/man'
992 ac_prev=
993 ac_dashdash=
994 for ac_option
996 # If the previous option needs an argument, assign it.
997 if test -n "$ac_prev"; then
998 eval $ac_prev=\$ac_option
999 ac_prev=
1000 continue
1003 case $ac_option in
1004 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1005 *) ac_optarg=yes ;;
1006 esac
1008 # Accept the important Cygnus configure options, so we can diagnose typos.
1010 case $ac_dashdash$ac_option in
1012 ac_dashdash=yes ;;
1014 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1015 ac_prev=bindir ;;
1016 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1017 bindir=$ac_optarg ;;
1019 -build | --build | --buil | --bui | --bu)
1020 ac_prev=build_alias ;;
1021 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1022 build_alias=$ac_optarg ;;
1024 -cache-file | --cache-file | --cache-fil | --cache-fi \
1025 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1026 ac_prev=cache_file ;;
1027 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1028 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1029 cache_file=$ac_optarg ;;
1031 --config-cache | -C)
1032 cache_file=config.cache ;;
1034 -datadir | --datadir | --datadi | --datad)
1035 ac_prev=datadir ;;
1036 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1037 datadir=$ac_optarg ;;
1039 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1040 | --dataroo | --dataro | --datar)
1041 ac_prev=datarootdir ;;
1042 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1043 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1044 datarootdir=$ac_optarg ;;
1046 -disable-* | --disable-*)
1047 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050 as_fn_error "invalid feature name: $ac_useropt"
1051 ac_useropt_orig=$ac_useropt
1052 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053 case $ac_user_opts in
1055 "enable_$ac_useropt"
1056 "*) ;;
1057 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1058 ac_unrecognized_sep=', ';;
1059 esac
1060 eval enable_$ac_useropt=no ;;
1062 -docdir | --docdir | --docdi | --doc | --do)
1063 ac_prev=docdir ;;
1064 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1065 docdir=$ac_optarg ;;
1067 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1068 ac_prev=dvidir ;;
1069 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1070 dvidir=$ac_optarg ;;
1072 -enable-* | --enable-*)
1073 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076 as_fn_error "invalid feature name: $ac_useropt"
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1081 "enable_$ac_useropt"
1082 "*) ;;
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1085 esac
1086 eval enable_$ac_useropt=\$ac_optarg ;;
1088 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090 | --exec | --exe | --ex)
1091 ac_prev=exec_prefix ;;
1092 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094 | --exec=* | --exe=* | --ex=*)
1095 exec_prefix=$ac_optarg ;;
1097 -gas | --gas | --ga | --g)
1098 # Obsolete; use --with-gas.
1099 with_gas=yes ;;
1101 -help | --help | --hel | --he | -h)
1102 ac_init_help=long ;;
1103 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104 ac_init_help=recursive ;;
1105 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106 ac_init_help=short ;;
1108 -host | --host | --hos | --ho)
1109 ac_prev=host_alias ;;
1110 -host=* | --host=* | --hos=* | --ho=*)
1111 host_alias=$ac_optarg ;;
1113 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114 ac_prev=htmldir ;;
1115 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116 | --ht=*)
1117 htmldir=$ac_optarg ;;
1119 -includedir | --includedir | --includedi | --included | --include \
1120 | --includ | --inclu | --incl | --inc)
1121 ac_prev=includedir ;;
1122 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123 | --includ=* | --inclu=* | --incl=* | --inc=*)
1124 includedir=$ac_optarg ;;
1126 -infodir | --infodir | --infodi | --infod | --info | --inf)
1127 ac_prev=infodir ;;
1128 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129 infodir=$ac_optarg ;;
1131 -libdir | --libdir | --libdi | --libd)
1132 ac_prev=libdir ;;
1133 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134 libdir=$ac_optarg ;;
1136 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137 | --libexe | --libex | --libe)
1138 ac_prev=libexecdir ;;
1139 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140 | --libexe=* | --libex=* | --libe=*)
1141 libexecdir=$ac_optarg ;;
1143 -localedir | --localedir | --localedi | --localed | --locale)
1144 ac_prev=localedir ;;
1145 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146 localedir=$ac_optarg ;;
1148 -localstatedir | --localstatedir | --localstatedi | --localstated \
1149 | --localstate | --localstat | --localsta | --localst | --locals)
1150 ac_prev=localstatedir ;;
1151 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1152 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1153 localstatedir=$ac_optarg ;;
1155 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156 ac_prev=mandir ;;
1157 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158 mandir=$ac_optarg ;;
1160 -nfp | --nfp | --nf)
1161 # Obsolete; use --without-fp.
1162 with_fp=no ;;
1164 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165 | --no-cr | --no-c | -n)
1166 no_create=yes ;;
1168 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170 no_recursion=yes ;;
1172 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174 | --oldin | --oldi | --old | --ol | --o)
1175 ac_prev=oldincludedir ;;
1176 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179 oldincludedir=$ac_optarg ;;
1181 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182 ac_prev=prefix ;;
1183 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184 prefix=$ac_optarg ;;
1186 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187 | --program-pre | --program-pr | --program-p)
1188 ac_prev=program_prefix ;;
1189 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191 program_prefix=$ac_optarg ;;
1193 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194 | --program-suf | --program-su | --program-s)
1195 ac_prev=program_suffix ;;
1196 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198 program_suffix=$ac_optarg ;;
1200 -program-transform-name | --program-transform-name \
1201 | --program-transform-nam | --program-transform-na \
1202 | --program-transform-n | --program-transform- \
1203 | --program-transform | --program-transfor \
1204 | --program-transfo | --program-transf \
1205 | --program-trans | --program-tran \
1206 | --progr-tra | --program-tr | --program-t)
1207 ac_prev=program_transform_name ;;
1208 -program-transform-name=* | --program-transform-name=* \
1209 | --program-transform-nam=* | --program-transform-na=* \
1210 | --program-transform-n=* | --program-transform-=* \
1211 | --program-transform=* | --program-transfor=* \
1212 | --program-transfo=* | --program-transf=* \
1213 | --program-trans=* | --program-tran=* \
1214 | --progr-tra=* | --program-tr=* | --program-t=*)
1215 program_transform_name=$ac_optarg ;;
1217 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218 ac_prev=pdfdir ;;
1219 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220 pdfdir=$ac_optarg ;;
1222 -psdir | --psdir | --psdi | --psd | --ps)
1223 ac_prev=psdir ;;
1224 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225 psdir=$ac_optarg ;;
1227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228 | -silent | --silent | --silen | --sile | --sil)
1229 silent=yes ;;
1231 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232 ac_prev=sbindir ;;
1233 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234 | --sbi=* | --sb=*)
1235 sbindir=$ac_optarg ;;
1237 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239 | --sharedst | --shareds | --shared | --share | --shar \
1240 | --sha | --sh)
1241 ac_prev=sharedstatedir ;;
1242 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245 | --sha=* | --sh=*)
1246 sharedstatedir=$ac_optarg ;;
1248 -site | --site | --sit)
1249 ac_prev=site ;;
1250 -site=* | --site=* | --sit=*)
1251 site=$ac_optarg ;;
1253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254 ac_prev=srcdir ;;
1255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256 srcdir=$ac_optarg ;;
1258 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259 | --syscon | --sysco | --sysc | --sys | --sy)
1260 ac_prev=sysconfdir ;;
1261 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263 sysconfdir=$ac_optarg ;;
1265 -target | --target | --targe | --targ | --tar | --ta | --t)
1266 ac_prev=target_alias ;;
1267 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268 target_alias=$ac_optarg ;;
1270 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271 verbose=yes ;;
1273 -version | --version | --versio | --versi | --vers | -V)
1274 ac_init_version=: ;;
1276 -with-* | --with-*)
1277 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280 as_fn_error "invalid package name: $ac_useropt"
1281 ac_useropt_orig=$ac_useropt
1282 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283 case $ac_user_opts in
1285 "with_$ac_useropt"
1286 "*) ;;
1287 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1288 ac_unrecognized_sep=', ';;
1289 esac
1290 eval with_$ac_useropt=\$ac_optarg ;;
1292 -without-* | --without-*)
1293 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296 as_fn_error "invalid package name: $ac_useropt"
1297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1301 "with_$ac_useropt"
1302 "*) ;;
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1305 esac
1306 eval with_$ac_useropt=no ;;
1308 --x)
1309 # Obsolete; use --with-x.
1310 with_x=yes ;;
1312 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313 | --x-incl | --x-inc | --x-in | --x-i)
1314 ac_prev=x_includes ;;
1315 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1317 x_includes=$ac_optarg ;;
1319 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321 ac_prev=x_libraries ;;
1322 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1324 x_libraries=$ac_optarg ;;
1326 -*) as_fn_error "unrecognized option: \`$ac_option'
1327 Try \`$0 --help' for more information."
1330 *=*)
1331 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332 # Reject names that are not valid shell variable names.
1333 case $ac_envvar in #(
1334 '' | [0-9]* | *[!_$as_cr_alnum]* )
1335 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1336 esac
1337 eval $ac_envvar=\$ac_optarg
1338 export $ac_envvar ;;
1341 # FIXME: should be removed in autoconf 3.0.
1342 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1344 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1348 esac
1349 done
1351 if test -n "$ac_prev"; then
1352 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1353 as_fn_error "missing argument to $ac_option"
1356 if test -n "$ac_unrecognized_opts"; then
1357 case $enable_option_checking in
1358 no) ;;
1359 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1360 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1361 esac
1364 # Check all directory arguments for consistency.
1365 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366 datadir sysconfdir sharedstatedir localstatedir includedir \
1367 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368 libdir localedir mandir
1370 eval ac_val=\$$ac_var
1371 # Remove trailing slashes.
1372 case $ac_val in
1373 */ )
1374 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1375 eval $ac_var=\$ac_val;;
1376 esac
1377 # Be sure to have absolute directory names.
1378 case $ac_val in
1379 [\\/$]* | ?:[\\/]* ) continue;;
1380 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1381 esac
1382 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1383 done
1385 # There might be people who depend on the old broken behavior: `$host'
1386 # used to hold the argument of --host etc.
1387 # FIXME: To remove some day.
1388 build=$build_alias
1389 host=$host_alias
1390 target=$target_alias
1392 # FIXME: To remove some day.
1393 if test "x$host_alias" != x; then
1394 if test "x$build_alias" = x; then
1395 cross_compiling=maybe
1396 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1397 If a cross compiler is detected then cross compile mode will be used." >&2
1398 elif test "x$build_alias" != "x$host_alias"; then
1399 cross_compiling=yes
1403 ac_tool_prefix=
1404 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1406 test "$silent" = yes && exec 6>/dev/null
1409 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410 ac_ls_di=`ls -di .` &&
1411 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1412 as_fn_error "working directory cannot be determined"
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414 as_fn_error "pwd does not report name of working directory"
1417 # Find the source files, if location was not specified.
1418 if test -z "$srcdir"; then
1419 ac_srcdir_defaulted=yes
1420 # Try the directory containing this script, then the parent directory.
1421 ac_confdir=`$as_dirname -- "$as_myself" ||
1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423 X"$as_myself" : 'X\(//\)[^/]' \| \
1424 X"$as_myself" : 'X\(//\)$' \| \
1425 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426 $as_echo X"$as_myself" |
1427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1428 s//\1/
1431 /^X\(\/\/\)[^/].*/{
1432 s//\1/
1435 /^X\(\/\/\)$/{
1436 s//\1/
1439 /^X\(\/\).*/{
1440 s//\1/
1443 s/.*/./; q'`
1444 srcdir=$ac_confdir
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1446 srcdir=..
1448 else
1449 ac_srcdir_defaulted=no
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1453 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1455 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1456 ac_abs_confdir=`(
1457 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1458 pwd)`
1459 # When building in place, set srcdir=.
1460 if test "$ac_abs_confdir" = "$ac_pwd"; then
1461 srcdir=.
1463 # Remove unnecessary trailing slashes from srcdir.
1464 # Double slashes in file names in object file debugging info
1465 # mess up M-x gdb in Emacs.
1466 case $srcdir in
1467 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468 esac
1469 for ac_var in $ac_precious_vars; do
1470 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_env_${ac_var}_value=\$${ac_var}
1472 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1474 done
1477 # Report the --help message.
1479 if test "$ac_init_help" = "long"; then
1480 # Omit some internal or obsolete options to make the list less imposing.
1481 # This message is too long to be a string in the A/UX 3.1 sh.
1482 cat <<_ACEOF
1483 \`configure' configures this package to adapt to many kinds of systems.
1485 Usage: $0 [OPTION]... [VAR=VALUE]...
1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488 VAR=VALUE. See below for descriptions of some of the useful variables.
1490 Defaults for the options are specified in brackets.
1492 Configuration:
1493 -h, --help display this help and exit
1494 --help=short display options specific to this package
1495 --help=recursive display the short help of all the included packages
1496 -V, --version display version information and exit
1497 -q, --quiet, --silent do not print \`checking...' messages
1498 --cache-file=FILE cache test results in FILE [disabled]
1499 -C, --config-cache alias for \`--cache-file=config.cache'
1500 -n, --no-create do not create output files
1501 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1503 Installation directories:
1504 --prefix=PREFIX install architecture-independent files in PREFIX
1505 [$ac_default_prefix]
1506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1507 [PREFIX]
1509 By default, \`make install' will install all the files in
1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512 for instance \`--prefix=\$HOME'.
1514 For better control, use the options below.
1516 Fine tuning of the installation directories:
1517 --bindir=DIR user executables [EPREFIX/bin]
1518 --sbindir=DIR system admin executables [EPREFIX/sbin]
1519 --libexecdir=DIR program executables [EPREFIX/libexec]
1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1523 --libdir=DIR object code libraries [EPREFIX/lib]
1524 --includedir=DIR C header files [PREFIX/include]
1525 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1528 --infodir=DIR info documentation [DATAROOTDIR/info]
1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1530 --mandir=DIR man documentation [DATAROOTDIR/man]
1531 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1532 --htmldir=DIR html documentation [DOCDIR]
1533 --dvidir=DIR dvi documentation [DOCDIR]
1534 --pdfdir=DIR pdf documentation [DOCDIR]
1535 --psdir=DIR ps documentation [DOCDIR]
1536 _ACEOF
1538 cat <<\_ACEOF
1540 Program names:
1541 --program-prefix=PREFIX prepend PREFIX to installed program names
1542 --program-suffix=SUFFIX append SUFFIX to installed program names
1543 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1545 System types:
1546 --build=BUILD configure for building on BUILD [guessed]
1547 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1548 --target=TARGET configure for building compilers for TARGET [HOST]
1549 _ACEOF
1552 if test -n "$ac_init_help"; then
1554 cat <<\_ACEOF
1556 Optional Features:
1557 --disable-option-checking ignore unrecognized --enable/--with options
1558 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1559 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1560 --enable-generated-files-in-srcdir
1561 put copies of generated files in source dir
1562 intended for creating source tarballs for users
1563 without texinfo bison or flex.
1564 --disable-largefile omit support for large files
1565 --enable-werror-always enable -Werror despite compiler version
1566 --enable-checking=LIST
1567 enable expensive run-time checks. With LIST,
1568 enable only specific categories of checks.
1569 Categories are: yes,no,all,none,release.
1570 Flags are: assert,df,fold,gc,gcac,gimple,misc,
1571 rtlflag,rtl,runtime,tree,valgrind,types.
1572 --enable-coverage=LEVEL
1573 enable compiler's code coverage collection.
1574 Use to measure compiler performance and locate
1575 unused parts of the compiler. With LEVEL, specify
1576 optimization. Values are opt, noopt,
1577 default is noopt
1578 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1579 --enable-build-with-cxx build with C++ compiler instead of C compiler
1580 --enable-multilib enable library support for multiple ABIs
1581 --enable-__cxa_atexit enable __cxa_atexit for C++
1582 --enable-decimal-float={no,yes,bid,dpd}
1583 enable decimal float extension to C. Selecting 'bid'
1584 or 'dpd' choses which decimal floating point format
1585 to use
1586 --enable-fixed-point enable fixed-point arithmetic extension to C
1587 --enable-threads enable thread usage for target GCC
1588 --enable-threads=LIB use LIB thread package for target GCC
1589 --enable-tls enable or disable generation of tls code
1590 overriding the assembler check for tls support
1591 --enable-objc-gc enable the use of Boehm's garbage collector with
1592 the GNU Objective-C runtime
1593 --disable-shared don't provide a shared libgcc
1594 --enable-languages=LIST specify which front-ends to build
1595 --disable-rpath do not hardcode runtime library paths
1596 --enable-initfini-array use .init_array/.fini_array sections
1597 --enable-sjlj-exceptions
1598 arrange to use setjmp/longjmp exception handling
1599 --enable-secureplt enable -msecure-plt by default for PowerPC
1600 --enable-leading-mingw64-underscores
1601 Enable leading underscores on 64 bit mingw targets
1602 --enable-cld enable -mcld by default for 32bit x86
1603 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit x86
1604 --disable-win32-registry
1605 disable lookup of installation paths in the
1606 Registry on Windows hosts
1607 --enable-win32-registry enable registry lookup (default)
1608 --enable-win32-registry=KEY
1609 use KEY instead of GCC version as the last portion
1610 of the registry key
1611 --enable-shared[=PKGS] build shared libraries [default=yes]
1612 --enable-static[=PKGS] build static libraries [default=yes]
1613 --enable-fast-install[=PKGS]
1614 optimize for fast installation [default=yes]
1615 --disable-libtool-lock avoid locking (might break parallel builds)
1616 --enable-gnu-indirect-function
1617 enable the use of the @gnu_indirect_function to
1618 glibc systems
1619 --enable-comdat enable COMDAT group support
1620 --enable-gnu-unique-object
1621 enable the use of the @gnu_unique_object ELF
1622 extension on glibc systems
1623 --enable-linker-build-id
1624 compiler will always pass --build-id to linker
1625 --enable-maintainer-mode
1626 enable make rules and dependencies not useful
1627 (and sometimes confusing) to the casual installer
1628 --enable-version-specific-runtime-libs
1629 specify that runtime libraries should be
1630 installed in a compiler-specific directory
1631 --enable-canonical-prefixes
1632 enable or disable prefix canonicalization
1633 --enable-plugin enable plugin support
1634 --disable-libquadmath-support
1635 disable libquadmath support for Fortran
1637 Optional Packages:
1638 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1639 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1640 --with-build-libsubdir=DIR Directory where to find libraries for build system
1641 --with-local-prefix=DIR specifies directory to put local include
1642 --with-gxx-include-dir=DIR
1643 specifies directory to put g++ header files
1644 --with-cpp-install-dir=DIR
1645 install the user visible C preprocessor in DIR
1646 (relative to PREFIX) as well as PREFIX/bin
1647 --with-gnu-ld arrange to work with GNU ld.
1648 --with-ld arrange to use the specified ld (full pathname)
1649 --with-demangler-in-ld try to use demangler in GNU ld.
1650 --with-gnu-as arrange to work with GNU as
1651 --with-as arrange to use the specified as (full pathname)
1652 --with-stabs arrange to use stabs instead of host debug format
1653 --with-dwarf2 force the default debug format to be DWARF 2
1654 --with-native-system-header-dir=dir
1655 use dir as the directory to look for standard
1656 system header files in. Defaults to /usr/include.
1657 --with-runtime-root-prefix=prefix
1658 prepend prefix to paths used by the compiler to
1659 name the dynamic linker and other files used at
1660 runtime. Defaults to empty (no prefix).
1661 --with-build-sysroot=SYSROOT
1662 use sysroot as the system root during the build
1663 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1664 --with-specs=SPECS add SPECS to driver command-line processing
1665 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1666 --with-bugurl=URL Direct users to URL to report a bug
1667 --with-multilib-list Select multilibs (SH only)
1668 --with-gnu-ld assume the C compiler uses GNU ld default=no
1669 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1670 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1671 --with-system-libunwind use installed libunwind
1672 --with-pic try to use only PIC/non-PIC objects [default=use
1673 both]
1674 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1675 --with-plugin-ld=[ARG] specify the plugin linker
1676 --with-long-double-128 Use 128-bit long double by default.
1677 --with-gc={page,zone} choose the garbage collection mechanism to use
1678 with the compiler
1679 --with-system-zlib use installed libz
1680 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1682 Some influential environment variables:
1683 CC C compiler command
1684 CFLAGS C compiler flags
1685 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1686 nonstandard directory <lib dir>
1687 LIBS libraries to pass to the linker, e.g. -l<library>
1688 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1689 you have headers in a nonstandard directory <include dir>
1690 CXX C++ compiler command
1691 CXXFLAGS C++ compiler flags
1692 CPP C preprocessor
1693 CXXCPP C++ preprocessor
1694 GMPLIBS How to link GMP
1695 GMPINC How to find GMP include files
1696 PPLLIBS How to link PPL
1697 PPLINC How to find PPL include files
1698 CLOOGLIBS How to link CLOOG
1699 CLOOGINC How to find CLOOG include files
1701 Use these variables to override the choices made by `configure' or to help
1702 it to find libraries and programs with nonstandard names/locations.
1704 Report bugs to the package provider.
1705 _ACEOF
1706 ac_status=$?
1709 if test "$ac_init_help" = "recursive"; then
1710 # If there are subdirs, report their specific --help.
1711 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1712 test -d "$ac_dir" ||
1713 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1714 continue
1715 ac_builddir=.
1717 case "$ac_dir" in
1718 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1720 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1721 # A ".." for each directory in $ac_dir_suffix.
1722 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1723 case $ac_top_builddir_sub in
1724 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1725 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1726 esac ;;
1727 esac
1728 ac_abs_top_builddir=$ac_pwd
1729 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1730 # for backward compatibility:
1731 ac_top_builddir=$ac_top_build_prefix
1733 case $srcdir in
1734 .) # We are building in place.
1735 ac_srcdir=.
1736 ac_top_srcdir=$ac_top_builddir_sub
1737 ac_abs_top_srcdir=$ac_pwd ;;
1738 [\\/]* | ?:[\\/]* ) # Absolute name.
1739 ac_srcdir=$srcdir$ac_dir_suffix;
1740 ac_top_srcdir=$srcdir
1741 ac_abs_top_srcdir=$srcdir ;;
1742 *) # Relative name.
1743 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1744 ac_top_srcdir=$ac_top_build_prefix$srcdir
1745 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1746 esac
1747 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1749 cd "$ac_dir" || { ac_status=$?; continue; }
1750 # Check for guested configure.
1751 if test -f "$ac_srcdir/configure.gnu"; then
1752 echo &&
1753 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1754 elif test -f "$ac_srcdir/configure"; then
1755 echo &&
1756 $SHELL "$ac_srcdir/configure" --help=recursive
1757 else
1758 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1759 fi || ac_status=$?
1760 cd "$ac_pwd" || { ac_status=$?; break; }
1761 done
1764 test -n "$ac_init_help" && exit $ac_status
1765 if $ac_init_version; then
1766 cat <<\_ACEOF
1767 configure
1768 generated by GNU Autoconf 2.64
1770 Copyright (C) 2009 Free Software Foundation, Inc.
1771 This configure script is free software; the Free Software Foundation
1772 gives unlimited permission to copy, distribute and modify it.
1773 _ACEOF
1774 exit
1777 ## ------------------------ ##
1778 ## Autoconf initialization. ##
1779 ## ------------------------ ##
1781 # ac_fn_c_try_compile LINENO
1782 # --------------------------
1783 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1784 ac_fn_c_try_compile ()
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 rm -f conftest.$ac_objext
1788 if { { ac_try="$ac_compile"
1789 case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_compile") 2>conftest.err
1796 ac_status=$?
1797 if test -s conftest.err; then
1798 grep -v '^ *+' conftest.err >conftest.er1
1799 cat conftest.er1 >&5
1800 mv -f conftest.er1 conftest.err
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } && {
1804 test -z "$ac_c_werror_flag" ||
1805 test ! -s conftest.err
1806 } && test -s conftest.$ac_objext; then :
1807 ac_retval=0
1808 else
1809 $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1812 ac_retval=1
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815 return $ac_retval
1817 } # ac_fn_c_try_compile
1819 # ac_fn_cxx_try_compile LINENO
1820 # ----------------------------
1821 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1822 ac_fn_cxx_try_compile ()
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 rm -f conftest.$ac_objext
1826 if { { ac_try="$ac_compile"
1827 case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_compile") 2>conftest.err
1834 ac_status=$?
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && {
1842 test -z "$ac_cxx_werror_flag" ||
1843 test ! -s conftest.err
1844 } && test -s conftest.$ac_objext; then :
1845 ac_retval=0
1846 else
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1850 ac_retval=1
1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853 return $ac_retval
1855 } # ac_fn_cxx_try_compile
1857 # ac_fn_c_try_cpp LINENO
1858 # ----------------------
1859 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1860 ac_fn_c_try_cpp ()
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 if { { ac_try="$ac_cpp conftest.$ac_ext"
1864 case "(($ac_try" in
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1867 esac
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1871 ac_status=$?
1872 if test -s conftest.err; then
1873 grep -v '^ *+' conftest.err >conftest.er1
1874 cat conftest.er1 >&5
1875 mv -f conftest.er1 conftest.err
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } >/dev/null && {
1879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1880 test ! -s conftest.err
1881 }; then :
1882 ac_retval=0
1883 else
1884 $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1887 ac_retval=1
1889 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1890 return $ac_retval
1892 } # ac_fn_c_try_cpp
1894 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1895 # -------------------------------------------------------
1896 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1897 # the include files in INCLUDES and setting the cache variable VAR
1898 # accordingly.
1899 ac_fn_c_check_header_mongrel ()
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904 $as_echo_n "checking for $2... " >&6; }
1905 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1906 $as_echo_n "(cached) " >&6
1908 eval ac_res=\$$3
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910 $as_echo "$ac_res" >&6; }
1911 else
1912 # Is the header compilable?
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1914 $as_echo_n "checking $2 usability... " >&6; }
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1918 #include <$2>
1919 _ACEOF
1920 if ac_fn_c_try_compile "$LINENO"; then :
1921 ac_header_compiler=yes
1922 else
1923 ac_header_compiler=no
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1927 $as_echo "$ac_header_compiler" >&6; }
1929 # Is the header present?
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1931 $as_echo_n "checking $2 presence... " >&6; }
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1934 #include <$2>
1935 _ACEOF
1936 if ac_fn_c_try_cpp "$LINENO"; then :
1937 ac_header_preproc=yes
1938 else
1939 ac_header_preproc=no
1941 rm -f conftest.err conftest.$ac_ext
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1943 $as_echo "$ac_header_preproc" >&6; }
1945 # So? What about this header?
1946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1947 yes:no: )
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1949 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1951 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1953 no:yes:* )
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1955 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1957 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1959 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1961 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1963 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1965 esac
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1969 $as_echo_n "(cached) " >&6
1970 else
1971 eval "$3=\$ac_header_compiler"
1973 eval ac_res=\$$3
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975 $as_echo "$ac_res" >&6; }
1977 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1979 } # ac_fn_c_check_header_mongrel
1981 # ac_fn_c_try_run LINENO
1982 # ----------------------
1983 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1984 # that executables *can* be run.
1985 ac_fn_c_try_run ()
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 if { { ac_try="$ac_link"
1989 case "(($ac_try" in
1990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1991 *) ac_try_echo=$ac_try;;
1992 esac
1993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994 $as_echo "$ac_try_echo"; } >&5
1995 (eval "$ac_link") 2>&5
1996 ac_status=$?
1997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1999 { { case "(($ac_try" in
2000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2001 *) ac_try_echo=$ac_try;;
2002 esac
2003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2004 $as_echo "$ac_try_echo"; } >&5
2005 (eval "$ac_try") 2>&5
2006 ac_status=$?
2007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008 test $ac_status = 0; }; }; then :
2009 ac_retval=0
2010 else
2011 $as_echo "$as_me: program exited with status $ac_status" >&5
2012 $as_echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2015 ac_retval=$ac_status
2017 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2018 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2019 return $ac_retval
2021 } # ac_fn_c_try_run
2023 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2024 # -------------------------------------------------------
2025 # Tests whether HEADER exists and can be compiled using the include files in
2026 # INCLUDES, setting the cache variable VAR accordingly.
2027 ac_fn_c_check_header_compile ()
2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2031 $as_echo_n "checking for $2... " >&6; }
2032 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2033 $as_echo_n "(cached) " >&6
2034 else
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2038 #include <$2>
2039 _ACEOF
2040 if ac_fn_c_try_compile "$LINENO"; then :
2041 eval "$3=yes"
2042 else
2043 eval "$3=no"
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 eval ac_res=\$$3
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2052 } # ac_fn_c_check_header_compile
2054 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2055 # --------------------------------------------
2056 # Tries to find the compile-time value of EXPR in a program that includes
2057 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2058 # computed
2059 ac_fn_c_compute_int ()
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 if test "$cross_compiling" = yes; then
2063 # Depending upon the size, compute the lo and hi bounds.
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2068 main ()
2070 static int test_array [1 - 2 * !(($2) >= 0)];
2071 test_array [0] = 0
2074 return 0;
2076 _ACEOF
2077 if ac_fn_c_try_compile "$LINENO"; then :
2078 ac_lo=0 ac_mid=0
2079 while :; do
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2084 main ()
2086 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2087 test_array [0] = 0
2090 return 0;
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094 ac_hi=$ac_mid; break
2095 else
2096 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2097 if test $ac_lo -le $ac_mid; then
2098 ac_lo= ac_hi=
2099 break
2101 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 done
2105 else
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2110 main ()
2112 static int test_array [1 - 2 * !(($2) < 0)];
2113 test_array [0] = 0
2116 return 0;
2118 _ACEOF
2119 if ac_fn_c_try_compile "$LINENO"; then :
2120 ac_hi=-1 ac_mid=-1
2121 while :; do
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2126 main ()
2128 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2129 test_array [0] = 0
2132 return 0;
2134 _ACEOF
2135 if ac_fn_c_try_compile "$LINENO"; then :
2136 ac_lo=$ac_mid; break
2137 else
2138 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2139 if test $ac_mid -le $ac_hi; then
2140 ac_lo= ac_hi=
2141 break
2143 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 done
2147 else
2148 ac_lo= ac_hi=
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 # Binary search between lo and hi bounds.
2154 while test "x$ac_lo" != "x$ac_hi"; do
2155 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2160 main ()
2162 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2163 test_array [0] = 0
2166 return 0;
2168 _ACEOF
2169 if ac_fn_c_try_compile "$LINENO"; then :
2170 ac_hi=$ac_mid
2171 else
2172 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 done
2176 case $ac_lo in #((
2177 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2178 '') ac_retval=1 ;;
2179 esac
2180 else
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2184 static long int longval () { return $2; }
2185 static unsigned long int ulongval () { return $2; }
2186 #include <stdio.h>
2187 #include <stdlib.h>
2189 main ()
2192 FILE *f = fopen ("conftest.val", "w");
2193 if (! f)
2194 return 1;
2195 if (($2) < 0)
2197 long int i = longval ();
2198 if (i != ($2))
2199 return 1;
2200 fprintf (f, "%ld", i);
2202 else
2204 unsigned long int i = ulongval ();
2205 if (i != ($2))
2206 return 1;
2207 fprintf (f, "%lu", i);
2209 /* Do not output a trailing newline, as this causes \r\n confusion
2210 on some platforms. */
2211 return ferror (f) || fclose (f) != 0;
2214 return 0;
2216 _ACEOF
2217 if ac_fn_c_try_run "$LINENO"; then :
2218 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2219 else
2220 ac_retval=1
2222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2223 conftest.$ac_objext conftest.beam conftest.$ac_ext
2224 rm -f conftest.val
2227 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2228 return $ac_retval
2230 } # ac_fn_c_compute_int
2232 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2233 # -------------------------------------------
2234 # Tests whether TYPE exists after having included INCLUDES, setting cache
2235 # variable VAR accordingly.
2236 ac_fn_c_check_type ()
2238 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2240 $as_echo_n "checking for $2... " >&6; }
2241 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2242 $as_echo_n "(cached) " >&6
2243 else
2244 eval "$3=no"
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2249 main ()
2251 if (sizeof ($2))
2252 return 0;
2254 return 0;
2256 _ACEOF
2257 if ac_fn_c_try_compile "$LINENO"; then :
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2262 main ()
2264 if (sizeof (($2)))
2265 return 0;
2267 return 0;
2269 _ACEOF
2270 if ac_fn_c_try_compile "$LINENO"; then :
2272 else
2273 eval "$3=yes"
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 eval ac_res=\$$3
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2281 $as_echo "$ac_res" >&6; }
2282 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2284 } # ac_fn_c_check_type
2286 # ac_fn_c_find_intX_t LINENO BITS VAR
2287 # -----------------------------------
2288 # Finds a signed integer type with width BITS, setting cache variable VAR
2289 # accordingly.
2290 ac_fn_c_find_intX_t ()
2292 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2294 $as_echo_n "checking for int$2_t... " >&6; }
2295 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2296 $as_echo_n "(cached) " >&6
2297 else
2298 eval "$3=no"
2299 for ac_type in int$2_t 'int' 'long int' \
2300 'long long int' 'short int' 'signed char'; do
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2303 $ac_includes_default
2305 main ()
2307 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2308 test_array [0] = 0
2311 return 0;
2313 _ACEOF
2314 if ac_fn_c_try_compile "$LINENO"; then :
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 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2322 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2323 test_array [0] = 0
2326 return 0;
2328 _ACEOF
2329 if ac_fn_c_try_compile "$LINENO"; then :
2331 else
2332 case $ac_type in #(
2333 int$2_t) :
2334 eval "$3=yes" ;; #(
2335 *) :
2336 eval "$3=\$ac_type" ;;
2337 esac
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342 eval as_val=\$$3
2343 if test "x$as_val" = x""no; then :
2345 else
2346 break
2348 done
2350 eval ac_res=\$$3
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2352 $as_echo "$ac_res" >&6; }
2353 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2355 } # ac_fn_c_find_intX_t
2357 # ac_fn_c_try_link LINENO
2358 # -----------------------
2359 # Try to link conftest.$ac_ext, and return whether this succeeded.
2360 ac_fn_c_try_link ()
2362 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2363 rm -f conftest.$ac_objext conftest$ac_exeext
2364 if { { ac_try="$ac_link"
2365 case "(($ac_try" in
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2368 esac
2369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2370 $as_echo "$ac_try_echo"; } >&5
2371 (eval "$ac_link") 2>conftest.err
2372 ac_status=$?
2373 if test -s conftest.err; then
2374 grep -v '^ *+' conftest.err >conftest.er1
2375 cat conftest.er1 >&5
2376 mv -f conftest.er1 conftest.err
2378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2379 test $ac_status = 0; } && {
2380 test -z "$ac_c_werror_flag" ||
2381 test ! -s conftest.err
2382 } && test -s conftest$ac_exeext && {
2383 test "$cross_compiling" = yes ||
2384 $as_test_x conftest$ac_exeext
2385 }; then :
2386 ac_retval=0
2387 else
2388 $as_echo "$as_me: failed program was:" >&5
2389 sed 's/^/| /' conftest.$ac_ext >&5
2391 ac_retval=1
2393 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2394 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2395 # interfere with the next link command; also delete a directory that is
2396 # left behind by Apple's compiler. We do this before executing the actions.
2397 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2398 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2399 return $ac_retval
2401 } # ac_fn_c_try_link
2403 # ac_fn_c_find_uintX_t LINENO BITS VAR
2404 # ------------------------------------
2405 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2406 # accordingly.
2407 ac_fn_c_find_uintX_t ()
2409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2411 $as_echo_n "checking for uint$2_t... " >&6; }
2412 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2413 $as_echo_n "(cached) " >&6
2414 else
2415 eval "$3=no"
2416 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2417 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2419 /* end confdefs.h. */
2420 $ac_includes_default
2422 main ()
2424 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2425 test_array [0] = 0
2428 return 0;
2430 _ACEOF
2431 if ac_fn_c_try_compile "$LINENO"; then :
2432 case $ac_type in #(
2433 uint$2_t) :
2434 eval "$3=yes" ;; #(
2435 *) :
2436 eval "$3=\$ac_type" ;;
2437 esac
2439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2440 eval as_val=\$$3
2441 if test "x$as_val" = x""no; then :
2443 else
2444 break
2446 done
2448 eval ac_res=\$$3
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2450 $as_echo "$ac_res" >&6; }
2451 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2453 } # ac_fn_c_find_uintX_t
2455 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2456 # ----------------------------------------------
2457 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2458 ac_fn_c_check_header_preproc ()
2460 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2462 $as_echo_n "checking for $2... " >&6; }
2463 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2464 $as_echo_n "(cached) " >&6
2465 else
2466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h. */
2468 #include <$2>
2469 _ACEOF
2470 if ac_fn_c_try_cpp "$LINENO"; then :
2471 eval "$3=yes"
2472 else
2473 eval "$3=no"
2475 rm -f conftest.err conftest.$ac_ext
2477 eval ac_res=\$$3
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2479 $as_echo "$ac_res" >&6; }
2480 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2482 } # ac_fn_c_check_header_preproc
2484 # ac_fn_cxx_try_cpp LINENO
2485 # ------------------------
2486 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2487 ac_fn_cxx_try_cpp ()
2489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2490 if { { ac_try="$ac_cpp conftest.$ac_ext"
2491 case "(($ac_try" in
2492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2493 *) ac_try_echo=$ac_try;;
2494 esac
2495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2496 $as_echo "$ac_try_echo"; } >&5
2497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2498 ac_status=$?
2499 if test -s conftest.err; then
2500 grep -v '^ *+' conftest.err >conftest.er1
2501 cat conftest.er1 >&5
2502 mv -f conftest.er1 conftest.err
2504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2505 test $ac_status = 0; } >/dev/null && {
2506 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2507 test ! -s conftest.err
2508 }; then :
2509 ac_retval=0
2510 else
2511 $as_echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2514 ac_retval=1
2516 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2517 return $ac_retval
2519 } # ac_fn_cxx_try_cpp
2521 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2522 # ------------------------------------------------
2523 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2524 ac_fn_cxx_check_header_preproc ()
2526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2528 $as_echo_n "checking for $2... " >&6; }
2529 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2530 $as_echo_n "(cached) " >&6
2531 else
2532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2533 /* end confdefs.h. */
2534 #include <$2>
2535 _ACEOF
2536 if ac_fn_cxx_try_cpp "$LINENO"; then :
2537 eval "$3=yes"
2538 else
2539 eval "$3=no"
2541 rm -f conftest.err conftest.$ac_ext
2543 eval ac_res=\$$3
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2545 $as_echo "$ac_res" >&6; }
2546 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2548 } # ac_fn_cxx_check_header_preproc
2550 # ac_fn_c_check_func LINENO FUNC VAR
2551 # ----------------------------------
2552 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2553 ac_fn_c_check_func ()
2555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2557 $as_echo_n "checking for $2... " >&6; }
2558 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2559 $as_echo_n "(cached) " >&6
2560 else
2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562 /* end confdefs.h. */
2563 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2565 #define $2 innocuous_$2
2567 /* System header to define __stub macros and hopefully few prototypes,
2568 which can conflict with char $2 (); below.
2569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2570 <limits.h> exists even on freestanding compilers. */
2572 #ifdef __STDC__
2573 # include <limits.h>
2574 #else
2575 # include <assert.h>
2576 #endif
2578 #undef $2
2580 /* Override any GCC internal prototype to avoid an error.
2581 Use char because int might match the return type of a GCC
2582 builtin and then its argument prototype would still apply. */
2583 #ifdef __cplusplus
2584 extern "C"
2585 #endif
2586 char $2 ();
2587 /* The GNU C library defines this for functions which it implements
2588 to always fail with ENOSYS. Some functions are actually named
2589 something starting with __ and the normal name is an alias. */
2590 #if defined __stub_$2 || defined __stub___$2
2591 choke me
2592 #endif
2595 main ()
2597 return $2 ();
2599 return 0;
2601 _ACEOF
2602 if ac_fn_c_try_link "$LINENO"; then :
2603 eval "$3=yes"
2604 else
2605 eval "$3=no"
2607 rm -f core conftest.err conftest.$ac_objext \
2608 conftest$ac_exeext conftest.$ac_ext
2610 eval ac_res=\$$3
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2612 $as_echo "$ac_res" >&6; }
2613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2615 } # ac_fn_c_check_func
2617 # ac_fn_cxx_try_link LINENO
2618 # -------------------------
2619 # Try to link conftest.$ac_ext, and return whether this succeeded.
2620 ac_fn_cxx_try_link ()
2622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2623 rm -f conftest.$ac_objext conftest$ac_exeext
2624 if { { ac_try="$ac_link"
2625 case "(($ac_try" in
2626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2627 *) ac_try_echo=$ac_try;;
2628 esac
2629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2630 $as_echo "$ac_try_echo"; } >&5
2631 (eval "$ac_link") 2>conftest.err
2632 ac_status=$?
2633 if test -s conftest.err; then
2634 grep -v '^ *+' conftest.err >conftest.er1
2635 cat conftest.er1 >&5
2636 mv -f conftest.er1 conftest.err
2638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2639 test $ac_status = 0; } && {
2640 test -z "$ac_cxx_werror_flag" ||
2641 test ! -s conftest.err
2642 } && test -s conftest$ac_exeext && {
2643 test "$cross_compiling" = yes ||
2644 $as_test_x conftest$ac_exeext
2645 }; then :
2646 ac_retval=0
2647 else
2648 $as_echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2651 ac_retval=1
2653 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2654 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2655 # interfere with the next link command; also delete a directory that is
2656 # left behind by Apple's compiler. We do this before executing the actions.
2657 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2658 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2659 return $ac_retval
2661 } # ac_fn_cxx_try_link
2662 cat >config.log <<_ACEOF
2663 This file contains any messages produced by compilers while
2664 running configure, to aid debugging if configure makes a mistake.
2666 It was created by $as_me, which was
2667 generated by GNU Autoconf 2.64. Invocation command line was
2669 $ $0 $@
2671 _ACEOF
2672 exec 5>>config.log
2674 cat <<_ASUNAME
2675 ## --------- ##
2676 ## Platform. ##
2677 ## --------- ##
2679 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2680 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2681 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2682 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2683 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2685 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2686 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2688 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2689 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2690 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2691 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2692 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2693 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2694 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2696 _ASUNAME
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 for as_dir in $PATH
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 $as_echo "PATH: $as_dir"
2704 done
2705 IFS=$as_save_IFS
2707 } >&5
2709 cat >&5 <<_ACEOF
2712 ## ----------- ##
2713 ## Core tests. ##
2714 ## ----------- ##
2716 _ACEOF
2719 # Keep a trace of the command line.
2720 # Strip out --no-create and --no-recursion so they do not pile up.
2721 # Strip out --silent because we don't want to record it for future runs.
2722 # Also quote any args containing shell meta-characters.
2723 # Make two passes to allow for proper duplicate-argument suppression.
2724 ac_configure_args=
2725 ac_configure_args0=
2726 ac_configure_args1=
2727 ac_must_keep_next=false
2728 for ac_pass in 1 2
2730 for ac_arg
2732 case $ac_arg in
2733 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2734 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2735 | -silent | --silent | --silen | --sile | --sil)
2736 continue ;;
2737 *\'*)
2738 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2739 esac
2740 case $ac_pass in
2741 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2743 as_fn_append ac_configure_args1 " '$ac_arg'"
2744 if test $ac_must_keep_next = true; then
2745 ac_must_keep_next=false # Got value, back to normal.
2746 else
2747 case $ac_arg in
2748 *=* | --config-cache | -C | -disable-* | --disable-* \
2749 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2750 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2751 | -with-* | --with-* | -without-* | --without-* | --x)
2752 case "$ac_configure_args0 " in
2753 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2754 esac
2756 -* ) ac_must_keep_next=true ;;
2757 esac
2759 as_fn_append ac_configure_args " '$ac_arg'"
2761 esac
2762 done
2763 done
2764 { ac_configure_args0=; unset ac_configure_args0;}
2765 { ac_configure_args1=; unset ac_configure_args1;}
2767 # When interrupted or exit'd, cleanup temporary files, and complete
2768 # config.log. We remove comments because anyway the quotes in there
2769 # would cause problems or look ugly.
2770 # WARNING: Use '\'' to represent an apostrophe within the trap.
2771 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2772 trap 'exit_status=$?
2773 # Save into config.log some information that might help in debugging.
2775 echo
2777 cat <<\_ASBOX
2778 ## ---------------- ##
2779 ## Cache variables. ##
2780 ## ---------------- ##
2781 _ASBOX
2782 echo
2783 # The following way of writing the cache mishandles newlines in values,
2785 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2786 eval ac_val=\$$ac_var
2787 case $ac_val in #(
2788 *${as_nl}*)
2789 case $ac_var in #(
2790 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2791 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2792 esac
2793 case $ac_var in #(
2794 _ | IFS | as_nl) ;; #(
2795 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2796 *) { eval $ac_var=; unset $ac_var;} ;;
2797 esac ;;
2798 esac
2799 done
2800 (set) 2>&1 |
2801 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2802 *${as_nl}ac_space=\ *)
2803 sed -n \
2804 "s/'\''/'\''\\\\'\'''\''/g;
2805 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2806 ;; #(
2808 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2810 esac |
2811 sort
2813 echo
2815 cat <<\_ASBOX
2816 ## ----------------- ##
2817 ## Output variables. ##
2818 ## ----------------- ##
2819 _ASBOX
2820 echo
2821 for ac_var in $ac_subst_vars
2823 eval ac_val=\$$ac_var
2824 case $ac_val in
2825 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2826 esac
2827 $as_echo "$ac_var='\''$ac_val'\''"
2828 done | sort
2829 echo
2831 if test -n "$ac_subst_files"; then
2832 cat <<\_ASBOX
2833 ## ------------------- ##
2834 ## File substitutions. ##
2835 ## ------------------- ##
2836 _ASBOX
2837 echo
2838 for ac_var in $ac_subst_files
2840 eval ac_val=\$$ac_var
2841 case $ac_val in
2842 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2843 esac
2844 $as_echo "$ac_var='\''$ac_val'\''"
2845 done | sort
2846 echo
2849 if test -s confdefs.h; then
2850 cat <<\_ASBOX
2851 ## ----------- ##
2852 ## confdefs.h. ##
2853 ## ----------- ##
2854 _ASBOX
2855 echo
2856 cat confdefs.h
2857 echo
2859 test "$ac_signal" != 0 &&
2860 $as_echo "$as_me: caught signal $ac_signal"
2861 $as_echo "$as_me: exit $exit_status"
2862 } >&5
2863 rm -f core *.core core.conftest.* &&
2864 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2865 exit $exit_status
2867 for ac_signal in 1 2 13 15; do
2868 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2869 done
2870 ac_signal=0
2872 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2873 rm -f -r conftest* confdefs.h
2875 $as_echo "/* confdefs.h */" > confdefs.h
2877 # Predefined preprocessor variables.
2879 cat >>confdefs.h <<_ACEOF
2880 #define PACKAGE_NAME "$PACKAGE_NAME"
2881 _ACEOF
2883 cat >>confdefs.h <<_ACEOF
2884 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2885 _ACEOF
2887 cat >>confdefs.h <<_ACEOF
2888 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2889 _ACEOF
2891 cat >>confdefs.h <<_ACEOF
2892 #define PACKAGE_STRING "$PACKAGE_STRING"
2893 _ACEOF
2895 cat >>confdefs.h <<_ACEOF
2896 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2897 _ACEOF
2899 cat >>confdefs.h <<_ACEOF
2900 #define PACKAGE_URL "$PACKAGE_URL"
2901 _ACEOF
2904 # Let the site file select an alternate cache file if it wants to.
2905 # Prefer an explicitly selected file to automatically selected ones.
2906 ac_site_file1=NONE
2907 ac_site_file2=NONE
2908 if test -n "$CONFIG_SITE"; then
2909 ac_site_file1=$CONFIG_SITE
2910 elif test "x$prefix" != xNONE; then
2911 ac_site_file1=$prefix/share/config.site
2912 ac_site_file2=$prefix/etc/config.site
2913 else
2914 ac_site_file1=$ac_default_prefix/share/config.site
2915 ac_site_file2=$ac_default_prefix/etc/config.site
2917 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2919 test "x$ac_site_file" = xNONE && continue
2920 if test -r "$ac_site_file"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2922 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2923 sed 's/^/| /' "$ac_site_file" >&5
2924 . "$ac_site_file"
2926 done
2928 if test -r "$cache_file"; then
2929 # Some versions of bash will fail to source /dev/null (special
2930 # files actually), so we avoid doing that.
2931 if test -f "$cache_file"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2933 $as_echo "$as_me: loading cache $cache_file" >&6;}
2934 case $cache_file in
2935 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2936 *) . "./$cache_file";;
2937 esac
2939 else
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2941 $as_echo "$as_me: creating cache $cache_file" >&6;}
2942 >$cache_file
2945 # Check that the precious variables saved in the cache have kept the same
2946 # value.
2947 ac_cache_corrupted=false
2948 for ac_var in $ac_precious_vars; do
2949 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2950 eval ac_new_set=\$ac_env_${ac_var}_set
2951 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2952 eval ac_new_val=\$ac_env_${ac_var}_value
2953 case $ac_old_set,$ac_new_set in
2954 set,)
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2956 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2957 ac_cache_corrupted=: ;;
2958 ,set)
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2960 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2961 ac_cache_corrupted=: ;;
2962 ,);;
2964 if test "x$ac_old_val" != "x$ac_new_val"; then
2965 # differences in whitespace do not lead to failure.
2966 ac_old_val_w=`echo x $ac_old_val`
2967 ac_new_val_w=`echo x $ac_new_val`
2968 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2970 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2971 ac_cache_corrupted=:
2972 else
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2974 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2975 eval $ac_var=\$ac_old_val
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2978 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2980 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2981 fi;;
2982 esac
2983 # Pass precious variables to config.status.
2984 if test "$ac_new_set" = set; then
2985 case $ac_new_val in
2986 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2987 *) ac_arg=$ac_var=$ac_new_val ;;
2988 esac
2989 case " $ac_configure_args " in
2990 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2991 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2992 esac
2994 done
2995 if $ac_cache_corrupted; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2999 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3000 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3002 ## -------------------- ##
3003 ## Main body of script. ##
3004 ## -------------------- ##
3006 ac_ext=c
3007 ac_cpp='$CPP $CPPFLAGS'
3008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3017 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3020 gcc_version=`cat $srcdir/BASE-VER`
3022 # Determine the host, build, and target systems
3023 ac_aux_dir=
3024 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3025 for ac_t in install-sh install.sh shtool; do
3026 if test -f "$ac_dir/$ac_t"; then
3027 ac_aux_dir=$ac_dir
3028 ac_install_sh="$ac_aux_dir/$ac_t -c"
3029 break 2
3031 done
3032 done
3033 if test -z "$ac_aux_dir"; then
3034 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3037 # These three variables are undocumented and unsupported,
3038 # and are intended to be withdrawn in a future Autoconf release.
3039 # They can cause serious problems if a builder's source tree is in a directory
3040 # whose full name contains unusual characters.
3041 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3042 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3043 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3046 # Make sure we can run config.sub.
3047 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3048 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3051 $as_echo_n "checking build system type... " >&6; }
3052 if test "${ac_cv_build+set}" = set; then :
3053 $as_echo_n "(cached) " >&6
3054 else
3055 ac_build_alias=$build_alias
3056 test "x$ac_build_alias" = x &&
3057 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3058 test "x$ac_build_alias" = x &&
3059 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3060 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3061 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3065 $as_echo "$ac_cv_build" >&6; }
3066 case $ac_cv_build in
3067 *-*-*) ;;
3068 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3069 esac
3070 build=$ac_cv_build
3071 ac_save_IFS=$IFS; IFS='-'
3072 set x $ac_cv_build
3073 shift
3074 build_cpu=$1
3075 build_vendor=$2
3076 shift; shift
3077 # Remember, the first character of IFS is used to create $*,
3078 # except with old shells:
3079 build_os=$*
3080 IFS=$ac_save_IFS
3081 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3085 $as_echo_n "checking host system type... " >&6; }
3086 if test "${ac_cv_host+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
3088 else
3089 if test "x$host_alias" = x; then
3090 ac_cv_host=$ac_cv_build
3091 else
3092 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3093 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3098 $as_echo "$ac_cv_host" >&6; }
3099 case $ac_cv_host in
3100 *-*-*) ;;
3101 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3102 esac
3103 host=$ac_cv_host
3104 ac_save_IFS=$IFS; IFS='-'
3105 set x $ac_cv_host
3106 shift
3107 host_cpu=$1
3108 host_vendor=$2
3109 shift; shift
3110 # Remember, the first character of IFS is used to create $*,
3111 # except with old shells:
3112 host_os=$*
3113 IFS=$ac_save_IFS
3114 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3118 $as_echo_n "checking target system type... " >&6; }
3119 if test "${ac_cv_target+set}" = set; then :
3120 $as_echo_n "(cached) " >&6
3121 else
3122 if test "x$target_alias" = x; then
3123 ac_cv_target=$ac_cv_host
3124 else
3125 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3126 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3131 $as_echo "$ac_cv_target" >&6; }
3132 case $ac_cv_target in
3133 *-*-*) ;;
3134 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3135 esac
3136 target=$ac_cv_target
3137 ac_save_IFS=$IFS; IFS='-'
3138 set x $ac_cv_target
3139 shift
3140 target_cpu=$1
3141 target_vendor=$2
3142 shift; shift
3143 # Remember, the first character of IFS is used to create $*,
3144 # except with old shells:
3145 target_os=$*
3146 IFS=$ac_save_IFS
3147 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3150 # The aliases save the names the user supplied, while $host etc.
3151 # will get canonicalized.
3152 test -n "$target_alias" &&
3153 test "$program_prefix$program_suffix$program_transform_name" = \
3154 NONENONEs,x,x, &&
3155 program_prefix=${target_alias}-
3157 # Determine the noncanonical target name, for directory use.
3158 case ${build_alias} in
3159 "") build_noncanonical=${build} ;;
3160 *) build_noncanonical=${build_alias} ;;
3161 esac
3163 case ${host_alias} in
3164 "") host_noncanonical=${build_noncanonical} ;;
3165 *) host_noncanonical=${host_alias} ;;
3166 esac
3168 case ${target_alias} in
3169 "") target_noncanonical=${host_noncanonical} ;;
3170 *) target_noncanonical=${target_alias} ;;
3171 esac
3176 # Determine the target- and build-specific subdirectories
3178 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3179 # have matching libraries, they should use host libraries: Makefile.tpl
3180 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3181 # However, they still use the build modules, because the corresponding
3182 # host modules (e.g. bison) are only built for the host when bootstrap
3183 # finishes. So:
3184 # - build_subdir is where we find build modules, and never changes.
3185 # - build_libsubdir is where we find build libraries, and can be overridden.
3187 # Prefix 'build-' so this never conflicts with target_subdir.
3188 build_subdir="build-${build_noncanonical}"
3190 # Check whether --with-build-libsubdir was given.
3191 if test "${with_build_libsubdir+set}" = set; then :
3192 withval=$with_build_libsubdir; build_libsubdir="$withval"
3193 else
3194 build_libsubdir="$build_subdir"
3197 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3198 if ( test $srcdir = . && test -d gcc ) \
3199 || test -d $srcdir/../host-${host_noncanonical}; then
3200 host_subdir="host-${host_noncanonical}"
3201 else
3202 host_subdir=.
3204 # No prefix.
3205 target_subdir=${target_noncanonical}
3208 # Set program_transform_name
3209 test "$program_prefix" != NONE &&
3210 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3211 # Use a double $ so make ignores it.
3212 test "$program_suffix" != NONE &&
3213 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3214 # Double any \ or $.
3215 # By default was `s,x,x', remove it if useless.
3216 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3217 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3220 # Check for bogus environment variables.
3221 # Test if LIBRARY_PATH contains the notation for the current directory
3222 # since this would lead to problems installing/building glibc.
3223 # LIBRARY_PATH contains the current directory if one of the following
3224 # is true:
3225 # - one of the terminals (":" and ";") is the first or last sign
3226 # - two terminals occur directly after each other
3227 # - the path contains an element with a dot in it
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3229 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3230 case ${LIBRARY_PATH} in
3231 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3232 library_path_setting="contains current directory"
3235 library_path_setting="ok"
3237 esac
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3239 $as_echo "$library_path_setting" >&6; }
3240 if test "$library_path_setting" != "ok"; then
3241 as_fn_error "
3242 *** LIBRARY_PATH shouldn't contain the current directory when
3243 *** building gcc. Please change the environment variable
3244 *** and run configure again." "$LINENO" 5
3247 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3248 # since this would lead to problems installing/building glibc.
3249 # GCC_EXEC_PREFIX contains the current directory if one of the following
3250 # is true:
3251 # - one of the terminals (":" and ";") is the first or last sign
3252 # - two terminals occur directly after each other
3253 # - the path contains an element with a dot in it
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3255 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3256 case ${GCC_EXEC_PREFIX} in
3257 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3258 gcc_exec_prefix_setting="contains current directory"
3261 gcc_exec_prefix_setting="ok"
3263 esac
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3265 $as_echo "$gcc_exec_prefix_setting" >&6; }
3266 if test "$gcc_exec_prefix_setting" != "ok"; then
3267 as_fn_error "
3268 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3269 *** building gcc. Please change the environment variable
3270 *** and run configure again." "$LINENO" 5
3273 # -----------
3274 # Directories
3275 # -----------
3277 # Specify the local prefix
3278 local_prefix=
3280 # Check whether --with-local-prefix was given.
3281 if test "${with_local_prefix+set}" = set; then :
3282 withval=$with_local_prefix; case "${withval}" in
3283 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3284 no) ;;
3285 *) local_prefix=$with_local_prefix ;;
3286 esac
3290 # Default local prefix if it is empty
3291 if test x$local_prefix = x; then
3292 local_prefix=/usr/local
3295 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3296 # passed in by the toplevel make and thus we'd get different behavior
3297 # depending on where we built the sources.
3298 gcc_gxx_include_dir=
3299 # Specify the g++ header file directory
3301 # Check whether --with-gxx-include-dir was given.
3302 if test "${with_gxx_include_dir+set}" = set; then :
3303 withval=$with_gxx_include_dir; case "${withval}" in
3304 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3305 no) ;;
3306 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3307 esac
3311 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3312 if test x${gcc_gxx_include_dir} = x; then
3313 if test x${enable_version_specific_runtime_libs} = xyes; then
3314 gcc_gxx_include_dir='${libsubdir}/include/c++'
3315 else
3316 libstdcxx_incdir='include/c++/$(version)'
3317 if test x$host != x$target; then
3318 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3320 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3325 # Check whether --with-cpp_install_dir was given.
3326 if test "${with_cpp_install_dir+set}" = set; then :
3327 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3328 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3329 elif test x$withval != xno; then
3330 cpp_install_dir=$withval
3335 # We would like to our source tree to be readonly. However when releases or
3336 # pre-releases are generated, the flex/bison generated files as well as the
3337 # various formats of manuals need to be included along with the rest of the
3338 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3339 # just that.
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3342 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3343 # Check whether --enable-generated-files-in-srcdir was given.
3344 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3345 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3346 else
3347 generated_files_in_srcdir=no
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3352 $as_echo "$generated_files_in_srcdir" >&6; }
3354 if test "$generated_files_in_srcdir" = "yes"; then
3355 GENINSRC=''
3356 else
3357 GENINSRC='#'
3361 # -------------------
3362 # Find default linker
3363 # -------------------
3365 # With GNU ld
3367 # Check whether --with-gnu-ld was given.
3368 if test "${with_gnu_ld+set}" = set; then :
3369 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3370 else
3371 gnu_ld_flag=no
3375 # With pre-defined ld
3377 # Check whether --with-ld was given.
3378 if test "${with_ld+set}" = set; then :
3379 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3382 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3383 if test ! -x "$DEFAULT_LINKER"; then
3384 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3385 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3386 gnu_ld_flag=yes
3389 cat >>confdefs.h <<_ACEOF
3390 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3391 _ACEOF
3395 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3397 cat >>confdefs.h <<_ACEOF
3398 #define HAVE_GNU_LD $gnu_ld
3399 _ACEOF
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3403 $as_echo_n "checking whether a default linker was specified... " >&6; }
3404 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3405 if test x"$gnu_ld_flag" = x"no"; then
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3407 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3408 else
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3410 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3412 else
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414 $as_echo "no" >&6; }
3417 # With demangler in GNU ld
3419 # Check whether --with-demangler-in-ld was given.
3420 if test "${with_demangler_in_ld+set}" = set; then :
3421 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3422 else
3423 demangler_in_ld=no
3427 # ----------------------
3428 # Find default assembler
3429 # ----------------------
3431 # With GNU as
3433 # Check whether --with-gnu-as was given.
3434 if test "${with_gnu_as+set}" = set; then :
3435 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3436 else
3437 gas_flag=no
3442 # Check whether --with-as was given.
3443 if test "${with_as+set}" = set; then :
3444 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3447 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3448 if test ! -x "$DEFAULT_ASSEMBLER"; then
3449 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3450 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3451 gas_flag=yes
3454 cat >>confdefs.h <<_ACEOF
3455 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3456 _ACEOF
3460 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3462 cat >>confdefs.h <<_ACEOF
3463 #define HAVE_GNU_AS $gnu_as
3464 _ACEOF
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3468 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3469 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3470 if test x"$gas_flag" = x"no"; then
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3472 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3473 else
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3475 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3477 else
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479 $as_echo "no" >&6; }
3482 # ---------------
3483 # Find C compiler
3484 # ---------------
3486 # If a non-executable a.out is present (e.g. created by GNU as above even if
3487 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3488 # file, even when creating an executable, so an execution test fails.
3489 # Remove possible default executable files to avoid this.
3491 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3492 # Autoconf includes it.
3493 rm -f a.out a.exe b.out
3495 # Find the native compiler
3496 ac_ext=c
3497 ac_cpp='$CPP $CPPFLAGS'
3498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3501 if test -n "$ac_tool_prefix"; then
3502 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3503 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505 $as_echo_n "checking for $ac_word... " >&6; }
3506 if test "${ac_cv_prog_CC+set}" = set; then :
3507 $as_echo_n "(cached) " >&6
3508 else
3509 if test -n "$CC"; then
3510 ac_cv_prog_CC="$CC" # Let the user override the test.
3511 else
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 for as_dir in $PATH
3515 IFS=$as_save_IFS
3516 test -z "$as_dir" && as_dir=.
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3519 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3521 break 2
3523 done
3524 done
3525 IFS=$as_save_IFS
3529 CC=$ac_cv_prog_CC
3530 if test -n "$CC"; then
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3532 $as_echo "$CC" >&6; }
3533 else
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 $as_echo "no" >&6; }
3540 if test -z "$ac_cv_prog_CC"; then
3541 ac_ct_CC=$CC
3542 # Extract the first word of "gcc", so it can be a program name with args.
3543 set dummy gcc; ac_word=$2
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 $as_echo_n "checking for $ac_word... " >&6; }
3546 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3547 $as_echo_n "(cached) " >&6
3548 else
3549 if test -n "$ac_ct_CC"; then
3550 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3551 else
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 for as_dir in $PATH
3555 IFS=$as_save_IFS
3556 test -z "$as_dir" && as_dir=.
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3559 ac_cv_prog_ac_ct_CC="gcc"
3560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 break 2
3563 done
3564 done
3565 IFS=$as_save_IFS
3569 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3570 if test -n "$ac_ct_CC"; then
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3572 $as_echo "$ac_ct_CC" >&6; }
3573 else
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3578 if test "x$ac_ct_CC" = x; then
3579 CC=""
3580 else
3581 case $cross_compiling:$ac_tool_warned in
3582 yes:)
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3585 ac_tool_warned=yes ;;
3586 esac
3587 CC=$ac_ct_CC
3589 else
3590 CC="$ac_cv_prog_CC"
3593 if test -z "$CC"; then
3594 if test -n "$ac_tool_prefix"; then
3595 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3596 set dummy ${ac_tool_prefix}cc; ac_word=$2
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3598 $as_echo_n "checking for $ac_word... " >&6; }
3599 if test "${ac_cv_prog_CC+set}" = set; then :
3600 $as_echo_n "(cached) " >&6
3601 else
3602 if test -n "$CC"; then
3603 ac_cv_prog_CC="$CC" # Let the user override the test.
3604 else
3605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 for as_dir in $PATH
3608 IFS=$as_save_IFS
3609 test -z "$as_dir" && as_dir=.
3610 for ac_exec_ext in '' $ac_executable_extensions; do
3611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3612 ac_cv_prog_CC="${ac_tool_prefix}cc"
3613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3614 break 2
3616 done
3617 done
3618 IFS=$as_save_IFS
3622 CC=$ac_cv_prog_CC
3623 if test -n "$CC"; then
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3625 $as_echo "$CC" >&6; }
3626 else
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628 $as_echo "no" >&6; }
3634 if test -z "$CC"; then
3635 # Extract the first word of "cc", so it can be a program name with args.
3636 set dummy cc; ac_word=$2
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3638 $as_echo_n "checking for $ac_word... " >&6; }
3639 if test "${ac_cv_prog_CC+set}" = set; then :
3640 $as_echo_n "(cached) " >&6
3641 else
3642 if test -n "$CC"; then
3643 ac_cv_prog_CC="$CC" # Let the user override the test.
3644 else
3645 ac_prog_rejected=no
3646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647 for as_dir in $PATH
3649 IFS=$as_save_IFS
3650 test -z "$as_dir" && as_dir=.
3651 for ac_exec_ext in '' $ac_executable_extensions; do
3652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3653 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3654 ac_prog_rejected=yes
3655 continue
3657 ac_cv_prog_CC="cc"
3658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3659 break 2
3661 done
3662 done
3663 IFS=$as_save_IFS
3665 if test $ac_prog_rejected = yes; then
3666 # We found a bogon in the path, so make sure we never use it.
3667 set dummy $ac_cv_prog_CC
3668 shift
3669 if test $# != 0; then
3670 # We chose a different compiler from the bogus one.
3671 # However, it has the same basename, so the bogon will be chosen
3672 # first if we set CC to just the basename; use the full file name.
3673 shift
3674 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3679 CC=$ac_cv_prog_CC
3680 if test -n "$CC"; then
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3682 $as_echo "$CC" >&6; }
3683 else
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 $as_echo "no" >&6; }
3690 if test -z "$CC"; then
3691 if test -n "$ac_tool_prefix"; then
3692 for ac_prog in cl.exe
3694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3695 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if test "${ac_cv_prog_CC+set}" = set; then :
3699 $as_echo_n "(cached) " >&6
3700 else
3701 if test -n "$CC"; then
3702 ac_cv_prog_CC="$CC" # Let the user override the test.
3703 else
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH
3707 IFS=$as_save_IFS
3708 test -z "$as_dir" && as_dir=.
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3711 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 break 2
3715 done
3716 done
3717 IFS=$as_save_IFS
3721 CC=$ac_cv_prog_CC
3722 if test -n "$CC"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3724 $as_echo "$CC" >&6; }
3725 else
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3731 test -n "$CC" && break
3732 done
3734 if test -z "$CC"; then
3735 ac_ct_CC=$CC
3736 for ac_prog in cl.exe
3738 # Extract the first word of "$ac_prog", so it can be a program name with args.
3739 set dummy $ac_prog; ac_word=$2
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3741 $as_echo_n "checking for $ac_word... " >&6; }
3742 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3743 $as_echo_n "(cached) " >&6
3744 else
3745 if test -n "$ac_ct_CC"; then
3746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3747 else
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 for as_dir in $PATH
3751 IFS=$as_save_IFS
3752 test -z "$as_dir" && as_dir=.
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3755 ac_cv_prog_ac_ct_CC="$ac_prog"
3756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 break 2
3759 done
3760 done
3761 IFS=$as_save_IFS
3765 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3766 if test -n "$ac_ct_CC"; then
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3768 $as_echo "$ac_ct_CC" >&6; }
3769 else
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771 $as_echo "no" >&6; }
3775 test -n "$ac_ct_CC" && break
3776 done
3778 if test "x$ac_ct_CC" = x; then
3779 CC=""
3780 else
3781 case $cross_compiling:$ac_tool_warned in
3782 yes:)
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3785 ac_tool_warned=yes ;;
3786 esac
3787 CC=$ac_ct_CC
3794 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3796 as_fn_error "no acceptable C compiler found in \$PATH
3797 See \`config.log' for more details." "$LINENO" 5; }
3799 # Provide some information about the compiler.
3800 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3801 set X $ac_compile
3802 ac_compiler=$2
3803 for ac_option in --version -v -V -qversion; do
3804 { { ac_try="$ac_compiler $ac_option >&5"
3805 case "(($ac_try" in
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3808 esac
3809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3810 $as_echo "$ac_try_echo"; } >&5
3811 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3812 ac_status=$?
3813 if test -s conftest.err; then
3814 sed '10a\
3815 ... rest of stderr output deleted ...
3816 10q' conftest.err >conftest.er1
3817 cat conftest.er1 >&5
3818 rm -f conftest.er1 conftest.err
3820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3821 test $ac_status = 0; }
3822 done
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3828 main ()
3832 return 0;
3834 _ACEOF
3835 ac_clean_files_save=$ac_clean_files
3836 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3837 # Try to create an executable without -o first, disregard a.out.
3838 # It will help us diagnose broken compilers, and finding out an intuition
3839 # of exeext.
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3841 $as_echo_n "checking for C compiler default output file name... " >&6; }
3842 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3844 # The possible output files:
3845 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3847 ac_rmfiles=
3848 for ac_file in $ac_files
3850 case $ac_file in
3851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3852 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3853 esac
3854 done
3855 rm -f $ac_rmfiles
3857 if { { ac_try="$ac_link_default"
3858 case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861 esac
3862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3863 $as_echo "$ac_try_echo"; } >&5
3864 (eval "$ac_link_default") 2>&5
3865 ac_status=$?
3866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3867 test $ac_status = 0; }; then :
3868 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3869 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3870 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3871 # so that the user can short-circuit this test for compilers unknown to
3872 # Autoconf.
3873 for ac_file in $ac_files ''
3875 test -f "$ac_file" || continue
3876 case $ac_file in
3877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3879 [ab].out )
3880 # We found the default executable, but exeext='' is most
3881 # certainly right.
3882 break;;
3883 *.* )
3884 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3885 then :; else
3886 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3888 # We set ac_cv_exeext here because the later test for it is not
3889 # safe: cross compilers may not add the suffix if given an `-o'
3890 # argument, so we may need to know it at that point already.
3891 # Even if this section looks crufty: it has the advantage of
3892 # actually working.
3893 break;;
3895 break;;
3896 esac
3897 done
3898 test "$ac_cv_exeext" = no && ac_cv_exeext=
3900 else
3901 ac_file=''
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3904 $as_echo "$ac_file" >&6; }
3905 if test -z "$ac_file"; then :
3906 $as_echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3911 { as_fn_set_status 77
3912 as_fn_error "C compiler cannot create executables
3913 See \`config.log' for more details." "$LINENO" 5; }; }
3915 ac_exeext=$ac_cv_exeext
3917 # Check that the compiler produces executables we can run. If not, either
3918 # the compiler is broken, or we cross compile.
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3920 $as_echo_n "checking whether the C compiler works... " >&6; }
3921 # If not cross compiling, check that we can run a simple program.
3922 if test "$cross_compiling" != yes; then
3923 if { ac_try='./$ac_file'
3924 { { case "(($ac_try" in
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3927 esac
3928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3929 $as_echo "$ac_try_echo"; } >&5
3930 (eval "$ac_try") 2>&5
3931 ac_status=$?
3932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3933 test $ac_status = 0; }; }; then
3934 cross_compiling=no
3935 else
3936 if test "$cross_compiling" = maybe; then
3937 cross_compiling=yes
3938 else
3939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3941 as_fn_error "cannot run C compiled programs.
3942 If you meant to cross compile, use \`--host'.
3943 See \`config.log' for more details." "$LINENO" 5; }
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3948 $as_echo "yes" >&6; }
3950 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3951 ac_clean_files=$ac_clean_files_save
3952 # Check that the compiler produces executables we can run. If not, either
3953 # the compiler is broken, or we cross compile.
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3955 $as_echo_n "checking whether we are cross compiling... " >&6; }
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3957 $as_echo "$cross_compiling" >&6; }
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3960 $as_echo_n "checking for suffix of executables... " >&6; }
3961 if { { ac_try="$ac_link"
3962 case "(($ac_try" in
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3965 esac
3966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3967 $as_echo "$ac_try_echo"; } >&5
3968 (eval "$ac_link") 2>&5
3969 ac_status=$?
3970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3971 test $ac_status = 0; }; then :
3972 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3973 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3974 # work properly (i.e., refer to `conftest.exe'), while it won't with
3975 # `rm'.
3976 for ac_file in conftest.exe conftest conftest.*; do
3977 test -f "$ac_file" || continue
3978 case $ac_file in
3979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3980 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3981 break;;
3982 * ) break;;
3983 esac
3984 done
3985 else
3986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3988 as_fn_error "cannot compute suffix of executables: cannot compile and link
3989 See \`config.log' for more details." "$LINENO" 5; }
3991 rm -f conftest$ac_cv_exeext
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3993 $as_echo "$ac_cv_exeext" >&6; }
3995 rm -f conftest.$ac_ext
3996 EXEEXT=$ac_cv_exeext
3997 ac_exeext=$EXEEXT
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3999 $as_echo_n "checking for suffix of object files... " >&6; }
4000 if test "${ac_cv_objext+set}" = set; then :
4001 $as_echo_n "(cached) " >&6
4002 else
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4007 main ()
4011 return 0;
4013 _ACEOF
4014 rm -f conftest.o conftest.obj
4015 if { { ac_try="$ac_compile"
4016 case "(($ac_try" in
4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4019 esac
4020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4021 $as_echo "$ac_try_echo"; } >&5
4022 (eval "$ac_compile") 2>&5
4023 ac_status=$?
4024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4025 test $ac_status = 0; }; then :
4026 for ac_file in conftest.o conftest.obj conftest.*; do
4027 test -f "$ac_file" || continue;
4028 case $ac_file in
4029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4030 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4031 break;;
4032 esac
4033 done
4034 else
4035 $as_echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4040 as_fn_error "cannot compute suffix of object files: cannot compile
4041 See \`config.log' for more details." "$LINENO" 5; }
4043 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4046 $as_echo "$ac_cv_objext" >&6; }
4047 OBJEXT=$ac_cv_objext
4048 ac_objext=$OBJEXT
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4050 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4051 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4052 $as_echo_n "(cached) " >&6
4053 else
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4058 main ()
4060 #ifndef __GNUC__
4061 choke me
4062 #endif
4065 return 0;
4067 _ACEOF
4068 if ac_fn_c_try_compile "$LINENO"; then :
4069 ac_compiler_gnu=yes
4070 else
4071 ac_compiler_gnu=no
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4078 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4079 if test $ac_compiler_gnu = yes; then
4080 GCC=yes
4081 else
4082 GCC=
4084 ac_test_CFLAGS=${CFLAGS+set}
4085 ac_save_CFLAGS=$CFLAGS
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4087 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4088 if test "${ac_cv_prog_cc_g+set}" = set; then :
4089 $as_echo_n "(cached) " >&6
4090 else
4091 ac_save_c_werror_flag=$ac_c_werror_flag
4092 ac_c_werror_flag=yes
4093 ac_cv_prog_cc_g=no
4094 CFLAGS="-g"
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4099 main ()
4103 return 0;
4105 _ACEOF
4106 if ac_fn_c_try_compile "$LINENO"; then :
4107 ac_cv_prog_cc_g=yes
4108 else
4109 CFLAGS=""
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4114 main ()
4118 return 0;
4120 _ACEOF
4121 if ac_fn_c_try_compile "$LINENO"; then :
4123 else
4124 ac_c_werror_flag=$ac_save_c_werror_flag
4125 CFLAGS="-g"
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4130 main ()
4134 return 0;
4136 _ACEOF
4137 if ac_fn_c_try_compile "$LINENO"; then :
4138 ac_cv_prog_cc_g=yes
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 ac_c_werror_flag=$ac_save_c_werror_flag
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4148 $as_echo "$ac_cv_prog_cc_g" >&6; }
4149 if test "$ac_test_CFLAGS" = set; then
4150 CFLAGS=$ac_save_CFLAGS
4151 elif test $ac_cv_prog_cc_g = yes; then
4152 if test "$GCC" = yes; then
4153 CFLAGS="-g -O2"
4154 else
4155 CFLAGS="-g"
4157 else
4158 if test "$GCC" = yes; then
4159 CFLAGS="-O2"
4160 else
4161 CFLAGS=
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4165 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4166 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 ac_cv_prog_cc_c89=no
4170 ac_save_CC=$CC
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4173 #include <stdarg.h>
4174 #include <stdio.h>
4175 #include <sys/types.h>
4176 #include <sys/stat.h>
4177 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4178 struct buf { int x; };
4179 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4180 static char *e (p, i)
4181 char **p;
4182 int i;
4184 return p[i];
4186 static char *f (char * (*g) (char **, int), char **p, ...)
4188 char *s;
4189 va_list v;
4190 va_start (v,p);
4191 s = g (p, va_arg (v,int));
4192 va_end (v);
4193 return s;
4196 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4197 function prototypes and stuff, but not '\xHH' hex character constants.
4198 These don't provoke an error unfortunately, instead are silently treated
4199 as 'x'. The following induces an error, until -std is added to get
4200 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4201 array size at least. It's necessary to write '\x00'==0 to get something
4202 that's true only with -std. */
4203 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4205 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4206 inside strings and character constants. */
4207 #define FOO(x) 'x'
4208 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4210 int test (int i, double x);
4211 struct s1 {int (*f) (int a);};
4212 struct s2 {int (*f) (double a);};
4213 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4214 int argc;
4215 char **argv;
4217 main ()
4219 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4221 return 0;
4223 _ACEOF
4224 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4225 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4227 CC="$ac_save_CC $ac_arg"
4228 if ac_fn_c_try_compile "$LINENO"; then :
4229 ac_cv_prog_cc_c89=$ac_arg
4231 rm -f core conftest.err conftest.$ac_objext
4232 test "x$ac_cv_prog_cc_c89" != "xno" && break
4233 done
4234 rm -f conftest.$ac_ext
4235 CC=$ac_save_CC
4238 # AC_CACHE_VAL
4239 case "x$ac_cv_prog_cc_c89" in
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4242 $as_echo "none needed" >&6; } ;;
4243 xno)
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4245 $as_echo "unsupported" >&6; } ;;
4247 CC="$CC $ac_cv_prog_cc_c89"
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4249 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4250 esac
4251 if test "x$ac_cv_prog_cc_c89" != xno; then :
4255 ac_ext=c
4256 ac_cpp='$CPP $CPPFLAGS'
4257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261 if test "x$CC" != xcc; then
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4263 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4264 else
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4266 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4268 set dummy $CC; ac_cc=`$as_echo "$2" |
4269 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4270 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4271 $as_echo_n "(cached) " >&6
4272 else
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4277 main ()
4281 return 0;
4283 _ACEOF
4284 # Make sure it works both with $CC and with simple cc.
4285 # We do the test twice because some compilers refuse to overwrite an
4286 # existing .o file with -o, though they will create one.
4287 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4288 rm -f conftest2.*
4289 if { { case "(($ac_try" in
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4292 esac
4293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4294 $as_echo "$ac_try_echo"; } >&5
4295 (eval "$ac_try") 2>&5
4296 ac_status=$?
4297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4298 test $ac_status = 0; } &&
4299 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4302 esac
4303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4304 $as_echo "$ac_try_echo"; } >&5
4305 (eval "$ac_try") 2>&5
4306 ac_status=$?
4307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4308 test $ac_status = 0; };
4309 then
4310 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4311 if test "x$CC" != xcc; then
4312 # Test first that cc exists at all.
4313 if { ac_try='cc -c conftest.$ac_ext >&5'
4314 { { case "(($ac_try" in
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4317 esac
4318 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4319 $as_echo "$ac_try_echo"; } >&5
4320 (eval "$ac_try") 2>&5
4321 ac_status=$?
4322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4323 test $ac_status = 0; }; }; then
4324 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4325 rm -f conftest2.*
4326 if { { case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4329 esac
4330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4331 $as_echo "$ac_try_echo"; } >&5
4332 (eval "$ac_try") 2>&5
4333 ac_status=$?
4334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4335 test $ac_status = 0; } &&
4336 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4339 esac
4340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4341 $as_echo "$ac_try_echo"; } >&5
4342 (eval "$ac_try") 2>&5
4343 ac_status=$?
4344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4345 test $ac_status = 0; };
4346 then
4347 # cc works too.
4349 else
4350 # cc exists but doesn't like -o.
4351 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4355 else
4356 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4358 rm -f core conftest*
4361 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4363 $as_echo "yes" >&6; }
4364 else
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4368 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4372 # expand $ac_aux_dir to an absolute path
4373 am_aux_dir=`cd $ac_aux_dir && pwd`
4375 # FIXME: we rely on the cache variable name because
4376 # there is no other way.
4377 set dummy $CC
4378 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4379 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4380 if test "$am_t" != yes; then
4381 # Losing compiler, so override with the script.
4382 # FIXME: It is wrong to rewrite CC.
4383 # But if we don't then we get into trouble of one sort or another.
4384 # A longer-term fix would be to have automake use am__CC in this case,
4385 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4386 CC="$am_aux_dir/compile $CC"
4390 ac_ext=cpp
4391 ac_cpp='$CXXCPP $CPPFLAGS'
4392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4395 if test -z "$CXX"; then
4396 if test -n "$CCC"; then
4397 CXX=$CCC
4398 else
4399 if test -n "$ac_tool_prefix"; then
4400 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4402 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4403 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if test "${ac_cv_prog_CXX+set}" = set; then :
4407 $as_echo_n "(cached) " >&6
4408 else
4409 if test -n "$CXX"; then
4410 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4411 else
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH
4415 IFS=$as_save_IFS
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 break 2
4423 done
4424 done
4425 IFS=$as_save_IFS
4429 CXX=$ac_cv_prog_CXX
4430 if test -n "$CXX"; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4432 $as_echo "$CXX" >&6; }
4433 else
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4439 test -n "$CXX" && break
4440 done
4442 if test -z "$CXX"; then
4443 ac_ct_CXX=$CXX
4444 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4446 # Extract the first word of "$ac_prog", so it can be a program name with args.
4447 set dummy $ac_prog; ac_word=$2
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4449 $as_echo_n "checking for $ac_word... " >&6; }
4450 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4451 $as_echo_n "(cached) " >&6
4452 else
4453 if test -n "$ac_ct_CXX"; then
4454 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4455 else
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 for as_dir in $PATH
4459 IFS=$as_save_IFS
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4463 ac_cv_prog_ac_ct_CXX="$ac_prog"
4464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 break 2
4467 done
4468 done
4469 IFS=$as_save_IFS
4473 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4474 if test -n "$ac_ct_CXX"; then
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4476 $as_echo "$ac_ct_CXX" >&6; }
4477 else
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479 $as_echo "no" >&6; }
4483 test -n "$ac_ct_CXX" && break
4484 done
4486 if test "x$ac_ct_CXX" = x; then
4487 CXX="g++"
4488 else
4489 case $cross_compiling:$ac_tool_warned in
4490 yes:)
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4493 ac_tool_warned=yes ;;
4494 esac
4495 CXX=$ac_ct_CXX
4501 # Provide some information about the compiler.
4502 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4503 set X $ac_compile
4504 ac_compiler=$2
4505 for ac_option in --version -v -V -qversion; do
4506 { { ac_try="$ac_compiler $ac_option >&5"
4507 case "(($ac_try" in
4508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509 *) ac_try_echo=$ac_try;;
4510 esac
4511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4512 $as_echo "$ac_try_echo"; } >&5
4513 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4514 ac_status=$?
4515 if test -s conftest.err; then
4516 sed '10a\
4517 ... rest of stderr output deleted ...
4518 10q' conftest.err >conftest.er1
4519 cat conftest.er1 >&5
4520 rm -f conftest.er1 conftest.err
4522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4523 test $ac_status = 0; }
4524 done
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4527 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4528 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4529 $as_echo_n "(cached) " >&6
4530 else
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4535 main ()
4537 #ifndef __GNUC__
4538 choke me
4539 #endif
4542 return 0;
4544 _ACEOF
4545 if ac_fn_cxx_try_compile "$LINENO"; then :
4546 ac_compiler_gnu=yes
4547 else
4548 ac_compiler_gnu=no
4550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4555 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4556 if test $ac_compiler_gnu = yes; then
4557 GXX=yes
4558 else
4559 GXX=
4561 ac_test_CXXFLAGS=${CXXFLAGS+set}
4562 ac_save_CXXFLAGS=$CXXFLAGS
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4564 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4565 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4566 $as_echo_n "(cached) " >&6
4567 else
4568 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4569 ac_cxx_werror_flag=yes
4570 ac_cv_prog_cxx_g=no
4571 CXXFLAGS="-g"
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4576 main ()
4580 return 0;
4582 _ACEOF
4583 if ac_fn_cxx_try_compile "$LINENO"; then :
4584 ac_cv_prog_cxx_g=yes
4585 else
4586 CXXFLAGS=""
4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h. */
4591 main ()
4595 return 0;
4597 _ACEOF
4598 if ac_fn_cxx_try_compile "$LINENO"; then :
4600 else
4601 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4602 CXXFLAGS="-g"
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4607 main ()
4611 return 0;
4613 _ACEOF
4614 if ac_fn_cxx_try_compile "$LINENO"; then :
4615 ac_cv_prog_cxx_g=yes
4617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4625 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4626 if test "$ac_test_CXXFLAGS" = set; then
4627 CXXFLAGS=$ac_save_CXXFLAGS
4628 elif test $ac_cv_prog_cxx_g = yes; then
4629 if test "$GXX" = yes; then
4630 CXXFLAGS="-g -O2"
4631 else
4632 CXXFLAGS="-g"
4634 else
4635 if test "$GXX" = yes; then
4636 CXXFLAGS="-O2"
4637 else
4638 CXXFLAGS=
4641 ac_ext=c
4642 ac_cpp='$CPP $CPPFLAGS'
4643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4650 if test -n "$ac_tool_prefix"; then
4651 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4652 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4656 $as_echo_n "(cached) " >&6
4657 else
4658 if test -n "$GNATBIND"; then
4659 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4660 else
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 break 2
4672 done
4673 done
4674 IFS=$as_save_IFS
4678 GNATBIND=$ac_cv_prog_GNATBIND
4679 if test -n "$GNATBIND"; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4681 $as_echo "$GNATBIND" >&6; }
4682 else
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684 $as_echo "no" >&6; }
4689 if test -z "$ac_cv_prog_GNATBIND"; then
4690 ac_ct_GNATBIND=$GNATBIND
4691 # Extract the first word of "gnatbind", so it can be a program name with args.
4692 set dummy gnatbind; ac_word=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 if test -n "$ac_ct_GNATBIND"; then
4699 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4700 else
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4712 done
4713 done
4714 IFS=$as_save_IFS
4718 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4719 if test -n "$ac_ct_GNATBIND"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4721 $as_echo "$ac_ct_GNATBIND" >&6; }
4722 else
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4727 if test "x$ac_ct_GNATBIND" = x; then
4728 GNATBIND="no"
4729 else
4730 case $cross_compiling:$ac_tool_warned in
4731 yes:)
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4734 ac_tool_warned=yes ;;
4735 esac
4736 GNATBIND=$ac_ct_GNATBIND
4738 else
4739 GNATBIND="$ac_cv_prog_GNATBIND"
4742 if test -n "$ac_tool_prefix"; then
4743 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4744 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746 $as_echo_n "checking for $ac_word... " >&6; }
4747 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4748 $as_echo_n "(cached) " >&6
4749 else
4750 if test -n "$GNATMAKE"; then
4751 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4752 else
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 break 2
4764 done
4765 done
4766 IFS=$as_save_IFS
4770 GNATMAKE=$ac_cv_prog_GNATMAKE
4771 if test -n "$GNATMAKE"; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4773 $as_echo "$GNATMAKE" >&6; }
4774 else
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776 $as_echo "no" >&6; }
4781 if test -z "$ac_cv_prog_GNATMAKE"; then
4782 ac_ct_GNATMAKE=$GNATMAKE
4783 # Extract the first word of "gnatmake", so it can be a program name with args.
4784 set dummy gnatmake; ac_word=$2
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4786 $as_echo_n "checking for $ac_word... " >&6; }
4787 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 if test -n "$ac_ct_GNATMAKE"; then
4791 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4792 else
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH
4796 IFS=$as_save_IFS
4797 test -z "$as_dir" && as_dir=.
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4800 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 break 2
4804 done
4805 done
4806 IFS=$as_save_IFS
4810 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4811 if test -n "$ac_ct_GNATMAKE"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4813 $as_echo "$ac_ct_GNATMAKE" >&6; }
4814 else
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4819 if test "x$ac_ct_GNATMAKE" = x; then
4820 GNATMAKE="no"
4821 else
4822 case $cross_compiling:$ac_tool_warned in
4823 yes:)
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4826 ac_tool_warned=yes ;;
4827 esac
4828 GNATMAKE=$ac_ct_GNATMAKE
4830 else
4831 GNATMAKE="$ac_cv_prog_GNATMAKE"
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4835 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4836 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4837 $as_echo_n "(cached) " >&6
4838 else
4839 cat >conftest.adb <<EOF
4840 procedure conftest is begin null; end conftest;
4842 acx_cv_cc_gcc_supports_ada=no
4843 # There is a bug in old released versions of GCC which causes the
4844 # driver to exit successfully when the appropriate language module
4845 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4846 # Therefore we must check for the error message as well as an
4847 # unsuccessful exit.
4848 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4849 # given a .adb file, but produce no object file. So we must check
4850 # if an object file was really produced to guard against this.
4851 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4852 if test x"$errors" = x && test -f conftest.$ac_objext; then
4853 acx_cv_cc_gcc_supports_ada=yes
4855 rm -f conftest.*
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4858 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4860 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4861 have_gnat=yes
4862 else
4863 have_gnat=no
4867 # autoconf is lame and doesn't give us any substitution variable for this.
4868 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4869 NO_MINUS_C_MINUS_O=yes
4870 else
4871 OUTPUT_OPTION='-o $@'
4876 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4877 # optimizations to be activated explicitly by the toplevel.
4878 case "$CC" in
4879 */prev-gcc/xgcc*) ;;
4880 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4881 esac
4884 # -------------------------
4885 # Check C compiler features
4886 # -------------------------
4889 ac_ext=c
4890 ac_cpp='$CPP $CPPFLAGS'
4891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4895 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4896 # On Suns, sometimes $CPP names a directory.
4897 if test -n "$CPP" && test -d "$CPP"; then
4898 CPP=
4900 if test -z "$CPP"; then
4901 if test "${ac_cv_prog_CPP+set}" = set; then :
4902 $as_echo_n "(cached) " >&6
4903 else
4904 # Double quotes because CPP needs to be expanded
4905 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4907 ac_preproc_ok=false
4908 for ac_c_preproc_warn_flag in '' yes
4910 # Use a header file that comes with gcc, so configuring glibc
4911 # with a fresh cross-compiler works.
4912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4913 # <limits.h> exists even on freestanding compilers.
4914 # On the NeXT, cc -E runs the code through the compiler's parser,
4915 # not just through cpp. "Syntax error" is here to catch this case.
4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h. */
4918 #ifdef __STDC__
4919 # include <limits.h>
4920 #else
4921 # include <assert.h>
4922 #endif
4923 Syntax error
4924 _ACEOF
4925 if ac_fn_c_try_cpp "$LINENO"; then :
4927 else
4928 # Broken: fails on valid input.
4929 continue
4931 rm -f conftest.err conftest.$ac_ext
4933 # OK, works on sane cases. Now check whether nonexistent headers
4934 # can be detected and how.
4935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4936 /* end confdefs.h. */
4937 #include <ac_nonexistent.h>
4938 _ACEOF
4939 if ac_fn_c_try_cpp "$LINENO"; then :
4940 # Broken: success on invalid input.
4941 continue
4942 else
4943 # Passes both tests.
4944 ac_preproc_ok=:
4945 break
4947 rm -f conftest.err conftest.$ac_ext
4949 done
4950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4951 rm -f conftest.err conftest.$ac_ext
4952 if $ac_preproc_ok; then :
4953 break
4956 done
4957 ac_cv_prog_CPP=$CPP
4960 CPP=$ac_cv_prog_CPP
4961 else
4962 ac_cv_prog_CPP=$CPP
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4965 $as_echo "$CPP" >&6; }
4966 ac_preproc_ok=false
4967 for ac_c_preproc_warn_flag in '' yes
4969 # Use a header file that comes with gcc, so configuring glibc
4970 # with a fresh cross-compiler works.
4971 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4972 # <limits.h> exists even on freestanding compilers.
4973 # On the NeXT, cc -E runs the code through the compiler's parser,
4974 # not just through cpp. "Syntax error" is here to catch this case.
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4977 #ifdef __STDC__
4978 # include <limits.h>
4979 #else
4980 # include <assert.h>
4981 #endif
4982 Syntax error
4983 _ACEOF
4984 if ac_fn_c_try_cpp "$LINENO"; then :
4986 else
4987 # Broken: fails on valid input.
4988 continue
4990 rm -f conftest.err conftest.$ac_ext
4992 # OK, works on sane cases. Now check whether nonexistent headers
4993 # can be detected and how.
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4996 #include <ac_nonexistent.h>
4997 _ACEOF
4998 if ac_fn_c_try_cpp "$LINENO"; then :
4999 # Broken: success on invalid input.
5000 continue
5001 else
5002 # Passes both tests.
5003 ac_preproc_ok=:
5004 break
5006 rm -f conftest.err conftest.$ac_ext
5008 done
5009 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5010 rm -f conftest.err conftest.$ac_ext
5011 if $ac_preproc_ok; then :
5013 else
5014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5016 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5017 See \`config.log' for more details." "$LINENO" 5; }
5020 ac_ext=c
5021 ac_cpp='$CPP $CPPFLAGS'
5022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5028 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5029 if test "${ac_cv_path_GREP+set}" = set; then :
5030 $as_echo_n "(cached) " >&6
5031 else
5032 if test -z "$GREP"; then
5033 ac_path_GREP_found=false
5034 # Loop through the user's path and test for each of PROGNAME-LIST
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5038 IFS=$as_save_IFS
5039 test -z "$as_dir" && as_dir=.
5040 for ac_prog in grep ggrep; do
5041 for ac_exec_ext in '' $ac_executable_extensions; do
5042 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5043 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5044 # Check for GNU ac_path_GREP and select it if it is found.
5045 # Check for GNU $ac_path_GREP
5046 case `"$ac_path_GREP" --version 2>&1` in
5047 *GNU*)
5048 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5050 ac_count=0
5051 $as_echo_n 0123456789 >"conftest.in"
5052 while :
5054 cat "conftest.in" "conftest.in" >"conftest.tmp"
5055 mv "conftest.tmp" "conftest.in"
5056 cp "conftest.in" "conftest.nl"
5057 $as_echo 'GREP' >> "conftest.nl"
5058 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5059 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5060 as_fn_arith $ac_count + 1 && ac_count=$as_val
5061 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5062 # Best one so far, save it but keep looking for a better one
5063 ac_cv_path_GREP="$ac_path_GREP"
5064 ac_path_GREP_max=$ac_count
5066 # 10*(2^10) chars as input seems more than enough
5067 test $ac_count -gt 10 && break
5068 done
5069 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5070 esac
5072 $ac_path_GREP_found && break 3
5073 done
5074 done
5075 done
5076 IFS=$as_save_IFS
5077 if test -z "$ac_cv_path_GREP"; then
5078 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5080 else
5081 ac_cv_path_GREP=$GREP
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5086 $as_echo "$ac_cv_path_GREP" >&6; }
5087 GREP="$ac_cv_path_GREP"
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5091 $as_echo_n "checking for egrep... " >&6; }
5092 if test "${ac_cv_path_EGREP+set}" = set; then :
5093 $as_echo_n "(cached) " >&6
5094 else
5095 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5096 then ac_cv_path_EGREP="$GREP -E"
5097 else
5098 if test -z "$EGREP"; then
5099 ac_path_EGREP_found=false
5100 # Loop through the user's path and test for each of PROGNAME-LIST
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5104 IFS=$as_save_IFS
5105 test -z "$as_dir" && as_dir=.
5106 for ac_prog in egrep; do
5107 for ac_exec_ext in '' $ac_executable_extensions; do
5108 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5109 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5110 # Check for GNU ac_path_EGREP and select it if it is found.
5111 # Check for GNU $ac_path_EGREP
5112 case `"$ac_path_EGREP" --version 2>&1` in
5113 *GNU*)
5114 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5116 ac_count=0
5117 $as_echo_n 0123456789 >"conftest.in"
5118 while :
5120 cat "conftest.in" "conftest.in" >"conftest.tmp"
5121 mv "conftest.tmp" "conftest.in"
5122 cp "conftest.in" "conftest.nl"
5123 $as_echo 'EGREP' >> "conftest.nl"
5124 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5125 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5126 as_fn_arith $ac_count + 1 && ac_count=$as_val
5127 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5128 # Best one so far, save it but keep looking for a better one
5129 ac_cv_path_EGREP="$ac_path_EGREP"
5130 ac_path_EGREP_max=$ac_count
5132 # 10*(2^10) chars as input seems more than enough
5133 test $ac_count -gt 10 && break
5134 done
5135 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5136 esac
5138 $ac_path_EGREP_found && break 3
5139 done
5140 done
5141 done
5142 IFS=$as_save_IFS
5143 if test -z "$ac_cv_path_EGREP"; then
5144 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5146 else
5147 ac_cv_path_EGREP=$EGREP
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5153 $as_echo "$ac_cv_path_EGREP" >&6; }
5154 EGREP="$ac_cv_path_EGREP"
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5158 $as_echo_n "checking for ANSI C header files... " >&6; }
5159 if test "${ac_cv_header_stdc+set}" = set; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163 /* end confdefs.h. */
5164 #include <stdlib.h>
5165 #include <stdarg.h>
5166 #include <string.h>
5167 #include <float.h>
5170 main ()
5174 return 0;
5176 _ACEOF
5177 if ac_fn_c_try_compile "$LINENO"; then :
5178 ac_cv_header_stdc=yes
5179 else
5180 ac_cv_header_stdc=no
5182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5184 if test $ac_cv_header_stdc = yes; then
5185 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187 /* end confdefs.h. */
5188 #include <string.h>
5190 _ACEOF
5191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5192 $EGREP "memchr" >/dev/null 2>&1; then :
5194 else
5195 ac_cv_header_stdc=no
5197 rm -f conftest*
5201 if test $ac_cv_header_stdc = yes; then
5202 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5205 #include <stdlib.h>
5207 _ACEOF
5208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5209 $EGREP "free" >/dev/null 2>&1; then :
5211 else
5212 ac_cv_header_stdc=no
5214 rm -f conftest*
5218 if test $ac_cv_header_stdc = yes; then
5219 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5220 if test "$cross_compiling" = yes; then :
5222 else
5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h. */
5225 #include <ctype.h>
5226 #include <stdlib.h>
5227 #if ((' ' & 0x0FF) == 0x020)
5228 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5229 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5230 #else
5231 # define ISLOWER(c) \
5232 (('a' <= (c) && (c) <= 'i') \
5233 || ('j' <= (c) && (c) <= 'r') \
5234 || ('s' <= (c) && (c) <= 'z'))
5235 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5236 #endif
5238 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5240 main ()
5242 int i;
5243 for (i = 0; i < 256; i++)
5244 if (XOR (islower (i), ISLOWER (i))
5245 || toupper (i) != TOUPPER (i))
5246 return 2;
5247 return 0;
5249 _ACEOF
5250 if ac_fn_c_try_run "$LINENO"; then :
5252 else
5253 ac_cv_header_stdc=no
5255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5256 conftest.$ac_objext conftest.beam conftest.$ac_ext
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5262 $as_echo "$ac_cv_header_stdc" >&6; }
5263 if test $ac_cv_header_stdc = yes; then
5265 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5269 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5270 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5271 inttypes.h stdint.h unistd.h
5272 do :
5273 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5274 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5276 eval as_val=\$$as_ac_Header
5277 if test "x$as_val" = x""yes; then :
5278 cat >>confdefs.h <<_ACEOF
5279 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5280 _ACEOF
5284 done
5288 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5289 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5290 MINIX=yes
5291 else
5292 MINIX=
5296 if test "$MINIX" = yes; then
5298 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5301 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5304 $as_echo "#define _MINIX 1" >>confdefs.h
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5310 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5311 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5312 $as_echo_n "(cached) " >&6
5313 else
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5317 # define __EXTENSIONS__ 1
5318 $ac_includes_default
5320 main ()
5324 return 0;
5326 _ACEOF
5327 if ac_fn_c_try_compile "$LINENO"; then :
5328 ac_cv_safe_to_define___extensions__=yes
5329 else
5330 ac_cv_safe_to_define___extensions__=no
5332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5335 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5336 test $ac_cv_safe_to_define___extensions__ = yes &&
5337 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5339 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5341 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5343 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5345 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5348 ac_ext=c
5349 ac_cpp='$CPP $CPPFLAGS'
5350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5354 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5355 # On Suns, sometimes $CPP names a directory.
5356 if test -n "$CPP" && test -d "$CPP"; then
5357 CPP=
5359 if test -z "$CPP"; then
5360 if test "${ac_cv_prog_CPP+set}" = set; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5363 # Double quotes because CPP needs to be expanded
5364 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5366 ac_preproc_ok=false
5367 for ac_c_preproc_warn_flag in '' yes
5369 # Use a header file that comes with gcc, so configuring glibc
5370 # with a fresh cross-compiler works.
5371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5372 # <limits.h> exists even on freestanding compilers.
5373 # On the NeXT, cc -E runs the code through the compiler's parser,
5374 # not just through cpp. "Syntax error" is here to catch this case.
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5377 #ifdef __STDC__
5378 # include <limits.h>
5379 #else
5380 # include <assert.h>
5381 #endif
5382 Syntax error
5383 _ACEOF
5384 if ac_fn_c_try_cpp "$LINENO"; then :
5386 else
5387 # Broken: fails on valid input.
5388 continue
5390 rm -f conftest.err conftest.$ac_ext
5392 # OK, works on sane cases. Now check whether nonexistent headers
5393 # can be detected and how.
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5396 #include <ac_nonexistent.h>
5397 _ACEOF
5398 if ac_fn_c_try_cpp "$LINENO"; then :
5399 # Broken: success on invalid input.
5400 continue
5401 else
5402 # Passes both tests.
5403 ac_preproc_ok=:
5404 break
5406 rm -f conftest.err conftest.$ac_ext
5408 done
5409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5410 rm -f conftest.err conftest.$ac_ext
5411 if $ac_preproc_ok; then :
5412 break
5415 done
5416 ac_cv_prog_CPP=$CPP
5419 CPP=$ac_cv_prog_CPP
5420 else
5421 ac_cv_prog_CPP=$CPP
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5424 $as_echo "$CPP" >&6; }
5425 ac_preproc_ok=false
5426 for ac_c_preproc_warn_flag in '' yes
5428 # Use a header file that comes with gcc, so configuring glibc
5429 # with a fresh cross-compiler works.
5430 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5431 # <limits.h> exists even on freestanding compilers.
5432 # On the NeXT, cc -E runs the code through the compiler's parser,
5433 # not just through cpp. "Syntax error" is here to catch this case.
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5436 #ifdef __STDC__
5437 # include <limits.h>
5438 #else
5439 # include <assert.h>
5440 #endif
5441 Syntax error
5442 _ACEOF
5443 if ac_fn_c_try_cpp "$LINENO"; then :
5445 else
5446 # Broken: fails on valid input.
5447 continue
5449 rm -f conftest.err conftest.$ac_ext
5451 # OK, works on sane cases. Now check whether nonexistent headers
5452 # can be detected and how.
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454 /* end confdefs.h. */
5455 #include <ac_nonexistent.h>
5456 _ACEOF
5457 if ac_fn_c_try_cpp "$LINENO"; then :
5458 # Broken: success on invalid input.
5459 continue
5460 else
5461 # Passes both tests.
5462 ac_preproc_ok=:
5463 break
5465 rm -f conftest.err conftest.$ac_ext
5467 done
5468 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5469 rm -f conftest.err conftest.$ac_ext
5470 if $ac_preproc_ok; then :
5472 else
5473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5475 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5476 See \`config.log' for more details." "$LINENO" 5; }
5479 ac_ext=c
5480 ac_cpp='$CPP $CPPFLAGS'
5481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5486 $as_echo_n "checking for inline... " >&6; }
5487 if test "${ac_cv_c_inline+set}" = set; then :
5488 $as_echo_n "(cached) " >&6
5489 else
5490 ac_cv_c_inline=no
5491 for ac_kw in inline __inline__ __inline; do
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5494 #ifndef __cplusplus
5495 typedef int foo_t;
5496 static $ac_kw foo_t static_foo () {return 0; }
5497 $ac_kw foo_t foo () {return 0; }
5498 #endif
5500 _ACEOF
5501 if ac_fn_c_try_compile "$LINENO"; then :
5502 ac_cv_c_inline=$ac_kw
5504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505 test "$ac_cv_c_inline" != no && break
5506 done
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5510 $as_echo "$ac_cv_c_inline" >&6; }
5512 case $ac_cv_c_inline in
5513 inline | yes) ;;
5515 case $ac_cv_c_inline in
5516 no) ac_val=;;
5517 *) ac_val=$ac_cv_c_inline;;
5518 esac
5519 cat >>confdefs.h <<_ACEOF
5520 #ifndef __cplusplus
5521 #define inline $ac_val
5522 #endif
5523 _ACEOF
5525 esac
5528 # Check whether --enable-largefile was given.
5529 if test "${enable_largefile+set}" = set; then :
5530 enableval=$enable_largefile;
5533 if test "$enable_largefile" != no; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5536 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5537 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 ac_cv_sys_largefile_CC=no
5541 if test "$GCC" != yes; then
5542 ac_save_CC=$CC
5543 while :; do
5544 # IRIX 6.2 and later do not support large files by default,
5545 # so use the C compiler's -n32 option if that helps.
5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h. */
5548 #include <sys/types.h>
5549 /* Check that off_t can represent 2**63 - 1 correctly.
5550 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5551 since some C++ compilers masquerading as C compilers
5552 incorrectly reject 9223372036854775807. */
5553 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5554 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5555 && LARGE_OFF_T % 2147483647 == 1)
5556 ? 1 : -1];
5558 main ()
5562 return 0;
5564 _ACEOF
5565 if ac_fn_c_try_compile "$LINENO"; then :
5566 break
5568 rm -f core conftest.err conftest.$ac_objext
5569 CC="$CC -n32"
5570 if ac_fn_c_try_compile "$LINENO"; then :
5571 ac_cv_sys_largefile_CC=' -n32'; break
5573 rm -f core conftest.err conftest.$ac_objext
5574 break
5575 done
5576 CC=$ac_save_CC
5577 rm -f conftest.$ac_ext
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5581 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5582 if test "$ac_cv_sys_largefile_CC" != no; then
5583 CC=$CC$ac_cv_sys_largefile_CC
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5587 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5588 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5589 $as_echo_n "(cached) " >&6
5590 else
5591 while :; do
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5594 #include <sys/types.h>
5595 /* Check that off_t can represent 2**63 - 1 correctly.
5596 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5597 since some C++ compilers masquerading as C compilers
5598 incorrectly reject 9223372036854775807. */
5599 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5600 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5601 && LARGE_OFF_T % 2147483647 == 1)
5602 ? 1 : -1];
5604 main ()
5608 return 0;
5610 _ACEOF
5611 if ac_fn_c_try_compile "$LINENO"; then :
5612 ac_cv_sys_file_offset_bits=no; break
5614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5617 #define _FILE_OFFSET_BITS 64
5618 #include <sys/types.h>
5619 /* Check that off_t can represent 2**63 - 1 correctly.
5620 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5621 since some C++ compilers masquerading as C compilers
5622 incorrectly reject 9223372036854775807. */
5623 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5624 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5625 && LARGE_OFF_T % 2147483647 == 1)
5626 ? 1 : -1];
5628 main ()
5632 return 0;
5634 _ACEOF
5635 if ac_fn_c_try_compile "$LINENO"; then :
5636 ac_cv_sys_file_offset_bits=64; break
5638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639 ac_cv_sys_file_offset_bits=unknown
5640 break
5641 done
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5644 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5645 case $ac_cv_sys_file_offset_bits in #(
5646 no | unknown) ;;
5648 cat >>confdefs.h <<_ACEOF
5649 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5650 _ACEOF
5652 esac
5653 rm -rf conftest*
5654 if test $ac_cv_sys_file_offset_bits = unknown; then
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5656 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5657 if test "${ac_cv_sys_large_files+set}" = set; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 while :; do
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5663 #include <sys/types.h>
5664 /* Check that off_t can represent 2**63 - 1 correctly.
5665 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5666 since some C++ compilers masquerading as C compilers
5667 incorrectly reject 9223372036854775807. */
5668 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5669 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5670 && LARGE_OFF_T % 2147483647 == 1)
5671 ? 1 : -1];
5673 main ()
5677 return 0;
5679 _ACEOF
5680 if ac_fn_c_try_compile "$LINENO"; then :
5681 ac_cv_sys_large_files=no; break
5683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h. */
5686 #define _LARGE_FILES 1
5687 #include <sys/types.h>
5688 /* Check that off_t can represent 2**63 - 1 correctly.
5689 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5690 since some C++ compilers masquerading as C compilers
5691 incorrectly reject 9223372036854775807. */
5692 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5693 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5694 && LARGE_OFF_T % 2147483647 == 1)
5695 ? 1 : -1];
5697 main ()
5701 return 0;
5703 _ACEOF
5704 if ac_fn_c_try_compile "$LINENO"; then :
5705 ac_cv_sys_large_files=1; break
5707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708 ac_cv_sys_large_files=unknown
5709 break
5710 done
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5713 $as_echo "$ac_cv_sys_large_files" >&6; }
5714 case $ac_cv_sys_large_files in #(
5715 no | unknown) ;;
5717 cat >>confdefs.h <<_ACEOF
5718 #define _LARGE_FILES $ac_cv_sys_large_files
5719 _ACEOF
5721 esac
5722 rm -rf conftest*
5727 # sizeof(char) is 1 by definition.
5728 # The cast to long int works around a bug in the HP C Compiler
5729 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5730 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5731 # This bug is HP SR number 8606223364.
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5733 $as_echo_n "checking size of void *... " >&6; }
5734 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5736 else
5737 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5739 else
5740 if test "$ac_cv_type_void_p" = yes; then
5741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5743 { as_fn_set_status 77
5744 as_fn_error "cannot compute sizeof (void *)
5745 See \`config.log' for more details." "$LINENO" 5; }; }
5746 else
5747 ac_cv_sizeof_void_p=0
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5753 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5757 cat >>confdefs.h <<_ACEOF
5758 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5759 _ACEOF
5762 # The cast to long int works around a bug in the HP C Compiler
5763 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5764 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5765 # This bug is HP SR number 8606223364.
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5767 $as_echo_n "checking size of short... " >&6; }
5768 if test "${ac_cv_sizeof_short+set}" = set; then :
5769 $as_echo_n "(cached) " >&6
5770 else
5771 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5773 else
5774 if test "$ac_cv_type_short" = yes; then
5775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5777 { as_fn_set_status 77
5778 as_fn_error "cannot compute sizeof (short)
5779 See \`config.log' for more details." "$LINENO" 5; }; }
5780 else
5781 ac_cv_sizeof_short=0
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5787 $as_echo "$ac_cv_sizeof_short" >&6; }
5791 cat >>confdefs.h <<_ACEOF
5792 #define SIZEOF_SHORT $ac_cv_sizeof_short
5793 _ACEOF
5796 # The cast to long int works around a bug in the HP C Compiler
5797 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5798 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5799 # This bug is HP SR number 8606223364.
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5801 $as_echo_n "checking size of int... " >&6; }
5802 if test "${ac_cv_sizeof_int+set}" = set; then :
5803 $as_echo_n "(cached) " >&6
5804 else
5805 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5807 else
5808 if test "$ac_cv_type_int" = yes; then
5809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5811 { as_fn_set_status 77
5812 as_fn_error "cannot compute sizeof (int)
5813 See \`config.log' for more details." "$LINENO" 5; }; }
5814 else
5815 ac_cv_sizeof_int=0
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5821 $as_echo "$ac_cv_sizeof_int" >&6; }
5825 cat >>confdefs.h <<_ACEOF
5826 #define SIZEOF_INT $ac_cv_sizeof_int
5827 _ACEOF
5830 # The cast to long int works around a bug in the HP C Compiler
5831 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5832 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5833 # This bug is HP SR number 8606223364.
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5835 $as_echo_n "checking size of long... " >&6; }
5836 if test "${ac_cv_sizeof_long+set}" = set; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5841 else
5842 if test "$ac_cv_type_long" = yes; then
5843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5845 { as_fn_set_status 77
5846 as_fn_error "cannot compute sizeof (long)
5847 See \`config.log' for more details." "$LINENO" 5; }; }
5848 else
5849 ac_cv_sizeof_long=0
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5855 $as_echo "$ac_cv_sizeof_long" >&6; }
5859 cat >>confdefs.h <<_ACEOF
5860 #define SIZEOF_LONG $ac_cv_sizeof_long
5861 _ACEOF
5864 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5865 if test "x$ac_cv_type_long_long" = x""yes; then :
5867 cat >>confdefs.h <<_ACEOF
5868 #define HAVE_LONG_LONG 1
5869 _ACEOF
5871 # The cast to long int works around a bug in the HP C Compiler
5872 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5873 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5874 # This bug is HP SR number 8606223364.
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5876 $as_echo_n "checking size of long long... " >&6; }
5877 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5878 $as_echo_n "(cached) " >&6
5879 else
5880 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5882 else
5883 if test "$ac_cv_type_long_long" = yes; then
5884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5886 { as_fn_set_status 77
5887 as_fn_error "cannot compute sizeof (long long)
5888 See \`config.log' for more details." "$LINENO" 5; }; }
5889 else
5890 ac_cv_sizeof_long_long=0
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5896 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5900 cat >>confdefs.h <<_ACEOF
5901 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5902 _ACEOF
5907 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5908 if test "x$ac_cv_type___int64" = x""yes; then :
5910 cat >>confdefs.h <<_ACEOF
5911 #define HAVE___INT64 1
5912 _ACEOF
5914 # The cast to long int works around a bug in the HP C Compiler
5915 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5916 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5917 # This bug is HP SR number 8606223364.
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5919 $as_echo_n "checking size of __int64... " >&6; }
5920 if test "${ac_cv_sizeof___int64+set}" = set; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5925 else
5926 if test "$ac_cv_type___int64" = yes; then
5927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5929 { as_fn_set_status 77
5930 as_fn_error "cannot compute sizeof (__int64)
5931 See \`config.log' for more details." "$LINENO" 5; }; }
5932 else
5933 ac_cv_sizeof___int64=0
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5939 $as_echo "$ac_cv_sizeof___int64" >&6; }
5943 cat >>confdefs.h <<_ACEOF
5944 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5945 _ACEOF
5950 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5951 case $ac_cv_c_int8_t in #(
5952 no|yes) ;; #(
5955 cat >>confdefs.h <<_ACEOF
5956 #define int8_t $ac_cv_c_int8_t
5957 _ACEOF
5959 esac
5961 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5962 case $ac_cv_c_int16_t in #(
5963 no|yes) ;; #(
5966 cat >>confdefs.h <<_ACEOF
5967 #define int16_t $ac_cv_c_int16_t
5968 _ACEOF
5970 esac
5972 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5973 case $ac_cv_c_int32_t in #(
5974 no|yes) ;; #(
5977 cat >>confdefs.h <<_ACEOF
5978 #define int32_t $ac_cv_c_int32_t
5979 _ACEOF
5981 esac
5983 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5984 case $ac_cv_c_int64_t in #(
5985 no|yes) ;; #(
5988 cat >>confdefs.h <<_ACEOF
5989 #define int64_t $ac_cv_c_int64_t
5990 _ACEOF
5992 esac
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5996 $as_echo_n "checking for long long int... " >&6; }
5997 if test "${ac_cv_type_long_long_int+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001 /* end confdefs.h. */
6003 /* For now, do not test the preprocessor; as of 2007 there are too many
6004 implementations with broken preprocessors. Perhaps this can
6005 be revisited in 2012. In the meantime, code should not expect
6006 #if to work with literals wider than 32 bits. */
6007 /* Test literals. */
6008 long long int ll = 9223372036854775807ll;
6009 long long int nll = -9223372036854775807LL;
6010 unsigned long long int ull = 18446744073709551615ULL;
6011 /* Test constant expressions. */
6012 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6013 ? 1 : -1)];
6014 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6015 ? 1 : -1)];
6016 int i = 63;
6018 main ()
6020 /* Test availability of runtime routines for shift and division. */
6021 long long int llmax = 9223372036854775807ll;
6022 unsigned long long int ullmax = 18446744073709551615ull;
6023 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6024 | (llmax / ll) | (llmax % ll)
6025 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6026 | (ullmax / ull) | (ullmax % ull));
6028 return 0;
6031 _ACEOF
6032 if ac_fn_c_try_link "$LINENO"; then :
6033 if test "$cross_compiling" = yes; then :
6034 ac_cv_type_long_long_int=yes
6035 else
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6038 #include <limits.h>
6039 #ifndef LLONG_MAX
6040 # define HALF \
6041 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6042 # define LLONG_MAX (HALF - 1 + HALF)
6043 #endif
6045 main ()
6047 long long int n = 1;
6048 int i;
6049 for (i = 0; ; i++)
6051 long long int m = n << i;
6052 if (m >> i != n)
6053 return 1;
6054 if (LLONG_MAX / 2 < m)
6055 break;
6057 return 0;
6059 return 0;
6061 _ACEOF
6062 if ac_fn_c_try_run "$LINENO"; then :
6063 ac_cv_type_long_long_int=yes
6064 else
6065 ac_cv_type_long_long_int=no
6067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6068 conftest.$ac_objext conftest.beam conftest.$ac_ext
6071 else
6072 ac_cv_type_long_long_int=no
6074 rm -f core conftest.err conftest.$ac_objext \
6075 conftest$ac_exeext conftest.$ac_ext
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6078 $as_echo "$ac_cv_type_long_long_int" >&6; }
6079 if test $ac_cv_type_long_long_int = yes; then
6081 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6087 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6088 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6090 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6092 else
6093 test $ac_cv_type_long_long_int = yes \
6094 && ac_type='long long int' \
6095 || ac_type='long int'
6097 cat >>confdefs.h <<_ACEOF
6098 #define intmax_t $ac_type
6099 _ACEOF
6105 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6106 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6108 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6110 else
6111 for ac_type in 'int' 'long int' 'long long int'; do
6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6114 $ac_includes_default
6116 main ()
6118 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6119 test_array [0] = 0
6122 return 0;
6124 _ACEOF
6125 if ac_fn_c_try_compile "$LINENO"; then :
6127 cat >>confdefs.h <<_ACEOF
6128 #define intptr_t $ac_type
6129 _ACEOF
6131 ac_type=
6133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134 test -z "$ac_type" && break
6135 done
6139 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6140 case $ac_cv_c_uint8_t in #(
6141 no|yes) ;; #(
6144 $as_echo "#define _UINT8_T 1" >>confdefs.h
6147 cat >>confdefs.h <<_ACEOF
6148 #define uint8_t $ac_cv_c_uint8_t
6149 _ACEOF
6151 esac
6153 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6154 case $ac_cv_c_uint16_t in #(
6155 no|yes) ;; #(
6159 cat >>confdefs.h <<_ACEOF
6160 #define uint16_t $ac_cv_c_uint16_t
6161 _ACEOF
6163 esac
6165 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6166 case $ac_cv_c_uint32_t in #(
6167 no|yes) ;; #(
6170 $as_echo "#define _UINT32_T 1" >>confdefs.h
6173 cat >>confdefs.h <<_ACEOF
6174 #define uint32_t $ac_cv_c_uint32_t
6175 _ACEOF
6177 esac
6179 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6180 case $ac_cv_c_uint64_t in #(
6181 no|yes) ;; #(
6184 $as_echo "#define _UINT64_T 1" >>confdefs.h
6187 cat >>confdefs.h <<_ACEOF
6188 #define uint64_t $ac_cv_c_uint64_t
6189 _ACEOF
6191 esac
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6195 $as_echo_n "checking for unsigned long long int... " >&6; }
6196 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6197 $as_echo_n "(cached) " >&6
6198 else
6199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6200 /* end confdefs.h. */
6202 /* For now, do not test the preprocessor; as of 2007 there are too many
6203 implementations with broken preprocessors. Perhaps this can
6204 be revisited in 2012. In the meantime, code should not expect
6205 #if to work with literals wider than 32 bits. */
6206 /* Test literals. */
6207 long long int ll = 9223372036854775807ll;
6208 long long int nll = -9223372036854775807LL;
6209 unsigned long long int ull = 18446744073709551615ULL;
6210 /* Test constant expressions. */
6211 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6212 ? 1 : -1)];
6213 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6214 ? 1 : -1)];
6215 int i = 63;
6217 main ()
6219 /* Test availability of runtime routines for shift and division. */
6220 long long int llmax = 9223372036854775807ll;
6221 unsigned long long int ullmax = 18446744073709551615ull;
6222 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6223 | (llmax / ll) | (llmax % ll)
6224 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6225 | (ullmax / ull) | (ullmax % ull));
6227 return 0;
6230 _ACEOF
6231 if ac_fn_c_try_link "$LINENO"; then :
6232 ac_cv_type_unsigned_long_long_int=yes
6233 else
6234 ac_cv_type_unsigned_long_long_int=no
6236 rm -f core conftest.err conftest.$ac_objext \
6237 conftest$ac_exeext conftest.$ac_ext
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6240 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6241 if test $ac_cv_type_unsigned_long_long_int = yes; then
6243 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6249 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6250 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6252 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6254 else
6255 test $ac_cv_type_unsigned_long_long_int = yes \
6256 && ac_type='unsigned long long int' \
6257 || ac_type='unsigned long int'
6259 cat >>confdefs.h <<_ACEOF
6260 #define uintmax_t $ac_type
6261 _ACEOF
6267 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6268 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6270 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6272 else
6273 for ac_type in 'unsigned int' 'unsigned long int' \
6274 'unsigned long long int'; do
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6277 $ac_includes_default
6279 main ()
6281 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6282 test_array [0] = 0
6285 return 0;
6287 _ACEOF
6288 if ac_fn_c_try_compile "$LINENO"; then :
6290 cat >>confdefs.h <<_ACEOF
6291 #define uintptr_t $ac_type
6292 _ACEOF
6294 ac_type=
6296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6297 test -z "$ac_type" && break
6298 done
6315 # ---------------------
6316 # Warnings and checking
6317 # ---------------------
6319 # Check $CC warning features (if it's GCC).
6320 # We want to use -pedantic, but we don't want warnings about
6321 # * 'long long'
6322 # * variadic macros
6323 # * overlong strings
6324 # So, we only use -pedantic if we can disable those warnings.
6326 loose_warn=
6327 save_CFLAGS="$CFLAGS"
6328 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6329 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6332 $as_echo_n "checking whether $CC supports $option... " >&6; }
6333 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6334 $as_echo_n "(cached) " >&6
6335 else
6336 CFLAGS="$option"
6337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6338 /* end confdefs.h. */
6341 main ()
6345 return 0;
6347 _ACEOF
6348 if ac_fn_c_try_compile "$LINENO"; then :
6349 eval "$as_acx_Woption=yes"
6350 else
6351 eval "$as_acx_Woption=no"
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6356 eval ac_res=\$$as_acx_Woption
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6358 $as_echo "$ac_res" >&6; }
6359 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6360 loose_warn="$loose_warn${loose_warn:+ }$option"
6362 done
6363 CFLAGS="$save_CFLAGS"
6365 c_loose_warn=
6366 save_CFLAGS="$CFLAGS"
6367 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6368 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6371 $as_echo_n "checking whether $CC supports $option... " >&6; }
6372 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6373 $as_echo_n "(cached) " >&6
6374 else
6375 CFLAGS="$option"
6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h. */
6380 main ()
6384 return 0;
6386 _ACEOF
6387 if ac_fn_c_try_compile "$LINENO"; then :
6388 eval "$as_acx_Woption=yes"
6389 else
6390 eval "$as_acx_Woption=no"
6392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6395 eval ac_res=\$$as_acx_Woption
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6397 $as_echo "$ac_res" >&6; }
6398 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6399 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6401 done
6402 CFLAGS="$save_CFLAGS"
6404 strict_warn=
6405 save_CFLAGS="$CFLAGS"
6406 for option in -Wmissing-format-attribute; do
6407 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6410 $as_echo_n "checking whether $CC supports $option... " >&6; }
6411 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6412 $as_echo_n "(cached) " >&6
6413 else
6414 CFLAGS="$option"
6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6419 main ()
6423 return 0;
6425 _ACEOF
6426 if ac_fn_c_try_compile "$LINENO"; then :
6427 eval "$as_acx_Woption=yes"
6428 else
6429 eval "$as_acx_Woption=no"
6431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6434 eval ac_res=\$$as_acx_Woption
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6436 $as_echo "$ac_res" >&6; }
6437 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6438 strict_warn="$strict_warn${strict_warn:+ }$option"
6440 done
6441 CFLAGS="$save_CFLAGS"
6443 c_strict_warn=
6444 save_CFLAGS="$CFLAGS"
6445 for option in -Wold-style-definition -Wc++-compat; do
6446 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6449 $as_echo_n "checking whether $CC supports $option... " >&6; }
6450 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6451 $as_echo_n "(cached) " >&6
6452 else
6453 CFLAGS="$option"
6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6458 main ()
6462 return 0;
6464 _ACEOF
6465 if ac_fn_c_try_compile "$LINENO"; then :
6466 eval "$as_acx_Woption=yes"
6467 else
6468 eval "$as_acx_Woption=no"
6470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6473 eval ac_res=\$$as_acx_Woption
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6475 $as_echo "$ac_res" >&6; }
6476 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6477 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6479 done
6480 CFLAGS="$save_CFLAGS"
6482 if test "$GCC" = yes; then :
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6484 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6485 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 save_CFLAGS="$CFLAGS"
6489 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6494 main ()
6498 return 0;
6500 _ACEOF
6501 if ac_fn_c_try_compile "$LINENO"; then :
6502 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6503 else
6504 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507 CFLAGS="$save_CFLAGS"
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6510 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6511 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6512 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6517 # Check whether --enable-werror-always was given.
6518 if test "${enable_werror_always+set}" = set; then :
6519 enableval=$enable_werror_always;
6520 else
6521 enable_werror_always=no
6524 if test $enable_werror_always = yes; then :
6525 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6530 # The above macros do nothing if the compiler is not GCC. However, the
6531 # Makefile has more goo to add other flags, so these variables are used
6532 # to enable warnings only for GCC.
6533 warn_cflags=
6534 warn_cxxflags=
6535 if test "x$GCC" = "xyes"; then
6536 warn_cflags='$(GCC_WARN_CFLAGS)'
6537 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6542 # Enable expensive internal checks
6543 is_release=
6544 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6545 is_release=yes
6548 # Check whether --enable-checking was given.
6549 if test "${enable_checking+set}" = set; then :
6550 enableval=$enable_checking; ac_checking_flags="${enableval}"
6551 else
6553 # Determine the default checks.
6554 if test x$is_release = x ; then
6555 ac_checking_flags=yes
6556 else
6557 ac_checking_flags=release
6561 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6562 for check in release $ac_checking_flags
6564 case $check in
6565 # these set all the flags to specific states
6566 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6567 ac_fold_checking= ; ac_gc_checking=1 ;
6568 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6569 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6570 ac_tree_checking=1 ; ac_valgrind_checking= ;
6571 ac_types_checking=1 ;;
6572 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6573 ac_fold_checking= ; ac_gc_checking= ;
6574 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6575 ac_rtlflag_checking= ; ac_runtime_checking= ;
6576 ac_tree_checking= ; ac_valgrind_checking= ;
6577 ac_types_checking= ;;
6578 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6579 ac_fold_checking=1 ; ac_gc_checking=1 ;
6580 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6581 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6582 ac_tree_checking=1 ; ac_valgrind_checking= ;
6583 ac_types_checking=1 ;;
6584 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6585 ac_fold_checking= ; ac_gc_checking= ;
6586 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6587 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6588 ac_tree_checking= ; ac_valgrind_checking= ;
6589 ac_types_checking= ;;
6590 # these enable particular checks
6591 assert) ac_assert_checking=1 ;;
6592 df) ac_df_checking=1 ;;
6593 fold) ac_fold_checking=1 ;;
6594 gc) ac_gc_checking=1 ;;
6595 gcac) ac_gc_always_collect=1 ;;
6596 gimple) ac_gimple_checking=1 ;;
6597 misc) ac_checking=1 ;;
6598 rtl) ac_rtl_checking=1 ;;
6599 rtlflag) ac_rtlflag_checking=1 ;;
6600 runtime) ac_runtime_checking=1 ;;
6601 tree) ac_tree_checking=1 ;;
6602 types) ac_types_checking=1 ;;
6603 valgrind) ac_valgrind_checking=1 ;;
6604 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6605 esac
6606 done
6607 IFS="$ac_save_IFS"
6609 nocommon_flag=""
6610 if test x$ac_checking != x ; then
6612 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6614 nocommon_flag=-fno-common
6617 if test x$ac_df_checking != x ; then
6619 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6622 if test x$ac_assert_checking != x ; then
6624 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6627 if test x$ac_gimple_checking != x ; then
6629 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6633 if test x$ac_runtime_checking != x ; then
6635 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6638 if test x$ac_tree_checking != x ; then
6640 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6642 TREEBROWSER=tree-browser.o
6644 if test x$ac_types_checking != x ; then
6646 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6650 if test x$ac_rtl_checking != x ; then
6652 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6655 if test x$ac_rtlflag_checking != x ; then
6657 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6660 if test x$ac_gc_checking != x ; then
6662 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6665 if test x$ac_gc_always_collect != x ; then
6667 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6670 if test x$ac_fold_checking != x ; then
6672 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6675 valgrind_path_defines=
6676 valgrind_command=
6678 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6679 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6680 have_valgrind_h=yes
6681 else
6682 have_valgrind_h=no
6687 if test x$ac_valgrind_checking != x ; then
6688 # It is certainly possible that there's valgrind but no valgrind.h.
6689 # GCC relies on making annotations so we must have both.
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6691 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6694 #include <valgrind/memcheck.h>
6695 #ifndef VALGRIND_DISCARD
6696 #error VALGRIND_DISCARD not defined
6697 #endif
6698 _ACEOF
6699 if ac_fn_c_try_cpp "$LINENO"; then :
6700 gcc_cv_header_valgrind_memcheck_h=yes
6701 else
6702 gcc_cv_header_valgrind_memcheck_h=no
6704 rm -f conftest.err conftest.$ac_ext
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6706 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6708 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710 /* end confdefs.h. */
6711 #include <memcheck.h>
6712 #ifndef VALGRIND_DISCARD
6713 #error VALGRIND_DISCARD not defined
6714 #endif
6715 _ACEOF
6716 if ac_fn_c_try_cpp "$LINENO"; then :
6717 gcc_cv_header_memcheck_h=yes
6718 else
6719 gcc_cv_header_memcheck_h=no
6721 rm -f conftest.err conftest.$ac_ext
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6723 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6725 # Prepare PATH_SEPARATOR.
6726 # The user is always right.
6727 if test "${PATH_SEPARATOR+set}" != set; then
6728 echo "#! /bin/sh" >conf$$.sh
6729 echo "exit 0" >>conf$$.sh
6730 chmod +x conf$$.sh
6731 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6732 PATH_SEPARATOR=';'
6733 else
6734 PATH_SEPARATOR=:
6736 rm -f conf$$.sh
6739 # Find out how to test for executable files. Don't use a zero-byte file,
6740 # as systems may use methods other than mode bits to determine executability.
6741 cat >conf$$.file <<_ASEOF
6742 #! /bin/sh
6743 exit 0
6744 _ASEOF
6745 chmod +x conf$$.file
6746 if test -x conf$$.file >/dev/null 2>&1; then
6747 ac_executable_p="test -x"
6748 else
6749 ac_executable_p="test -f"
6751 rm -f conf$$.file
6753 # Extract the first word of "valgrind", so it can be a program name with args.
6754 set dummy valgrind; ac_word=$2
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6756 $as_echo_n "checking for $ac_word... " >&6; }
6757 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6758 $as_echo_n "(cached) " >&6
6759 else
6760 case "$valgrind_path" in
6761 [\\/]* | ?:[\\/]*)
6762 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6765 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6766 for ac_dir in $PATH; do
6767 IFS="$ac_save_IFS"
6768 test -z "$ac_dir" && ac_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6771 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6772 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6773 break 2
6776 done
6777 done
6778 IFS="$ac_save_IFS"
6780 esac
6782 valgrind_path="$ac_cv_path_valgrind_path"
6783 if test -n "$valgrind_path"; then
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6785 $as_echo "$valgrind_path" >&6; }
6786 else
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788 $as_echo "no" >&6; }
6791 if test "x$valgrind_path" = "x" \
6792 || (test $have_valgrind_h = no \
6793 && test $gcc_cv_header_memcheck_h = no \
6794 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6795 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6797 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6798 valgrind_command="$valgrind_path -q"
6800 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6802 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6804 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6807 if test $gcc_cv_header_memcheck_h = yes; then
6809 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6816 # Enable code coverage collection
6817 # Check whether --enable-coverage was given.
6818 if test "${enable_coverage+set}" = set; then :
6819 enableval=$enable_coverage; case "${enableval}" in
6820 yes|noopt)
6821 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6823 opt)
6824 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6827 # a.k.a. --disable-coverage
6828 coverage_flags=""
6831 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6833 esac
6834 else
6835 coverage_flags=""
6840 # Check whether --enable-gather-detailed-mem-stats was given.
6841 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6842 enableval=$enable_gather_detailed_mem_stats;
6843 else
6844 enable_gather_detailed_mem_stats=no
6847 if test x$enable_gather_detailed_mem_stats = xyes ; then
6849 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6853 # -------------------------------
6854 # Miscenalleous configure options
6855 # -------------------------------
6857 # See if we are building gcc with C++.
6858 # Check whether --enable-build-with-cxx was given.
6859 if test "${enable_build_with_cxx+set}" = set; then :
6860 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6861 else
6862 ENABLE_BUILD_WITH_CXX=no
6866 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6868 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6872 # With stabs
6874 # Check whether --with-stabs was given.
6875 if test "${with_stabs+set}" = set; then :
6876 withval=$with_stabs; stabs="$with_stabs"
6877 else
6878 stabs=no
6882 # Determine whether or not multilibs are enabled.
6883 # Check whether --enable-multilib was given.
6884 if test "${enable_multilib+set}" = set; then :
6885 enableval=$enable_multilib;
6886 else
6887 enable_multilib=yes
6892 # Enable __cxa_atexit for C++.
6893 # Check whether --enable-__cxa_atexit was given.
6894 if test "${enable___cxa_atexit+set}" = set; then :
6895 enableval=$enable___cxa_atexit;
6899 # Enable C extension for decimal float if target supports it.
6901 # Check whether --enable-decimal-float was given.
6902 if test "${enable_decimal_float+set}" = set; then :
6903 enableval=$enable_decimal_float;
6904 case $enable_decimal_float in
6905 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6906 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6907 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6908 esac
6910 else
6912 case $target in
6913 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6914 i?86*-*-mingw* | x86_64*-*-mingw* | \
6915 i?86*-*-cygwin*)
6916 enable_decimal_float=yes
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6920 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6921 enable_decimal_float=no
6923 esac
6928 # x86's use BID format instead of DPD
6929 case x$enable_decimal_float in
6930 xyes)
6931 case $target in
6932 i?86*-*-* | x86_64*-*-*)
6933 enable_decimal_float=bid
6936 enable_decimal_float=dpd
6938 esac
6939 default_decimal_float=$enable_decimal_float
6941 xno)
6942 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6943 # dependency on libdecnumber.
6944 default_decimal_float=dpd
6946 esac
6951 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6953 cat >>confdefs.h <<_ACEOF
6954 #define ENABLE_DECIMAL_FLOAT $dfp
6955 _ACEOF
6958 # Use default_decimal_float for dependency.
6959 enable_decimal_float=$default_decimal_float
6961 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6963 cat >>confdefs.h <<_ACEOF
6964 #define ENABLE_DECIMAL_BID_FORMAT $bid
6965 _ACEOF
6968 # Enable C extension for fixed-point arithmetic.
6969 # Check whether --enable-fixed-point was given.
6970 if test "${enable_fixed_point+set}" = set; then :
6971 enableval=$enable_fixed_point;
6973 else
6975 case $target in
6976 mips*-*-*)
6977 case $host in
6978 mips*-sgi-irix*)
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6980 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6981 enable_fixed_point=no
6984 enable_fixed_point=yes
6986 esac
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6990 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6991 enable_fixed_point=no
6993 esac
6999 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7001 cat >>confdefs.h <<_ACEOF
7002 #define ENABLE_FIXED_POINT $fixedpoint
7003 _ACEOF
7006 # Enable threads
7007 # Pass with no value to take the default
7008 # Pass with a value to specify a thread package
7009 # Check whether --enable-threads was given.
7010 if test "${enable_threads+set}" = set; then :
7011 enableval=$enable_threads;
7012 else
7013 enable_threads=''
7017 # Check whether --enable-tls was given.
7018 if test "${enable_tls+set}" = set; then :
7019 enableval=$enable_tls;
7020 case $enable_tls in
7021 yes | no) ;;
7022 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7023 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7024 esac
7026 else
7027 enable_tls=''
7031 # Check whether --enable-objc-gc was given.
7032 if test "${enable_objc_gc+set}" = set; then :
7033 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7034 objc_boehm_gc=''
7035 else
7036 objc_boehm_gc=1
7038 else
7039 objc_boehm_gc=''
7044 # Check whether --with-dwarf2 was given.
7045 if test "${with_dwarf2+set}" = set; then :
7046 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7047 else
7048 dwarf2=no
7052 # Check whether --enable-shared was given.
7053 if test "${enable_shared+set}" = set; then :
7054 enableval=$enable_shared;
7055 case $enable_shared in
7056 yes | no) ;;
7058 enable_shared=no
7059 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7060 for pkg in $enableval; do
7061 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7062 enable_shared=yes
7064 done
7065 IFS="$ac_save_ifs"
7067 esac
7069 else
7070 enable_shared=yes
7075 # The use of native_system_header_dir here is for the value (optionally)
7076 # configured here. Uses of NATIVE_SYSTEM_HEADER_DIR in this file refer
7077 # to the make variable defined in Makefile or in target make fragments.
7079 # Check whether --with-native-system-header-dir was given.
7080 if test "${with_native_system_header_dir+set}" = set; then :
7081 withval=$with_native_system_header_dir;
7082 case ${with_native_system_header_dir} in
7083 yes|no) as_fn_error "bad value ${withval} given for native system include directory" "$LINENO" 5 ;;
7084 /*) ;;
7085 *) as_fn_error "${withval} should be an absolute directory" "$LINENO" 5 ;;
7086 esac
7087 native_system_header_dir="${withval}"
7089 else
7090 native_system_header_dir=/usr/include
7093 NATIVE_SYSTEM_HEADER_DIR=$native_system_header_dir
7097 # Check whether --with-runtime-root-prefix was given.
7098 if test "${with_runtime_root_prefix+set}" = set; then :
7099 withval=$with_runtime_root_prefix;
7100 case ${with_runtime_root_prefix} in
7101 yes|no) as_fn_error "bad value ${withval} given for runtime root prefix" "$LINENO" 5 ;;
7102 /*) ;;
7103 *) as_fn_error "${withval} should be an absolute directory" "$LINENO" 5 ;;
7104 esac
7105 RUNTIME_ROOT_PREFIX_DEFINE="-DRUNTIME_ROOT_PREFIX=\\\"${withval}\\\""
7107 else
7108 RUNTIME_ROOT_PREFIX_DEFINE=""
7114 # Check whether --with-build-sysroot was given.
7115 if test "${with_build_sysroot+set}" = set; then :
7116 withval=$with_build_sysroot; if test x"$withval" != x ; then
7117 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7119 else
7120 SYSROOT_CFLAGS_FOR_TARGET=
7126 # Check whether --with-sysroot was given.
7127 if test "${with_sysroot+set}" = set; then :
7128 withval=$with_sysroot;
7129 case ${with_sysroot} in
7130 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7131 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7132 esac
7134 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7135 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7137 if test "x$prefix" = xNONE; then
7138 test_prefix=/usr/local
7139 else
7140 test_prefix=$prefix
7142 if test "x$exec_prefix" = xNONE; then
7143 test_exec_prefix=$test_prefix
7144 else
7145 test_exec_prefix=$exec_prefix
7147 case ${TARGET_SYSTEM_ROOT} in
7148 "${test_prefix}"|"${test_prefix}/"*|\
7149 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7150 '${prefix}'|'${prefix}/'*|\
7151 '${exec_prefix}'|'${exec_prefix}/'*)
7152 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7153 TARGET_SYSTEM_ROOT_DEFINE="$t"
7155 esac
7157 else
7159 TARGET_SYSTEM_ROOT=
7160 TARGET_SYSTEM_ROOT_DEFINE=
7161 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7170 # Check whether --with-specs was given.
7171 if test "${with_specs+set}" = set; then :
7172 withval=$with_specs; CONFIGURE_SPECS=$withval
7173 else
7174 CONFIGURE_SPECS=
7182 # Check whether --with-pkgversion was given.
7183 if test "${with_pkgversion+set}" = set; then :
7184 withval=$with_pkgversion; case "$withval" in
7185 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7186 no) PKGVERSION= ;;
7187 *) PKGVERSION="($withval) " ;;
7188 esac
7189 else
7190 PKGVERSION="(GCC) "
7198 # Check whether --with-bugurl was given.
7199 if test "${with_bugurl+set}" = set; then :
7200 withval=$with_bugurl; case "$withval" in
7201 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7202 no) BUGURL=
7204 *) BUGURL="$withval"
7206 esac
7207 else
7208 BUGURL="http://gcc.gnu.org/bugs.html"
7212 case ${BUGURL} in
7214 REPORT_BUGS_TO=
7215 REPORT_BUGS_TEXI=
7218 REPORT_BUGS_TO="<$BUGURL>"
7219 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7221 esac;
7226 # Sanity check enable_languages in case someone does not run the toplevel
7227 # configure # script.
7228 # Check whether --enable-languages was given.
7229 if test "${enable_languages+set}" = set; then :
7230 enableval=$enable_languages; case ,${enable_languages}, in
7231 ,,|,yes,)
7232 # go safe -- we cannot be much sure without the toplevel
7233 # configure's
7234 # analysis of which target libs are present and usable
7235 enable_languages=c
7237 *,all,*)
7238 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7240 *,c,*)
7243 enable_languages=c,${enable_languages}
7245 esac
7246 else
7247 enable_languages=c
7252 # Check whether --with-multilib-list was given.
7253 if test "${with_multilib_list+set}" = set; then :
7254 withval=$with_multilib_list; :
7255 else
7256 with_multilib_list=default
7260 # -------------------------
7261 # Checks for other programs
7262 # -------------------------
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7265 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7266 set x ${MAKE-make}
7267 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7268 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7269 $as_echo_n "(cached) " >&6
7270 else
7271 cat >conftest.make <<\_ACEOF
7272 SHELL = /bin/sh
7273 all:
7274 @echo '@@@%%%=$(MAKE)=@@@%%%'
7275 _ACEOF
7276 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7277 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7278 *@@@%%%=?*=@@@%%%*)
7279 eval ac_cv_prog_make_${ac_make}_set=yes;;
7281 eval ac_cv_prog_make_${ac_make}_set=no;;
7282 esac
7283 rm -f conftest.make
7285 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7287 $as_echo "yes" >&6; }
7288 SET_MAKE=
7289 else
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7292 SET_MAKE="MAKE=${MAKE-make}"
7296 # Find some useful tools
7297 for ac_prog in gawk mawk nawk awk
7299 # Extract the first word of "$ac_prog", so it can be a program name with args.
7300 set dummy $ac_prog; ac_word=$2
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7302 $as_echo_n "checking for $ac_word... " >&6; }
7303 if test "${ac_cv_prog_AWK+set}" = set; then :
7304 $as_echo_n "(cached) " >&6
7305 else
7306 if test -n "$AWK"; then
7307 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7308 else
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 for as_dir in $PATH
7312 IFS=$as_save_IFS
7313 test -z "$as_dir" && as_dir=.
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7316 ac_cv_prog_AWK="$ac_prog"
7317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 break 2
7320 done
7321 done
7322 IFS=$as_save_IFS
7326 AWK=$ac_cv_prog_AWK
7327 if test -n "$AWK"; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7329 $as_echo "$AWK" >&6; }
7330 else
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 $as_echo "no" >&6; }
7336 test -n "$AWK" && break
7337 done
7339 # We need awk to create options.c and options.h.
7340 # Bail out if it's missing.
7341 case ${AWK} in
7342 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7343 esac
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7346 $as_echo_n "checking whether ln -s works... " >&6; }
7347 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7348 $as_echo_n "(cached) " >&6
7349 else
7350 rm -f conftestdata_t
7351 echo >conftestdata_f
7352 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7353 then
7354 gcc_cv_prog_LN_S="ln -s"
7355 else
7356 if ln conftestdata_f conftestdata_t 2>/dev/null
7357 then
7358 gcc_cv_prog_LN_S=ln
7359 else
7360 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7361 then
7362 gcc_cv_prog_LN_S="cp -p"
7363 else
7364 gcc_cv_prog_LN_S=cp
7368 rm -f conftestdata_f conftestdata_t
7371 LN_S="$gcc_cv_prog_LN_S"
7372 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7374 $as_echo "yes" >&6; }
7375 else
7376 if test "$gcc_cv_prog_LN_S" = "ln"; then
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7378 $as_echo "no, using ln" >&6; }
7379 else
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7381 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7386 $as_echo_n "checking whether ln works... " >&6; }
7387 if test "${acx_cv_prog_LN+set}" = set; then :
7388 $as_echo_n "(cached) " >&6
7389 else
7390 rm -f conftestdata_t
7391 echo >conftestdata_f
7392 if ln conftestdata_f conftestdata_t 2>/dev/null
7393 then
7394 acx_cv_prog_LN=ln
7395 else
7396 acx_cv_prog_LN=no
7398 rm -f conftestdata_f conftestdata_t
7401 if test $acx_cv_prog_LN = no; then
7402 LN="$LN_S"
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7404 $as_echo "no, using $LN" >&6; }
7405 else
7406 LN="$acx_cv_prog_LN"
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7408 $as_echo "yes" >&6; }
7411 if test -n "$ac_tool_prefix"; then
7412 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7413 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7415 $as_echo_n "checking for $ac_word... " >&6; }
7416 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7417 $as_echo_n "(cached) " >&6
7418 else
7419 if test -n "$RANLIB"; then
7420 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7421 else
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7425 IFS=$as_save_IFS
7426 test -z "$as_dir" && as_dir=.
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7429 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 break 2
7433 done
7434 done
7435 IFS=$as_save_IFS
7439 RANLIB=$ac_cv_prog_RANLIB
7440 if test -n "$RANLIB"; then
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7442 $as_echo "$RANLIB" >&6; }
7443 else
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445 $as_echo "no" >&6; }
7450 if test -z "$ac_cv_prog_RANLIB"; then
7451 ac_ct_RANLIB=$RANLIB
7452 # Extract the first word of "ranlib", so it can be a program name with args.
7453 set dummy ranlib; ac_word=$2
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7455 $as_echo_n "checking for $ac_word... " >&6; }
7456 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7457 $as_echo_n "(cached) " >&6
7458 else
7459 if test -n "$ac_ct_RANLIB"; then
7460 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7461 else
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 for as_dir in $PATH
7465 IFS=$as_save_IFS
7466 test -z "$as_dir" && as_dir=.
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7469 ac_cv_prog_ac_ct_RANLIB="ranlib"
7470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7471 break 2
7473 done
7474 done
7475 IFS=$as_save_IFS
7479 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7480 if test -n "$ac_ct_RANLIB"; then
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7482 $as_echo "$ac_ct_RANLIB" >&6; }
7483 else
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7485 $as_echo "no" >&6; }
7488 if test "x$ac_ct_RANLIB" = x; then
7489 RANLIB=":"
7490 else
7491 case $cross_compiling:$ac_tool_warned in
7492 yes:)
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7495 ac_tool_warned=yes ;;
7496 esac
7497 RANLIB=$ac_ct_RANLIB
7499 else
7500 RANLIB="$ac_cv_prog_RANLIB"
7503 case "${host}" in
7504 *-*-darwin*)
7505 # By default, the Darwin ranlib will not treat common symbols as
7506 # definitions when building the archive table of contents. Other
7507 # ranlibs do that; pass an option to the Darwin ranlib that makes
7508 # it behave similarly.
7509 ranlib_flags="-c"
7512 ranlib_flags=""
7513 esac
7516 # Find a good install program. We prefer a C program (faster),
7517 # so one script is as good as another. But avoid the broken or
7518 # incompatible versions:
7519 # SysV /etc/install, /usr/sbin/install
7520 # SunOS /usr/etc/install
7521 # IRIX /sbin/install
7522 # AIX /bin/install
7523 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7524 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7525 # ./install, which can be erroneously created by make from ./install.sh.
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7527 $as_echo_n "checking for a BSD compatible install... " >&6; }
7528 if test -z "$INSTALL"; then
7529 if test "${ac_cv_path_install+set}" = set; then :
7530 $as_echo_n "(cached) " >&6
7531 else
7532 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7533 for ac_dir in $PATH; do
7534 # Account for people who put trailing slashes in PATH elements.
7535 case "$ac_dir/" in
7536 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7538 # OSF1 and SCO ODT 3.0 have their own names for install.
7539 for ac_prog in ginstall scoinst install; do
7540 if test -f $ac_dir/$ac_prog; then
7541 if test $ac_prog = install &&
7542 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7543 # AIX install. It has an incompatible calling convention.
7544 # OSF/1 installbsd also uses dspmsg, but is usable.
7546 else
7547 ac_cv_path_install="$ac_dir/$ac_prog -c"
7548 break 2
7551 done
7553 esac
7554 done
7555 IFS="$ac_save_IFS"
7558 if test "${ac_cv_path_install+set}" = set; then
7559 INSTALL="$ac_cv_path_install"
7560 else
7561 # As a last resort, use the slow shell script. We don't cache a
7562 # path for INSTALL within a source directory, because that will
7563 # break other packages using the cache if that directory is
7564 # removed, or if the path is relative.
7565 INSTALL="$ac_install_sh"
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7569 $as_echo "$INSTALL" >&6; }
7571 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7572 # It thinks the first close brace ends the variable substitution.
7573 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7575 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7578 # See if cmp has --ignore-initial.
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7580 $as_echo_n "checking for cmp's capabilities... " >&6; }
7581 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7582 $as_echo_n "(cached) " >&6
7583 else
7584 echo abfoo >t1
7585 echo cdfoo >t2
7586 gcc_cv_prog_cmp_skip=slowcompare
7587 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7588 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7590 else
7591 gcc_cv_prog_cmp_skip=gnucompare
7594 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7595 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7596 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7598 else
7599 gcc_cv_prog_cmp_skip=fastcompare
7603 rm t1 t2
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7607 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7608 make_compare_target=$gcc_cv_prog_cmp_skip
7612 # See if we have the mktemp command.
7613 # Extract the first word of "mktemp", so it can be a program name with args.
7614 set dummy mktemp; ac_word=$2
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616 $as_echo_n "checking for $ac_word... " >&6; }
7617 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7618 $as_echo_n "(cached) " >&6
7619 else
7620 if test -n "$have_mktemp_command"; then
7621 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7622 else
7623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 for as_dir in $PATH
7626 IFS=$as_save_IFS
7627 test -z "$as_dir" && as_dir=.
7628 for ac_exec_ext in '' $ac_executable_extensions; do
7629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7630 ac_cv_prog_have_mktemp_command="yes"
7631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7632 break 2
7634 done
7635 done
7636 IFS=$as_save_IFS
7638 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7641 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7642 if test -n "$have_mktemp_command"; then
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7644 $as_echo "$have_mktemp_command" >&6; }
7645 else
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647 $as_echo "no" >&6; }
7652 # See if makeinfo has been installed and is modern enough
7653 # that we can use it.
7655 # Extract the first word of "makeinfo", so it can be a program name with args.
7656 set dummy makeinfo; ac_word=$2
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7658 $as_echo_n "checking for $ac_word... " >&6; }
7659 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7660 $as_echo_n "(cached) " >&6
7661 else
7662 if test -n "$MAKEINFO"; then
7663 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7664 else
7665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 for as_dir in $PATH
7668 IFS=$as_save_IFS
7669 test -z "$as_dir" && as_dir=.
7670 for ac_exec_ext in '' $ac_executable_extensions; do
7671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7672 ac_cv_prog_MAKEINFO="makeinfo"
7673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7674 break 2
7676 done
7677 done
7678 IFS=$as_save_IFS
7682 MAKEINFO=$ac_cv_prog_MAKEINFO
7683 if test -n "$MAKEINFO"; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7685 $as_echo "$MAKEINFO" >&6; }
7686 else
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688 $as_echo "no" >&6; }
7692 if test -n "$MAKEINFO"; then
7693 # Found it, now check the version.
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7695 $as_echo_n "checking for modern makeinfo... " >&6; }
7696 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7697 $as_echo_n "(cached) " >&6
7698 else
7699 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7700 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7702 case $ac_prog_version in
7703 '') gcc_cv_prog_makeinfo_modern=no;;
7704 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7705 *) gcc_cv_prog_makeinfo_modern=no;;
7706 esac
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7710 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7711 else
7712 gcc_cv_prog_makeinfo_modern=no
7714 if test $gcc_cv_prog_makeinfo_modern = no; then
7715 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7718 if test $gcc_cv_prog_makeinfo_modern = no; then
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7720 *** Makeinfo is missing or too old.
7721 *** Info documentation will not be built." >&5
7722 $as_echo "$as_me: WARNING:
7723 *** Makeinfo is missing or too old.
7724 *** Info documentation will not be built." >&2;}
7725 BUILD_INFO=
7726 else
7727 BUILD_INFO=info
7731 # Is pod2man recent enough to regenerate manpages?
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7733 $as_echo_n "checking for recent Pod::Man... " >&6; }
7734 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7736 $as_echo "yes" >&6; }
7737 GENERATED_MANPAGES=generated-manpages
7738 else
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740 $as_echo "no" >&6; }
7741 GENERATED_MANPAGES=
7745 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7747 # How about lex?
7748 for ac_prog in flex
7750 # Extract the first word of "$ac_prog", so it can be a program name with args.
7751 set dummy $ac_prog; ac_word=$2
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 $as_echo_n "checking for $ac_word... " >&6; }
7754 if test "${ac_cv_prog_FLEX+set}" = set; then :
7755 $as_echo_n "(cached) " >&6
7756 else
7757 if test -n "$FLEX"; then
7758 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7759 else
7760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761 for as_dir in $PATH
7763 IFS=$as_save_IFS
7764 test -z "$as_dir" && as_dir=.
7765 for ac_exec_ext in '' $ac_executable_extensions; do
7766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7767 ac_cv_prog_FLEX="$ac_prog"
7768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7769 break 2
7771 done
7772 done
7773 IFS=$as_save_IFS
7777 FLEX=$ac_cv_prog_FLEX
7778 if test -n "$FLEX"; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7780 $as_echo "$FLEX" >&6; }
7781 else
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7787 test -n "$FLEX" && break
7788 done
7789 test -n "$FLEX" || FLEX="$MISSING flex"
7792 # Bison?
7793 for ac_prog in bison
7795 # Extract the first word of "$ac_prog", so it can be a program name with args.
7796 set dummy $ac_prog; ac_word=$2
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7798 $as_echo_n "checking for $ac_word... " >&6; }
7799 if test "${ac_cv_prog_BISON+set}" = set; then :
7800 $as_echo_n "(cached) " >&6
7801 else
7802 if test -n "$BISON"; then
7803 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7804 else
7805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 for as_dir in $PATH
7808 IFS=$as_save_IFS
7809 test -z "$as_dir" && as_dir=.
7810 for ac_exec_ext in '' $ac_executable_extensions; do
7811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7812 ac_cv_prog_BISON="$ac_prog"
7813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7814 break 2
7816 done
7817 done
7818 IFS=$as_save_IFS
7822 BISON=$ac_cv_prog_BISON
7823 if test -n "$BISON"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7825 $as_echo "$BISON" >&6; }
7826 else
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828 $as_echo "no" >&6; }
7832 test -n "$BISON" && break
7833 done
7834 test -n "$BISON" || BISON="$MISSING bison"
7837 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7838 # check for build == host before using them.
7840 # NM
7841 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7842 && test -d ../binutils ; then
7843 NM='${objdir}/../binutils/nm-new'
7844 else
7845 # Extract the first word of "nm", so it can be a program name with args.
7846 set dummy nm; ac_word=$2
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848 $as_echo_n "checking for $ac_word... " >&6; }
7849 if test "${ac_cv_prog_NM+set}" = set; then :
7850 $as_echo_n "(cached) " >&6
7851 else
7852 if test -n "$NM"; then
7853 ac_cv_prog_NM="$NM" # Let the user override the test.
7854 else
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856 for as_dir in $PATH
7858 IFS=$as_save_IFS
7859 test -z "$as_dir" && as_dir=.
7860 for ac_exec_ext in '' $ac_executable_extensions; do
7861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7862 ac_cv_prog_NM="nm"
7863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 break 2
7866 done
7867 done
7868 IFS=$as_save_IFS
7870 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7873 NM=$ac_cv_prog_NM
7874 if test -n "$NM"; then
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7876 $as_echo "$NM" >&6; }
7877 else
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879 $as_echo "no" >&6; }
7885 # AR
7886 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7887 && test -d ../binutils ; then
7888 AR='${objdir}/../binutils/ar'
7889 else
7890 # Extract the first word of "ar", so it can be a program name with args.
7891 set dummy ar; ac_word=$2
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7893 $as_echo_n "checking for $ac_word... " >&6; }
7894 if test "${ac_cv_prog_AR+set}" = set; then :
7895 $as_echo_n "(cached) " >&6
7896 else
7897 if test -n "$AR"; then
7898 ac_cv_prog_AR="$AR" # Let the user override the test.
7899 else
7900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901 for as_dir in $PATH
7903 IFS=$as_save_IFS
7904 test -z "$as_dir" && as_dir=.
7905 for ac_exec_ext in '' $ac_executable_extensions; do
7906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7907 ac_cv_prog_AR="ar"
7908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7909 break 2
7911 done
7912 done
7913 IFS=$as_save_IFS
7915 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7918 AR=$ac_cv_prog_AR
7919 if test -n "$AR"; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7921 $as_echo "$AR" >&6; }
7922 else
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924 $as_echo "no" >&6; }
7931 # --------------------
7932 # Checks for C headers
7933 # --------------------
7935 # Need to reject headers which give warnings, so that the -Werror bootstrap
7936 # works later. *sigh* This needs to come before all header checks.
7938 ac_c_preproc_warn_flag=yes
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7941 $as_echo_n "checking for ANSI C header files... " >&6; }
7942 if test "${ac_cv_header_stdc+set}" = set; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7947 #include <stdlib.h>
7948 #include <stdarg.h>
7949 #include <string.h>
7950 #include <float.h>
7953 main ()
7957 return 0;
7959 _ACEOF
7960 if ac_fn_c_try_compile "$LINENO"; then :
7961 ac_cv_header_stdc=yes
7962 else
7963 ac_cv_header_stdc=no
7965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7967 if test $ac_cv_header_stdc = yes; then
7968 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h. */
7971 #include <string.h>
7973 _ACEOF
7974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7975 $EGREP "memchr" >/dev/null 2>&1; then :
7977 else
7978 ac_cv_header_stdc=no
7980 rm -f conftest*
7984 if test $ac_cv_header_stdc = yes; then
7985 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7988 #include <stdlib.h>
7990 _ACEOF
7991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7992 $EGREP "free" >/dev/null 2>&1; then :
7994 else
7995 ac_cv_header_stdc=no
7997 rm -f conftest*
8001 if test $ac_cv_header_stdc = yes; then
8002 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8003 if test "$cross_compiling" = yes; then :
8005 else
8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h. */
8008 #include <ctype.h>
8009 #include <stdlib.h>
8010 #if ((' ' & 0x0FF) == 0x020)
8011 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8012 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8013 #else
8014 # define ISLOWER(c) \
8015 (('a' <= (c) && (c) <= 'i') \
8016 || ('j' <= (c) && (c) <= 'r') \
8017 || ('s' <= (c) && (c) <= 'z'))
8018 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8019 #endif
8021 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8023 main ()
8025 int i;
8026 for (i = 0; i < 256; i++)
8027 if (XOR (islower (i), ISLOWER (i))
8028 || toupper (i) != TOUPPER (i))
8029 return 2;
8030 return 0;
8032 _ACEOF
8033 if ac_fn_c_try_run "$LINENO"; then :
8035 else
8036 ac_cv_header_stdc=no
8038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8039 conftest.$ac_objext conftest.beam conftest.$ac_ext
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8045 $as_echo "$ac_cv_header_stdc" >&6; }
8046 if test $ac_cv_header_stdc = yes; then
8048 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8053 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8054 if test "${ac_cv_header_time+set}" = set; then :
8055 $as_echo_n "(cached) " >&6
8056 else
8057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8058 /* end confdefs.h. */
8059 #include <sys/types.h>
8060 #include <sys/time.h>
8061 #include <time.h>
8064 main ()
8066 if ((struct tm *) 0)
8067 return 0;
8069 return 0;
8071 _ACEOF
8072 if ac_fn_c_try_compile "$LINENO"; then :
8073 ac_cv_header_time=yes
8074 else
8075 ac_cv_header_time=no
8077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8080 $as_echo "$ac_cv_header_time" >&6; }
8081 if test $ac_cv_header_time = yes; then
8083 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8088 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8089 if test "${gcc_cv_header_string+set}" = set; then :
8090 $as_echo_n "(cached) " >&6
8091 else
8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h. */
8094 #include <string.h>
8095 #include <strings.h>
8097 main ()
8101 return 0;
8103 _ACEOF
8104 if ac_fn_c_try_compile "$LINENO"; then :
8105 gcc_cv_header_string=yes
8106 else
8107 gcc_cv_header_string=no
8109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8112 $as_echo "$gcc_cv_header_string" >&6; }
8113 if test $gcc_cv_header_string = yes; then
8115 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8120 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8121 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8122 $as_echo_n "(cached) " >&6
8123 else
8124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8125 /* end confdefs.h. */
8126 #include <sys/types.h>
8127 #include <sys/wait.h>
8128 #ifndef WEXITSTATUS
8129 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8130 #endif
8131 #ifndef WIFEXITED
8132 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8133 #endif
8136 main ()
8138 int s;
8139 wait (&s);
8140 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8142 return 0;
8144 _ACEOF
8145 if ac_fn_c_try_compile "$LINENO"; then :
8146 ac_cv_header_sys_wait_h=yes
8147 else
8148 ac_cv_header_sys_wait_h=no
8150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8153 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8154 if test $ac_cv_header_sys_wait_h = yes; then
8156 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8160 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8161 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8162 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8163 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8164 do :
8165 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8166 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8167 eval as_val=\$$as_ac_Header
8168 if test "x$as_val" = x""yes; then :
8169 cat >>confdefs.h <<_ACEOF
8170 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8171 _ACEOF
8174 done
8177 # Check for thread headers.
8178 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8179 if test "x$ac_cv_header_thread_h" = x""yes; then :
8180 have_thread_h=yes
8181 else
8182 have_thread_h=
8185 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8186 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8187 have_pthread_h=yes
8188 else
8189 have_pthread_h=
8193 # These tests can't be done till we know if we have limits.h.
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8195 $as_echo_n "checking for CHAR_BIT... " >&6; }
8196 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8197 $as_echo_n "(cached) " >&6
8198 else
8199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200 /* end confdefs.h. */
8201 #ifdef HAVE_LIMITS_H
8202 #include <limits.h>
8203 #endif
8204 #ifdef CHAR_BIT
8205 found
8206 #endif
8207 _ACEOF
8208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8209 $EGREP "found" >/dev/null 2>&1; then :
8210 gcc_cv_decl_char_bit=yes
8211 else
8212 gcc_cv_decl_char_bit=no
8214 rm -f conftest*
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8219 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8220 if test $gcc_cv_decl_char_bit = no; then
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8222 $as_echo_n "checking number of bits in a byte... " >&6; }
8223 if test "${gcc_cv_c_nbby+set}" = set; then :
8224 $as_echo_n "(cached) " >&6
8225 else
8227 gcc_cv_c_nbby=
8228 while test $i -lt 65; do
8229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230 /* end confdefs.h. */
8233 main ()
8235 switch(0) {
8236 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8237 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8240 return 0;
8242 _ACEOF
8243 if ac_fn_c_try_compile "$LINENO"; then :
8244 gcc_cv_c_nbby=$i; break
8246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8247 i=`expr $i + 1`
8248 done
8249 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8253 $as_echo "$gcc_cv_c_nbby" >&6; }
8254 if test $gcc_cv_c_nbby = failed; then
8255 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8256 else
8258 cat >>confdefs.h <<_ACEOF
8259 #define CHAR_BIT $gcc_cv_c_nbby
8260 _ACEOF
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8265 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8266 if test "${ac_cv_c_bigendian+set}" = set; then :
8267 $as_echo_n "(cached) " >&6
8268 else
8269 ac_cv_c_bigendian=unknown
8270 # See if we're dealing with a universal compiler.
8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h. */
8273 #ifndef __APPLE_CC__
8274 not a universal capable compiler
8275 #endif
8276 typedef int dummy;
8278 _ACEOF
8279 if ac_fn_c_try_compile "$LINENO"; then :
8281 # Check for potential -arch flags. It is not universal unless
8282 # there are at least two -arch flags with different values.
8283 ac_arch=
8284 ac_prev=
8285 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8286 if test -n "$ac_prev"; then
8287 case $ac_word in
8288 i?86 | x86_64 | ppc | ppc64)
8289 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8290 ac_arch=$ac_word
8291 else
8292 ac_cv_c_bigendian=universal
8293 break
8296 esac
8297 ac_prev=
8298 elif test "x$ac_word" = "x-arch"; then
8299 ac_prev=arch
8301 done
8303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8304 if test $ac_cv_c_bigendian = unknown; then
8305 # See if sys/param.h defines the BYTE_ORDER macro.
8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8308 #include <sys/types.h>
8309 #include <sys/param.h>
8312 main ()
8314 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8315 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8316 && LITTLE_ENDIAN)
8317 bogus endian macros
8318 #endif
8321 return 0;
8323 _ACEOF
8324 if ac_fn_c_try_compile "$LINENO"; then :
8325 # It does; now see whether it defined to BIG_ENDIAN or not.
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8328 #include <sys/types.h>
8329 #include <sys/param.h>
8332 main ()
8334 #if BYTE_ORDER != BIG_ENDIAN
8335 not big endian
8336 #endif
8339 return 0;
8341 _ACEOF
8342 if ac_fn_c_try_compile "$LINENO"; then :
8343 ac_cv_c_bigendian=yes
8344 else
8345 ac_cv_c_bigendian=no
8347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8351 if test $ac_cv_c_bigendian = unknown; then
8352 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8354 /* end confdefs.h. */
8355 #include <limits.h>
8358 main ()
8360 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8361 bogus endian macros
8362 #endif
8365 return 0;
8367 _ACEOF
8368 if ac_fn_c_try_compile "$LINENO"; then :
8369 # It does; now see whether it defined to _BIG_ENDIAN or not.
8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8372 #include <limits.h>
8375 main ()
8377 #ifndef _BIG_ENDIAN
8378 not big endian
8379 #endif
8382 return 0;
8384 _ACEOF
8385 if ac_fn_c_try_compile "$LINENO"; then :
8386 ac_cv_c_bigendian=yes
8387 else
8388 ac_cv_c_bigendian=no
8390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394 if test $ac_cv_c_bigendian = unknown; then
8395 # Compile a test program.
8396 if test "$cross_compiling" = yes; then :
8397 # Try to guess by grepping values from an object file.
8398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h. */
8400 short int ascii_mm[] =
8401 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8402 short int ascii_ii[] =
8403 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8404 int use_ascii (int i) {
8405 return ascii_mm[i] + ascii_ii[i];
8407 short int ebcdic_ii[] =
8408 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8409 short int ebcdic_mm[] =
8410 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8411 int use_ebcdic (int i) {
8412 return ebcdic_mm[i] + ebcdic_ii[i];
8414 extern int foo;
8417 main ()
8419 return use_ascii (foo) == use_ebcdic (foo);
8421 return 0;
8423 _ACEOF
8424 if ac_fn_c_try_compile "$LINENO"; then :
8425 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8426 ac_cv_c_bigendian=yes
8428 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8429 if test "$ac_cv_c_bigendian" = unknown; then
8430 ac_cv_c_bigendian=no
8431 else
8432 # finding both strings is unlikely to happen, but who knows?
8433 ac_cv_c_bigendian=unknown
8437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8438 else
8439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h. */
8441 $ac_includes_default
8443 main ()
8446 /* Are we little or big endian? From Harbison&Steele. */
8447 union
8449 long int l;
8450 char c[sizeof (long int)];
8451 } u;
8452 u.l = 1;
8453 return u.c[sizeof (long int) - 1] == 1;
8456 return 0;
8458 _ACEOF
8459 if ac_fn_c_try_run "$LINENO"; then :
8460 ac_cv_c_bigendian=no
8461 else
8462 ac_cv_c_bigendian=yes
8464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8465 conftest.$ac_objext conftest.beam conftest.$ac_ext
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8471 $as_echo "$ac_cv_c_bigendian" >&6; }
8472 case $ac_cv_c_bigendian in #(
8473 yes)
8474 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8475 ;; #(
8477 ;; #(
8478 universal)
8480 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8482 ;; #(
8484 as_fn_error "unknown endianness
8485 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8486 esac
8489 # ----------------------
8490 # Checks for C++ headers
8491 # ----------------------
8493 ac_ext=cpp
8494 ac_cpp='$CXXCPP $CPPFLAGS'
8495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8499 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8500 if test -z "$CXXCPP"; then
8501 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8502 $as_echo_n "(cached) " >&6
8503 else
8504 # Double quotes because CXXCPP needs to be expanded
8505 for CXXCPP in "$CXX -E" "/lib/cpp"
8507 ac_preproc_ok=false
8508 for ac_cxx_preproc_warn_flag in '' yes
8510 # Use a header file that comes with gcc, so configuring glibc
8511 # with a fresh cross-compiler works.
8512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8513 # <limits.h> exists even on freestanding compilers.
8514 # On the NeXT, cc -E runs the code through the compiler's parser,
8515 # not just through cpp. "Syntax error" is here to catch this case.
8516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8517 /* end confdefs.h. */
8518 #ifdef __STDC__
8519 # include <limits.h>
8520 #else
8521 # include <assert.h>
8522 #endif
8523 Syntax error
8524 _ACEOF
8525 if ac_fn_cxx_try_cpp "$LINENO"; then :
8527 else
8528 # Broken: fails on valid input.
8529 continue
8531 rm -f conftest.err conftest.$ac_ext
8533 # OK, works on sane cases. Now check whether nonexistent headers
8534 # can be detected and how.
8535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536 /* end confdefs.h. */
8537 #include <ac_nonexistent.h>
8538 _ACEOF
8539 if ac_fn_cxx_try_cpp "$LINENO"; then :
8540 # Broken: success on invalid input.
8541 continue
8542 else
8543 # Passes both tests.
8544 ac_preproc_ok=:
8545 break
8547 rm -f conftest.err conftest.$ac_ext
8549 done
8550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8551 rm -f conftest.err conftest.$ac_ext
8552 if $ac_preproc_ok; then :
8553 break
8556 done
8557 ac_cv_prog_CXXCPP=$CXXCPP
8560 CXXCPP=$ac_cv_prog_CXXCPP
8561 else
8562 ac_cv_prog_CXXCPP=$CXXCPP
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8565 $as_echo "$CXXCPP" >&6; }
8566 ac_preproc_ok=false
8567 for ac_cxx_preproc_warn_flag in '' yes
8569 # Use a header file that comes with gcc, so configuring glibc
8570 # with a fresh cross-compiler works.
8571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8572 # <limits.h> exists even on freestanding compilers.
8573 # On the NeXT, cc -E runs the code through the compiler's parser,
8574 # not just through cpp. "Syntax error" is here to catch this case.
8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576 /* end confdefs.h. */
8577 #ifdef __STDC__
8578 # include <limits.h>
8579 #else
8580 # include <assert.h>
8581 #endif
8582 Syntax error
8583 _ACEOF
8584 if ac_fn_cxx_try_cpp "$LINENO"; then :
8586 else
8587 # Broken: fails on valid input.
8588 continue
8590 rm -f conftest.err conftest.$ac_ext
8592 # OK, works on sane cases. Now check whether nonexistent headers
8593 # can be detected and how.
8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8596 #include <ac_nonexistent.h>
8597 _ACEOF
8598 if ac_fn_cxx_try_cpp "$LINENO"; then :
8599 # Broken: success on invalid input.
8600 continue
8601 else
8602 # Passes both tests.
8603 ac_preproc_ok=:
8604 break
8606 rm -f conftest.err conftest.$ac_ext
8608 done
8609 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8610 rm -f conftest.err conftest.$ac_ext
8611 if $ac_preproc_ok; then :
8613 else
8614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8617 See \`config.log' for more details." >&5
8618 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8619 See \`config.log' for more details." >&2;}; }
8622 ac_ext=c
8623 ac_cpp='$CPP $CPPFLAGS'
8624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8629 ac_ext=cpp
8630 ac_cpp='$CXXCPP $CPPFLAGS'
8631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8638 for ac_header in unordered_map
8639 do :
8640 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8641 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8642 cat >>confdefs.h <<_ACEOF
8643 #define HAVE_UNORDERED_MAP 1
8644 _ACEOF
8647 done
8649 for ac_header in tr1/unordered_map
8650 do :
8651 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8652 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8653 cat >>confdefs.h <<_ACEOF
8654 #define HAVE_TR1_UNORDERED_MAP 1
8655 _ACEOF
8658 done
8660 for ac_header in ext/hash_map
8661 do :
8662 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8663 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8664 cat >>confdefs.h <<_ACEOF
8665 #define HAVE_EXT_HASH_MAP 1
8666 _ACEOF
8669 done
8672 ac_ext=c
8673 ac_cpp='$CPP $CPPFLAGS'
8674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8679 # --------
8680 # UNSORTED
8681 # --------
8684 # These libraries may be used by collect2.
8685 # We may need a special search path to get them linked.
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8687 $as_echo_n "checking for collect2 libraries... " >&6; }
8688 if test "${gcc_cv_collect2_libs+set}" = set; then :
8689 $as_echo_n "(cached) " >&6
8690 else
8691 save_LIBS="$LIBS"
8692 for libs in '' -lld -lmld \
8693 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8694 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8696 LIBS="$libs"
8697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698 /* end confdefs.h. */
8700 /* Override any GCC internal prototype to avoid an error.
8701 Use char because int might match the return type of a GCC
8702 builtin and then its argument prototype would still apply. */
8703 #ifdef __cplusplus
8704 extern "C"
8705 #endif
8706 char ldopen ();
8708 main ()
8710 return ldopen ();
8712 return 0;
8714 _ACEOF
8715 if ac_fn_c_try_link "$LINENO"; then :
8716 gcc_cv_collect2_libs="$libs"; break
8718 rm -f core conftest.err conftest.$ac_objext \
8719 conftest$ac_exeext conftest.$ac_ext
8720 done
8721 LIBS="$save_LIBS"
8722 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8725 $as_echo "$gcc_cv_collect2_libs" >&6; }
8726 case $gcc_cv_collect2_libs in
8727 "none required") ;;
8728 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8729 esac
8732 # When building Ada code on Alpha, we need exc_resume which is usually in
8733 # -lexc. So test for it.
8734 save_LIBS="$LIBS"
8735 LIBS=
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8737 $as_echo_n "checking for library containing exc_resume... " >&6; }
8738 if test "${ac_cv_search_exc_resume+set}" = set; then :
8739 $as_echo_n "(cached) " >&6
8740 else
8741 ac_func_search_save_LIBS=$LIBS
8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8745 /* Override any GCC internal prototype to avoid an error.
8746 Use char because int might match the return type of a GCC
8747 builtin and then its argument prototype would still apply. */
8748 #ifdef __cplusplus
8749 extern "C"
8750 #endif
8751 char exc_resume ();
8753 main ()
8755 return exc_resume ();
8757 return 0;
8759 _ACEOF
8760 for ac_lib in '' exc; do
8761 if test -z "$ac_lib"; then
8762 ac_res="none required"
8763 else
8764 ac_res=-l$ac_lib
8765 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8767 if ac_fn_c_try_link "$LINENO"; then :
8768 ac_cv_search_exc_resume=$ac_res
8770 rm -f core conftest.err conftest.$ac_objext \
8771 conftest$ac_exeext
8772 if test "${ac_cv_search_exc_resume+set}" = set; then :
8773 break
8775 done
8776 if test "${ac_cv_search_exc_resume+set}" = set; then :
8778 else
8779 ac_cv_search_exc_resume=no
8781 rm conftest.$ac_ext
8782 LIBS=$ac_func_search_save_LIBS
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8785 $as_echo "$ac_cv_search_exc_resume" >&6; }
8786 ac_res=$ac_cv_search_exc_resume
8787 if test "$ac_res" != no; then :
8788 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8792 GNAT_LIBEXC="$LIBS"
8793 LIBS="$save_LIBS"
8796 # Some systems put ldexp and frexp in libm instead of libc; assume
8797 # they're both in the same place. jcf-dump needs them.
8798 save_LIBS="$LIBS"
8799 LIBS=
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8801 $as_echo_n "checking for library containing ldexp... " >&6; }
8802 if test "${ac_cv_search_ldexp+set}" = set; then :
8803 $as_echo_n "(cached) " >&6
8804 else
8805 ac_func_search_save_LIBS=$LIBS
8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h. */
8809 /* Override any GCC internal prototype to avoid an error.
8810 Use char because int might match the return type of a GCC
8811 builtin and then its argument prototype would still apply. */
8812 #ifdef __cplusplus
8813 extern "C"
8814 #endif
8815 char ldexp ();
8817 main ()
8819 return ldexp ();
8821 return 0;
8823 _ACEOF
8824 for ac_lib in '' m; do
8825 if test -z "$ac_lib"; then
8826 ac_res="none required"
8827 else
8828 ac_res=-l$ac_lib
8829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8831 if ac_fn_c_try_link "$LINENO"; then :
8832 ac_cv_search_ldexp=$ac_res
8834 rm -f core conftest.err conftest.$ac_objext \
8835 conftest$ac_exeext
8836 if test "${ac_cv_search_ldexp+set}" = set; then :
8837 break
8839 done
8840 if test "${ac_cv_search_ldexp+set}" = set; then :
8842 else
8843 ac_cv_search_ldexp=no
8845 rm conftest.$ac_ext
8846 LIBS=$ac_func_search_save_LIBS
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8849 $as_echo "$ac_cv_search_ldexp" >&6; }
8850 ac_res=$ac_cv_search_ldexp
8851 if test "$ac_res" != no; then :
8852 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8856 LDEXP_LIB="$LIBS"
8857 LIBS="$save_LIBS"
8860 # Use <inttypes.h> only if it exists,
8861 # doesn't clash with <sys/types.h>, and declares intmax_t.
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8863 $as_echo_n "checking for inttypes.h... " >&6; }
8864 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8865 $as_echo_n "(cached) " >&6
8866 else
8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h. */
8869 #include <sys/types.h>
8870 #include <inttypes.h>
8872 main ()
8874 intmax_t i = -1;
8876 return 0;
8878 _ACEOF
8879 if ac_fn_c_try_compile "$LINENO"; then :
8880 gcc_cv_header_inttypes_h=yes
8881 else
8882 gcc_cv_header_inttypes_h=no
8884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8888 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8889 if test $gcc_cv_header_inttypes_h = yes; then
8891 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8897 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8898 sysconf strsignal getrusage nl_langinfo \
8899 gettimeofday mbstowcs wcswidth mmap setlocale \
8900 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
8901 do :
8902 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8903 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8904 eval as_val=\$$as_ac_var
8905 if test "x$as_val" = x""yes; then :
8906 cat >>confdefs.h <<_ACEOF
8907 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8908 _ACEOF
8911 done
8914 if test x$ac_cv_func_mbstowcs = xyes; then
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8916 $as_echo_n "checking whether mbstowcs works... " >&6; }
8917 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8918 $as_echo_n "(cached) " >&6
8919 else
8920 if test "$cross_compiling" = yes; then :
8921 gcc_cv_func_mbstowcs_works=yes
8922 else
8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8925 #include <stdlib.h>
8926 int main()
8928 mbstowcs(0, "", 0);
8929 return 0;
8931 _ACEOF
8932 if ac_fn_c_try_run "$LINENO"; then :
8933 gcc_cv_func_mbstowcs_works=yes
8934 else
8935 gcc_cv_func_mbstowcs_works=no
8937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8938 conftest.$ac_objext conftest.beam conftest.$ac_ext
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8943 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8944 if test x$gcc_cv_func_mbstowcs_works = xyes; then
8946 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8951 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8952 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8954 else
8956 cat >>confdefs.h <<_ACEOF
8957 #define ssize_t int
8958 _ACEOF
8962 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8963 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8965 else
8967 cat >>confdefs.h <<_ACEOF
8968 #define caddr_t char *
8969 _ACEOF
8975 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8976 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8977 gcc_header_sys_mman_h=yes
8978 else
8979 gcc_header_sys_mman_h=no
8982 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8983 if test "x$ac_cv_func_mmap" = x""yes; then :
8984 gcc_func_mmap=yes
8985 else
8986 gcc_func_mmap=no
8989 if test "$gcc_header_sys_mman_h" != yes \
8990 || test "$gcc_func_mmap" != yes; then
8991 gcc_cv_func_mmap_file=no
8992 gcc_cv_func_mmap_dev_zero=no
8993 gcc_cv_func_mmap_anon=no
8994 else
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8996 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8997 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8998 $as_echo_n "(cached) " >&6
8999 else
9000 # Add a system to this blacklist if
9001 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9002 # memory area containing the same data that you'd get if you applied
9003 # read() to the same fd. The only system known to have a problem here
9004 # is VMS, where text files have record structure.
9005 case "$host_os" in
9006 vms* | ultrix*)
9007 gcc_cv_func_mmap_file=no ;;
9009 gcc_cv_func_mmap_file=yes;;
9010 esac
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9013 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9015 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9016 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9017 $as_echo_n "(cached) " >&6
9018 else
9019 # Add a system to this blacklist if it has mmap() but /dev/zero
9020 # does not exist, or if mmapping /dev/zero does not give anonymous
9021 # zeroed pages with both the following properties:
9022 # 1. If you map N consecutive pages in with one call, and then
9023 # unmap any subset of those pages, the pages that were not
9024 # explicitly unmapped remain accessible.
9025 # 2. If you map two adjacent blocks of memory and then unmap them
9026 # both at once, they must both go away.
9027 # Systems known to be in this category are Windows (all variants),
9028 # VMS, and Darwin.
9029 case "$host_os" in
9030 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9031 gcc_cv_func_mmap_dev_zero=no ;;
9033 gcc_cv_func_mmap_dev_zero=yes;;
9034 esac
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9037 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9039 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9041 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9042 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9043 $as_echo_n "(cached) " >&6
9044 else
9045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046 /* end confdefs.h. */
9047 #include <sys/types.h>
9048 #include <sys/mman.h>
9049 #include <unistd.h>
9051 #ifndef MAP_ANONYMOUS
9052 #define MAP_ANONYMOUS MAP_ANON
9053 #endif
9056 main ()
9058 int n = MAP_ANONYMOUS;
9060 return 0;
9062 _ACEOF
9063 if ac_fn_c_try_compile "$LINENO"; then :
9064 gcc_cv_decl_map_anon=yes
9065 else
9066 gcc_cv_decl_map_anon=no
9068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9071 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9073 if test $gcc_cv_decl_map_anon = no; then
9074 gcc_cv_func_mmap_anon=no
9075 else
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9077 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9078 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9079 $as_echo_n "(cached) " >&6
9080 else
9081 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9082 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9083 # doesn't give anonymous zeroed pages with the same properties listed
9084 # above for use of /dev/zero.
9085 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9086 case "$host_os" in
9087 vms* | cygwin* | pe | mingw* | sco* | udk* )
9088 gcc_cv_func_mmap_anon=no ;;
9090 gcc_cv_func_mmap_anon=yes;;
9091 esac
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9094 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9098 if test $gcc_cv_func_mmap_file = yes; then
9100 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9103 if test $gcc_cv_func_mmap_dev_zero = yes; then
9105 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9108 if test $gcc_cv_func_mmap_anon = yes; then
9110 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9115 case "${host}" in
9116 *-*-*vms*)
9117 # Under VMS, vfork works very differently than on Unix. The standard test
9118 # won't work, and it isn't easily adaptable. It makes more sense to
9119 # just force it.
9120 ac_cv_func_vfork_works=yes
9122 esac
9123 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9124 if test "x$ac_cv_type_pid_t" = x""yes; then :
9126 else
9128 cat >>confdefs.h <<_ACEOF
9129 #define pid_t int
9130 _ACEOF
9134 for ac_header in vfork.h
9135 do :
9136 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9137 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9138 cat >>confdefs.h <<_ACEOF
9139 #define HAVE_VFORK_H 1
9140 _ACEOF
9143 done
9145 for ac_func in fork vfork
9146 do :
9147 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9148 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9149 eval as_val=\$$as_ac_var
9150 if test "x$as_val" = x""yes; then :
9151 cat >>confdefs.h <<_ACEOF
9152 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9153 _ACEOF
9156 done
9158 if test "x$ac_cv_func_fork" = xyes; then
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9160 $as_echo_n "checking for working fork... " >&6; }
9161 if test "${ac_cv_func_fork_works+set}" = set; then :
9162 $as_echo_n "(cached) " >&6
9163 else
9164 if test "$cross_compiling" = yes; then :
9165 ac_cv_func_fork_works=cross
9166 else
9167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168 /* end confdefs.h. */
9169 $ac_includes_default
9171 main ()
9174 /* By Ruediger Kuhlmann. */
9175 return fork () < 0;
9178 return 0;
9180 _ACEOF
9181 if ac_fn_c_try_run "$LINENO"; then :
9182 ac_cv_func_fork_works=yes
9183 else
9184 ac_cv_func_fork_works=no
9186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9187 conftest.$ac_objext conftest.beam conftest.$ac_ext
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9192 $as_echo "$ac_cv_func_fork_works" >&6; }
9194 else
9195 ac_cv_func_fork_works=$ac_cv_func_fork
9197 if test "x$ac_cv_func_fork_works" = xcross; then
9198 case $host in
9199 *-*-amigaos* | *-*-msdosdjgpp*)
9200 # Override, as these systems have only a dummy fork() stub
9201 ac_cv_func_fork_works=no
9204 ac_cv_func_fork_works=yes
9206 esac
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9208 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9210 ac_cv_func_vfork_works=$ac_cv_func_vfork
9211 if test "x$ac_cv_func_vfork" = xyes; then
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9213 $as_echo_n "checking for working vfork... " >&6; }
9214 if test "${ac_cv_func_vfork_works+set}" = set; then :
9215 $as_echo_n "(cached) " >&6
9216 else
9217 if test "$cross_compiling" = yes; then :
9218 ac_cv_func_vfork_works=cross
9219 else
9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9222 /* Thanks to Paul Eggert for this test. */
9223 $ac_includes_default
9224 #include <sys/wait.h>
9225 #ifdef HAVE_VFORK_H
9226 # include <vfork.h>
9227 #endif
9228 /* On some sparc systems, changes by the child to local and incoming
9229 argument registers are propagated back to the parent. The compiler
9230 is told about this with #include <vfork.h>, but some compilers
9231 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9232 static variable whose address is put into a register that is
9233 clobbered by the vfork. */
9234 static void
9235 #ifdef __cplusplus
9236 sparc_address_test (int arg)
9237 # else
9238 sparc_address_test (arg) int arg;
9239 #endif
9241 static pid_t child;
9242 if (!child) {
9243 child = vfork ();
9244 if (child < 0) {
9245 perror ("vfork");
9246 _exit(2);
9248 if (!child) {
9249 arg = getpid();
9250 write(-1, "", 0);
9251 _exit (arg);
9257 main ()
9259 pid_t parent = getpid ();
9260 pid_t child;
9262 sparc_address_test (0);
9264 child = vfork ();
9266 if (child == 0) {
9267 /* Here is another test for sparc vfork register problems. This
9268 test uses lots of local variables, at least as many local
9269 variables as main has allocated so far including compiler
9270 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9271 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9272 reuse the register of parent for one of the local variables,
9273 since it will think that parent can't possibly be used any more
9274 in this routine. Assigning to the local variable will thus
9275 munge parent in the parent process. */
9276 pid_t
9277 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9278 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9279 /* Convince the compiler that p..p7 are live; otherwise, it might
9280 use the same hardware register for all 8 local variables. */
9281 if (p != p1 || p != p2 || p != p3 || p != p4
9282 || p != p5 || p != p6 || p != p7)
9283 _exit(1);
9285 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9286 from child file descriptors. If the child closes a descriptor
9287 before it execs or exits, this munges the parent's descriptor
9288 as well. Test for this by closing stdout in the child. */
9289 _exit(close(fileno(stdout)) != 0);
9290 } else {
9291 int status;
9292 struct stat st;
9294 while (wait(&status) != child)
9296 return (
9297 /* Was there some problem with vforking? */
9298 child < 0
9300 /* Did the child fail? (This shouldn't happen.) */
9301 || status
9303 /* Did the vfork/compiler bug occur? */
9304 || parent != getpid()
9306 /* Did the file descriptor bug occur? */
9307 || fstat(fileno(stdout), &st) != 0
9311 _ACEOF
9312 if ac_fn_c_try_run "$LINENO"; then :
9313 ac_cv_func_vfork_works=yes
9314 else
9315 ac_cv_func_vfork_works=no
9317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9318 conftest.$ac_objext conftest.beam conftest.$ac_ext
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9323 $as_echo "$ac_cv_func_vfork_works" >&6; }
9326 if test "x$ac_cv_func_fork_works" = xcross; then
9327 ac_cv_func_vfork_works=$ac_cv_func_vfork
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9329 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9332 if test "x$ac_cv_func_vfork_works" = xyes; then
9334 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9336 else
9338 $as_echo "#define vfork fork" >>confdefs.h
9341 if test "x$ac_cv_func_fork_works" = xyes; then
9343 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9349 if test "X$prefix" = "XNONE"; then
9350 acl_final_prefix="$ac_default_prefix"
9351 else
9352 acl_final_prefix="$prefix"
9354 if test "X$exec_prefix" = "XNONE"; then
9355 acl_final_exec_prefix='${prefix}'
9356 else
9357 acl_final_exec_prefix="$exec_prefix"
9359 acl_save_prefix="$prefix"
9360 prefix="$acl_final_prefix"
9361 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9362 prefix="$acl_save_prefix"
9365 # Check whether --with-gnu-ld was given.
9366 if test "${with_gnu_ld+set}" = set; then :
9367 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9368 else
9369 with_gnu_ld=no
9372 # Prepare PATH_SEPARATOR.
9373 # The user is always right.
9374 if test "${PATH_SEPARATOR+set}" != set; then
9375 echo "#! /bin/sh" >conf$$.sh
9376 echo "exit 0" >>conf$$.sh
9377 chmod +x conf$$.sh
9378 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9379 PATH_SEPARATOR=';'
9380 else
9381 PATH_SEPARATOR=:
9383 rm -f conf$$.sh
9385 ac_prog=ld
9386 if test "$GCC" = yes; then
9387 # Check if gcc -print-prog-name=ld gives a path.
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9389 $as_echo_n "checking for ld used by GCC... " >&6; }
9390 case $host in
9391 *-*-mingw*)
9392 # gcc leaves a trailing carriage return which upsets mingw
9393 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9395 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9396 esac
9397 case $ac_prog in
9398 # Accept absolute paths.
9399 [\\/]* | [A-Za-z]:[\\/]*)
9400 re_direlt='/[^/][^/]*/\.\./'
9401 # Canonicalize the path of ld
9402 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9403 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9404 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9405 done
9406 test -z "$LD" && LD="$ac_prog"
9409 # If it fails, then pretend we aren't using GCC.
9410 ac_prog=ld
9413 # If it is relative, then search for the first ld in PATH.
9414 with_gnu_ld=unknown
9416 esac
9417 elif test "$with_gnu_ld" = yes; then
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9419 $as_echo_n "checking for GNU ld... " >&6; }
9420 else
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9422 $as_echo_n "checking for non-GNU ld... " >&6; }
9424 if test "${acl_cv_path_LD+set}" = set; then :
9425 $as_echo_n "(cached) " >&6
9426 else
9427 if test -z "$LD"; then
9428 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9429 for ac_dir in $PATH; do
9430 test -z "$ac_dir" && ac_dir=.
9431 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9432 acl_cv_path_LD="$ac_dir/$ac_prog"
9433 # Check to see if the program is GNU ld. I'd rather use --version,
9434 # but apparently some GNU ld's only accept -v.
9435 # Break only if it was the GNU/non-GNU ld that we prefer.
9436 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9437 test "$with_gnu_ld" != no && break
9438 else
9439 test "$with_gnu_ld" != yes && break
9442 done
9443 IFS="$ac_save_ifs"
9444 else
9445 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9449 LD="$acl_cv_path_LD"
9450 if test -n "$LD"; then
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9452 $as_echo "$LD" >&6; }
9453 else
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455 $as_echo "no" >&6; }
9457 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9459 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9460 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9461 $as_echo_n "(cached) " >&6
9462 else
9463 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9464 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9465 acl_cv_prog_gnu_ld=yes
9466 else
9467 acl_cv_prog_gnu_ld=no
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9471 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9472 with_gnu_ld=$acl_cv_prog_gnu_ld
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9477 $as_echo_n "checking for shared library run path origin... " >&6; }
9478 if test "${acl_cv_rpath+set}" = set; then :
9479 $as_echo_n "(cached) " >&6
9480 else
9482 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9483 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9484 . ./conftest.sh
9485 rm -f ./conftest.sh
9486 acl_cv_rpath=done
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9490 $as_echo "$acl_cv_rpath" >&6; }
9491 wl="$acl_cv_wl"
9492 libext="$acl_cv_libext"
9493 shlibext="$acl_cv_shlibext"
9494 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9495 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9496 hardcode_direct="$acl_cv_hardcode_direct"
9497 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9498 # Check whether --enable-rpath was given.
9499 if test "${enable_rpath+set}" = set; then :
9500 enableval=$enable_rpath; :
9501 else
9502 enable_rpath=yes
9512 use_additional=yes
9514 acl_save_prefix="$prefix"
9515 prefix="$acl_final_prefix"
9516 acl_save_exec_prefix="$exec_prefix"
9517 exec_prefix="$acl_final_exec_prefix"
9519 eval additional_includedir=\"$includedir\"
9520 eval additional_libdir=\"$libdir\"
9522 exec_prefix="$acl_save_exec_prefix"
9523 prefix="$acl_save_prefix"
9526 # Check whether --with-libiconv-prefix was given.
9527 if test "${with_libiconv_prefix+set}" = set; then :
9528 withval=$with_libiconv_prefix;
9529 if test "X$withval" = "Xno"; then
9530 use_additional=no
9531 else
9532 if test "X$withval" = "X"; then
9534 acl_save_prefix="$prefix"
9535 prefix="$acl_final_prefix"
9536 acl_save_exec_prefix="$exec_prefix"
9537 exec_prefix="$acl_final_exec_prefix"
9539 eval additional_includedir=\"$includedir\"
9540 eval additional_libdir=\"$libdir\"
9542 exec_prefix="$acl_save_exec_prefix"
9543 prefix="$acl_save_prefix"
9545 else
9546 additional_includedir="$withval/include"
9547 additional_libdir="$withval/lib"
9553 LIBICONV=
9554 LTLIBICONV=
9555 INCICONV=
9556 rpathdirs=
9557 ltrpathdirs=
9558 names_already_handled=
9559 names_next_round='iconv '
9560 while test -n "$names_next_round"; do
9561 names_this_round="$names_next_round"
9562 names_next_round=
9563 for name in $names_this_round; do
9564 already_handled=
9565 for n in $names_already_handled; do
9566 if test "$n" = "$name"; then
9567 already_handled=yes
9568 break
9570 done
9571 if test -z "$already_handled"; then
9572 names_already_handled="$names_already_handled $name"
9573 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9574 eval value=\"\$HAVE_LIB$uppername\"
9575 if test -n "$value"; then
9576 if test "$value" = yes; then
9577 eval value=\"\$LIB$uppername\"
9578 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9579 eval value=\"\$LTLIB$uppername\"
9580 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9581 else
9584 else
9585 found_dir=
9586 found_la=
9587 found_so=
9588 found_a=
9589 if test $use_additional = yes; then
9590 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9591 found_dir="$additional_libdir"
9592 found_so="$additional_libdir/lib$name.$shlibext"
9593 if test -f "$additional_libdir/lib$name.la"; then
9594 found_la="$additional_libdir/lib$name.la"
9596 else
9597 if test -f "$additional_libdir/lib$name.$libext"; then
9598 found_dir="$additional_libdir"
9599 found_a="$additional_libdir/lib$name.$libext"
9600 if test -f "$additional_libdir/lib$name.la"; then
9601 found_la="$additional_libdir/lib$name.la"
9606 if test "X$found_dir" = "X"; then
9607 for x in $LDFLAGS $LTLIBICONV; do
9609 acl_save_prefix="$prefix"
9610 prefix="$acl_final_prefix"
9611 acl_save_exec_prefix="$exec_prefix"
9612 exec_prefix="$acl_final_exec_prefix"
9613 eval x=\"$x\"
9614 exec_prefix="$acl_save_exec_prefix"
9615 prefix="$acl_save_prefix"
9617 case "$x" in
9618 -L*)
9619 dir=`echo "X$x" | sed -e 's/^X-L//'`
9620 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9621 found_dir="$dir"
9622 found_so="$dir/lib$name.$shlibext"
9623 if test -f "$dir/lib$name.la"; then
9624 found_la="$dir/lib$name.la"
9626 else
9627 if test -f "$dir/lib$name.$libext"; then
9628 found_dir="$dir"
9629 found_a="$dir/lib$name.$libext"
9630 if test -f "$dir/lib$name.la"; then
9631 found_la="$dir/lib$name.la"
9636 esac
9637 if test "X$found_dir" != "X"; then
9638 break
9640 done
9642 if test "X$found_dir" != "X"; then
9643 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9644 if test "X$found_so" != "X"; then
9645 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9646 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9647 else
9648 haveit=
9649 for x in $ltrpathdirs; do
9650 if test "X$x" = "X$found_dir"; then
9651 haveit=yes
9652 break
9654 done
9655 if test -z "$haveit"; then
9656 ltrpathdirs="$ltrpathdirs $found_dir"
9658 if test "$hardcode_direct" = yes; then
9659 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9660 else
9661 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9662 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9663 haveit=
9664 for x in $rpathdirs; do
9665 if test "X$x" = "X$found_dir"; then
9666 haveit=yes
9667 break
9669 done
9670 if test -z "$haveit"; then
9671 rpathdirs="$rpathdirs $found_dir"
9673 else
9674 haveit=
9675 for x in $LDFLAGS $LIBICONV; do
9677 acl_save_prefix="$prefix"
9678 prefix="$acl_final_prefix"
9679 acl_save_exec_prefix="$exec_prefix"
9680 exec_prefix="$acl_final_exec_prefix"
9681 eval x=\"$x\"
9682 exec_prefix="$acl_save_exec_prefix"
9683 prefix="$acl_save_prefix"
9685 if test "X$x" = "X-L$found_dir"; then
9686 haveit=yes
9687 break
9689 done
9690 if test -z "$haveit"; then
9691 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9693 if test "$hardcode_minus_L" != no; then
9694 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9695 else
9696 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9701 else
9702 if test "X$found_a" != "X"; then
9703 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9704 else
9705 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9708 additional_includedir=
9709 case "$found_dir" in
9710 */lib | */lib/)
9711 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9712 additional_includedir="$basedir/include"
9714 esac
9715 if test "X$additional_includedir" != "X"; then
9716 if test "X$additional_includedir" != "X/usr/include"; then
9717 haveit=
9718 if test "X$additional_includedir" = "X/usr/local/include"; then
9719 if test -n "$GCC"; then
9720 case $host_os in
9721 linux*) haveit=yes;;
9722 esac
9725 if test -z "$haveit"; then
9726 for x in $CPPFLAGS $INCICONV; do
9728 acl_save_prefix="$prefix"
9729 prefix="$acl_final_prefix"
9730 acl_save_exec_prefix="$exec_prefix"
9731 exec_prefix="$acl_final_exec_prefix"
9732 eval x=\"$x\"
9733 exec_prefix="$acl_save_exec_prefix"
9734 prefix="$acl_save_prefix"
9736 if test "X$x" = "X-I$additional_includedir"; then
9737 haveit=yes
9738 break
9740 done
9741 if test -z "$haveit"; then
9742 if test -d "$additional_includedir"; then
9743 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9749 if test -n "$found_la"; then
9750 save_libdir="$libdir"
9751 case "$found_la" in
9752 */* | *\\*) . "$found_la" ;;
9753 *) . "./$found_la" ;;
9754 esac
9755 libdir="$save_libdir"
9756 for dep in $dependency_libs; do
9757 case "$dep" in
9758 -L*)
9759 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9760 if test "X$additional_libdir" != "X/usr/lib"; then
9761 haveit=
9762 if test "X$additional_libdir" = "X/usr/local/lib"; then
9763 if test -n "$GCC"; then
9764 case $host_os in
9765 linux*) haveit=yes;;
9766 esac
9769 if test -z "$haveit"; then
9770 haveit=
9771 for x in $LDFLAGS $LIBICONV; do
9773 acl_save_prefix="$prefix"
9774 prefix="$acl_final_prefix"
9775 acl_save_exec_prefix="$exec_prefix"
9776 exec_prefix="$acl_final_exec_prefix"
9777 eval x=\"$x\"
9778 exec_prefix="$acl_save_exec_prefix"
9779 prefix="$acl_save_prefix"
9781 if test "X$x" = "X-L$additional_libdir"; then
9782 haveit=yes
9783 break
9785 done
9786 if test -z "$haveit"; then
9787 if test -d "$additional_libdir"; then
9788 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9791 haveit=
9792 for x in $LDFLAGS $LTLIBICONV; do
9794 acl_save_prefix="$prefix"
9795 prefix="$acl_final_prefix"
9796 acl_save_exec_prefix="$exec_prefix"
9797 exec_prefix="$acl_final_exec_prefix"
9798 eval x=\"$x\"
9799 exec_prefix="$acl_save_exec_prefix"
9800 prefix="$acl_save_prefix"
9802 if test "X$x" = "X-L$additional_libdir"; then
9803 haveit=yes
9804 break
9806 done
9807 if test -z "$haveit"; then
9808 if test -d "$additional_libdir"; then
9809 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9815 -R*)
9816 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9817 if test "$enable_rpath" != no; then
9818 haveit=
9819 for x in $rpathdirs; do
9820 if test "X$x" = "X$dir"; then
9821 haveit=yes
9822 break
9824 done
9825 if test -z "$haveit"; then
9826 rpathdirs="$rpathdirs $dir"
9828 haveit=
9829 for x in $ltrpathdirs; do
9830 if test "X$x" = "X$dir"; then
9831 haveit=yes
9832 break
9834 done
9835 if test -z "$haveit"; then
9836 ltrpathdirs="$ltrpathdirs $dir"
9840 -l*)
9841 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9843 *.la)
9844 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9847 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9848 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9850 esac
9851 done
9853 else
9854 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9855 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9859 done
9860 done
9861 if test "X$rpathdirs" != "X"; then
9862 if test -n "$hardcode_libdir_separator"; then
9863 alldirs=
9864 for found_dir in $rpathdirs; do
9865 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9866 done
9867 acl_save_libdir="$libdir"
9868 libdir="$alldirs"
9869 eval flag=\"$hardcode_libdir_flag_spec\"
9870 libdir="$acl_save_libdir"
9871 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9872 else
9873 for found_dir in $rpathdirs; do
9874 acl_save_libdir="$libdir"
9875 libdir="$found_dir"
9876 eval flag=\"$hardcode_libdir_flag_spec\"
9877 libdir="$acl_save_libdir"
9878 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9879 done
9882 if test "X$ltrpathdirs" != "X"; then
9883 for found_dir in $ltrpathdirs; do
9884 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9885 done
9894 am_save_CPPFLAGS="$CPPFLAGS"
9896 for element in $INCICONV; do
9897 haveit=
9898 for x in $CPPFLAGS; do
9900 acl_save_prefix="$prefix"
9901 prefix="$acl_final_prefix"
9902 acl_save_exec_prefix="$exec_prefix"
9903 exec_prefix="$acl_final_exec_prefix"
9904 eval x=\"$x\"
9905 exec_prefix="$acl_save_exec_prefix"
9906 prefix="$acl_save_prefix"
9908 if test "X$x" = "X$element"; then
9909 haveit=yes
9910 break
9912 done
9913 if test -z "$haveit"; then
9914 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9916 done
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9920 $as_echo_n "checking for iconv... " >&6; }
9921 if test "${am_cv_func_iconv+set}" = set; then :
9922 $as_echo_n "(cached) " >&6
9923 else
9925 am_cv_func_iconv="no, consider installing GNU libiconv"
9926 am_cv_lib_iconv=no
9927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9928 /* end confdefs.h. */
9929 #include <stdlib.h>
9930 #include <iconv.h>
9932 main ()
9934 iconv_t cd = iconv_open("","");
9935 iconv(cd,NULL,NULL,NULL,NULL);
9936 iconv_close(cd);
9938 return 0;
9940 _ACEOF
9941 if ac_fn_c_try_link "$LINENO"; then :
9942 am_cv_func_iconv=yes
9944 rm -f core conftest.err conftest.$ac_objext \
9945 conftest$ac_exeext conftest.$ac_ext
9946 if test "$am_cv_func_iconv" != yes; then
9947 am_save_LIBS="$LIBS"
9948 LIBS="$LIBS $LIBICONV"
9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950 /* end confdefs.h. */
9951 #include <stdlib.h>
9952 #include <iconv.h>
9954 main ()
9956 iconv_t cd = iconv_open("","");
9957 iconv(cd,NULL,NULL,NULL,NULL);
9958 iconv_close(cd);
9960 return 0;
9962 _ACEOF
9963 if ac_fn_c_try_link "$LINENO"; then :
9964 am_cv_lib_iconv=yes
9965 am_cv_func_iconv=yes
9967 rm -f core conftest.err conftest.$ac_objext \
9968 conftest$ac_exeext conftest.$ac_ext
9969 LIBS="$am_save_LIBS"
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9974 $as_echo "$am_cv_func_iconv" >&6; }
9975 if test "$am_cv_func_iconv" = yes; then
9977 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9980 if test "$am_cv_lib_iconv" = yes; then
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9982 $as_echo_n "checking how to link with libiconv... " >&6; }
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9984 $as_echo "$LIBICONV" >&6; }
9985 else
9986 CPPFLAGS="$am_save_CPPFLAGS"
9987 LIBICONV=
9988 LTLIBICONV=
9993 if test "$am_cv_func_iconv" = yes; then
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9995 $as_echo_n "checking for iconv declaration... " >&6; }
9996 if test "${am_cv_proto_iconv+set}" = set; then :
9997 $as_echo_n "(cached) " >&6
9998 else
10000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10001 /* end confdefs.h. */
10003 #include <stdlib.h>
10004 #include <iconv.h>
10005 extern
10006 #ifdef __cplusplus
10008 #endif
10009 #if defined(__STDC__) || defined(__cplusplus)
10010 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10011 #else
10012 size_t iconv();
10013 #endif
10016 main ()
10020 return 0;
10022 _ACEOF
10023 if ac_fn_c_try_compile "$LINENO"; then :
10024 am_cv_proto_iconv_arg1=""
10025 else
10026 am_cv_proto_iconv_arg1="const"
10028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10029 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);"
10032 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10034 }$am_cv_proto_iconv" >&5
10035 $as_echo "${ac_t:-
10036 }$am_cv_proto_iconv" >&6; }
10038 cat >>confdefs.h <<_ACEOF
10039 #define ICONV_CONST $am_cv_proto_iconv_arg1
10040 _ACEOF
10044 # Until we have in-tree GNU iconv:
10045 LIBICONV_DEP=
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10050 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10051 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10052 $as_echo_n "(cached) " >&6
10053 else
10054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10055 /* end confdefs.h. */
10056 #include <locale.h>
10058 main ()
10060 return LC_MESSAGES
10062 return 0;
10064 _ACEOF
10065 if ac_fn_c_try_link "$LINENO"; then :
10066 am_cv_val_LC_MESSAGES=yes
10067 else
10068 am_cv_val_LC_MESSAGES=no
10070 rm -f core conftest.err conftest.$ac_objext \
10071 conftest$ac_exeext conftest.$ac_ext
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10074 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10075 if test $am_cv_val_LC_MESSAGES = yes; then
10077 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10084 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10085 if test "${am_cv_langinfo_codeset+set}" = set; then :
10086 $as_echo_n "(cached) " >&6
10087 else
10088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10089 /* end confdefs.h. */
10090 #include <langinfo.h>
10092 main ()
10094 char* cs = nl_langinfo(CODESET);
10096 return 0;
10098 _ACEOF
10099 if ac_fn_c_try_link "$LINENO"; then :
10100 am_cv_langinfo_codeset=yes
10101 else
10102 am_cv_langinfo_codeset=no
10104 rm -f core conftest.err conftest.$ac_objext \
10105 conftest$ac_exeext conftest.$ac_ext
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10109 $as_echo "$am_cv_langinfo_codeset" >&6; }
10110 if test $am_cv_langinfo_codeset = yes; then
10112 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10117 # We will need to find libiberty.h and ansidecl.h
10118 saved_CFLAGS="$CFLAGS"
10119 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10120 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10121 strsignal strstr strverscmp \
10122 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10123 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
10125 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10127 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10128 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10129 $as_echo_n "(cached) " >&6
10130 else
10131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132 /* end confdefs.h. */
10133 #undef $ac_tr_decl
10134 #define $ac_tr_decl 1
10136 #include "ansidecl.h"
10137 #include "system.h"
10140 main ()
10142 #ifndef $ac_func
10143 char *(*pfn) = (char *(*)) $ac_func ;
10144 #endif
10146 return 0;
10148 _ACEOF
10149 if ac_fn_c_try_compile "$LINENO"; then :
10150 eval "gcc_cv_have_decl_$ac_func=yes"
10151 else
10152 eval "gcc_cv_have_decl_$ac_func=no"
10154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10157 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10159 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10160 #define $ac_tr_decl 1
10161 _ACEOF
10163 else
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10165 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10166 #define $ac_tr_decl 0
10167 _ACEOF
10171 done
10174 for ac_func in getrlimit setrlimit getrusage
10176 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10178 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10179 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10180 $as_echo_n "(cached) " >&6
10181 else
10182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h. */
10184 #undef $ac_tr_decl
10185 #define $ac_tr_decl 1
10187 #include "ansidecl.h"
10188 #include "system.h"
10189 #ifdef HAVE_SYS_RESOURCE_H
10190 #include <sys/resource.h>
10191 #endif
10195 main ()
10197 #ifndef $ac_func
10198 char *(*pfn) = (char *(*)) $ac_func ;
10199 #endif
10201 return 0;
10203 _ACEOF
10204 if ac_fn_c_try_compile "$LINENO"; then :
10205 eval "gcc_cv_have_decl_$ac_func=yes"
10206 else
10207 eval "gcc_cv_have_decl_$ac_func=no"
10209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10212 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10214 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10215 #define $ac_tr_decl 1
10216 _ACEOF
10218 else
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10220 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10221 #define $ac_tr_decl 0
10222 _ACEOF
10226 done
10229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10230 /* end confdefs.h. */
10232 #include "ansidecl.h"
10233 #include "system.h"
10234 #ifdef HAVE_SYS_RESOURCE_H
10235 #include <sys/resource.h>
10236 #endif
10239 main ()
10241 rlim_t l = 0;
10243 return 0;
10245 _ACEOF
10246 if ac_fn_c_try_compile "$LINENO"; then :
10248 else
10250 $as_echo "#define rlim_t long" >>confdefs.h
10253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10255 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10256 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10257 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10258 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10259 for ac_func in ldgetname
10261 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10263 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10264 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10265 $as_echo_n "(cached) " >&6
10266 else
10267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10268 /* end confdefs.h. */
10269 #undef $ac_tr_decl
10270 #define $ac_tr_decl 1
10272 #include "ansidecl.h"
10273 #include "system.h"
10274 #ifdef HAVE_LDFCN_H
10275 #undef FREAD
10276 #undef FWRITE
10277 #include <ldfcn.h>
10278 #endif
10282 main ()
10284 #ifndef $ac_func
10285 char *(*pfn) = (char *(*)) $ac_func ;
10286 #endif
10288 return 0;
10290 _ACEOF
10291 if ac_fn_c_try_compile "$LINENO"; then :
10292 eval "gcc_cv_have_decl_$ac_func=yes"
10293 else
10294 eval "gcc_cv_have_decl_$ac_func=no"
10296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10299 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10301 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10302 #define $ac_tr_decl 1
10303 _ACEOF
10305 else
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10307 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10308 #define $ac_tr_decl 0
10309 _ACEOF
10313 done
10316 for ac_func in times
10318 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10320 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10321 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10322 $as_echo_n "(cached) " >&6
10323 else
10324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10325 /* end confdefs.h. */
10326 #undef $ac_tr_decl
10327 #define $ac_tr_decl 1
10329 #include "ansidecl.h"
10330 #include "system.h"
10331 #ifdef HAVE_SYS_TIMES_H
10332 #include <sys/times.h>
10333 #endif
10337 main ()
10339 #ifndef $ac_func
10340 char *(*pfn) = (char *(*)) $ac_func ;
10341 #endif
10343 return 0;
10345 _ACEOF
10346 if ac_fn_c_try_compile "$LINENO"; then :
10347 eval "gcc_cv_have_decl_$ac_func=yes"
10348 else
10349 eval "gcc_cv_have_decl_$ac_func=no"
10351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10354 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10356 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10357 #define $ac_tr_decl 1
10358 _ACEOF
10360 else
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10362 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10363 #define $ac_tr_decl 0
10364 _ACEOF
10368 done
10371 for ac_func in sigaltstack
10373 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10375 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10376 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10377 $as_echo_n "(cached) " >&6
10378 else
10379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10380 /* end confdefs.h. */
10381 #undef $ac_tr_decl
10382 #define $ac_tr_decl 1
10384 #include "ansidecl.h"
10385 #include "system.h"
10386 #include <signal.h>
10390 main ()
10392 #ifndef $ac_func
10393 char *(*pfn) = (char *(*)) $ac_func ;
10394 #endif
10396 return 0;
10398 _ACEOF
10399 if ac_fn_c_try_compile "$LINENO"; then :
10400 eval "gcc_cv_have_decl_$ac_func=yes"
10401 else
10402 eval "gcc_cv_have_decl_$ac_func=no"
10404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10407 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10409 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10410 #define $ac_tr_decl 1
10411 _ACEOF
10413 else
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10415 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10416 #define $ac_tr_decl 0
10417 _ACEOF
10421 done
10424 # More time-related stuff.
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10426 $as_echo_n "checking for struct tms... " >&6; }
10427 if test "${ac_cv_struct_tms+set}" = set; then :
10428 $as_echo_n "(cached) " >&6
10429 else
10431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432 /* end confdefs.h. */
10434 #include "ansidecl.h"
10435 #include "system.h"
10436 #ifdef HAVE_SYS_TIMES_H
10437 #include <sys/times.h>
10438 #endif
10441 main ()
10443 struct tms tms;
10445 return 0;
10447 _ACEOF
10448 if ac_fn_c_try_compile "$LINENO"; then :
10449 ac_cv_struct_tms=yes
10450 else
10451 ac_cv_struct_tms=no
10453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10456 $as_echo "$ac_cv_struct_tms" >&6; }
10457 if test $ac_cv_struct_tms = yes; then
10459 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10463 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10464 # revisit after autoconf 2.50.
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10466 $as_echo_n "checking for clock_t... " >&6; }
10467 if test "${gcc_cv_type_clock_t+set}" = set; then :
10468 $as_echo_n "(cached) " >&6
10469 else
10471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10472 /* end confdefs.h. */
10474 #include "ansidecl.h"
10475 #include "system.h"
10478 main ()
10480 clock_t x;
10482 return 0;
10484 _ACEOF
10485 if ac_fn_c_try_compile "$LINENO"; then :
10486 gcc_cv_type_clock_t=yes
10487 else
10488 gcc_cv_type_clock_t=no
10490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10493 $as_echo "$gcc_cv_type_clock_t" >&6; }
10494 if test $gcc_cv_type_clock_t = yes; then
10496 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10500 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10501 CFLAGS="$saved_CFLAGS"
10503 # Check whether --enable-initfini-array was given.
10504 if test "${enable_initfini_array+set}" = set; then :
10505 enableval=$enable_initfini_array;
10506 else
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10509 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10510 if test "${gcc_cv_initfini_array+set}" = set; then :
10511 $as_echo_n "(cached) " >&6
10512 else
10513 if test "$cross_compiling" = yes; then :
10514 gcc_cv_initfini_array=no
10515 else
10516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10517 /* end confdefs.h. */
10519 static int x = -1;
10520 int main (void) { return x; }
10521 int foo (void) { x = 0; }
10522 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10523 _ACEOF
10524 if ac_fn_c_try_run "$LINENO"; then :
10525 gcc_cv_initfini_array=yes
10526 else
10527 gcc_cv_initfini_array=no
10529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10530 conftest.$ac_objext conftest.beam conftest.$ac_ext
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10535 $as_echo "$gcc_cv_initfini_array" >&6; }
10536 enable_initfini_array=$gcc_cv_initfini_array
10540 if test $enable_initfini_array = yes; then
10542 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10546 # mkdir takes a single argument on some systems.
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10548 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10549 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10550 $as_echo_n "(cached) " >&6
10551 else
10552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553 /* end confdefs.h. */
10555 #include <sys/types.h>
10556 #ifdef HAVE_SYS_STAT_H
10557 # include <sys/stat.h>
10558 #endif
10559 #ifdef HAVE_UNISTD_H
10560 # include <unistd.h>
10561 #endif
10562 #ifdef HAVE_DIRECT_H
10563 # include <direct.h>
10564 #endif
10566 main ()
10568 mkdir ("foo", 0);
10570 return 0;
10572 _ACEOF
10573 if ac_fn_c_try_compile "$LINENO"; then :
10574 gcc_cv_mkdir_takes_one_arg=no
10575 else
10576 gcc_cv_mkdir_takes_one_arg=yes
10578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10581 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10582 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10584 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10589 # File extensions
10590 manext='.1'
10591 objext='.o'
10595 # With Setjmp/Longjmp based exception handling.
10596 # Check whether --enable-sjlj-exceptions was given.
10597 if test "${enable_sjlj_exceptions+set}" = set; then :
10598 enableval=$enable_sjlj_exceptions; case $target in
10599 *-*-hpux10*)
10600 if test $enableval != yes; then
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10602 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10603 enableval=yes
10606 esac
10607 force_sjlj_exceptions=yes
10608 else
10609 case $target in
10610 *-*-hpux10*)
10611 force_sjlj_exceptions=yes
10612 enableval=yes
10615 force_sjlj_exceptions=no
10617 esac
10620 if test $force_sjlj_exceptions = yes; then
10621 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10623 cat >>confdefs.h <<_ACEOF
10624 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10625 _ACEOF
10629 # For platforms with the unwind ABI which includes an unwind library,
10630 # libunwind, we can choose to use the system libunwind.
10631 # config.gcc also contains tests of with_system_libunwind.
10634 # Check whether --with-system-libunwind was given.
10635 if test "${with_system_libunwind+set}" = set; then :
10636 withval=$with_system_libunwind;
10639 # If system-libunwind was not specifically set, pick a default setting.
10640 if test x$with_system_libunwind = x; then
10641 case ${target} in
10642 ia64-*-hpux*) with_system_libunwind=yes ;;
10643 *) with_system_libunwind=no ;;
10644 esac
10646 # Based on system-libunwind and target, do we have ipinfo?
10647 if test x$with_system_libunwind = xyes; then
10648 case ${target} in
10649 ia64-*-*) have_unwind_getipinfo=no ;;
10650 *) have_unwind_getipinfo=yes ;;
10651 esac
10652 else
10653 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10655 case ${target} in
10656 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10657 *) have_unwind_getipinfo=yes ;;
10658 esac
10662 if test x$have_unwind_getipinfo = xyes; then
10664 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10669 # --------------------------------------------------------
10670 # Build, host, and target specific configuration fragments
10671 # --------------------------------------------------------
10673 # Collect build-machine-specific information.
10674 . ${srcdir}/config.build
10676 # Collect host-machine-specific information.
10677 . ${srcdir}/config.host
10679 target_gtfiles=
10681 # Collect target-machine-specific information.
10682 . ${srcdir}/config.gcc
10684 extra_objs="${host_extra_objs} ${extra_objs}"
10685 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10687 # Default the target-machine variables that were not explicitly set.
10688 if test x"$tm_file" = x
10689 then tm_file=$cpu_type/$cpu_type.h; fi
10691 if test x"$extra_headers" = x
10692 then extra_headers=; fi
10694 if test x$md_file = x
10695 then md_file=$cpu_type/$cpu_type.md; fi
10697 if test x$out_file = x
10698 then out_file=$cpu_type/$cpu_type.c; fi
10700 if test x"$tmake_file" = x
10701 then tmake_file=$cpu_type/t-$cpu_type
10704 if test x"$dwarf2" = xyes
10705 then tm_file="$tm_file tm-dwarf2.h"
10708 # Say what files are being used for the output code and MD file.
10709 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10710 echo "Using \`$srcdir/config/$md_file' as machine description file."
10712 # If any of the xm_file variables contain nonexistent files, warn
10713 # about them and drop them.
10716 for x in $build_xm_file; do
10717 if test -f $srcdir/config/$x
10718 then bx="$bx $x"
10719 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10720 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10722 done
10723 build_xm_file="$bx"
10726 for x in $host_xm_file; do
10727 if test -f $srcdir/config/$x
10728 then hx="$hx $x"
10729 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10730 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10732 done
10733 host_xm_file="$hx"
10736 for x in $xm_file; do
10737 if test -f $srcdir/config/$x
10738 then tx="$tx $x"
10739 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10740 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10742 done
10743 xm_file="$tx"
10745 count=a
10746 for f in $tm_file; do
10747 count=${count}x
10748 done
10749 if test $count = ax; then
10750 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10751 else
10752 echo "Using the following target machine macro files:"
10753 for f in $tm_file; do
10754 echo " $srcdir/config/$f"
10755 done
10758 if test x$need_64bit_hwint = xyes; then
10760 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10764 if test x$use_long_long_for_widest_fast_int = xyes; then
10766 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10770 count=a
10771 for f in $host_xm_file; do
10772 count=${count}x
10773 done
10774 if test $count = a; then
10776 elif test $count = ax; then
10777 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10778 else
10779 echo "Using the following host machine macro files:"
10780 for f in $host_xm_file; do
10781 echo " $srcdir/config/$f"
10782 done
10784 echo "Using ${out_host_hook_obj} for host machine hooks."
10786 if test "$host_xm_file" != "$build_xm_file"; then
10787 count=a
10788 for f in $build_xm_file; do
10789 count=${count}x
10790 done
10791 if test $count = a; then
10793 elif test $count = ax; then
10794 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10795 else
10796 echo "Using the following build machine macro files:"
10797 for f in $build_xm_file; do
10798 echo " $srcdir/config/$f"
10799 done
10803 case ${host} in
10804 powerpc*-*-darwin*)
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10806 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10807 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10808 $as_echo_n "(cached) " >&6
10809 else
10810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811 /* end confdefs.h. */
10813 #include <sys/cdefs.h>
10814 #include <sys/signal.h>
10815 #include <ucontext.h>
10816 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10818 _ACEOF
10819 if ac_fn_c_try_compile "$LINENO"; then :
10820 gcc_cv_mcontext_underscores=no
10821 else
10822 gcc_cv_mcontext_underscores=yes
10824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10827 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10828 if test $gcc_cv_mcontext_underscores = yes; then
10830 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10834 esac
10836 # ---------
10837 # Threading
10838 # ---------
10840 # Check if a valid thread package
10841 case ${enable_threads} in
10842 "" | no)
10843 # No threads
10844 target_thread_file='single'
10846 yes)
10847 # default
10848 target_thread_file='single'
10850 aix | dce | gnat | irix | posix | posix95 | rtems | \
10851 single | vxworks | win32 | mipssde)
10852 target_thread_file=${enable_threads}
10855 echo "${enable_threads} is an unknown thread package" 1>&2
10856 exit 1
10858 esac
10860 if test x${thread_file} = x; then
10861 # No thread file set by target-specific clauses in config.gcc,
10862 # so use file chosen by default logic above
10863 thread_file=${target_thread_file}
10866 # Make gthr-default.h if we have a thread file.
10867 gthread_flags=
10868 if test $thread_file != single; then
10869 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10870 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10871 rm -f gthr-default.h-t
10872 else
10873 mv -f gthr-default.h-t gthr-default.h
10875 gthread_flags=-DHAVE_GTHR_DEFAULT
10879 # --------
10880 # UNSORTED
10881 # --------
10883 use_cxa_atexit=no
10884 if test x$enable___cxa_atexit = xyes || \
10885 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10886 if test x$host = x$target; then
10887 case $host in
10888 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10889 # keyed to flag_use_cxa_atexit
10890 *-*-mingw32*)
10891 use_cxa_atexit=yes
10894 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10895 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10896 use_cxa_atexit=yes
10897 else
10898 echo "__cxa_atexit can't be enabled on this target"
10902 esac
10903 else
10904 # We can't check for __cxa_atexit when building a cross, so assume
10905 # it is available
10906 use_cxa_atexit=yes
10908 if test x$use_cxa_atexit = xyes; then
10910 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10915 # Look for a file containing extra machine modes.
10916 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10917 extra_modes_file='$(srcdir)'/config/${extra_modes}
10920 cat >>confdefs.h <<_ACEOF
10921 #define EXTRA_MODES_FILE "config/$extra_modes"
10922 _ACEOF
10926 # Convert extra_options into a form suitable for Makefile use.
10927 extra_opt_files=
10928 all_opt_files=
10929 for f in $extra_options; do
10930 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10931 all_opt_files="$all_opt_files $srcdir/config/$f"
10932 done
10935 # auto-host.h is the file containing items generated by autoconf and is
10936 # the first file included by config.h.
10937 # If host=build, it is correct to have bconfig include auto-host.h
10938 # as well. If host!=build, we are in error and need to do more
10939 # work to find out the build config parameters.
10940 if test x$host = x$build
10941 then
10942 build_auto=auto-host.h
10943 else
10944 # We create a subdir, then run autoconf in the subdir.
10945 # To prevent recursion we set host and build for the new
10946 # invocation of configure to the build for this invocation
10947 # of configure.
10948 tempdir=build.$$
10949 rm -rf $tempdir
10950 mkdir $tempdir
10951 cd $tempdir
10952 case ${srcdir} in
10953 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10954 *) realsrcdir=../${srcdir};;
10955 esac
10956 saved_CFLAGS="${CFLAGS}"
10957 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10958 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10959 ${realsrcdir}/configure \
10960 --enable-languages=${enable_languages-all} \
10961 --target=$target_alias --host=$build_alias --build=$build_alias
10962 CFLAGS="${saved_CFLAGS}"
10964 # We just finished tests for the build machine, so rename
10965 # the file auto-build.h in the gcc directory.
10966 mv auto-host.h ../auto-build.h
10967 cd ..
10968 rm -rf $tempdir
10969 build_auto=auto-build.h
10973 tm_file="${tm_file} defaults.h"
10974 tm_p_file="${tm_p_file} tm-preds.h"
10975 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10976 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10977 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10978 # put this back in temporarily.
10979 xm_file="auto-host.h ansidecl.h ${xm_file}"
10981 # --------
10982 # UNSORTED
10983 # --------
10985 # Compile in configure arguments.
10986 if test -f configargs.h ; then
10987 # Being re-configured.
10988 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10989 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10990 else
10991 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10994 # Double all backslashes and backslash all quotes to turn
10995 # gcc_config_arguments into a C string.
10996 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10997 $gcc_config_arguments
10999 gcc_config_arguments_str=`cat conftest.out`
11000 rm -f conftest.out
11002 cat > configargs.h <<EOF
11003 /* Generated automatically. */
11004 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11005 static const char thread_model[] = "$thread_file";
11007 static const struct {
11008 const char *name, *value;
11009 } configure_default_options[] = $configure_default_options;
11012 gcc_BASEVER=`cat $srcdir/BASE-VER`
11013 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11014 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11015 if test -f $srcdir/REVISION ; then
11016 gcc_REVISION=`cat $srcdir/REVISION`
11017 else
11018 gcc_REVISION=""
11020 cat > plugin-version.h <<EOF
11021 #include "configargs.h"
11023 static char basever[] = "$gcc_BASEVER";
11024 static char datestamp[] = "$gcc_DATESTAMP";
11025 static char devphase[] = "$gcc_DEVPHASE";
11026 static char revision[] = "$gcc_REVISION";
11028 /* FIXME plugins: We should make the version information more precise.
11029 One way to do is to add a checksum. */
11031 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11032 devphase, revision,
11033 configuration_arguments};
11036 # Internationalization
11037 # If we haven't got the data from the intl directory,
11038 # assume NLS is disabled.
11039 USE_NLS=no
11040 LIBINTL=
11041 LIBINTL_DEP=
11042 INCINTL=
11043 XGETTEXT=
11044 GMSGFMT=
11045 POSUB=
11047 if test -f ../intl/config.intl; then
11048 . ../intl/config.intl
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11051 $as_echo_n "checking whether NLS is requested... " >&6; }
11052 if test x"$USE_NLS" != xyes; then
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11054 $as_echo "no" >&6; }
11055 else
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11057 $as_echo "yes" >&6; }
11059 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11063 $as_echo_n "checking for catalogs to be installed... " >&6; }
11064 # Look for .po and .gmo files in the source directory.
11065 CATALOGS=
11066 XLINGUAS=
11067 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11068 # If there aren't any .gmo files the shell will give us the
11069 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11070 # weeded out.
11071 case "$cat" in *\**)
11072 continue;;
11073 esac
11074 # The quadruple backslash is collapsed to a double backslash
11075 # by the backticks, then collapsed again by the double quotes,
11076 # leaving us with one backslash in the sed expression (right
11077 # before the dot that mustn't act as a wildcard).
11078 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11079 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11080 # The user is allowed to set LINGUAS to a list of languages to
11081 # install catalogs for. If it's empty that means "all of them."
11082 if test "x$LINGUAS" = x; then
11083 CATALOGS="$CATALOGS $cat"
11084 XLINGUAS="$XLINGUAS $lang"
11085 else
11086 case "$LINGUAS" in *$lang*)
11087 CATALOGS="$CATALOGS $cat"
11088 XLINGUAS="$XLINGUAS $lang"
11090 esac
11092 done
11093 LINGUAS="$XLINGUAS"
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11095 $as_echo "$LINGUAS" >&6; }
11098 DATADIRNAME=share
11100 INSTOBJEXT=.mo
11102 GENCAT=gencat
11104 CATOBJEXT=.gmo
11108 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11109 # -liconv on the link line twice.
11110 case "$LIBINTL" in *$LIBICONV*)
11111 LIBICONV= ;;
11112 esac
11114 # Check whether --enable-secureplt was given.
11115 if test "${enable_secureplt+set}" = set; then :
11116 enableval=$enable_secureplt;
11120 # Check whether --enable-leading-mingw64-underscores was given.
11121 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11122 enableval=$enable_leading_mingw64_underscores;
11125 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11127 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11131 # Check whether --enable-cld was given.
11132 if test "${enable_cld+set}" = set; then :
11133 enableval=$enable_cld;
11134 else
11135 enable_cld=no
11139 # Check whether --enable-frame-pointer was given.
11140 if test "${enable_frame_pointer+set}" = set; then :
11141 enableval=$enable_frame_pointer;
11142 else
11144 case $target_os in
11145 linux* | darwin[8912]*)
11146 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11147 # DWARF2.
11148 enable_frame_pointer=no
11151 enable_frame_pointer=yes
11153 esac
11158 # Windows32 Registry support for specifying GCC installation paths.
11159 # Check whether --enable-win32-registry was given.
11160 if test "${enable_win32_registry+set}" = set; then :
11161 enableval=$enable_win32_registry;
11165 case $host_os in
11166 win32 | pe | cygwin* | mingw32* | uwin*)
11167 if test "x$enable_win32_registry" != xno; then
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11169 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11170 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11171 $as_echo_n "(cached) " >&6
11172 else
11173 ac_func_search_save_LIBS=$LIBS
11174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11175 /* end confdefs.h. */
11177 /* Override any GCC internal prototype to avoid an error.
11178 Use char because int might match the return type of a GCC
11179 builtin and then its argument prototype would still apply. */
11180 #ifdef __cplusplus
11181 extern "C"
11182 #endif
11183 char RegOpenKeyExA ();
11185 main ()
11187 return RegOpenKeyExA ();
11189 return 0;
11191 _ACEOF
11192 for ac_lib in '' advapi32; do
11193 if test -z "$ac_lib"; then
11194 ac_res="none required"
11195 else
11196 ac_res=-l$ac_lib
11197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11199 if ac_fn_c_try_link "$LINENO"; then :
11200 ac_cv_search_RegOpenKeyExA=$ac_res
11202 rm -f core conftest.err conftest.$ac_objext \
11203 conftest$ac_exeext
11204 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11205 break
11207 done
11208 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11210 else
11211 ac_cv_search_RegOpenKeyExA=no
11213 rm conftest.$ac_ext
11214 LIBS=$ac_func_search_save_LIBS
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11217 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11218 ac_res=$ac_cv_search_RegOpenKeyExA
11219 if test "$ac_res" != no; then :
11220 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11222 else
11223 enable_win32_registry=no
11228 if test "x$enable_win32_registry" != xno; then
11230 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11233 if test "x$enable_win32_registry" != xyes \
11234 && test "x$enable_win32_registry" != x; then
11236 cat >>confdefs.h <<_ACEOF
11237 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11238 _ACEOF
11243 esac
11245 # Get an absolute path to the GCC top-level source directory
11246 holddir=`${PWDCMD-pwd}`
11247 cd $srcdir
11248 topdir=`${PWDCMD-pwd}`
11249 cd $holddir
11251 # Conditionalize the makefile for this host machine.
11252 xmake_file=
11253 for f in ${host_xmake_file}
11255 if test -f ${srcdir}/config/$f
11256 then
11257 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11259 done
11261 # Conditionalize the makefile for this target machine.
11262 tmake_file_=
11263 for f in ${tmake_file}
11265 if test -f ${srcdir}/config/$f
11266 then
11267 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11269 done
11270 tmake_file="${tmake_file_}"
11272 out_object_file=`basename $out_file .c`.o
11274 tm_file_list="options.h"
11275 tm_include_list="options.h insn-constants.h"
11276 for f in $tm_file; do
11277 case $f in
11278 ./* )
11279 f=`echo $f | sed 's/^..//'`
11280 tm_file_list="${tm_file_list} $f"
11281 tm_include_list="${tm_include_list} $f"
11283 defaults.h )
11284 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11285 tm_include_list="${tm_include_list} $f"
11288 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11289 tm_include_list="${tm_include_list} config/$f"
11291 esac
11292 done
11294 tm_p_file_list=
11295 tm_p_include_list=
11296 for f in $tm_p_file; do
11297 case $f in
11298 tm-preds.h )
11299 tm_p_file_list="${tm_p_file_list} $f"
11300 tm_p_include_list="${tm_p_include_list} $f"
11303 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11304 tm_p_include_list="${tm_p_include_list} config/$f"
11305 esac
11306 done
11308 xm_file_list=
11309 xm_include_list=
11310 for f in $xm_file; do
11311 case $f in
11312 ansidecl.h )
11313 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11314 xm_include_list="${xm_include_list} $f"
11316 auto-host.h )
11317 xm_file_list="${xm_file_list} $f"
11318 xm_include_list="${xm_include_list} $f"
11321 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11322 xm_include_list="${xm_include_list} config/$f"
11324 esac
11325 done
11327 host_xm_file_list=
11328 host_xm_include_list=
11329 for f in $host_xm_file; do
11330 case $f in
11331 ansidecl.h )
11332 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11333 host_xm_include_list="${host_xm_include_list} $f"
11335 auto-host.h )
11336 host_xm_file_list="${host_xm_file_list} $f"
11337 host_xm_include_list="${host_xm_include_list} $f"
11340 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11341 host_xm_include_list="${host_xm_include_list} config/$f"
11343 esac
11344 done
11346 build_xm_file_list=
11347 for f in $build_xm_file; do
11348 case $f in
11349 ansidecl.h )
11350 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11351 build_xm_include_list="${build_xm_include_list} $f"
11353 auto-build.h | auto-host.h )
11354 build_xm_file_list="${build_xm_file_list} $f"
11355 build_xm_include_list="${build_xm_include_list} $f"
11358 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11359 build_xm_include_list="${build_xm_include_list} config/$f"
11361 esac
11362 done
11364 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11365 # cross-compiler which does not use the native headers and libraries.
11366 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11367 CROSS=
11368 ALL=all.internal
11369 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11371 if test "x$with_build_sysroot" != x; then
11372 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11373 else
11374 # This value is used, even on a native system, because
11375 # CROSS_SYSTEM_HEADER_DIR is just
11376 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11377 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11380 if test x$host != x$target
11381 then
11382 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11383 ALL=all.cross
11384 SYSTEM_HEADER_DIR=$build_system_header_dir
11385 case "$host","$target" in
11386 # Darwin crosses can use the host system's libraries and headers,
11387 # because of the fat library support. Of course, it must be the
11388 # same version of Darwin on both sides. Allow the user to
11389 # just say --target=foo-darwin without a version number to mean
11390 # "the version on this system".
11391 *-*-darwin*,*-*-darwin*)
11392 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11393 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11394 if test $hostos = $targetos -o $targetos = darwin ; then
11395 CROSS=
11396 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11397 with_headers=yes
11401 i?86-*-*,x86_64-*-* \
11402 | powerpc*-*-*,powerpc64*-*-*)
11403 CROSS="$CROSS -DNATIVE_CROSS" ;;
11404 esac
11406 case $target in
11407 *-*-mingw*)
11408 if test "x$with_headers" = x; then
11409 with_headers=yes
11414 esac
11415 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11416 SYSTEM_HEADER_DIR=$build_system_header_dir
11419 # If this is a cross-compiler that does not
11420 # have its own set of headers then define
11421 # inhibit_libc
11423 # If this is using newlib, without having the headers available now,
11424 # then define inhibit_libc in LIBGCC2_CFLAGS.
11425 # This prevents libgcc2 from containing any code which requires libc
11426 # support.
11427 : ${inhibit_libc=false}
11428 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11429 test x$with_newlib = xyes ; } &&
11430 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11431 inhibit_libc=true
11435 # When building gcc with a cross-compiler, we need to adjust things so
11436 # that the generator programs are still built with the native compiler.
11437 # Also, we cannot run fixincludes.
11439 # These are the normal (build=host) settings:
11440 CC_FOR_BUILD='$(CC)'
11441 BUILD_CFLAGS='$(ALL_CFLAGS)'
11442 BUILD_LDFLAGS='$(LDFLAGS)'
11443 STMP_FIXINC=stmp-fixinc
11445 # And these apply if build != host, or we are generating coverage data
11446 if test x$build != x$host || test "x$coverage_flags" != x
11447 then
11448 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11449 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11452 # Expand extra_headers to include complete path.
11453 # This substitutes for lots of t-* files.
11454 extra_headers_list=
11455 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11456 for file in ${extra_headers} ; do
11457 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11458 done
11460 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11461 if test x"$use_gcc_tgmath" = xyes
11462 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11465 # Define collect2 in Makefile.
11466 case $host_can_use_collect2 in
11467 no) collect2= ;;
11468 *) collect2='collect2$(exeext)' ;;
11469 esac
11472 # Add a definition of USE_COLLECT2 if system wants one.
11473 case $use_collect2 in
11474 no) use_collect2= ;;
11475 "") ;;
11477 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11478 xm_defines="${xm_defines} USE_COLLECT2"
11479 case $host_can_use_collect2 in
11481 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11483 esac
11485 esac
11488 cat >>confdefs.h <<_ACEOF
11489 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11490 _ACEOF
11493 # ---------------------------
11494 # Assembler & linker features
11495 # ---------------------------
11497 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11498 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11499 # However when ld-new is first executed from the build tree, libtool will
11500 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11501 # to the build tree. While doing this we need to use the previous-stage
11502 # linker, or we have an infinite loop. The presence of a shell script as
11503 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11504 # the gcc/collect-ld script. So we need to know how libtool works, or
11505 # exec-tool will fail.
11508 case `pwd` in
11509 *\ * | *\ *)
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11511 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11512 esac
11516 macro_version='2.2.7a'
11517 macro_revision='1.3134'
11531 ltmain="$ac_aux_dir/ltmain.sh"
11533 # Backslashify metacharacters that are still active within
11534 # double-quoted strings.
11535 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11537 # Same as above, but do not quote variable references.
11538 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11540 # Sed substitution to delay expansion of an escaped shell variable in a
11541 # double_quote_subst'ed string.
11542 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11544 # Sed substitution to delay expansion of an escaped single quote.
11545 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11547 # Sed substitution to avoid accidental globbing in evaled expressions
11548 no_glob_subst='s/\*/\\\*/g'
11550 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11551 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11552 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11555 $as_echo_n "checking how to print strings... " >&6; }
11556 # Test print first, because it will be a builtin if present.
11557 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11558 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11559 ECHO='print -r --'
11560 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11561 ECHO='printf %s\n'
11562 else
11563 # Use this function as a fallback that always works.
11564 func_fallback_echo ()
11566 eval 'cat <<_LTECHO_EOF
11568 _LTECHO_EOF'
11570 ECHO='func_fallback_echo'
11573 # func_echo_all arg...
11574 # Invoke $ECHO with all args, space-separated.
11575 func_echo_all ()
11577 $ECHO ""
11580 case "$ECHO" in
11581 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11582 $as_echo "printf" >&6; } ;;
11583 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11584 $as_echo "print -r" >&6; } ;;
11585 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11586 $as_echo "cat" >&6; } ;;
11587 esac
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11603 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11604 if test "${ac_cv_path_SED+set}" = set; then :
11605 $as_echo_n "(cached) " >&6
11606 else
11607 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11608 for ac_i in 1 2 3 4 5 6 7; do
11609 ac_script="$ac_script$as_nl$ac_script"
11610 done
11611 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11612 { ac_script=; unset ac_script;}
11613 if test -z "$SED"; then
11614 ac_path_SED_found=false
11615 # Loop through the user's path and test for each of PROGNAME-LIST
11616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11617 for as_dir in $PATH
11619 IFS=$as_save_IFS
11620 test -z "$as_dir" && as_dir=.
11621 for ac_prog in sed gsed; do
11622 for ac_exec_ext in '' $ac_executable_extensions; do
11623 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11624 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11625 # Check for GNU ac_path_SED and select it if it is found.
11626 # Check for GNU $ac_path_SED
11627 case `"$ac_path_SED" --version 2>&1` in
11628 *GNU*)
11629 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11631 ac_count=0
11632 $as_echo_n 0123456789 >"conftest.in"
11633 while :
11635 cat "conftest.in" "conftest.in" >"conftest.tmp"
11636 mv "conftest.tmp" "conftest.in"
11637 cp "conftest.in" "conftest.nl"
11638 $as_echo '' >> "conftest.nl"
11639 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11641 as_fn_arith $ac_count + 1 && ac_count=$as_val
11642 if test $ac_count -gt ${ac_path_SED_max-0}; then
11643 # Best one so far, save it but keep looking for a better one
11644 ac_cv_path_SED="$ac_path_SED"
11645 ac_path_SED_max=$ac_count
11647 # 10*(2^10) chars as input seems more than enough
11648 test $ac_count -gt 10 && break
11649 done
11650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11651 esac
11653 $ac_path_SED_found && break 3
11654 done
11655 done
11656 done
11657 IFS=$as_save_IFS
11658 if test -z "$ac_cv_path_SED"; then
11659 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11661 else
11662 ac_cv_path_SED=$SED
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11667 $as_echo "$ac_cv_path_SED" >&6; }
11668 SED="$ac_cv_path_SED"
11669 rm -f conftest.sed
11671 test -z "$SED" && SED=sed
11672 Xsed="$SED -e 1s/^X//"
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11685 $as_echo_n "checking for fgrep... " >&6; }
11686 if test "${ac_cv_path_FGREP+set}" = set; then :
11687 $as_echo_n "(cached) " >&6
11688 else
11689 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11690 then ac_cv_path_FGREP="$GREP -F"
11691 else
11692 if test -z "$FGREP"; then
11693 ac_path_FGREP_found=false
11694 # Loop through the user's path and test for each of PROGNAME-LIST
11695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11696 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11698 IFS=$as_save_IFS
11699 test -z "$as_dir" && as_dir=.
11700 for ac_prog in fgrep; do
11701 for ac_exec_ext in '' $ac_executable_extensions; do
11702 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11703 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11704 # Check for GNU ac_path_FGREP and select it if it is found.
11705 # Check for GNU $ac_path_FGREP
11706 case `"$ac_path_FGREP" --version 2>&1` in
11707 *GNU*)
11708 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11710 ac_count=0
11711 $as_echo_n 0123456789 >"conftest.in"
11712 while :
11714 cat "conftest.in" "conftest.in" >"conftest.tmp"
11715 mv "conftest.tmp" "conftest.in"
11716 cp "conftest.in" "conftest.nl"
11717 $as_echo 'FGREP' >> "conftest.nl"
11718 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11719 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11720 as_fn_arith $ac_count + 1 && ac_count=$as_val
11721 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11722 # Best one so far, save it but keep looking for a better one
11723 ac_cv_path_FGREP="$ac_path_FGREP"
11724 ac_path_FGREP_max=$ac_count
11726 # 10*(2^10) chars as input seems more than enough
11727 test $ac_count -gt 10 && break
11728 done
11729 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11730 esac
11732 $ac_path_FGREP_found && break 3
11733 done
11734 done
11735 done
11736 IFS=$as_save_IFS
11737 if test -z "$ac_cv_path_FGREP"; then
11738 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11740 else
11741 ac_cv_path_FGREP=$FGREP
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11747 $as_echo "$ac_cv_path_FGREP" >&6; }
11748 FGREP="$ac_cv_path_FGREP"
11751 test -z "$GREP" && GREP=grep
11771 # Check whether --with-gnu-ld was given.
11772 if test "${with_gnu_ld+set}" = set; then :
11773 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11774 else
11775 with_gnu_ld=no
11778 ac_prog=ld
11779 if test "$GCC" = yes; then
11780 # Check if gcc -print-prog-name=ld gives a path.
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11782 $as_echo_n "checking for ld used by $CC... " >&6; }
11783 case $host in
11784 *-*-mingw*)
11785 # gcc leaves a trailing carriage return which upsets mingw
11786 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11788 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11789 esac
11790 case $ac_prog in
11791 # Accept absolute paths.
11792 [\\/]* | ?:[\\/]*)
11793 re_direlt='/[^/][^/]*/\.\./'
11794 # Canonicalize the pathname of ld
11795 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11796 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11797 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11798 done
11799 test -z "$LD" && LD="$ac_prog"
11802 # If it fails, then pretend we aren't using GCC.
11803 ac_prog=ld
11806 # If it is relative, then search for the first ld in PATH.
11807 with_gnu_ld=unknown
11809 esac
11810 elif test "$with_gnu_ld" = yes; then
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11812 $as_echo_n "checking for GNU ld... " >&6; }
11813 else
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11815 $as_echo_n "checking for non-GNU ld... " >&6; }
11817 if test "${lt_cv_path_LD+set}" = set; then :
11818 $as_echo_n "(cached) " >&6
11819 else
11820 if test -z "$LD"; then
11821 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11822 for ac_dir in $PATH; do
11823 IFS="$lt_save_ifs"
11824 test -z "$ac_dir" && ac_dir=.
11825 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11826 lt_cv_path_LD="$ac_dir/$ac_prog"
11827 # Check to see if the program is GNU ld. I'd rather use --version,
11828 # but apparently some variants of GNU ld only accept -v.
11829 # Break only if it was the GNU/non-GNU ld that we prefer.
11830 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11831 *GNU* | *'with BFD'*)
11832 test "$with_gnu_ld" != no && break
11835 test "$with_gnu_ld" != yes && break
11837 esac
11839 done
11840 IFS="$lt_save_ifs"
11841 else
11842 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11846 LD="$lt_cv_path_LD"
11847 if test -n "$LD"; then
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11849 $as_echo "$LD" >&6; }
11850 else
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11852 $as_echo "no" >&6; }
11854 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11856 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11857 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11858 $as_echo_n "(cached) " >&6
11859 else
11860 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11861 case `$LD -v 2>&1 </dev/null` in
11862 *GNU* | *'with BFD'*)
11863 lt_cv_prog_gnu_ld=yes
11866 lt_cv_prog_gnu_ld=no
11868 esac
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11871 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11872 with_gnu_ld=$lt_cv_prog_gnu_ld
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11883 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11884 if test "${lt_cv_path_NM+set}" = set; then :
11885 $as_echo_n "(cached) " >&6
11886 else
11887 if test -n "$NM"; then
11888 # Let the user override the test.
11889 lt_cv_path_NM="$NM"
11890 else
11891 lt_nm_to_check="${ac_tool_prefix}nm"
11892 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11893 lt_nm_to_check="$lt_nm_to_check nm"
11895 for lt_tmp_nm in $lt_nm_to_check; do
11896 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11897 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11898 IFS="$lt_save_ifs"
11899 test -z "$ac_dir" && ac_dir=.
11900 tmp_nm="$ac_dir/$lt_tmp_nm"
11901 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11902 # Check to see if the nm accepts a BSD-compat flag.
11903 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11904 # nm: unknown option "B" ignored
11905 # Tru64's nm complains that /dev/null is an invalid object file
11906 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11907 */dev/null* | *'Invalid file or object type'*)
11908 lt_cv_path_NM="$tmp_nm -B"
11909 break
11912 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11913 */dev/null*)
11914 lt_cv_path_NM="$tmp_nm -p"
11915 break
11918 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11919 continue # so that we can try to find one that supports BSD flags
11921 esac
11923 esac
11925 done
11926 IFS="$lt_save_ifs"
11927 done
11928 : ${lt_cv_path_NM=no}
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11932 $as_echo "$lt_cv_path_NM" >&6; }
11933 if test "$lt_cv_path_NM" != "no"; then
11934 NM="$lt_cv_path_NM"
11935 else
11936 # Didn't find any BSD compatible name lister, look for dumpbin.
11937 if test -n "$DUMPBIN"; then :
11938 # Let the user override the test.
11939 else
11940 if test -n "$ac_tool_prefix"; then
11941 for ac_prog in dumpbin "link -dump"
11943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11944 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11946 $as_echo_n "checking for $ac_word... " >&6; }
11947 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11948 $as_echo_n "(cached) " >&6
11949 else
11950 if test -n "$DUMPBIN"; then
11951 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11952 else
11953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11954 for as_dir in $PATH
11956 IFS=$as_save_IFS
11957 test -z "$as_dir" && as_dir=.
11958 for ac_exec_ext in '' $ac_executable_extensions; do
11959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11960 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11962 break 2
11964 done
11965 done
11966 IFS=$as_save_IFS
11970 DUMPBIN=$ac_cv_prog_DUMPBIN
11971 if test -n "$DUMPBIN"; then
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11973 $as_echo "$DUMPBIN" >&6; }
11974 else
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11976 $as_echo "no" >&6; }
11980 test -n "$DUMPBIN" && break
11981 done
11983 if test -z "$DUMPBIN"; then
11984 ac_ct_DUMPBIN=$DUMPBIN
11985 for ac_prog in dumpbin "link -dump"
11987 # Extract the first word of "$ac_prog", so it can be a program name with args.
11988 set dummy $ac_prog; ac_word=$2
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11990 $as_echo_n "checking for $ac_word... " >&6; }
11991 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11992 $as_echo_n "(cached) " >&6
11993 else
11994 if test -n "$ac_ct_DUMPBIN"; then
11995 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11996 else
11997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11998 for as_dir in $PATH
12000 IFS=$as_save_IFS
12001 test -z "$as_dir" && as_dir=.
12002 for ac_exec_ext in '' $ac_executable_extensions; do
12003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12004 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12006 break 2
12008 done
12009 done
12010 IFS=$as_save_IFS
12014 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12015 if test -n "$ac_ct_DUMPBIN"; then
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12017 $as_echo "$ac_ct_DUMPBIN" >&6; }
12018 else
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12020 $as_echo "no" >&6; }
12024 test -n "$ac_ct_DUMPBIN" && break
12025 done
12027 if test "x$ac_ct_DUMPBIN" = x; then
12028 DUMPBIN=":"
12029 else
12030 case $cross_compiling:$ac_tool_warned in
12031 yes:)
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12034 ac_tool_warned=yes ;;
12035 esac
12036 DUMPBIN=$ac_ct_DUMPBIN
12040 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12041 *COFF*)
12042 DUMPBIN="$DUMPBIN -symbols"
12045 DUMPBIN=:
12047 esac
12050 if test "$DUMPBIN" != ":"; then
12051 NM="$DUMPBIN"
12054 test -z "$NM" && NM=nm
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12062 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12063 if test "${lt_cv_nm_interface+set}" = set; then :
12064 $as_echo_n "(cached) " >&6
12065 else
12066 lt_cv_nm_interface="BSD nm"
12067 echo "int some_variable = 0;" > conftest.$ac_ext
12068 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12069 (eval "$ac_compile" 2>conftest.err)
12070 cat conftest.err >&5
12071 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12072 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12073 cat conftest.err >&5
12074 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12075 cat conftest.out >&5
12076 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12077 lt_cv_nm_interface="MS dumpbin"
12079 rm -f conftest*
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12082 $as_echo "$lt_cv_nm_interface" >&6; }
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12085 $as_echo_n "checking whether ln -s works... " >&6; }
12086 LN_S=$as_ln_s
12087 if test "$LN_S" = "ln -s"; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12089 $as_echo "yes" >&6; }
12090 else
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12092 $as_echo "no, using $LN_S" >&6; }
12095 # find the maximum length of command line arguments
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12097 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12098 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12099 $as_echo_n "(cached) " >&6
12100 else
12102 teststring="ABCD"
12104 case $build_os in
12105 msdosdjgpp*)
12106 # On DJGPP, this test can blow up pretty badly due to problems in libc
12107 # (any single argument exceeding 2000 bytes causes a buffer overrun
12108 # during glob expansion). Even if it were fixed, the result of this
12109 # check would be larger than it should be.
12110 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12113 gnu*)
12114 # Under GNU Hurd, this test is not required because there is
12115 # no limit to the length of command line arguments.
12116 # Libtool will interpret -1 as no limit whatsoever
12117 lt_cv_sys_max_cmd_len=-1;
12120 cygwin* | mingw* | cegcc*)
12121 # On Win9x/ME, this test blows up -- it succeeds, but takes
12122 # about 5 minutes as the teststring grows exponentially.
12123 # Worse, since 9x/ME are not pre-emptively multitasking,
12124 # you end up with a "frozen" computer, even though with patience
12125 # the test eventually succeeds (with a max line length of 256k).
12126 # Instead, let's just punt: use the minimum linelength reported by
12127 # all of the supported platforms: 8192 (on NT/2K/XP).
12128 lt_cv_sys_max_cmd_len=8192;
12131 mint*)
12132 # On MiNT this can take a long time and run out of memory.
12133 lt_cv_sys_max_cmd_len=8192;
12136 amigaos*)
12137 # On AmigaOS with pdksh, this test takes hours, literally.
12138 # So we just punt and use a minimum line length of 8192.
12139 lt_cv_sys_max_cmd_len=8192;
12142 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12143 # This has been around since 386BSD, at least. Likely further.
12144 if test -x /sbin/sysctl; then
12145 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12146 elif test -x /usr/sbin/sysctl; then
12147 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12148 else
12149 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12151 # And add a safety zone
12152 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12153 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12156 interix*)
12157 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12158 lt_cv_sys_max_cmd_len=196608
12161 osf*)
12162 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12163 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12164 # nice to cause kernel panics so lets avoid the loop below.
12165 # First set a reasonable default.
12166 lt_cv_sys_max_cmd_len=16384
12168 if test -x /sbin/sysconfig; then
12169 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12170 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12171 esac
12174 sco3.2v5*)
12175 lt_cv_sys_max_cmd_len=102400
12177 sysv5* | sco5v6* | sysv4.2uw2*)
12178 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12179 if test -n "$kargmax"; then
12180 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12181 else
12182 lt_cv_sys_max_cmd_len=32768
12186 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12187 if test -n "$lt_cv_sys_max_cmd_len"; then
12188 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12189 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12190 else
12191 # Make teststring a little bigger before we do anything with it.
12192 # a 1K string should be a reasonable start.
12193 for i in 1 2 3 4 5 6 7 8 ; do
12194 teststring=$teststring$teststring
12195 done
12196 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12197 # If test is not a shell built-in, we'll probably end up computing a
12198 # maximum length that is only half of the actual maximum length, but
12199 # we can't tell.
12200 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12201 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12202 test $i != 17 # 1/2 MB should be enough
12204 i=`expr $i + 1`
12205 teststring=$teststring$teststring
12206 done
12207 # Only check the string length outside the loop.
12208 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12209 teststring=
12210 # Add a significant safety factor because C++ compilers can tack on
12211 # massive amounts of additional arguments before passing them to the
12212 # linker. It appears as though 1/2 is a usable value.
12213 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12216 esac
12220 if test -n $lt_cv_sys_max_cmd_len ; then
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12222 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12223 else
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12225 $as_echo "none" >&6; }
12227 max_cmd_len=$lt_cv_sys_max_cmd_len
12234 : ${CP="cp -f"}
12235 : ${MV="mv -f"}
12236 : ${RM="rm -f"}
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12239 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12240 # Try some XSI features
12241 xsi_shell=no
12242 ( _lt_dummy="a/b/c"
12243 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12244 = c,a/b,, \
12245 && eval 'test $(( 1 + 1 )) -eq 2 \
12246 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12247 && xsi_shell=yes
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12249 $as_echo "$xsi_shell" >&6; }
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12253 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12254 lt_shell_append=no
12255 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12256 >/dev/null 2>&1 \
12257 && lt_shell_append=yes
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12259 $as_echo "$lt_shell_append" >&6; }
12262 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12263 lt_unset=unset
12264 else
12265 lt_unset=false
12272 # test EBCDIC or ASCII
12273 case `echo X|tr X '\101'` in
12274 A) # ASCII based system
12275 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12276 lt_SP2NL='tr \040 \012'
12277 lt_NL2SP='tr \015\012 \040\040'
12279 *) # EBCDIC based system
12280 lt_SP2NL='tr \100 \n'
12281 lt_NL2SP='tr \r\n \100\100'
12283 esac
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12294 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12295 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12296 $as_echo_n "(cached) " >&6
12297 else
12298 lt_cv_ld_reload_flag='-r'
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12301 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12302 reload_flag=$lt_cv_ld_reload_flag
12303 case $reload_flag in
12304 "" | " "*) ;;
12305 *) reload_flag=" $reload_flag" ;;
12306 esac
12307 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12308 case $host_os in
12309 darwin*)
12310 if test "$GCC" = yes; then
12311 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12312 else
12313 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12316 esac
12326 if test -n "$ac_tool_prefix"; then
12327 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12328 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12330 $as_echo_n "checking for $ac_word... " >&6; }
12331 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12332 $as_echo_n "(cached) " >&6
12333 else
12334 if test -n "$OBJDUMP"; then
12335 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12336 else
12337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12338 for as_dir in $PATH
12340 IFS=$as_save_IFS
12341 test -z "$as_dir" && as_dir=.
12342 for ac_exec_ext in '' $ac_executable_extensions; do
12343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12344 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12346 break 2
12348 done
12349 done
12350 IFS=$as_save_IFS
12354 OBJDUMP=$ac_cv_prog_OBJDUMP
12355 if test -n "$OBJDUMP"; then
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12357 $as_echo "$OBJDUMP" >&6; }
12358 else
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12360 $as_echo "no" >&6; }
12365 if test -z "$ac_cv_prog_OBJDUMP"; then
12366 ac_ct_OBJDUMP=$OBJDUMP
12367 # Extract the first word of "objdump", so it can be a program name with args.
12368 set dummy objdump; ac_word=$2
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12370 $as_echo_n "checking for $ac_word... " >&6; }
12371 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12372 $as_echo_n "(cached) " >&6
12373 else
12374 if test -n "$ac_ct_OBJDUMP"; then
12375 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12376 else
12377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12378 for as_dir in $PATH
12380 IFS=$as_save_IFS
12381 test -z "$as_dir" && as_dir=.
12382 for ac_exec_ext in '' $ac_executable_extensions; do
12383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12384 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12386 break 2
12388 done
12389 done
12390 IFS=$as_save_IFS
12394 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12395 if test -n "$ac_ct_OBJDUMP"; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12397 $as_echo "$ac_ct_OBJDUMP" >&6; }
12398 else
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12400 $as_echo "no" >&6; }
12403 if test "x$ac_ct_OBJDUMP" = x; then
12404 OBJDUMP="false"
12405 else
12406 case $cross_compiling:$ac_tool_warned in
12407 yes:)
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12410 ac_tool_warned=yes ;;
12411 esac
12412 OBJDUMP=$ac_ct_OBJDUMP
12414 else
12415 OBJDUMP="$ac_cv_prog_OBJDUMP"
12418 test -z "$OBJDUMP" && OBJDUMP=objdump
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12429 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12430 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12431 $as_echo_n "(cached) " >&6
12432 else
12433 lt_cv_file_magic_cmd='$MAGIC_CMD'
12434 lt_cv_file_magic_test_file=
12435 lt_cv_deplibs_check_method='unknown'
12436 # Need to set the preceding variable on all platforms that support
12437 # interlibrary dependencies.
12438 # 'none' -- dependencies not supported.
12439 # `unknown' -- same as none, but documents that we really don't know.
12440 # 'pass_all' -- all dependencies passed with no checks.
12441 # 'test_compile' -- check by making test program.
12442 # 'file_magic [[regex]]' -- check by looking for files in library path
12443 # which responds to the $file_magic_cmd with a given extended regex.
12444 # If you have `file' or equivalent on your system and you're not sure
12445 # whether `pass_all' will *always* work, you probably want this one.
12447 case $host_os in
12448 aix[4-9]*)
12449 lt_cv_deplibs_check_method=pass_all
12452 beos*)
12453 lt_cv_deplibs_check_method=pass_all
12456 bsdi[45]*)
12457 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12458 lt_cv_file_magic_cmd='/usr/bin/file -L'
12459 lt_cv_file_magic_test_file=/shlib/libc.so
12462 cygwin*)
12463 # func_win32_libid is a shell function defined in ltmain.sh
12464 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12465 lt_cv_file_magic_cmd='func_win32_libid'
12468 mingw* | pw32*)
12469 # Base MSYS/MinGW do not provide the 'file' command needed by
12470 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12471 # unless we find 'file', for example because we are cross-compiling.
12472 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12473 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12474 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12475 lt_cv_file_magic_cmd='func_win32_libid'
12476 else
12477 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12478 lt_cv_file_magic_cmd='$OBJDUMP -f'
12482 cegcc*)
12483 # use the weaker test based on 'objdump'. See mingw*.
12484 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12485 lt_cv_file_magic_cmd='$OBJDUMP -f'
12488 darwin* | rhapsody*)
12489 lt_cv_deplibs_check_method=pass_all
12492 freebsd* | dragonfly*)
12493 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12494 case $host_cpu in
12495 i*86 )
12496 # Not sure whether the presence of OpenBSD here was a mistake.
12497 # Let's accept both of them until this is cleared up.
12498 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12499 lt_cv_file_magic_cmd=/usr/bin/file
12500 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12502 esac
12503 else
12504 lt_cv_deplibs_check_method=pass_all
12508 gnu*)
12509 lt_cv_deplibs_check_method=pass_all
12512 haiku*)
12513 lt_cv_deplibs_check_method=pass_all
12516 hpux10.20* | hpux11*)
12517 lt_cv_file_magic_cmd=/usr/bin/file
12518 case $host_cpu in
12519 ia64*)
12520 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12521 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12523 hppa*64*)
12524 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]'
12525 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12528 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12529 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12531 esac
12534 interix[3-9]*)
12535 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12536 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12539 irix5* | irix6* | nonstopux*)
12540 case $LD in
12541 *-32|*"-32 ") libmagic=32-bit;;
12542 *-n32|*"-n32 ") libmagic=N32;;
12543 *-64|*"-64 ") libmagic=64-bit;;
12544 *) libmagic=never-match;;
12545 esac
12546 lt_cv_deplibs_check_method=pass_all
12549 # This must be Linux ELF.
12550 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12551 lt_cv_deplibs_check_method=pass_all
12554 netbsd*)
12555 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12556 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12557 else
12558 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12562 newos6*)
12563 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12564 lt_cv_file_magic_cmd=/usr/bin/file
12565 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12568 *nto* | *qnx*)
12569 lt_cv_deplibs_check_method=pass_all
12572 openbsd*)
12573 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12574 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12575 else
12576 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12580 osf3* | osf4* | osf5*)
12581 lt_cv_deplibs_check_method=pass_all
12584 rdos*)
12585 lt_cv_deplibs_check_method=pass_all
12588 solaris*)
12589 lt_cv_deplibs_check_method=pass_all
12592 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12593 lt_cv_deplibs_check_method=pass_all
12596 sysv4 | sysv4.3*)
12597 case $host_vendor in
12598 motorola)
12599 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]'
12600 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12602 ncr)
12603 lt_cv_deplibs_check_method=pass_all
12605 sequent)
12606 lt_cv_file_magic_cmd='/bin/file'
12607 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12609 sni)
12610 lt_cv_file_magic_cmd='/bin/file'
12611 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12612 lt_cv_file_magic_test_file=/lib/libc.so
12614 siemens)
12615 lt_cv_deplibs_check_method=pass_all
12618 lt_cv_deplibs_check_method=pass_all
12620 esac
12623 tpf*)
12624 lt_cv_deplibs_check_method=pass_all
12626 esac
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12630 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12631 file_magic_cmd=$lt_cv_file_magic_cmd
12632 deplibs_check_method=$lt_cv_deplibs_check_method
12633 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12646 if test -n "$ac_tool_prefix"; then
12647 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12648 set dummy ${ac_tool_prefix}ar; ac_word=$2
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12650 $as_echo_n "checking for $ac_word... " >&6; }
12651 if test "${ac_cv_prog_AR+set}" = set; then :
12652 $as_echo_n "(cached) " >&6
12653 else
12654 if test -n "$AR"; then
12655 ac_cv_prog_AR="$AR" # Let the user override the test.
12656 else
12657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12658 for as_dir in $PATH
12660 IFS=$as_save_IFS
12661 test -z "$as_dir" && as_dir=.
12662 for ac_exec_ext in '' $ac_executable_extensions; do
12663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12664 ac_cv_prog_AR="${ac_tool_prefix}ar"
12665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12666 break 2
12668 done
12669 done
12670 IFS=$as_save_IFS
12674 AR=$ac_cv_prog_AR
12675 if test -n "$AR"; then
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12677 $as_echo "$AR" >&6; }
12678 else
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12680 $as_echo "no" >&6; }
12685 if test -z "$ac_cv_prog_AR"; then
12686 ac_ct_AR=$AR
12687 # Extract the first word of "ar", so it can be a program name with args.
12688 set dummy ar; ac_word=$2
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12690 $as_echo_n "checking for $ac_word... " >&6; }
12691 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12692 $as_echo_n "(cached) " >&6
12693 else
12694 if test -n "$ac_ct_AR"; then
12695 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12696 else
12697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12698 for as_dir in $PATH
12700 IFS=$as_save_IFS
12701 test -z "$as_dir" && as_dir=.
12702 for ac_exec_ext in '' $ac_executable_extensions; do
12703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12704 ac_cv_prog_ac_ct_AR="ar"
12705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12706 break 2
12708 done
12709 done
12710 IFS=$as_save_IFS
12714 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12715 if test -n "$ac_ct_AR"; then
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12717 $as_echo "$ac_ct_AR" >&6; }
12718 else
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12720 $as_echo "no" >&6; }
12723 if test "x$ac_ct_AR" = x; then
12724 AR="false"
12725 else
12726 case $cross_compiling:$ac_tool_warned in
12727 yes:)
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12730 ac_tool_warned=yes ;;
12731 esac
12732 AR=$ac_ct_AR
12734 else
12735 AR="$ac_cv_prog_AR"
12738 test -z "$AR" && AR=ar
12739 test -z "$AR_FLAGS" && AR_FLAGS=cru
12751 if test -n "$ac_tool_prefix"; then
12752 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12753 set dummy ${ac_tool_prefix}strip; ac_word=$2
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12755 $as_echo_n "checking for $ac_word... " >&6; }
12756 if test "${ac_cv_prog_STRIP+set}" = set; then :
12757 $as_echo_n "(cached) " >&6
12758 else
12759 if test -n "$STRIP"; then
12760 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12761 else
12762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12763 for as_dir in $PATH
12765 IFS=$as_save_IFS
12766 test -z "$as_dir" && as_dir=.
12767 for ac_exec_ext in '' $ac_executable_extensions; do
12768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12769 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12771 break 2
12773 done
12774 done
12775 IFS=$as_save_IFS
12779 STRIP=$ac_cv_prog_STRIP
12780 if test -n "$STRIP"; then
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12782 $as_echo "$STRIP" >&6; }
12783 else
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12785 $as_echo "no" >&6; }
12790 if test -z "$ac_cv_prog_STRIP"; then
12791 ac_ct_STRIP=$STRIP
12792 # Extract the first word of "strip", so it can be a program name with args.
12793 set dummy strip; ac_word=$2
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12795 $as_echo_n "checking for $ac_word... " >&6; }
12796 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12797 $as_echo_n "(cached) " >&6
12798 else
12799 if test -n "$ac_ct_STRIP"; then
12800 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12801 else
12802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12803 for as_dir in $PATH
12805 IFS=$as_save_IFS
12806 test -z "$as_dir" && as_dir=.
12807 for ac_exec_ext in '' $ac_executable_extensions; do
12808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12809 ac_cv_prog_ac_ct_STRIP="strip"
12810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12811 break 2
12813 done
12814 done
12815 IFS=$as_save_IFS
12819 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12820 if test -n "$ac_ct_STRIP"; then
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12822 $as_echo "$ac_ct_STRIP" >&6; }
12823 else
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12825 $as_echo "no" >&6; }
12828 if test "x$ac_ct_STRIP" = x; then
12829 STRIP=":"
12830 else
12831 case $cross_compiling:$ac_tool_warned in
12832 yes:)
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12835 ac_tool_warned=yes ;;
12836 esac
12837 STRIP=$ac_ct_STRIP
12839 else
12840 STRIP="$ac_cv_prog_STRIP"
12843 test -z "$STRIP" && STRIP=:
12850 if test -n "$ac_tool_prefix"; then
12851 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12852 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12854 $as_echo_n "checking for $ac_word... " >&6; }
12855 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12856 $as_echo_n "(cached) " >&6
12857 else
12858 if test -n "$RANLIB"; then
12859 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12860 else
12861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12862 for as_dir in $PATH
12864 IFS=$as_save_IFS
12865 test -z "$as_dir" && as_dir=.
12866 for ac_exec_ext in '' $ac_executable_extensions; do
12867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12868 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12870 break 2
12872 done
12873 done
12874 IFS=$as_save_IFS
12878 RANLIB=$ac_cv_prog_RANLIB
12879 if test -n "$RANLIB"; then
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12881 $as_echo "$RANLIB" >&6; }
12882 else
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12884 $as_echo "no" >&6; }
12889 if test -z "$ac_cv_prog_RANLIB"; then
12890 ac_ct_RANLIB=$RANLIB
12891 # Extract the first word of "ranlib", so it can be a program name with args.
12892 set dummy ranlib; ac_word=$2
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12894 $as_echo_n "checking for $ac_word... " >&6; }
12895 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12896 $as_echo_n "(cached) " >&6
12897 else
12898 if test -n "$ac_ct_RANLIB"; then
12899 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12900 else
12901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12902 for as_dir in $PATH
12904 IFS=$as_save_IFS
12905 test -z "$as_dir" && as_dir=.
12906 for ac_exec_ext in '' $ac_executable_extensions; do
12907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12908 ac_cv_prog_ac_ct_RANLIB="ranlib"
12909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12910 break 2
12912 done
12913 done
12914 IFS=$as_save_IFS
12918 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12919 if test -n "$ac_ct_RANLIB"; then
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12921 $as_echo "$ac_ct_RANLIB" >&6; }
12922 else
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12924 $as_echo "no" >&6; }
12927 if test "x$ac_ct_RANLIB" = x; then
12928 RANLIB=":"
12929 else
12930 case $cross_compiling:$ac_tool_warned in
12931 yes:)
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12934 ac_tool_warned=yes ;;
12935 esac
12936 RANLIB=$ac_ct_RANLIB
12938 else
12939 RANLIB="$ac_cv_prog_RANLIB"
12942 test -z "$RANLIB" && RANLIB=:
12949 # Determine commands to create old-style static archives.
12950 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12951 old_postinstall_cmds='chmod 644 $oldlib'
12952 old_postuninstall_cmds=
12954 if test -n "$RANLIB"; then
12955 case $host_os in
12956 openbsd*)
12957 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12960 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12962 esac
12963 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12966 case $host_os in
12967 darwin*)
12968 lock_old_archive_extraction=yes ;;
12970 lock_old_archive_extraction=no ;;
12971 esac
13011 # If no C compiler was specified, use CC.
13012 LTCC=${LTCC-"$CC"}
13014 # If no C compiler flags were specified, use CFLAGS.
13015 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13017 # Allow CC to be a program name with arguments.
13018 compiler=$CC
13021 # Check for command to grab the raw symbol name followed by C symbol from nm.
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13023 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13024 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13025 $as_echo_n "(cached) " >&6
13026 else
13028 # These are sane defaults that work on at least a few old systems.
13029 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13031 # Character class describing NM global symbol codes.
13032 symcode='[BCDEGRST]'
13034 # Regexp to match symbols that can be accessed directly from C.
13035 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13037 # Define system-specific variables.
13038 case $host_os in
13039 aix*)
13040 symcode='[BCDT]'
13042 cygwin* | mingw* | pw32* | cegcc*)
13043 symcode='[ABCDGISTW]'
13045 hpux*)
13046 if test "$host_cpu" = ia64; then
13047 symcode='[ABCDEGRST]'
13050 irix* | nonstopux*)
13051 symcode='[BCDEGRST]'
13053 osf*)
13054 symcode='[BCDEGQRST]'
13056 solaris*)
13057 symcode='[BDRT]'
13059 sco3.2v5*)
13060 symcode='[DT]'
13062 sysv4.2uw2*)
13063 symcode='[DT]'
13065 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13066 symcode='[ABDT]'
13068 sysv4)
13069 symcode='[DFNSTU]'
13071 esac
13073 # If we're using GNU nm, then use its standard symbol codes.
13074 case `$NM -V 2>&1` in
13075 *GNU* | *'with BFD'*)
13076 symcode='[ABCDGIRSTW]' ;;
13077 esac
13079 # Transform an extracted symbol line into a proper C declaration.
13080 # Some systems (esp. on ia64) link data and code symbols differently,
13081 # so use this general approach.
13082 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13084 # Transform an extracted symbol line into symbol name and symbol address
13085 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13086 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'"
13088 # Handle CRLF in mingw tool chain
13089 opt_cr=
13090 case $build_os in
13091 mingw*)
13092 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13094 esac
13096 # Try without a prefix underscore, then with it.
13097 for ac_symprfx in "" "_"; do
13099 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13100 symxfrm="\\1 $ac_symprfx\\2 \\2"
13102 # Write the raw and C identifiers.
13103 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13104 # Fake it for dumpbin and say T for any non-static function
13105 # and D for any global variable.
13106 # Also find C++ and __fastcall symbols from MSVC++,
13107 # which start with @ or ?.
13108 lt_cv_sys_global_symbol_pipe="$AWK '"\
13109 " {last_section=section; section=\$ 3};"\
13110 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13111 " \$ 0!~/External *\|/{next};"\
13112 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13113 " {if(hide[section]) next};"\
13114 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13115 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13116 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13117 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13118 " ' prfx=^$ac_symprfx"
13119 else
13120 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13123 # Check to see that the pipe works correctly.
13124 pipe_works=no
13126 rm -f conftest*
13127 cat > conftest.$ac_ext <<_LT_EOF
13128 #ifdef __cplusplus
13129 extern "C" {
13130 #endif
13131 char nm_test_var;
13132 void nm_test_func(void);
13133 void nm_test_func(void){}
13134 #ifdef __cplusplus
13136 #endif
13137 int main(){nm_test_var='a';nm_test_func();return(0);}
13138 _LT_EOF
13140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13141 (eval $ac_compile) 2>&5
13142 ac_status=$?
13143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13144 test $ac_status = 0; }; then
13145 # Now try to grab the symbols.
13146 nlist=conftest.nm
13147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13148 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13149 ac_status=$?
13150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13151 test $ac_status = 0; } && test -s "$nlist"; then
13152 # Try sorting and uniquifying the output.
13153 if sort "$nlist" | uniq > "$nlist"T; then
13154 mv -f "$nlist"T "$nlist"
13155 else
13156 rm -f "$nlist"T
13159 # Make sure that we snagged all the symbols we need.
13160 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13161 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13162 cat <<_LT_EOF > conftest.$ac_ext
13163 #ifdef __cplusplus
13164 extern "C" {
13165 #endif
13167 _LT_EOF
13168 # Now generate the symbol file.
13169 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13171 cat <<_LT_EOF >> conftest.$ac_ext
13173 /* The mapping between symbol names and symbols. */
13174 const struct {
13175 const char *name;
13176 void *address;
13178 lt__PROGRAM__LTX_preloaded_symbols[] =
13180 { "@PROGRAM@", (void *) 0 },
13181 _LT_EOF
13182 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13183 cat <<\_LT_EOF >> conftest.$ac_ext
13184 {0, (void *) 0}
13187 /* This works around a problem in FreeBSD linker */
13188 #ifdef FREEBSD_WORKAROUND
13189 static const void *lt_preloaded_setup() {
13190 return lt__PROGRAM__LTX_preloaded_symbols;
13192 #endif
13194 #ifdef __cplusplus
13196 #endif
13197 _LT_EOF
13198 # Now try linking the two files.
13199 mv conftest.$ac_objext conftstm.$ac_objext
13200 lt_save_LIBS="$LIBS"
13201 lt_save_CFLAGS="$CFLAGS"
13202 LIBS="conftstm.$ac_objext"
13203 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13205 (eval $ac_link) 2>&5
13206 ac_status=$?
13207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13208 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13209 pipe_works=yes
13211 LIBS="$lt_save_LIBS"
13212 CFLAGS="$lt_save_CFLAGS"
13213 else
13214 echo "cannot find nm_test_func in $nlist" >&5
13216 else
13217 echo "cannot find nm_test_var in $nlist" >&5
13219 else
13220 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13222 else
13223 echo "$progname: failed program was:" >&5
13224 cat conftest.$ac_ext >&5
13226 rm -rf conftest* conftst*
13228 # Do not use the global_symbol_pipe unless it works.
13229 if test "$pipe_works" = yes; then
13230 break
13231 else
13232 lt_cv_sys_global_symbol_pipe=
13234 done
13238 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13239 lt_cv_sys_global_symbol_to_cdecl=
13241 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13243 $as_echo "failed" >&6; }
13244 else
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13246 $as_echo "ok" >&6; }
13270 # Check whether --enable-libtool-lock was given.
13271 if test "${enable_libtool_lock+set}" = set; then :
13272 enableval=$enable_libtool_lock;
13275 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13277 # Some flags need to be propagated to the compiler or linker for good
13278 # libtool support.
13279 case $host in
13280 ia64-*-hpux*)
13281 # Find out which ABI we are using.
13282 echo 'int i;' > conftest.$ac_ext
13283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13284 (eval $ac_compile) 2>&5
13285 ac_status=$?
13286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13287 test $ac_status = 0; }; then
13288 case `/usr/bin/file conftest.$ac_objext` in
13289 *ELF-32*)
13290 HPUX_IA64_MODE="32"
13292 *ELF-64*)
13293 HPUX_IA64_MODE="64"
13295 esac
13297 rm -rf conftest*
13299 *-*-irix6*)
13300 # Find out which ABI we are using.
13301 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13303 (eval $ac_compile) 2>&5
13304 ac_status=$?
13305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13306 test $ac_status = 0; }; then
13307 if test "$lt_cv_prog_gnu_ld" = yes; then
13308 case `/usr/bin/file conftest.$ac_objext` in
13309 *32-bit*)
13310 LD="${LD-ld} -melf32bsmip"
13312 *N32*)
13313 LD="${LD-ld} -melf32bmipn32"
13315 *64-bit*)
13316 LD="${LD-ld} -melf64bmip"
13318 esac
13319 else
13320 case `/usr/bin/file conftest.$ac_objext` in
13321 *32-bit*)
13322 LD="${LD-ld} -32"
13324 *N32*)
13325 LD="${LD-ld} -n32"
13327 *64-bit*)
13328 LD="${LD-ld} -64"
13330 esac
13333 rm -rf conftest*
13336 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13337 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13338 # Find out which ABI we are using.
13339 echo 'int i;' > conftest.$ac_ext
13340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13341 (eval $ac_compile) 2>&5
13342 ac_status=$?
13343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13344 test $ac_status = 0; }; then
13345 case `/usr/bin/file conftest.o` in
13346 *32-bit*)
13347 case $host in
13348 x86_64-*kfreebsd*-gnu)
13349 LD="${LD-ld} -m elf_i386_fbsd"
13351 x86_64-*linux*)
13352 LD="${LD-ld} -m elf_i386"
13354 ppc64-*linux*|powerpc64-*linux*)
13355 LD="${LD-ld} -m elf32ppclinux"
13357 s390x-*linux*)
13358 LD="${LD-ld} -m elf_s390"
13360 sparc64-*linux*)
13361 LD="${LD-ld} -m elf32_sparc"
13363 esac
13365 *64-bit*)
13366 case $host in
13367 x86_64-*kfreebsd*-gnu)
13368 LD="${LD-ld} -m elf_x86_64_fbsd"
13370 x86_64-*linux*)
13371 LD="${LD-ld} -m elf_x86_64"
13373 ppc*-*linux*|powerpc*-*linux*)
13374 LD="${LD-ld} -m elf64ppc"
13376 s390*-*linux*|s390*-*tpf*)
13377 LD="${LD-ld} -m elf64_s390"
13379 sparc*-*linux*)
13380 LD="${LD-ld} -m elf64_sparc"
13382 esac
13384 esac
13386 rm -rf conftest*
13389 *-*-sco3.2v5*)
13390 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13391 SAVE_CFLAGS="$CFLAGS"
13392 CFLAGS="$CFLAGS -belf"
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13394 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13395 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13396 $as_echo_n "(cached) " >&6
13397 else
13398 ac_ext=c
13399 ac_cpp='$CPP $CPPFLAGS'
13400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13405 /* end confdefs.h. */
13408 main ()
13412 return 0;
13414 _ACEOF
13415 if ac_fn_c_try_link "$LINENO"; then :
13416 lt_cv_cc_needs_belf=yes
13417 else
13418 lt_cv_cc_needs_belf=no
13420 rm -f core conftest.err conftest.$ac_objext \
13421 conftest$ac_exeext conftest.$ac_ext
13422 ac_ext=c
13423 ac_cpp='$CPP $CPPFLAGS'
13424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13430 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13431 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13432 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13433 CFLAGS="$SAVE_CFLAGS"
13436 sparc*-*solaris*)
13437 # Find out which ABI we are using.
13438 echo 'int i;' > conftest.$ac_ext
13439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13440 (eval $ac_compile) 2>&5
13441 ac_status=$?
13442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13443 test $ac_status = 0; }; then
13444 case `/usr/bin/file conftest.o` in
13445 *64-bit*)
13446 case $lt_cv_prog_gnu_ld in
13447 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13449 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13450 LD="${LD-ld} -64"
13453 esac
13455 esac
13457 rm -rf conftest*
13459 esac
13461 need_locks="$enable_libtool_lock"
13464 case $host_os in
13465 rhapsody* | darwin*)
13466 if test -n "$ac_tool_prefix"; then
13467 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13468 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13470 $as_echo_n "checking for $ac_word... " >&6; }
13471 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13472 $as_echo_n "(cached) " >&6
13473 else
13474 if test -n "$DSYMUTIL"; then
13475 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13476 else
13477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13478 for as_dir in $PATH
13480 IFS=$as_save_IFS
13481 test -z "$as_dir" && as_dir=.
13482 for ac_exec_ext in '' $ac_executable_extensions; do
13483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13484 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13486 break 2
13488 done
13489 done
13490 IFS=$as_save_IFS
13494 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13495 if test -n "$DSYMUTIL"; then
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13497 $as_echo "$DSYMUTIL" >&6; }
13498 else
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13500 $as_echo "no" >&6; }
13505 if test -z "$ac_cv_prog_DSYMUTIL"; then
13506 ac_ct_DSYMUTIL=$DSYMUTIL
13507 # Extract the first word of "dsymutil", so it can be a program name with args.
13508 set dummy dsymutil; ac_word=$2
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13510 $as_echo_n "checking for $ac_word... " >&6; }
13511 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13512 $as_echo_n "(cached) " >&6
13513 else
13514 if test -n "$ac_ct_DSYMUTIL"; then
13515 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13516 else
13517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13518 for as_dir in $PATH
13520 IFS=$as_save_IFS
13521 test -z "$as_dir" && as_dir=.
13522 for ac_exec_ext in '' $ac_executable_extensions; do
13523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13524 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13526 break 2
13528 done
13529 done
13530 IFS=$as_save_IFS
13534 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13535 if test -n "$ac_ct_DSYMUTIL"; then
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13537 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13538 else
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13540 $as_echo "no" >&6; }
13543 if test "x$ac_ct_DSYMUTIL" = x; then
13544 DSYMUTIL=":"
13545 else
13546 case $cross_compiling:$ac_tool_warned in
13547 yes:)
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13550 ac_tool_warned=yes ;;
13551 esac
13552 DSYMUTIL=$ac_ct_DSYMUTIL
13554 else
13555 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13558 if test -n "$ac_tool_prefix"; then
13559 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13560 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13562 $as_echo_n "checking for $ac_word... " >&6; }
13563 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13564 $as_echo_n "(cached) " >&6
13565 else
13566 if test -n "$NMEDIT"; then
13567 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13568 else
13569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13570 for as_dir in $PATH
13572 IFS=$as_save_IFS
13573 test -z "$as_dir" && as_dir=.
13574 for ac_exec_ext in '' $ac_executable_extensions; do
13575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13576 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13578 break 2
13580 done
13581 done
13582 IFS=$as_save_IFS
13586 NMEDIT=$ac_cv_prog_NMEDIT
13587 if test -n "$NMEDIT"; then
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13589 $as_echo "$NMEDIT" >&6; }
13590 else
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13592 $as_echo "no" >&6; }
13597 if test -z "$ac_cv_prog_NMEDIT"; then
13598 ac_ct_NMEDIT=$NMEDIT
13599 # Extract the first word of "nmedit", so it can be a program name with args.
13600 set dummy nmedit; ac_word=$2
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13602 $as_echo_n "checking for $ac_word... " >&6; }
13603 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13604 $as_echo_n "(cached) " >&6
13605 else
13606 if test -n "$ac_ct_NMEDIT"; then
13607 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13608 else
13609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13610 for as_dir in $PATH
13612 IFS=$as_save_IFS
13613 test -z "$as_dir" && as_dir=.
13614 for ac_exec_ext in '' $ac_executable_extensions; do
13615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13616 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13618 break 2
13620 done
13621 done
13622 IFS=$as_save_IFS
13626 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13627 if test -n "$ac_ct_NMEDIT"; then
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13629 $as_echo "$ac_ct_NMEDIT" >&6; }
13630 else
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13632 $as_echo "no" >&6; }
13635 if test "x$ac_ct_NMEDIT" = x; then
13636 NMEDIT=":"
13637 else
13638 case $cross_compiling:$ac_tool_warned in
13639 yes:)
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13642 ac_tool_warned=yes ;;
13643 esac
13644 NMEDIT=$ac_ct_NMEDIT
13646 else
13647 NMEDIT="$ac_cv_prog_NMEDIT"
13650 if test -n "$ac_tool_prefix"; then
13651 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13652 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13654 $as_echo_n "checking for $ac_word... " >&6; }
13655 if test "${ac_cv_prog_LIPO+set}" = set; then :
13656 $as_echo_n "(cached) " >&6
13657 else
13658 if test -n "$LIPO"; then
13659 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13660 else
13661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13662 for as_dir in $PATH
13664 IFS=$as_save_IFS
13665 test -z "$as_dir" && as_dir=.
13666 for ac_exec_ext in '' $ac_executable_extensions; do
13667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13668 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13670 break 2
13672 done
13673 done
13674 IFS=$as_save_IFS
13678 LIPO=$ac_cv_prog_LIPO
13679 if test -n "$LIPO"; then
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13681 $as_echo "$LIPO" >&6; }
13682 else
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13684 $as_echo "no" >&6; }
13689 if test -z "$ac_cv_prog_LIPO"; then
13690 ac_ct_LIPO=$LIPO
13691 # Extract the first word of "lipo", so it can be a program name with args.
13692 set dummy lipo; ac_word=$2
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13694 $as_echo_n "checking for $ac_word... " >&6; }
13695 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13696 $as_echo_n "(cached) " >&6
13697 else
13698 if test -n "$ac_ct_LIPO"; then
13699 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13700 else
13701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13702 for as_dir in $PATH
13704 IFS=$as_save_IFS
13705 test -z "$as_dir" && as_dir=.
13706 for ac_exec_ext in '' $ac_executable_extensions; do
13707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13708 ac_cv_prog_ac_ct_LIPO="lipo"
13709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13710 break 2
13712 done
13713 done
13714 IFS=$as_save_IFS
13718 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13719 if test -n "$ac_ct_LIPO"; then
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13721 $as_echo "$ac_ct_LIPO" >&6; }
13722 else
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13724 $as_echo "no" >&6; }
13727 if test "x$ac_ct_LIPO" = x; then
13728 LIPO=":"
13729 else
13730 case $cross_compiling:$ac_tool_warned in
13731 yes:)
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13734 ac_tool_warned=yes ;;
13735 esac
13736 LIPO=$ac_ct_LIPO
13738 else
13739 LIPO="$ac_cv_prog_LIPO"
13742 if test -n "$ac_tool_prefix"; then
13743 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13744 set dummy ${ac_tool_prefix}otool; ac_word=$2
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13746 $as_echo_n "checking for $ac_word... " >&6; }
13747 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13748 $as_echo_n "(cached) " >&6
13749 else
13750 if test -n "$OTOOL"; then
13751 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13752 else
13753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13754 for as_dir in $PATH
13756 IFS=$as_save_IFS
13757 test -z "$as_dir" && as_dir=.
13758 for ac_exec_ext in '' $ac_executable_extensions; do
13759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13760 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13762 break 2
13764 done
13765 done
13766 IFS=$as_save_IFS
13770 OTOOL=$ac_cv_prog_OTOOL
13771 if test -n "$OTOOL"; then
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13773 $as_echo "$OTOOL" >&6; }
13774 else
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13776 $as_echo "no" >&6; }
13781 if test -z "$ac_cv_prog_OTOOL"; then
13782 ac_ct_OTOOL=$OTOOL
13783 # Extract the first word of "otool", so it can be a program name with args.
13784 set dummy otool; ac_word=$2
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13786 $as_echo_n "checking for $ac_word... " >&6; }
13787 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13788 $as_echo_n "(cached) " >&6
13789 else
13790 if test -n "$ac_ct_OTOOL"; then
13791 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13792 else
13793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13794 for as_dir in $PATH
13796 IFS=$as_save_IFS
13797 test -z "$as_dir" && as_dir=.
13798 for ac_exec_ext in '' $ac_executable_extensions; do
13799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13800 ac_cv_prog_ac_ct_OTOOL="otool"
13801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13802 break 2
13804 done
13805 done
13806 IFS=$as_save_IFS
13810 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13811 if test -n "$ac_ct_OTOOL"; then
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13813 $as_echo "$ac_ct_OTOOL" >&6; }
13814 else
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13816 $as_echo "no" >&6; }
13819 if test "x$ac_ct_OTOOL" = x; then
13820 OTOOL=":"
13821 else
13822 case $cross_compiling:$ac_tool_warned in
13823 yes:)
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13826 ac_tool_warned=yes ;;
13827 esac
13828 OTOOL=$ac_ct_OTOOL
13830 else
13831 OTOOL="$ac_cv_prog_OTOOL"
13834 if test -n "$ac_tool_prefix"; then
13835 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13836 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13838 $as_echo_n "checking for $ac_word... " >&6; }
13839 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13840 $as_echo_n "(cached) " >&6
13841 else
13842 if test -n "$OTOOL64"; then
13843 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13844 else
13845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13846 for as_dir in $PATH
13848 IFS=$as_save_IFS
13849 test -z "$as_dir" && as_dir=.
13850 for ac_exec_ext in '' $ac_executable_extensions; do
13851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13852 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13854 break 2
13856 done
13857 done
13858 IFS=$as_save_IFS
13862 OTOOL64=$ac_cv_prog_OTOOL64
13863 if test -n "$OTOOL64"; then
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13865 $as_echo "$OTOOL64" >&6; }
13866 else
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13868 $as_echo "no" >&6; }
13873 if test -z "$ac_cv_prog_OTOOL64"; then
13874 ac_ct_OTOOL64=$OTOOL64
13875 # Extract the first word of "otool64", so it can be a program name with args.
13876 set dummy otool64; ac_word=$2
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13878 $as_echo_n "checking for $ac_word... " >&6; }
13879 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13880 $as_echo_n "(cached) " >&6
13881 else
13882 if test -n "$ac_ct_OTOOL64"; then
13883 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13884 else
13885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13886 for as_dir in $PATH
13888 IFS=$as_save_IFS
13889 test -z "$as_dir" && as_dir=.
13890 for ac_exec_ext in '' $ac_executable_extensions; do
13891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13892 ac_cv_prog_ac_ct_OTOOL64="otool64"
13893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13894 break 2
13896 done
13897 done
13898 IFS=$as_save_IFS
13902 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13903 if test -n "$ac_ct_OTOOL64"; then
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13905 $as_echo "$ac_ct_OTOOL64" >&6; }
13906 else
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13908 $as_echo "no" >&6; }
13911 if test "x$ac_ct_OTOOL64" = x; then
13912 OTOOL64=":"
13913 else
13914 case $cross_compiling:$ac_tool_warned in
13915 yes:)
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13918 ac_tool_warned=yes ;;
13919 esac
13920 OTOOL64=$ac_ct_OTOOL64
13922 else
13923 OTOOL64="$ac_cv_prog_OTOOL64"
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13953 $as_echo_n "checking for -single_module linker flag... " >&6; }
13954 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13955 $as_echo_n "(cached) " >&6
13956 else
13957 lt_cv_apple_cc_single_mod=no
13958 if test -z "${LT_MULTI_MODULE}"; then
13959 # By default we will add the -single_module flag. You can override
13960 # by either setting the environment variable LT_MULTI_MODULE
13961 # non-empty at configure time, or by adding -multi_module to the
13962 # link flags.
13963 rm -rf libconftest.dylib*
13964 echo "int foo(void){return 1;}" > conftest.c
13965 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13966 -dynamiclib -Wl,-single_module conftest.c" >&5
13967 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13968 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13969 _lt_result=$?
13970 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13971 lt_cv_apple_cc_single_mod=yes
13972 else
13973 cat conftest.err >&5
13975 rm -rf libconftest.dylib*
13976 rm -f conftest.*
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13980 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13982 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13983 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13984 $as_echo_n "(cached) " >&6
13985 else
13986 lt_cv_ld_exported_symbols_list=no
13987 save_LDFLAGS=$LDFLAGS
13988 echo "_main" > conftest.sym
13989 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13991 /* end confdefs.h. */
13994 main ()
13998 return 0;
14000 _ACEOF
14001 if ac_fn_c_try_link "$LINENO"; then :
14002 lt_cv_ld_exported_symbols_list=yes
14003 else
14004 lt_cv_ld_exported_symbols_list=no
14006 rm -f core conftest.err conftest.$ac_objext \
14007 conftest$ac_exeext conftest.$ac_ext
14008 LDFLAGS="$save_LDFLAGS"
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14012 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14014 $as_echo_n "checking for -force_load linker flag... " >&6; }
14015 if test "${lt_cv_ld_force_load+set}" = set; then :
14016 $as_echo_n "(cached) " >&6
14017 else
14018 lt_cv_ld_force_load=no
14019 cat > conftest.c << _LT_EOF
14020 int forced_loaded() { return 2;}
14021 _LT_EOF
14022 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14023 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14024 echo "$AR cru libconftest.a conftest.o" >&5
14025 $AR cru libconftest.a conftest.o 2>&5
14026 cat > conftest.c << _LT_EOF
14027 int main() { return 0;}
14028 _LT_EOF
14029 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14030 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14031 _lt_result=$?
14032 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14033 lt_cv_ld_force_load=yes
14034 else
14035 cat conftest.err >&5
14037 rm -f conftest.err libconftest.a conftest conftest.c
14038 rm -rf conftest.dSYM
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14042 $as_echo "$lt_cv_ld_force_load" >&6; }
14043 case $host_os in
14044 rhapsody* | darwin1.[012])
14045 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14046 darwin1.*)
14047 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14048 darwin*) # darwin 5.x on
14049 # if running on 10.5 or later, the deployment target defaults
14050 # to the OS version, if on x86, and 10.4, the deployment
14051 # target defaults to 10.4. Don't you love it?
14052 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14053 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14054 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14055 10.[012]*)
14056 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14057 10.*)
14058 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14059 esac
14061 esac
14062 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14063 _lt_dar_single_mod='$single_module'
14065 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14066 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14067 else
14068 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14070 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14071 _lt_dsymutil='~$DSYMUTIL $lib || :'
14072 else
14073 _lt_dsymutil=
14076 esac
14078 for ac_header in dlfcn.h
14079 do :
14080 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14081 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14082 cat >>confdefs.h <<_ACEOF
14083 #define HAVE_DLFCN_H 1
14084 _ACEOF
14087 done
14093 # Set options
14097 enable_dlopen=no
14100 enable_win32_dll=no
14103 # Check whether --enable-shared was given.
14104 if test "${enable_shared+set}" = set; then :
14105 enableval=$enable_shared; p=${PACKAGE-default}
14106 case $enableval in
14107 yes) enable_shared=yes ;;
14108 no) enable_shared=no ;;
14110 enable_shared=no
14111 # Look at the argument we got. We use all the common list separators.
14112 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14113 for pkg in $enableval; do
14114 IFS="$lt_save_ifs"
14115 if test "X$pkg" = "X$p"; then
14116 enable_shared=yes
14118 done
14119 IFS="$lt_save_ifs"
14121 esac
14122 else
14123 enable_shared=yes
14134 # Check whether --enable-static was given.
14135 if test "${enable_static+set}" = set; then :
14136 enableval=$enable_static; p=${PACKAGE-default}
14137 case $enableval in
14138 yes) enable_static=yes ;;
14139 no) enable_static=no ;;
14141 enable_static=no
14142 # Look at the argument we got. We use all the common list separators.
14143 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14144 for pkg in $enableval; do
14145 IFS="$lt_save_ifs"
14146 if test "X$pkg" = "X$p"; then
14147 enable_static=yes
14149 done
14150 IFS="$lt_save_ifs"
14152 esac
14153 else
14154 enable_static=yes
14166 # Check whether --with-pic was given.
14167 if test "${with_pic+set}" = set; then :
14168 withval=$with_pic; p=${PACKAGE-default}
14169 case "$withval" in
14170 yes|no) pic_mode="$withval" ;;
14172 pic_mode=default
14173 # Look at the argument we got. We use all the common list separators.
14174 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14175 for pkg in $withval; do
14176 IFS="$lt_save_ifs"
14177 if test "X$pkg" = "X$p"; then
14178 pic_mode=yes
14180 done
14181 IFS="$lt_save_ifs"
14183 esac
14184 else
14185 pic_mode=default
14189 test -z "$pic_mode" && pic_mode=default
14197 # Check whether --enable-fast-install was given.
14198 if test "${enable_fast_install+set}" = set; then :
14199 enableval=$enable_fast_install; p=${PACKAGE-default}
14200 case $enableval in
14201 yes) enable_fast_install=yes ;;
14202 no) enable_fast_install=no ;;
14204 enable_fast_install=no
14205 # Look at the argument we got. We use all the common list separators.
14206 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14207 for pkg in $enableval; do
14208 IFS="$lt_save_ifs"
14209 if test "X$pkg" = "X$p"; then
14210 enable_fast_install=yes
14212 done
14213 IFS="$lt_save_ifs"
14215 esac
14216 else
14217 enable_fast_install=yes
14230 # This can be used to rebuild libtool when needed
14231 LIBTOOL_DEPS="$ltmain"
14233 # Always use our own libtool.
14234 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14261 test -z "$LN_S" && LN_S="ln -s"
14276 if test -n "${ZSH_VERSION+set}" ; then
14277 setopt NO_GLOB_SUBST
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14281 $as_echo_n "checking for objdir... " >&6; }
14282 if test "${lt_cv_objdir+set}" = set; then :
14283 $as_echo_n "(cached) " >&6
14284 else
14285 rm -f .libs 2>/dev/null
14286 mkdir .libs 2>/dev/null
14287 if test -d .libs; then
14288 lt_cv_objdir=.libs
14289 else
14290 # MS-DOS does not allow filenames that begin with a dot.
14291 lt_cv_objdir=_libs
14293 rmdir .libs 2>/dev/null
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14296 $as_echo "$lt_cv_objdir" >&6; }
14297 objdir=$lt_cv_objdir
14303 cat >>confdefs.h <<_ACEOF
14304 #define LT_OBJDIR "$lt_cv_objdir/"
14305 _ACEOF
14310 case $host_os in
14311 aix3*)
14312 # AIX sometimes has problems with the GCC collect2 program. For some
14313 # reason, if we set the COLLECT_NAMES environment variable, the problems
14314 # vanish in a puff of smoke.
14315 if test "X${COLLECT_NAMES+set}" != Xset; then
14316 COLLECT_NAMES=
14317 export COLLECT_NAMES
14320 esac
14322 # Global variables:
14323 ofile=libtool
14324 can_build_shared=yes
14326 # All known linkers require a `.a' archive for static linking (except MSVC,
14327 # which needs '.lib').
14328 libext=a
14330 with_gnu_ld="$lt_cv_prog_gnu_ld"
14332 old_CC="$CC"
14333 old_CFLAGS="$CFLAGS"
14335 # Set sane defaults for various variables
14336 test -z "$CC" && CC=cc
14337 test -z "$LTCC" && LTCC=$CC
14338 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14339 test -z "$LD" && LD=ld
14340 test -z "$ac_objext" && ac_objext=o
14342 for cc_temp in $compiler""; do
14343 case $cc_temp in
14344 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14345 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14346 \-*) ;;
14347 *) break;;
14348 esac
14349 done
14350 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14353 # Only perform the check for file, if the check method requires it
14354 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14355 case $deplibs_check_method in
14356 file_magic*)
14357 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14359 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14360 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14361 $as_echo_n "(cached) " >&6
14362 else
14363 case $MAGIC_CMD in
14364 [\\/*] | ?:[\\/]*)
14365 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14368 lt_save_MAGIC_CMD="$MAGIC_CMD"
14369 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14370 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14371 for ac_dir in $ac_dummy; do
14372 IFS="$lt_save_ifs"
14373 test -z "$ac_dir" && ac_dir=.
14374 if test -f $ac_dir/${ac_tool_prefix}file; then
14375 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14376 if test -n "$file_magic_test_file"; then
14377 case $deplibs_check_method in
14378 "file_magic "*)
14379 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14380 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14381 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14382 $EGREP "$file_magic_regex" > /dev/null; then
14384 else
14385 cat <<_LT_EOF 1>&2
14387 *** Warning: the command libtool uses to detect shared libraries,
14388 *** $file_magic_cmd, produces output that libtool cannot recognize.
14389 *** The result is that libtool may fail to recognize shared libraries
14390 *** as such. This will affect the creation of libtool libraries that
14391 *** depend on shared libraries, but programs linked with such libtool
14392 *** libraries will work regardless of this problem. Nevertheless, you
14393 *** may want to report the problem to your system manager and/or to
14394 *** bug-libtool@gnu.org
14396 _LT_EOF
14397 fi ;;
14398 esac
14400 break
14402 done
14403 IFS="$lt_save_ifs"
14404 MAGIC_CMD="$lt_save_MAGIC_CMD"
14406 esac
14409 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14410 if test -n "$MAGIC_CMD"; then
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14412 $as_echo "$MAGIC_CMD" >&6; }
14413 else
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14415 $as_echo "no" >&6; }
14422 if test -z "$lt_cv_path_MAGIC_CMD"; then
14423 if test -n "$ac_tool_prefix"; then
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14425 $as_echo_n "checking for file... " >&6; }
14426 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14427 $as_echo_n "(cached) " >&6
14428 else
14429 case $MAGIC_CMD in
14430 [\\/*] | ?:[\\/]*)
14431 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14434 lt_save_MAGIC_CMD="$MAGIC_CMD"
14435 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14436 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14437 for ac_dir in $ac_dummy; do
14438 IFS="$lt_save_ifs"
14439 test -z "$ac_dir" && ac_dir=.
14440 if test -f $ac_dir/file; then
14441 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14442 if test -n "$file_magic_test_file"; then
14443 case $deplibs_check_method in
14444 "file_magic "*)
14445 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14446 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14447 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14448 $EGREP "$file_magic_regex" > /dev/null; then
14450 else
14451 cat <<_LT_EOF 1>&2
14453 *** Warning: the command libtool uses to detect shared libraries,
14454 *** $file_magic_cmd, produces output that libtool cannot recognize.
14455 *** The result is that libtool may fail to recognize shared libraries
14456 *** as such. This will affect the creation of libtool libraries that
14457 *** depend on shared libraries, but programs linked with such libtool
14458 *** libraries will work regardless of this problem. Nevertheless, you
14459 *** may want to report the problem to your system manager and/or to
14460 *** bug-libtool@gnu.org
14462 _LT_EOF
14463 fi ;;
14464 esac
14466 break
14468 done
14469 IFS="$lt_save_ifs"
14470 MAGIC_CMD="$lt_save_MAGIC_CMD"
14472 esac
14475 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14476 if test -n "$MAGIC_CMD"; then
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14478 $as_echo "$MAGIC_CMD" >&6; }
14479 else
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14481 $as_echo "no" >&6; }
14485 else
14486 MAGIC_CMD=:
14492 esac
14494 # Use C for the default configuration in the libtool script
14496 lt_save_CC="$CC"
14497 ac_ext=c
14498 ac_cpp='$CPP $CPPFLAGS'
14499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14504 # Source file extension for C test sources.
14505 ac_ext=c
14507 # Object file extension for compiled C test sources.
14508 objext=o
14509 objext=$objext
14511 # Code to be used in simple compile tests
14512 lt_simple_compile_test_code="int some_variable = 0;"
14514 # Code to be used in simple link tests
14515 lt_simple_link_test_code='int main(){return(0);}'
14523 # If no C compiler was specified, use CC.
14524 LTCC=${LTCC-"$CC"}
14526 # If no C compiler flags were specified, use CFLAGS.
14527 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14529 # Allow CC to be a program name with arguments.
14530 compiler=$CC
14532 # Save the default compiler, since it gets overwritten when the other
14533 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14534 compiler_DEFAULT=$CC
14536 # save warnings/boilerplate of simple test code
14537 ac_outfile=conftest.$ac_objext
14538 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14539 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14540 _lt_compiler_boilerplate=`cat conftest.err`
14541 $RM conftest*
14543 ac_outfile=conftest.$ac_objext
14544 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14545 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14546 _lt_linker_boilerplate=`cat conftest.err`
14547 $RM -r conftest*
14550 ## CAVEAT EMPTOR:
14551 ## There is no encapsulation within the following macros, do not change
14552 ## the running order or otherwise move them around unless you know exactly
14553 ## what you are doing...
14554 if test -n "$compiler"; then
14556 lt_prog_compiler_no_builtin_flag=
14558 if test "$GCC" = yes; then
14559 case $cc_basename in
14560 nvcc*)
14561 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14563 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14564 esac
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14567 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14568 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14569 $as_echo_n "(cached) " >&6
14570 else
14571 lt_cv_prog_compiler_rtti_exceptions=no
14572 ac_outfile=conftest.$ac_objext
14573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14574 lt_compiler_flag="-fno-rtti -fno-exceptions"
14575 # Insert the option either (1) after the last *FLAGS variable, or
14576 # (2) before a word containing "conftest.", or (3) at the end.
14577 # Note that $ac_compile itself does not contain backslashes and begins
14578 # with a dollar sign (not a hyphen), so the echo should work correctly.
14579 # The option is referenced via a variable to avoid confusing sed.
14580 lt_compile=`echo "$ac_compile" | $SED \
14581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14583 -e 's:$: $lt_compiler_flag:'`
14584 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14585 (eval "$lt_compile" 2>conftest.err)
14586 ac_status=$?
14587 cat conftest.err >&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 if (exit $ac_status) && test -s "$ac_outfile"; then
14590 # The compiler can only warn and ignore the option if not recognized
14591 # So say no if there are warnings other than the usual output.
14592 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14594 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14595 lt_cv_prog_compiler_rtti_exceptions=yes
14598 $RM conftest*
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14602 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14604 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14605 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14606 else
14617 lt_prog_compiler_wl=
14618 lt_prog_compiler_pic=
14619 lt_prog_compiler_static=
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14622 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14624 if test "$GCC" = yes; then
14625 lt_prog_compiler_wl='-Wl,'
14626 lt_prog_compiler_static='-static'
14628 case $host_os in
14629 aix*)
14630 # All AIX code is PIC.
14631 if test "$host_cpu" = ia64; then
14632 # AIX 5 now supports IA64 processor
14633 lt_prog_compiler_static='-Bstatic'
14637 amigaos*)
14638 case $host_cpu in
14639 powerpc)
14640 # see comment about AmigaOS4 .so support
14641 lt_prog_compiler_pic='-fPIC'
14643 m68k)
14644 # FIXME: we need at least 68020 code to build shared libraries, but
14645 # adding the `-m68020' flag to GCC prevents building anything better,
14646 # like `-m68040'.
14647 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14649 esac
14652 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14653 # PIC is the default for these OSes.
14656 mingw* | cygwin* | pw32* | os2* | cegcc*)
14657 # This hack is so that the source file can tell whether it is being
14658 # built for inclusion in a dll (and should export symbols for example).
14659 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14660 # (--disable-auto-import) libraries
14661 lt_prog_compiler_pic='-DDLL_EXPORT'
14664 darwin* | rhapsody*)
14665 # PIC is the default on this platform
14666 # Common symbols not allowed in MH_DYLIB files
14667 lt_prog_compiler_pic='-fno-common'
14670 haiku*)
14671 # PIC is the default for Haiku.
14672 # The "-static" flag exists, but is broken.
14673 lt_prog_compiler_static=
14676 hpux*)
14677 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14678 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14679 # sets the default TLS model and affects inlining.
14680 case $host_cpu in
14681 hppa*64*)
14682 # +Z the default
14685 lt_prog_compiler_pic='-fPIC'
14687 esac
14690 interix[3-9]*)
14691 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14692 # Instead, we relocate shared libraries at runtime.
14695 msdosdjgpp*)
14696 # Just because we use GCC doesn't mean we suddenly get shared libraries
14697 # on systems that don't support them.
14698 lt_prog_compiler_can_build_shared=no
14699 enable_shared=no
14702 *nto* | *qnx*)
14703 # QNX uses GNU C++, but need to define -shared option too, otherwise
14704 # it will coredump.
14705 lt_prog_compiler_pic='-fPIC -shared'
14708 sysv4*MP*)
14709 if test -d /usr/nec; then
14710 lt_prog_compiler_pic=-Kconform_pic
14715 lt_prog_compiler_pic='-fPIC'
14717 esac
14719 case $cc_basename in
14720 nvcc*) # Cuda Compiler Driver 2.2
14721 lt_prog_compiler_wl='-Xlinker '
14722 lt_prog_compiler_pic='-Xcompiler -fPIC'
14724 esac
14725 else
14726 # PORTME Check for flag to pass linker flags through the system compiler.
14727 case $host_os in
14728 aix*)
14729 lt_prog_compiler_wl='-Wl,'
14730 if test "$host_cpu" = ia64; then
14731 # AIX 5 now supports IA64 processor
14732 lt_prog_compiler_static='-Bstatic'
14733 else
14734 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14738 mingw* | cygwin* | pw32* | os2* | cegcc*)
14739 # This hack is so that the source file can tell whether it is being
14740 # built for inclusion in a dll (and should export symbols for example).
14741 lt_prog_compiler_pic='-DDLL_EXPORT'
14744 hpux9* | hpux10* | hpux11*)
14745 lt_prog_compiler_wl='-Wl,'
14746 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14747 # not for PA HP-UX.
14748 case $host_cpu in
14749 hppa*64*|ia64*)
14750 # +Z the default
14753 lt_prog_compiler_pic='+Z'
14755 esac
14756 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14757 lt_prog_compiler_static='${wl}-a ${wl}archive'
14760 irix5* | irix6* | nonstopux*)
14761 lt_prog_compiler_wl='-Wl,'
14762 # PIC (with -KPIC) is the default.
14763 lt_prog_compiler_static='-non_shared'
14766 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14767 case $cc_basename in
14768 # old Intel for x86_64 which still supported -KPIC.
14769 ecc*)
14770 lt_prog_compiler_wl='-Wl,'
14771 lt_prog_compiler_pic='-KPIC'
14772 lt_prog_compiler_static='-static'
14774 # icc used to be incompatible with GCC.
14775 # ICC 10 doesn't accept -KPIC any more.
14776 icc* | ifort*)
14777 lt_prog_compiler_wl='-Wl,'
14778 lt_prog_compiler_pic='-fPIC'
14779 lt_prog_compiler_static='-static'
14781 # Lahey Fortran 8.1.
14782 lf95*)
14783 lt_prog_compiler_wl='-Wl,'
14784 lt_prog_compiler_pic='--shared'
14785 lt_prog_compiler_static='--static'
14787 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14788 # Portland Group compilers (*not* the Pentium gcc compiler,
14789 # which looks to be a dead project)
14790 lt_prog_compiler_wl='-Wl,'
14791 lt_prog_compiler_pic='-fpic'
14792 lt_prog_compiler_static='-Bstatic'
14794 ccc*)
14795 lt_prog_compiler_wl='-Wl,'
14796 # All Alpha code is PIC.
14797 lt_prog_compiler_static='-non_shared'
14799 xl* | bgxl* | bgf* | mpixl*)
14800 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14801 lt_prog_compiler_wl='-Wl,'
14802 lt_prog_compiler_pic='-qpic'
14803 lt_prog_compiler_static='-qstaticlink'
14806 case `$CC -V 2>&1 | sed 5q` in
14807 *Sun\ F* | *Sun*Fortran*)
14808 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14809 lt_prog_compiler_pic='-KPIC'
14810 lt_prog_compiler_static='-Bstatic'
14811 lt_prog_compiler_wl=''
14813 *Sun\ C*)
14814 # Sun C 5.9
14815 lt_prog_compiler_pic='-KPIC'
14816 lt_prog_compiler_static='-Bstatic'
14817 lt_prog_compiler_wl='-Wl,'
14819 esac
14821 esac
14824 newsos6)
14825 lt_prog_compiler_pic='-KPIC'
14826 lt_prog_compiler_static='-Bstatic'
14829 *nto* | *qnx*)
14830 # QNX uses GNU C++, but need to define -shared option too, otherwise
14831 # it will coredump.
14832 lt_prog_compiler_pic='-fPIC -shared'
14835 osf3* | osf4* | osf5*)
14836 lt_prog_compiler_wl='-Wl,'
14837 # All OSF/1 code is PIC.
14838 lt_prog_compiler_static='-non_shared'
14841 rdos*)
14842 lt_prog_compiler_static='-non_shared'
14845 solaris*)
14846 lt_prog_compiler_pic='-KPIC'
14847 lt_prog_compiler_static='-Bstatic'
14848 case $cc_basename in
14849 f77* | f90* | f95*)
14850 lt_prog_compiler_wl='-Qoption ld ';;
14852 lt_prog_compiler_wl='-Wl,';;
14853 esac
14856 sunos4*)
14857 lt_prog_compiler_wl='-Qoption ld '
14858 lt_prog_compiler_pic='-PIC'
14859 lt_prog_compiler_static='-Bstatic'
14862 sysv4 | sysv4.2uw2* | sysv4.3*)
14863 lt_prog_compiler_wl='-Wl,'
14864 lt_prog_compiler_pic='-KPIC'
14865 lt_prog_compiler_static='-Bstatic'
14868 sysv4*MP*)
14869 if test -d /usr/nec ;then
14870 lt_prog_compiler_pic='-Kconform_pic'
14871 lt_prog_compiler_static='-Bstatic'
14875 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14876 lt_prog_compiler_wl='-Wl,'
14877 lt_prog_compiler_pic='-KPIC'
14878 lt_prog_compiler_static='-Bstatic'
14881 unicos*)
14882 lt_prog_compiler_wl='-Wl,'
14883 lt_prog_compiler_can_build_shared=no
14886 uts4*)
14887 lt_prog_compiler_pic='-pic'
14888 lt_prog_compiler_static='-Bstatic'
14892 lt_prog_compiler_can_build_shared=no
14894 esac
14897 case $host_os in
14898 # For platforms which do not support PIC, -DPIC is meaningless:
14899 *djgpp*)
14900 lt_prog_compiler_pic=
14903 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14905 esac
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14907 $as_echo "$lt_prog_compiler_pic" >&6; }
14915 # Check to make sure the PIC flag actually works.
14917 if test -n "$lt_prog_compiler_pic"; then
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14919 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14920 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14921 $as_echo_n "(cached) " >&6
14922 else
14923 lt_cv_prog_compiler_pic_works=no
14924 ac_outfile=conftest.$ac_objext
14925 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14926 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14927 # Insert the option either (1) after the last *FLAGS variable, or
14928 # (2) before a word containing "conftest.", or (3) at the end.
14929 # Note that $ac_compile itself does not contain backslashes and begins
14930 # with a dollar sign (not a hyphen), so the echo should work correctly.
14931 # The option is referenced via a variable to avoid confusing sed.
14932 lt_compile=`echo "$ac_compile" | $SED \
14933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14935 -e 's:$: $lt_compiler_flag:'`
14936 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14937 (eval "$lt_compile" 2>conftest.err)
14938 ac_status=$?
14939 cat conftest.err >&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 if (exit $ac_status) && test -s "$ac_outfile"; then
14942 # The compiler can only warn and ignore the option if not recognized
14943 # So say no if there are warnings other than the usual output.
14944 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14945 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14946 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14947 lt_cv_prog_compiler_pic_works=yes
14950 $RM conftest*
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14954 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14956 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14957 case $lt_prog_compiler_pic in
14958 "" | " "*) ;;
14959 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14960 esac
14961 else
14962 lt_prog_compiler_pic=
14963 lt_prog_compiler_can_build_shared=no
14974 # Check to make sure the static flag actually works.
14976 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14978 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14979 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14980 $as_echo_n "(cached) " >&6
14981 else
14982 lt_cv_prog_compiler_static_works=no
14983 save_LDFLAGS="$LDFLAGS"
14984 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14985 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14986 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14987 # The linker can only warn and ignore the option if not recognized
14988 # So say no if there are warnings
14989 if test -s conftest.err; then
14990 # Append any errors to the config.log.
14991 cat conftest.err 1>&5
14992 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14994 if diff conftest.exp conftest.er2 >/dev/null; then
14995 lt_cv_prog_compiler_static_works=yes
14997 else
14998 lt_cv_prog_compiler_static_works=yes
15001 $RM -r conftest*
15002 LDFLAGS="$save_LDFLAGS"
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15006 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15008 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15010 else
15011 lt_prog_compiler_static=
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15021 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15022 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15023 $as_echo_n "(cached) " >&6
15024 else
15025 lt_cv_prog_compiler_c_o=no
15026 $RM -r conftest 2>/dev/null
15027 mkdir conftest
15028 cd conftest
15029 mkdir out
15030 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15032 lt_compiler_flag="-o out/conftest2.$ac_objext"
15033 # Insert the option either (1) after the last *FLAGS variable, or
15034 # (2) before a word containing "conftest.", or (3) at the end.
15035 # Note that $ac_compile itself does not contain backslashes and begins
15036 # with a dollar sign (not a hyphen), so the echo should work correctly.
15037 lt_compile=`echo "$ac_compile" | $SED \
15038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15040 -e 's:$: $lt_compiler_flag:'`
15041 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15042 (eval "$lt_compile" 2>out/conftest.err)
15043 ac_status=$?
15044 cat out/conftest.err >&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15047 then
15048 # The compiler can only warn and ignore the option if not recognized
15049 # So say no if there are warnings
15050 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15051 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15052 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15053 lt_cv_prog_compiler_c_o=yes
15056 chmod u+w . 2>&5
15057 $RM conftest*
15058 # SGI C++ compiler will create directory out/ii_files/ for
15059 # template instantiation
15060 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15061 $RM out/* && rmdir out
15062 cd ..
15063 $RM -r conftest
15064 $RM conftest*
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15068 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15076 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15077 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15078 $as_echo_n "(cached) " >&6
15079 else
15080 lt_cv_prog_compiler_c_o=no
15081 $RM -r conftest 2>/dev/null
15082 mkdir conftest
15083 cd conftest
15084 mkdir out
15085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15087 lt_compiler_flag="-o out/conftest2.$ac_objext"
15088 # Insert the option either (1) after the last *FLAGS variable, or
15089 # (2) before a word containing "conftest.", or (3) at the end.
15090 # Note that $ac_compile itself does not contain backslashes and begins
15091 # with a dollar sign (not a hyphen), so the echo should work correctly.
15092 lt_compile=`echo "$ac_compile" | $SED \
15093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15095 -e 's:$: $lt_compiler_flag:'`
15096 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15097 (eval "$lt_compile" 2>out/conftest.err)
15098 ac_status=$?
15099 cat out/conftest.err >&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15102 then
15103 # The compiler can only warn and ignore the option if not recognized
15104 # So say no if there are warnings
15105 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15106 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15107 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15108 lt_cv_prog_compiler_c_o=yes
15111 chmod u+w . 2>&5
15112 $RM conftest*
15113 # SGI C++ compiler will create directory out/ii_files/ for
15114 # template instantiation
15115 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15116 $RM out/* && rmdir out
15117 cd ..
15118 $RM -r conftest
15119 $RM conftest*
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15123 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15128 hard_links="nottested"
15129 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15130 # do not overwrite the value of need_locks provided by the user
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15132 $as_echo_n "checking if we can lock with hard links... " >&6; }
15133 hard_links=yes
15134 $RM conftest*
15135 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15136 touch conftest.a
15137 ln conftest.a conftest.b 2>&5 || hard_links=no
15138 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15140 $as_echo "$hard_links" >&6; }
15141 if test "$hard_links" = no; then
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15143 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15144 need_locks=warn
15146 else
15147 need_locks=no
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15156 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15158 runpath_var=
15159 allow_undefined_flag=
15160 always_export_symbols=no
15161 archive_cmds=
15162 archive_expsym_cmds=
15163 compiler_needs_object=no
15164 enable_shared_with_static_runtimes=no
15165 export_dynamic_flag_spec=
15166 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15167 hardcode_automatic=no
15168 hardcode_direct=no
15169 hardcode_direct_absolute=no
15170 hardcode_libdir_flag_spec=
15171 hardcode_libdir_flag_spec_ld=
15172 hardcode_libdir_separator=
15173 hardcode_minus_L=no
15174 hardcode_shlibpath_var=unsupported
15175 inherit_rpath=no
15176 link_all_deplibs=unknown
15177 module_cmds=
15178 module_expsym_cmds=
15179 old_archive_from_new_cmds=
15180 old_archive_from_expsyms_cmds=
15181 thread_safe_flag_spec=
15182 whole_archive_flag_spec=
15183 # include_expsyms should be a list of space-separated symbols to be *always*
15184 # included in the symbol list
15185 include_expsyms=
15186 # exclude_expsyms can be an extended regexp of symbols to exclude
15187 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15188 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15189 # as well as any symbol that contains `d'.
15190 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15191 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15192 # platforms (ab)use it in PIC code, but their linkers get confused if
15193 # the symbol is explicitly referenced. Since portable code cannot
15194 # rely on this symbol name, it's probably fine to never include it in
15195 # preloaded symbol tables.
15196 # Exclude shared library initialization/finalization symbols.
15197 extract_expsyms_cmds=
15199 case $host_os in
15200 cygwin* | mingw* | pw32* | cegcc*)
15201 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15202 # When not using gcc, we currently assume that we are using
15203 # Microsoft Visual C++.
15204 if test "$GCC" != yes; then
15205 with_gnu_ld=no
15208 interix*)
15209 # we just hope/assume this is gcc and not c89 (= MSVC++)
15210 with_gnu_ld=yes
15212 openbsd*)
15213 with_gnu_ld=no
15215 esac
15217 ld_shlibs=yes
15219 # On some targets, GNU ld is compatible enough with the native linker
15220 # that we're better off using the native interface for both.
15221 lt_use_gnu_ld_interface=no
15222 if test "$with_gnu_ld" = yes; then
15223 case $host_os in
15224 aix*)
15225 # The AIX port of GNU ld has always aspired to compatibility
15226 # with the native linker. However, as the warning in the GNU ld
15227 # block says, versions before 2.19.5* couldn't really create working
15228 # shared libraries, regardless of the interface used.
15229 case `$LD -v 2>&1` in
15230 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15231 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15232 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15234 lt_use_gnu_ld_interface=yes
15236 esac
15239 lt_use_gnu_ld_interface=yes
15241 esac
15244 if test "$lt_use_gnu_ld_interface" = yes; then
15245 # If archive_cmds runs LD, not CC, wlarc should be empty
15246 wlarc='${wl}'
15248 # Set some defaults for GNU ld with shared library support. These
15249 # are reset later if shared libraries are not supported. Putting them
15250 # here allows them to be overridden if necessary.
15251 runpath_var=LD_RUN_PATH
15252 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15253 export_dynamic_flag_spec='${wl}--export-dynamic'
15254 # ancient GNU ld didn't support --whole-archive et. al.
15255 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15256 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15257 else
15258 whole_archive_flag_spec=
15260 supports_anon_versioning=no
15261 case `$LD -v 2>&1` in
15262 *GNU\ gold*) supports_anon_versioning=yes ;;
15263 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15264 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15265 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15266 *\ 2.11.*) ;; # other 2.11 versions
15267 *) supports_anon_versioning=yes ;;
15268 esac
15270 # See if GNU ld supports shared libraries.
15271 case $host_os in
15272 aix[3-9]*)
15273 # On AIX/PPC, the GNU linker is very broken
15274 if test "$host_cpu" != ia64; then
15275 ld_shlibs=no
15276 cat <<_LT_EOF 1>&2
15278 *** Warning: the GNU linker, at least up to release 2.19, is reported
15279 *** to be unable to reliably create shared libraries on AIX.
15280 *** Therefore, libtool is disabling shared libraries support. If you
15281 *** really care for shared libraries, you may want to install binutils
15282 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15283 *** You will then need to restart the configuration process.
15285 _LT_EOF
15289 amigaos*)
15290 case $host_cpu in
15291 powerpc)
15292 # see comment about AmigaOS4 .so support
15293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15294 archive_expsym_cmds=''
15296 m68k)
15297 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)'
15298 hardcode_libdir_flag_spec='-L$libdir'
15299 hardcode_minus_L=yes
15301 esac
15304 beos*)
15305 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15306 allow_undefined_flag=unsupported
15307 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15308 # support --undefined. This deserves some investigation. FIXME
15309 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15310 else
15311 ld_shlibs=no
15315 cygwin* | mingw* | pw32* | cegcc*)
15316 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15317 # as there is no search path for DLLs.
15318 hardcode_libdir_flag_spec='-L$libdir'
15319 export_dynamic_flag_spec='${wl}--export-all-symbols'
15320 allow_undefined_flag=unsupported
15321 always_export_symbols=no
15322 enable_shared_with_static_runtimes=yes
15323 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15325 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15326 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15327 # If the export-symbols file already is a .def file (1st line
15328 # is EXPORTS), use it as is; otherwise, prepend...
15329 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15330 cp $export_symbols $output_objdir/$soname.def;
15331 else
15332 echo EXPORTS > $output_objdir/$soname.def;
15333 cat $export_symbols >> $output_objdir/$soname.def;
15335 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15336 else
15337 ld_shlibs=no
15341 haiku*)
15342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15343 link_all_deplibs=yes
15346 interix[3-9]*)
15347 hardcode_direct=no
15348 hardcode_shlibpath_var=no
15349 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15350 export_dynamic_flag_spec='${wl}-E'
15351 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15352 # Instead, shared libraries are loaded at an image base (0x10000000 by
15353 # default) and relocated if they conflict, which is a slow very memory
15354 # consuming and fragmenting process. To avoid this, we pick a random,
15355 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15356 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15357 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15358 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'
15361 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15362 tmp_diet=no
15363 if test "$host_os" = linux-dietlibc; then
15364 case $cc_basename in
15365 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15366 esac
15368 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15369 && test "$tmp_diet" = no
15370 then
15371 tmp_addflag=
15372 tmp_sharedflag='-shared'
15373 case $cc_basename,$host_cpu in
15374 pgcc*) # Portland Group C compiler
15375 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'
15376 tmp_addflag=' $pic_flag'
15378 pgf77* | pgf90* | pgf95* | pgfortran*)
15379 # Portland Group f77 and f90 compilers
15380 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'
15381 tmp_addflag=' $pic_flag -Mnomain' ;;
15382 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15383 tmp_addflag=' -i_dynamic' ;;
15384 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15385 tmp_addflag=' -i_dynamic -nofor_main' ;;
15386 ifc* | ifort*) # Intel Fortran compiler
15387 tmp_addflag=' -nofor_main' ;;
15388 lf95*) # Lahey Fortran 8.1
15389 whole_archive_flag_spec=
15390 tmp_sharedflag='--shared' ;;
15391 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15392 tmp_sharedflag='-qmkshrobj'
15393 tmp_addflag= ;;
15394 nvcc*) # Cuda Compiler Driver 2.2
15395 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'
15396 compiler_needs_object=yes
15398 esac
15399 case `$CC -V 2>&1 | sed 5q` in
15400 *Sun\ C*) # Sun C 5.9
15401 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'
15402 compiler_needs_object=yes
15403 tmp_sharedflag='-G' ;;
15404 *Sun\ F*) # Sun Fortran 8.3
15405 tmp_sharedflag='-G' ;;
15406 esac
15407 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15409 if test "x$supports_anon_versioning" = xyes; then
15410 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15411 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15412 echo "local: *; };" >> $output_objdir/$libname.ver~
15413 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15416 case $cc_basename in
15417 xlf* | bgf* | bgxlf* | mpixlf*)
15418 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15419 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15420 hardcode_libdir_flag_spec=
15421 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15422 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15423 if test "x$supports_anon_versioning" = xyes; then
15424 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15425 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15426 echo "local: *; };" >> $output_objdir/$libname.ver~
15427 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15430 esac
15431 else
15432 ld_shlibs=no
15436 netbsd*)
15437 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15438 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15439 wlarc=
15440 else
15441 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15442 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15446 solaris*)
15447 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15448 ld_shlibs=no
15449 cat <<_LT_EOF 1>&2
15451 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15452 *** create shared libraries on Solaris systems. Therefore, libtool
15453 *** is disabling shared libraries support. We urge you to upgrade GNU
15454 *** binutils to release 2.9.1 or newer. Another option is to modify
15455 *** your PATH or compiler configuration so that the native linker is
15456 *** used, and then restart.
15458 _LT_EOF
15459 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15461 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15462 else
15463 ld_shlibs=no
15467 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15468 case `$LD -v 2>&1` in
15469 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15470 ld_shlibs=no
15471 cat <<_LT_EOF 1>&2
15473 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15474 *** reliably create shared libraries on SCO systems. Therefore, libtool
15475 *** is disabling shared libraries support. We urge you to upgrade GNU
15476 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15477 *** your PATH or compiler configuration so that the native linker is
15478 *** used, and then restart.
15480 _LT_EOF
15483 # For security reasons, it is highly recommended that you always
15484 # use absolute paths for naming shared libraries, and exclude the
15485 # DT_RUNPATH tag from executables and libraries. But doing so
15486 # requires that you compile everything twice, which is a pain.
15487 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15489 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15490 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15491 else
15492 ld_shlibs=no
15495 esac
15498 sunos4*)
15499 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15500 wlarc=
15501 hardcode_direct=yes
15502 hardcode_shlibpath_var=no
15506 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15507 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15508 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15509 else
15510 ld_shlibs=no
15513 esac
15515 if test "$ld_shlibs" = no; then
15516 runpath_var=
15517 hardcode_libdir_flag_spec=
15518 export_dynamic_flag_spec=
15519 whole_archive_flag_spec=
15521 else
15522 # PORTME fill in a description of your system's linker (not GNU ld)
15523 case $host_os in
15524 aix3*)
15525 allow_undefined_flag=unsupported
15526 always_export_symbols=yes
15527 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'
15528 # Note: this linker hardcodes the directories in LIBPATH if there
15529 # are no directories specified by -L.
15530 hardcode_minus_L=yes
15531 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15532 # Neither direct hardcoding nor static linking is supported with a
15533 # broken collect2.
15534 hardcode_direct=unsupported
15538 aix[4-9]*)
15539 if test "$host_cpu" = ia64; then
15540 # On IA64, the linker does run time linking by default, so we don't
15541 # have to do anything special.
15542 aix_use_runtimelinking=no
15543 exp_sym_flag='-Bexport'
15544 no_entry_flag=""
15545 else
15546 # If we're using GNU nm, then we don't want the "-C" option.
15547 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15548 # Also, AIX nm treats weak defined symbols like other global
15549 # defined symbols, whereas GNU nm marks them as "W".
15550 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15551 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'
15552 else
15553 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'
15555 aix_use_runtimelinking=no
15557 # Test if we are trying to use run time linking or normal
15558 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15559 # need to do runtime linking.
15560 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15561 for ld_flag in $LDFLAGS; do
15562 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15563 aix_use_runtimelinking=yes
15564 break
15566 done
15568 esac
15570 exp_sym_flag='-bexport'
15571 no_entry_flag='-bnoentry'
15574 # When large executables or shared objects are built, AIX ld can
15575 # have problems creating the table of contents. If linking a library
15576 # or program results in "error TOC overflow" add -mminimal-toc to
15577 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15578 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15580 archive_cmds=''
15581 hardcode_direct=yes
15582 hardcode_direct_absolute=yes
15583 hardcode_libdir_separator=':'
15584 link_all_deplibs=yes
15585 file_list_spec='${wl}-f,'
15587 if test "$GCC" = yes; then
15588 case $host_os in aix4.[012]|aix4.[012].*)
15589 # We only want to do this on AIX 4.2 and lower, the check
15590 # below for broken collect2 doesn't work under 4.3+
15591 collect2name=`${CC} -print-prog-name=collect2`
15592 if test -f "$collect2name" &&
15593 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15594 then
15595 # We have reworked collect2
15597 else
15598 # We have old collect2
15599 hardcode_direct=unsupported
15600 # It fails to find uninstalled libraries when the uninstalled
15601 # path is not listed in the libpath. Setting hardcode_minus_L
15602 # to unsupported forces relinking
15603 hardcode_minus_L=yes
15604 hardcode_libdir_flag_spec='-L$libdir'
15605 hardcode_libdir_separator=
15608 esac
15609 shared_flag='-shared'
15610 if test "$aix_use_runtimelinking" = yes; then
15611 shared_flag="$shared_flag "'${wl}-G'
15613 else
15614 # not using gcc
15615 if test "$host_cpu" = ia64; then
15616 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15617 # chokes on -Wl,-G. The following line is correct:
15618 shared_flag='-G'
15619 else
15620 if test "$aix_use_runtimelinking" = yes; then
15621 shared_flag='${wl}-G'
15622 else
15623 shared_flag='${wl}-bM:SRE'
15628 export_dynamic_flag_spec='${wl}-bexpall'
15629 # It seems that -bexpall does not export symbols beginning with
15630 # underscore (_), so it is better to generate a list of symbols to export.
15631 always_export_symbols=yes
15632 if test "$aix_use_runtimelinking" = yes; then
15633 # Warning - without using the other runtime loading flags (-brtl),
15634 # -berok will link without error, but may produce a broken library.
15635 allow_undefined_flag='-berok'
15636 # Determine the default libpath from the value encoded in an
15637 # empty executable.
15638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15639 /* end confdefs.h. */
15642 main ()
15646 return 0;
15648 _ACEOF
15649 if ac_fn_c_try_link "$LINENO"; then :
15651 lt_aix_libpath_sed='
15652 /Import File Strings/,/^$/ {
15653 /^0/ {
15654 s/^0 *\(.*\)$/\1/
15658 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15659 # Check for a 64-bit object if we didn't find anything.
15660 if test -z "$aix_libpath"; then
15661 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15664 rm -f core conftest.err conftest.$ac_objext \
15665 conftest$ac_exeext conftest.$ac_ext
15666 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15668 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15669 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"
15670 else
15671 if test "$host_cpu" = ia64; then
15672 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15673 allow_undefined_flag="-z nodefs"
15674 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"
15675 else
15676 # Determine the default libpath from the value encoded in an
15677 # empty executable.
15678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15679 /* end confdefs.h. */
15682 main ()
15686 return 0;
15688 _ACEOF
15689 if ac_fn_c_try_link "$LINENO"; then :
15691 lt_aix_libpath_sed='
15692 /Import File Strings/,/^$/ {
15693 /^0/ {
15694 s/^0 *\(.*\)$/\1/
15698 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15699 # Check for a 64-bit object if we didn't find anything.
15700 if test -z "$aix_libpath"; then
15701 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15704 rm -f core conftest.err conftest.$ac_objext \
15705 conftest$ac_exeext conftest.$ac_ext
15706 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15708 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15709 # Warning - without using the other run time loading flags,
15710 # -berok will link without error, but may produce a broken library.
15711 no_undefined_flag=' ${wl}-bernotok'
15712 allow_undefined_flag=' ${wl}-berok'
15713 if test "$with_gnu_ld" = yes; then
15714 # We only use this code for GNU lds that support --whole-archive.
15715 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15716 else
15717 # Exported symbols can be pulled into shared objects from archives
15718 whole_archive_flag_spec='$convenience'
15720 archive_cmds_need_lc=yes
15721 # This is similar to how AIX traditionally builds its shared libraries.
15722 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'
15727 amigaos*)
15728 case $host_cpu in
15729 powerpc)
15730 # see comment about AmigaOS4 .so support
15731 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15732 archive_expsym_cmds=''
15734 m68k)
15735 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)'
15736 hardcode_libdir_flag_spec='-L$libdir'
15737 hardcode_minus_L=yes
15739 esac
15742 bsdi[45]*)
15743 export_dynamic_flag_spec=-rdynamic
15746 cygwin* | mingw* | pw32* | cegcc*)
15747 # When not using gcc, we currently assume that we are using
15748 # Microsoft Visual C++.
15749 # hardcode_libdir_flag_spec is actually meaningless, as there is
15750 # no search path for DLLs.
15751 hardcode_libdir_flag_spec=' '
15752 allow_undefined_flag=unsupported
15753 # Tell ltmain to make .lib files, not .a files.
15754 libext=lib
15755 # Tell ltmain to make .dll files, not .so files.
15756 shrext_cmds=".dll"
15757 # FIXME: Setting linknames here is a bad hack.
15758 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15759 # The linker will automatically build a .lib file if we build a DLL.
15760 old_archive_from_new_cmds='true'
15761 # FIXME: Should let the user specify the lib program.
15762 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15763 fix_srcfile_path='`cygpath -w "$srcfile"`'
15764 enable_shared_with_static_runtimes=yes
15767 darwin* | rhapsody*)
15770 archive_cmds_need_lc=no
15771 hardcode_direct=no
15772 hardcode_automatic=yes
15773 hardcode_shlibpath_var=unsupported
15774 if test "$lt_cv_ld_force_load" = "yes"; then
15775 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\"`'
15776 else
15777 whole_archive_flag_spec=''
15779 link_all_deplibs=yes
15780 allow_undefined_flag="$_lt_dar_allow_undefined"
15781 case $cc_basename in
15782 ifort*) _lt_dar_can_shared=yes ;;
15783 *) _lt_dar_can_shared=$GCC ;;
15784 esac
15785 if test "$_lt_dar_can_shared" = "yes"; then
15786 output_verbose_link_cmd=func_echo_all
15787 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15788 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15789 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}"
15790 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}"
15792 else
15793 ld_shlibs=no
15798 dgux*)
15799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15800 hardcode_libdir_flag_spec='-L$libdir'
15801 hardcode_shlibpath_var=no
15804 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15805 # support. Future versions do this automatically, but an explicit c++rt0.o
15806 # does not break anything, and helps significantly (at the cost of a little
15807 # extra space).
15808 freebsd2.2*)
15809 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15810 hardcode_libdir_flag_spec='-R$libdir'
15811 hardcode_direct=yes
15812 hardcode_shlibpath_var=no
15815 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15816 freebsd2*)
15817 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15818 hardcode_direct=yes
15819 hardcode_minus_L=yes
15820 hardcode_shlibpath_var=no
15823 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15824 freebsd* | dragonfly*)
15825 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15826 hardcode_libdir_flag_spec='-R$libdir'
15827 hardcode_direct=yes
15828 hardcode_shlibpath_var=no
15831 hpux9*)
15832 if test "$GCC" = yes; then
15833 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'
15834 else
15835 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'
15837 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15838 hardcode_libdir_separator=:
15839 hardcode_direct=yes
15841 # hardcode_minus_L: Not really in the search PATH,
15842 # but as the default location of the library.
15843 hardcode_minus_L=yes
15844 export_dynamic_flag_spec='${wl}-E'
15847 hpux10*)
15848 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15849 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15850 else
15851 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15853 if test "$with_gnu_ld" = no; then
15854 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15855 hardcode_libdir_flag_spec_ld='+b $libdir'
15856 hardcode_libdir_separator=:
15857 hardcode_direct=yes
15858 hardcode_direct_absolute=yes
15859 export_dynamic_flag_spec='${wl}-E'
15860 # hardcode_minus_L: Not really in the search PATH,
15861 # but as the default location of the library.
15862 hardcode_minus_L=yes
15866 hpux11*)
15867 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15868 case $host_cpu in
15869 hppa*64*)
15870 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15872 ia64*)
15873 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15876 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15878 esac
15879 else
15880 case $host_cpu in
15881 hppa*64*)
15882 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15884 ia64*)
15885 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15889 # Older versions of the 11.00 compiler do not understand -b yet
15890 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15892 $as_echo_n "checking if $CC understands -b... " >&6; }
15893 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15894 $as_echo_n "(cached) " >&6
15895 else
15896 lt_cv_prog_compiler__b=no
15897 save_LDFLAGS="$LDFLAGS"
15898 LDFLAGS="$LDFLAGS -b"
15899 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15900 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15901 # The linker can only warn and ignore the option if not recognized
15902 # So say no if there are warnings
15903 if test -s conftest.err; then
15904 # Append any errors to the config.log.
15905 cat conftest.err 1>&5
15906 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15907 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15908 if diff conftest.exp conftest.er2 >/dev/null; then
15909 lt_cv_prog_compiler__b=yes
15911 else
15912 lt_cv_prog_compiler__b=yes
15915 $RM -r conftest*
15916 LDFLAGS="$save_LDFLAGS"
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15920 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15922 if test x"$lt_cv_prog_compiler__b" = xyes; then
15923 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15924 else
15925 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15929 esac
15931 if test "$with_gnu_ld" = no; then
15932 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15933 hardcode_libdir_separator=:
15935 case $host_cpu in
15936 hppa*64*|ia64*)
15937 hardcode_direct=no
15938 hardcode_shlibpath_var=no
15941 hardcode_direct=yes
15942 hardcode_direct_absolute=yes
15943 export_dynamic_flag_spec='${wl}-E'
15945 # hardcode_minus_L: Not really in the search PATH,
15946 # but as the default location of the library.
15947 hardcode_minus_L=yes
15949 esac
15953 irix5* | irix6* | nonstopux*)
15954 if test "$GCC" = yes; then
15955 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'
15956 # Try to use the -exported_symbol ld option, if it does not
15957 # work, assume that -exports_file does not work either and
15958 # implicitly export all symbols.
15959 save_LDFLAGS="$LDFLAGS"
15960 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15962 /* end confdefs.h. */
15963 int foo(void) {}
15964 _ACEOF
15965 if ac_fn_c_try_link "$LINENO"; then :
15966 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'
15969 rm -f core conftest.err conftest.$ac_objext \
15970 conftest$ac_exeext conftest.$ac_ext
15971 LDFLAGS="$save_LDFLAGS"
15972 else
15973 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'
15974 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'
15976 archive_cmds_need_lc='no'
15977 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15978 hardcode_libdir_separator=:
15979 inherit_rpath=yes
15980 link_all_deplibs=yes
15983 netbsd*)
15984 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15985 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15986 else
15987 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15989 hardcode_libdir_flag_spec='-R$libdir'
15990 hardcode_direct=yes
15991 hardcode_shlibpath_var=no
15994 newsos6)
15995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15996 hardcode_direct=yes
15997 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15998 hardcode_libdir_separator=:
15999 hardcode_shlibpath_var=no
16002 *nto* | *qnx*)
16005 openbsd*)
16006 if test -f /usr/libexec/ld.so; then
16007 hardcode_direct=yes
16008 hardcode_shlibpath_var=no
16009 hardcode_direct_absolute=yes
16010 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16011 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16012 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16013 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16014 export_dynamic_flag_spec='${wl}-E'
16015 else
16016 case $host_os in
16017 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16018 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16019 hardcode_libdir_flag_spec='-R$libdir'
16022 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16023 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16025 esac
16027 else
16028 ld_shlibs=no
16032 os2*)
16033 hardcode_libdir_flag_spec='-L$libdir'
16034 hardcode_minus_L=yes
16035 allow_undefined_flag=unsupported
16036 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'
16037 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16040 osf3*)
16041 if test "$GCC" = yes; then
16042 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16043 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'
16044 else
16045 allow_undefined_flag=' -expect_unresolved \*'
16046 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'
16048 archive_cmds_need_lc='no'
16049 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16050 hardcode_libdir_separator=:
16053 osf4* | osf5*) # as osf3* with the addition of -msym flag
16054 if test "$GCC" = yes; then
16055 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16056 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'
16057 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16058 else
16059 allow_undefined_flag=' -expect_unresolved \*'
16060 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'
16061 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~
16062 $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'
16064 # Both c and cxx compiler support -rpath directly
16065 hardcode_libdir_flag_spec='-rpath $libdir'
16067 archive_cmds_need_lc='no'
16068 hardcode_libdir_separator=:
16071 solaris*)
16072 no_undefined_flag=' -z defs'
16073 if test "$GCC" = yes; then
16074 wlarc='${wl}'
16075 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16076 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16077 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16078 else
16079 case `$CC -V 2>&1` in
16080 *"Compilers 5.0"*)
16081 wlarc=''
16082 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16083 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16084 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16087 wlarc='${wl}'
16088 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16089 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16090 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16092 esac
16094 hardcode_libdir_flag_spec='-R$libdir'
16095 hardcode_shlibpath_var=no
16096 case $host_os in
16097 solaris2.[0-5] | solaris2.[0-5].*) ;;
16099 # The compiler driver will combine and reorder linker options,
16100 # but understands `-z linker_flag'. GCC discards it without `$wl',
16101 # but is careful enough not to reorder.
16102 # Supported since Solaris 2.6 (maybe 2.5.1?)
16103 if test "$GCC" = yes; then
16104 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16105 else
16106 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16109 esac
16110 link_all_deplibs=yes
16113 sunos4*)
16114 if test "x$host_vendor" = xsequent; then
16115 # Use $CC to link under sequent, because it throws in some extra .o
16116 # files that make .init and .fini sections work.
16117 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16118 else
16119 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16121 hardcode_libdir_flag_spec='-L$libdir'
16122 hardcode_direct=yes
16123 hardcode_minus_L=yes
16124 hardcode_shlibpath_var=no
16127 sysv4)
16128 case $host_vendor in
16129 sni)
16130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16131 hardcode_direct=yes # is this really true???
16133 siemens)
16134 ## LD is ld it makes a PLAMLIB
16135 ## CC just makes a GrossModule.
16136 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16137 reload_cmds='$CC -r -o $output$reload_objs'
16138 hardcode_direct=no
16140 motorola)
16141 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16142 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16144 esac
16145 runpath_var='LD_RUN_PATH'
16146 hardcode_shlibpath_var=no
16149 sysv4.3*)
16150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16151 hardcode_shlibpath_var=no
16152 export_dynamic_flag_spec='-Bexport'
16155 sysv4*MP*)
16156 if test -d /usr/nec; then
16157 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16158 hardcode_shlibpath_var=no
16159 runpath_var=LD_RUN_PATH
16160 hardcode_runpath_var=yes
16161 ld_shlibs=yes
16165 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16166 no_undefined_flag='${wl}-z,text'
16167 archive_cmds_need_lc=no
16168 hardcode_shlibpath_var=no
16169 runpath_var='LD_RUN_PATH'
16171 if test "$GCC" = yes; then
16172 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16173 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16174 else
16175 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16176 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16180 sysv5* | sco3.2v5* | sco5v6*)
16181 # Note: We can NOT use -z defs as we might desire, because we do not
16182 # link with -lc, and that would cause any symbols used from libc to
16183 # always be unresolved, which means just about no library would
16184 # ever link correctly. If we're not using GNU ld we use -z text
16185 # though, which does catch some bad symbols but isn't as heavy-handed
16186 # as -z defs.
16187 no_undefined_flag='${wl}-z,text'
16188 allow_undefined_flag='${wl}-z,nodefs'
16189 archive_cmds_need_lc=no
16190 hardcode_shlibpath_var=no
16191 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16192 hardcode_libdir_separator=':'
16193 link_all_deplibs=yes
16194 export_dynamic_flag_spec='${wl}-Bexport'
16195 runpath_var='LD_RUN_PATH'
16197 if test "$GCC" = yes; then
16198 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16199 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16200 else
16201 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16202 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16206 uts4*)
16207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16208 hardcode_libdir_flag_spec='-L$libdir'
16209 hardcode_shlibpath_var=no
16213 ld_shlibs=no
16215 esac
16217 if test x$host_vendor = xsni; then
16218 case $host in
16219 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16220 export_dynamic_flag_spec='${wl}-Blargedynsym'
16222 esac
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16227 $as_echo "$ld_shlibs" >&6; }
16228 test "$ld_shlibs" = no && can_build_shared=no
16230 with_gnu_ld=$with_gnu_ld
16247 # Do we need to explicitly link libc?
16249 case "x$archive_cmds_need_lc" in
16250 x|xyes)
16251 # Assume -lc should be added
16252 archive_cmds_need_lc=yes
16254 if test "$enable_shared" = yes && test "$GCC" = yes; then
16255 case $archive_cmds in
16256 *'~'*)
16257 # FIXME: we may have to deal with multi-command sequences.
16259 '$CC '*)
16260 # Test whether the compiler implicitly links with -lc since on some
16261 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16262 # to ld, don't add -lc before -lgcc.
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16264 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16265 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16266 $as_echo_n "(cached) " >&6
16267 else
16268 $RM conftest*
16269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16272 (eval $ac_compile) 2>&5
16273 ac_status=$?
16274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16275 test $ac_status = 0; } 2>conftest.err; then
16276 soname=conftest
16277 lib=conftest
16278 libobjs=conftest.$ac_objext
16279 deplibs=
16280 wl=$lt_prog_compiler_wl
16281 pic_flag=$lt_prog_compiler_pic
16282 compiler_flags=-v
16283 linker_flags=-v
16284 verstring=
16285 output_objdir=.
16286 libname=conftest
16287 lt_save_allow_undefined_flag=$allow_undefined_flag
16288 allow_undefined_flag=
16289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16290 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16291 ac_status=$?
16292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16293 test $ac_status = 0; }
16294 then
16295 lt_cv_archive_cmds_need_lc=no
16296 else
16297 lt_cv_archive_cmds_need_lc=yes
16299 allow_undefined_flag=$lt_save_allow_undefined_flag
16300 else
16301 cat conftest.err 1>&5
16303 $RM conftest*
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16307 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16308 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16310 esac
16313 esac
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16472 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16474 if test "$GCC" = yes; then
16475 case $host_os in
16476 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16477 *) lt_awk_arg="/^libraries:/" ;;
16478 esac
16479 case $host_os in
16480 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16481 *) lt_sed_strip_eq="s,=/,/,g" ;;
16482 esac
16483 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16484 case $lt_search_path_spec in
16485 *\;*)
16486 # if the path contains ";" then we assume it to be the separator
16487 # otherwise default to the standard path separator (i.e. ":") - it is
16488 # assumed that no part of a normal pathname contains ";" but that should
16489 # okay in the real world where ";" in dirpaths is itself problematic.
16490 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16493 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16495 esac
16496 # Ok, now we have the path, separated by spaces, we can step through it
16497 # and add multilib dir if necessary.
16498 lt_tmp_lt_search_path_spec=
16499 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16500 for lt_sys_path in $lt_search_path_spec; do
16501 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16502 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16503 else
16504 test -d "$lt_sys_path" && \
16505 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16507 done
16508 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16509 BEGIN {RS=" "; FS="/|\n";} {
16510 lt_foo="";
16511 lt_count=0;
16512 for (lt_i = NF; lt_i > 0; lt_i--) {
16513 if ($lt_i != "" && $lt_i != ".") {
16514 if ($lt_i == "..") {
16515 lt_count++;
16516 } else {
16517 if (lt_count == 0) {
16518 lt_foo="/" $lt_i lt_foo;
16519 } else {
16520 lt_count--;
16525 if (lt_foo != "") { lt_freq[lt_foo]++; }
16526 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16528 # AWK program above erroneously prepends '/' to C:/dos/paths
16529 # for these hosts.
16530 case $host_os in
16531 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16532 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16533 esac
16534 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16535 else
16536 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16538 library_names_spec=
16539 libname_spec='lib$name'
16540 soname_spec=
16541 shrext_cmds=".so"
16542 postinstall_cmds=
16543 postuninstall_cmds=
16544 finish_cmds=
16545 finish_eval=
16546 shlibpath_var=
16547 shlibpath_overrides_runpath=unknown
16548 version_type=none
16549 dynamic_linker="$host_os ld.so"
16550 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16551 need_lib_prefix=unknown
16552 hardcode_into_libs=no
16554 # when you set need_version to no, make sure it does not cause -set_version
16555 # flags to be left without arguments
16556 need_version=unknown
16558 case $host_os in
16559 aix3*)
16560 version_type=linux
16561 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16562 shlibpath_var=LIBPATH
16564 # AIX 3 has no versioning support, so we append a major version to the name.
16565 soname_spec='${libname}${release}${shared_ext}$major'
16568 aix[4-9]*)
16569 version_type=linux
16570 need_lib_prefix=no
16571 need_version=no
16572 hardcode_into_libs=yes
16573 if test "$host_cpu" = ia64; then
16574 # AIX 5 supports IA64
16575 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16576 shlibpath_var=LD_LIBRARY_PATH
16577 else
16578 # With GCC up to 2.95.x, collect2 would create an import file
16579 # for dependence libraries. The import file would start with
16580 # the line `#! .'. This would cause the generated library to
16581 # depend on `.', always an invalid library. This was fixed in
16582 # development snapshots of GCC prior to 3.0.
16583 case $host_os in
16584 aix4 | aix4.[01] | aix4.[01].*)
16585 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16586 echo ' yes '
16587 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16589 else
16590 can_build_shared=no
16593 esac
16594 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16595 # soname into executable. Probably we can add versioning support to
16596 # collect2, so additional links can be useful in future.
16597 if test "$aix_use_runtimelinking" = yes; then
16598 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16599 # instead of lib<name>.a to let people know that these are not
16600 # typical AIX shared libraries.
16601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16602 else
16603 # We preserve .a as extension for shared libraries through AIX4.2
16604 # and later when we are not doing run time linking.
16605 library_names_spec='${libname}${release}.a $libname.a'
16606 soname_spec='${libname}${release}${shared_ext}$major'
16608 shlibpath_var=LIBPATH
16612 amigaos*)
16613 case $host_cpu in
16614 powerpc)
16615 # Since July 2007 AmigaOS4 officially supports .so libraries.
16616 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16619 m68k)
16620 library_names_spec='$libname.ixlibrary $libname.a'
16621 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16622 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'
16624 esac
16627 beos*)
16628 library_names_spec='${libname}${shared_ext}'
16629 dynamic_linker="$host_os ld.so"
16630 shlibpath_var=LIBRARY_PATH
16633 bsdi[45]*)
16634 version_type=linux
16635 need_version=no
16636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16637 soname_spec='${libname}${release}${shared_ext}$major'
16638 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16639 shlibpath_var=LD_LIBRARY_PATH
16640 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16641 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16642 # the default ld.so.conf also contains /usr/contrib/lib and
16643 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16644 # libtool to hard-code these into programs
16647 cygwin* | mingw* | pw32* | cegcc*)
16648 version_type=windows
16649 shrext_cmds=".dll"
16650 need_version=no
16651 need_lib_prefix=no
16653 case $GCC,$host_os in
16654 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16655 library_names_spec='$libname.dll.a'
16656 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16657 postinstall_cmds='base_file=`basename \${file}`~
16658 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16659 dldir=$destdir/`dirname \$dlpath`~
16660 test -d \$dldir || mkdir -p \$dldir~
16661 $install_prog $dir/$dlname \$dldir/$dlname~
16662 chmod a+x \$dldir/$dlname~
16663 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16664 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16666 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16667 dlpath=$dir/\$dldll~
16668 $RM \$dlpath'
16669 shlibpath_overrides_runpath=yes
16671 case $host_os in
16672 cygwin*)
16673 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16674 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16676 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16678 mingw* | cegcc*)
16679 # MinGW DLLs use traditional 'lib' prefix
16680 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16682 pw32*)
16683 # pw32 DLLs use 'pw' prefix rather than 'lib'
16684 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16686 esac
16690 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16692 esac
16693 dynamic_linker='Win32 ld.exe'
16694 # FIXME: first we should search . and the directory the executable is in
16695 shlibpath_var=PATH
16698 darwin* | rhapsody*)
16699 dynamic_linker="$host_os dyld"
16700 version_type=darwin
16701 need_lib_prefix=no
16702 need_version=no
16703 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16704 soname_spec='${libname}${release}${major}$shared_ext'
16705 shlibpath_overrides_runpath=yes
16706 shlibpath_var=DYLD_LIBRARY_PATH
16707 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16709 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16710 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16713 dgux*)
16714 version_type=linux
16715 need_lib_prefix=no
16716 need_version=no
16717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16718 soname_spec='${libname}${release}${shared_ext}$major'
16719 shlibpath_var=LD_LIBRARY_PATH
16722 freebsd* | dragonfly*)
16723 # DragonFly does not have aout. When/if they implement a new
16724 # versioning mechanism, adjust this.
16725 if test -x /usr/bin/objformat; then
16726 objformat=`/usr/bin/objformat`
16727 else
16728 case $host_os in
16729 freebsd[123]*) objformat=aout ;;
16730 *) objformat=elf ;;
16731 esac
16733 version_type=freebsd-$objformat
16734 case $version_type in
16735 freebsd-elf*)
16736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16737 need_version=no
16738 need_lib_prefix=no
16740 freebsd-*)
16741 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16742 need_version=yes
16744 esac
16745 shlibpath_var=LD_LIBRARY_PATH
16746 case $host_os in
16747 freebsd2*)
16748 shlibpath_overrides_runpath=yes
16750 freebsd3.[01]* | freebsdelf3.[01]*)
16751 shlibpath_overrides_runpath=yes
16752 hardcode_into_libs=yes
16754 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16755 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16756 shlibpath_overrides_runpath=no
16757 hardcode_into_libs=yes
16759 *) # from 4.6 on, and DragonFly
16760 shlibpath_overrides_runpath=yes
16761 hardcode_into_libs=yes
16763 esac
16766 gnu*)
16767 version_type=linux
16768 need_lib_prefix=no
16769 need_version=no
16770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16771 soname_spec='${libname}${release}${shared_ext}$major'
16772 shlibpath_var=LD_LIBRARY_PATH
16773 hardcode_into_libs=yes
16776 haiku*)
16777 version_type=linux
16778 need_lib_prefix=no
16779 need_version=no
16780 dynamic_linker="$host_os runtime_loader"
16781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16782 soname_spec='${libname}${release}${shared_ext}$major'
16783 shlibpath_var=LIBRARY_PATH
16784 shlibpath_overrides_runpath=yes
16785 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16786 hardcode_into_libs=yes
16789 hpux9* | hpux10* | hpux11*)
16790 # Give a soname corresponding to the major version so that dld.sl refuses to
16791 # link against other versions.
16792 version_type=sunos
16793 need_lib_prefix=no
16794 need_version=no
16795 case $host_cpu in
16796 ia64*)
16797 shrext_cmds='.so'
16798 hardcode_into_libs=yes
16799 dynamic_linker="$host_os dld.so"
16800 shlibpath_var=LD_LIBRARY_PATH
16801 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16803 soname_spec='${libname}${release}${shared_ext}$major'
16804 if test "X$HPUX_IA64_MODE" = X32; then
16805 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16806 else
16807 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16809 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16811 hppa*64*)
16812 shrext_cmds='.sl'
16813 hardcode_into_libs=yes
16814 dynamic_linker="$host_os dld.sl"
16815 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16816 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16818 soname_spec='${libname}${release}${shared_ext}$major'
16819 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16820 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16823 shrext_cmds='.sl'
16824 dynamic_linker="$host_os dld.sl"
16825 shlibpath_var=SHLIB_PATH
16826 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16828 soname_spec='${libname}${release}${shared_ext}$major'
16830 esac
16831 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16832 postinstall_cmds='chmod 555 $lib'
16833 # or fails outright, so override atomically:
16834 install_override_mode=555
16837 interix[3-9]*)
16838 version_type=linux
16839 need_lib_prefix=no
16840 need_version=no
16841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16842 soname_spec='${libname}${release}${shared_ext}$major'
16843 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16844 shlibpath_var=LD_LIBRARY_PATH
16845 shlibpath_overrides_runpath=no
16846 hardcode_into_libs=yes
16849 irix5* | irix6* | nonstopux*)
16850 case $host_os in
16851 nonstopux*) version_type=nonstopux ;;
16853 if test "$lt_cv_prog_gnu_ld" = yes; then
16854 version_type=linux
16855 else
16856 version_type=irix
16857 fi ;;
16858 esac
16859 need_lib_prefix=no
16860 need_version=no
16861 soname_spec='${libname}${release}${shared_ext}$major'
16862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16863 case $host_os in
16864 irix5* | nonstopux*)
16865 libsuff= shlibsuff=
16868 case $LD in # libtool.m4 will add one of these switches to LD
16869 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16870 libsuff= shlibsuff= libmagic=32-bit;;
16871 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16872 libsuff=32 shlibsuff=N32 libmagic=N32;;
16873 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16874 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16875 *) libsuff= shlibsuff= libmagic=never-match;;
16876 esac
16878 esac
16879 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16880 shlibpath_overrides_runpath=no
16881 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16882 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16883 hardcode_into_libs=yes
16886 # No shared lib support for Linux oldld, aout, or coff.
16887 linux*oldld* | linux*aout* | linux*coff*)
16888 dynamic_linker=no
16891 # This must be Linux ELF.
16892 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16893 version_type=linux
16894 need_lib_prefix=no
16895 need_version=no
16896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16897 soname_spec='${libname}${release}${shared_ext}$major'
16898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16899 shlibpath_var=LD_LIBRARY_PATH
16900 shlibpath_overrides_runpath=no
16902 # Some binutils ld are patched to set DT_RUNPATH
16903 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16904 $as_echo_n "(cached) " >&6
16905 else
16906 lt_cv_shlibpath_overrides_runpath=no
16907 save_LDFLAGS=$LDFLAGS
16908 save_libdir=$libdir
16909 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16910 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16912 /* end confdefs.h. */
16915 main ()
16919 return 0;
16921 _ACEOF
16922 if ac_fn_c_try_link "$LINENO"; then :
16923 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16924 lt_cv_shlibpath_overrides_runpath=yes
16927 rm -f core conftest.err conftest.$ac_objext \
16928 conftest$ac_exeext conftest.$ac_ext
16929 LDFLAGS=$save_LDFLAGS
16930 libdir=$save_libdir
16934 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16936 # This implies no fast_install, which is unacceptable.
16937 # Some rework will be needed to allow for fast_install
16938 # before this can be enabled.
16939 hardcode_into_libs=yes
16941 # Append ld.so.conf contents to the search path
16942 if test -f /etc/ld.so.conf; then
16943 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' ' '`
16944 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16947 # We used to test for /lib/ld.so.1 and disable shared libraries on
16948 # powerpc, because MkLinux only supported shared libraries with the
16949 # GNU dynamic linker. Since this was broken with cross compilers,
16950 # most powerpc-linux boxes support dynamic linking these days and
16951 # people can always --disable-shared, the test was removed, and we
16952 # assume the GNU/Linux dynamic linker is in use.
16953 dynamic_linker='GNU/Linux ld.so'
16956 netbsd*)
16957 version_type=sunos
16958 need_lib_prefix=no
16959 need_version=no
16960 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16962 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16963 dynamic_linker='NetBSD (a.out) ld.so'
16964 else
16965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16966 soname_spec='${libname}${release}${shared_ext}$major'
16967 dynamic_linker='NetBSD ld.elf_so'
16969 shlibpath_var=LD_LIBRARY_PATH
16970 shlibpath_overrides_runpath=yes
16971 hardcode_into_libs=yes
16974 newsos6)
16975 version_type=linux
16976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16977 shlibpath_var=LD_LIBRARY_PATH
16978 shlibpath_overrides_runpath=yes
16981 *nto* | *qnx*)
16982 version_type=qnx
16983 need_lib_prefix=no
16984 need_version=no
16985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16986 soname_spec='${libname}${release}${shared_ext}$major'
16987 shlibpath_var=LD_LIBRARY_PATH
16988 shlibpath_overrides_runpath=no
16989 hardcode_into_libs=yes
16990 dynamic_linker='ldqnx.so'
16993 openbsd*)
16994 version_type=sunos
16995 sys_lib_dlsearch_path_spec="/usr/lib"
16996 need_lib_prefix=no
16997 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16998 case $host_os in
16999 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17000 *) need_version=no ;;
17001 esac
17002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17004 shlibpath_var=LD_LIBRARY_PATH
17005 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17006 case $host_os in
17007 openbsd2.[89] | openbsd2.[89].*)
17008 shlibpath_overrides_runpath=no
17011 shlibpath_overrides_runpath=yes
17013 esac
17014 else
17015 shlibpath_overrides_runpath=yes
17019 os2*)
17020 libname_spec='$name'
17021 shrext_cmds=".dll"
17022 need_lib_prefix=no
17023 library_names_spec='$libname${shared_ext} $libname.a'
17024 dynamic_linker='OS/2 ld.exe'
17025 shlibpath_var=LIBPATH
17028 osf3* | osf4* | osf5*)
17029 version_type=osf
17030 need_lib_prefix=no
17031 need_version=no
17032 soname_spec='${libname}${release}${shared_ext}$major'
17033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17034 shlibpath_var=LD_LIBRARY_PATH
17035 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17036 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17039 rdos*)
17040 dynamic_linker=no
17043 solaris*)
17044 version_type=linux
17045 need_lib_prefix=no
17046 need_version=no
17047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17048 soname_spec='${libname}${release}${shared_ext}$major'
17049 shlibpath_var=LD_LIBRARY_PATH
17050 shlibpath_overrides_runpath=yes
17051 hardcode_into_libs=yes
17052 # ldd complains unless libraries are executable
17053 postinstall_cmds='chmod +x $lib'
17056 sunos4*)
17057 version_type=sunos
17058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17059 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17060 shlibpath_var=LD_LIBRARY_PATH
17061 shlibpath_overrides_runpath=yes
17062 if test "$with_gnu_ld" = yes; then
17063 need_lib_prefix=no
17065 need_version=yes
17068 sysv4 | sysv4.3*)
17069 version_type=linux
17070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17071 soname_spec='${libname}${release}${shared_ext}$major'
17072 shlibpath_var=LD_LIBRARY_PATH
17073 case $host_vendor in
17074 sni)
17075 shlibpath_overrides_runpath=no
17076 need_lib_prefix=no
17077 runpath_var=LD_RUN_PATH
17079 siemens)
17080 need_lib_prefix=no
17082 motorola)
17083 need_lib_prefix=no
17084 need_version=no
17085 shlibpath_overrides_runpath=no
17086 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17088 esac
17091 sysv4*MP*)
17092 if test -d /usr/nec ;then
17093 version_type=linux
17094 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17095 soname_spec='$libname${shared_ext}.$major'
17096 shlibpath_var=LD_LIBRARY_PATH
17100 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17101 version_type=freebsd-elf
17102 need_lib_prefix=no
17103 need_version=no
17104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17105 soname_spec='${libname}${release}${shared_ext}$major'
17106 shlibpath_var=LD_LIBRARY_PATH
17107 shlibpath_overrides_runpath=yes
17108 hardcode_into_libs=yes
17109 if test "$with_gnu_ld" = yes; then
17110 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17111 else
17112 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17113 case $host_os in
17114 sco3.2v5*)
17115 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17117 esac
17119 sys_lib_dlsearch_path_spec='/usr/lib'
17122 tpf*)
17123 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17124 version_type=linux
17125 need_lib_prefix=no
17126 need_version=no
17127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17128 shlibpath_var=LD_LIBRARY_PATH
17129 shlibpath_overrides_runpath=no
17130 hardcode_into_libs=yes
17133 uts4*)
17134 version_type=linux
17135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17136 soname_spec='${libname}${release}${shared_ext}$major'
17137 shlibpath_var=LD_LIBRARY_PATH
17141 dynamic_linker=no
17143 esac
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17145 $as_echo "$dynamic_linker" >&6; }
17146 test "$dynamic_linker" = no && can_build_shared=no
17148 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17149 if test "$GCC" = yes; then
17150 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17153 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17154 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17156 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17157 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17252 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17253 hardcode_action=
17254 if test -n "$hardcode_libdir_flag_spec" ||
17255 test -n "$runpath_var" ||
17256 test "X$hardcode_automatic" = "Xyes" ; then
17258 # We can hardcode non-existent directories.
17259 if test "$hardcode_direct" != no &&
17260 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17261 # have to relink, otherwise we might link with an installed library
17262 # when we should be linking with a yet-to-be-installed one
17263 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17264 test "$hardcode_minus_L" != no; then
17265 # Linking always hardcodes the temporary library directory.
17266 hardcode_action=relink
17267 else
17268 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17269 hardcode_action=immediate
17271 else
17272 # We cannot hardcode anything, or else we can only hardcode existing
17273 # directories.
17274 hardcode_action=unsupported
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17277 $as_echo "$hardcode_action" >&6; }
17279 if test "$hardcode_action" = relink ||
17280 test "$inherit_rpath" = yes; then
17281 # Fast installation is not supported
17282 enable_fast_install=no
17283 elif test "$shlibpath_overrides_runpath" = yes ||
17284 test "$enable_shared" = no; then
17285 # Fast installation is not necessary
17286 enable_fast_install=needless
17294 if test "x$enable_dlopen" != xyes; then
17295 enable_dlopen=unknown
17296 enable_dlopen_self=unknown
17297 enable_dlopen_self_static=unknown
17298 else
17299 lt_cv_dlopen=no
17300 lt_cv_dlopen_libs=
17302 case $host_os in
17303 beos*)
17304 lt_cv_dlopen="load_add_on"
17305 lt_cv_dlopen_libs=
17306 lt_cv_dlopen_self=yes
17309 mingw* | pw32* | cegcc*)
17310 lt_cv_dlopen="LoadLibrary"
17311 lt_cv_dlopen_libs=
17314 cygwin*)
17315 lt_cv_dlopen="dlopen"
17316 lt_cv_dlopen_libs=
17319 darwin*)
17320 # if libdl is installed we need to link against it
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17322 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17323 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17324 $as_echo_n "(cached) " >&6
17325 else
17326 ac_check_lib_save_LIBS=$LIBS
17327 LIBS="-ldl $LIBS"
17328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17329 /* end confdefs.h. */
17331 /* Override any GCC internal prototype to avoid an error.
17332 Use char because int might match the return type of a GCC
17333 builtin and then its argument prototype would still apply. */
17334 #ifdef __cplusplus
17335 extern "C"
17336 #endif
17337 char dlopen ();
17339 main ()
17341 return dlopen ();
17343 return 0;
17345 _ACEOF
17346 if ac_fn_c_try_link "$LINENO"; then :
17347 ac_cv_lib_dl_dlopen=yes
17348 else
17349 ac_cv_lib_dl_dlopen=no
17351 rm -f core conftest.err conftest.$ac_objext \
17352 conftest$ac_exeext conftest.$ac_ext
17353 LIBS=$ac_check_lib_save_LIBS
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17356 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17357 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17358 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17359 else
17361 lt_cv_dlopen="dyld"
17362 lt_cv_dlopen_libs=
17363 lt_cv_dlopen_self=yes
17370 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17371 if test "x$ac_cv_func_shl_load" = x""yes; then :
17372 lt_cv_dlopen="shl_load"
17373 else
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17375 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17376 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17377 $as_echo_n "(cached) " >&6
17378 else
17379 ac_check_lib_save_LIBS=$LIBS
17380 LIBS="-ldld $LIBS"
17381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17382 /* end confdefs.h. */
17384 /* Override any GCC internal prototype to avoid an error.
17385 Use char because int might match the return type of a GCC
17386 builtin and then its argument prototype would still apply. */
17387 #ifdef __cplusplus
17388 extern "C"
17389 #endif
17390 char shl_load ();
17392 main ()
17394 return shl_load ();
17396 return 0;
17398 _ACEOF
17399 if ac_fn_c_try_link "$LINENO"; then :
17400 ac_cv_lib_dld_shl_load=yes
17401 else
17402 ac_cv_lib_dld_shl_load=no
17404 rm -f core conftest.err conftest.$ac_objext \
17405 conftest$ac_exeext conftest.$ac_ext
17406 LIBS=$ac_check_lib_save_LIBS
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17409 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17410 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17411 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17412 else
17413 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17414 if test "x$ac_cv_func_dlopen" = x""yes; then :
17415 lt_cv_dlopen="dlopen"
17416 else
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17418 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17419 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17420 $as_echo_n "(cached) " >&6
17421 else
17422 ac_check_lib_save_LIBS=$LIBS
17423 LIBS="-ldl $LIBS"
17424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17425 /* end confdefs.h. */
17427 /* Override any GCC internal prototype to avoid an error.
17428 Use char because int might match the return type of a GCC
17429 builtin and then its argument prototype would still apply. */
17430 #ifdef __cplusplus
17431 extern "C"
17432 #endif
17433 char dlopen ();
17435 main ()
17437 return dlopen ();
17439 return 0;
17441 _ACEOF
17442 if ac_fn_c_try_link "$LINENO"; then :
17443 ac_cv_lib_dl_dlopen=yes
17444 else
17445 ac_cv_lib_dl_dlopen=no
17447 rm -f core conftest.err conftest.$ac_objext \
17448 conftest$ac_exeext conftest.$ac_ext
17449 LIBS=$ac_check_lib_save_LIBS
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17452 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17453 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17454 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17455 else
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17457 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17458 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17459 $as_echo_n "(cached) " >&6
17460 else
17461 ac_check_lib_save_LIBS=$LIBS
17462 LIBS="-lsvld $LIBS"
17463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17464 /* end confdefs.h. */
17466 /* Override any GCC internal prototype to avoid an error.
17467 Use char because int might match the return type of a GCC
17468 builtin and then its argument prototype would still apply. */
17469 #ifdef __cplusplus
17470 extern "C"
17471 #endif
17472 char dlopen ();
17474 main ()
17476 return dlopen ();
17478 return 0;
17480 _ACEOF
17481 if ac_fn_c_try_link "$LINENO"; then :
17482 ac_cv_lib_svld_dlopen=yes
17483 else
17484 ac_cv_lib_svld_dlopen=no
17486 rm -f core conftest.err conftest.$ac_objext \
17487 conftest$ac_exeext conftest.$ac_ext
17488 LIBS=$ac_check_lib_save_LIBS
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17491 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17492 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17493 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17494 else
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17496 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17497 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17498 $as_echo_n "(cached) " >&6
17499 else
17500 ac_check_lib_save_LIBS=$LIBS
17501 LIBS="-ldld $LIBS"
17502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17503 /* end confdefs.h. */
17505 /* Override any GCC internal prototype to avoid an error.
17506 Use char because int might match the return type of a GCC
17507 builtin and then its argument prototype would still apply. */
17508 #ifdef __cplusplus
17509 extern "C"
17510 #endif
17511 char dld_link ();
17513 main ()
17515 return dld_link ();
17517 return 0;
17519 _ACEOF
17520 if ac_fn_c_try_link "$LINENO"; then :
17521 ac_cv_lib_dld_dld_link=yes
17522 else
17523 ac_cv_lib_dld_dld_link=no
17525 rm -f core conftest.err conftest.$ac_objext \
17526 conftest$ac_exeext conftest.$ac_ext
17527 LIBS=$ac_check_lib_save_LIBS
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17530 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17531 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17532 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17551 esac
17553 if test "x$lt_cv_dlopen" != xno; then
17554 enable_dlopen=yes
17555 else
17556 enable_dlopen=no
17559 case $lt_cv_dlopen in
17560 dlopen)
17561 save_CPPFLAGS="$CPPFLAGS"
17562 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17564 save_LDFLAGS="$LDFLAGS"
17565 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17567 save_LIBS="$LIBS"
17568 LIBS="$lt_cv_dlopen_libs $LIBS"
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17571 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17572 if test "${lt_cv_dlopen_self+set}" = set; then :
17573 $as_echo_n "(cached) " >&6
17574 else
17575 if test "$cross_compiling" = yes; then :
17576 lt_cv_dlopen_self=cross
17577 else
17578 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17579 lt_status=$lt_dlunknown
17580 cat > conftest.$ac_ext <<_LT_EOF
17581 #line 17581 "configure"
17582 #include "confdefs.h"
17584 #if HAVE_DLFCN_H
17585 #include <dlfcn.h>
17586 #endif
17588 #include <stdio.h>
17590 #ifdef RTLD_GLOBAL
17591 # define LT_DLGLOBAL RTLD_GLOBAL
17592 #else
17593 # ifdef DL_GLOBAL
17594 # define LT_DLGLOBAL DL_GLOBAL
17595 # else
17596 # define LT_DLGLOBAL 0
17597 # endif
17598 #endif
17600 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17601 find out it does not work in some platform. */
17602 #ifndef LT_DLLAZY_OR_NOW
17603 # ifdef RTLD_LAZY
17604 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17605 # else
17606 # ifdef DL_LAZY
17607 # define LT_DLLAZY_OR_NOW DL_LAZY
17608 # else
17609 # ifdef RTLD_NOW
17610 # define LT_DLLAZY_OR_NOW RTLD_NOW
17611 # else
17612 # ifdef DL_NOW
17613 # define LT_DLLAZY_OR_NOW DL_NOW
17614 # else
17615 # define LT_DLLAZY_OR_NOW 0
17616 # endif
17617 # endif
17618 # endif
17619 # endif
17620 #endif
17622 /* When -fvisbility=hidden is used, assume the code has been annotated
17623 correspondingly for the symbols needed. */
17624 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17625 void fnord () __attribute__((visibility("default")));
17626 #endif
17628 void fnord () { int i=42; }
17629 int main ()
17631 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17632 int status = $lt_dlunknown;
17634 if (self)
17636 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17637 else
17639 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17640 else puts (dlerror ());
17642 /* dlclose (self); */
17644 else
17645 puts (dlerror ());
17647 return status;
17649 _LT_EOF
17650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17651 (eval $ac_link) 2>&5
17652 ac_status=$?
17653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17654 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17655 (./conftest; exit; ) >&5 2>/dev/null
17656 lt_status=$?
17657 case x$lt_status in
17658 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17659 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17660 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17661 esac
17662 else :
17663 # compilation failed
17664 lt_cv_dlopen_self=no
17667 rm -fr conftest*
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17672 $as_echo "$lt_cv_dlopen_self" >&6; }
17674 if test "x$lt_cv_dlopen_self" = xyes; then
17675 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17677 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17678 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17679 $as_echo_n "(cached) " >&6
17680 else
17681 if test "$cross_compiling" = yes; then :
17682 lt_cv_dlopen_self_static=cross
17683 else
17684 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17685 lt_status=$lt_dlunknown
17686 cat > conftest.$ac_ext <<_LT_EOF
17687 #line 17687 "configure"
17688 #include "confdefs.h"
17690 #if HAVE_DLFCN_H
17691 #include <dlfcn.h>
17692 #endif
17694 #include <stdio.h>
17696 #ifdef RTLD_GLOBAL
17697 # define LT_DLGLOBAL RTLD_GLOBAL
17698 #else
17699 # ifdef DL_GLOBAL
17700 # define LT_DLGLOBAL DL_GLOBAL
17701 # else
17702 # define LT_DLGLOBAL 0
17703 # endif
17704 #endif
17706 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17707 find out it does not work in some platform. */
17708 #ifndef LT_DLLAZY_OR_NOW
17709 # ifdef RTLD_LAZY
17710 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17711 # else
17712 # ifdef DL_LAZY
17713 # define LT_DLLAZY_OR_NOW DL_LAZY
17714 # else
17715 # ifdef RTLD_NOW
17716 # define LT_DLLAZY_OR_NOW RTLD_NOW
17717 # else
17718 # ifdef DL_NOW
17719 # define LT_DLLAZY_OR_NOW DL_NOW
17720 # else
17721 # define LT_DLLAZY_OR_NOW 0
17722 # endif
17723 # endif
17724 # endif
17725 # endif
17726 #endif
17728 /* When -fvisbility=hidden is used, assume the code has been annotated
17729 correspondingly for the symbols needed. */
17730 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17731 void fnord () __attribute__((visibility("default")));
17732 #endif
17734 void fnord () { int i=42; }
17735 int main ()
17737 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17738 int status = $lt_dlunknown;
17740 if (self)
17742 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17743 else
17745 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17746 else puts (dlerror ());
17748 /* dlclose (self); */
17750 else
17751 puts (dlerror ());
17753 return status;
17755 _LT_EOF
17756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17757 (eval $ac_link) 2>&5
17758 ac_status=$?
17759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17760 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17761 (./conftest; exit; ) >&5 2>/dev/null
17762 lt_status=$?
17763 case x$lt_status in
17764 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17765 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17766 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17767 esac
17768 else :
17769 # compilation failed
17770 lt_cv_dlopen_self_static=no
17773 rm -fr conftest*
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17778 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17781 CPPFLAGS="$save_CPPFLAGS"
17782 LDFLAGS="$save_LDFLAGS"
17783 LIBS="$save_LIBS"
17785 esac
17787 case $lt_cv_dlopen_self in
17788 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17789 *) enable_dlopen_self=unknown ;;
17790 esac
17792 case $lt_cv_dlopen_self_static in
17793 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17794 *) enable_dlopen_self_static=unknown ;;
17795 esac
17814 striplib=
17815 old_striplib=
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17817 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17818 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17819 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17820 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17822 $as_echo "yes" >&6; }
17823 else
17824 # FIXME - insert some real tests, host_os isn't really good enough
17825 case $host_os in
17826 darwin*)
17827 if test -n "$STRIP" ; then
17828 striplib="$STRIP -x"
17829 old_striplib="$STRIP -S"
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17831 $as_echo "yes" >&6; }
17832 else
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17834 $as_echo "no" >&6; }
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17839 $as_echo "no" >&6; }
17841 esac
17855 # Report which library types will actually be built
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17857 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17859 $as_echo "$can_build_shared" >&6; }
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17862 $as_echo_n "checking whether to build shared libraries... " >&6; }
17863 test "$can_build_shared" = "no" && enable_shared=no
17865 # On AIX, shared libraries and static libraries use the same namespace, and
17866 # are all built from PIC.
17867 case $host_os in
17868 aix3*)
17869 test "$enable_shared" = yes && enable_static=no
17870 if test -n "$RANLIB"; then
17871 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17872 postinstall_cmds='$RANLIB $lib'
17876 aix[4-9]*)
17877 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17878 test "$enable_shared" = yes && enable_static=no
17881 esac
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17883 $as_echo "$enable_shared" >&6; }
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17886 $as_echo_n "checking whether to build static libraries... " >&6; }
17887 # Make sure either enable_shared or enable_static is yes.
17888 test "$enable_shared" = yes || enable_static=yes
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17890 $as_echo "$enable_static" >&6; }
17896 ac_ext=c
17897 ac_cpp='$CPP $CPPFLAGS'
17898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17902 CC="$lt_save_CC"
17904 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17905 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17906 (test "X$CXX" != "Xg++"))) ; then
17907 ac_ext=cpp
17908 ac_cpp='$CXXCPP $CPPFLAGS'
17909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17913 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17914 if test -z "$CXXCPP"; then
17915 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17916 $as_echo_n "(cached) " >&6
17917 else
17918 # Double quotes because CXXCPP needs to be expanded
17919 for CXXCPP in "$CXX -E" "/lib/cpp"
17921 ac_preproc_ok=false
17922 for ac_cxx_preproc_warn_flag in '' yes
17924 # Use a header file that comes with gcc, so configuring glibc
17925 # with a fresh cross-compiler works.
17926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17927 # <limits.h> exists even on freestanding compilers.
17928 # On the NeXT, cc -E runs the code through the compiler's parser,
17929 # not just through cpp. "Syntax error" is here to catch this case.
17930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17931 /* end confdefs.h. */
17932 #ifdef __STDC__
17933 # include <limits.h>
17934 #else
17935 # include <assert.h>
17936 #endif
17937 Syntax error
17938 _ACEOF
17939 if ac_fn_cxx_try_cpp "$LINENO"; then :
17941 else
17942 # Broken: fails on valid input.
17943 continue
17945 rm -f conftest.err conftest.$ac_ext
17947 # OK, works on sane cases. Now check whether nonexistent headers
17948 # can be detected and how.
17949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17950 /* end confdefs.h. */
17951 #include <ac_nonexistent.h>
17952 _ACEOF
17953 if ac_fn_cxx_try_cpp "$LINENO"; then :
17954 # Broken: success on invalid input.
17955 continue
17956 else
17957 # Passes both tests.
17958 ac_preproc_ok=:
17959 break
17961 rm -f conftest.err conftest.$ac_ext
17963 done
17964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17965 rm -f conftest.err conftest.$ac_ext
17966 if $ac_preproc_ok; then :
17967 break
17970 done
17971 ac_cv_prog_CXXCPP=$CXXCPP
17974 CXXCPP=$ac_cv_prog_CXXCPP
17975 else
17976 ac_cv_prog_CXXCPP=$CXXCPP
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17979 $as_echo "$CXXCPP" >&6; }
17980 ac_preproc_ok=false
17981 for ac_cxx_preproc_warn_flag in '' yes
17983 # Use a header file that comes with gcc, so configuring glibc
17984 # with a fresh cross-compiler works.
17985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17986 # <limits.h> exists even on freestanding compilers.
17987 # On the NeXT, cc -E runs the code through the compiler's parser,
17988 # not just through cpp. "Syntax error" is here to catch this case.
17989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17990 /* end confdefs.h. */
17991 #ifdef __STDC__
17992 # include <limits.h>
17993 #else
17994 # include <assert.h>
17995 #endif
17996 Syntax error
17997 _ACEOF
17998 if ac_fn_cxx_try_cpp "$LINENO"; then :
18000 else
18001 # Broken: fails on valid input.
18002 continue
18004 rm -f conftest.err conftest.$ac_ext
18006 # OK, works on sane cases. Now check whether nonexistent headers
18007 # can be detected and how.
18008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18009 /* end confdefs.h. */
18010 #include <ac_nonexistent.h>
18011 _ACEOF
18012 if ac_fn_cxx_try_cpp "$LINENO"; then :
18013 # Broken: success on invalid input.
18014 continue
18015 else
18016 # Passes both tests.
18017 ac_preproc_ok=:
18018 break
18020 rm -f conftest.err conftest.$ac_ext
18022 done
18023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18024 rm -f conftest.err conftest.$ac_ext
18025 if $ac_preproc_ok; then :
18027 else
18028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18030 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18031 See \`config.log' for more details." "$LINENO" 5; }
18034 ac_ext=c
18035 ac_cpp='$CPP $CPPFLAGS'
18036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18040 else
18041 _lt_caught_CXX_error=yes
18044 ac_ext=cpp
18045 ac_cpp='$CXXCPP $CPPFLAGS'
18046 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18047 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18048 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18050 archive_cmds_need_lc_CXX=no
18051 allow_undefined_flag_CXX=
18052 always_export_symbols_CXX=no
18053 archive_expsym_cmds_CXX=
18054 compiler_needs_object_CXX=no
18055 export_dynamic_flag_spec_CXX=
18056 hardcode_direct_CXX=no
18057 hardcode_direct_absolute_CXX=no
18058 hardcode_libdir_flag_spec_CXX=
18059 hardcode_libdir_flag_spec_ld_CXX=
18060 hardcode_libdir_separator_CXX=
18061 hardcode_minus_L_CXX=no
18062 hardcode_shlibpath_var_CXX=unsupported
18063 hardcode_automatic_CXX=no
18064 inherit_rpath_CXX=no
18065 module_cmds_CXX=
18066 module_expsym_cmds_CXX=
18067 link_all_deplibs_CXX=unknown
18068 old_archive_cmds_CXX=$old_archive_cmds
18069 reload_flag_CXX=$reload_flag
18070 reload_cmds_CXX=$reload_cmds
18071 no_undefined_flag_CXX=
18072 whole_archive_flag_spec_CXX=
18073 enable_shared_with_static_runtimes_CXX=no
18075 # Source file extension for C++ test sources.
18076 ac_ext=cpp
18078 # Object file extension for compiled C++ test sources.
18079 objext=o
18080 objext_CXX=$objext
18082 # No sense in running all these tests if we already determined that
18083 # the CXX compiler isn't working. Some variables (like enable_shared)
18084 # are currently assumed to apply to all compilers on this platform,
18085 # and will be corrupted by setting them based on a non-working compiler.
18086 if test "$_lt_caught_CXX_error" != yes; then
18087 # Code to be used in simple compile tests
18088 lt_simple_compile_test_code="int some_variable = 0;"
18090 # Code to be used in simple link tests
18091 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18093 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18100 # If no C compiler was specified, use CC.
18101 LTCC=${LTCC-"$CC"}
18103 # If no C compiler flags were specified, use CFLAGS.
18104 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18106 # Allow CC to be a program name with arguments.
18107 compiler=$CC
18110 # save warnings/boilerplate of simple test code
18111 ac_outfile=conftest.$ac_objext
18112 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18113 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18114 _lt_compiler_boilerplate=`cat conftest.err`
18115 $RM conftest*
18117 ac_outfile=conftest.$ac_objext
18118 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18119 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18120 _lt_linker_boilerplate=`cat conftest.err`
18121 $RM -r conftest*
18124 # Allow CC to be a program name with arguments.
18125 lt_save_CC=$CC
18126 lt_save_LD=$LD
18127 lt_save_GCC=$GCC
18128 GCC=$GXX
18129 lt_save_with_gnu_ld=$with_gnu_ld
18130 lt_save_path_LD=$lt_cv_path_LD
18131 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18132 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18133 else
18134 $as_unset lt_cv_prog_gnu_ld
18136 if test -n "${lt_cv_path_LDCXX+set}"; then
18137 lt_cv_path_LD=$lt_cv_path_LDCXX
18138 else
18139 $as_unset lt_cv_path_LD
18141 test -z "${LDCXX+set}" || LD=$LDCXX
18142 CC=${CXX-"c++"}
18143 compiler=$CC
18144 compiler_CXX=$CC
18145 for cc_temp in $compiler""; do
18146 case $cc_temp in
18147 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18148 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18149 \-*) ;;
18150 *) break;;
18151 esac
18152 done
18153 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18156 if test -n "$compiler"; then
18157 # We don't want -fno-exception when compiling C++ code, so set the
18158 # no_builtin_flag separately
18159 if test "$GXX" = yes; then
18160 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18161 else
18162 lt_prog_compiler_no_builtin_flag_CXX=
18165 if test "$GXX" = yes; then
18166 # Set up default GNU C++ configuration
18170 # Check whether --with-gnu-ld was given.
18171 if test "${with_gnu_ld+set}" = set; then :
18172 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18173 else
18174 with_gnu_ld=no
18177 ac_prog=ld
18178 if test "$GCC" = yes; then
18179 # Check if gcc -print-prog-name=ld gives a path.
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18181 $as_echo_n "checking for ld used by $CC... " >&6; }
18182 case $host in
18183 *-*-mingw*)
18184 # gcc leaves a trailing carriage return which upsets mingw
18185 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18187 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18188 esac
18189 case $ac_prog in
18190 # Accept absolute paths.
18191 [\\/]* | ?:[\\/]*)
18192 re_direlt='/[^/][^/]*/\.\./'
18193 # Canonicalize the pathname of ld
18194 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18195 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18196 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18197 done
18198 test -z "$LD" && LD="$ac_prog"
18201 # If it fails, then pretend we aren't using GCC.
18202 ac_prog=ld
18205 # If it is relative, then search for the first ld in PATH.
18206 with_gnu_ld=unknown
18208 esac
18209 elif test "$with_gnu_ld" = yes; then
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18211 $as_echo_n "checking for GNU ld... " >&6; }
18212 else
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18214 $as_echo_n "checking for non-GNU ld... " >&6; }
18216 if test "${lt_cv_path_LD+set}" = set; then :
18217 $as_echo_n "(cached) " >&6
18218 else
18219 if test -z "$LD"; then
18220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18221 for ac_dir in $PATH; do
18222 IFS="$lt_save_ifs"
18223 test -z "$ac_dir" && ac_dir=.
18224 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18225 lt_cv_path_LD="$ac_dir/$ac_prog"
18226 # Check to see if the program is GNU ld. I'd rather use --version,
18227 # but apparently some variants of GNU ld only accept -v.
18228 # Break only if it was the GNU/non-GNU ld that we prefer.
18229 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18230 *GNU* | *'with BFD'*)
18231 test "$with_gnu_ld" != no && break
18234 test "$with_gnu_ld" != yes && break
18236 esac
18238 done
18239 IFS="$lt_save_ifs"
18240 else
18241 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18245 LD="$lt_cv_path_LD"
18246 if test -n "$LD"; then
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18248 $as_echo "$LD" >&6; }
18249 else
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18251 $as_echo "no" >&6; }
18253 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18255 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18256 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18257 $as_echo_n "(cached) " >&6
18258 else
18259 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18260 case `$LD -v 2>&1 </dev/null` in
18261 *GNU* | *'with BFD'*)
18262 lt_cv_prog_gnu_ld=yes
18265 lt_cv_prog_gnu_ld=no
18267 esac
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18270 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18271 with_gnu_ld=$lt_cv_prog_gnu_ld
18279 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18280 # archiving commands below assume that GNU ld is being used.
18281 if test "$with_gnu_ld" = yes; then
18282 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18283 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'
18285 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18286 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18288 # If archive_cmds runs LD, not CC, wlarc should be empty
18289 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18290 # investigate it a little bit more. (MM)
18291 wlarc='${wl}'
18293 # ancient GNU ld didn't support --whole-archive et. al.
18294 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18295 $GREP 'no-whole-archive' > /dev/null; then
18296 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18297 else
18298 whole_archive_flag_spec_CXX=
18300 else
18301 with_gnu_ld=no
18302 wlarc=
18304 # A generic and very simple default shared library creation
18305 # command for GNU C++ for the case where it uses the native
18306 # linker, instead of GNU ld. If possible, this setting should
18307 # overridden to take advantage of the native linker features on
18308 # the platform it is being used on.
18309 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18312 # Commands to make compiler produce verbose output that lists
18313 # what "hidden" libraries, object files and flags are used when
18314 # linking a shared library.
18315 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18317 else
18318 GXX=no
18319 with_gnu_ld=no
18320 wlarc=
18323 # PORTME: fill in a description of your system's C++ link characteristics
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18325 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18326 ld_shlibs_CXX=yes
18327 case $host_os in
18328 aix3*)
18329 # FIXME: insert proper C++ library support
18330 ld_shlibs_CXX=no
18332 aix[4-9]*)
18333 if test "$host_cpu" = ia64; then
18334 # On IA64, the linker does run time linking by default, so we don't
18335 # have to do anything special.
18336 aix_use_runtimelinking=no
18337 exp_sym_flag='-Bexport'
18338 no_entry_flag=""
18339 else
18340 aix_use_runtimelinking=no
18342 # Test if we are trying to use run time linking or normal
18343 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18344 # need to do runtime linking.
18345 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18346 for ld_flag in $LDFLAGS; do
18347 case $ld_flag in
18348 *-brtl*)
18349 aix_use_runtimelinking=yes
18350 break
18352 esac
18353 done
18355 esac
18357 exp_sym_flag='-bexport'
18358 no_entry_flag='-bnoentry'
18361 # When large executables or shared objects are built, AIX ld can
18362 # have problems creating the table of contents. If linking a library
18363 # or program results in "error TOC overflow" add -mminimal-toc to
18364 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18365 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18367 archive_cmds_CXX=''
18368 hardcode_direct_CXX=yes
18369 hardcode_direct_absolute_CXX=yes
18370 hardcode_libdir_separator_CXX=':'
18371 link_all_deplibs_CXX=yes
18372 file_list_spec_CXX='${wl}-f,'
18374 if test "$GXX" = yes; then
18375 case $host_os in aix4.[012]|aix4.[012].*)
18376 # We only want to do this on AIX 4.2 and lower, the check
18377 # below for broken collect2 doesn't work under 4.3+
18378 collect2name=`${CC} -print-prog-name=collect2`
18379 if test -f "$collect2name" &&
18380 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18381 then
18382 # We have reworked collect2
18384 else
18385 # We have old collect2
18386 hardcode_direct_CXX=unsupported
18387 # It fails to find uninstalled libraries when the uninstalled
18388 # path is not listed in the libpath. Setting hardcode_minus_L
18389 # to unsupported forces relinking
18390 hardcode_minus_L_CXX=yes
18391 hardcode_libdir_flag_spec_CXX='-L$libdir'
18392 hardcode_libdir_separator_CXX=
18394 esac
18395 shared_flag='-shared'
18396 if test "$aix_use_runtimelinking" = yes; then
18397 shared_flag="$shared_flag "'${wl}-G'
18399 else
18400 # not using gcc
18401 if test "$host_cpu" = ia64; then
18402 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18403 # chokes on -Wl,-G. The following line is correct:
18404 shared_flag='-G'
18405 else
18406 if test "$aix_use_runtimelinking" = yes; then
18407 shared_flag='${wl}-G'
18408 else
18409 shared_flag='${wl}-bM:SRE'
18414 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18415 # It seems that -bexpall does not export symbols beginning with
18416 # underscore (_), so it is better to generate a list of symbols to
18417 # export.
18418 always_export_symbols_CXX=yes
18419 if test "$aix_use_runtimelinking" = yes; then
18420 # Warning - without using the other runtime loading flags (-brtl),
18421 # -berok will link without error, but may produce a broken library.
18422 allow_undefined_flag_CXX='-berok'
18423 # Determine the default libpath from the value encoded in an empty
18424 # executable.
18425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18426 /* end confdefs.h. */
18429 main ()
18433 return 0;
18435 _ACEOF
18436 if ac_fn_cxx_try_link "$LINENO"; then :
18438 lt_aix_libpath_sed='
18439 /Import File Strings/,/^$/ {
18440 /^0/ {
18441 s/^0 *\(.*\)$/\1/
18445 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18446 # Check for a 64-bit object if we didn't find anything.
18447 if test -z "$aix_libpath"; then
18448 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18451 rm -f core conftest.err conftest.$ac_objext \
18452 conftest$ac_exeext conftest.$ac_ext
18453 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18455 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18457 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"
18458 else
18459 if test "$host_cpu" = ia64; then
18460 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18461 allow_undefined_flag_CXX="-z nodefs"
18462 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"
18463 else
18464 # Determine the default libpath from the value encoded in an
18465 # empty executable.
18466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18467 /* end confdefs.h. */
18470 main ()
18474 return 0;
18476 _ACEOF
18477 if ac_fn_cxx_try_link "$LINENO"; then :
18479 lt_aix_libpath_sed='
18480 /Import File Strings/,/^$/ {
18481 /^0/ {
18482 s/^0 *\(.*\)$/\1/
18486 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18487 # Check for a 64-bit object if we didn't find anything.
18488 if test -z "$aix_libpath"; then
18489 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18492 rm -f core conftest.err conftest.$ac_objext \
18493 conftest$ac_exeext conftest.$ac_ext
18494 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18496 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18497 # Warning - without using the other run time loading flags,
18498 # -berok will link without error, but may produce a broken library.
18499 no_undefined_flag_CXX=' ${wl}-bernotok'
18500 allow_undefined_flag_CXX=' ${wl}-berok'
18501 if test "$with_gnu_ld" = yes; then
18502 # We only use this code for GNU lds that support --whole-archive.
18503 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18504 else
18505 # Exported symbols can be pulled into shared objects from archives
18506 whole_archive_flag_spec_CXX='$convenience'
18508 archive_cmds_need_lc_CXX=yes
18509 # This is similar to how AIX traditionally builds its shared
18510 # libraries.
18511 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'
18516 beos*)
18517 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18518 allow_undefined_flag_CXX=unsupported
18519 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18520 # support --undefined. This deserves some investigation. FIXME
18521 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18522 else
18523 ld_shlibs_CXX=no
18527 chorus*)
18528 case $cc_basename in
18530 # FIXME: insert proper C++ library support
18531 ld_shlibs_CXX=no
18533 esac
18536 cygwin* | mingw* | pw32* | cegcc*)
18537 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18538 # as there is no search path for DLLs.
18539 hardcode_libdir_flag_spec_CXX='-L$libdir'
18540 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18541 allow_undefined_flag_CXX=unsupported
18542 always_export_symbols_CXX=no
18543 enable_shared_with_static_runtimes_CXX=yes
18545 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18546 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'
18547 # If the export-symbols file already is a .def file (1st line
18548 # is EXPORTS), use it as is; otherwise, prepend...
18549 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18550 cp $export_symbols $output_objdir/$soname.def;
18551 else
18552 echo EXPORTS > $output_objdir/$soname.def;
18553 cat $export_symbols >> $output_objdir/$soname.def;
18555 $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'
18556 else
18557 ld_shlibs_CXX=no
18560 darwin* | rhapsody*)
18563 archive_cmds_need_lc_CXX=no
18564 hardcode_direct_CXX=no
18565 hardcode_automatic_CXX=yes
18566 hardcode_shlibpath_var_CXX=unsupported
18567 if test "$lt_cv_ld_force_load" = "yes"; then
18568 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\"`'
18569 else
18570 whole_archive_flag_spec_CXX=''
18572 link_all_deplibs_CXX=yes
18573 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18574 case $cc_basename in
18575 ifort*) _lt_dar_can_shared=yes ;;
18576 *) _lt_dar_can_shared=$GCC ;;
18577 esac
18578 if test "$_lt_dar_can_shared" = "yes"; then
18579 output_verbose_link_cmd=func_echo_all
18580 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}"
18581 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18582 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}"
18583 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}"
18584 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18585 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}"
18586 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}"
18589 else
18590 ld_shlibs_CXX=no
18595 dgux*)
18596 case $cc_basename in
18597 ec++*)
18598 # FIXME: insert proper C++ library support
18599 ld_shlibs_CXX=no
18601 ghcx*)
18602 # Green Hills C++ Compiler
18603 # FIXME: insert proper C++ library support
18604 ld_shlibs_CXX=no
18607 # FIXME: insert proper C++ library support
18608 ld_shlibs_CXX=no
18610 esac
18613 freebsd[12]*)
18614 # C++ shared libraries reported to be fairly broken before
18615 # switch to ELF
18616 ld_shlibs_CXX=no
18619 freebsd-elf*)
18620 archive_cmds_need_lc_CXX=no
18623 freebsd* | dragonfly*)
18624 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18625 # conventions
18626 ld_shlibs_CXX=yes
18629 gnu*)
18632 haiku*)
18633 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18634 link_all_deplibs_CXX=yes
18637 hpux9*)
18638 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18639 hardcode_libdir_separator_CXX=:
18640 export_dynamic_flag_spec_CXX='${wl}-E'
18641 hardcode_direct_CXX=yes
18642 hardcode_minus_L_CXX=yes # Not in the search PATH,
18643 # but as the default
18644 # location of the library.
18646 case $cc_basename in
18647 CC*)
18648 # FIXME: insert proper C++ library support
18649 ld_shlibs_CXX=no
18651 aCC*)
18652 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'
18653 # Commands to make compiler produce verbose output that lists
18654 # what "hidden" libraries, object files and flags are used when
18655 # linking a shared library.
18657 # There doesn't appear to be a way to prevent this compiler from
18658 # explicitly linking system object files so we need to strip them
18659 # from the output so that they don't get included in the library
18660 # dependencies.
18661 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"'
18664 if test "$GXX" = yes; then
18665 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'
18666 else
18667 # FIXME: insert proper C++ library support
18668 ld_shlibs_CXX=no
18671 esac
18674 hpux10*|hpux11*)
18675 if test $with_gnu_ld = no; then
18676 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18677 hardcode_libdir_separator_CXX=:
18679 case $host_cpu in
18680 hppa*64*|ia64*)
18683 export_dynamic_flag_spec_CXX='${wl}-E'
18685 esac
18687 case $host_cpu in
18688 hppa*64*|ia64*)
18689 hardcode_direct_CXX=no
18690 hardcode_shlibpath_var_CXX=no
18693 hardcode_direct_CXX=yes
18694 hardcode_direct_absolute_CXX=yes
18695 hardcode_minus_L_CXX=yes # Not in the search PATH,
18696 # but as the default
18697 # location of the library.
18699 esac
18701 case $cc_basename in
18702 CC*)
18703 # FIXME: insert proper C++ library support
18704 ld_shlibs_CXX=no
18706 aCC*)
18707 case $host_cpu in
18708 hppa*64*)
18709 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18711 ia64*)
18712 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18715 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18717 esac
18718 # Commands to make compiler produce verbose output that lists
18719 # what "hidden" libraries, object files and flags are used when
18720 # linking a shared library.
18722 # There doesn't appear to be a way to prevent this compiler from
18723 # explicitly linking system object files so we need to strip them
18724 # from the output so that they don't get included in the library
18725 # dependencies.
18726 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"'
18729 if test "$GXX" = yes; then
18730 if test $with_gnu_ld = no; then
18731 case $host_cpu in
18732 hppa*64*)
18733 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18735 ia64*)
18736 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18739 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'
18741 esac
18743 else
18744 # FIXME: insert proper C++ library support
18745 ld_shlibs_CXX=no
18748 esac
18751 interix[3-9]*)
18752 hardcode_direct_CXX=no
18753 hardcode_shlibpath_var_CXX=no
18754 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18755 export_dynamic_flag_spec_CXX='${wl}-E'
18756 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18757 # Instead, shared libraries are loaded at an image base (0x10000000 by
18758 # default) and relocated if they conflict, which is a slow very memory
18759 # consuming and fragmenting process. To avoid this, we pick a random,
18760 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18761 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18762 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'
18763 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'
18765 irix5* | irix6*)
18766 case $cc_basename in
18767 CC*)
18768 # SGI C++
18769 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'
18771 # Archives containing C++ object files must be created using
18772 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18773 # necessary to make sure instantiated templates are included
18774 # in the archive.
18775 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18778 if test "$GXX" = yes; then
18779 if test "$with_gnu_ld" = no; then
18780 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'
18781 else
18782 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'
18785 link_all_deplibs_CXX=yes
18787 esac
18788 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18789 hardcode_libdir_separator_CXX=:
18790 inherit_rpath_CXX=yes
18793 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18794 case $cc_basename in
18795 KCC*)
18796 # Kuck and Associates, Inc. (KAI) C++ Compiler
18798 # KCC will only create a shared library if the output file
18799 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18800 # to its proper name (with version) after linking.
18801 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'
18802 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'
18803 # Commands to make compiler produce verbose output that lists
18804 # what "hidden" libraries, object files and flags are used when
18805 # linking a shared library.
18807 # There doesn't appear to be a way to prevent this compiler from
18808 # explicitly linking system object files so we need to strip them
18809 # from the output so that they don't get included in the library
18810 # dependencies.
18811 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"'
18813 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18814 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18816 # Archives containing C++ object files must be created using
18817 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18818 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18820 icpc* | ecpc* )
18821 # Intel C++
18822 with_gnu_ld=yes
18823 # version 8.0 and above of icpc choke on multiply defined symbols
18824 # if we add $predep_objects and $postdep_objects, however 7.1 and
18825 # earlier do not add the objects themselves.
18826 case `$CC -V 2>&1` in
18827 *"Version 7."*)
18828 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18829 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'
18831 *) # Version 8.0 or newer
18832 tmp_idyn=
18833 case $host_cpu in
18834 ia64*) tmp_idyn=' -i_dynamic';;
18835 esac
18836 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18837 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'
18839 esac
18840 archive_cmds_need_lc_CXX=no
18841 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18842 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18843 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18845 pgCC* | pgcpp*)
18846 # Portland Group C++ compiler
18847 case `$CC -V` in
18848 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18849 prelink_cmds_CXX='tpldir=Template.dir~
18850 rm -rf $tpldir~
18851 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18852 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18853 old_archive_cmds_CXX='tpldir=Template.dir~
18854 rm -rf $tpldir~
18855 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18856 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18857 $RANLIB $oldlib'
18858 archive_cmds_CXX='tpldir=Template.dir~
18859 rm -rf $tpldir~
18860 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18861 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18862 archive_expsym_cmds_CXX='tpldir=Template.dir~
18863 rm -rf $tpldir~
18864 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18865 $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'
18867 *) # Version 6 and above use weak symbols
18868 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18869 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'
18871 esac
18873 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18874 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18875 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'
18877 cxx*)
18878 # Compaq C++
18879 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18880 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'
18882 runpath_var=LD_RUN_PATH
18883 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18884 hardcode_libdir_separator_CXX=:
18886 # Commands to make compiler produce verbose output that lists
18887 # what "hidden" libraries, object files and flags are used when
18888 # linking a shared library.
18890 # There doesn't appear to be a way to prevent this compiler from
18891 # explicitly linking system object files so we need to strip them
18892 # from the output so that they don't get included in the library
18893 # dependencies.
18894 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'
18896 xl* | mpixl* | bgxl*)
18897 # IBM XL 8.0 on PPC, with GNU ld
18898 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18899 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18900 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18901 if test "x$supports_anon_versioning" = xyes; then
18902 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18903 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18904 echo "local: *; };" >> $output_objdir/$libname.ver~
18905 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18909 case `$CC -V 2>&1 | sed 5q` in
18910 *Sun\ C*)
18911 # Sun C++ 5.9
18912 no_undefined_flag_CXX=' -zdefs'
18913 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18914 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'
18915 hardcode_libdir_flag_spec_CXX='-R$libdir'
18916 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'
18917 compiler_needs_object_CXX=yes
18919 # Not sure whether something based on
18920 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18921 # would be better.
18922 output_verbose_link_cmd='func_echo_all'
18924 # Archives containing C++ object files must be created using
18925 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18926 # necessary to make sure instantiated templates are included
18927 # in the archive.
18928 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18930 esac
18932 esac
18935 lynxos*)
18936 # FIXME: insert proper C++ library support
18937 ld_shlibs_CXX=no
18940 m88k*)
18941 # FIXME: insert proper C++ library support
18942 ld_shlibs_CXX=no
18945 mvs*)
18946 case $cc_basename in
18947 cxx*)
18948 # FIXME: insert proper C++ library support
18949 ld_shlibs_CXX=no
18952 # FIXME: insert proper C++ library support
18953 ld_shlibs_CXX=no
18955 esac
18958 netbsd*)
18959 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18960 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18961 wlarc=
18962 hardcode_libdir_flag_spec_CXX='-R$libdir'
18963 hardcode_direct_CXX=yes
18964 hardcode_shlibpath_var_CXX=no
18966 # Workaround some broken pre-1.5 toolchains
18967 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18970 *nto* | *qnx*)
18971 ld_shlibs_CXX=yes
18974 openbsd2*)
18975 # C++ shared libraries are fairly broken
18976 ld_shlibs_CXX=no
18979 openbsd*)
18980 if test -f /usr/libexec/ld.so; then
18981 hardcode_direct_CXX=yes
18982 hardcode_shlibpath_var_CXX=no
18983 hardcode_direct_absolute_CXX=yes
18984 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18985 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18986 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18987 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18988 export_dynamic_flag_spec_CXX='${wl}-E'
18989 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18991 output_verbose_link_cmd=func_echo_all
18992 else
18993 ld_shlibs_CXX=no
18997 osf3* | osf4* | osf5*)
18998 case $cc_basename in
18999 KCC*)
19000 # Kuck and Associates, Inc. (KAI) C++ Compiler
19002 # KCC will only create a shared library if the output file
19003 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19004 # to its proper name (with version) after linking.
19005 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'
19007 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19008 hardcode_libdir_separator_CXX=:
19010 # Archives containing C++ object files must be created using
19011 # the KAI C++ compiler.
19012 case $host in
19013 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19014 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19015 esac
19017 RCC*)
19018 # Rational C++ 2.4.1
19019 # FIXME: insert proper C++ library support
19020 ld_shlibs_CXX=no
19022 cxx*)
19023 case $host in
19024 osf3*)
19025 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19026 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'
19027 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19030 allow_undefined_flag_CXX=' -expect_unresolved \*'
19031 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'
19032 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19033 echo "-hidden">> $lib.exp~
19034 $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~
19035 $RM $lib.exp'
19036 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19038 esac
19040 hardcode_libdir_separator_CXX=:
19042 # Commands to make compiler produce verbose output that lists
19043 # what "hidden" libraries, object files and flags are used when
19044 # linking a shared library.
19046 # There doesn't appear to be a way to prevent this compiler from
19047 # explicitly linking system object files so we need to strip them
19048 # from the output so that they don't get included in the library
19049 # dependencies.
19050 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"'
19053 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19054 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19055 case $host in
19056 osf3*)
19057 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'
19060 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'
19062 esac
19064 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19065 hardcode_libdir_separator_CXX=:
19067 # Commands to make compiler produce verbose output that lists
19068 # what "hidden" libraries, object files and flags are used when
19069 # linking a shared library.
19070 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19072 else
19073 # FIXME: insert proper C++ library support
19074 ld_shlibs_CXX=no
19077 esac
19080 psos*)
19081 # FIXME: insert proper C++ library support
19082 ld_shlibs_CXX=no
19085 sunos4*)
19086 case $cc_basename in
19087 CC*)
19088 # Sun C++ 4.x
19089 # FIXME: insert proper C++ library support
19090 ld_shlibs_CXX=no
19092 lcc*)
19093 # Lucid
19094 # FIXME: insert proper C++ library support
19095 ld_shlibs_CXX=no
19098 # FIXME: insert proper C++ library support
19099 ld_shlibs_CXX=no
19101 esac
19104 solaris*)
19105 case $cc_basename in
19106 CC*)
19107 # Sun C++ 4.2, 5.x and Centerline C++
19108 archive_cmds_need_lc_CXX=yes
19109 no_undefined_flag_CXX=' -zdefs'
19110 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19111 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19112 $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'
19114 hardcode_libdir_flag_spec_CXX='-R$libdir'
19115 hardcode_shlibpath_var_CXX=no
19116 case $host_os in
19117 solaris2.[0-5] | solaris2.[0-5].*) ;;
19119 # The compiler driver will combine and reorder linker options,
19120 # but understands `-z linker_flag'.
19121 # Supported since Solaris 2.6 (maybe 2.5.1?)
19122 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19124 esac
19125 link_all_deplibs_CXX=yes
19127 output_verbose_link_cmd='func_echo_all'
19129 # Archives containing C++ object files must be created using
19130 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19131 # necessary to make sure instantiated templates are included
19132 # in the archive.
19133 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19135 gcx*)
19136 # Green Hills C++ Compiler
19137 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19139 # The C++ compiler must be used to create the archive.
19140 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19143 # GNU C++ compiler with Solaris linker
19144 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19145 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19146 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19147 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19148 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19149 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19151 # Commands to make compiler produce verbose output that lists
19152 # what "hidden" libraries, object files and flags are used when
19153 # linking a shared library.
19154 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19155 else
19156 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19157 # platform.
19158 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19159 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19160 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19162 # Commands to make compiler produce verbose output that lists
19163 # what "hidden" libraries, object files and flags are used when
19164 # linking a shared library.
19165 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19168 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19169 case $host_os in
19170 solaris2.[0-5] | solaris2.[0-5].*) ;;
19172 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19174 esac
19177 esac
19180 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19181 no_undefined_flag_CXX='${wl}-z,text'
19182 archive_cmds_need_lc_CXX=no
19183 hardcode_shlibpath_var_CXX=no
19184 runpath_var='LD_RUN_PATH'
19186 case $cc_basename in
19187 CC*)
19188 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19189 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19192 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19193 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19195 esac
19198 sysv5* | sco3.2v5* | sco5v6*)
19199 # Note: We can NOT use -z defs as we might desire, because we do not
19200 # link with -lc, and that would cause any symbols used from libc to
19201 # always be unresolved, which means just about no library would
19202 # ever link correctly. If we're not using GNU ld we use -z text
19203 # though, which does catch some bad symbols but isn't as heavy-handed
19204 # as -z defs.
19205 no_undefined_flag_CXX='${wl}-z,text'
19206 allow_undefined_flag_CXX='${wl}-z,nodefs'
19207 archive_cmds_need_lc_CXX=no
19208 hardcode_shlibpath_var_CXX=no
19209 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19210 hardcode_libdir_separator_CXX=':'
19211 link_all_deplibs_CXX=yes
19212 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19213 runpath_var='LD_RUN_PATH'
19215 case $cc_basename in
19216 CC*)
19217 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19218 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19219 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19220 '"$old_archive_cmds_CXX"
19221 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19222 '"$reload_cmds_CXX"
19225 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19226 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19228 esac
19231 tandem*)
19232 case $cc_basename in
19233 NCC*)
19234 # NonStop-UX NCC 3.20
19235 # FIXME: insert proper C++ library support
19236 ld_shlibs_CXX=no
19239 # FIXME: insert proper C++ library support
19240 ld_shlibs_CXX=no
19242 esac
19245 vxworks*)
19246 # FIXME: insert proper C++ library support
19247 ld_shlibs_CXX=no
19251 # FIXME: insert proper C++ library support
19252 ld_shlibs_CXX=no
19254 esac
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19257 $as_echo "$ld_shlibs_CXX" >&6; }
19258 test "$ld_shlibs_CXX" = no && can_build_shared=no
19260 GCC_CXX="$GXX"
19261 LD_CXX="$LD"
19263 ## CAVEAT EMPTOR:
19264 ## There is no encapsulation within the following macros, do not change
19265 ## the running order or otherwise move them around unless you know exactly
19266 ## what you are doing...
19267 # Dependencies to place before and after the object being linked:
19268 predep_objects_CXX=
19269 postdep_objects_CXX=
19270 predeps_CXX=
19271 postdeps_CXX=
19272 compiler_lib_search_path_CXX=
19274 cat > conftest.$ac_ext <<_LT_EOF
19275 class Foo
19277 public:
19278 Foo (void) { a = 0; }
19279 private:
19280 int a;
19282 _LT_EOF
19284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19285 (eval $ac_compile) 2>&5
19286 ac_status=$?
19287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19288 test $ac_status = 0; }; then
19289 # Parse the compiler output and extract the necessary
19290 # objects, libraries and library flags.
19292 # Sentinel used to keep track of whether or not we are before
19293 # the conftest object file.
19294 pre_test_object_deps_done=no
19296 for p in `eval "$output_verbose_link_cmd"`; do
19297 case $p in
19299 -L* | -R* | -l*)
19300 # Some compilers place space between "-{L,R}" and the path.
19301 # Remove the space.
19302 if test $p = "-L" ||
19303 test $p = "-R"; then
19304 prev=$p
19305 continue
19306 else
19307 prev=
19310 if test "$pre_test_object_deps_done" = no; then
19311 case $p in
19312 -L* | -R*)
19313 # Internal compiler library paths should come after those
19314 # provided the user. The postdeps already come after the
19315 # user supplied libs so there is no need to process them.
19316 if test -z "$compiler_lib_search_path_CXX"; then
19317 compiler_lib_search_path_CXX="${prev}${p}"
19318 else
19319 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19322 # The "-l" case would never come before the object being
19323 # linked, so don't bother handling this case.
19324 esac
19325 else
19326 if test -z "$postdeps_CXX"; then
19327 postdeps_CXX="${prev}${p}"
19328 else
19329 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19334 *.$objext)
19335 # This assumes that the test object file only shows up
19336 # once in the compiler output.
19337 if test "$p" = "conftest.$objext"; then
19338 pre_test_object_deps_done=yes
19339 continue
19342 if test "$pre_test_object_deps_done" = no; then
19343 if test -z "$predep_objects_CXX"; then
19344 predep_objects_CXX="$p"
19345 else
19346 predep_objects_CXX="$predep_objects_CXX $p"
19348 else
19349 if test -z "$postdep_objects_CXX"; then
19350 postdep_objects_CXX="$p"
19351 else
19352 postdep_objects_CXX="$postdep_objects_CXX $p"
19357 *) ;; # Ignore the rest.
19359 esac
19360 done
19362 # Clean up.
19363 rm -f a.out a.exe
19364 else
19365 echo "libtool.m4: error: problem compiling CXX test program"
19368 $RM -f confest.$objext
19370 # PORTME: override above test on systems where it is broken
19371 case $host_os in
19372 interix[3-9]*)
19373 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19374 # hack all around it, let's just trust "g++" to DTRT.
19375 predep_objects_CXX=
19376 postdep_objects_CXX=
19377 postdeps_CXX=
19380 linux*)
19381 case `$CC -V 2>&1 | sed 5q` in
19382 *Sun\ C*)
19383 # Sun C++ 5.9
19385 # The more standards-conforming stlport4 library is
19386 # incompatible with the Cstd library. Avoid specifying
19387 # it if it's in CXXFLAGS. Ignore libCrun as
19388 # -library=stlport4 depends on it.
19389 case " $CXX $CXXFLAGS " in
19390 *" -library=stlport4 "*)
19391 solaris_use_stlport4=yes
19393 esac
19395 if test "$solaris_use_stlport4" != yes; then
19396 postdeps_CXX='-library=Cstd -library=Crun'
19399 esac
19402 solaris*)
19403 case $cc_basename in
19404 CC*)
19405 # The more standards-conforming stlport4 library is
19406 # incompatible with the Cstd library. Avoid specifying
19407 # it if it's in CXXFLAGS. Ignore libCrun as
19408 # -library=stlport4 depends on it.
19409 case " $CXX $CXXFLAGS " in
19410 *" -library=stlport4 "*)
19411 solaris_use_stlport4=yes
19413 esac
19415 # Adding this requires a known-good setup of shared libraries for
19416 # Sun compiler versions before 5.6, else PIC objects from an old
19417 # archive will be linked into the output, leading to subtle bugs.
19418 if test "$solaris_use_stlport4" != yes; then
19419 postdeps_CXX='-library=Cstd -library=Crun'
19422 esac
19424 esac
19427 case " $postdeps_CXX " in
19428 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19429 esac
19430 compiler_lib_search_dirs_CXX=
19431 if test -n "${compiler_lib_search_path_CXX}"; then
19432 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19465 lt_prog_compiler_wl_CXX=
19466 lt_prog_compiler_pic_CXX=
19467 lt_prog_compiler_static_CXX=
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19470 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19472 # C++ specific cases for pic, static, wl, etc.
19473 if test "$GXX" = yes; then
19474 lt_prog_compiler_wl_CXX='-Wl,'
19475 lt_prog_compiler_static_CXX='-static'
19477 case $host_os in
19478 aix*)
19479 # All AIX code is PIC.
19480 if test "$host_cpu" = ia64; then
19481 # AIX 5 now supports IA64 processor
19482 lt_prog_compiler_static_CXX='-Bstatic'
19486 amigaos*)
19487 case $host_cpu in
19488 powerpc)
19489 # see comment about AmigaOS4 .so support
19490 lt_prog_compiler_pic_CXX='-fPIC'
19492 m68k)
19493 # FIXME: we need at least 68020 code to build shared libraries, but
19494 # adding the `-m68020' flag to GCC prevents building anything better,
19495 # like `-m68040'.
19496 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19498 esac
19501 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19502 # PIC is the default for these OSes.
19504 mingw* | cygwin* | os2* | pw32* | cegcc*)
19505 # This hack is so that the source file can tell whether it is being
19506 # built for inclusion in a dll (and should export symbols for example).
19507 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19508 # (--disable-auto-import) libraries
19509 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19511 darwin* | rhapsody*)
19512 # PIC is the default on this platform
19513 # Common symbols not allowed in MH_DYLIB files
19514 lt_prog_compiler_pic_CXX='-fno-common'
19516 *djgpp*)
19517 # DJGPP does not support shared libraries at all
19518 lt_prog_compiler_pic_CXX=
19520 haiku*)
19521 # PIC is the default for Haiku.
19522 # The "-static" flag exists, but is broken.
19523 lt_prog_compiler_static_CXX=
19525 interix[3-9]*)
19526 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19527 # Instead, we relocate shared libraries at runtime.
19529 sysv4*MP*)
19530 if test -d /usr/nec; then
19531 lt_prog_compiler_pic_CXX=-Kconform_pic
19534 hpux*)
19535 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19536 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19537 # sets the default TLS model and affects inlining.
19538 case $host_cpu in
19539 hppa*64*)
19542 lt_prog_compiler_pic_CXX='-fPIC'
19544 esac
19546 *qnx* | *nto*)
19547 # QNX uses GNU C++, but need to define -shared option too, otherwise
19548 # it will coredump.
19549 lt_prog_compiler_pic_CXX='-fPIC -shared'
19552 lt_prog_compiler_pic_CXX='-fPIC'
19554 esac
19555 else
19556 case $host_os in
19557 aix[4-9]*)
19558 # All AIX code is PIC.
19559 if test "$host_cpu" = ia64; then
19560 # AIX 5 now supports IA64 processor
19561 lt_prog_compiler_static_CXX='-Bstatic'
19562 else
19563 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19566 chorus*)
19567 case $cc_basename in
19568 cxch68*)
19569 # Green Hills C++ Compiler
19570 # _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"
19572 esac
19574 dgux*)
19575 case $cc_basename in
19576 ec++*)
19577 lt_prog_compiler_pic_CXX='-KPIC'
19579 ghcx*)
19580 # Green Hills C++ Compiler
19581 lt_prog_compiler_pic_CXX='-pic'
19585 esac
19587 freebsd* | dragonfly*)
19588 # FreeBSD uses GNU C++
19590 hpux9* | hpux10* | hpux11*)
19591 case $cc_basename in
19592 CC*)
19593 lt_prog_compiler_wl_CXX='-Wl,'
19594 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19595 if test "$host_cpu" != ia64; then
19596 lt_prog_compiler_pic_CXX='+Z'
19599 aCC*)
19600 lt_prog_compiler_wl_CXX='-Wl,'
19601 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19602 case $host_cpu in
19603 hppa*64*|ia64*)
19604 # +Z the default
19607 lt_prog_compiler_pic_CXX='+Z'
19609 esac
19613 esac
19615 interix*)
19616 # This is c89, which is MS Visual C++ (no shared libs)
19617 # Anyone wants to do a port?
19619 irix5* | irix6* | nonstopux*)
19620 case $cc_basename in
19621 CC*)
19622 lt_prog_compiler_wl_CXX='-Wl,'
19623 lt_prog_compiler_static_CXX='-non_shared'
19624 # CC pic flag -KPIC is the default.
19628 esac
19630 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19631 case $cc_basename in
19632 KCC*)
19633 # KAI C++ Compiler
19634 lt_prog_compiler_wl_CXX='--backend -Wl,'
19635 lt_prog_compiler_pic_CXX='-fPIC'
19637 ecpc* )
19638 # old Intel C++ for x86_64 which still supported -KPIC.
19639 lt_prog_compiler_wl_CXX='-Wl,'
19640 lt_prog_compiler_pic_CXX='-KPIC'
19641 lt_prog_compiler_static_CXX='-static'
19643 icpc* )
19644 # Intel C++, used to be incompatible with GCC.
19645 # ICC 10 doesn't accept -KPIC any more.
19646 lt_prog_compiler_wl_CXX='-Wl,'
19647 lt_prog_compiler_pic_CXX='-fPIC'
19648 lt_prog_compiler_static_CXX='-static'
19650 pgCC* | pgcpp*)
19651 # Portland Group C++ compiler
19652 lt_prog_compiler_wl_CXX='-Wl,'
19653 lt_prog_compiler_pic_CXX='-fpic'
19654 lt_prog_compiler_static_CXX='-Bstatic'
19656 cxx*)
19657 # Compaq C++
19658 # Make sure the PIC flag is empty. It appears that all Alpha
19659 # Linux and Compaq Tru64 Unix objects are PIC.
19660 lt_prog_compiler_pic_CXX=
19661 lt_prog_compiler_static_CXX='-non_shared'
19663 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19664 # IBM XL 8.0, 9.0 on PPC and BlueGene
19665 lt_prog_compiler_wl_CXX='-Wl,'
19666 lt_prog_compiler_pic_CXX='-qpic'
19667 lt_prog_compiler_static_CXX='-qstaticlink'
19670 case `$CC -V 2>&1 | sed 5q` in
19671 *Sun\ C*)
19672 # Sun C++ 5.9
19673 lt_prog_compiler_pic_CXX='-KPIC'
19674 lt_prog_compiler_static_CXX='-Bstatic'
19675 lt_prog_compiler_wl_CXX='-Qoption ld '
19677 esac
19679 esac
19681 lynxos*)
19683 m88k*)
19685 mvs*)
19686 case $cc_basename in
19687 cxx*)
19688 lt_prog_compiler_pic_CXX='-W c,exportall'
19692 esac
19694 netbsd*)
19696 *qnx* | *nto*)
19697 # QNX uses GNU C++, but need to define -shared option too, otherwise
19698 # it will coredump.
19699 lt_prog_compiler_pic_CXX='-fPIC -shared'
19701 osf3* | osf4* | osf5*)
19702 case $cc_basename in
19703 KCC*)
19704 lt_prog_compiler_wl_CXX='--backend -Wl,'
19706 RCC*)
19707 # Rational C++ 2.4.1
19708 lt_prog_compiler_pic_CXX='-pic'
19710 cxx*)
19711 # Digital/Compaq C++
19712 lt_prog_compiler_wl_CXX='-Wl,'
19713 # Make sure the PIC flag is empty. It appears that all Alpha
19714 # Linux and Compaq Tru64 Unix objects are PIC.
19715 lt_prog_compiler_pic_CXX=
19716 lt_prog_compiler_static_CXX='-non_shared'
19720 esac
19722 psos*)
19724 solaris*)
19725 case $cc_basename in
19726 CC*)
19727 # Sun C++ 4.2, 5.x and Centerline C++
19728 lt_prog_compiler_pic_CXX='-KPIC'
19729 lt_prog_compiler_static_CXX='-Bstatic'
19730 lt_prog_compiler_wl_CXX='-Qoption ld '
19732 gcx*)
19733 # Green Hills C++ Compiler
19734 lt_prog_compiler_pic_CXX='-PIC'
19738 esac
19740 sunos4*)
19741 case $cc_basename in
19742 CC*)
19743 # Sun C++ 4.x
19744 lt_prog_compiler_pic_CXX='-pic'
19745 lt_prog_compiler_static_CXX='-Bstatic'
19747 lcc*)
19748 # Lucid
19749 lt_prog_compiler_pic_CXX='-pic'
19753 esac
19755 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19756 case $cc_basename in
19757 CC*)
19758 lt_prog_compiler_wl_CXX='-Wl,'
19759 lt_prog_compiler_pic_CXX='-KPIC'
19760 lt_prog_compiler_static_CXX='-Bstatic'
19762 esac
19764 tandem*)
19765 case $cc_basename in
19766 NCC*)
19767 # NonStop-UX NCC 3.20
19768 lt_prog_compiler_pic_CXX='-KPIC'
19772 esac
19774 vxworks*)
19777 lt_prog_compiler_can_build_shared_CXX=no
19779 esac
19782 case $host_os in
19783 # For platforms which do not support PIC, -DPIC is meaningless:
19784 *djgpp*)
19785 lt_prog_compiler_pic_CXX=
19788 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19790 esac
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19792 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19797 # Check to make sure the PIC flag actually works.
19799 if test -n "$lt_prog_compiler_pic_CXX"; then
19800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19801 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19802 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19803 $as_echo_n "(cached) " >&6
19804 else
19805 lt_cv_prog_compiler_pic_works_CXX=no
19806 ac_outfile=conftest.$ac_objext
19807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19808 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19809 # Insert the option either (1) after the last *FLAGS variable, or
19810 # (2) before a word containing "conftest.", or (3) at the end.
19811 # Note that $ac_compile itself does not contain backslashes and begins
19812 # with a dollar sign (not a hyphen), so the echo should work correctly.
19813 # The option is referenced via a variable to avoid confusing sed.
19814 lt_compile=`echo "$ac_compile" | $SED \
19815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19817 -e 's:$: $lt_compiler_flag:'`
19818 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19819 (eval "$lt_compile" 2>conftest.err)
19820 ac_status=$?
19821 cat conftest.err >&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 if (exit $ac_status) && test -s "$ac_outfile"; then
19824 # The compiler can only warn and ignore the option if not recognized
19825 # So say no if there are warnings other than the usual output.
19826 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19828 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19829 lt_cv_prog_compiler_pic_works_CXX=yes
19832 $RM conftest*
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19836 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19838 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19839 case $lt_prog_compiler_pic_CXX in
19840 "" | " "*) ;;
19841 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19842 esac
19843 else
19844 lt_prog_compiler_pic_CXX=
19845 lt_prog_compiler_can_build_shared_CXX=no
19853 # Check to make sure the static flag actually works.
19855 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19857 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19858 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19859 $as_echo_n "(cached) " >&6
19860 else
19861 lt_cv_prog_compiler_static_works_CXX=no
19862 save_LDFLAGS="$LDFLAGS"
19863 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19864 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19865 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19866 # The linker can only warn and ignore the option if not recognized
19867 # So say no if there are warnings
19868 if test -s conftest.err; then
19869 # Append any errors to the config.log.
19870 cat conftest.err 1>&5
19871 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19872 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19873 if diff conftest.exp conftest.er2 >/dev/null; then
19874 lt_cv_prog_compiler_static_works_CXX=yes
19876 else
19877 lt_cv_prog_compiler_static_works_CXX=yes
19880 $RM -r conftest*
19881 LDFLAGS="$save_LDFLAGS"
19884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19885 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19887 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19889 else
19890 lt_prog_compiler_static_CXX=
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19897 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19898 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19899 $as_echo_n "(cached) " >&6
19900 else
19901 lt_cv_prog_compiler_c_o_CXX=no
19902 $RM -r conftest 2>/dev/null
19903 mkdir conftest
19904 cd conftest
19905 mkdir out
19906 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19908 lt_compiler_flag="-o out/conftest2.$ac_objext"
19909 # Insert the option either (1) after the last *FLAGS variable, or
19910 # (2) before a word containing "conftest.", or (3) at the end.
19911 # Note that $ac_compile itself does not contain backslashes and begins
19912 # with a dollar sign (not a hyphen), so the echo should work correctly.
19913 lt_compile=`echo "$ac_compile" | $SED \
19914 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19916 -e 's:$: $lt_compiler_flag:'`
19917 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19918 (eval "$lt_compile" 2>out/conftest.err)
19919 ac_status=$?
19920 cat out/conftest.err >&5
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19923 then
19924 # The compiler can only warn and ignore the option if not recognized
19925 # So say no if there are warnings
19926 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19927 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19928 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19929 lt_cv_prog_compiler_c_o_CXX=yes
19932 chmod u+w . 2>&5
19933 $RM conftest*
19934 # SGI C++ compiler will create directory out/ii_files/ for
19935 # template instantiation
19936 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19937 $RM out/* && rmdir out
19938 cd ..
19939 $RM -r conftest
19940 $RM conftest*
19943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19944 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19949 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19950 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19951 $as_echo_n "(cached) " >&6
19952 else
19953 lt_cv_prog_compiler_c_o_CXX=no
19954 $RM -r conftest 2>/dev/null
19955 mkdir conftest
19956 cd conftest
19957 mkdir out
19958 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19960 lt_compiler_flag="-o out/conftest2.$ac_objext"
19961 # Insert the option either (1) after the last *FLAGS variable, or
19962 # (2) before a word containing "conftest.", or (3) at the end.
19963 # Note that $ac_compile itself does not contain backslashes and begins
19964 # with a dollar sign (not a hyphen), so the echo should work correctly.
19965 lt_compile=`echo "$ac_compile" | $SED \
19966 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19967 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19968 -e 's:$: $lt_compiler_flag:'`
19969 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19970 (eval "$lt_compile" 2>out/conftest.err)
19971 ac_status=$?
19972 cat out/conftest.err >&5
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19975 then
19976 # The compiler can only warn and ignore the option if not recognized
19977 # So say no if there are warnings
19978 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19979 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19980 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19981 lt_cv_prog_compiler_c_o_CXX=yes
19984 chmod u+w . 2>&5
19985 $RM conftest*
19986 # SGI C++ compiler will create directory out/ii_files/ for
19987 # template instantiation
19988 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19989 $RM out/* && rmdir out
19990 cd ..
19991 $RM -r conftest
19992 $RM conftest*
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19996 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20001 hard_links="nottested"
20002 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20003 # do not overwrite the value of need_locks provided by the user
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20005 $as_echo_n "checking if we can lock with hard links... " >&6; }
20006 hard_links=yes
20007 $RM conftest*
20008 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20009 touch conftest.a
20010 ln conftest.a conftest.b 2>&5 || hard_links=no
20011 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20013 $as_echo "$hard_links" >&6; }
20014 if test "$hard_links" = no; then
20015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20016 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20017 need_locks=warn
20019 else
20020 need_locks=no
20025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20026 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20028 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20029 case $host_os in
20030 aix[4-9]*)
20031 # If we're using GNU nm, then we don't want the "-C" option.
20032 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20033 # Also, AIX nm treats weak defined symbols like other global defined
20034 # symbols, whereas GNU nm marks them as "W".
20035 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20036 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'
20037 else
20038 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'
20041 pw32*)
20042 export_symbols_cmds_CXX="$ltdll_cmds"
20044 cygwin* | mingw* | cegcc*)
20045 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'
20048 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20050 esac
20051 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20054 $as_echo "$ld_shlibs_CXX" >&6; }
20055 test "$ld_shlibs_CXX" = no && can_build_shared=no
20057 with_gnu_ld_CXX=$with_gnu_ld
20065 # Do we need to explicitly link libc?
20067 case "x$archive_cmds_need_lc_CXX" in
20068 x|xyes)
20069 # Assume -lc should be added
20070 archive_cmds_need_lc_CXX=yes
20072 if test "$enable_shared" = yes && test "$GCC" = yes; then
20073 case $archive_cmds_CXX in
20074 *'~'*)
20075 # FIXME: we may have to deal with multi-command sequences.
20077 '$CC '*)
20078 # Test whether the compiler implicitly links with -lc since on some
20079 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20080 # to ld, don't add -lc before -lgcc.
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20082 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20083 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20084 $as_echo_n "(cached) " >&6
20085 else
20086 $RM conftest*
20087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20090 (eval $ac_compile) 2>&5
20091 ac_status=$?
20092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20093 test $ac_status = 0; } 2>conftest.err; then
20094 soname=conftest
20095 lib=conftest
20096 libobjs=conftest.$ac_objext
20097 deplibs=
20098 wl=$lt_prog_compiler_wl_CXX
20099 pic_flag=$lt_prog_compiler_pic_CXX
20100 compiler_flags=-v
20101 linker_flags=-v
20102 verstring=
20103 output_objdir=.
20104 libname=conftest
20105 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20106 allow_undefined_flag_CXX=
20107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20108 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20109 ac_status=$?
20110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20111 test $ac_status = 0; }
20112 then
20113 lt_cv_archive_cmds_need_lc_CXX=no
20114 else
20115 lt_cv_archive_cmds_need_lc_CXX=yes
20117 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20118 else
20119 cat conftest.err 1>&5
20121 $RM conftest*
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20125 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20126 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20128 esac
20131 esac
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20197 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20199 library_names_spec=
20200 libname_spec='lib$name'
20201 soname_spec=
20202 shrext_cmds=".so"
20203 postinstall_cmds=
20204 postuninstall_cmds=
20205 finish_cmds=
20206 finish_eval=
20207 shlibpath_var=
20208 shlibpath_overrides_runpath=unknown
20209 version_type=none
20210 dynamic_linker="$host_os ld.so"
20211 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20212 need_lib_prefix=unknown
20213 hardcode_into_libs=no
20215 # when you set need_version to no, make sure it does not cause -set_version
20216 # flags to be left without arguments
20217 need_version=unknown
20219 case $host_os in
20220 aix3*)
20221 version_type=linux
20222 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20223 shlibpath_var=LIBPATH
20225 # AIX 3 has no versioning support, so we append a major version to the name.
20226 soname_spec='${libname}${release}${shared_ext}$major'
20229 aix[4-9]*)
20230 version_type=linux
20231 need_lib_prefix=no
20232 need_version=no
20233 hardcode_into_libs=yes
20234 if test "$host_cpu" = ia64; then
20235 # AIX 5 supports IA64
20236 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20237 shlibpath_var=LD_LIBRARY_PATH
20238 else
20239 # With GCC up to 2.95.x, collect2 would create an import file
20240 # for dependence libraries. The import file would start with
20241 # the line `#! .'. This would cause the generated library to
20242 # depend on `.', always an invalid library. This was fixed in
20243 # development snapshots of GCC prior to 3.0.
20244 case $host_os in
20245 aix4 | aix4.[01] | aix4.[01].*)
20246 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20247 echo ' yes '
20248 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20250 else
20251 can_build_shared=no
20254 esac
20255 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20256 # soname into executable. Probably we can add versioning support to
20257 # collect2, so additional links can be useful in future.
20258 if test "$aix_use_runtimelinking" = yes; then
20259 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20260 # instead of lib<name>.a to let people know that these are not
20261 # typical AIX shared libraries.
20262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20263 else
20264 # We preserve .a as extension for shared libraries through AIX4.2
20265 # and later when we are not doing run time linking.
20266 library_names_spec='${libname}${release}.a $libname.a'
20267 soname_spec='${libname}${release}${shared_ext}$major'
20269 shlibpath_var=LIBPATH
20273 amigaos*)
20274 case $host_cpu in
20275 powerpc)
20276 # Since July 2007 AmigaOS4 officially supports .so libraries.
20277 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20280 m68k)
20281 library_names_spec='$libname.ixlibrary $libname.a'
20282 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20283 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'
20285 esac
20288 beos*)
20289 library_names_spec='${libname}${shared_ext}'
20290 dynamic_linker="$host_os ld.so"
20291 shlibpath_var=LIBRARY_PATH
20294 bsdi[45]*)
20295 version_type=linux
20296 need_version=no
20297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20298 soname_spec='${libname}${release}${shared_ext}$major'
20299 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20300 shlibpath_var=LD_LIBRARY_PATH
20301 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20302 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20303 # the default ld.so.conf also contains /usr/contrib/lib and
20304 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20305 # libtool to hard-code these into programs
20308 cygwin* | mingw* | pw32* | cegcc*)
20309 version_type=windows
20310 shrext_cmds=".dll"
20311 need_version=no
20312 need_lib_prefix=no
20314 case $GCC,$host_os in
20315 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20316 library_names_spec='$libname.dll.a'
20317 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20318 postinstall_cmds='base_file=`basename \${file}`~
20319 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20320 dldir=$destdir/`dirname \$dlpath`~
20321 test -d \$dldir || mkdir -p \$dldir~
20322 $install_prog $dir/$dlname \$dldir/$dlname~
20323 chmod a+x \$dldir/$dlname~
20324 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20325 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20327 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20328 dlpath=$dir/\$dldll~
20329 $RM \$dlpath'
20330 shlibpath_overrides_runpath=yes
20332 case $host_os in
20333 cygwin*)
20334 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20335 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20338 mingw* | cegcc*)
20339 # MinGW DLLs use traditional 'lib' prefix
20340 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20342 pw32*)
20343 # pw32 DLLs use 'pw' prefix rather than 'lib'
20344 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20346 esac
20350 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20352 esac
20353 dynamic_linker='Win32 ld.exe'
20354 # FIXME: first we should search . and the directory the executable is in
20355 shlibpath_var=PATH
20358 darwin* | rhapsody*)
20359 dynamic_linker="$host_os dyld"
20360 version_type=darwin
20361 need_lib_prefix=no
20362 need_version=no
20363 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20364 soname_spec='${libname}${release}${major}$shared_ext'
20365 shlibpath_overrides_runpath=yes
20366 shlibpath_var=DYLD_LIBRARY_PATH
20367 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20369 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20372 dgux*)
20373 version_type=linux
20374 need_lib_prefix=no
20375 need_version=no
20376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20377 soname_spec='${libname}${release}${shared_ext}$major'
20378 shlibpath_var=LD_LIBRARY_PATH
20381 freebsd* | dragonfly*)
20382 # DragonFly does not have aout. When/if they implement a new
20383 # versioning mechanism, adjust this.
20384 if test -x /usr/bin/objformat; then
20385 objformat=`/usr/bin/objformat`
20386 else
20387 case $host_os in
20388 freebsd[123]*) objformat=aout ;;
20389 *) objformat=elf ;;
20390 esac
20392 version_type=freebsd-$objformat
20393 case $version_type in
20394 freebsd-elf*)
20395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20396 need_version=no
20397 need_lib_prefix=no
20399 freebsd-*)
20400 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20401 need_version=yes
20403 esac
20404 shlibpath_var=LD_LIBRARY_PATH
20405 case $host_os in
20406 freebsd2*)
20407 shlibpath_overrides_runpath=yes
20409 freebsd3.[01]* | freebsdelf3.[01]*)
20410 shlibpath_overrides_runpath=yes
20411 hardcode_into_libs=yes
20413 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20414 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20415 shlibpath_overrides_runpath=no
20416 hardcode_into_libs=yes
20418 *) # from 4.6 on, and DragonFly
20419 shlibpath_overrides_runpath=yes
20420 hardcode_into_libs=yes
20422 esac
20425 gnu*)
20426 version_type=linux
20427 need_lib_prefix=no
20428 need_version=no
20429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20430 soname_spec='${libname}${release}${shared_ext}$major'
20431 shlibpath_var=LD_LIBRARY_PATH
20432 hardcode_into_libs=yes
20435 haiku*)
20436 version_type=linux
20437 need_lib_prefix=no
20438 need_version=no
20439 dynamic_linker="$host_os runtime_loader"
20440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20441 soname_spec='${libname}${release}${shared_ext}$major'
20442 shlibpath_var=LIBRARY_PATH
20443 shlibpath_overrides_runpath=yes
20444 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20445 hardcode_into_libs=yes
20448 hpux9* | hpux10* | hpux11*)
20449 # Give a soname corresponding to the major version so that dld.sl refuses to
20450 # link against other versions.
20451 version_type=sunos
20452 need_lib_prefix=no
20453 need_version=no
20454 case $host_cpu in
20455 ia64*)
20456 shrext_cmds='.so'
20457 hardcode_into_libs=yes
20458 dynamic_linker="$host_os dld.so"
20459 shlibpath_var=LD_LIBRARY_PATH
20460 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20462 soname_spec='${libname}${release}${shared_ext}$major'
20463 if test "X$HPUX_IA64_MODE" = X32; then
20464 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20465 else
20466 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20468 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20470 hppa*64*)
20471 shrext_cmds='.sl'
20472 hardcode_into_libs=yes
20473 dynamic_linker="$host_os dld.sl"
20474 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20475 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20477 soname_spec='${libname}${release}${shared_ext}$major'
20478 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20479 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20482 shrext_cmds='.sl'
20483 dynamic_linker="$host_os dld.sl"
20484 shlibpath_var=SHLIB_PATH
20485 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20487 soname_spec='${libname}${release}${shared_ext}$major'
20489 esac
20490 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20491 postinstall_cmds='chmod 555 $lib'
20492 # or fails outright, so override atomically:
20493 install_override_mode=555
20496 interix[3-9]*)
20497 version_type=linux
20498 need_lib_prefix=no
20499 need_version=no
20500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20501 soname_spec='${libname}${release}${shared_ext}$major'
20502 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20503 shlibpath_var=LD_LIBRARY_PATH
20504 shlibpath_overrides_runpath=no
20505 hardcode_into_libs=yes
20508 irix5* | irix6* | nonstopux*)
20509 case $host_os in
20510 nonstopux*) version_type=nonstopux ;;
20512 if test "$lt_cv_prog_gnu_ld" = yes; then
20513 version_type=linux
20514 else
20515 version_type=irix
20516 fi ;;
20517 esac
20518 need_lib_prefix=no
20519 need_version=no
20520 soname_spec='${libname}${release}${shared_ext}$major'
20521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20522 case $host_os in
20523 irix5* | nonstopux*)
20524 libsuff= shlibsuff=
20527 case $LD in # libtool.m4 will add one of these switches to LD
20528 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20529 libsuff= shlibsuff= libmagic=32-bit;;
20530 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20531 libsuff=32 shlibsuff=N32 libmagic=N32;;
20532 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20533 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20534 *) libsuff= shlibsuff= libmagic=never-match;;
20535 esac
20537 esac
20538 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20539 shlibpath_overrides_runpath=no
20540 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20541 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20542 hardcode_into_libs=yes
20545 # No shared lib support for Linux oldld, aout, or coff.
20546 linux*oldld* | linux*aout* | linux*coff*)
20547 dynamic_linker=no
20550 # This must be Linux ELF.
20551 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20552 version_type=linux
20553 need_lib_prefix=no
20554 need_version=no
20555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20556 soname_spec='${libname}${release}${shared_ext}$major'
20557 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20558 shlibpath_var=LD_LIBRARY_PATH
20559 shlibpath_overrides_runpath=no
20561 # Some binutils ld are patched to set DT_RUNPATH
20562 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20563 $as_echo_n "(cached) " >&6
20564 else
20565 lt_cv_shlibpath_overrides_runpath=no
20566 save_LDFLAGS=$LDFLAGS
20567 save_libdir=$libdir
20568 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20569 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20571 /* end confdefs.h. */
20574 main ()
20578 return 0;
20580 _ACEOF
20581 if ac_fn_cxx_try_link "$LINENO"; then :
20582 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20583 lt_cv_shlibpath_overrides_runpath=yes
20586 rm -f core conftest.err conftest.$ac_objext \
20587 conftest$ac_exeext conftest.$ac_ext
20588 LDFLAGS=$save_LDFLAGS
20589 libdir=$save_libdir
20593 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20595 # This implies no fast_install, which is unacceptable.
20596 # Some rework will be needed to allow for fast_install
20597 # before this can be enabled.
20598 hardcode_into_libs=yes
20600 # Append ld.so.conf contents to the search path
20601 if test -f /etc/ld.so.conf; then
20602 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' ' '`
20603 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20606 # We used to test for /lib/ld.so.1 and disable shared libraries on
20607 # powerpc, because MkLinux only supported shared libraries with the
20608 # GNU dynamic linker. Since this was broken with cross compilers,
20609 # most powerpc-linux boxes support dynamic linking these days and
20610 # people can always --disable-shared, the test was removed, and we
20611 # assume the GNU/Linux dynamic linker is in use.
20612 dynamic_linker='GNU/Linux ld.so'
20615 netbsd*)
20616 version_type=sunos
20617 need_lib_prefix=no
20618 need_version=no
20619 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20622 dynamic_linker='NetBSD (a.out) ld.so'
20623 else
20624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20625 soname_spec='${libname}${release}${shared_ext}$major'
20626 dynamic_linker='NetBSD ld.elf_so'
20628 shlibpath_var=LD_LIBRARY_PATH
20629 shlibpath_overrides_runpath=yes
20630 hardcode_into_libs=yes
20633 newsos6)
20634 version_type=linux
20635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20636 shlibpath_var=LD_LIBRARY_PATH
20637 shlibpath_overrides_runpath=yes
20640 *nto* | *qnx*)
20641 version_type=qnx
20642 need_lib_prefix=no
20643 need_version=no
20644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20645 soname_spec='${libname}${release}${shared_ext}$major'
20646 shlibpath_var=LD_LIBRARY_PATH
20647 shlibpath_overrides_runpath=no
20648 hardcode_into_libs=yes
20649 dynamic_linker='ldqnx.so'
20652 openbsd*)
20653 version_type=sunos
20654 sys_lib_dlsearch_path_spec="/usr/lib"
20655 need_lib_prefix=no
20656 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20657 case $host_os in
20658 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20659 *) need_version=no ;;
20660 esac
20661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20663 shlibpath_var=LD_LIBRARY_PATH
20664 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20665 case $host_os in
20666 openbsd2.[89] | openbsd2.[89].*)
20667 shlibpath_overrides_runpath=no
20670 shlibpath_overrides_runpath=yes
20672 esac
20673 else
20674 shlibpath_overrides_runpath=yes
20678 os2*)
20679 libname_spec='$name'
20680 shrext_cmds=".dll"
20681 need_lib_prefix=no
20682 library_names_spec='$libname${shared_ext} $libname.a'
20683 dynamic_linker='OS/2 ld.exe'
20684 shlibpath_var=LIBPATH
20687 osf3* | osf4* | osf5*)
20688 version_type=osf
20689 need_lib_prefix=no
20690 need_version=no
20691 soname_spec='${libname}${release}${shared_ext}$major'
20692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20693 shlibpath_var=LD_LIBRARY_PATH
20694 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20695 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20698 rdos*)
20699 dynamic_linker=no
20702 solaris*)
20703 version_type=linux
20704 need_lib_prefix=no
20705 need_version=no
20706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20707 soname_spec='${libname}${release}${shared_ext}$major'
20708 shlibpath_var=LD_LIBRARY_PATH
20709 shlibpath_overrides_runpath=yes
20710 hardcode_into_libs=yes
20711 # ldd complains unless libraries are executable
20712 postinstall_cmds='chmod +x $lib'
20715 sunos4*)
20716 version_type=sunos
20717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20718 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20719 shlibpath_var=LD_LIBRARY_PATH
20720 shlibpath_overrides_runpath=yes
20721 if test "$with_gnu_ld" = yes; then
20722 need_lib_prefix=no
20724 need_version=yes
20727 sysv4 | sysv4.3*)
20728 version_type=linux
20729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20730 soname_spec='${libname}${release}${shared_ext}$major'
20731 shlibpath_var=LD_LIBRARY_PATH
20732 case $host_vendor in
20733 sni)
20734 shlibpath_overrides_runpath=no
20735 need_lib_prefix=no
20736 runpath_var=LD_RUN_PATH
20738 siemens)
20739 need_lib_prefix=no
20741 motorola)
20742 need_lib_prefix=no
20743 need_version=no
20744 shlibpath_overrides_runpath=no
20745 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20747 esac
20750 sysv4*MP*)
20751 if test -d /usr/nec ;then
20752 version_type=linux
20753 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20754 soname_spec='$libname${shared_ext}.$major'
20755 shlibpath_var=LD_LIBRARY_PATH
20759 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20760 version_type=freebsd-elf
20761 need_lib_prefix=no
20762 need_version=no
20763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20764 soname_spec='${libname}${release}${shared_ext}$major'
20765 shlibpath_var=LD_LIBRARY_PATH
20766 shlibpath_overrides_runpath=yes
20767 hardcode_into_libs=yes
20768 if test "$with_gnu_ld" = yes; then
20769 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20770 else
20771 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20772 case $host_os in
20773 sco3.2v5*)
20774 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20776 esac
20778 sys_lib_dlsearch_path_spec='/usr/lib'
20781 tpf*)
20782 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20783 version_type=linux
20784 need_lib_prefix=no
20785 need_version=no
20786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20787 shlibpath_var=LD_LIBRARY_PATH
20788 shlibpath_overrides_runpath=no
20789 hardcode_into_libs=yes
20792 uts4*)
20793 version_type=linux
20794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20795 soname_spec='${libname}${release}${shared_ext}$major'
20796 shlibpath_var=LD_LIBRARY_PATH
20800 dynamic_linker=no
20802 esac
20803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20804 $as_echo "$dynamic_linker" >&6; }
20805 test "$dynamic_linker" = no && can_build_shared=no
20807 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20808 if test "$GCC" = yes; then
20809 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20812 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20813 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20815 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20816 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20857 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20858 hardcode_action_CXX=
20859 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20860 test -n "$runpath_var_CXX" ||
20861 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20863 # We can hardcode non-existent directories.
20864 if test "$hardcode_direct_CXX" != no &&
20865 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20866 # have to relink, otherwise we might link with an installed library
20867 # when we should be linking with a yet-to-be-installed one
20868 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20869 test "$hardcode_minus_L_CXX" != no; then
20870 # Linking always hardcodes the temporary library directory.
20871 hardcode_action_CXX=relink
20872 else
20873 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20874 hardcode_action_CXX=immediate
20876 else
20877 # We cannot hardcode anything, or else we can only hardcode existing
20878 # directories.
20879 hardcode_action_CXX=unsupported
20881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20882 $as_echo "$hardcode_action_CXX" >&6; }
20884 if test "$hardcode_action_CXX" = relink ||
20885 test "$inherit_rpath_CXX" = yes; then
20886 # Fast installation is not supported
20887 enable_fast_install=no
20888 elif test "$shlibpath_overrides_runpath" = yes ||
20889 test "$enable_shared" = no; then
20890 # Fast installation is not necessary
20891 enable_fast_install=needless
20900 fi # test -n "$compiler"
20902 CC=$lt_save_CC
20903 LDCXX=$LD
20904 LD=$lt_save_LD
20905 GCC=$lt_save_GCC
20906 with_gnu_ld=$lt_save_with_gnu_ld
20907 lt_cv_path_LDCXX=$lt_cv_path_LD
20908 lt_cv_path_LD=$lt_save_path_LD
20909 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20910 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20911 fi # test "$_lt_caught_CXX_error" != yes
20913 ac_ext=c
20914 ac_cpp='$CPP $CPPFLAGS'
20915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20934 # Only expand once:
20940 # Identify the assembler which will work hand-in-glove with the newly
20941 # built GCC, so that we can examine its features. This is the assembler
20942 # which will be driven by the driver program.
20944 # If build != host, and we aren't building gas in-tree, we identify a
20945 # build->target assembler and hope that it will have the same features
20946 # as the host->target assembler we'll be using.
20947 gcc_cv_gas_major_version=
20948 gcc_cv_gas_minor_version=
20949 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20951 if test "${gcc_cv_as+set}" = set; then :
20953 else
20955 if test -x "$DEFAULT_ASSEMBLER"; then
20956 gcc_cv_as="$DEFAULT_ASSEMBLER"
20957 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20958 && test -f ../gas/Makefile \
20959 && test x$build = x$host; then
20960 gcc_cv_as=../gas/as-new$build_exeext
20961 elif test -x as$build_exeext; then
20962 # Build using assembler in the current directory.
20963 gcc_cv_as=./as$build_exeext
20964 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
20965 gcc_cv_as="$AS_FOR_TARGET"
20966 else
20967 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20968 set dummy $AS_FOR_TARGET; ac_word=$2
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20970 $as_echo_n "checking for $ac_word... " >&6; }
20971 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20972 $as_echo_n "(cached) " >&6
20973 else
20974 case $gcc_cv_as in
20975 [\\/]* | ?:[\\/]*)
20976 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20980 for as_dir in $PATH
20982 IFS=$as_save_IFS
20983 test -z "$as_dir" && as_dir=.
20984 for ac_exec_ext in '' $ac_executable_extensions; do
20985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20986 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20988 break 2
20990 done
20991 done
20992 IFS=$as_save_IFS
20995 esac
20997 gcc_cv_as=$ac_cv_path_gcc_cv_as
20998 if test -n "$gcc_cv_as"; then
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21000 $as_echo "$gcc_cv_as" >&6; }
21001 else
21002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21003 $as_echo "no" >&6; }
21010 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21012 case "$ORIGINAL_AS_FOR_TARGET" in
21013 ./as | ./as$build_exeext) ;;
21014 *) ac_config_files="$ac_config_files as:exec-tool.in"
21016 esac
21018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21019 $as_echo_n "checking what assembler to use... " >&6; }
21020 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21021 # Single tree build which includes gas. We want to prefer it
21022 # over whatever linker top-level may have detected, since
21023 # we'll use what we're building after installation anyway.
21024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21025 $as_echo "newly built gas" >&6; }
21026 in_tree_gas=yes
21027 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21028 for f in $gcc_cv_as_bfd_srcdir/configure \
21029 $gcc_cv_as_gas_srcdir/configure \
21030 $gcc_cv_as_gas_srcdir/configure.in \
21031 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21032 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21033 if test x$gcc_cv_gas_version != x; then
21034 break
21036 done
21037 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21038 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21039 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21040 case $gcc_cv_gas_patch_version in
21041 "") gcc_cv_gas_patch_version="0" ;;
21042 esac
21043 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21044 + $gcc_cv_gas_minor_version \) \* 1000 \
21045 + $gcc_cv_gas_patch_version`
21047 in_tree_gas_is_elf=no
21048 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21049 || (grep 'obj_format = multi' ../gas/Makefile \
21050 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21051 then
21052 in_tree_gas_is_elf=yes
21054 else
21055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21056 $as_echo "$gcc_cv_as" >&6; }
21057 in_tree_gas=no
21060 # Identify the linker which will work hand-in-glove with the newly
21061 # built GCC, so that we can examine its features. This is the linker
21062 # which will be driven by the driver program.
21064 # If build != host, and we aren't building gas in-tree, we identify a
21065 # build->target linker and hope that it will have the same features
21066 # as the host->target linker we'll be using.
21067 gcc_cv_gld_major_version=
21068 gcc_cv_gld_minor_version=
21069 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21070 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21072 if test "${gcc_cv_ld+set}" = set; then :
21074 else
21076 if test -x "$DEFAULT_LINKER"; then
21077 gcc_cv_ld="$DEFAULT_LINKER"
21078 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21079 && test -f ../ld/Makefile \
21080 && test x$build = x$host; then
21081 gcc_cv_ld=../ld/ld-new$build_exeext
21082 elif test -x collect-ld$build_exeext; then
21083 # Build using linker in the current directory.
21084 gcc_cv_ld=./collect-ld$build_exeext
21085 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21086 gcc_cv_ld="$LD_FOR_TARGET"
21087 else
21088 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21089 set dummy $LD_FOR_TARGET; ac_word=$2
21090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21091 $as_echo_n "checking for $ac_word... " >&6; }
21092 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21093 $as_echo_n "(cached) " >&6
21094 else
21095 case $gcc_cv_ld in
21096 [\\/]* | ?:[\\/]*)
21097 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21101 for as_dir in $PATH
21103 IFS=$as_save_IFS
21104 test -z "$as_dir" && as_dir=.
21105 for ac_exec_ext in '' $ac_executable_extensions; do
21106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21107 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21109 break 2
21111 done
21112 done
21113 IFS=$as_save_IFS
21116 esac
21118 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21119 if test -n "$gcc_cv_ld"; then
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21121 $as_echo "$gcc_cv_ld" >&6; }
21122 else
21123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21124 $as_echo "no" >&6; }
21131 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21132 PLUGIN_LD=`basename $gcc_cv_ld`
21134 # Check whether --with-plugin-ld was given.
21135 if test "${with_plugin_ld+set}" = set; then :
21136 withval=$with_plugin_ld; if test x"$withval" != x; then
21137 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21138 PLUGIN_LD="$withval"
21144 cat >>confdefs.h <<_ACEOF
21145 #define PLUGIN_LD "$PLUGIN_LD"
21146 _ACEOF
21149 # Check to see if we are using gold instead of ld
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21151 $as_echo_n "checking whether we are using gold... " >&6; }
21152 ld_is_gold=no
21153 if test x$gcc_cv_ld != x; then
21154 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21155 | grep "GNU gold" > /dev/null; then
21156 ld_is_gold=yes
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21160 $as_echo "$ld_is_gold" >&6; }
21162 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21164 case "$ORIGINAL_LD_FOR_TARGET" in
21165 ./collect-ld | ./collect-ld$build_exeext) ;;
21166 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21168 esac
21170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21171 $as_echo_n "checking what linker to use... " >&6; }
21172 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21173 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21174 # Single tree build which includes ld. We want to prefer it
21175 # over whatever linker top-level may have detected, since
21176 # we'll use what we're building after installation anyway.
21177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21178 $as_echo "newly built ld" >&6; }
21179 in_tree_ld=yes
21180 in_tree_ld_is_elf=no
21181 if (grep 'EMUL = .*elf' ../ld/Makefile \
21182 || grep 'EMUL = .*linux' ../ld/Makefile \
21183 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21184 in_tree_ld_is_elf=yes
21185 elif test "$ld_is_gold" = yes; then
21186 in_tree_ld_is_elf=yes
21188 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
21190 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21191 if test x$gcc_cv_gld_version != x; then
21192 break
21194 done
21195 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21196 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21197 else
21198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21199 $as_echo "$gcc_cv_ld" >&6; }
21200 in_tree_ld=no
21203 # Figure out what nm we will be using.
21204 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21205 if test "${gcc_cv_nm+set}" = set; then :
21207 else
21209 if test -f $gcc_cv_binutils_srcdir/configure.in \
21210 && test -f ../binutils/Makefile \
21211 && test x$build = x$host; then
21212 gcc_cv_nm=../binutils/nm-new$build_exeext
21213 elif test -x nm$build_exeext; then
21214 gcc_cv_nm=./nm$build_exeext
21215 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21216 gcc_cv_nm="$NM_FOR_TARGET"
21217 else
21218 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21219 set dummy $NM_FOR_TARGET; ac_word=$2
21220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21221 $as_echo_n "checking for $ac_word... " >&6; }
21222 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21223 $as_echo_n "(cached) " >&6
21224 else
21225 case $gcc_cv_nm in
21226 [\\/]* | ?:[\\/]*)
21227 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21231 for as_dir in $PATH
21233 IFS=$as_save_IFS
21234 test -z "$as_dir" && as_dir=.
21235 for ac_exec_ext in '' $ac_executable_extensions; do
21236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21237 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21239 break 2
21241 done
21242 done
21243 IFS=$as_save_IFS
21246 esac
21248 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21249 if test -n "$gcc_cv_nm"; then
21250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21251 $as_echo "$gcc_cv_nm" >&6; }
21252 else
21253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21254 $as_echo "no" >&6; }
21261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21262 $as_echo_n "checking what nm to use... " >&6; }
21263 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21264 # Single tree build which includes binutils.
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21266 $as_echo "newly built nm" >&6; }
21267 in_tree_nm=yes
21268 else
21269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21270 $as_echo "$gcc_cv_nm" >&6; }
21271 in_tree_nm=no
21274 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21276 case "$ORIGINAL_NM_FOR_TARGET" in
21277 ./nm | ./nm$build_exeext) ;;
21278 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21280 esac
21283 # Figure out what objdump we will be using.
21284 if test "${gcc_cv_objdump+set}" = set; then :
21286 else
21288 if test -f $gcc_cv_binutils_srcdir/configure.in \
21289 && test -f ../binutils/Makefile \
21290 && test x$build = x$host; then
21291 # Single tree build which includes binutils.
21292 gcc_cv_objdump=../binutils/objdump$build_exeext
21293 elif test -x objdump$build_exeext; then
21294 gcc_cv_objdump=./objdump$build_exeext
21295 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21296 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21297 else
21298 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21299 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21301 $as_echo_n "checking for $ac_word... " >&6; }
21302 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21303 $as_echo_n "(cached) " >&6
21304 else
21305 case $gcc_cv_objdump in
21306 [\\/]* | ?:[\\/]*)
21307 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21311 for as_dir in $PATH
21313 IFS=$as_save_IFS
21314 test -z "$as_dir" && as_dir=.
21315 for ac_exec_ext in '' $ac_executable_extensions; do
21316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21317 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21319 break 2
21321 done
21322 done
21323 IFS=$as_save_IFS
21326 esac
21328 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21329 if test -n "$gcc_cv_objdump"; then
21330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21331 $as_echo "$gcc_cv_objdump" >&6; }
21332 else
21333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21334 $as_echo "no" >&6; }
21341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21342 $as_echo_n "checking what objdump to use... " >&6; }
21343 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21344 # Single tree build which includes binutils.
21345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21346 $as_echo "newly built objdump" >&6; }
21347 elif test x$gcc_cv_objdump = x; then
21348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21349 $as_echo "not found" >&6; }
21350 else
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21352 $as_echo "$gcc_cv_objdump" >&6; }
21355 # Figure out what readelf we will be using.
21356 if test "${gcc_cv_readelf+set}" = set; then :
21358 else
21360 if test -f $gcc_cv_binutils_srcdir/configure.in \
21361 && test -f ../binutils/Makefile \
21362 && test x$build = x$host; then
21363 # Single tree build which includes binutils.
21364 gcc_cv_readelf=../binutils/readelf$build_exeext
21365 elif test -x readelf$build_exeext; then
21366 gcc_cv_readelf=./readelf$build_exeext
21367 else
21368 # Extract the first word of "readelf", so it can be a program name with args.
21369 set dummy readelf; ac_word=$2
21370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21371 $as_echo_n "checking for $ac_word... " >&6; }
21372 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21373 $as_echo_n "(cached) " >&6
21374 else
21375 case $gcc_cv_readelf in
21376 [\\/]* | ?:[\\/]*)
21377 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21381 for as_dir in $PATH
21383 IFS=$as_save_IFS
21384 test -z "$as_dir" && as_dir=.
21385 for ac_exec_ext in '' $ac_executable_extensions; do
21386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21387 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21389 break 2
21391 done
21392 done
21393 IFS=$as_save_IFS
21396 esac
21398 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21399 if test -n "$gcc_cv_readelf"; then
21400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21401 $as_echo "$gcc_cv_readelf" >&6; }
21402 else
21403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21404 $as_echo "no" >&6; }
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21412 $as_echo_n "checking what readelf to use... " >&6; }
21413 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21414 # Single tree build which includes binutils.
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21416 $as_echo "newly built readelf" >&6; }
21417 elif test x$gcc_cv_readelf = x; then
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21419 $as_echo "not found" >&6; }
21420 else
21421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21422 $as_echo "$gcc_cv_readelf" >&6; }
21425 # Figure out what assembler alignment features are present.
21426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21427 $as_echo_n "checking assembler flags... " >&6; }
21428 if test "${gcc_cv_as_flags+set}" = set; then :
21429 $as_echo_n "(cached) " >&6
21430 else
21431 case "$target" in
21432 i[34567]86-*-linux*)
21433 gcc_cv_as_flags="--32"
21435 powerpc*-*-darwin*)
21436 gcc_cv_as_flags="-arch ppc"
21439 gcc_cv_as_flags=" "
21441 esac
21443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21444 $as_echo "$gcc_cv_as_flags" >&6; }
21446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21447 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21448 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21449 $as_echo_n "(cached) " >&6
21450 else
21451 gcc_cv_as_balign_and_p2align=no
21452 if test $in_tree_gas = yes; then
21453 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21454 then gcc_cv_as_balign_and_p2align=yes
21456 elif test x$gcc_cv_as != x; then
21457 echo '.balign 4
21458 .p2align 2' > conftest.s
21459 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21461 (eval $ac_try) 2>&5
21462 ac_status=$?
21463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21464 test $ac_status = 0; }; }
21465 then
21466 gcc_cv_as_balign_and_p2align=yes
21467 else
21468 echo "configure: failed program was" >&5
21469 cat conftest.s >&5
21471 rm -f conftest.o conftest.s
21474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21475 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21476 if test $gcc_cv_as_balign_and_p2align = yes; then
21478 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21483 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21484 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21485 $as_echo_n "(cached) " >&6
21486 else
21487 gcc_cv_as_max_skip_p2align=no
21488 if test $in_tree_gas = yes; then
21489 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21490 then gcc_cv_as_max_skip_p2align=yes
21492 elif test x$gcc_cv_as != x; then
21493 echo '.p2align 4,,7' > conftest.s
21494 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21496 (eval $ac_try) 2>&5
21497 ac_status=$?
21498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21499 test $ac_status = 0; }; }
21500 then
21501 gcc_cv_as_max_skip_p2align=yes
21502 else
21503 echo "configure: failed program was" >&5
21504 cat conftest.s >&5
21506 rm -f conftest.o conftest.s
21509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21510 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21511 if test $gcc_cv_as_max_skip_p2align = yes; then
21513 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21518 $as_echo_n "checking assembler for .literal16... " >&6; }
21519 if test "${gcc_cv_as_literal16+set}" = set; then :
21520 $as_echo_n "(cached) " >&6
21521 else
21522 gcc_cv_as_literal16=no
21523 if test $in_tree_gas = yes; then
21524 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21525 then gcc_cv_as_literal16=yes
21527 elif test x$gcc_cv_as != x; then
21528 echo '.literal16' > conftest.s
21529 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21531 (eval $ac_try) 2>&5
21532 ac_status=$?
21533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21534 test $ac_status = 0; }; }
21535 then
21536 gcc_cv_as_literal16=yes
21537 else
21538 echo "configure: failed program was" >&5
21539 cat conftest.s >&5
21541 rm -f conftest.o conftest.s
21544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21545 $as_echo "$gcc_cv_as_literal16" >&6; }
21546 if test $gcc_cv_as_literal16 = yes; then
21548 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21553 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21554 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21555 $as_echo_n "(cached) " >&6
21556 else
21557 gcc_cv_as_subsection_m1=no
21558 if test $in_tree_gas = yes; then
21559 if test $in_tree_gas_is_elf = yes \
21560 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21561 then gcc_cv_as_subsection_m1=yes
21563 elif test x$gcc_cv_as != x; then
21564 echo 'conftest_label1: .word 0
21565 .subsection -1
21566 conftest_label2: .word 0
21567 .previous' > conftest.s
21568 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21570 (eval $ac_try) 2>&5
21571 ac_status=$?
21572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21573 test $ac_status = 0; }; }
21574 then
21575 if test x$gcc_cv_nm != x; then
21576 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21577 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21578 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21579 then :
21580 else gcc_cv_as_subsection_m1=yes
21582 rm -f conftest.nm1 conftest.nm2
21584 else
21585 echo "configure: failed program was" >&5
21586 cat conftest.s >&5
21588 rm -f conftest.o conftest.s
21591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21592 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21593 if test $gcc_cv_as_subsection_m1 = yes; then
21595 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21600 $as_echo_n "checking assembler for .weak... " >&6; }
21601 if test "${gcc_cv_as_weak+set}" = set; then :
21602 $as_echo_n "(cached) " >&6
21603 else
21604 gcc_cv_as_weak=no
21605 if test $in_tree_gas = yes; then
21606 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21607 then gcc_cv_as_weak=yes
21609 elif test x$gcc_cv_as != x; then
21610 echo ' .weak foobar' > conftest.s
21611 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21613 (eval $ac_try) 2>&5
21614 ac_status=$?
21615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21616 test $ac_status = 0; }; }
21617 then
21618 gcc_cv_as_weak=yes
21619 else
21620 echo "configure: failed program was" >&5
21621 cat conftest.s >&5
21623 rm -f conftest.o conftest.s
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21627 $as_echo "$gcc_cv_as_weak" >&6; }
21628 if test $gcc_cv_as_weak = yes; then
21630 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21635 $as_echo_n "checking assembler for .weakref... " >&6; }
21636 if test "${gcc_cv_as_weakref+set}" = set; then :
21637 $as_echo_n "(cached) " >&6
21638 else
21639 gcc_cv_as_weakref=no
21640 if test $in_tree_gas = yes; then
21641 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21642 then gcc_cv_as_weakref=yes
21644 elif test x$gcc_cv_as != x; then
21645 echo ' .weakref foobar, barfnot' > conftest.s
21646 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21648 (eval $ac_try) 2>&5
21649 ac_status=$?
21650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21651 test $ac_status = 0; }; }
21652 then
21653 gcc_cv_as_weakref=yes
21654 else
21655 echo "configure: failed program was" >&5
21656 cat conftest.s >&5
21658 rm -f conftest.o conftest.s
21661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21662 $as_echo "$gcc_cv_as_weakref" >&6; }
21663 if test $gcc_cv_as_weakref = yes; then
21665 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21670 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21671 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21672 $as_echo_n "(cached) " >&6
21673 else
21674 gcc_cv_as_nsubspa_comdat=no
21675 if test $in_tree_gas = yes; then
21676 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21677 then gcc_cv_as_nsubspa_comdat=yes
21679 elif test x$gcc_cv_as != x; then
21680 echo ' .SPACE $TEXT$
21681 .NSUBSPA $CODE$,COMDAT' > conftest.s
21682 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21684 (eval $ac_try) 2>&5
21685 ac_status=$?
21686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21687 test $ac_status = 0; }; }
21688 then
21689 gcc_cv_as_nsubspa_comdat=yes
21690 else
21691 echo "configure: failed program was" >&5
21692 cat conftest.s >&5
21694 rm -f conftest.o conftest.s
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21698 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21699 if test $gcc_cv_as_nsubspa_comdat = yes; then
21701 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21705 # .hidden needs to be supported in both the assembler and the linker,
21706 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21707 # This is irritatingly difficult to feature test for; we have to check the
21708 # date string after the version number. If we've got an in-tree
21709 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21710 # to be safe.
21711 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21713 $as_echo_n "checking assembler for .hidden... " >&6; }
21714 if test "${gcc_cv_as_hidden+set}" = set; then :
21715 $as_echo_n "(cached) " >&6
21716 else
21717 gcc_cv_as_hidden=no
21718 if test $in_tree_gas = yes; then
21719 if test $in_tree_gas_is_elf = yes \
21720 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21721 then gcc_cv_as_hidden=yes
21723 elif test x$gcc_cv_as != x; then
21724 echo ' .hidden foobar
21725 foobar:' > conftest.s
21726 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21728 (eval $ac_try) 2>&5
21729 ac_status=$?
21730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21731 test $ac_status = 0; }; }
21732 then
21734 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21735 # STV_HIDDEN, so disable .hidden support if so.
21736 case "${target}" in
21737 i?86-*-solaris2*)
21738 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21739 cat > conftest.s <<EOF
21740 .globl hidden
21741 .hidden hidden
21742 hidden:
21743 .globl default
21744 .set default,hidden
21746 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21747 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21748 grep '\.hidden default' > /dev/null; then
21749 gcc_cv_as_hidden=no
21750 else
21751 gcc_cv_as_hidden=yes
21753 else
21754 # Assume bug is present if objdump is missing.
21755 gcc_cv_as_hidden=no
21759 gcc_cv_as_hidden=yes
21761 esac
21762 else
21763 echo "configure: failed program was" >&5
21764 cat conftest.s >&5
21766 rm -f conftest.o conftest.s
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21770 $as_echo "$gcc_cv_as_hidden" >&6; }
21773 # gnu_indirect_function type is an extension proposed at
21774 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21775 # selection of function implementation
21776 # Check whether --enable-gnu-indirect-function was given.
21777 if test "${enable_gnu_indirect_function+set}" = set; then :
21778 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
21779 yes | no) ;;
21780 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
21781 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
21782 esac
21783 else
21784 enable_gnu_indirect_function="$default_gnu_indirect_function"
21787 if test x$enable_gnu_indirect_function = xyes; then
21789 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
21793 if test $in_tree_ld != yes ; then
21794 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21795 if echo "$ld_ver" | grep GNU > /dev/null; then
21796 if test x"$ld_is_gold" = xyes; then
21797 # GNU gold --version looks like this:
21799 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
21801 # We extract the binutils version which is more familiar and specific
21802 # than the gold version.
21803 ld_vers=`echo $ld_ver | sed -n \
21804 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
21805 else
21806 # GNU ld --version looks like this:
21808 # GNU ld (GNU Binutils) 2.21.51.20110225
21809 ld_vers=`echo $ld_ver | sed -n \
21810 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21812 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'`
21813 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21814 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21815 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21816 else
21817 case "${target}" in
21818 *-*-solaris2*)
21820 # Solaris 2 ld -V output looks like this for a regular version:
21822 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21824 # but test versions add stuff at the end:
21826 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21828 ld_ver=`$gcc_cv_ld -V 2>&1`
21829 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21830 ld_vers=`echo $ld_ver | sed -n \
21831 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21832 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21833 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21836 esac
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21841 $as_echo_n "checking linker for .hidden support... " >&6; }
21842 if test "${gcc_cv_ld_hidden+set}" = set; then :
21843 $as_echo_n "(cached) " >&6
21844 else
21845 if test $in_tree_ld = yes ; then
21846 gcc_cv_ld_hidden=no
21847 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 \
21848 && test $in_tree_ld_is_elf = yes; then
21849 gcc_cv_ld_hidden=yes
21851 else
21852 gcc_cv_ld_hidden=yes
21853 if test x"$ld_is_gold" = xyes; then
21855 elif echo "$ld_ver" | grep GNU > /dev/null; then
21856 if test 0"$ld_date" -lt 20020404; then
21857 if test -n "$ld_date"; then
21858 # If there was date string, but was earlier than 2002-04-04, fail
21859 gcc_cv_ld_hidden=no
21860 elif test -z "$ld_vers"; then
21861 # If there was no date string nor ld version number, something is wrong
21862 gcc_cv_ld_hidden=no
21863 else
21864 test -z "$ld_vers_patch" && ld_vers_patch=0
21865 if test "$ld_vers_major" -lt 2; then
21866 gcc_cv_ld_hidden=no
21867 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21868 gcc_cv_ld_hidden="no"
21869 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21870 gcc_cv_ld_hidden=no
21874 else
21875 case "${target}" in
21876 hppa64*-*-hpux* | ia64*-*-hpux*)
21877 gcc_cv_ld_hidden=yes
21879 *-*-solaris2.8*)
21880 # .hidden support was backported to Solaris 8, starting with ld
21881 # version 1.276.
21882 if test "$ld_vers_minor" -ge 276; then
21883 gcc_cv_ld_hidden=yes
21884 else
21885 gcc_cv_ld_hidden=no
21888 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21889 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21890 # .symbolic was only added in Solaris 9 12/02.
21891 gcc_cv_ld_hidden=yes
21894 gcc_cv_ld_hidden=no
21896 esac
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21901 $as_echo "$gcc_cv_ld_hidden" >&6; }
21902 libgcc_visibility=no
21905 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21906 libgcc_visibility=yes
21908 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21913 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21914 gcc_cv_ld_ro_rw_mix=unknown
21915 if test $in_tree_ld = yes ; then
21916 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 \
21917 && test $in_tree_ld_is_elf = yes; then
21918 gcc_cv_ld_ro_rw_mix=read-write
21920 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21921 echo '.section myfoosect, "a"' > conftest1.s
21922 echo '.section myfoosect, "aw"' > conftest2.s
21923 echo '.byte 1' >> conftest2.s
21924 echo '.section myfoosect, "a"' > conftest3.s
21925 echo '.byte 0' >> conftest3.s
21926 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21927 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21928 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21929 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21930 conftest2.o conftest3.o > /dev/null 2>&1; then
21931 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21932 | sed -e '/myfoosect/!d' -e N`
21933 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21934 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21935 gcc_cv_ld_ro_rw_mix=read-only
21936 else
21937 gcc_cv_ld_ro_rw_mix=read-write
21941 rm -f conftest.* conftest[123].*
21943 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21945 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21949 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21951 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21953 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21954 if test "${gcc_cv_as_leb128+set}" = set; then :
21955 $as_echo_n "(cached) " >&6
21956 else
21957 gcc_cv_as_leb128=no
21958 if test $in_tree_gas = yes; then
21959 if test $in_tree_gas_is_elf = yes \
21960 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21961 then gcc_cv_as_leb128=yes
21963 elif test x$gcc_cv_as != x; then
21964 echo ' .data
21965 .uleb128 L2 - L1
21967 .uleb128 1280
21968 .sleb128 -1010
21969 L2:' > conftest.s
21970 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21972 (eval $ac_try) 2>&5
21973 ac_status=$?
21974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21975 test $ac_status = 0; }; }
21976 then
21977 # GAS versions before 2.11 do not support uleb128,
21978 # despite appearing to.
21979 # ??? There exists an elf-specific test that will crash
21980 # the assembler. Perhaps it's better to figure out whether
21981 # arbitrary sections are supported and try the test.
21982 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21983 if echo "$as_ver" | grep GNU > /dev/null; then
21984 as_vers=`echo $as_ver | sed -n \
21985 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21986 as_major=`expr "$as_vers" : '\([0-9]*\)'`
21987 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21988 if test $as_major -eq 2 && test $as_minor -lt 11
21989 then :
21990 else gcc_cv_as_leb128=yes
21993 else
21994 echo "configure: failed program was" >&5
21995 cat conftest.s >&5
21997 rm -f conftest.o conftest.s
22000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22001 $as_echo "$gcc_cv_as_leb128" >&6; }
22002 if test $gcc_cv_as_leb128 = yes; then
22004 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22008 # Check if we have assembler support for unwind directives.
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22010 $as_echo_n "checking assembler for cfi directives... " >&6; }
22011 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22012 $as_echo_n "(cached) " >&6
22013 else
22014 gcc_cv_as_cfi_directive=no
22015 if test x$gcc_cv_as != x; then
22016 echo ' .text
22017 .cfi_startproc
22018 .cfi_offset 0, 0
22019 .cfi_same_value 1
22020 .cfi_def_cfa 1, 2
22021 .cfi_escape 1, 2, 3, 4, 5
22022 .cfi_endproc' > conftest.s
22023 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22025 (eval $ac_try) 2>&5
22026 ac_status=$?
22027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22028 test $ac_status = 0; }; }
22029 then
22030 case "$target" in
22031 *-*-solaris*)
22032 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22033 # read-only and read-write sections, we need to make sure that the
22034 # assembler used emits read-write .eh_frame sections.
22035 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22036 if test "x$gcc_cv_objdump" != x; then
22037 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22038 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22039 gcc_cv_as_cfi_directive=no
22040 else
22041 case "$target" in
22042 i?86-*-solaris2.1[0-9]*)
22043 # On Solaris/x86, make sure that GCC and gas agree on using
22044 # read-only .eh_frame sections for 64-bit.
22045 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22046 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22047 sed -e /.eh_frame/!d -e N | \
22048 grep READONLY > /dev/null; then
22049 gcc_cv_as_cfi_directive=yes
22050 else
22051 gcc_cv_as_cfi_directive=no
22055 gcc_cv_as_cfi_directive=yes
22057 esac
22059 else
22060 # no objdump, err on the side of caution
22061 gcc_cv_as_cfi_directive=no
22063 else
22064 gcc_cv_as_cfi_directive=yes
22067 *-*-*)
22068 gcc_cv_as_cfi_directive=yes
22070 esac
22071 else
22072 echo "configure: failed program was" >&5
22073 cat conftest.s >&5
22075 rm -f conftest.o conftest.s
22078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22079 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22081 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22083 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22084 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22085 $as_echo_n "(cached) " >&6
22086 else
22087 gcc_cv_as_cfi_advance_working=no
22088 if test x$gcc_cv_as != x; then
22089 echo ' .text
22090 .cfi_startproc
22091 .cfi_adjust_cfa_offset 64
22092 .skip 75040, 0
22093 .cfi_adjust_cfa_offset 128
22094 .cfi_endproc' > conftest.s
22095 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22097 (eval $ac_try) 2>&5
22098 ac_status=$?
22099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22100 test $ac_status = 0; }; }
22101 then
22103 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22104 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22105 gcc_cv_as_cfi_advance_working=yes
22108 else
22109 echo "configure: failed program was" >&5
22110 cat conftest.s >&5
22112 rm -f conftest.o conftest.s
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22116 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22118 else
22119 # no objdump, err on the side of caution
22120 gcc_cv_as_cfi_advance_working=no
22124 cat >>confdefs.h <<_ACEOF
22125 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22126 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22127 _ACEOF
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22132 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22133 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22134 $as_echo_n "(cached) " >&6
22135 else
22136 gcc_cv_as_cfi_personality_directive=no
22137 if test x$gcc_cv_as != x; then
22138 echo ' .text
22139 .cfi_startproc
22140 .cfi_personality 0, symbol
22141 .cfi_endproc' > conftest.s
22142 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22144 (eval $ac_try) 2>&5
22145 ac_status=$?
22146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22147 test $ac_status = 0; }; }
22148 then
22149 gcc_cv_as_cfi_personality_directive=yes
22150 else
22151 echo "configure: failed program was" >&5
22152 cat conftest.s >&5
22154 rm -f conftest.o conftest.s
22157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22158 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22161 cat >>confdefs.h <<_ACEOF
22162 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22163 then echo 1; else echo 0; fi`
22164 _ACEOF
22167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22168 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22169 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22170 $as_echo_n "(cached) " >&6
22171 else
22172 gcc_cv_as_cfi_sections_directive=no
22173 if test x$gcc_cv_as != x; then
22174 echo ' .text
22175 .cfi_sections .debug_frame, .eh_frame
22176 .cfi_startproc
22177 .cfi_endproc' > conftest.s
22178 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22180 (eval $ac_try) 2>&5
22181 ac_status=$?
22182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22183 test $ac_status = 0; }; }
22184 then
22185 case $target_os in
22186 win32 | pe | cygwin* | mingw32* | uwin*)
22187 # Need to check that we generated the correct relocation for the
22188 # .debug_frame section. This was fixed for binutils 2.21.
22189 gcc_cv_as_cfi_sections_directive=no
22190 if test "x$gcc_cv_objdump" != x; then
22191 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22192 grep secrel > /dev/null; then
22193 gcc_cv_as_cfi_sections_directive=yes
22198 gcc_cv_as_cfi_sections_directive=yes
22200 esac
22201 else
22202 echo "configure: failed program was" >&5
22203 cat conftest.s >&5
22205 rm -f conftest.o conftest.s
22208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22209 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22213 cat >>confdefs.h <<_ACEOF
22214 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22215 then echo 1; else echo 0; fi`
22216 _ACEOF
22219 # GAS versions up to and including 2.11.0 may mis-optimize
22220 # .eh_frame data.
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22222 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22223 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22224 $as_echo_n "(cached) " >&6
22225 else
22226 gcc_cv_as_eh_frame=no
22227 if test $in_tree_gas = yes; then
22228 if test $in_tree_gas_is_elf = yes \
22229 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22230 then gcc_cv_as_eh_frame=yes
22232 elif test x$gcc_cv_as != x; then
22233 echo ' .text
22234 .LFB1:
22235 .4byte 0
22236 .L1:
22237 .4byte 0
22238 .LFE1:
22239 .section .eh_frame,"aw",@progbits
22240 __FRAME_BEGIN__:
22241 .4byte .LECIE1-.LSCIE1
22242 .LSCIE1:
22243 .4byte 0x0
22244 .byte 0x1
22245 .ascii "z\0"
22246 .byte 0x1
22247 .byte 0x78
22248 .byte 0x1a
22249 .byte 0x0
22250 .byte 0x4
22251 .4byte 1
22252 .p2align 1
22253 .LECIE1:
22254 .LSFDE1:
22255 .4byte .LEFDE1-.LASFDE1
22256 .LASFDE1:
22257 .4byte .LASFDE1-__FRAME_BEGIN__
22258 .4byte .LFB1
22259 .4byte .LFE1-.LFB1
22260 .byte 0x4
22261 .4byte .LFE1-.LFB1
22262 .byte 0x4
22263 .4byte .L1-.LFB1
22264 .LEFDE1:' > conftest.s
22265 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22267 (eval $ac_try) 2>&5
22268 ac_status=$?
22269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22270 test $ac_status = 0; }; }
22271 then
22272 cat > conftest.lit <<EOF
22273 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22274 0010 01000000 12000000 18000000 00000000 ................
22275 0020 08000000 04080000 0044 .........D
22277 cat > conftest.big <<EOF
22278 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22279 0010 00000001 00000012 00000018 00000000 ................
22280 0020 00000008 04000000 0844 .........D
22282 # If the assembler didn't choke, and we can objdump,
22283 # and we got the correct data, then succeed.
22284 # The text in the here-document typically retains its unix-style line
22285 # endings, while the output of objdump will use host line endings.
22286 # Therefore, use diff -b for the comparisons.
22287 if test x$gcc_cv_objdump != x \
22288 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22289 | tail -3 > conftest.got \
22290 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22291 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22292 then
22293 gcc_cv_as_eh_frame=yes
22294 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22296 (eval $ac_try) 2>&5
22297 ac_status=$?
22298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22299 test $ac_status = 0; }; }; then
22300 gcc_cv_as_eh_frame=buggy
22301 else
22302 # Uh oh, what do we do now?
22303 gcc_cv_as_eh_frame=no
22305 else
22306 echo "configure: failed program was" >&5
22307 cat conftest.s >&5
22309 rm -f conftest.o conftest.s
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22313 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22316 if test $gcc_cv_as_eh_frame = buggy; then
22318 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22323 $as_echo_n "checking assembler for section merging support... " >&6; }
22324 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22325 $as_echo_n "(cached) " >&6
22326 else
22327 gcc_cv_as_shf_merge=no
22328 if test $in_tree_gas = yes; then
22329 if test $in_tree_gas_is_elf = yes \
22330 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22331 then gcc_cv_as_shf_merge=yes
22333 elif test x$gcc_cv_as != x; then
22334 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22335 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22337 (eval $ac_try) 2>&5
22338 ac_status=$?
22339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22340 test $ac_status = 0; }; }
22341 then
22342 gcc_cv_as_shf_merge=yes
22343 else
22344 echo "configure: failed program was" >&5
22345 cat conftest.s >&5
22347 rm -f conftest.o conftest.s
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22351 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22353 if test $gcc_cv_as_shf_merge = no; then
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22355 $as_echo_n "checking assembler for section merging support... " >&6; }
22356 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22357 $as_echo_n "(cached) " >&6
22358 else
22359 gcc_cv_as_shf_merge=no
22360 if test $in_tree_gas = yes; then
22361 if test $in_tree_gas_is_elf = yes \
22362 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22363 then gcc_cv_as_shf_merge=yes
22365 elif test x$gcc_cv_as != x; then
22366 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22367 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22369 (eval $ac_try) 2>&5
22370 ac_status=$?
22371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22372 test $ac_status = 0; }; }
22373 then
22374 gcc_cv_as_shf_merge=yes
22375 else
22376 echo "configure: failed program was" >&5
22377 cat conftest.s >&5
22379 rm -f conftest.o conftest.s
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22383 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22387 cat >>confdefs.h <<_ACEOF
22388 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22389 _ACEOF
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22393 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22394 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22395 $as_echo_n "(cached) " >&6
22396 else
22397 gcc_cv_as_comdat_group=no
22398 if test $in_tree_gas = yes; then
22399 if test $in_tree_gas_is_elf = yes \
22400 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22401 then gcc_cv_as_comdat_group=yes
22403 elif test x$gcc_cv_as != x; then
22404 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22405 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22407 (eval $ac_try) 2>&5
22408 ac_status=$?
22409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22410 test $ac_status = 0; }; }
22411 then
22412 gcc_cv_as_comdat_group=yes
22413 else
22414 echo "configure: failed program was" >&5
22415 cat conftest.s >&5
22417 rm -f conftest.o conftest.s
22420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22421 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22423 if test $gcc_cv_as_comdat_group = yes; then
22424 gcc_cv_as_comdat_group_percent=no
22425 else
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22427 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22428 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22429 $as_echo_n "(cached) " >&6
22430 else
22431 gcc_cv_as_comdat_group_percent=no
22432 if test $in_tree_gas = yes; then
22433 if test $in_tree_gas_is_elf = yes \
22434 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22435 then gcc_cv_as_comdat_group_percent=yes
22437 elif test x$gcc_cv_as != x; then
22438 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22439 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22441 (eval $ac_try) 2>&5
22442 ac_status=$?
22443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22444 test $ac_status = 0; }; }
22445 then
22446 gcc_cv_as_comdat_group_percent=yes
22447 else
22448 echo "configure: failed program was" >&5
22449 cat conftest.s >&5
22451 rm -f conftest.o conftest.s
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22455 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22458 if test x"$ld_is_gold" = xyes; then
22459 comdat_group=yes
22460 elif test $in_tree_ld = yes ; then
22461 comdat_group=no
22462 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 \
22463 && test $in_tree_ld_is_elf = yes; then
22464 comdat_group=yes
22466 elif echo "$ld_ver" | grep GNU > /dev/null; then
22467 comdat_group=yes
22468 if test 0"$ld_date" -lt 20050308; then
22469 if test -n "$ld_date"; then
22470 # If there was date string, but was earlier than 2005-03-08, fail
22471 comdat_group=no
22472 elif test "$ld_vers_major" -lt 2; then
22473 comdat_group=no
22474 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22475 comdat_group=no
22478 else
22479 case "${target}" in
22480 *-*-solaris2.1[1-9]*)
22481 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22482 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22483 # version 1.688.
22485 # FIXME: Maybe need to refine later when COMDAT group support with
22486 # Sun as is implemented.
22487 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 1688; then
22488 comdat_group=yes
22489 else
22490 comdat_group=no
22494 # Assume linkers other than GNU ld don't support COMDAT group.
22495 comdat_group=no
22497 esac
22499 # Allow overriding the automatic COMDAT group tests above.
22500 # Check whether --enable-comdat was given.
22501 if test "${enable_comdat+set}" = set; then :
22502 enableval=$enable_comdat; comdat_group="$enable_comdat"
22505 if test $comdat_group = no; then
22506 gcc_cv_as_comdat_group=no
22507 gcc_cv_as_comdat_group_percent=no
22510 cat >>confdefs.h <<_ACEOF
22511 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
22512 _ACEOF
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22516 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22517 if test "${gcc_cv_as_discriminator+set}" = set; then :
22518 $as_echo_n "(cached) " >&6
22519 else
22520 gcc_cv_as_discriminator=no
22521 if test $in_tree_gas = yes; then
22522 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22523 then gcc_cv_as_discriminator=yes
22525 elif test x$gcc_cv_as != x; then
22526 echo ' .text
22527 .file 1 "conf.c"
22528 .loc 1 1 0 discriminator 1' > conftest.s
22529 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22531 (eval $ac_try) 2>&5
22532 ac_status=$?
22533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22534 test $ac_status = 0; }; }
22535 then
22536 gcc_cv_as_discriminator=yes
22537 else
22538 echo "configure: failed program was" >&5
22539 cat conftest.s >&5
22541 rm -f conftest.o conftest.s
22544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22545 $as_echo "$gcc_cv_as_discriminator" >&6; }
22546 if test $gcc_cv_as_discriminator = yes; then
22548 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22552 # Thread-local storage - the check is heavily parameterized.
22553 conftest_s=
22554 tls_first_major=
22555 tls_first_minor=
22556 tls_as_opt=
22557 case "$target" in
22558 alpha*-*-*)
22559 conftest_s='
22560 .section ".tdata","awT",@progbits
22561 foo: .long 25
22562 .text
22563 ldq $27,__tls_get_addr($29) !literal!1
22564 lda $16,foo($29) !tlsgd!1
22565 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22566 ldq $27,__tls_get_addr($29) !literal!2
22567 lda $16,foo($29) !tlsldm!2
22568 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22569 ldq $1,foo($29) !gotdtprel
22570 ldah $2,foo($29) !dtprelhi
22571 lda $3,foo($2) !dtprello
22572 lda $4,foo($29) !dtprel
22573 ldq $1,foo($29) !gottprel
22574 ldah $2,foo($29) !tprelhi
22575 lda $3,foo($2) !tprello
22576 lda $4,foo($29) !tprel'
22577 tls_first_major=2
22578 tls_first_minor=13
22579 tls_as_opt=--fatal-warnings
22581 cris-*-*|crisv32-*-*)
22582 conftest_s='
22583 .section ".tdata","awT",@progbits
22584 x: .long 25
22585 .text
22586 move.d x:IE,$r10
22587 nop'
22588 tls_first_major=2
22589 tls_first_minor=20
22590 tls_as_opt=--fatal-warnings
22592 frv*-*-*)
22593 conftest_s='
22594 .section ".tdata","awT",@progbits
22595 x: .long 25
22596 .text
22597 call #gettlsoff(x)'
22598 tls_first_major=2
22599 tls_first_minor=14
22601 hppa*-*-linux*)
22602 conftest_s='
22603 t1: .reg %r20
22604 t2: .reg %r21
22605 gp: .reg %r19
22606 .section ".tdata","awT",@progbits
22607 foo: .long 25
22608 .text
22609 .align 4
22610 addil LT%foo-$tls_gdidx$,gp
22611 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22612 b __tls_get_addr
22614 addil LT%foo-$tls_ldidx$,gp
22615 b __tls_get_addr
22616 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22617 addil LR%foo-$tls_dtpoff$,%ret0
22618 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22619 mfctl %cr27,%t1
22620 addil LT%foo-$tls_ieoff$,gp
22621 ldw RT%foo-$tls_ieoff$(%r1),%t2
22622 add %t1,%t2,%t3
22623 mfctl %cr27,%t1
22624 addil LR%foo-$tls_leoff$,%t1
22625 ldo RR%foo-$tls_leoff$(%r1),%t2'
22626 tls_first_major=2
22627 tls_first_minor=15
22628 tls_as_opt=--fatal-warnings
22630 arm*-*-*)
22631 conftest_s='
22632 .section ".tdata","awT",%progbits
22633 foo: .long 25
22634 .text
22635 .word foo(gottpoff)
22636 .word foo(tpoff)
22637 .word foo(tlsgd)
22638 .word foo(tlsldm)
22639 .word foo(tlsldo)'
22640 tls_first_major=2
22641 tls_first_minor=17
22643 i[34567]86-*-*)
22644 case "$target" in
22645 i[34567]86-*-solaris2.*)
22646 on_solaris=yes
22647 tga_func=___tls_get_addr
22650 on_solaris=no
22652 esac
22653 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22654 conftest_s='
22655 .section .tdata,"awt",@progbits'
22656 tls_first_major=0
22657 tls_first_minor=0
22659 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22661 else
22662 conftest_s='
22663 .section ".tdata","awT",@progbits'
22664 tls_first_major=2
22665 tls_first_minor=14
22666 tls_as_opt="--fatal-warnings"
22668 conftest_s="$conftest_s
22669 foo: .long 25
22670 .text
22671 movl %gs:0, %eax
22672 leal foo@tlsgd(,%ebx,1), %eax
22673 leal foo@tlsldm(%ebx), %eax
22674 leal foo@dtpoff(%eax), %edx
22675 movl foo@gottpoff(%ebx), %eax
22676 subl foo@gottpoff(%ebx), %eax
22677 addl foo@gotntpoff(%ebx), %eax
22678 movl foo@indntpoff, %eax
22679 movl \$foo@tpoff, %eax
22680 subl \$foo@tpoff, %eax
22681 leal foo@ntpoff(%ecx), %eax"
22683 x86_64-*-*)
22684 conftest_s='
22685 .section ".tdata","awT",@progbits
22686 foo: .long 25
22687 .text
22688 movq %fs:0, %rax
22689 leaq foo@TLSGD(%rip), %rdi
22690 leaq foo@TLSLD(%rip), %rdi
22691 leaq foo@DTPOFF(%rax), %rdx
22692 movq foo@GOTTPOFF(%rip), %rax
22693 movq $foo@TPOFF, %rax'
22694 tls_first_major=2
22695 tls_first_minor=14
22696 tls_as_opt=--fatal-warnings
22698 ia64-*-*)
22699 conftest_s='
22700 .section ".tdata","awT",@progbits
22701 foo: data8 25
22702 .text
22703 addl r16 = @ltoff(@dtpmod(foo#)), gp
22704 addl r17 = @ltoff(@dtprel(foo#)), gp
22705 addl r18 = @ltoff(@tprel(foo#)), gp
22706 addl r19 = @dtprel(foo#), gp
22707 adds r21 = @dtprel(foo#), r13
22708 movl r23 = @dtprel(foo#)
22709 addl r20 = @tprel(foo#), gp
22710 adds r22 = @tprel(foo#), r13
22711 movl r24 = @tprel(foo#)'
22712 tls_first_major=2
22713 tls_first_minor=13
22714 tls_as_opt=--fatal-warnings
22716 mips*-*-*)
22717 conftest_s='
22718 .section .tdata,"awT",@progbits
22720 .word 2
22721 .text
22722 addiu $4, $28, %tlsgd(x)
22723 addiu $4, $28, %tlsldm(x)
22724 lui $4, %dtprel_hi(x)
22725 addiu $4, $4, %dtprel_lo(x)
22726 lw $4, %gottprel(x)($28)
22727 lui $4, %tprel_hi(x)
22728 addiu $4, $4, %tprel_lo(x)'
22729 tls_first_major=2
22730 tls_first_minor=16
22731 tls_as_opt='-32 --fatal-warnings'
22733 m68k-*-*)
22734 conftest_s='
22735 .section .tdata,"awT",@progbits
22737 .word 2
22738 .text
22739 foo:
22740 move.l x@TLSGD(%a5),%a0
22741 move.l x@TLSLDM(%a5),%a0
22742 move.l x@TLSLDO(%a5),%a0
22743 move.l x@TLSIE(%a5),%a0
22744 move.l x@TLSLE(%a5),%a0'
22745 tls_first_major=2
22746 tls_first_minor=19
22747 tls_as_opt='--fatal-warnings'
22749 powerpc-*-*)
22750 conftest_s='
22751 .section ".tdata","awT",@progbits
22752 .align 2
22753 ld0: .space 4
22754 ld1: .space 4
22755 x1: .space 4
22756 x2: .space 4
22757 x3: .space 4
22758 .text
22759 addi 3,31,ld0@got@tlsgd
22760 bl __tls_get_addr
22761 addi 3,31,x1@got@tlsld
22762 bl __tls_get_addr
22763 addi 9,3,x1@dtprel
22764 addis 9,3,x2@dtprel@ha
22765 addi 9,9,x2@dtprel@l
22766 lwz 9,x3@got@tprel(31)
22767 add 9,9,x@tls
22768 addi 9,2,x1@tprel
22769 addis 9,2,x2@tprel@ha
22770 addi 9,9,x2@tprel@l'
22771 tls_first_major=2
22772 tls_first_minor=14
22773 tls_as_opt="-a32 --fatal-warnings"
22775 powerpc64-*-*)
22776 conftest_s='
22777 .section ".tdata","awT",@progbits
22778 .align 3
22779 ld0: .space 8
22780 ld1: .space 8
22781 x1: .space 8
22782 x2: .space 8
22783 x3: .space 8
22784 .text
22785 addi 3,2,ld0@got@tlsgd
22786 bl .__tls_get_addr
22788 addi 3,2,ld1@toc
22789 bl .__tls_get_addr
22791 addi 3,2,x1@got@tlsld
22792 bl .__tls_get_addr
22794 addi 9,3,x1@dtprel
22795 bl .__tls_get_addr
22797 addis 9,3,x2@dtprel@ha
22798 addi 9,9,x2@dtprel@l
22799 bl .__tls_get_addr
22801 ld 9,x3@got@dtprel(2)
22802 add 9,9,3
22803 bl .__tls_get_addr
22804 nop'
22805 tls_first_major=2
22806 tls_first_minor=14
22807 tls_as_opt="-a64 --fatal-warnings"
22809 s390-*-*)
22810 conftest_s='
22811 .section ".tdata","awT",@progbits
22812 foo: .long 25
22813 .text
22814 .long foo@TLSGD
22815 .long foo@TLSLDM
22816 .long foo@DTPOFF
22817 .long foo@NTPOFF
22818 .long foo@GOTNTPOFF
22819 .long foo@INDNTPOFF
22820 l %r1,foo@GOTNTPOFF(%r12)
22821 l %r1,0(%r1):tls_load:foo
22822 bas %r14,0(%r1,%r13):tls_gdcall:foo
22823 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22824 tls_first_major=2
22825 tls_first_minor=14
22826 tls_as_opt="-m31 --fatal-warnings"
22828 s390x-*-*)
22829 conftest_s='
22830 .section ".tdata","awT",@progbits
22831 foo: .long 25
22832 .text
22833 .quad foo@TLSGD
22834 .quad foo@TLSLDM
22835 .quad foo@DTPOFF
22836 .quad foo@NTPOFF
22837 .quad foo@GOTNTPOFF
22838 lg %r1,foo@GOTNTPOFF(%r12)
22839 larl %r1,foo@INDNTPOFF
22840 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22841 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22842 tls_first_major=2
22843 tls_first_minor=14
22844 tls_as_opt="-m64 -Aesame --fatal-warnings"
22846 sh-*-* | sh[34]-*-*)
22847 conftest_s='
22848 .section ".tdata","awT",@progbits
22849 foo: .long 25
22850 .text
22851 .long foo@TLSGD
22852 .long foo@TLSLDM
22853 .long foo@DTPOFF
22854 .long foo@GOTTPOFF
22855 .long foo@TPOFF'
22856 tls_first_major=2
22857 tls_first_minor=13
22858 tls_as_opt=--fatal-warnings
22860 sparc*-*-*)
22861 case "$target" in
22862 sparc*-sun-solaris2.*)
22863 on_solaris=yes
22864 tga_func=__tls_get_addr
22867 on_solaris=no
22869 esac
22870 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22871 conftest_s='
22872 .section ".tdata",#alloc,#write,#tls'
22873 tls_first_major=0
22874 tls_first_minor=0
22875 else
22876 conftest_s='
22877 .section ".tdata","awT",@progbits'
22878 tls_first_major=2
22879 tls_first_minor=14
22880 tls_as_opt="-32 --fatal-warnings"
22882 conftest_s="$conftest_s
22883 foo: .long 25
22884 .text
22885 sethi %tgd_hi22(foo), %o0
22886 add %o0, %tgd_lo10(foo), %o1
22887 add %l7, %o1, %o0, %tgd_add(foo)
22888 call __tls_get_addr, %tgd_call(foo)
22889 sethi %tldm_hi22(foo), %l1
22890 add %l1, %tldm_lo10(foo), %l2
22891 add %l7, %l2, %o0, %tldm_add(foo)
22892 call __tls_get_addr, %tldm_call(foo)
22893 sethi %tldo_hix22(foo), %l3
22894 xor %l3, %tldo_lox10(foo), %l4
22895 add %o0, %l4, %l5, %tldo_add(foo)
22896 sethi %tie_hi22(foo), %o3
22897 add %o3, %tie_lo10(foo), %o3
22898 ld [%l7 + %o3], %o2, %tie_ld(foo)
22899 add %g7, %o2, %o4, %tie_add(foo)
22900 sethi %tle_hix22(foo), %l1
22901 xor %l1, %tle_lox10(foo), %o5
22902 ld [%g7 + %o5], %o1"
22904 xtensa*-*-*)
22905 conftest_s='
22906 .section ".tdata","awT",@progbits
22907 foo: .long 25
22908 .text
22909 movi a8, foo@TLSFUNC
22910 movi a10, foo@TLSARG
22911 callx8.tls a8, foo@TLSCALL'
22912 tls_first_major=2
22913 tls_first_minor=19
22915 esac
22916 set_have_as_tls=no
22917 if test "x$enable_tls" = xno ; then
22918 : # TLS explicitly disabled.
22919 elif test "x$enable_tls" = xyes ; then
22920 set_have_as_tls=yes # TLS explicitly enabled.
22921 elif test -z "$tls_first_major"; then
22922 : # If we don't have a check, assume no support.
22923 else
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22925 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22926 if test "${gcc_cv_as_tls+set}" = set; then :
22927 $as_echo_n "(cached) " >&6
22928 else
22929 gcc_cv_as_tls=no
22930 if test $in_tree_gas = yes; then
22931 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22932 then gcc_cv_as_tls=yes
22934 elif test x$gcc_cv_as != x; then
22935 echo "$conftest_s" > conftest.s
22936 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22938 (eval $ac_try) 2>&5
22939 ac_status=$?
22940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22941 test $ac_status = 0; }; }
22942 then
22943 gcc_cv_as_tls=yes
22944 else
22945 echo "configure: failed program was" >&5
22946 cat conftest.s >&5
22948 rm -f conftest.o conftest.s
22951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22952 $as_echo "$gcc_cv_as_tls" >&6; }
22953 if test $gcc_cv_as_tls = yes; then
22954 set_have_as_tls=yes
22957 case "$target" in
22958 *-*-irix6*)
22959 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
22960 # with TLS support are in use, native TLS cannot work.
22961 set_have_as_tls=no
22963 *-*-osf*)
22964 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
22965 # gld with TLS support are in use, native TLS cannot work.
22966 set_have_as_tls=no
22968 # TLS was introduced in the Solaris 9 FCS release and backported to
22969 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
22970 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
22971 # ld and GCC don't support any longer.
22972 *-*-solaris2.*)
22973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
22974 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
22975 ld_tls_support=no
22976 # Check ld and ld.so.1 TLS support.
22977 if echo "$ld_ver" | grep GNU > /dev/null; then
22978 # Assume all interesting versions of GNU ld have TLS support.
22979 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
22980 ld_tls_support=yes
22981 else
22982 case "$target" in
22983 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
22984 i?86-*-solaris2.8)
22985 min_tls_ld_vers_minor=280
22987 # Solaris 8/SPARC ld has TLS support since version 1.272.
22988 sparc*-*-solaris2.8)
22989 min_tls_ld_vers_minor=272
22991 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
22992 i?86-*-solaris2.9)
22993 min_tls_ld_vers_minor=374
22995 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
22996 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
22997 min_tls_ld_vers_minor=343
22999 esac
23000 if test "$ld_vers_major" -gt 1 || \
23001 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23002 ld_tls_support=yes
23003 else
23004 set_have_as_tls=no
23007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23008 $as_echo "$ld_tls_support" >&6; }
23010 save_LIBS="$LIBS"
23011 save_LDFLAGS="$LDFLAGS"
23012 LIBS=
23013 LDFLAGS=
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23016 $as_echo_n "checking alternate thread library... " >&6; }
23017 case "$target" in
23018 # TLS support was backported to Solaris 8 patches, but only lives in
23019 # the alternate thread library which became the default in Solaris 9.
23020 # We want to always use that, irrespective of TLS support.
23021 *-*-solaris2.8)
23022 # Take multilib subdir into account. There's no spec to handle
23023 # this. The 64 symlink exists since Solaris 8.
23024 lwp_dir=/usr/lib/lwp
23025 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23026 LDFLAGS="-L$lwp_dir -R$lwp_dir"
23028 *-*-solaris2*)
23029 lwp_dir="none"
23030 lwp_spec=""
23032 esac
23033 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23035 cat >>confdefs.h <<_ACEOF
23036 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23037 _ACEOF
23039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23040 $as_echo "$lwp_dir" >&6; }
23042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23043 $as_echo_n "checking library containing $tga_func... " >&6; }
23044 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23045 # (32-bit x86) only lived in libthread, so check for that. Keep
23046 # set_have_as_tls if found, disable if not.
23047 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23049 $as_echo_n "checking for library containing $tga_func... " >&6; }
23050 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23051 $as_echo_n "(cached) " >&6
23052 else
23053 ac_func_search_save_LIBS=$LIBS
23054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23055 /* end confdefs.h. */
23057 /* Override any GCC internal prototype to avoid an error.
23058 Use char because int might match the return type of a GCC
23059 builtin and then its argument prototype would still apply. */
23060 #ifdef __cplusplus
23061 extern "C"
23062 #endif
23063 char $tga_func ();
23065 main ()
23067 return $tga_func ();
23069 return 0;
23071 _ACEOF
23072 for ac_lib in '' thread; do
23073 if test -z "$ac_lib"; then
23074 ac_res="none required"
23075 else
23076 ac_res=-l$ac_lib
23077 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23079 if ac_fn_c_try_link "$LINENO"; then :
23080 eval "$as_ac_Search=\$ac_res"
23082 rm -f core conftest.err conftest.$ac_objext \
23083 conftest$ac_exeext
23084 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23085 break
23087 done
23088 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23090 else
23091 eval "$as_ac_Search=no"
23093 rm conftest.$ac_ext
23094 LIBS=$ac_func_search_save_LIBS
23096 eval ac_res=\$$as_ac_Search
23097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23098 $as_echo "$ac_res" >&6; }
23099 eval ac_res=\$$as_ac_Search
23100 if test "$ac_res" != no; then :
23101 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23103 else
23104 set_have_as_tls=no
23107 # Clear LIBS if we cannot support TLS.
23108 if test $set_have_as_tls = no; then
23109 LIBS=
23111 # Always define LIB_TLS_SPEC, even without TLS support.
23113 cat >>confdefs.h <<_ACEOF
23114 #define LIB_TLS_SPEC "$LIBS"
23115 _ACEOF
23117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23118 $as_echo "$LIBS" >&6; }
23120 LIBS="$save_LIBS"
23121 LDFLAGS="$save_LDFLAGS"
23123 esac
23124 if test $set_have_as_tls = yes ; then
23126 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23130 # Target-specific assembler checks.
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23133 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23134 gcc_cv_ld_static_dynamic=no
23135 gcc_cv_ld_static_option='-Bstatic'
23136 gcc_cv_ld_dynamic_option='-Bdynamic'
23137 if test $in_tree_ld = yes ; then
23138 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
23139 gcc_cv_ld_static_dynamic=yes
23141 elif test x$gcc_cv_ld != x; then
23142 # Check if linker supports -Bstatic/-Bdynamic option
23143 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23144 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23145 gcc_cv_ld_static_dynamic=yes
23146 else
23147 case "$target" in
23148 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23149 alpha*-dec-osf*)
23150 gcc_cv_ld_static_dynamic=yes
23151 gcc_cv_ld_static_option="-noso"
23152 gcc_cv_ld_dynamic_option="-so_archive"
23154 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23155 mips-sgi-irix6*)
23156 gcc_cv_ld_static_dynamic=yes
23158 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23159 *-*-solaris2*)
23160 gcc_cv_ld_static_dynamic=yes
23162 esac
23165 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23167 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23170 cat >>confdefs.h <<_ACEOF
23171 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23172 _ACEOF
23175 cat >>confdefs.h <<_ACEOF
23176 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23177 _ACEOF
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23181 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23183 if test x"$demangler_in_ld" = xyes; then
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23185 $as_echo_n "checking linker --demangle support... " >&6; }
23186 gcc_cv_ld_demangle=no
23187 if test $in_tree_ld = yes; then
23188 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 \
23189 gcc_cv_ld_demangle=yes
23191 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23192 # Check if the GNU linker supports --demangle option
23193 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23194 gcc_cv_ld_demangle=yes
23197 if test x"$gcc_cv_ld_demangle" = xyes; then
23199 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23203 $as_echo "$gcc_cv_ld_demangle" >&6; }
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23207 $as_echo_n "checking linker plugin support... " >&6; }
23208 gcc_cv_lto_plugin=0
23209 if test -f liblto_plugin.la; then
23210 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23211 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
23212 gcc_cv_lto_plugin=2
23213 elif test "$ld_is_gold" = yes -a "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -eq 20; then
23214 gcc_cv_lto_plugin=1
23217 elif test x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld" && echo "$ld_ver" | grep GNU > /dev/null; then
23218 # Require GNU ld or gold 2.21+ for plugin support by default.
23219 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23220 gcc_cv_lto_plugin=2
23221 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23222 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23223 gcc_cv_lto_plugin=1
23225 elif test x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" != x"$gcc_cv_ld"; then
23226 # Allow -fuse-linker-plugin if plugin linker differs from
23227 # default/specified linker.
23228 gcc_cv_lto_plugin=1
23232 cat >>confdefs.h <<_ACEOF
23233 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23234 _ACEOF
23236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23237 $as_echo "$gcc_cv_lto_plugin" >&6; }
23239 case "$target" in
23240 # All TARGET_ABI_OSF targets.
23241 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23243 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23244 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23245 $as_echo_n "(cached) " >&6
23246 else
23247 gcc_cv_as_alpha_explicit_relocs=no
23248 if test $in_tree_gas = yes; then
23249 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23250 then gcc_cv_as_alpha_explicit_relocs=yes
23252 elif test x$gcc_cv_as != x; then
23253 echo ' .set nomacro
23254 .text
23255 extbl $3, $2, $3 !lituse_bytoff!1
23256 ldq $2, a($29) !literal!1
23257 ldq $4, b($29) !literal!2
23258 ldq_u $3, 0($2) !lituse_base!1
23259 ldq $27, f($29) !literal!5
23260 jsr $26, ($27), f !lituse_jsr!5
23261 ldah $29, 0($26) !gpdisp!3
23262 lda $0, c($29) !gprel
23263 ldah $1, d($29) !gprelhigh
23264 lda $1, d($1) !gprellow
23265 lda $29, 0($29) !gpdisp!3' > conftest.s
23266 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23268 (eval $ac_try) 2>&5
23269 ac_status=$?
23270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23271 test $ac_status = 0; }; }
23272 then
23273 gcc_cv_as_alpha_explicit_relocs=yes
23274 else
23275 echo "configure: failed program was" >&5
23276 cat conftest.s >&5
23278 rm -f conftest.o conftest.s
23281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23282 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23283 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23285 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23289 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23290 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23291 $as_echo_n "(cached) " >&6
23292 else
23293 gcc_cv_as_alpha_jsrdirect_relocs=no
23294 if test $in_tree_gas = yes; then
23295 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23296 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23298 elif test x$gcc_cv_as != x; then
23299 echo ' .set nomacro
23300 .text
23301 ldq $27, a($29) !literal!1
23302 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23303 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23305 (eval $ac_try) 2>&5
23306 ac_status=$?
23307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23308 test $ac_status = 0; }; }
23309 then
23310 gcc_cv_as_alpha_jsrdirect_relocs=yes
23311 else
23312 echo "configure: failed program was" >&5
23313 cat conftest.s >&5
23315 rm -f conftest.o conftest.s
23318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23319 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23320 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23322 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23327 cris-*-*)
23328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23329 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23330 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23331 $as_echo_n "(cached) " >&6
23332 else
23333 gcc_cv_as_cris_no_mul_bug=no
23334 if test $in_tree_gas = yes; then
23335 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23336 then gcc_cv_as_cris_no_mul_bug=yes
23338 elif test x$gcc_cv_as != x; then
23339 echo '.text' > conftest.s
23340 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23342 (eval $ac_try) 2>&5
23343 ac_status=$?
23344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23345 test $ac_status = 0; }; }
23346 then
23347 gcc_cv_as_cris_no_mul_bug=yes
23348 else
23349 echo "configure: failed program was" >&5
23350 cat conftest.s >&5
23352 rm -f conftest.o conftest.s
23355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23356 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23357 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23359 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23364 sparc*-*-*)
23365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23366 $as_echo_n "checking assembler for .register... " >&6; }
23367 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23368 $as_echo_n "(cached) " >&6
23369 else
23370 gcc_cv_as_sparc_register_op=no
23371 if test x$gcc_cv_as != x; then
23372 echo '.register %g2, #scratch' > conftest.s
23373 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23375 (eval $ac_try) 2>&5
23376 ac_status=$?
23377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23378 test $ac_status = 0; }; }
23379 then
23380 gcc_cv_as_sparc_register_op=yes
23381 else
23382 echo "configure: failed program was" >&5
23383 cat conftest.s >&5
23385 rm -f conftest.o conftest.s
23388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23389 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23390 if test $gcc_cv_as_sparc_register_op = yes; then
23392 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23397 $as_echo_n "checking assembler for -relax option... " >&6; }
23398 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23399 $as_echo_n "(cached) " >&6
23400 else
23401 gcc_cv_as_sparc_relax=no
23402 if test x$gcc_cv_as != x; then
23403 echo '.text' > conftest.s
23404 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23406 (eval $ac_try) 2>&5
23407 ac_status=$?
23408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23409 test $ac_status = 0; }; }
23410 then
23411 gcc_cv_as_sparc_relax=yes
23412 else
23413 echo "configure: failed program was" >&5
23414 cat conftest.s >&5
23416 rm -f conftest.o conftest.s
23419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23420 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23421 if test $gcc_cv_as_sparc_relax = yes; then
23423 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23428 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23429 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23430 $as_echo_n "(cached) " >&6
23431 else
23432 gcc_cv_as_sparc_gotdata_op=no
23433 if test x$gcc_cv_as != x; then
23434 echo '.text
23435 foo:
23437 bar:
23438 sethi %gdop_hix22(foo), %g1
23439 xor %g1, %gdop_lox10(foo), %g1
23440 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23441 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23443 (eval $ac_try) 2>&5
23444 ac_status=$?
23445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23446 test $ac_status = 0; }; }
23447 then
23448 if test x$gcc_cv_ld != x \
23449 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23450 if $gcc_cv_ld -v | grep GNU >/dev/null 2>&1; then
23451 if test x$gcc_cv_objdump != x; then
23452 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23453 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23454 gcc_cv_as_sparc_gotdata_op=no
23455 else
23456 gcc_cv_as_sparc_gotdata_op=yes
23459 else
23460 gcc_cv_as_sparc_gotdata_op=yes
23463 rm -f conftest
23464 else
23465 echo "configure: failed program was" >&5
23466 cat conftest.s >&5
23468 rm -f conftest.o conftest.s
23471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23472 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23473 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23475 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23480 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23481 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23482 $as_echo_n "(cached) " >&6
23483 else
23484 gcc_cv_as_sparc_ua_pcrel=no
23485 if test x$gcc_cv_as != x; then
23486 echo '.text
23487 foo:
23489 .data
23490 .align 4
23491 .byte 0
23492 .uaword %r_disp32(foo)' > conftest.s
23493 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23495 (eval $ac_try) 2>&5
23496 ac_status=$?
23497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23498 test $ac_status = 0; }; }
23499 then
23500 if test x$gcc_cv_ld != x \
23501 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23502 gcc_cv_as_sparc_ua_pcrel=yes
23504 rm -f conftest
23505 else
23506 echo "configure: failed program was" >&5
23507 cat conftest.s >&5
23509 rm -f conftest.o conftest.s
23512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23513 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23514 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23516 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23520 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23521 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23522 $as_echo_n "(cached) " >&6
23523 else
23524 gcc_cv_as_sparc_ua_pcrel_hidden=no
23525 if test x$gcc_cv_as != x; then
23526 echo '.data
23527 .align 4
23528 .byte 0x31
23529 .uaword %r_disp32(foo)
23530 .byte 0x32, 0x33, 0x34
23531 .global foo
23532 .hidden foo
23533 foo:
23534 .skip 4' > conftest.s
23535 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23537 (eval $ac_try) 2>&5
23538 ac_status=$?
23539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23540 test $ac_status = 0; }; }
23541 then
23542 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23543 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23544 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23545 | grep ' 31000000 07323334' > /dev/null 2>&1; then
23546 if $gcc_cv_objdump -R conftest 2> /dev/null \
23547 | grep 'DISP32' > /dev/null 2>&1; then
23549 else
23550 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23553 rm -f conftest
23554 else
23555 echo "configure: failed program was" >&5
23556 cat conftest.s >&5
23558 rm -f conftest.o conftest.s
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23562 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23563 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23565 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23569 fi # unaligned pcrel relocs
23571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23572 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23573 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23574 $as_echo_n "(cached) " >&6
23575 else
23576 gcc_cv_as_sparc_offsetable_lo10=no
23577 if test x$gcc_cv_as != x; then
23578 echo '.text
23579 or %g1, %lo(ab) + 12, %g1
23580 or %g1, %lo(ab + 12), %g1' > conftest.s
23581 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23583 (eval $ac_try) 2>&5
23584 ac_status=$?
23585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23586 test $ac_status = 0; }; }
23587 then
23588 if test x$gcc_cv_objdump != x \
23589 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
23590 | grep ' 82106000 82106000' > /dev/null 2>&1; then
23591 gcc_cv_as_sparc_offsetable_lo10=yes
23593 else
23594 echo "configure: failed program was" >&5
23595 cat conftest.s >&5
23597 rm -f conftest.o conftest.s
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23601 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23602 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23604 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23609 i[34567]86-*-* | x86_64-*-*)
23610 case $target_os in
23611 cygwin*)
23612 # Full C++ conformance when using a shared libstdc++-v3 requires some
23613 # support from the Cygwin DLL, which in more recent versions exports
23614 # wrappers to aid in interposing and redirecting operators new, delete,
23615 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
23616 # are configuring for a version of Cygwin that exports the wrappers.
23617 if test x$host = x$target; then
23618 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23619 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23620 gcc_ac_cygwin_dll_wrappers=yes
23621 else
23622 gcc_ac_cygwin_dll_wrappers=no
23625 else
23626 # Can't check presence of libc functions during cross-compile, so
23627 # we just have to assume we're building for an up-to-date target.
23628 gcc_ac_cygwin_dll_wrappers=yes
23631 cat >>confdefs.h <<_ACEOF
23632 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23633 _ACEOF
23635 esac
23636 case $target_os in
23637 cygwin* | pe | mingw32*)
23638 # Recent binutils allows the three-operand form of ".comm" on PE. This
23639 # definition is used unconditionally to initialise the default state of
23640 # the target option variable that governs usage of the feature.
23641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23642 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23643 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23644 $as_echo_n "(cached) " >&6
23645 else
23646 gcc_cv_as_comm_has_align=no
23647 if test $in_tree_gas = yes; then
23648 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23649 then gcc_cv_as_comm_has_align=yes
23651 elif test x$gcc_cv_as != x; then
23652 echo '.comm foo,1,32' > conftest.s
23653 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23655 (eval $ac_try) 2>&5
23656 ac_status=$?
23657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23658 test $ac_status = 0; }; }
23659 then
23660 gcc_cv_as_comm_has_align=yes
23661 else
23662 echo "configure: failed program was" >&5
23663 cat conftest.s >&5
23665 rm -f conftest.o conftest.s
23668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23669 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23672 cat >>confdefs.h <<_ACEOF
23673 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23674 _ACEOF
23676 # Used for DWARF 2 in PE
23677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23678 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23679 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23680 $as_echo_n "(cached) " >&6
23681 else
23682 gcc_cv_as_ix86_pe_secrel32=no
23683 if test $in_tree_gas = yes; then
23684 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23685 then gcc_cv_as_ix86_pe_secrel32=yes
23687 elif test x$gcc_cv_as != x; then
23688 echo '.text
23689 foo: nop
23690 .data
23691 .secrel32 foo' > conftest.s
23692 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23694 (eval $ac_try) 2>&5
23695 ac_status=$?
23696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23697 test $ac_status = 0; }; }
23698 then
23699 if test x$gcc_cv_ld != x \
23700 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
23701 gcc_cv_as_ix86_pe_secrel32=yes
23703 rm -f conftest
23704 else
23705 echo "configure: failed program was" >&5
23706 cat conftest.s >&5
23708 rm -f conftest.o conftest.s
23711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23712 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23713 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23715 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23718 # Test if the assembler supports the extended form of the .section
23719 # directive that specifies section alignment. LTO support uses this,
23720 # but normally only after installation, so we warn but don't fail the
23721 # configure if LTO is enabled but the assembler does not support it.
23722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23723 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23724 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23725 $as_echo_n "(cached) " >&6
23726 else
23727 gcc_cv_as_section_has_align=no
23728 if test $in_tree_gas = yes; then
23729 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23730 then gcc_cv_as_section_has_align=yes
23732 elif test x$gcc_cv_as != x; then
23733 echo '.section lto_test,"dr0"' > conftest.s
23734 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23736 (eval $ac_try) 2>&5
23737 ac_status=$?
23738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23739 test $ac_status = 0; }; }
23740 then
23741 gcc_cv_as_section_has_align=yes
23742 else
23743 echo "configure: failed program was" >&5
23744 cat conftest.s >&5
23746 rm -f conftest.o conftest.s
23749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23750 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23752 if test x$gcc_cv_as_section_has_align != xyes; then
23753 case ",$enable_languages," in
23754 *,lto,*)
23755 { $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
23756 $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;}
23758 esac
23761 esac
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23764 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23765 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23766 $as_echo_n "(cached) " >&6
23767 else
23768 gcc_cv_as_ix86_filds=no
23769 if test x$gcc_cv_as != x; then
23770 echo 'filds mem; fists mem' > conftest.s
23771 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23773 (eval $ac_try) 2>&5
23774 ac_status=$?
23775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23776 test $ac_status = 0; }; }
23777 then
23778 gcc_cv_as_ix86_filds=yes
23779 else
23780 echo "configure: failed program was" >&5
23781 cat conftest.s >&5
23783 rm -f conftest.o conftest.s
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23787 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23788 if test $gcc_cv_as_ix86_filds = yes; then
23790 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23795 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23796 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23797 $as_echo_n "(cached) " >&6
23798 else
23799 gcc_cv_as_ix86_fildq=no
23800 if test x$gcc_cv_as != x; then
23801 echo 'fildq mem; fistpq mem' > conftest.s
23802 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23804 (eval $ac_try) 2>&5
23805 ac_status=$?
23806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23807 test $ac_status = 0; }; }
23808 then
23809 gcc_cv_as_ix86_fildq=yes
23810 else
23811 echo "configure: failed program was" >&5
23812 cat conftest.s >&5
23814 rm -f conftest.o conftest.s
23817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23818 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23819 if test $gcc_cv_as_ix86_fildq = yes; then
23821 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23826 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23827 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23828 $as_echo_n "(cached) " >&6
23829 else
23830 gcc_cv_as_ix86_cmov_sun_syntax=no
23831 if test x$gcc_cv_as != x; then
23832 echo 'cmovl.l %edx, %eax' > conftest.s
23833 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23835 (eval $ac_try) 2>&5
23836 ac_status=$?
23837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23838 test $ac_status = 0; }; }
23839 then
23840 gcc_cv_as_ix86_cmov_sun_syntax=yes
23841 else
23842 echo "configure: failed program was" >&5
23843 cat conftest.s >&5
23845 rm -f conftest.o conftest.s
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23849 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23850 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23852 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23857 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23858 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23859 $as_echo_n "(cached) " >&6
23860 else
23861 gcc_cv_as_ix86_ffreep=no
23862 if test x$gcc_cv_as != x; then
23863 echo 'ffreep %st(1)' > conftest.s
23864 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23866 (eval $ac_try) 2>&5
23867 ac_status=$?
23868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23869 test $ac_status = 0; }; }
23870 then
23871 gcc_cv_as_ix86_ffreep=yes
23872 else
23873 echo "configure: failed program was" >&5
23874 cat conftest.s >&5
23876 rm -f conftest.o conftest.s
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23880 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23881 if test $gcc_cv_as_ix86_ffreep = yes; then
23883 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23888 $as_echo_n "checking assembler for .quad directive... " >&6; }
23889 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23890 $as_echo_n "(cached) " >&6
23891 else
23892 gcc_cv_as_ix86_quad=no
23893 if test x$gcc_cv_as != x; then
23894 echo '.quad 0' > conftest.s
23895 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23897 (eval $ac_try) 2>&5
23898 ac_status=$?
23899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23900 test $ac_status = 0; }; }
23901 then
23902 gcc_cv_as_ix86_quad=yes
23903 else
23904 echo "configure: failed program was" >&5
23905 cat conftest.s >&5
23907 rm -f conftest.o conftest.s
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23911 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23912 if test $gcc_cv_as_ix86_quad = yes; then
23914 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23919 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23920 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23921 $as_echo_n "(cached) " >&6
23922 else
23923 gcc_cv_as_ix86_sahf=no
23924 if test x$gcc_cv_as != x; then
23925 echo '.code64
23926 sahf' > conftest.s
23927 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23929 (eval $ac_try) 2>&5
23930 ac_status=$?
23931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23932 test $ac_status = 0; }; }
23933 then
23934 gcc_cv_as_ix86_sahf=yes
23935 else
23936 echo "configure: failed program was" >&5
23937 cat conftest.s >&5
23939 rm -f conftest.o conftest.s
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23943 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23944 if test $gcc_cv_as_ix86_sahf = yes; then
23946 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23951 $as_echo_n "checking assembler for swap suffix... " >&6; }
23952 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23953 $as_echo_n "(cached) " >&6
23954 else
23955 gcc_cv_as_ix86_swap=no
23956 if test x$gcc_cv_as != x; then
23957 echo 'movl.s %esp, %ebp' > conftest.s
23958 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23960 (eval $ac_try) 2>&5
23961 ac_status=$?
23962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23963 test $ac_status = 0; }; }
23964 then
23965 gcc_cv_as_ix86_swap=yes
23966 else
23967 echo "configure: failed program was" >&5
23968 cat conftest.s >&5
23970 rm -f conftest.o conftest.s
23973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23974 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23975 if test $gcc_cv_as_ix86_swap = yes; then
23977 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23982 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23983 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23984 $as_echo_n "(cached) " >&6
23985 else
23986 gcc_cv_as_ix86_diff_sect_delta=no
23987 if test x$gcc_cv_as != x; then
23988 echo '.section .rodata
23989 .L1:
23990 .long .L2-.L1
23991 .long .L3-.L1
23992 .text
23993 .L3: nop
23994 .L2: nop' > conftest.s
23995 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23997 (eval $ac_try) 2>&5
23998 ac_status=$?
23999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24000 test $ac_status = 0; }; }
24001 then
24002 gcc_cv_as_ix86_diff_sect_delta=yes
24003 else
24004 echo "configure: failed program was" >&5
24005 cat conftest.s >&5
24007 rm -f conftest.o conftest.s
24010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24011 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24012 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24014 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24018 # These two are used unconditionally by i386.[ch]; it is to be defined
24019 # to 1 if the feature is present, 0 otherwise.
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24021 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24022 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24023 $as_echo_n "(cached) " >&6
24024 else
24025 gcc_cv_as_ix86_gotoff_in_data=no
24026 if test $in_tree_gas = yes; then
24027 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24028 then gcc_cv_as_ix86_gotoff_in_data=yes
24030 elif test x$gcc_cv_as != x; then
24031 echo ' .text
24032 .L0:
24034 .data
24035 .long .L0@GOTOFF' > conftest.s
24036 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24038 (eval $ac_try) 2>&5
24039 ac_status=$?
24040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24041 test $ac_status = 0; }; }
24042 then
24043 gcc_cv_as_ix86_gotoff_in_data=yes
24044 else
24045 echo "configure: failed program was" >&5
24046 cat conftest.s >&5
24048 rm -f conftest.o conftest.s
24051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24052 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24055 cat >>confdefs.h <<_ACEOF
24056 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24057 _ACEOF
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24061 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24062 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24063 $as_echo_n "(cached) " >&6
24064 else
24065 gcc_cv_as_ix86_rep_lock_prefix=no
24066 if test x$gcc_cv_as != x; then
24067 echo 'rep movsl
24068 lock addl %edi, (%eax,%esi)
24069 lock orl $0, (%esp)' > conftest.s
24070 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24072 (eval $ac_try) 2>&5
24073 ac_status=$?
24074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24075 test $ac_status = 0; }; }
24076 then
24077 gcc_cv_as_ix86_rep_lock_prefix=yes
24078 else
24079 echo "configure: failed program was" >&5
24080 cat conftest.s >&5
24082 rm -f conftest.o conftest.s
24085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24086 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24087 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24089 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24095 ia64*-*-*)
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24097 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24098 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24099 $as_echo_n "(cached) " >&6
24100 else
24101 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24102 if test $in_tree_gas = yes; then
24103 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24104 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24106 elif test x$gcc_cv_as != x; then
24107 echo ' .text
24108 addl r15 = @ltoffx(x#), gp
24110 ld8.mov r16 = [r15], x#' > conftest.s
24111 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24113 (eval $ac_try) 2>&5
24114 ac_status=$?
24115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24116 test $ac_status = 0; }; }
24117 then
24118 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24119 else
24120 echo "configure: failed program was" >&5
24121 cat conftest.s >&5
24123 rm -f conftest.o conftest.s
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24127 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24128 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24130 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24136 powerpc*-*-*)
24137 case $target in
24138 *-*-aix*) conftest_s=' .machine "pwr5"
24139 .csect .text[PR]
24140 mfcr 3,128';;
24141 *-*-darwin*)
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24143 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24144 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24145 $as_echo_n "(cached) " >&6
24146 else
24147 gcc_cv_as_machine_directive=no
24148 if test x$gcc_cv_as != x; then
24149 echo ' .machine ppc7400' > 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_machine_directive=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_machine_directive" >&5
24166 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24168 if test x$gcc_cv_as_machine_directive != xyes; then
24169 echo "*** This target requires an assembler supporting \".machine\"" >&2
24170 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24171 test x$build = x$target && exit 1
24173 conftest_s=' .text
24174 mfcr r3,128';;
24175 *) conftest_s=' .machine power4
24176 .text
24177 mfcr 3,128';;
24178 esac
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24181 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24182 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24183 $as_echo_n "(cached) " >&6
24184 else
24185 gcc_cv_as_powerpc_mfcrf=no
24186 if test $in_tree_gas = yes; then
24187 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24188 then gcc_cv_as_powerpc_mfcrf=yes
24190 elif test x$gcc_cv_as != x; then
24191 echo "$conftest_s" > conftest.s
24192 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24194 (eval $ac_try) 2>&5
24195 ac_status=$?
24196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24197 test $ac_status = 0; }; }
24198 then
24199 gcc_cv_as_powerpc_mfcrf=yes
24200 else
24201 echo "configure: failed program was" >&5
24202 cat conftest.s >&5
24204 rm -f conftest.o conftest.s
24207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24208 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24209 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24211 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24215 case $target in
24216 *-*-aix*) conftest_s=' .machine "pwr5"
24217 .csect .text[PR]
24218 popcntb 3,3';;
24219 *) conftest_s=' .machine power5
24220 .text
24221 popcntb 3,3';;
24222 esac
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24225 $as_echo_n "checking assembler for popcntb support... " >&6; }
24226 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24227 $as_echo_n "(cached) " >&6
24228 else
24229 gcc_cv_as_powerpc_popcntb=no
24230 if test $in_tree_gas = yes; then
24231 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24232 then gcc_cv_as_powerpc_popcntb=yes
24234 elif test x$gcc_cv_as != x; then
24235 echo "$conftest_s" > conftest.s
24236 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24238 (eval $ac_try) 2>&5
24239 ac_status=$?
24240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24241 test $ac_status = 0; }; }
24242 then
24243 gcc_cv_as_powerpc_popcntb=yes
24244 else
24245 echo "configure: failed program was" >&5
24246 cat conftest.s >&5
24248 rm -f conftest.o conftest.s
24251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24252 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24253 if test $gcc_cv_as_powerpc_popcntb = yes; then
24255 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24259 case $target in
24260 *-*-aix*) conftest_s=' .machine "pwr5x"
24261 .csect .text[PR]
24262 frin 1,1';;
24263 *) conftest_s=' .machine power5
24264 .text
24265 frin 1,1';;
24266 esac
24268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24269 $as_echo_n "checking assembler for fp round support... " >&6; }
24270 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24271 $as_echo_n "(cached) " >&6
24272 else
24273 gcc_cv_as_powerpc_fprnd=no
24274 if test $in_tree_gas = yes; then
24275 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24276 then gcc_cv_as_powerpc_fprnd=yes
24278 elif test x$gcc_cv_as != x; then
24279 echo "$conftest_s" > conftest.s
24280 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24282 (eval $ac_try) 2>&5
24283 ac_status=$?
24284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24285 test $ac_status = 0; }; }
24286 then
24287 gcc_cv_as_powerpc_fprnd=yes
24288 else
24289 echo "configure: failed program was" >&5
24290 cat conftest.s >&5
24292 rm -f conftest.o conftest.s
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24296 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24297 if test $gcc_cv_as_powerpc_fprnd = yes; then
24299 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24303 case $target in
24304 *-*-aix*) conftest_s=' .machine "pwr6"
24305 .csect .text[PR]
24306 mffgpr 1,3';;
24307 *) conftest_s=' .machine power6
24308 .text
24309 mffgpr 1,3';;
24310 esac
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24313 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24314 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24315 $as_echo_n "(cached) " >&6
24316 else
24317 gcc_cv_as_powerpc_mfpgpr=no
24318 if test $in_tree_gas = yes; then
24319 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24320 then gcc_cv_as_powerpc_mfpgpr=yes
24322 elif test x$gcc_cv_as != x; then
24323 echo "$conftest_s" > conftest.s
24324 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24326 (eval $ac_try) 2>&5
24327 ac_status=$?
24328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24329 test $ac_status = 0; }; }
24330 then
24331 gcc_cv_as_powerpc_mfpgpr=yes
24332 else
24333 echo "configure: failed program was" >&5
24334 cat conftest.s >&5
24336 rm -f conftest.o conftest.s
24339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24340 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24341 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24343 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24347 case $target in
24348 *-*-aix*) conftest_s=' .csect .text[PR]
24349 LCF..0:
24350 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24351 *-*-darwin*)
24352 conftest_s=' .text
24353 LCF0:
24354 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24355 *) conftest_s=' .text
24356 .LCF0:
24357 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24358 esac
24360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24361 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24362 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24363 $as_echo_n "(cached) " >&6
24364 else
24365 gcc_cv_as_powerpc_rel16=no
24366 if test $in_tree_gas = yes; then
24367 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24368 then gcc_cv_as_powerpc_rel16=yes
24370 elif test x$gcc_cv_as != x; then
24371 echo "$conftest_s" > conftest.s
24372 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24374 (eval $ac_try) 2>&5
24375 ac_status=$?
24376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24377 test $ac_status = 0; }; }
24378 then
24379 gcc_cv_as_powerpc_rel16=yes
24380 else
24381 echo "configure: failed program was" >&5
24382 cat conftest.s >&5
24384 rm -f conftest.o conftest.s
24387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24388 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24389 if test $gcc_cv_as_powerpc_rel16 = yes; then
24391 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24395 case $target in
24396 *-*-aix*) conftest_s=' .machine "pwr6"
24397 .csect .text[PR]
24398 cmpb 3,4,5';;
24399 *) conftest_s=' .machine power6
24400 .text
24401 cmpb 3,4,5';;
24402 esac
24404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24405 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24406 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24407 $as_echo_n "(cached) " >&6
24408 else
24409 gcc_cv_as_powerpc_cmpb=no
24410 if test $in_tree_gas = yes; then
24411 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24412 then gcc_cv_as_powerpc_cmpb=yes
24414 elif test x$gcc_cv_as != x; then
24415 echo "$conftest_s" > conftest.s
24416 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -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 gcc_cv_as_powerpc_cmpb=yes
24424 else
24425 echo "configure: failed program was" >&5
24426 cat conftest.s >&5
24428 rm -f conftest.o conftest.s
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24432 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24433 if test $gcc_cv_as_powerpc_cmpb = yes; then
24435 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24439 case $target in
24440 *-*-aix*) conftest_s=' .machine "pwr6"
24441 .csect .text[PR]
24442 dadd 1,2,3';;
24443 *) conftest_s=' .machine power6
24444 .text
24445 dadd 1,2,3';;
24446 esac
24448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24449 $as_echo_n "checking assembler for decimal float support... " >&6; }
24450 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24451 $as_echo_n "(cached) " >&6
24452 else
24453 gcc_cv_as_powerpc_dfp=no
24454 if test $in_tree_gas = yes; then
24455 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24456 then gcc_cv_as_powerpc_dfp=yes
24458 elif test x$gcc_cv_as != x; then
24459 echo "$conftest_s" > conftest.s
24460 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24462 (eval $ac_try) 2>&5
24463 ac_status=$?
24464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24465 test $ac_status = 0; }; }
24466 then
24467 gcc_cv_as_powerpc_dfp=yes
24468 else
24469 echo "configure: failed program was" >&5
24470 cat conftest.s >&5
24472 rm -f conftest.o conftest.s
24475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24476 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24477 if test $gcc_cv_as_powerpc_dfp = yes; then
24479 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24483 case $target in
24484 *-*-aix*) conftest_s=' .machine "pwr7"
24485 .csect .text[PR]
24486 lxvd2x 1,2,3';;
24487 *) conftest_s=' .machine power7
24488 .text
24489 lxvd2x 1,2,3';;
24490 esac
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24493 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24494 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24495 $as_echo_n "(cached) " >&6
24496 else
24497 gcc_cv_as_powerpc_vsx=no
24498 if test $in_tree_gas = yes; then
24499 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24500 then gcc_cv_as_powerpc_vsx=yes
24502 elif test x$gcc_cv_as != x; then
24503 echo "$conftest_s" > conftest.s
24504 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -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_powerpc_vsx=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_powerpc_vsx" >&5
24520 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24521 if test $gcc_cv_as_powerpc_vsx = yes; then
24523 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24527 case $target in
24528 *-*-aix*) conftest_s=' .machine "pwr7"
24529 .csect .text[PR]
24530 popcntd 3,3';;
24531 *) conftest_s=' .machine power7
24532 .text
24533 popcntd 3,3';;
24534 esac
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24537 $as_echo_n "checking assembler for popcntd support... " >&6; }
24538 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24539 $as_echo_n "(cached) " >&6
24540 else
24541 gcc_cv_as_powerpc_popcntd=no
24542 if test $in_tree_gas = yes; then
24543 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24544 then gcc_cv_as_powerpc_popcntd=yes
24546 elif test x$gcc_cv_as != x; then
24547 echo "$conftest_s" > conftest.s
24548 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24550 (eval $ac_try) 2>&5
24551 ac_status=$?
24552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24553 test $ac_status = 0; }; }
24554 then
24555 gcc_cv_as_powerpc_popcntd=yes
24556 else
24557 echo "configure: failed program was" >&5
24558 cat conftest.s >&5
24560 rm -f conftest.o conftest.s
24563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24564 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24565 if test $gcc_cv_as_powerpc_popcntd = yes; then
24567 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24571 case $target in
24572 *-*-aix*) conftest_s=' .csect .text[PR]
24573 lwsync';;
24574 *) conftest_s=' .text
24575 lwsync';;
24576 esac
24578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24579 $as_echo_n "checking assembler for lwsync support... " >&6; }
24580 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24581 $as_echo_n "(cached) " >&6
24582 else
24583 gcc_cv_as_powerpc_lwsync=no
24584 if test $in_tree_gas = yes; then
24585 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24586 then gcc_cv_as_powerpc_lwsync=yes
24588 elif test x$gcc_cv_as != x; then
24589 echo "$conftest_s" > conftest.s
24590 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24592 (eval $ac_try) 2>&5
24593 ac_status=$?
24594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24595 test $ac_status = 0; }; }
24596 then
24597 gcc_cv_as_powerpc_lwsync=yes
24598 else
24599 echo "configure: failed program was" >&5
24600 cat conftest.s >&5
24602 rm -f conftest.o conftest.s
24605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24606 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24607 if test $gcc_cv_as_powerpc_lwsync = yes; then
24609 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24613 case $target in
24614 *-*-aix*) conftest_s=' .machine "476"
24615 .csect .text[PR]
24616 dci 0';;
24617 *) conftest_s=' .machine "476"
24618 .text
24619 dci 0';;
24620 esac
24622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24623 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24624 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24625 $as_echo_n "(cached) " >&6
24626 else
24627 gcc_cv_as_powerpc_dci=no
24628 if test $in_tree_gas = yes; then
24629 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24630 then gcc_cv_as_powerpc_dci=yes
24632 elif test x$gcc_cv_as != x; then
24633 echo "$conftest_s" > conftest.s
24634 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24636 (eval $ac_try) 2>&5
24637 ac_status=$?
24638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24639 test $ac_status = 0; }; }
24640 then
24641 gcc_cv_as_powerpc_dci=yes
24642 else
24643 echo "configure: failed program was" >&5
24644 cat conftest.s >&5
24646 rm -f conftest.o conftest.s
24649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24650 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24651 if test $gcc_cv_as_powerpc_dci = yes; then
24653 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24658 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24659 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24660 $as_echo_n "(cached) " >&6
24661 else
24662 gcc_cv_as_powerpc_gnu_attribute=no
24663 if test $in_tree_gas = yes; then
24664 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24665 then gcc_cv_as_powerpc_gnu_attribute=yes
24667 elif test x$gcc_cv_as != x; then
24668 echo '.gnu_attribute 4,1' > conftest.s
24669 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24671 (eval $ac_try) 2>&5
24672 ac_status=$?
24673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24674 test $ac_status = 0; }; }
24675 then
24676 gcc_cv_as_powerpc_gnu_attribute=yes
24677 else
24678 echo "configure: failed program was" >&5
24679 cat conftest.s >&5
24681 rm -f conftest.o conftest.s
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24685 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24686 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24688 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24693 $as_echo_n "checking assembler for tls marker support... " >&6; }
24694 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24695 $as_echo_n "(cached) " >&6
24696 else
24697 gcc_cv_as_powerpc_tls_markers=no
24698 if test $in_tree_gas = yes; then
24699 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24700 then gcc_cv_as_powerpc_tls_markers=yes
24702 elif test x$gcc_cv_as != x; then
24703 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24704 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24706 (eval $ac_try) 2>&5
24707 ac_status=$?
24708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24709 test $ac_status = 0; }; }
24710 then
24711 gcc_cv_as_powerpc_tls_markers=yes
24712 else
24713 echo "configure: failed program was" >&5
24714 cat conftest.s >&5
24716 rm -f conftest.o conftest.s
24719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24720 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24721 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24723 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24727 case $target in
24728 *-*-aix*)
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24730 $as_echo_n "checking assembler for .ref support... " >&6; }
24731 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24732 $as_echo_n "(cached) " >&6
24733 else
24734 gcc_cv_as_aix_ref=no
24735 if test $in_tree_gas = yes; then
24736 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24737 then :
24739 elif test x$gcc_cv_as != x; then
24740 echo ' .csect stuff[rw]
24741 stuff:
24742 .long 1
24743 .extern sym
24744 .ref sym
24745 ' > conftest.s
24746 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24748 (eval $ac_try) 2>&5
24749 ac_status=$?
24750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24751 test $ac_status = 0; }; }
24752 then
24753 gcc_cv_as_aix_ref=yes
24754 else
24755 echo "configure: failed program was" >&5
24756 cat conftest.s >&5
24758 rm -f conftest.o conftest.s
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24762 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24763 if test $gcc_cv_as_aix_ref = yes; then
24765 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24769 esac
24772 mips*-*-*)
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24774 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24775 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24776 $as_echo_n "(cached) " >&6
24777 else
24778 gcc_cv_as_mips_explicit_relocs=no
24779 if test $in_tree_gas = yes; then
24780 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24781 then gcc_cv_as_mips_explicit_relocs=yes
24783 elif test x$gcc_cv_as != x; then
24784 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
24785 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24787 (eval $ac_try) 2>&5
24788 ac_status=$?
24789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24790 test $ac_status = 0; }; }
24791 then
24792 gcc_cv_as_mips_explicit_relocs=yes
24793 else
24794 echo "configure: failed program was" >&5
24795 cat conftest.s >&5
24797 rm -f conftest.o conftest.s
24800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24801 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24802 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24803 if test x$target_cpu_default = x
24804 then target_cpu_default=MASK_EXPLICIT_RELOCS
24805 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24809 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24810 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24811 $as_echo_n "(cached) " >&6
24812 else
24813 gcc_cv_as_mips_no_shared=no
24814 if test $in_tree_gas = yes; then
24815 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24816 then gcc_cv_as_mips_no_shared=yes
24818 elif test x$gcc_cv_as != x; then
24819 echo 'nop' > conftest.s
24820 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24822 (eval $ac_try) 2>&5
24823 ac_status=$?
24824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24825 test $ac_status = 0; }; }
24826 then
24827 gcc_cv_as_mips_no_shared=yes
24828 else
24829 echo "configure: failed program was" >&5
24830 cat conftest.s >&5
24832 rm -f conftest.o conftest.s
24835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24836 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24837 if test $gcc_cv_as_mips_no_shared = yes; then
24839 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24844 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24845 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24846 $as_echo_n "(cached) " >&6
24847 else
24848 gcc_cv_as_mips_gnu_attribute=no
24849 if test $in_tree_gas = yes; then
24850 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24851 then gcc_cv_as_mips_gnu_attribute=yes
24853 elif test x$gcc_cv_as != x; then
24854 echo '.gnu_attribute 4,1' > conftest.s
24855 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24857 (eval $ac_try) 2>&5
24858 ac_status=$?
24859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24860 test $ac_status = 0; }; }
24861 then
24862 gcc_cv_as_mips_gnu_attribute=yes
24863 else
24864 echo "configure: failed program was" >&5
24865 cat conftest.s >&5
24867 rm -f conftest.o conftest.s
24870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24871 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24872 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24874 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24879 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24880 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24881 $as_echo_n "(cached) " >&6
24882 else
24883 gcc_cv_as_mips_dtprelword=no
24884 if test $in_tree_gas = yes; then
24885 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24886 then gcc_cv_as_mips_dtprelword=yes
24888 elif test x$gcc_cv_as != x; then
24889 echo '.section .tdata,"awT",@progbits
24891 .word 2
24892 .text
24893 .dtprelword x+0x8000' > conftest.s
24894 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24896 (eval $ac_try) 2>&5
24897 ac_status=$?
24898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24899 test $ac_status = 0; }; }
24900 then
24901 gcc_cv_as_mips_dtprelword=yes
24902 else
24903 echo "configure: failed program was" >&5
24904 cat conftest.s >&5
24906 rm -f conftest.o conftest.s
24909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24910 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24911 if test $gcc_cv_as_mips_dtprelword = yes; then
24913 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
24918 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
24919 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
24920 $as_echo_n "(cached) " >&6
24921 else
24922 gcc_cv_as_mips_dspr1_mult=no
24923 if test x$gcc_cv_as != x; then
24924 echo ' .set mips32r2
24925 .set nodspr2
24926 .set dsp
24927 madd $ac3,$4,$5
24928 maddu $ac3,$4,$5
24929 msub $ac3,$4,$5
24930 msubu $ac3,$4,$5
24931 mult $ac3,$4,$5
24932 multu $ac3,$4,$5' > conftest.s
24933 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24935 (eval $ac_try) 2>&5
24936 ac_status=$?
24937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24938 test $ac_status = 0; }; }
24939 then
24940 gcc_cv_as_mips_dspr1_mult=yes
24941 else
24942 echo "configure: failed program was" >&5
24943 cat conftest.s >&5
24945 rm -f conftest.o conftest.s
24948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
24949 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
24950 if test $gcc_cv_as_mips_dspr1_mult = yes; then
24952 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24957 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24958 gcc_cv_as_ld_jalr_reloc=no
24959 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24960 if test $in_tree_ld = yes ; then
24961 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 \
24962 && test $in_tree_ld_is_elf = yes; then
24963 gcc_cv_as_ld_jalr_reloc=yes
24965 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
24966 echo ' .ent x' > conftest.s
24967 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
24968 echo ' ld $25,%call16(y)($28)' >> conftest.s
24969 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
24970 echo '1: jalr $25' >> conftest.s
24971 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
24972 echo '1: jalr $25' >> conftest.s
24973 echo ' .end x' >> conftest.s
24974 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
24975 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
24976 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
24977 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
24978 gcc_cv_as_ld_jalr_reloc=yes
24981 rm -f conftest.*
24984 if test $gcc_cv_as_ld_jalr_reloc = yes; then
24985 if test x$target_cpu_default = x; then
24986 target_cpu_default=MASK_RELAX_PIC_CALLS
24987 else
24988 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24992 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24995 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24996 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24997 $as_echo_n "(cached) " >&6
24998 else
24999 gcc_cv_ld_mips_personality_relaxation=no
25000 if test $in_tree_ld = yes ; then
25001 if test "$gcc_cv_gld_major_version" -eq 2 \
25002 -a "$gcc_cv_gld_minor_version" -ge 21 \
25003 -o "$gcc_cv_gld_major_version" -gt 2; then
25004 gcc_cv_ld_mips_personality_relaxation=yes
25006 elif test x$gcc_cv_as != x \
25007 -a x$gcc_cv_ld != x \
25008 -a x$gcc_cv_readelf != x ; then
25009 cat > conftest.s <<EOF
25010 .cfi_startproc
25011 .cfi_personality 0x80,indirect_ptr
25012 .ent test
25013 test:
25015 .end test
25016 .cfi_endproc
25018 .section .data,"aw",@progbits
25019 indirect_ptr:
25020 .dc.a personality
25022 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25023 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25024 if $gcc_cv_readelf -d conftest 2>&1 \
25025 | grep TEXTREL > /dev/null 2>&1; then
25027 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25028 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25030 else
25031 gcc_cv_ld_mips_personality_relaxation=yes
25035 rm -f conftest.s conftest.o conftest
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25038 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25039 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25041 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25045 esac
25047 # Mips and HP-UX need the GNU assembler.
25048 # Linux on IA64 might be able to use the Intel assembler.
25050 case "$target" in
25051 mips*-*-* | *-*-hpux* )
25052 if test x$gas_flag = xyes \
25053 || test x"$host" != x"$build" \
25054 || test ! -x "$gcc_cv_as" \
25055 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25057 else
25058 echo "*** This configuration requires the GNU assembler" >&2
25059 exit 1
25062 esac
25064 # ??? Not all targets support dwarf2 debug_line, even within a version
25065 # of gas. Moreover, we need to emit a valid instruction to trigger any
25066 # info to the output file. So, as supported targets are added to gas 2.11,
25067 # add some instruction here to (also) show we expect this might work.
25068 # ??? Once 2.11 is released, probably need to add first known working
25069 # version to the per-target configury.
25070 case "$cpu_type" in
25071 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25072 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25073 insn="nop"
25075 ia64 | s390)
25076 insn="nop 0"
25078 mmix)
25079 insn="swym 0"
25081 esac
25082 if test x"$insn" != x; then
25083 conftest_s="\
25084 .file 1 \"conftest.s\"
25085 .loc 1 3 0
25086 $insn"
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25088 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25089 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25090 $as_echo_n "(cached) " >&6
25091 else
25092 gcc_cv_as_dwarf2_debug_line=no
25093 if test $in_tree_gas = yes; then
25094 if test $in_tree_gas_is_elf = yes \
25095 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25096 then gcc_cv_as_dwarf2_debug_line=yes
25098 elif test x$gcc_cv_as != x; then
25099 echo "$conftest_s" > conftest.s
25100 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25102 (eval $ac_try) 2>&5
25103 ac_status=$?
25104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25105 test $ac_status = 0; }; }
25106 then
25107 if test x$gcc_cv_objdump != x \
25108 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25109 | grep debug_line > /dev/null 2>&1; then
25110 gcc_cv_as_dwarf2_debug_line=yes
25112 else
25113 echo "configure: failed program was" >&5
25114 cat conftest.s >&5
25116 rm -f conftest.o conftest.s
25119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25120 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25123 # The .debug_line file table must be in the exact order that
25124 # we specified the files, since these indices are also used
25125 # by DW_AT_decl_file. Approximate this test by testing if
25126 # the assembler bitches if the same index is assigned twice.
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25128 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25129 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25130 $as_echo_n "(cached) " >&6
25131 else
25132 gcc_cv_as_dwarf2_file_buggy=no
25133 if test x$gcc_cv_as != x; then
25134 echo ' .file 1 "foo.s"
25135 .file 1 "bar.s"' > conftest.s
25136 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25138 (eval $ac_try) 2>&5
25139 ac_status=$?
25140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25141 test $ac_status = 0; }; }
25142 then
25143 gcc_cv_as_dwarf2_file_buggy=yes
25144 else
25145 echo "configure: failed program was" >&5
25146 cat conftest.s >&5
25148 rm -f conftest.o conftest.s
25151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25152 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25155 if test $gcc_cv_as_dwarf2_debug_line = yes \
25156 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25158 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25163 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25164 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25165 $as_echo_n "(cached) " >&6
25166 else
25167 gcc_cv_as_gdwarf2_flag=no
25168 if test $in_tree_gas = yes; then
25169 if test $in_tree_gas_is_elf = yes \
25170 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25171 then gcc_cv_as_gdwarf2_flag=yes
25173 elif test x$gcc_cv_as != x; then
25174 echo "$insn" > conftest.s
25175 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25177 (eval $ac_try) 2>&5
25178 ac_status=$?
25179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25180 test $ac_status = 0; }; }
25181 then
25182 gcc_cv_as_gdwarf2_flag=yes
25183 else
25184 echo "configure: failed program was" >&5
25185 cat conftest.s >&5
25187 rm -f conftest.o conftest.s
25190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25191 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25192 if test $gcc_cv_as_gdwarf2_flag = yes; then
25194 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25199 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25200 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25201 $as_echo_n "(cached) " >&6
25202 else
25203 gcc_cv_as_gstabs_flag=no
25204 if test $in_tree_gas = yes; then
25205 if test $in_tree_gas_is_elf = yes \
25206 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25207 then gcc_cv_as_gstabs_flag=yes
25209 elif test x$gcc_cv_as != x; then
25210 echo "$insn" > conftest.s
25211 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -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 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25219 # and warns about it, but still exits successfully. So check for
25220 # this.
25221 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25223 (eval $ac_try) 2>&5
25224 ac_status=$?
25225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25226 test $ac_status = 0; }; }
25227 then :
25228 else gcc_cv_as_gstabs_flag=yes
25230 else
25231 echo "configure: failed program was" >&5
25232 cat conftest.s >&5
25234 rm -f conftest.o conftest.s
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25238 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25239 if test $gcc_cv_as_gstabs_flag = yes; then
25241 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25246 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25247 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25248 $as_echo_n "(cached) " >&6
25249 else
25250 gcc_cv_as_debug_prefix_map_flag=no
25251 if test $in_tree_gas = yes; then
25252 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25253 then gcc_cv_as_debug_prefix_map_flag=yes
25255 elif test x$gcc_cv_as != x; then
25256 echo "$insn" > conftest.s
25257 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25259 (eval $ac_try) 2>&5
25260 ac_status=$?
25261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25262 test $ac_status = 0; }; }
25263 then
25264 gcc_cv_as_debug_prefix_map_flag=yes
25265 else
25266 echo "configure: failed program was" >&5
25267 cat conftest.s >&5
25269 rm -f conftest.o conftest.s
25272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25273 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25274 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25276 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25282 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25283 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25284 $as_echo_n "(cached) " >&6
25285 else
25286 gcc_cv_as_lcomm_with_alignment=no
25287 if test x$gcc_cv_as != x; then
25288 echo '.lcomm bar,4,16' > conftest.s
25289 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25291 (eval $ac_try) 2>&5
25292 ac_status=$?
25293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25294 test $ac_status = 0; }; }
25295 then
25296 gcc_cv_as_lcomm_with_alignment=yes
25297 else
25298 echo "configure: failed program was" >&5
25299 cat conftest.s >&5
25301 rm -f conftest.o conftest.s
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25305 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25306 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25308 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25312 # Check whether --enable-gnu-unique-object was given.
25313 if test "${enable_gnu_unique_object+set}" = set; then :
25314 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25315 yes | no) ;;
25316 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25317 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25318 esac
25319 else
25320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25321 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25322 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25323 $as_echo_n "(cached) " >&6
25324 else
25325 gcc_cv_as_gnu_unique_object=no
25326 if test $in_tree_gas = yes; then
25327 if test $in_tree_gas_is_elf = yes \
25328 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25329 then gcc_cv_as_gnu_unique_object=yes
25331 elif test x$gcc_cv_as != x; then
25332 echo '.type foo, @gnu_unique_object' > conftest.s
25333 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25335 (eval $ac_try) 2>&5
25336 ac_status=$?
25337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25338 test $ac_status = 0; }; }
25339 then
25340 gcc_cv_as_gnu_unique_object=yes
25341 else
25342 echo "configure: failed program was" >&5
25343 cat conftest.s >&5
25345 rm -f conftest.o conftest.s
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25349 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25350 if test $gcc_cv_as_gnu_unique_object = yes; then
25351 # Also check for ld.so support, i.e. glibc 2.11 or higher.
25352 if test x$host = x$build -a x$host = x$target &&
25353 ldd --version 2>/dev/null &&
25354 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25355 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
25356 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25357 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
25358 if test "$glibcnum" -ge 2011 ; then
25359 enable_gnu_unique_object=yes
25365 if test x$enable_gnu_unique_object = xyes; then
25367 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25372 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25373 if test "${gcc_cv_as_line_zero+set}" = set; then :
25374 $as_echo_n "(cached) " >&6
25375 else
25376 gcc_cv_as_line_zero=no
25377 if test $in_tree_gas = yes; then
25378 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25379 then gcc_cv_as_line_zero=yes
25381 elif test "x$gcc_cv_as" != x; then
25382 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25383 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25385 (eval $ac_try) 2>&5
25386 ac_status=$?
25387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25388 test $ac_status = 0; }; } &&
25389 test "x`cat conftest.out`" = x
25390 then
25391 gcc_cv_as_line_zero=yes
25392 else
25393 echo "configure: failed program was" >&5
25394 cat conftest.s >&5
25395 echo "configure: error output was" >&5
25396 cat conftest.out >&5
25398 rm -f conftest.o conftest.s conftest.out
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25402 $as_echo "$gcc_cv_as_line_zero" >&6; }
25403 if test "x$gcc_cv_as_line_zero" = xyes; then
25405 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25410 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25411 gcc_cv_ld_eh_frame_hdr=no
25412 if test $in_tree_ld = yes ; then
25413 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 \
25414 && test $in_tree_ld_is_elf = yes; then
25415 gcc_cv_ld_eh_frame_hdr=yes
25417 elif test x$gcc_cv_ld != x; then
25418 if echo "$ld_ver" | grep GNU > /dev/null; then
25419 # Check if linker supports --eh-frame-hdr option
25420 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
25421 gcc_cv_ld_eh_frame_hdr=yes
25423 else
25424 case "$target" in
25425 *-*-solaris2*)
25426 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
25427 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
25428 gcc_cv_ld_eh_frame_hdr=yes
25431 esac
25435 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
25437 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25441 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25444 $as_echo_n "checking linker position independent executable support... " >&6; }
25445 gcc_cv_ld_pie=no
25446 if test $in_tree_ld = yes ; then
25447 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 \
25448 && test $in_tree_ld_is_elf = yes; then
25449 gcc_cv_ld_pie=yes
25451 elif test x$gcc_cv_ld != x; then
25452 # Check if linker supports -pie option
25453 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
25454 gcc_cv_ld_pie=yes
25457 if test x"$gcc_cv_ld_pie" = xyes; then
25459 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25463 $as_echo "$gcc_cv_ld_pie" >&6; }
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25466 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25467 gcc_cv_ld_eh_gc_sections=no
25468 if test $in_tree_ld = yes ; then
25469 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 \
25470 && test $in_tree_ld_is_elf = yes; then
25471 gcc_cv_ld_eh_gc_sections=yes
25473 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
25474 cat > conftest.s <<EOF
25475 .section .text
25476 .globl _start
25477 .type _start, @function
25478 _start:
25479 .long foo
25480 .size _start, .-_start
25481 .section .text.foo,"ax",@progbits
25482 .type foo, @function
25483 foo:
25484 .long 0
25485 .size foo, .-foo
25486 .section .gcc_except_table.foo,"a",@progbits
25487 .L0:
25488 .long 0
25489 .section .eh_frame,"a",@progbits
25490 .long .L0
25492 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25493 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25494 | grep "gc-sections option ignored" > /dev/null; then
25495 gcc_cv_ld_eh_gc_sections=no
25496 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25497 | grep gcc_except_table > /dev/null; then
25498 gcc_cv_ld_eh_gc_sections=yes
25499 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25500 if test x$gcc_cv_as_comdat_group != xyes; then
25501 gcc_cv_ld_eh_gc_sections=no
25502 cat > conftest.s <<EOF
25503 .section .text
25504 .globl _start
25505 .type _start, @function
25506 _start:
25507 .long foo
25508 .size _start, .-_start
25509 .section .gnu.linkonce.t.foo,"ax",@progbits
25510 .type foo, @function
25511 foo:
25512 .long 0
25513 .size foo, .-foo
25514 .section .gcc_except_table.foo,"a",@progbits
25515 .L0:
25516 .long 0
25517 .section .eh_frame,"a",@progbits
25518 .long .L0
25520 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25521 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25522 | grep "gc-sections option ignored" > /dev/null; then
25523 gcc_cv_ld_eh_gc_sections=no
25524 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25525 | grep gcc_except_table > /dev/null; then
25526 gcc_cv_ld_eh_gc_sections=yes
25532 rm -f conftest.s conftest.o conftest
25534 case "$target" in
25535 hppa*-*-linux*)
25536 # ??? This apparently exposes a binutils bug with PC-relative relocations.
25537 gcc_cv_ld_eh_gc_sections=no
25539 esac
25540 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
25542 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
25545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
25546 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
25548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
25549 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
25550 gcc_cv_ld_eh_gc_sections_bug=no
25551 if test $in_tree_ld = yes ; then
25552 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 \
25553 && test $in_tree_ld_is_elf = yes; then
25554 gcc_cv_ld_eh_gc_sections_bug=yes
25556 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
25557 gcc_cv_ld_eh_gc_sections_bug=yes
25558 cat > conftest.s <<EOF
25559 .section .text
25560 .globl _start
25561 .type _start, @function
25562 _start:
25563 .long foo
25564 .size _start, .-_start
25565 .section .text.startup.foo,"ax",@progbits
25566 .type foo, @function
25567 foo:
25568 .long 0
25569 .size foo, .-foo
25570 .section .gcc_except_table.foo,"a",@progbits
25571 .L0:
25572 .long 0
25573 .section .eh_frame,"a",@progbits
25574 .long .L0
25576 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25577 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25578 | grep "gc-sections option ignored" > /dev/null; then
25580 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25581 | grep gcc_except_table > /dev/null; then
25582 gcc_cv_ld_eh_gc_sections_bug=no
25585 rm -f conftest.s conftest.o conftest
25587 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
25589 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
25592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
25593 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
25595 # --------
25596 # UNSORTED
25597 # --------
25599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
25600 $as_echo_n "checking linker --as-needed support... " >&6; }
25601 if test "${gcc_cv_ld_as_needed+set}" = set; then :
25602 $as_echo_n "(cached) " >&6
25603 else
25604 gcc_cv_ld_as_needed=no
25605 if test $in_tree_ld = yes ; then
25606 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 \
25607 && test $in_tree_ld_is_elf = yes; then
25608 gcc_cv_ld_as_needed=yes
25610 elif test x$gcc_cv_ld != x; then
25611 # Check if linker supports --as-needed and --no-as-needed options
25612 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
25613 gcc_cv_ld_as_needed=yes
25618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
25619 $as_echo "$gcc_cv_ld_as_needed" >&6; }
25620 if test x"$gcc_cv_ld_as_needed" = xyes; then
25622 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
25626 case "$target:$tm_file" in
25627 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
25628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
25629 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
25630 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
25631 $as_echo_n "(cached) " >&6
25632 else
25633 gcc_cv_ld_no_dot_syms=no
25634 if test $in_tree_ld = yes ; then
25635 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
25636 gcc_cv_ld_no_dot_syms=yes
25638 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25639 cat > conftest1.s <<EOF
25640 .text
25641 bl .foo
25643 cat > conftest2.s <<EOF
25644 .section ".opd","aw"
25645 .align 3
25646 .globl foo
25647 .type foo,@function
25648 foo:
25649 .quad .LEfoo,.TOC.@tocbase,0
25650 .text
25651 .LEfoo:
25653 .size foo,.-.LEfoo
25655 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
25656 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
25657 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
25658 gcc_cv_ld_no_dot_syms=yes
25660 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
25664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
25665 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
25666 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
25668 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
25673 $as_echo_n "checking linker large toc support... " >&6; }
25674 if test "${gcc_cv_ld_large_toc+set}" = set; then :
25675 $as_echo_n "(cached) " >&6
25676 else
25677 gcc_cv_ld_large_toc=no
25678 if test $in_tree_ld = yes ; then
25679 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
25680 gcc_cv_ld_large_toc=yes
25682 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25683 cat > conftest.s <<EOF
25684 .section ".tbss","awT",@nobits
25685 .align 3
25686 ie0: .space 8
25687 .global _start
25688 .text
25689 _start:
25690 addis 9,13,ie0@got@tprel@ha
25691 ld 9,ie0@got@tprel@l(9)
25693 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
25694 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
25695 gcc_cv_ld_large_toc=yes
25697 rm -f conftest conftest.o conftest.s
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25702 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25703 if test x"$gcc_cv_ld_large_toc" = xyes; then
25705 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25709 esac
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25712 $as_echo_n "checking linker --build-id support... " >&6; }
25713 if test "${gcc_cv_ld_buildid+set}" = set; then :
25714 $as_echo_n "(cached) " >&6
25715 else
25716 gcc_cv_ld_buildid=no
25717 if test $in_tree_ld = yes ; then
25718 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25719 "$gcc_cv_gld_minor_version" -ge 18 -o \
25720 "$gcc_cv_gld_major_version" -gt 2 \
25721 && test $in_tree_ld_is_elf = yes; then
25722 gcc_cv_ld_buildid=yes
25724 elif test x$gcc_cv_ld != x; then
25725 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
25726 gcc_cv_ld_buildid=yes
25730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25731 $as_echo "$gcc_cv_ld_buildid" >&6; }
25732 if test x"$gcc_cv_ld_buildid" = xyes; then
25734 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25738 # Check whether --enable-linker-build-id was given.
25739 if test "${enable_linker_build_id+set}" = set; then :
25740 enableval=$enable_linker_build_id;
25741 else
25742 enable_linker_build_id=no
25746 if test x"$enable_linker_build_id" = xyes; then
25747 if test x"$gcc_cv_ld_buildid" = xyes; then
25749 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25751 else
25752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25753 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25757 # In binutils 2.21, GNU ld gained support for new emulations fully
25758 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
25759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25760 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25761 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25762 $as_echo_n "(cached) " >&6
25763 else
25764 gcc_cv_ld_sol2_emulation=no
25765 if test $in_tree_ld = yes ; then
25766 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25767 "$gcc_cv_gld_minor_version" -ge 21 -o \
25768 "$gcc_cv_gld_major_version" -gt 2 \
25769 && test $in_tree_ld_is_elf = yes; then
25770 gcc_cv_ld_sol2_emulation=yes
25772 elif test x$gcc_cv_ld != x; then
25773 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
25774 grep _sol2 > /dev/null; then
25775 gcc_cv_ld_sol2_emulation=yes
25779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25780 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25781 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
25783 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25788 $as_echo_n "checking linker --sysroot support... " >&6; }
25789 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25790 $as_echo_n "(cached) " >&6
25791 else
25792 gcc_cv_ld_sysroot=no
25793 if test $in_tree_ld = yes ; then
25794 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
25795 gcc_cv_ld_sysroot=yes
25797 elif test x$gcc_cv_ld != x; then
25798 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
25799 gcc_cv_ld_sysroot=yes
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25804 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25805 if test x"$gcc_cv_ld_sysroot" = xyes; then
25807 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25811 if test x$with_sysroot = x && test x$host = x$target \
25812 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25813 && test "$prefix" != "NONE"; then
25815 cat >>confdefs.h <<_ACEOF
25816 #define PREFIX_INCLUDE_DIR "$prefix/include"
25817 _ACEOF
25821 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25822 if test "x$with_headers" != x; then
25823 target_header_dir=$with_headers
25824 elif test "x$with_sysroot" = x; then
25825 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25826 elif test "x$with_build_sysroot" != "x"; then
25827 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
25828 elif test "x$with_sysroot" = xyes; then
25829 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
25830 else
25831 target_header_dir="${with_sysroot}${native_system_header_dir}"
25833 else
25834 target_header_dir=${native_system_header_dir}
25837 # Test for stack protector support in target C library.
25838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25839 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25840 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25841 $as_echo_n "(cached) " >&6
25842 else
25843 gcc_cv_libc_provides_ssp=no
25844 case "$target" in
25845 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
25846 # glibc 2.4 and later provides __stack_chk_fail and
25847 # either __stack_chk_guard, or TLS access to stack guard canary.
25848 if test -f $target_header_dir/features.h \
25849 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
25850 $target_header_dir/features.h > /dev/null; then
25851 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
25852 $target_header_dir/features.h > /dev/null; then
25853 gcc_cv_libc_provides_ssp=yes
25854 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
25855 $target_header_dir/features.h > /dev/null \
25856 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
25857 $target_header_dir/features.h > /dev/null; then
25858 gcc_cv_libc_provides_ssp=yes
25859 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
25860 $target_header_dir/features.h > /dev/null && \
25861 test -f $target_header_dir/bits/uClibc_config.h && \
25862 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
25863 $target_header_dir/bits/uClibc_config.h > /dev/null; then
25864 gcc_cv_libc_provides_ssp=yes
25868 *-*-gnu*)
25869 # Avoid complicated tests (see
25870 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25871 # simply assert that glibc does provide this, which is true for all
25872 # realistically usable GNU/Hurd configurations.
25873 gcc_cv_libc_provides_ssp=yes;;
25874 *-*-darwin* | *-*-freebsd*)
25875 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25876 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
25877 gcc_cv_libc_provides_ssp=yes
25878 else
25879 echo "no __stack_chk_fail on this target"
25883 *) gcc_cv_libc_provides_ssp=no ;;
25884 esac
25886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25887 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25889 if test x$gcc_cv_libc_provides_ssp = xyes; then
25891 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25895 # Test for <sys/sdt.h> on the target.
25897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
25898 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
25899 have_sys_sdt_h=no
25900 if test -f $target_header_dir/sys/sdt.h; then
25902 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
25905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
25906 $as_echo "$have_sys_sdt_h" >&6; }
25908 # Check if TFmode long double should be used by default or not.
25909 # Some glibc targets used DFmode long double, but with glibc 2.4
25910 # and later they can use TFmode.
25911 case "$target" in
25912 powerpc*-*-linux* | \
25913 sparc*-*-linux* | \
25914 s390*-*-linux* | \
25915 alpha*-*-linux*)
25917 # Check whether --with-long-double-128 was given.
25918 if test "${with_long_double_128+set}" = set; then :
25919 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
25920 else
25921 gcc_cv_target_ldbl128=no
25922 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25923 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
25924 && gcc_cv_target_ldbl128=yes
25929 esac
25930 if test x$gcc_cv_target_ldbl128 = xyes; then
25932 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
25937 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
25938 gcc_cv_target_dl_iterate_phdr=unknown
25939 case "$target" in
25940 *-*-solaris2*)
25941 # <link.h> needs both a dl_iterate_phdr declaration and support for
25942 # compilation with largefile support.
25943 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
25944 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
25945 gcc_cv_target_dl_iterate_phdr=yes
25946 else
25947 gcc_cv_target_dl_iterate_phdr=no
25950 esac
25952 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
25954 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
25957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
25958 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
25960 # Find out what GC implementation we want, or may, use.
25962 # Check whether --with-gc was given.
25963 if test "${with_gc+set}" = set; then :
25964 withval=$with_gc; case "$withval" in
25965 page)
25966 GGC=ggc-$withval
25968 zone)
25969 GGC=ggc-$withval
25971 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25975 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
25977 esac
25978 else
25979 GGC=ggc-page
25983 echo "Using $GGC for garbage collection."
25985 # Libraries to use on the host. This will normally be set by the top
25986 # level Makefile. Here we simply capture the value for our Makefile.
25987 if test -z "${HOST_LIBS+set}"; then
25988 HOST_LIBS=
25992 # Use the system's zlib library.
25993 zlibdir=-L../zlib
25994 zlibinc="-I\$(srcdir)/../zlib"
25996 # Check whether --with-system-zlib was given.
25997 if test "${with_system_zlib+set}" = set; then :
25998 withval=$with_system_zlib; zlibdir=
25999 zlibinc=
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26008 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26009 # Check whether --enable-maintainer-mode was given.
26010 if test "${enable_maintainer_mode+set}" = set; then :
26011 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26012 else
26013 maintainer_mode=no
26017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26018 $as_echo "$maintainer_mode" >&6; }
26020 if test "$maintainer_mode" = "yes"; then
26021 MAINT=''
26022 else
26023 MAINT='#'
26026 # --------------
26027 # Language hooks
26028 # --------------
26030 # Make empty files to contain the specs and options for each language.
26031 # Then add #include lines to for a compiler that has specs and/or options.
26033 subdirs=
26034 lang_opt_files=
26035 lang_specs_files=
26036 lang_tree_files=
26037 # These (without "all_") are set in each config-lang.in.
26038 # `language' must be a single word so is spelled singularly.
26039 all_languages=
26040 all_compilers=
26041 all_outputs='Makefile'
26042 # List of language makefile fragments.
26043 all_lang_makefrags=
26044 # Additional files for gengtype
26045 all_gtfiles="$target_gtfiles"
26047 # These are the languages that are set in --enable-languages,
26048 # and are available in the GCC tree.
26049 all_selected_languages=
26051 # Add the language fragments.
26052 # Languages are added via two mechanisms. Some information must be
26053 # recorded in makefile variables, these are defined in config-lang.in.
26054 # We accumulate them and plug them into the main Makefile.
26055 # The other mechanism is a set of hooks for each of the main targets
26056 # like `clean', `install', etc.
26058 language_hooks="Make-hooks"
26060 for lang in ${srcdir}/*/config-lang.in
26062 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26064 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26065 if test "x$lang_alias" = x
26066 then
26067 echo "$lang doesn't set \$language." 1>&2
26068 exit 1
26070 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26071 subdirs="$subdirs $subdir"
26073 # $gcc_subdir is where the gcc integration files are to be found
26074 # for a language, both for internal compiler purposes (compiler
26075 # sources implementing front-end to GCC tree converters), and for
26076 # build infrastructure purposes (Make-lang.in, etc.)
26078 # This will be <subdir> (relative to $srcdir) if a line like
26079 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26080 # is found in <langdir>/config-lang.in, and will remain <langdir>
26081 # otherwise.
26083 # Except for the language alias (fetched above), the regular
26084 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26085 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26086 # only this and the language alias.
26088 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26089 if [ "$gcc_subdir" = "" ]; then
26090 gcc_subdir="$subdir"
26093 case ",$enable_languages," in
26094 *,$lang_alias,*)
26095 all_selected_languages="$all_selected_languages $lang_alias"
26096 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26097 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26100 esac
26102 language=
26103 boot_language=
26104 compilers=
26105 outputs=
26106 gtfiles=
26107 subdir_requires=
26108 . ${srcdir}/$gcc_subdir/config-lang.in
26109 if test "x$language" = x
26110 then
26111 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26112 exit 1
26115 ok=:
26116 case ",$enable_languages," in
26117 *,$lang_alias,*) ;;
26119 for i in $subdir_requires; do
26120 test -f "${srcdir}/$i/config-lang.in" && continue
26121 ok=false
26122 break
26123 done
26125 esac
26126 $ok || continue
26128 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26129 if test -f $srcdir/$gcc_subdir/lang.opt; then
26130 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26131 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26133 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26134 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26136 all_languages="$all_languages $language"
26137 all_compilers="$all_compilers $compilers"
26138 all_outputs="$all_outputs $outputs"
26139 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26140 case ",$enable_languages," in
26141 *,lto,*)
26143 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26145 enable_lto=yes
26148 *) ;;
26149 esac
26150 done
26152 # Pick up gtfiles for c
26153 gtfiles=
26154 . ${srcdir}/c-config-lang.in
26155 all_gtfiles="$all_gtfiles [c] $gtfiles"
26157 check_languages=
26158 for language in $all_selected_languages
26160 check_languages="$check_languages check-$language"
26161 done
26163 # We link each language in with a set of hooks, reached indirectly via
26164 # lang.${target}. Only do so for selected languages.
26166 rm -f Make-hooks
26167 touch Make-hooks
26168 target_list="all.cross start.encap rest.encap tags \
26169 install-common install-man install-info install-pdf install-html dvi \
26170 pdf html uninstall info man srcextra srcman srcinfo \
26171 mostlyclean clean distclean maintainer-clean install-plugin"
26173 for t in $target_list
26176 for lang in $all_selected_languages
26178 x="$x $lang.$t"
26179 done
26180 echo "lang.$t: $x" >> Make-hooks
26181 done
26183 # --------
26184 # Option include files
26185 # --------
26187 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26188 option_includes="option-includes.mk"
26191 # --------
26192 # UNSORTED
26193 # --------
26195 # Create .gdbinit.
26197 echo "dir ." > .gdbinit
26198 echo "dir ${srcdir}" >> .gdbinit
26199 if test x$gdb_needs_out_file_path = xyes
26200 then
26201 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26203 if test "x$subdirs" != x; then
26204 for s in $subdirs
26206 echo "dir ${srcdir}/$s" >> .gdbinit
26207 done
26209 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26211 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26215 # Find a directory in which to install a shared libgcc.
26217 # Check whether --enable-version-specific-runtime-libs was given.
26218 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26219 enableval=$enable_version_specific_runtime_libs;
26224 # Check whether --with-slibdir was given.
26225 if test "${with_slibdir+set}" = set; then :
26226 withval=$with_slibdir; slibdir="$with_slibdir"
26227 else
26228 if test "${enable_version_specific_runtime_libs+set}" = set; then
26229 slibdir='$(libsubdir)'
26230 elif test "$host" != "$target"; then
26231 slibdir='$(build_tooldir)/lib'
26232 else
26233 slibdir='$(libdir)'
26239 # Set default prefix canonicalization.
26241 # Check whether --enable-canonical-prefixes was given.
26242 if test "${enable_canonical_prefixes+set}" = set; then :
26243 enableval=$enable_canonical_prefixes;
26244 else
26245 enable_canonical_prefixes=yes
26248 if test x"$enable_canonical_prefixes" = xyes; then
26250 $as_echo "#define ENABLE_CANONICAL_PREFIXES 1" >>confdefs.h
26254 # Substitute configuration variables
26317 # Echo link setup.
26318 if test x${build} = x${host} ; then
26319 if test x${host} = x${target} ; then
26320 echo "Links are now set up to build a native compiler for ${target}." 1>&2
26321 else
26322 echo "Links are now set up to build a cross-compiler" 1>&2
26323 echo " from ${host} to ${target}." 1>&2
26325 else
26326 if test x${host} = x${target} ; then
26327 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26328 echo " for ${target}." 1>&2
26329 else
26330 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26331 echo " from ${host} to ${target}." 1>&2
26343 if test "x${CLOOGLIBS}" != "x" ; then
26345 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26349 # Check for plugin support
26350 # Check whether --enable-plugin was given.
26351 if test "${enable_plugin+set}" = set; then :
26352 enableval=$enable_plugin; enable_plugin=$enableval
26353 else
26354 enable_plugin=yes; default_plugin=yes
26358 pluginlibs=
26360 case "${host}" in
26361 *-*-darwin*)
26362 if test x$build = x$host; then
26363 export_sym_check="nm${exeext} -g"
26364 elif test x$host = x$target; then
26365 export_sym_check="$gcc_cv_nm -g"
26366 else
26367 export_sym_check=
26371 if test x$build = x$host; then
26372 export_sym_check="objdump${exeext} -T"
26373 elif test x$host = x$target; then
26374 export_sym_check="$gcc_cv_objdump -T"
26375 else
26376 export_sym_check=
26379 esac
26381 if test x"$enable_plugin" = x"yes"; then
26383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26384 $as_echo_n "checking for exported symbols... " >&6; }
26385 if test "x$export_sym_check" != x; then
26386 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26387 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
26388 if $export_sym_check conftest | grep foobar > /dev/null; then
26389 : # No need to use a flag
26390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26391 $as_echo "yes" >&6; }
26392 else
26393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26394 $as_echo "yes" >&6; }
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26396 $as_echo_n "checking for -rdynamic... " >&6; }
26397 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
26398 if $export_sym_check conftest | grep foobar > /dev/null; then
26399 plugin_rdynamic=yes
26400 pluginlibs="-rdynamic"
26401 else
26402 plugin_rdynamic=no
26403 enable_plugin=no
26405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26406 $as_echo "$plugin_rdynamic" >&6; }
26408 else
26409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26410 $as_echo "unable to check" >&6; }
26413 # Check -ldl
26414 saved_LIBS="$LIBS"
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26416 $as_echo_n "checking for library containing dlopen... " >&6; }
26417 if test "${ac_cv_search_dlopen+set}" = set; then :
26418 $as_echo_n "(cached) " >&6
26419 else
26420 ac_func_search_save_LIBS=$LIBS
26421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26422 /* end confdefs.h. */
26424 /* Override any GCC internal prototype to avoid an error.
26425 Use char because int might match the return type of a GCC
26426 builtin and then its argument prototype would still apply. */
26427 #ifdef __cplusplus
26428 extern "C"
26429 #endif
26430 char dlopen ();
26432 main ()
26434 return dlopen ();
26436 return 0;
26438 _ACEOF
26439 for ac_lib in '' dl; do
26440 if test -z "$ac_lib"; then
26441 ac_res="none required"
26442 else
26443 ac_res=-l$ac_lib
26444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26446 if ac_fn_c_try_link "$LINENO"; then :
26447 ac_cv_search_dlopen=$ac_res
26449 rm -f core conftest.err conftest.$ac_objext \
26450 conftest$ac_exeext
26451 if test "${ac_cv_search_dlopen+set}" = set; then :
26452 break
26454 done
26455 if test "${ac_cv_search_dlopen+set}" = set; then :
26457 else
26458 ac_cv_search_dlopen=no
26460 rm conftest.$ac_ext
26461 LIBS=$ac_func_search_save_LIBS
26463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
26464 $as_echo "$ac_cv_search_dlopen" >&6; }
26465 ac_res=$ac_cv_search_dlopen
26466 if test "$ac_res" != no; then :
26467 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26471 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
26472 pluginlibs="$pluginlibs -ldl"
26474 LIBS="$saved_LIBS"
26476 # Check that we can build shared objects with -fPIC -shared
26477 saved_LDFLAGS="$LDFLAGS"
26478 saved_CFLAGS="$CFLAGS"
26479 case "${host}" in
26480 *-*-darwin*)
26481 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26482 CFLAGS="$CFLAGS -fPIC"
26483 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
26486 CFLAGS="$CFLAGS -fPIC"
26487 LDFLAGS="$LDFLAGS -fPIC -shared"
26489 esac
26490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26491 $as_echo_n "checking for -fPIC -shared... " >&6; }
26492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26493 /* end confdefs.h. */
26494 extern int X;
26496 main ()
26498 return X == 0;
26500 return 0;
26502 _ACEOF
26503 if ac_fn_c_try_link "$LINENO"; then :
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26505 $as_echo "yes" >&6; }; have_pic_shared=yes
26506 else
26507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26508 $as_echo "no" >&6; }; have_pic_shared=no
26510 rm -f core conftest.err conftest.$ac_objext \
26511 conftest$ac_exeext conftest.$ac_ext
26512 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
26513 pluginlibs=
26514 enable_plugin=no
26516 LDFLAGS="$saved_LDFLAGS"
26517 CFLAGS="$saved_CFLAGS"
26519 # If plugin support had been requested but not available, fail.
26520 if test x"$enable_plugin" = x"no" ; then
26521 if test x"$default_plugin" != x"yes"; then
26522 as_fn_error "
26523 Building GCC with plugin support requires a host that supports
26524 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
26531 if test x"$enable_plugin" = x"yes"; then
26533 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
26538 # Check whether --enable-libquadmath-support was given.
26539 if test "${enable_libquadmath_support+set}" = set; then :
26540 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
26541 else
26542 ENABLE_LIBQUADMATH_SUPPORT=yes
26545 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
26547 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
26552 # Configure the subdirectories
26553 # AC_CONFIG_SUBDIRS($subdirs)
26555 # Create the Makefile
26556 # and configure language subdirectories
26557 ac_config_files="$ac_config_files $all_outputs"
26560 ac_config_commands="$ac_config_commands default"
26562 cat >confcache <<\_ACEOF
26563 # This file is a shell script that caches the results of configure
26564 # tests run on this system so they can be shared between configure
26565 # scripts and configure runs, see configure's option --config-cache.
26566 # It is not useful on other systems. If it contains results you don't
26567 # want to keep, you may remove or edit it.
26569 # config.status only pays attention to the cache file if you give it
26570 # the --recheck option to rerun configure.
26572 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26573 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26574 # following values.
26576 _ACEOF
26578 # The following way of writing the cache mishandles newlines in values,
26579 # but we know of no workaround that is simple, portable, and efficient.
26580 # So, we kill variables containing newlines.
26581 # Ultrix sh set writes to stderr and can't be redirected directly,
26582 # and sets the high bit in the cache file unless we assign to the vars.
26584 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26585 eval ac_val=\$$ac_var
26586 case $ac_val in #(
26587 *${as_nl}*)
26588 case $ac_var in #(
26589 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26590 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26591 esac
26592 case $ac_var in #(
26593 _ | IFS | as_nl) ;; #(
26594 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26595 *) { eval $ac_var=; unset $ac_var;} ;;
26596 esac ;;
26597 esac
26598 done
26600 (set) 2>&1 |
26601 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26602 *${as_nl}ac_space=\ *)
26603 # `set' does not quote correctly, so add quotes: double-quote
26604 # substitution turns \\\\ into \\, and sed turns \\ into \.
26605 sed -n \
26606 "s/'/'\\\\''/g;
26607 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26608 ;; #(
26610 # `set' quotes correctly as required by POSIX, so do not add quotes.
26611 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26613 esac |
26614 sort
26616 sed '
26617 /^ac_cv_env_/b end
26618 t clear
26619 :clear
26620 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26621 t end
26622 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26623 :end' >>confcache
26624 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26625 if test -w "$cache_file"; then
26626 test "x$cache_file" != "x/dev/null" &&
26627 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26628 $as_echo "$as_me: updating cache $cache_file" >&6;}
26629 cat confcache >$cache_file
26630 else
26631 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26632 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26635 rm -f confcache
26637 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26638 # Let make expand exec_prefix.
26639 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26641 DEFS=-DHAVE_CONFIG_H
26643 ac_libobjs=
26644 ac_ltlibobjs=
26645 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26646 # 1. Remove the extension, and $U if already installed.
26647 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26648 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26649 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26650 # will be set to the directory where LIBOBJS objects are built.
26651 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26652 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26653 done
26654 LIBOBJS=$ac_libobjs
26656 LTLIBOBJS=$ac_ltlibobjs
26661 : ${CONFIG_STATUS=./config.status}
26662 ac_write_fail=0
26663 ac_clean_files_save=$ac_clean_files
26664 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26665 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26666 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26667 as_write_fail=0
26668 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26669 #! $SHELL
26670 # Generated by $as_me.
26671 # Run this file to recreate the current configuration.
26672 # Compiler output produced by configure, useful for debugging
26673 # configure, is in config.log if it exists.
26675 debug=false
26676 ac_cs_recheck=false
26677 ac_cs_silent=false
26679 SHELL=\${CONFIG_SHELL-$SHELL}
26680 export SHELL
26681 _ASEOF
26682 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26683 ## -------------------- ##
26684 ## M4sh Initialization. ##
26685 ## -------------------- ##
26687 # Be more Bourne compatible
26688 DUALCASE=1; export DUALCASE # for MKS sh
26689 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26690 emulate sh
26691 NULLCMD=:
26692 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26693 # is contrary to our usage. Disable this feature.
26694 alias -g '${1+"$@"}'='"$@"'
26695 setopt NO_GLOB_SUBST
26696 else
26697 case `(set -o) 2>/dev/null` in #(
26698 *posix*) :
26699 set -o posix ;; #(
26700 *) :
26702 esac
26706 as_nl='
26708 export as_nl
26709 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26710 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26711 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26712 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26713 # Prefer a ksh shell builtin over an external printf program on Solaris,
26714 # but without wasting forks for bash or zsh.
26715 if test -z "$BASH_VERSION$ZSH_VERSION" \
26716 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26717 as_echo='print -r --'
26718 as_echo_n='print -rn --'
26719 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26720 as_echo='printf %s\n'
26721 as_echo_n='printf %s'
26722 else
26723 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26724 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26725 as_echo_n='/usr/ucb/echo -n'
26726 else
26727 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26728 as_echo_n_body='eval
26729 arg=$1;
26730 case $arg in #(
26731 *"$as_nl"*)
26732 expr "X$arg" : "X\\(.*\\)$as_nl";
26733 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26734 esac;
26735 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26737 export as_echo_n_body
26738 as_echo_n='sh -c $as_echo_n_body as_echo'
26740 export as_echo_body
26741 as_echo='sh -c $as_echo_body as_echo'
26744 # The user is always right.
26745 if test "${PATH_SEPARATOR+set}" != set; then
26746 PATH_SEPARATOR=:
26747 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26748 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26749 PATH_SEPARATOR=';'
26754 # IFS
26755 # We need space, tab and new line, in precisely that order. Quoting is
26756 # there to prevent editors from complaining about space-tab.
26757 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26758 # splitting by setting IFS to empty value.)
26759 IFS=" "" $as_nl"
26761 # Find who we are. Look in the path if we contain no directory separator.
26762 case $0 in #((
26763 *[\\/]* ) as_myself=$0 ;;
26764 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26765 for as_dir in $PATH
26767 IFS=$as_save_IFS
26768 test -z "$as_dir" && as_dir=.
26769 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26770 done
26771 IFS=$as_save_IFS
26774 esac
26775 # We did not find ourselves, most probably we were run as `sh COMMAND'
26776 # in which case we are not to be found in the path.
26777 if test "x$as_myself" = x; then
26778 as_myself=$0
26780 if test ! -f "$as_myself"; then
26781 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26782 exit 1
26785 # Unset variables that we do not need and which cause bugs (e.g. in
26786 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26787 # suppresses any "Segmentation fault" message there. '((' could
26788 # trigger a bug in pdksh 5.2.14.
26789 for as_var in BASH_ENV ENV MAIL MAILPATH
26790 do eval test x\${$as_var+set} = xset \
26791 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26792 done
26793 PS1='$ '
26794 PS2='> '
26795 PS4='+ '
26797 # NLS nuisances.
26798 LC_ALL=C
26799 export LC_ALL
26800 LANGUAGE=C
26801 export LANGUAGE
26803 # CDPATH.
26804 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26807 # as_fn_error ERROR [LINENO LOG_FD]
26808 # ---------------------------------
26809 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26810 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26811 # script with status $?, using 1 if that was 0.
26812 as_fn_error ()
26814 as_status=$?; test $as_status -eq 0 && as_status=1
26815 if test "$3"; then
26816 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26817 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26819 $as_echo "$as_me: error: $1" >&2
26820 as_fn_exit $as_status
26821 } # as_fn_error
26824 # as_fn_set_status STATUS
26825 # -----------------------
26826 # Set $? to STATUS, without forking.
26827 as_fn_set_status ()
26829 return $1
26830 } # as_fn_set_status
26832 # as_fn_exit STATUS
26833 # -----------------
26834 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26835 as_fn_exit ()
26837 set +e
26838 as_fn_set_status $1
26839 exit $1
26840 } # as_fn_exit
26842 # as_fn_unset VAR
26843 # ---------------
26844 # Portably unset VAR.
26845 as_fn_unset ()
26847 { eval $1=; unset $1;}
26849 as_unset=as_fn_unset
26850 # as_fn_append VAR VALUE
26851 # ----------------------
26852 # Append the text in VALUE to the end of the definition contained in VAR. Take
26853 # advantage of any shell optimizations that allow amortized linear growth over
26854 # repeated appends, instead of the typical quadratic growth present in naive
26855 # implementations.
26856 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26857 eval 'as_fn_append ()
26859 eval $1+=\$2
26861 else
26862 as_fn_append ()
26864 eval $1=\$$1\$2
26866 fi # as_fn_append
26868 # as_fn_arith ARG...
26869 # ------------------
26870 # Perform arithmetic evaluation on the ARGs, and store the result in the
26871 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26872 # must be portable across $(()) and expr.
26873 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26874 eval 'as_fn_arith ()
26876 as_val=$(( $* ))
26878 else
26879 as_fn_arith ()
26881 as_val=`expr "$@" || test $? -eq 1`
26883 fi # as_fn_arith
26886 if expr a : '\(a\)' >/dev/null 2>&1 &&
26887 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26888 as_expr=expr
26889 else
26890 as_expr=false
26893 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26894 as_basename=basename
26895 else
26896 as_basename=false
26899 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26900 as_dirname=dirname
26901 else
26902 as_dirname=false
26905 as_me=`$as_basename -- "$0" ||
26906 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26907 X"$0" : 'X\(//\)$' \| \
26908 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26909 $as_echo X/"$0" |
26910 sed '/^.*\/\([^/][^/]*\)\/*$/{
26911 s//\1/
26914 /^X\/\(\/\/\)$/{
26915 s//\1/
26918 /^X\/\(\/\).*/{
26919 s//\1/
26922 s/.*/./; q'`
26924 # Avoid depending upon Character Ranges.
26925 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26926 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26927 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26928 as_cr_digits='0123456789'
26929 as_cr_alnum=$as_cr_Letters$as_cr_digits
26931 ECHO_C= ECHO_N= ECHO_T=
26932 case `echo -n x` in #(((((
26933 -n*)
26934 case `echo 'xy\c'` in
26935 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26936 xy) ECHO_C='\c';;
26937 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26938 ECHO_T=' ';;
26939 esac;;
26941 ECHO_N='-n';;
26942 esac
26944 rm -f conf$$ conf$$.exe conf$$.file
26945 if test -d conf$$.dir; then
26946 rm -f conf$$.dir/conf$$.file
26947 else
26948 rm -f conf$$.dir
26949 mkdir conf$$.dir 2>/dev/null
26951 if (echo >conf$$.file) 2>/dev/null; then
26952 if ln -s conf$$.file conf$$ 2>/dev/null; then
26953 as_ln_s='ln -s'
26954 # ... but there are two gotchas:
26955 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26956 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26957 # In both cases, we have to default to `cp -p'.
26958 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26959 as_ln_s='cp -p'
26960 elif ln conf$$.file conf$$ 2>/dev/null; then
26961 as_ln_s=ln
26962 else
26963 as_ln_s='cp -p'
26965 else
26966 as_ln_s='cp -p'
26968 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26969 rmdir conf$$.dir 2>/dev/null
26972 # as_fn_mkdir_p
26973 # -------------
26974 # Create "$as_dir" as a directory, including parents if necessary.
26975 as_fn_mkdir_p ()
26978 case $as_dir in #(
26979 -*) as_dir=./$as_dir;;
26980 esac
26981 test -d "$as_dir" || eval $as_mkdir_p || {
26982 as_dirs=
26983 while :; do
26984 case $as_dir in #(
26985 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26986 *) as_qdir=$as_dir;;
26987 esac
26988 as_dirs="'$as_qdir' $as_dirs"
26989 as_dir=`$as_dirname -- "$as_dir" ||
26990 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26991 X"$as_dir" : 'X\(//\)[^/]' \| \
26992 X"$as_dir" : 'X\(//\)$' \| \
26993 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26994 $as_echo X"$as_dir" |
26995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26996 s//\1/
26999 /^X\(\/\/\)[^/].*/{
27000 s//\1/
27003 /^X\(\/\/\)$/{
27004 s//\1/
27007 /^X\(\/\).*/{
27008 s//\1/
27011 s/.*/./; q'`
27012 test -d "$as_dir" && break
27013 done
27014 test -z "$as_dirs" || eval "mkdir $as_dirs"
27015 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27018 } # as_fn_mkdir_p
27019 if mkdir -p . 2>/dev/null; then
27020 as_mkdir_p='mkdir -p "$as_dir"'
27021 else
27022 test -d ./-p && rmdir ./-p
27023 as_mkdir_p=false
27026 if test -x / >/dev/null 2>&1; then
27027 as_test_x='test -x'
27028 else
27029 if ls -dL / >/dev/null 2>&1; then
27030 as_ls_L_option=L
27031 else
27032 as_ls_L_option=
27034 as_test_x='
27035 eval sh -c '\''
27036 if test -d "$1"; then
27037 test -d "$1/.";
27038 else
27039 case $1 in #(
27040 -*)set "./$1";;
27041 esac;
27042 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27043 ???[sx]*):;;*)false;;esac;fi
27044 '\'' sh
27047 as_executable_p=$as_test_x
27049 # Sed expression to map a string onto a valid CPP name.
27050 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27052 # Sed expression to map a string onto a valid variable name.
27053 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27056 exec 6>&1
27057 ## ----------------------------------- ##
27058 ## Main body of $CONFIG_STATUS script. ##
27059 ## ----------------------------------- ##
27060 _ASEOF
27061 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27064 # Save the log message, to keep $0 and so on meaningful, and to
27065 # report actual input values of CONFIG_FILES etc. instead of their
27066 # values after options handling.
27067 ac_log="
27068 This file was extended by $as_me, which was
27069 generated by GNU Autoconf 2.64. Invocation command line was
27071 CONFIG_FILES = $CONFIG_FILES
27072 CONFIG_HEADERS = $CONFIG_HEADERS
27073 CONFIG_LINKS = $CONFIG_LINKS
27074 CONFIG_COMMANDS = $CONFIG_COMMANDS
27075 $ $0 $@
27077 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27080 _ACEOF
27082 case $ac_config_files in *"
27083 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27084 esac
27086 case $ac_config_headers in *"
27087 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27088 esac
27091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27092 # Files that config.status was made for.
27093 config_files="$ac_config_files"
27094 config_headers="$ac_config_headers"
27095 config_commands="$ac_config_commands"
27097 _ACEOF
27099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27100 ac_cs_usage="\
27101 \`$as_me' instantiates files and other configuration actions
27102 from templates according to the current configuration. Unless the files
27103 and actions are specified as TAGs, all are instantiated by default.
27105 Usage: $0 [OPTION]... [TAG]...
27107 -h, --help print this help, then exit
27108 -V, --version print version number and configuration settings, then exit
27109 -q, --quiet, --silent
27110 do not print progress messages
27111 -d, --debug don't remove temporary files
27112 --recheck update $as_me by reconfiguring in the same conditions
27113 --file=FILE[:TEMPLATE]
27114 instantiate the configuration file FILE
27115 --header=FILE[:TEMPLATE]
27116 instantiate the configuration header FILE
27118 Configuration files:
27119 $config_files
27121 Configuration headers:
27122 $config_headers
27124 Configuration commands:
27125 $config_commands
27127 Report bugs to the package provider."
27129 _ACEOF
27130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27131 ac_cs_version="\\
27132 config.status
27133 configured by $0, generated by GNU Autoconf 2.64,
27134 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27136 Copyright (C) 2009 Free Software Foundation, Inc.
27137 This config.status script is free software; the Free Software Foundation
27138 gives unlimited permission to copy, distribute and modify it."
27140 ac_pwd='$ac_pwd'
27141 srcdir='$srcdir'
27142 AWK='$AWK'
27143 test -n "\$AWK" || AWK=awk
27144 _ACEOF
27146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27147 # The default lists apply if the user does not specify any file.
27148 ac_need_defaults=:
27149 while test $# != 0
27151 case $1 in
27152 --*=*)
27153 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27154 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27155 ac_shift=:
27158 ac_option=$1
27159 ac_optarg=$2
27160 ac_shift=shift
27162 esac
27164 case $ac_option in
27165 # Handling of the options.
27166 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27167 ac_cs_recheck=: ;;
27168 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27169 $as_echo "$ac_cs_version"; exit ;;
27170 --debug | --debu | --deb | --de | --d | -d )
27171 debug=: ;;
27172 --file | --fil | --fi | --f )
27173 $ac_shift
27174 case $ac_optarg in
27175 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27176 esac
27177 as_fn_append CONFIG_FILES " '$ac_optarg'"
27178 ac_need_defaults=false;;
27179 --header | --heade | --head | --hea )
27180 $ac_shift
27181 case $ac_optarg in
27182 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27183 esac
27184 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27185 ac_need_defaults=false;;
27186 --he | --h)
27187 # Conflict between --help and --header
27188 as_fn_error "ambiguous option: \`$1'
27189 Try \`$0 --help' for more information.";;
27190 --help | --hel | -h )
27191 $as_echo "$ac_cs_usage"; exit ;;
27192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27193 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27194 ac_cs_silent=: ;;
27196 # This is an error.
27197 -*) as_fn_error "unrecognized option: \`$1'
27198 Try \`$0 --help' for more information." ;;
27200 *) as_fn_append ac_config_targets " $1"
27201 ac_need_defaults=false ;;
27203 esac
27204 shift
27205 done
27207 ac_configure_extra_args=
27209 if $ac_cs_silent; then
27210 exec 6>/dev/null
27211 ac_configure_extra_args="$ac_configure_extra_args --silent"
27214 _ACEOF
27215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27216 if \$ac_cs_recheck; then
27217 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27218 shift
27219 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27220 CONFIG_SHELL='$SHELL'
27221 export CONFIG_SHELL
27222 exec "\$@"
27225 _ACEOF
27226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27227 exec 5>>config.log
27229 echo
27230 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27231 ## Running $as_me. ##
27232 _ASBOX
27233 $as_echo "$ac_log"
27234 } >&5
27236 _ACEOF
27237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27239 # INIT-COMMANDS
27241 subdirs='$subdirs'
27243 _ACEOF
27245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27247 # Handling of arguments.
27248 for ac_config_target in $ac_config_targets
27250 case $ac_config_target in
27251 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27252 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27253 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27254 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27255 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27256 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27258 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27259 esac
27260 done
27263 # If the user did not use the arguments to specify the items to instantiate,
27264 # then the envvar interface is used. Set only those that are not.
27265 # We use the long form for the default assignment because of an extremely
27266 # bizarre bug on SunOS 4.1.3.
27267 if $ac_need_defaults; then
27268 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27269 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27270 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27273 # Have a temporary directory for convenience. Make it in the build tree
27274 # simply because there is no reason against having it here, and in addition,
27275 # creating and moving files from /tmp can sometimes cause problems.
27276 # Hook for its removal unless debugging.
27277 # Note that there is a small window in which the directory will not be cleaned:
27278 # after its creation but before its name has been assigned to `$tmp'.
27279 $debug ||
27281 tmp=
27282 trap 'exit_status=$?
27283 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27285 trap 'as_fn_exit 1' 1 2 13 15
27287 # Create a (secure) tmp directory for tmp files.
27290 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27291 test -n "$tmp" && test -d "$tmp"
27292 } ||
27294 tmp=./conf$$-$RANDOM
27295 (umask 077 && mkdir "$tmp")
27296 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27298 # Set up the scripts for CONFIG_FILES section.
27299 # No need to generate them if there are no CONFIG_FILES.
27300 # This happens for instance with `./config.status config.h'.
27301 if test -n "$CONFIG_FILES"; then
27303 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27304 ac_cs_awk_getline=:
27305 ac_cs_awk_pipe_init=
27306 ac_cs_awk_read_file='
27307 while ((getline aline < (F[key])) > 0)
27308 print(aline)
27309 close(F[key])'
27310 ac_cs_awk_pipe_fini=
27311 else
27312 ac_cs_awk_getline=false
27313 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27314 ac_cs_awk_read_file='
27315 print "|#_!!_#|"
27316 print "cat " F[key] " &&"
27317 '$ac_cs_awk_pipe_init
27318 # The final `:' finishes the AND list.
27319 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27321 ac_cr=`echo X | tr X '\015'`
27322 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27323 # But we know of no other shell where ac_cr would be empty at this
27324 # point, so we can use a bashism as a fallback.
27325 if test "x$ac_cr" = x; then
27326 eval ac_cr=\$\'\\r\'
27328 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27329 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27330 ac_cs_awk_cr='\r'
27331 else
27332 ac_cs_awk_cr=$ac_cr
27335 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27336 _ACEOF
27338 # Create commands to substitute file output variables.
27340 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27341 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27342 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27343 echo "_ACAWK" &&
27344 echo "_ACEOF"
27345 } >conf$$files.sh &&
27346 . ./conf$$files.sh ||
27347 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27348 rm -f conf$$files.sh
27351 echo "cat >conf$$subs.awk <<_ACEOF" &&
27352 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27353 echo "_ACEOF"
27354 } >conf$$subs.sh ||
27355 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27356 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27357 ac_delim='%!_!# '
27358 for ac_last_try in false false false false false :; do
27359 . ./conf$$subs.sh ||
27360 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27362 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27363 if test $ac_delim_n = $ac_delim_num; then
27364 break
27365 elif $ac_last_try; then
27366 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27367 else
27368 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27370 done
27371 rm -f conf$$subs.sh
27373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27374 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27375 _ACEOF
27376 sed -n '
27378 s/^/S["/; s/!.*/"]=/
27381 s/^[^!]*!//
27382 :repl
27383 t repl
27384 s/'"$ac_delim"'$//
27385 t delim
27388 s/\(.\{148\}\).*/\1/
27389 t more1
27390 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27393 b repl
27394 :more1
27395 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27398 s/.\{148\}//
27399 t nl
27400 :delim
27402 s/\(.\{148\}\).*/\1/
27403 t more2
27404 s/["\\]/\\&/g; s/^/"/; s/$/"/
27407 :more2
27408 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27411 s/.\{148\}//
27412 t delim
27413 ' <conf$$subs.awk | sed '
27414 /^[^""]/{
27416 s/\n//
27418 ' >>$CONFIG_STATUS || ac_write_fail=1
27419 rm -f conf$$subs.awk
27420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27421 _ACAWK
27422 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27423 for (key in S) S_is_set[key] = 1
27424 FS = "\a"
27425 \$ac_cs_awk_pipe_init
27428 line = $ 0
27429 nfields = split(line, field, "@")
27430 substed = 0
27431 len = length(field[1])
27432 for (i = 2; i < nfields; i++) {
27433 key = field[i]
27434 keylen = length(key)
27435 if (S_is_set[key]) {
27436 value = S[key]
27437 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27438 len += length(value) + length(field[++i])
27439 substed = 1
27440 } else
27441 len += 1 + keylen
27443 if (nfields == 3 && !substed) {
27444 key = field[2]
27445 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27446 \$ac_cs_awk_read_file
27447 next
27450 print line
27452 \$ac_cs_awk_pipe_fini
27453 _ACAWK
27454 _ACEOF
27455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27456 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27457 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27458 else
27460 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27461 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27462 _ACEOF
27464 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27465 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27466 # trailing colons and then remove the whole line if VPATH becomes empty
27467 # (actually we leave an empty line to preserve line numbers).
27468 if test "x$srcdir" = x.; then
27469 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27470 s/:*\$(srcdir):*/:/
27471 s/:*\${srcdir}:*/:/
27472 s/:*@srcdir@:*/:/
27473 s/^\([^=]*=[ ]*\):*/\1/
27474 s/:*$//
27475 s/^[^=]*=[ ]*$//
27479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27480 fi # test -n "$CONFIG_FILES"
27482 # Set up the scripts for CONFIG_HEADERS section.
27483 # No need to generate them if there are no CONFIG_HEADERS.
27484 # This happens for instance with `./config.status Makefile'.
27485 if test -n "$CONFIG_HEADERS"; then
27486 cat >"$tmp/defines.awk" <<\_ACAWK ||
27487 BEGIN {
27488 _ACEOF
27490 # Transform confdefs.h into an awk script `defines.awk', embedded as
27491 # here-document in config.status, that substitutes the proper values into
27492 # config.h.in to produce config.h.
27494 # Create a delimiter string that does not exist in confdefs.h, to ease
27495 # handling of long lines.
27496 ac_delim='%!_!# '
27497 for ac_last_try in false false :; do
27498 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27499 if test -z "$ac_t"; then
27500 break
27501 elif $ac_last_try; then
27502 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27503 else
27504 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27506 done
27508 # For the awk script, D is an array of macro values keyed by name,
27509 # likewise P contains macro parameters if any. Preserve backslash
27510 # newline sequences.
27512 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27513 sed -n '
27514 s/.\{148\}/&'"$ac_delim"'/g
27515 t rset
27516 :rset
27517 s/^[ ]*#[ ]*define[ ][ ]*/ /
27518 t def
27520 :def
27521 s/\\$//
27522 t bsnl
27523 s/["\\]/\\&/g
27524 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27525 D["\1"]=" \3"/p
27526 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27528 :bsnl
27529 s/["\\]/\\&/g
27530 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27531 D["\1"]=" \3\\\\\\n"\\/p
27532 t cont
27533 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27534 t cont
27536 :cont
27538 s/.\{148\}/&'"$ac_delim"'/g
27539 t clear
27540 :clear
27541 s/\\$//
27542 t bsnlc
27543 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27545 :bsnlc
27546 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27547 b cont
27548 ' <confdefs.h | sed '
27549 s/'"$ac_delim"'/"\\\
27550 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27553 for (key in D) D_is_set[key] = 1
27554 FS = "\a"
27556 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27557 line = \$ 0
27558 split(line, arg, " ")
27559 if (arg[1] == "#") {
27560 defundef = arg[2]
27561 mac1 = arg[3]
27562 } else {
27563 defundef = substr(arg[1], 2)
27564 mac1 = arg[2]
27566 split(mac1, mac2, "(") #)
27567 macro = mac2[1]
27568 prefix = substr(line, 1, index(line, defundef) - 1)
27569 if (D_is_set[macro]) {
27570 # Preserve the white space surrounding the "#".
27571 print prefix "define", macro P[macro] D[macro]
27572 next
27573 } else {
27574 # Replace #undef with comments. This is necessary, for example,
27575 # in the case of _POSIX_SOURCE, which is predefined and required
27576 # on some systems where configure will not decide to define it.
27577 if (defundef == "undef") {
27578 print "/*", prefix defundef, macro, "*/"
27579 next
27583 { print }
27584 _ACAWK
27585 _ACEOF
27586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27587 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27588 fi # test -n "$CONFIG_HEADERS"
27591 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27592 shift
27593 for ac_tag
27595 case $ac_tag in
27596 :[FHLC]) ac_mode=$ac_tag; continue;;
27597 esac
27598 case $ac_mode$ac_tag in
27599 :[FHL]*:*);;
27600 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27601 :[FH]-) ac_tag=-:-;;
27602 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27603 esac
27604 ac_save_IFS=$IFS
27605 IFS=:
27606 set x $ac_tag
27607 IFS=$ac_save_IFS
27608 shift
27609 ac_file=$1
27610 shift
27612 case $ac_mode in
27613 :L) ac_source=$1;;
27614 :[FH])
27615 ac_file_inputs=
27616 for ac_f
27618 case $ac_f in
27619 -) ac_f="$tmp/stdin";;
27620 *) # Look for the file first in the build tree, then in the source tree
27621 # (if the path is not absolute). The absolute path cannot be DOS-style,
27622 # because $ac_f cannot contain `:'.
27623 test -f "$ac_f" ||
27624 case $ac_f in
27625 [\\/$]*) false;;
27626 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27627 esac ||
27628 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27629 esac
27630 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27631 as_fn_append ac_file_inputs " '$ac_f'"
27632 done
27634 # Let's still pretend it is `configure' which instantiates (i.e., don't
27635 # use $as_me), people would be surprised to read:
27636 # /* config.h. Generated by config.status. */
27637 configure_input='Generated from '`
27638 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27639 `' by configure.'
27640 if test x"$ac_file" != x-; then
27641 configure_input="$ac_file. $configure_input"
27642 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27643 $as_echo "$as_me: creating $ac_file" >&6;}
27645 # Neutralize special characters interpreted by sed in replacement strings.
27646 case $configure_input in #(
27647 *\&* | *\|* | *\\* )
27648 ac_sed_conf_input=`$as_echo "$configure_input" |
27649 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27650 *) ac_sed_conf_input=$configure_input;;
27651 esac
27653 case $ac_tag in
27654 *:-:* | *:-) cat >"$tmp/stdin" \
27655 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27656 esac
27658 esac
27660 ac_dir=`$as_dirname -- "$ac_file" ||
27661 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27662 X"$ac_file" : 'X\(//\)[^/]' \| \
27663 X"$ac_file" : 'X\(//\)$' \| \
27664 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27665 $as_echo X"$ac_file" |
27666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27667 s//\1/
27670 /^X\(\/\/\)[^/].*/{
27671 s//\1/
27674 /^X\(\/\/\)$/{
27675 s//\1/
27678 /^X\(\/\).*/{
27679 s//\1/
27682 s/.*/./; q'`
27683 as_dir="$ac_dir"; as_fn_mkdir_p
27684 ac_builddir=.
27686 case "$ac_dir" in
27687 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27689 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27690 # A ".." for each directory in $ac_dir_suffix.
27691 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27692 case $ac_top_builddir_sub in
27693 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27694 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27695 esac ;;
27696 esac
27697 ac_abs_top_builddir=$ac_pwd
27698 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27699 # for backward compatibility:
27700 ac_top_builddir=$ac_top_build_prefix
27702 case $srcdir in
27703 .) # We are building in place.
27704 ac_srcdir=.
27705 ac_top_srcdir=$ac_top_builddir_sub
27706 ac_abs_top_srcdir=$ac_pwd ;;
27707 [\\/]* | ?:[\\/]* ) # Absolute name.
27708 ac_srcdir=$srcdir$ac_dir_suffix;
27709 ac_top_srcdir=$srcdir
27710 ac_abs_top_srcdir=$srcdir ;;
27711 *) # Relative name.
27712 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27713 ac_top_srcdir=$ac_top_build_prefix$srcdir
27714 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27715 esac
27716 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27719 case $ac_mode in
27722 # CONFIG_FILE
27725 _ACEOF
27727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27728 # If the template does not know about datarootdir, expand it.
27729 # FIXME: This hack should be removed a few years after 2.60.
27730 ac_datarootdir_hack=; ac_datarootdir_seen=
27731 ac_sed_dataroot='
27732 /datarootdir/ {
27736 /@datadir@/p
27737 /@docdir@/p
27738 /@infodir@/p
27739 /@localedir@/p
27740 /@mandir@/p'
27741 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27742 *datarootdir*) ac_datarootdir_seen=yes;;
27743 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27745 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27746 _ACEOF
27747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27748 ac_datarootdir_hack='
27749 s&@datadir@&$datadir&g
27750 s&@docdir@&$docdir&g
27751 s&@infodir@&$infodir&g
27752 s&@localedir@&$localedir&g
27753 s&@mandir@&$mandir&g
27754 s&\\\${datarootdir}&$datarootdir&g' ;;
27755 esac
27756 _ACEOF
27758 # Neutralize VPATH when `$srcdir' = `.'.
27759 # Shell code in configure.ac might set extrasub.
27760 # FIXME: do we really want to maintain this feature?
27761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27762 ac_sed_extra="$ac_vpsub
27763 $extrasub
27764 _ACEOF
27765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27767 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27768 s|@configure_input@|$ac_sed_conf_input|;t t
27769 s&@top_builddir@&$ac_top_builddir_sub&;t t
27770 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27771 s&@srcdir@&$ac_srcdir&;t t
27772 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27773 s&@top_srcdir@&$ac_top_srcdir&;t t
27774 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27775 s&@builddir@&$ac_builddir&;t t
27776 s&@abs_builddir@&$ac_abs_builddir&;t t
27777 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27778 $ac_datarootdir_hack
27780 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27781 if $ac_cs_awk_getline; then
27782 $AWK -f "$tmp/subs.awk"
27783 else
27784 $AWK -f "$tmp/subs.awk" | $SHELL
27785 fi >$tmp/out \
27786 || as_fn_error "could not create $ac_file" "$LINENO" 5
27788 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27789 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27790 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27792 which seems to be undefined. Please make sure it is defined." >&5
27793 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27794 which seems to be undefined. Please make sure it is defined." >&2;}
27796 rm -f "$tmp/stdin"
27797 case $ac_file in
27798 -) cat "$tmp/out" && rm -f "$tmp/out";;
27799 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27800 esac \
27801 || as_fn_error "could not create $ac_file" "$LINENO" 5
27805 # CONFIG_HEADER
27807 if test x"$ac_file" != x-; then
27809 $as_echo "/* $configure_input */" \
27810 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27811 } >"$tmp/config.h" \
27812 || as_fn_error "could not create $ac_file" "$LINENO" 5
27813 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27814 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27815 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27816 else
27817 rm -f "$ac_file"
27818 mv "$tmp/config.h" "$ac_file" \
27819 || as_fn_error "could not create $ac_file" "$LINENO" 5
27821 else
27822 $as_echo "/* $configure_input */" \
27823 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27824 || as_fn_error "could not create -" "$LINENO" 5
27828 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27829 $as_echo "$as_me: executing $ac_file commands" >&6;}
27831 esac
27834 case $ac_file$ac_mode in
27835 "as":F) chmod +x as ;;
27836 "collect-ld":F) chmod +x collect-ld ;;
27837 "nm":F) chmod +x nm ;;
27838 "default":C)
27839 case ${CONFIG_HEADERS} in
27840 *auto-host.h:config.in*)
27841 echo > cstamp-h ;;
27842 esac
27843 # Make sure all the subdirs exist.
27844 for d in $subdirs doc build c-family
27846 test -d $d || mkdir $d
27847 done
27850 esac
27851 done # for ac_tag
27854 as_fn_exit 0
27855 _ACEOF
27856 ac_clean_files=$ac_clean_files_save
27858 test $ac_write_fail = 0 ||
27859 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27862 # configure is writing to config.log, and then calls config.status.
27863 # config.status does its own redirection, appending to config.log.
27864 # Unfortunately, on DOS this fails, as config.log is still kept open
27865 # by configure, so config.status won't be able to write to it; its
27866 # output is simply discarded. So we exec the FD to /dev/null,
27867 # effectively closing config.log, so it can be properly (re)opened and
27868 # appended to by config.status. When coming back to configure, we
27869 # need to make the FD available again.
27870 if test "$no_create" != yes; then
27871 ac_cs_success=:
27872 ac_config_status_args=
27873 test "$silent" = yes &&
27874 ac_config_status_args="$ac_config_status_args --quiet"
27875 exec 5>/dev/null
27876 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27877 exec 5>>config.log
27878 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27879 # would make configure fail if this is the last instruction.
27880 $ac_cs_success || as_fn_exit $?
27882 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27884 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}