]> gcc.gnu.org Git - gcc.git/blob - gcc/configure
cdfbaad4d9ed065154567cbc4d394b9ca69da822
[gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
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.
8 #
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 ## -------------------- ##
14
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 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
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"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
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=';'
78 }
79 fi
80
81
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"
88
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
94 do
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
100
101 ;;
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
107 fi
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
111 fi
112
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='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
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 *) :
147 ;;
148 esac
149 fi
150 "
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; }
156
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 :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
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
173
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
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
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
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
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
206 fi
207 fi
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
217
218
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+"$@"}
228 fi
229
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."
241 fi
242 exit 1
243 fi
244 fi
245 fi
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
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
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 ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
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/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
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"
326
327
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 ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
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 ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
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 ()
371 {
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
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
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
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
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
398 fi
399
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/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
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
425
426
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 '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
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; }
449
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
456 }
457
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;;
467 *)
468 ECHO_N='-n';;
469 esac
470
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
477 fi
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'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
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
503 fi
504
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=
512 fi
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
524 '
525 fi
526 as_executable_p=$as_test_x
527
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'"
530
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'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
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`
543
544 #
545 # Initializations.
546 #
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=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
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"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 ISLINC
608 ISLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 common_out_object_file
625 common_out_file
626 out_object_file
627 out_file
628 objc_boehm_gc
629 md_file
630 local_prefix
631 lang_tree_files
632 lang_specs_files
633 lang_opt_files
634 install
635 out_host_hook_obj
636 host_xm_defines
637 host_xm_include_list
638 host_xm_file_list
639 host_exeext
640 gcc_gxx_include_dir_add_sysroot
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 dollar
671 gcc_tooldir
672 enable_lto
673 MAINT
674 zlibinc
675 zlibdir
676 HOST_LIBS
677 GGC
678 libgcc_visibility
679 gcc_cv_readelf
680 gcc_cv_objdump
681 ORIGINAL_NM_FOR_TARGET
682 gcc_cv_nm
683 ORIGINAL_LD_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
685 gcc_cv_ld
686 ORIGINAL_AS_FOR_TARGET
687 gcc_cv_as
688 enable_fast_install
689 objdir
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 STRIP
696 OBJDUMP
697 ac_ct_DUMPBIN
698 DUMPBIN
699 LD
700 FGREP
701 SED
702 LIBTOOL
703 collect2
704 STMP_FIXINC
705 BUILD_LDFLAGS
706 BUILD_CXXFLAGS
707 BUILD_CFLAGS
708 CXX_FOR_BUILD
709 CC_FOR_BUILD
710 inhibit_libc
711 SYSTEM_HEADER_DIR
712 ALL
713 CROSS
714 CATOBJEXT
715 GENCAT
716 INSTOBJEXT
717 DATADIRNAME
718 CATALOGS
719 POSUB
720 GMSGFMT
721 XGETTEXT
722 INCINTL
723 LIBINTL_DEP
724 LIBINTL
725 USE_NLS
726 extra_opt_files
727 extra_modes_file
728 NATIVE_SYSTEM_HEADER_DIR
729 objext
730 manext
731 LIBICONV_DEP
732 LTLIBICONV
733 LIBICONV
734 LDEXP_LIB
735 EXTRA_GCC_LIBS
736 GNAT_LIBEXC
737 COLLECT2_LIBS
738 CXXCPP
739 AR
740 NM
741 BISON
742 FLEX
743 GENERATED_MANPAGES
744 BUILD_INFO
745 MAKEINFO
746 have_mktemp_command
747 make_compare_target
748 INSTALL_DATA
749 INSTALL_PROGRAM
750 INSTALL
751 ranlib_flags
752 RANLIB
753 LN
754 LN_S
755 AWK
756 SET_MAKE
757 REPORT_BUGS_TEXI
758 REPORT_BUGS_TO
759 PKGVERSION
760 CONFIGURE_SPECS
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
763 TARGET_SYSTEM_ROOT
764 SYSROOT_CFLAGS_FOR_TARGET
765 enable_shared
766 enable_fixed_point
767 enable_decimal_float
768 with_float
769 enable_multiarch
770 enable_multilib
771 coverage_flags
772 valgrind_command
773 valgrind_path_defines
774 valgrind_path
775 TREEBROWSER
776 nocommon_flag
777 noexception_flags
778 warn_cxxflags
779 warn_cflags
780 c_strict_warn
781 strict_warn
782 c_loose_warn
783 loose_warn
784 EGREP
785 GREP
786 CPP
787 PICFLAG_FOR_TARGET
788 OUTPUT_OPTION
789 NO_MINUS_C_MINUS_O
790 GNATMAKE
791 GNATBIND
792 ac_ct_CXX
793 CXXFLAGS
794 CXX
795 OBJEXT
796 EXEEXT
797 ac_ct_CC
798 CPPFLAGS
799 LDFLAGS
800 CFLAGS
801 CC
802 GENINSRC
803 target_subdir
804 host_subdir
805 build_subdir
806 build_libsubdir
807 target_noncanonical
808 target_os
809 target_vendor
810 target_cpu
811 target
812 host_os
813 host_vendor
814 host_cpu
815 host
816 build_os
817 build_vendor
818 build_cpu
819 build
820 target_alias
821 host_alias
822 build_alias
823 LIBS
824 ECHO_T
825 ECHO_N
826 ECHO_C
827 DEFS
828 mandir
829 localedir
830 libdir
831 psdir
832 pdfdir
833 dvidir
834 htmldir
835 infodir
836 docdir
837 oldincludedir
838 includedir
839 localstatedir
840 sharedstatedir
841 sysconfdir
842 datadir
843 datarootdir
844 libexecdir
845 sbindir
846 bindir
847 program_transform_name
848 prefix
849 exec_prefix
850 PACKAGE_URL
851 PACKAGE_BUGREPORT
852 PACKAGE_STRING
853 PACKAGE_VERSION
854 PACKAGE_TARNAME
855 PACKAGE_NAME
856 PATH_SEPARATOR
857 SHELL'
858 ac_subst_files='option_includes
859 language_hooks'
860 ac_user_opts='
861 enable_option_checking
862 with_build_libsubdir
863 with_local_prefix
864 with_gxx_include_dir
865 with_cpp_install_dir
866 enable_generated_files_in_srcdir
867 with_gnu_ld
868 with_ld
869 with_demangler_in_ld
870 with_gnu_as
871 with_as
872 enable_largefile
873 enable_werror_always
874 enable_checking
875 enable_coverage
876 enable_gather_detailed_mem_stats
877 with_stabs
878 enable_multilib
879 enable_multiarch
880 enable___cxa_atexit
881 enable_decimal_float
882 enable_fixed_point
883 enable_threads
884 enable_tls
885 enable_objc_gc
886 with_dwarf2
887 enable_shared
888 with_native_system_header_dir
889 with_build_sysroot
890 with_sysroot
891 with_specs
892 with_pkgversion
893 with_bugurl
894 enable_languages
895 with_multilib_list
896 enable_rpath
897 with_libiconv_prefix
898 enable_sjlj_exceptions
899 enable_secureplt
900 enable_leading_mingw64_underscores
901 enable_cld
902 enable_frame_pointer
903 enable_win32_registry
904 enable_static
905 with_pic
906 enable_fast_install
907 enable_libtool_lock
908 with_plugin_ld
909 enable_gnu_indirect_function
910 enable_initfini_array
911 enable_comdat
912 enable_gnu_unique_object
913 enable_linker_build_id
914 with_long_double_128
915 with_gc
916 with_system_zlib
917 enable_maintainer_mode
918 enable_version_specific_runtime_libs
919 enable_plugin
920 enable_libquadmath_support
921 with_linker_hash_style
922 '
923 ac_precious_vars='build_alias
924 host_alias
925 target_alias
926 CC
927 CFLAGS
928 LDFLAGS
929 LIBS
930 CPPFLAGS
931 CXX
932 CXXFLAGS
933 CCC
934 CPP
935 CXXCPP
936 GMPLIBS
937 GMPINC
938 ISLLIBS
939 ISLINC
940 CLOOGLIBS
941 CLOOGINC'
942
943
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
965
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'
991
992 ac_prev=
993 ac_dashdash=
994 for ac_option
995 do
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
1001 fi
1002
1003 case $ac_option in
1004 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1005 *) ac_optarg=yes ;;
1006 esac
1007
1008 # Accept the important Cygnus configure options, so we can diagnose typos.
1009
1010 case $ac_dashdash$ac_option in
1011 --)
1012 ac_dashdash=yes ;;
1013
1014 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1015 ac_prev=bindir ;;
1016 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1017 bindir=$ac_optarg ;;
1018
1019 -build | --build | --buil | --bui | --bu)
1020 ac_prev=build_alias ;;
1021 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1022 build_alias=$ac_optarg ;;
1023
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 ;;
1030
1031 --config-cache | -C)
1032 cache_file=config.cache ;;
1033
1034 -datadir | --datadir | --datadi | --datad)
1035 ac_prev=datadir ;;
1036 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1037 datadir=$ac_optarg ;;
1038
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 ;;
1045
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
1054 *"
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 ;;
1061
1062 -docdir | --docdir | --docdi | --doc | --do)
1063 ac_prev=docdir ;;
1064 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1065 docdir=$ac_optarg ;;
1066
1067 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1068 ac_prev=dvidir ;;
1069 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1070 dvidir=$ac_optarg ;;
1071
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
1080 *"
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 ;;
1087
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 ;;
1096
1097 -gas | --gas | --ga | --g)
1098 # Obsolete; use --with-gas.
1099 with_gas=yes ;;
1100
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 ;;
1107
1108 -host | --host | --hos | --ho)
1109 ac_prev=host_alias ;;
1110 -host=* | --host=* | --hos=* | --ho=*)
1111 host_alias=$ac_optarg ;;
1112
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 ;;
1118
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 ;;
1125
1126 -infodir | --infodir | --infodi | --infod | --info | --inf)
1127 ac_prev=infodir ;;
1128 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129 infodir=$ac_optarg ;;
1130
1131 -libdir | --libdir | --libdi | --libd)
1132 ac_prev=libdir ;;
1133 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134 libdir=$ac_optarg ;;
1135
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 ;;
1142
1143 -localedir | --localedir | --localedi | --localed | --locale)
1144 ac_prev=localedir ;;
1145 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146 localedir=$ac_optarg ;;
1147
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 ;;
1154
1155 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156 ac_prev=mandir ;;
1157 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158 mandir=$ac_optarg ;;
1159
1160 -nfp | --nfp | --nf)
1161 # Obsolete; use --without-fp.
1162 with_fp=no ;;
1163
1164 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165 | --no-cr | --no-c | -n)
1166 no_create=yes ;;
1167
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 ;;
1171
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 ;;
1180
1181 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182 ac_prev=prefix ;;
1183 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184 prefix=$ac_optarg ;;
1185
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 ;;
1192
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 ;;
1199
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 ;;
1216
1217 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218 ac_prev=pdfdir ;;
1219 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220 pdfdir=$ac_optarg ;;
1221
1222 -psdir | --psdir | --psdi | --psd | --ps)
1223 ac_prev=psdir ;;
1224 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225 psdir=$ac_optarg ;;
1226
1227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228 | -silent | --silent | --silen | --sile | --sil)
1229 silent=yes ;;
1230
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 ;;
1236
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 ;;
1247
1248 -site | --site | --sit)
1249 ac_prev=site ;;
1250 -site=* | --site=* | --sit=*)
1251 site=$ac_optarg ;;
1252
1253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254 ac_prev=srcdir ;;
1255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256 srcdir=$ac_optarg ;;
1257
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 ;;
1264
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 ;;
1269
1270 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271 verbose=yes ;;
1272
1273 -version | --version | --versio | --versi | --vers | -V)
1274 ac_init_version=: ;;
1275
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
1284 *"
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 ;;
1291
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
1300 *"
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 ;;
1307
1308 --x)
1309 # Obsolete; use --with-x.
1310 with_x=yes ;;
1311
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 ;;
1318
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 ;;
1325
1326 -*) as_fn_error "unrecognized option: \`$ac_option'
1327 Try \`$0 --help' for more information."
1328 ;;
1329
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 ;;
1339
1340 *)
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}
1346 ;;
1347
1348 esac
1349 done
1350
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"
1354 fi
1355
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
1362 fi
1363
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
1369 do
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
1384
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
1391
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
1400 fi
1401 fi
1402
1403 ac_tool_prefix=
1404 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1405
1406 test "$silent" = yes && exec 6>/dev/null
1407
1408
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"
1415
1416
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/
1429 q
1430 }
1431 /^X\(\/\/\)[^/].*/{
1432 s//\1/
1433 q
1434 }
1435 /^X\(\/\/\)$/{
1436 s//\1/
1437 q
1438 }
1439 /^X\(\/\).*/{
1440 s//\1/
1441 q
1442 }
1443 s/.*/./; q'`
1444 srcdir=$ac_confdir
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1446 srcdir=..
1447 fi
1448 else
1449 ac_srcdir_defaulted=no
1450 fi
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"
1454 fi
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=.
1462 fi
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
1475
1476 #
1477 # Report the --help message.
1478 #
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.
1484
1485 Usage: $0 [OPTION]... [VAR=VALUE]...
1486
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.
1489
1490 Defaults for the options are specified in brackets.
1491
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 \`..']
1502
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]
1508
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'.
1513
1514 For better control, use the options below.
1515
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
1537
1538 cat <<\_ACEOF
1539
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
1544
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
1550 fi
1551
1552 if test -n "$ac_init_help"; then
1553
1554 cat <<\_ACEOF
1555
1556 Optional Features:
1557 --disable-option-checking ignore unrecognized --enable/--with options
1558 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1559 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1560 --enable-generated-files-in-srcdir
1561 put copies of generated files in source dir intended
1562 for creating source tarballs for users without
1563 texinfo bison or flex
1564 --disable-largefile omit support for large files
1565 --enable-werror-always enable -Werror despite compiler version
1566 --enable-checking[=LIST]
1567 enable expensive run-time checks. With LIST, enable
1568 only specific categories of checks. Categories are:
1569 yes,no,all,none,release. Flags are:
1570 assert,df,fold,gc,gcac,gimple,misc,
1571 rtlflag,rtl,runtime,tree,valgrind,types
1572 --enable-coverage[=LEVEL]
1573 enable compiler's code coverage collection. Use to
1574 measure compiler performance and locate unused parts
1575 of the compiler. With LEVEL, specify optimization.
1576 Values are opt, noopt, default is noopt
1577 --enable-gather-detailed-mem-stats
1578 enable detailed memory allocation stats gathering
1579 --enable-multilib enable library support for multiple ABIs
1580 --enable-multiarch enable support for multiarch paths
1581 --enable-__cxa_atexit enable __cxa_atexit for C++
1582 --enable-decimal-float={no,yes,bid,dpd}
1583 enable decimal float extension to C. Selecting 'bid'
1584 or 'dpd' choses which decimal floating point format
1585 to use
1586 --enable-fixed-point enable fixed-point arithmetic extension to C
1587 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1588 package
1589 --enable-tls enable or disable generation of tls code overriding
1590 the assembler check for tls support
1591 --enable-objc-gc enable the use of Boehm's garbage collector with the
1592 GNU Objective-C runtime
1593 --disable-shared don't provide a shared libgcc
1594 --enable-languages=LIST specify which front-ends to build
1595 --disable-rpath do not hardcode runtime library paths
1596 --enable-sjlj-exceptions
1597 arrange to use setjmp/longjmp exception handling
1598 --enable-secureplt enable -msecure-plt by default for PowerPC
1599 --enable-leading-mingw64-underscores
1600 enable leading underscores on 64 bit mingw targets
1601 --enable-cld enable -mcld by default for 32bit x86
1602 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1603 x86
1604 --disable-win32-registry
1605 disable lookup of installation paths in the Registry
1606 on Windows hosts
1607 --enable-win32-registry enable registry lookup (default)
1608 --enable-win32-registry=KEY
1609 use KEY instead of GCC version as the last portion
1610 of the registry key
1611 --enable-shared[=PKGS] build shared libraries [default=yes]
1612 --enable-static[=PKGS] build static libraries [default=yes]
1613 --enable-fast-install[=PKGS]
1614 optimize for fast installation [default=yes]
1615 --disable-libtool-lock avoid locking (might break parallel builds)
1616 --enable-gnu-indirect-function
1617 enable the use of the @gnu_indirect_function to
1618 glibc systems
1619 --enable-initfini-array use .init_array/.fini_array sections
1620 --enable-comdat enable COMDAT group support
1621 --enable-gnu-unique-object
1622 enable the use of the @gnu_unique_object ELF
1623 extension on glibc systems
1624 --enable-linker-build-id
1625 compiler will always pass --build-id to linker
1626 --enable-maintainer-mode
1627 enable make rules and dependencies not useful (and
1628 sometimes confusing) to the casual installer
1629 --enable-version-specific-runtime-libs
1630 specify that runtime libraries should be installed
1631 in a compiler-specific directory
1632 --enable-plugin enable plugin support
1633 --disable-libquadmath-support
1634 disable libquadmath support for Fortran
1635
1636 Optional Packages:
1637 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1638 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1639 --with-build-libsubdir=DIR Directory where to find libraries for build system
1640 --with-local-prefix=DIR specifies directory to put local include
1641 --with-gxx-include-dir=DIR
1642 specifies directory to put g++ header files
1643 --with-cpp-install-dir=DIR
1644 install the user visible C preprocessor in DIR
1645 (relative to PREFIX) as well as PREFIX/bin
1646 --with-gnu-ld arrange to work with GNU ld
1647 --with-ld arrange to use the specified ld (full pathname)
1648 --with-demangler-in-ld try to use demangler in GNU ld
1649 --with-gnu-as arrange to work with GNU as
1650 --with-as arrange to use the specified as (full pathname)
1651 --with-stabs arrange to use stabs instead of host debug format
1652 --with-dwarf2 force the default debug format to be DWARF 2
1653 --with-native-system-header-dir=dir
1654 use dir as the directory to look for standard
1655 system header files in. Defaults to /usr/include.
1656 --with-build-sysroot=sysroot
1657 use sysroot as the system root during the build
1658 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1659 --with-specs=SPECS add SPECS to driver command-line processing
1660 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1661 --with-bugurl=URL Direct users to URL to report a bug
1662 --with-multilib-list select multilibs (SH and x86-64 only)
1663 --with-gnu-ld assume the C compiler uses GNU ld default=no
1664 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1665 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1666 --with-pic try to use only PIC/non-PIC objects [default=use
1667 both]
1668 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1669 --with-plugin-ld=[ARG] specify the plugin linker
1670 --with-long-double-128 use 128-bit long double by default
1671 --with-gc={page,zone} choose the garbage collection mechanism to use with
1672 the compiler
1673 --with-system-zlib use installed libz
1674 --with-linker-hash-style={sysv,gnu,both}
1675 specify the linker hash style
1676
1677 Some influential environment variables:
1678 CC C compiler command
1679 CFLAGS C compiler flags
1680 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1681 nonstandard directory <lib dir>
1682 LIBS libraries to pass to the linker, e.g. -l<library>
1683 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1684 you have headers in a nonstandard directory <include dir>
1685 CXX C++ compiler command
1686 CXXFLAGS C++ compiler flags
1687 CPP C preprocessor
1688 CXXCPP C++ preprocessor
1689 GMPLIBS How to link GMP
1690 GMPINC How to find GMP include files
1691 ISLLIBS How to link ISL
1692 ISLINC How to find ISL include files
1693 CLOOGLIBS How to link CLOOG
1694 CLOOGINC How to find CLOOG include files
1695
1696 Use these variables to override the choices made by `configure' or to help
1697 it to find libraries and programs with nonstandard names/locations.
1698
1699 Report bugs to the package provider.
1700 _ACEOF
1701 ac_status=$?
1702 fi
1703
1704 if test "$ac_init_help" = "recursive"; then
1705 # If there are subdirs, report their specific --help.
1706 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1707 test -d "$ac_dir" ||
1708 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1709 continue
1710 ac_builddir=.
1711
1712 case "$ac_dir" in
1713 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1714 *)
1715 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1716 # A ".." for each directory in $ac_dir_suffix.
1717 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1718 case $ac_top_builddir_sub in
1719 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1720 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1721 esac ;;
1722 esac
1723 ac_abs_top_builddir=$ac_pwd
1724 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1725 # for backward compatibility:
1726 ac_top_builddir=$ac_top_build_prefix
1727
1728 case $srcdir in
1729 .) # We are building in place.
1730 ac_srcdir=.
1731 ac_top_srcdir=$ac_top_builddir_sub
1732 ac_abs_top_srcdir=$ac_pwd ;;
1733 [\\/]* | ?:[\\/]* ) # Absolute name.
1734 ac_srcdir=$srcdir$ac_dir_suffix;
1735 ac_top_srcdir=$srcdir
1736 ac_abs_top_srcdir=$srcdir ;;
1737 *) # Relative name.
1738 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1739 ac_top_srcdir=$ac_top_build_prefix$srcdir
1740 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1741 esac
1742 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1743
1744 cd "$ac_dir" || { ac_status=$?; continue; }
1745 # Check for guested configure.
1746 if test -f "$ac_srcdir/configure.gnu"; then
1747 echo &&
1748 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1749 elif test -f "$ac_srcdir/configure"; then
1750 echo &&
1751 $SHELL "$ac_srcdir/configure" --help=recursive
1752 else
1753 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1754 fi || ac_status=$?
1755 cd "$ac_pwd" || { ac_status=$?; break; }
1756 done
1757 fi
1758
1759 test -n "$ac_init_help" && exit $ac_status
1760 if $ac_init_version; then
1761 cat <<\_ACEOF
1762 configure
1763 generated by GNU Autoconf 2.64
1764
1765 Copyright (C) 2009 Free Software Foundation, Inc.
1766 This configure script is free software; the Free Software Foundation
1767 gives unlimited permission to copy, distribute and modify it.
1768 _ACEOF
1769 exit
1770 fi
1771
1772 ## ------------------------ ##
1773 ## Autoconf initialization. ##
1774 ## ------------------------ ##
1775
1776 # ac_fn_c_try_compile LINENO
1777 # --------------------------
1778 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1779 ac_fn_c_try_compile ()
1780 {
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 rm -f conftest.$ac_objext
1783 if { { ac_try="$ac_compile"
1784 case "(($ac_try" in
1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1787 esac
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_compile") 2>conftest.err
1791 ac_status=$?
1792 if test -s conftest.err; then
1793 grep -v '^ *+' conftest.err >conftest.er1
1794 cat conftest.er1 >&5
1795 mv -f conftest.er1 conftest.err
1796 fi
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; } && {
1799 test -z "$ac_c_werror_flag" ||
1800 test ! -s conftest.err
1801 } && test -s conftest.$ac_objext; then :
1802 ac_retval=0
1803 else
1804 $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1806
1807 ac_retval=1
1808 fi
1809 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810 return $ac_retval
1811
1812 } # ac_fn_c_try_compile
1813
1814 # ac_fn_cxx_try_compile LINENO
1815 # ----------------------------
1816 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1817 ac_fn_cxx_try_compile ()
1818 {
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 rm -f conftest.$ac_objext
1821 if { { ac_try="$ac_compile"
1822 case "(($ac_try" in
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1825 esac
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_compile") 2>conftest.err
1829 ac_status=$?
1830 if test -s conftest.err; then
1831 grep -v '^ *+' conftest.err >conftest.er1
1832 cat conftest.er1 >&5
1833 mv -f conftest.er1 conftest.err
1834 fi
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } && {
1837 test -z "$ac_cxx_werror_flag" ||
1838 test ! -s conftest.err
1839 } && test -s conftest.$ac_objext; then :
1840 ac_retval=0
1841 else
1842 $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1844
1845 ac_retval=1
1846 fi
1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848 return $ac_retval
1849
1850 } # ac_fn_cxx_try_compile
1851
1852 # ac_fn_c_try_cpp LINENO
1853 # ----------------------
1854 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1855 ac_fn_c_try_cpp ()
1856 {
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 if { { ac_try="$ac_cpp conftest.$ac_ext"
1859 case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1862 esac
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1866 ac_status=$?
1867 if test -s conftest.err; then
1868 grep -v '^ *+' conftest.err >conftest.er1
1869 cat conftest.er1 >&5
1870 mv -f conftest.er1 conftest.err
1871 fi
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; } >/dev/null && {
1874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1875 test ! -s conftest.err
1876 }; then :
1877 ac_retval=0
1878 else
1879 $as_echo "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.$ac_ext >&5
1881
1882 ac_retval=1
1883 fi
1884 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1885 return $ac_retval
1886
1887 } # ac_fn_c_try_cpp
1888
1889 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1890 # -------------------------------------------------------
1891 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1892 # the include files in INCLUDES and setting the cache variable VAR
1893 # accordingly.
1894 ac_fn_c_check_header_mongrel ()
1895 {
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1901 $as_echo_n "(cached) " >&6
1902 fi
1903 eval ac_res=\$$3
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906 else
1907 # Is the header compilable?
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1909 $as_echo_n "checking $2 usability... " >&6; }
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1912 $4
1913 #include <$2>
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916 ac_header_compiler=yes
1917 else
1918 ac_header_compiler=no
1919 fi
1920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1922 $as_echo "$ac_header_compiler" >&6; }
1923
1924 # Is the header present?
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1926 $as_echo_n "checking $2 presence... " >&6; }
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1929 #include <$2>
1930 _ACEOF
1931 if ac_fn_c_try_cpp "$LINENO"; then :
1932 ac_header_preproc=yes
1933 else
1934 ac_header_preproc=no
1935 fi
1936 rm -f conftest.err conftest.$ac_ext
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1938 $as_echo "$ac_header_preproc" >&6; }
1939
1940 # So? What about this header?
1941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1942 yes:no: )
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1944 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1946 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1947 ;;
1948 no:yes:* )
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1950 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1952 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1954 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1956 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1958 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1959 ;;
1960 esac
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964 $as_echo_n "(cached) " >&6
1965 else
1966 eval "$3=\$ac_header_compiler"
1967 fi
1968 eval ac_res=\$$3
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970 $as_echo "$ac_res" >&6; }
1971 fi
1972 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1973
1974 } # ac_fn_c_check_header_mongrel
1975
1976 # ac_fn_c_try_run LINENO
1977 # ----------------------
1978 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1979 # that executables *can* be run.
1980 ac_fn_c_try_run ()
1981 {
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 if { { ac_try="$ac_link"
1984 case "(($ac_try" in
1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986 *) ac_try_echo=$ac_try;;
1987 esac
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990 (eval "$ac_link") 2>&5
1991 ac_status=$?
1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1994 { { case "(($ac_try" in
1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996 *) ac_try_echo=$ac_try;;
1997 esac
1998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999 $as_echo "$ac_try_echo"; } >&5
2000 (eval "$ac_try") 2>&5
2001 ac_status=$?
2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003 test $ac_status = 0; }; }; then :
2004 ac_retval=0
2005 else
2006 $as_echo "$as_me: program exited with status $ac_status" >&5
2007 $as_echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2009
2010 ac_retval=$ac_status
2011 fi
2012 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2013 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2014 return $ac_retval
2015
2016 } # ac_fn_c_try_run
2017
2018 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2019 # -------------------------------------------------------
2020 # Tests whether HEADER exists and can be compiled using the include files in
2021 # INCLUDES, setting the cache variable VAR accordingly.
2022 ac_fn_c_check_header_compile ()
2023 {
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2028 $as_echo_n "(cached) " >&6
2029 else
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2032 $4
2033 #include <$2>
2034 _ACEOF
2035 if ac_fn_c_try_compile "$LINENO"; then :
2036 eval "$3=yes"
2037 else
2038 eval "$3=no"
2039 fi
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 fi
2042 eval ac_res=\$$3
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2045 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2046
2047 } # ac_fn_c_check_header_compile
2048
2049 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2050 # --------------------------------------------
2051 # Tries to find the compile-time value of EXPR in a program that includes
2052 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2053 # computed
2054 ac_fn_c_compute_int ()
2055 {
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 if test "$cross_compiling" = yes; then
2058 # Depending upon the size, compute the lo and hi bounds.
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2061 $4
2062 int
2063 main ()
2064 {
2065 static int test_array [1 - 2 * !(($2) >= 0)];
2066 test_array [0] = 0
2067
2068 ;
2069 return 0;
2070 }
2071 _ACEOF
2072 if ac_fn_c_try_compile "$LINENO"; then :
2073 ac_lo=0 ac_mid=0
2074 while :; do
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2077 $4
2078 int
2079 main ()
2080 {
2081 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2082 test_array [0] = 0
2083
2084 ;
2085 return 0;
2086 }
2087 _ACEOF
2088 if ac_fn_c_try_compile "$LINENO"; then :
2089 ac_hi=$ac_mid; break
2090 else
2091 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2092 if test $ac_lo -le $ac_mid; then
2093 ac_lo= ac_hi=
2094 break
2095 fi
2096 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2097 fi
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 done
2100 else
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2103 $4
2104 int
2105 main ()
2106 {
2107 static int test_array [1 - 2 * !(($2) < 0)];
2108 test_array [0] = 0
2109
2110 ;
2111 return 0;
2112 }
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115 ac_hi=-1 ac_mid=-1
2116 while :; do
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2119 $4
2120 int
2121 main ()
2122 {
2123 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2124 test_array [0] = 0
2125
2126 ;
2127 return 0;
2128 }
2129 _ACEOF
2130 if ac_fn_c_try_compile "$LINENO"; then :
2131 ac_lo=$ac_mid; break
2132 else
2133 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2134 if test $ac_mid -le $ac_hi; then
2135 ac_lo= ac_hi=
2136 break
2137 fi
2138 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2139 fi
2140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2141 done
2142 else
2143 ac_lo= ac_hi=
2144 fi
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 fi
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 # Binary search between lo and hi bounds.
2149 while test "x$ac_lo" != "x$ac_hi"; do
2150 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2153 $4
2154 int
2155 main ()
2156 {
2157 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2158 test_array [0] = 0
2159
2160 ;
2161 return 0;
2162 }
2163 _ACEOF
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165 ac_hi=$ac_mid
2166 else
2167 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2168 fi
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 done
2171 case $ac_lo in #((
2172 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2173 '') ac_retval=1 ;;
2174 esac
2175 else
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2178 $4
2179 static long int longval () { return $2; }
2180 static unsigned long int ulongval () { return $2; }
2181 #include <stdio.h>
2182 #include <stdlib.h>
2183 int
2184 main ()
2185 {
2186
2187 FILE *f = fopen ("conftest.val", "w");
2188 if (! f)
2189 return 1;
2190 if (($2) < 0)
2191 {
2192 long int i = longval ();
2193 if (i != ($2))
2194 return 1;
2195 fprintf (f, "%ld", i);
2196 }
2197 else
2198 {
2199 unsigned long int i = ulongval ();
2200 if (i != ($2))
2201 return 1;
2202 fprintf (f, "%lu", i);
2203 }
2204 /* Do not output a trailing newline, as this causes \r\n confusion
2205 on some platforms. */
2206 return ferror (f) || fclose (f) != 0;
2207
2208 ;
2209 return 0;
2210 }
2211 _ACEOF
2212 if ac_fn_c_try_run "$LINENO"; then :
2213 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2214 else
2215 ac_retval=1
2216 fi
2217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2218 conftest.$ac_objext conftest.beam conftest.$ac_ext
2219 rm -f conftest.val
2220
2221 fi
2222 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2223 return $ac_retval
2224
2225 } # ac_fn_c_compute_int
2226
2227 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2228 # -------------------------------------------
2229 # Tests whether TYPE exists after having included INCLUDES, setting cache
2230 # variable VAR accordingly.
2231 ac_fn_c_check_type ()
2232 {
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2235 $as_echo_n "checking for $2... " >&6; }
2236 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2237 $as_echo_n "(cached) " >&6
2238 else
2239 eval "$3=no"
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2242 $4
2243 int
2244 main ()
2245 {
2246 if (sizeof ($2))
2247 return 0;
2248 ;
2249 return 0;
2250 }
2251 _ACEOF
2252 if ac_fn_c_try_compile "$LINENO"; then :
2253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h. */
2255 $4
2256 int
2257 main ()
2258 {
2259 if (sizeof (($2)))
2260 return 0;
2261 ;
2262 return 0;
2263 }
2264 _ACEOF
2265 if ac_fn_c_try_compile "$LINENO"; then :
2266
2267 else
2268 eval "$3=yes"
2269 fi
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 fi
2272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273 fi
2274 eval ac_res=\$$3
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2276 $as_echo "$ac_res" >&6; }
2277 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2278
2279 } # ac_fn_c_check_type
2280
2281 # ac_fn_c_find_intX_t LINENO BITS VAR
2282 # -----------------------------------
2283 # Finds a signed integer type with width BITS, setting cache variable VAR
2284 # accordingly.
2285 ac_fn_c_find_intX_t ()
2286 {
2287 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2289 $as_echo_n "checking for int$2_t... " >&6; }
2290 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2291 $as_echo_n "(cached) " >&6
2292 else
2293 eval "$3=no"
2294 for ac_type in int$2_t 'int' 'long int' \
2295 'long long int' 'short int' 'signed char'; do
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2298 $ac_includes_default
2299 int
2300 main ()
2301 {
2302 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2303 test_array [0] = 0
2304
2305 ;
2306 return 0;
2307 }
2308 _ACEOF
2309 if ac_fn_c_try_compile "$LINENO"; then :
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2312 $ac_includes_default
2313 int
2314 main ()
2315 {
2316 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2317 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2318 test_array [0] = 0
2319
2320 ;
2321 return 0;
2322 }
2323 _ACEOF
2324 if ac_fn_c_try_compile "$LINENO"; then :
2325
2326 else
2327 case $ac_type in #(
2328 int$2_t) :
2329 eval "$3=yes" ;; #(
2330 *) :
2331 eval "$3=\$ac_type" ;;
2332 esac
2333 fi
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335 fi
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337 eval as_val=\$$3
2338 if test "x$as_val" = x""no; then :
2339
2340 else
2341 break
2342 fi
2343 done
2344 fi
2345 eval ac_res=\$$3
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2347 $as_echo "$ac_res" >&6; }
2348 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2349
2350 } # ac_fn_c_find_intX_t
2351
2352 # ac_fn_c_try_link LINENO
2353 # -----------------------
2354 # Try to link conftest.$ac_ext, and return whether this succeeded.
2355 ac_fn_c_try_link ()
2356 {
2357 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2358 rm -f conftest.$ac_objext conftest$ac_exeext
2359 if { { ac_try="$ac_link"
2360 case "(($ac_try" in
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2363 esac
2364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2365 $as_echo "$ac_try_echo"; } >&5
2366 (eval "$ac_link") 2>conftest.err
2367 ac_status=$?
2368 if test -s conftest.err; then
2369 grep -v '^ *+' conftest.err >conftest.er1
2370 cat conftest.er1 >&5
2371 mv -f conftest.er1 conftest.err
2372 fi
2373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2374 test $ac_status = 0; } && {
2375 test -z "$ac_c_werror_flag" ||
2376 test ! -s conftest.err
2377 } && test -s conftest$ac_exeext && {
2378 test "$cross_compiling" = yes ||
2379 $as_test_x conftest$ac_exeext
2380 }; then :
2381 ac_retval=0
2382 else
2383 $as_echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2385
2386 ac_retval=1
2387 fi
2388 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2389 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2390 # interfere with the next link command; also delete a directory that is
2391 # left behind by Apple's compiler. We do this before executing the actions.
2392 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2393 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2394 return $ac_retval
2395
2396 } # ac_fn_c_try_link
2397
2398 # ac_fn_c_find_uintX_t LINENO BITS VAR
2399 # ------------------------------------
2400 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2401 # accordingly.
2402 ac_fn_c_find_uintX_t ()
2403 {
2404 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2406 $as_echo_n "checking for uint$2_t... " >&6; }
2407 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2408 $as_echo_n "(cached) " >&6
2409 else
2410 eval "$3=no"
2411 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2412 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h. */
2415 $ac_includes_default
2416 int
2417 main ()
2418 {
2419 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2420 test_array [0] = 0
2421
2422 ;
2423 return 0;
2424 }
2425 _ACEOF
2426 if ac_fn_c_try_compile "$LINENO"; then :
2427 case $ac_type in #(
2428 uint$2_t) :
2429 eval "$3=yes" ;; #(
2430 *) :
2431 eval "$3=\$ac_type" ;;
2432 esac
2433 fi
2434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435 eval as_val=\$$3
2436 if test "x$as_val" = x""no; then :
2437
2438 else
2439 break
2440 fi
2441 done
2442 fi
2443 eval ac_res=\$$3
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2445 $as_echo "$ac_res" >&6; }
2446 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2447
2448 } # ac_fn_c_find_uintX_t
2449
2450 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2451 # ----------------------------------------------
2452 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2453 ac_fn_c_check_header_preproc ()
2454 {
2455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2457 $as_echo_n "checking for $2... " >&6; }
2458 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2459 $as_echo_n "(cached) " >&6
2460 else
2461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2462 /* end confdefs.h. */
2463 #include <$2>
2464 _ACEOF
2465 if ac_fn_c_try_cpp "$LINENO"; then :
2466 eval "$3=yes"
2467 else
2468 eval "$3=no"
2469 fi
2470 rm -f conftest.err conftest.$ac_ext
2471 fi
2472 eval ac_res=\$$3
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2474 $as_echo "$ac_res" >&6; }
2475 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2476
2477 } # ac_fn_c_check_header_preproc
2478
2479 # ac_fn_cxx_try_cpp LINENO
2480 # ------------------------
2481 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2482 ac_fn_cxx_try_cpp ()
2483 {
2484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2485 if { { ac_try="$ac_cpp conftest.$ac_ext"
2486 case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2489 esac
2490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2491 $as_echo "$ac_try_echo"; } >&5
2492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2493 ac_status=$?
2494 if test -s conftest.err; then
2495 grep -v '^ *+' conftest.err >conftest.er1
2496 cat conftest.er1 >&5
2497 mv -f conftest.er1 conftest.err
2498 fi
2499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2500 test $ac_status = 0; } >/dev/null && {
2501 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2502 test ! -s conftest.err
2503 }; then :
2504 ac_retval=0
2505 else
2506 $as_echo "$as_me: failed program was:" >&5
2507 sed 's/^/| /' conftest.$ac_ext >&5
2508
2509 ac_retval=1
2510 fi
2511 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2512 return $ac_retval
2513
2514 } # ac_fn_cxx_try_cpp
2515
2516 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2517 # ------------------------------------------------
2518 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2519 ac_fn_cxx_check_header_preproc ()
2520 {
2521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2523 $as_echo_n "checking for $2... " >&6; }
2524 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2525 $as_echo_n "(cached) " >&6
2526 else
2527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2528 /* end confdefs.h. */
2529 #include <$2>
2530 _ACEOF
2531 if ac_fn_cxx_try_cpp "$LINENO"; then :
2532 eval "$3=yes"
2533 else
2534 eval "$3=no"
2535 fi
2536 rm -f conftest.err conftest.$ac_ext
2537 fi
2538 eval ac_res=\$$3
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2540 $as_echo "$ac_res" >&6; }
2541 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2542
2543 } # ac_fn_cxx_check_header_preproc
2544
2545 # ac_fn_c_check_func LINENO FUNC VAR
2546 # ----------------------------------
2547 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2548 ac_fn_c_check_func ()
2549 {
2550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2552 $as_echo_n "checking for $2... " >&6; }
2553 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2554 $as_echo_n "(cached) " >&6
2555 else
2556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2557 /* end confdefs.h. */
2558 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2560 #define $2 innocuous_$2
2561
2562 /* System header to define __stub macros and hopefully few prototypes,
2563 which can conflict with char $2 (); below.
2564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2565 <limits.h> exists even on freestanding compilers. */
2566
2567 #ifdef __STDC__
2568 # include <limits.h>
2569 #else
2570 # include <assert.h>
2571 #endif
2572
2573 #undef $2
2574
2575 /* Override any GCC internal prototype to avoid an error.
2576 Use char because int might match the return type of a GCC
2577 builtin and then its argument prototype would still apply. */
2578 #ifdef __cplusplus
2579 extern "C"
2580 #endif
2581 char $2 ();
2582 /* The GNU C library defines this for functions which it implements
2583 to always fail with ENOSYS. Some functions are actually named
2584 something starting with __ and the normal name is an alias. */
2585 #if defined __stub_$2 || defined __stub___$2
2586 choke me
2587 #endif
2588
2589 int
2590 main ()
2591 {
2592 return $2 ();
2593 ;
2594 return 0;
2595 }
2596 _ACEOF
2597 if ac_fn_c_try_link "$LINENO"; then :
2598 eval "$3=yes"
2599 else
2600 eval "$3=no"
2601 fi
2602 rm -f core conftest.err conftest.$ac_objext \
2603 conftest$ac_exeext conftest.$ac_ext
2604 fi
2605 eval ac_res=\$$3
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2607 $as_echo "$ac_res" >&6; }
2608 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2609
2610 } # ac_fn_c_check_func
2611
2612 # ac_fn_cxx_try_link LINENO
2613 # -------------------------
2614 # Try to link conftest.$ac_ext, and return whether this succeeded.
2615 ac_fn_cxx_try_link ()
2616 {
2617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2618 rm -f conftest.$ac_objext conftest$ac_exeext
2619 if { { ac_try="$ac_link"
2620 case "(($ac_try" in
2621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622 *) ac_try_echo=$ac_try;;
2623 esac
2624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2625 $as_echo "$ac_try_echo"; } >&5
2626 (eval "$ac_link") 2>conftest.err
2627 ac_status=$?
2628 if test -s conftest.err; then
2629 grep -v '^ *+' conftest.err >conftest.er1
2630 cat conftest.er1 >&5
2631 mv -f conftest.er1 conftest.err
2632 fi
2633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2634 test $ac_status = 0; } && {
2635 test -z "$ac_cxx_werror_flag" ||
2636 test ! -s conftest.err
2637 } && test -s conftest$ac_exeext && {
2638 test "$cross_compiling" = yes ||
2639 $as_test_x conftest$ac_exeext
2640 }; then :
2641 ac_retval=0
2642 else
2643 $as_echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2645
2646 ac_retval=1
2647 fi
2648 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2649 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2650 # interfere with the next link command; also delete a directory that is
2651 # left behind by Apple's compiler. We do this before executing the actions.
2652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2654 return $ac_retval
2655
2656 } # ac_fn_cxx_try_link
2657 cat >config.log <<_ACEOF
2658 This file contains any messages produced by compilers while
2659 running configure, to aid debugging if configure makes a mistake.
2660
2661 It was created by $as_me, which was
2662 generated by GNU Autoconf 2.64. Invocation command line was
2663
2664 $ $0 $@
2665
2666 _ACEOF
2667 exec 5>>config.log
2668 {
2669 cat <<_ASUNAME
2670 ## --------- ##
2671 ## Platform. ##
2672 ## --------- ##
2673
2674 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2675 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2676 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2677 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2678 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2679
2680 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2681 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2682
2683 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2684 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2685 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2686 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2687 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2688 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2689 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2690
2691 _ASUNAME
2692
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 for as_dir in $PATH
2695 do
2696 IFS=$as_save_IFS
2697 test -z "$as_dir" && as_dir=.
2698 $as_echo "PATH: $as_dir"
2699 done
2700 IFS=$as_save_IFS
2701
2702 } >&5
2703
2704 cat >&5 <<_ACEOF
2705
2706
2707 ## ----------- ##
2708 ## Core tests. ##
2709 ## ----------- ##
2710
2711 _ACEOF
2712
2713
2714 # Keep a trace of the command line.
2715 # Strip out --no-create and --no-recursion so they do not pile up.
2716 # Strip out --silent because we don't want to record it for future runs.
2717 # Also quote any args containing shell meta-characters.
2718 # Make two passes to allow for proper duplicate-argument suppression.
2719 ac_configure_args=
2720 ac_configure_args0=
2721 ac_configure_args1=
2722 ac_must_keep_next=false
2723 for ac_pass in 1 2
2724 do
2725 for ac_arg
2726 do
2727 case $ac_arg in
2728 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2729 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2730 | -silent | --silent | --silen | --sile | --sil)
2731 continue ;;
2732 *\'*)
2733 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2734 esac
2735 case $ac_pass in
2736 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2737 2)
2738 as_fn_append ac_configure_args1 " '$ac_arg'"
2739 if test $ac_must_keep_next = true; then
2740 ac_must_keep_next=false # Got value, back to normal.
2741 else
2742 case $ac_arg in
2743 *=* | --config-cache | -C | -disable-* | --disable-* \
2744 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2745 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2746 | -with-* | --with-* | -without-* | --without-* | --x)
2747 case "$ac_configure_args0 " in
2748 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2749 esac
2750 ;;
2751 -* ) ac_must_keep_next=true ;;
2752 esac
2753 fi
2754 as_fn_append ac_configure_args " '$ac_arg'"
2755 ;;
2756 esac
2757 done
2758 done
2759 { ac_configure_args0=; unset ac_configure_args0;}
2760 { ac_configure_args1=; unset ac_configure_args1;}
2761
2762 # When interrupted or exit'd, cleanup temporary files, and complete
2763 # config.log. We remove comments because anyway the quotes in there
2764 # would cause problems or look ugly.
2765 # WARNING: Use '\'' to represent an apostrophe within the trap.
2766 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2767 trap 'exit_status=$?
2768 # Save into config.log some information that might help in debugging.
2769 {
2770 echo
2771
2772 cat <<\_ASBOX
2773 ## ---------------- ##
2774 ## Cache variables. ##
2775 ## ---------------- ##
2776 _ASBOX
2777 echo
2778 # The following way of writing the cache mishandles newlines in values,
2779 (
2780 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2781 eval ac_val=\$$ac_var
2782 case $ac_val in #(
2783 *${as_nl}*)
2784 case $ac_var in #(
2785 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2786 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2787 esac
2788 case $ac_var in #(
2789 _ | IFS | as_nl) ;; #(
2790 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2791 *) { eval $ac_var=; unset $ac_var;} ;;
2792 esac ;;
2793 esac
2794 done
2795 (set) 2>&1 |
2796 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2797 *${as_nl}ac_space=\ *)
2798 sed -n \
2799 "s/'\''/'\''\\\\'\'''\''/g;
2800 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2801 ;; #(
2802 *)
2803 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2804 ;;
2805 esac |
2806 sort
2807 )
2808 echo
2809
2810 cat <<\_ASBOX
2811 ## ----------------- ##
2812 ## Output variables. ##
2813 ## ----------------- ##
2814 _ASBOX
2815 echo
2816 for ac_var in $ac_subst_vars
2817 do
2818 eval ac_val=\$$ac_var
2819 case $ac_val in
2820 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2821 esac
2822 $as_echo "$ac_var='\''$ac_val'\''"
2823 done | sort
2824 echo
2825
2826 if test -n "$ac_subst_files"; then
2827 cat <<\_ASBOX
2828 ## ------------------- ##
2829 ## File substitutions. ##
2830 ## ------------------- ##
2831 _ASBOX
2832 echo
2833 for ac_var in $ac_subst_files
2834 do
2835 eval ac_val=\$$ac_var
2836 case $ac_val in
2837 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2838 esac
2839 $as_echo "$ac_var='\''$ac_val'\''"
2840 done | sort
2841 echo
2842 fi
2843
2844 if test -s confdefs.h; then
2845 cat <<\_ASBOX
2846 ## ----------- ##
2847 ## confdefs.h. ##
2848 ## ----------- ##
2849 _ASBOX
2850 echo
2851 cat confdefs.h
2852 echo
2853 fi
2854 test "$ac_signal" != 0 &&
2855 $as_echo "$as_me: caught signal $ac_signal"
2856 $as_echo "$as_me: exit $exit_status"
2857 } >&5
2858 rm -f core *.core core.conftest.* &&
2859 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2860 exit $exit_status
2861 ' 0
2862 for ac_signal in 1 2 13 15; do
2863 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2864 done
2865 ac_signal=0
2866
2867 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2868 rm -f -r conftest* confdefs.h
2869
2870 $as_echo "/* confdefs.h */" > confdefs.h
2871
2872 # Predefined preprocessor variables.
2873
2874 cat >>confdefs.h <<_ACEOF
2875 #define PACKAGE_NAME "$PACKAGE_NAME"
2876 _ACEOF
2877
2878 cat >>confdefs.h <<_ACEOF
2879 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2880 _ACEOF
2881
2882 cat >>confdefs.h <<_ACEOF
2883 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2884 _ACEOF
2885
2886 cat >>confdefs.h <<_ACEOF
2887 #define PACKAGE_STRING "$PACKAGE_STRING"
2888 _ACEOF
2889
2890 cat >>confdefs.h <<_ACEOF
2891 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2892 _ACEOF
2893
2894 cat >>confdefs.h <<_ACEOF
2895 #define PACKAGE_URL "$PACKAGE_URL"
2896 _ACEOF
2897
2898
2899 # Let the site file select an alternate cache file if it wants to.
2900 # Prefer an explicitly selected file to automatically selected ones.
2901 ac_site_file1=NONE
2902 ac_site_file2=NONE
2903 if test -n "$CONFIG_SITE"; then
2904 ac_site_file1=$CONFIG_SITE
2905 elif test "x$prefix" != xNONE; then
2906 ac_site_file1=$prefix/share/config.site
2907 ac_site_file2=$prefix/etc/config.site
2908 else
2909 ac_site_file1=$ac_default_prefix/share/config.site
2910 ac_site_file2=$ac_default_prefix/etc/config.site
2911 fi
2912 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2913 do
2914 test "x$ac_site_file" = xNONE && continue
2915 if test -r "$ac_site_file"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2917 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2918 sed 's/^/| /' "$ac_site_file" >&5
2919 . "$ac_site_file"
2920 fi
2921 done
2922
2923 if test -r "$cache_file"; then
2924 # Some versions of bash will fail to source /dev/null (special
2925 # files actually), so we avoid doing that.
2926 if test -f "$cache_file"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2928 $as_echo "$as_me: loading cache $cache_file" >&6;}
2929 case $cache_file in
2930 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2931 *) . "./$cache_file";;
2932 esac
2933 fi
2934 else
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2936 $as_echo "$as_me: creating cache $cache_file" >&6;}
2937 >$cache_file
2938 fi
2939
2940 # Check that the precious variables saved in the cache have kept the same
2941 # value.
2942 ac_cache_corrupted=false
2943 for ac_var in $ac_precious_vars; do
2944 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2945 eval ac_new_set=\$ac_env_${ac_var}_set
2946 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2947 eval ac_new_val=\$ac_env_${ac_var}_value
2948 case $ac_old_set,$ac_new_set in
2949 set,)
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2951 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2952 ac_cache_corrupted=: ;;
2953 ,set)
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2955 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2956 ac_cache_corrupted=: ;;
2957 ,);;
2958 *)
2959 if test "x$ac_old_val" != "x$ac_new_val"; then
2960 # differences in whitespace do not lead to failure.
2961 ac_old_val_w=`echo x $ac_old_val`
2962 ac_new_val_w=`echo x $ac_new_val`
2963 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2965 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2966 ac_cache_corrupted=:
2967 else
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2969 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2970 eval $ac_var=\$ac_old_val
2971 fi
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2973 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2975 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2976 fi;;
2977 esac
2978 # Pass precious variables to config.status.
2979 if test "$ac_new_set" = set; then
2980 case $ac_new_val in
2981 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2982 *) ac_arg=$ac_var=$ac_new_val ;;
2983 esac
2984 case " $ac_configure_args " in
2985 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2986 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2987 esac
2988 fi
2989 done
2990 if $ac_cache_corrupted; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2994 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2995 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2996 fi
2997 ## -------------------- ##
2998 ## Main body of script. ##
2999 ## -------------------- ##
3000
3001 ac_ext=c
3002 ac_cpp='$CPP $CPPFLAGS'
3003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3006
3007
3008
3009
3010
3011
3012 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3013
3014
3015 gcc_version=`cat $srcdir/BASE-VER`
3016
3017 # Determine the host, build, and target systems
3018 ac_aux_dir=
3019 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3020 for ac_t in install-sh install.sh shtool; do
3021 if test -f "$ac_dir/$ac_t"; then
3022 ac_aux_dir=$ac_dir
3023 ac_install_sh="$ac_aux_dir/$ac_t -c"
3024 break 2
3025 fi
3026 done
3027 done
3028 if test -z "$ac_aux_dir"; then
3029 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3030 fi
3031
3032 # These three variables are undocumented and unsupported,
3033 # and are intended to be withdrawn in a future Autoconf release.
3034 # They can cause serious problems if a builder's source tree is in a directory
3035 # whose full name contains unusual characters.
3036 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3037 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3038 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3039
3040
3041 # Make sure we can run config.sub.
3042 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3043 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3044
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3046 $as_echo_n "checking build system type... " >&6; }
3047 if test "${ac_cv_build+set}" = set; then :
3048 $as_echo_n "(cached) " >&6
3049 else
3050 ac_build_alias=$build_alias
3051 test "x$ac_build_alias" = x &&
3052 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3053 test "x$ac_build_alias" = x &&
3054 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3055 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3056 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3057
3058 fi
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3060 $as_echo "$ac_cv_build" >&6; }
3061 case $ac_cv_build in
3062 *-*-*) ;;
3063 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3064 esac
3065 build=$ac_cv_build
3066 ac_save_IFS=$IFS; IFS='-'
3067 set x $ac_cv_build
3068 shift
3069 build_cpu=$1
3070 build_vendor=$2
3071 shift; shift
3072 # Remember, the first character of IFS is used to create $*,
3073 # except with old shells:
3074 build_os=$*
3075 IFS=$ac_save_IFS
3076 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3077
3078
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3080 $as_echo_n "checking host system type... " >&6; }
3081 if test "${ac_cv_host+set}" = set; then :
3082 $as_echo_n "(cached) " >&6
3083 else
3084 if test "x$host_alias" = x; then
3085 ac_cv_host=$ac_cv_build
3086 else
3087 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3088 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3089 fi
3090
3091 fi
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3093 $as_echo "$ac_cv_host" >&6; }
3094 case $ac_cv_host in
3095 *-*-*) ;;
3096 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3097 esac
3098 host=$ac_cv_host
3099 ac_save_IFS=$IFS; IFS='-'
3100 set x $ac_cv_host
3101 shift
3102 host_cpu=$1
3103 host_vendor=$2
3104 shift; shift
3105 # Remember, the first character of IFS is used to create $*,
3106 # except with old shells:
3107 host_os=$*
3108 IFS=$ac_save_IFS
3109 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3110
3111
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3113 $as_echo_n "checking target system type... " >&6; }
3114 if test "${ac_cv_target+set}" = set; then :
3115 $as_echo_n "(cached) " >&6
3116 else
3117 if test "x$target_alias" = x; then
3118 ac_cv_target=$ac_cv_host
3119 else
3120 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3121 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3122 fi
3123
3124 fi
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3126 $as_echo "$ac_cv_target" >&6; }
3127 case $ac_cv_target in
3128 *-*-*) ;;
3129 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3130 esac
3131 target=$ac_cv_target
3132 ac_save_IFS=$IFS; IFS='-'
3133 set x $ac_cv_target
3134 shift
3135 target_cpu=$1
3136 target_vendor=$2
3137 shift; shift
3138 # Remember, the first character of IFS is used to create $*,
3139 # except with old shells:
3140 target_os=$*
3141 IFS=$ac_save_IFS
3142 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3143
3144
3145 # The aliases save the names the user supplied, while $host etc.
3146 # will get canonicalized.
3147 test -n "$target_alias" &&
3148 test "$program_prefix$program_suffix$program_transform_name" = \
3149 NONENONEs,x,x, &&
3150 program_prefix=${target_alias}-
3151
3152 # Determine the noncanonical target name, for directory use.
3153 case ${build_alias} in
3154 "") build_noncanonical=${build} ;;
3155 *) build_noncanonical=${build_alias} ;;
3156 esac
3157
3158 case ${host_alias} in
3159 "") host_noncanonical=${build_noncanonical} ;;
3160 *) host_noncanonical=${host_alias} ;;
3161 esac
3162
3163 case ${target_alias} in
3164 "") target_noncanonical=${host_noncanonical} ;;
3165 *) target_noncanonical=${target_alias} ;;
3166 esac
3167
3168
3169
3170
3171 # Determine the target- and build-specific subdirectories
3172
3173 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3174 # have matching libraries, they should use host libraries: Makefile.tpl
3175 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3176 # However, they still use the build modules, because the corresponding
3177 # host modules (e.g. bison) are only built for the host when bootstrap
3178 # finishes. So:
3179 # - build_subdir is where we find build modules, and never changes.
3180 # - build_libsubdir is where we find build libraries, and can be overridden.
3181
3182 # Prefix 'build-' so this never conflicts with target_subdir.
3183 build_subdir="build-${build_noncanonical}"
3184
3185 # Check whether --with-build-libsubdir was given.
3186 if test "${with_build_libsubdir+set}" = set; then :
3187 withval=$with_build_libsubdir; build_libsubdir="$withval"
3188 else
3189 build_libsubdir="$build_subdir"
3190 fi
3191
3192 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3193 if ( test $srcdir = . && test -d gcc ) \
3194 || test -d $srcdir/../host-${host_noncanonical}; then
3195 host_subdir="host-${host_noncanonical}"
3196 else
3197 host_subdir=.
3198 fi
3199 # No prefix.
3200 target_subdir=${target_noncanonical}
3201
3202
3203 # Set program_transform_name
3204 test "$program_prefix" != NONE &&
3205 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3206 # Use a double $ so make ignores it.
3207 test "$program_suffix" != NONE &&
3208 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3209 # Double any \ or $.
3210 # By default was `s,x,x', remove it if useless.
3211 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3212 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3213
3214
3215 # Check for bogus environment variables.
3216 # Test if LIBRARY_PATH contains the notation for the current directory
3217 # since this would lead to problems installing/building glibc.
3218 # LIBRARY_PATH contains the current directory if one of the following
3219 # is true:
3220 # - one of the terminals (":" and ";") is the first or last sign
3221 # - two terminals occur directly after each other
3222 # - the path contains an element with a dot in it
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3224 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3225 case ${LIBRARY_PATH} in
3226 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3227 library_path_setting="contains current directory"
3228 ;;
3229 *)
3230 library_path_setting="ok"
3231 ;;
3232 esac
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3234 $as_echo "$library_path_setting" >&6; }
3235 if test "$library_path_setting" != "ok"; then
3236 as_fn_error "
3237 *** LIBRARY_PATH shouldn't contain the current directory when
3238 *** building gcc. Please change the environment variable
3239 *** and run configure again." "$LINENO" 5
3240 fi
3241
3242 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3243 # since this would lead to problems installing/building glibc.
3244 # GCC_EXEC_PREFIX contains the current directory if one of the following
3245 # is true:
3246 # - one of the terminals (":" and ";") is the first or last sign
3247 # - two terminals occur directly after each other
3248 # - the path contains an element with a dot in it
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3250 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3251 case ${GCC_EXEC_PREFIX} in
3252 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3253 gcc_exec_prefix_setting="contains current directory"
3254 ;;
3255 *)
3256 gcc_exec_prefix_setting="ok"
3257 ;;
3258 esac
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3260 $as_echo "$gcc_exec_prefix_setting" >&6; }
3261 if test "$gcc_exec_prefix_setting" != "ok"; then
3262 as_fn_error "
3263 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3264 *** building gcc. Please change the environment variable
3265 *** and run configure again." "$LINENO" 5
3266 fi
3267
3268 # -----------
3269 # Directories
3270 # -----------
3271
3272 # Specify the local prefix
3273 local_prefix=
3274
3275 # Check whether --with-local-prefix was given.
3276 if test "${with_local_prefix+set}" = set; then :
3277 withval=$with_local_prefix; case "${withval}" in
3278 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3279 no) ;;
3280 *) local_prefix=$with_local_prefix ;;
3281 esac
3282 fi
3283
3284
3285 # Default local prefix if it is empty
3286 if test x$local_prefix = x; then
3287 local_prefix=/usr/local
3288 fi
3289
3290 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3291 # passed in by the toplevel make and thus we'd get different behavior
3292 # depending on where we built the sources.
3293 gcc_gxx_include_dir=
3294 # Specify the g++ header file directory
3295
3296 # Check whether --with-gxx-include-dir was given.
3297 if test "${with_gxx_include_dir+set}" = set; then :
3298 withval=$with_gxx_include_dir; case "${withval}" in
3299 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3300 no) ;;
3301 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3302 esac
3303 fi
3304
3305
3306 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3307 if test x${gcc_gxx_include_dir} = x; then
3308 if test x${enable_version_specific_runtime_libs} = xyes; then
3309 gcc_gxx_include_dir='${libsubdir}/include/c++'
3310 else
3311 libstdcxx_incdir='include/c++/$(version)'
3312 if test x$host != x$target; then
3313 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3314 fi
3315 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3316 fi
3317 fi
3318
3319 gcc_gxx_include_dir_add_sysroot=0
3320 if test "${with_sysroot+set}" = set; then
3321 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3322 if test "${gcc_gxx_without_sysroot}"; then
3323 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3324 gcc_gxx_include_dir_add_sysroot=1
3325 fi
3326 fi
3327
3328
3329 # Check whether --with-cpp_install_dir was given.
3330 if test "${with_cpp_install_dir+set}" = set; then :
3331 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3332 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3333 elif test x$withval != xno; then
3334 cpp_install_dir=$withval
3335 fi
3336 fi
3337
3338
3339 # We would like to our source tree to be readonly. However when releases or
3340 # pre-releases are generated, the flex/bison generated files as well as the
3341 # various formats of manuals need to be included along with the rest of the
3342 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3343 # just that.
3344
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3346 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3347 # Check whether --enable-generated-files-in-srcdir was given.
3348 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3349 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3350 else
3351 generated_files_in_srcdir=no
3352 fi
3353
3354
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3356 $as_echo "$generated_files_in_srcdir" >&6; }
3357
3358 if test "$generated_files_in_srcdir" = "yes"; then
3359 GENINSRC=''
3360 else
3361 GENINSRC='#'
3362 fi
3363
3364
3365 # -------------------
3366 # Find default linker
3367 # -------------------
3368
3369 # With GNU ld
3370
3371 # Check whether --with-gnu-ld was given.
3372 if test "${with_gnu_ld+set}" = set; then :
3373 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3374 else
3375 gnu_ld_flag=no
3376 fi
3377
3378
3379 # With pre-defined ld
3380
3381 # Check whether --with-ld was given.
3382 if test "${with_ld+set}" = set; then :
3383 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3384 fi
3385
3386 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3387 if test ! -x "$DEFAULT_LINKER"; then
3388 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3389 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3390 gnu_ld_flag=yes
3391 fi
3392
3393 cat >>confdefs.h <<_ACEOF
3394 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3395 _ACEOF
3396
3397 fi
3398
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3400 $as_echo_n "checking whether a default linker was specified... " >&6; }
3401 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3402 if test x"$gnu_ld_flag" = x"no"; then
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3404 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3405 else
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3407 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3408 fi
3409 else
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3412 fi
3413
3414 # With demangler in GNU ld
3415
3416 # Check whether --with-demangler-in-ld was given.
3417 if test "${with_demangler_in_ld+set}" = set; then :
3418 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3419 else
3420 demangler_in_ld=yes
3421 fi
3422
3423
3424 # ----------------------
3425 # Find default assembler
3426 # ----------------------
3427
3428 # With GNU as
3429
3430 # Check whether --with-gnu-as was given.
3431 if test "${with_gnu_as+set}" = set; then :
3432 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3433 else
3434 gas_flag=no
3435 fi
3436
3437
3438
3439 # Check whether --with-as was given.
3440 if test "${with_as+set}" = set; then :
3441 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3442 fi
3443
3444 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3445 if test ! -x "$DEFAULT_ASSEMBLER"; then
3446 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3447 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3448 gas_flag=yes
3449 fi
3450
3451 cat >>confdefs.h <<_ACEOF
3452 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3453 _ACEOF
3454
3455 fi
3456
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3458 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3459 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3460 if test x"$gas_flag" = x"no"; then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3462 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3463 else
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3465 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3466 fi
3467 else
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469 $as_echo "no" >&6; }
3470 fi
3471
3472 # ---------------
3473 # Find C compiler
3474 # ---------------
3475
3476 # If a non-executable a.out is present (e.g. created by GNU as above even if
3477 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3478 # file, even when creating an executable, so an execution test fails.
3479 # Remove possible default executable files to avoid this.
3480 #
3481 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3482 # Autoconf includes it.
3483 rm -f a.out a.exe b.out
3484
3485 # Find the native compiler
3486 ac_ext=c
3487 ac_cpp='$CPP $CPPFLAGS'
3488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3491 if test -n "$ac_tool_prefix"; then
3492 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3493 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495 $as_echo_n "checking for $ac_word... " >&6; }
3496 if test "${ac_cv_prog_CC+set}" = set; then :
3497 $as_echo_n "(cached) " >&6
3498 else
3499 if test -n "$CC"; then
3500 ac_cv_prog_CC="$CC" # Let the user override the test.
3501 else
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3504 do
3505 IFS=$as_save_IFS
3506 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 break 2
3512 fi
3513 done
3514 done
3515 IFS=$as_save_IFS
3516
3517 fi
3518 fi
3519 CC=$ac_cv_prog_CC
3520 if test -n "$CC"; then
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3522 $as_echo "$CC" >&6; }
3523 else
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525 $as_echo "no" >&6; }
3526 fi
3527
3528
3529 fi
3530 if test -z "$ac_cv_prog_CC"; then
3531 ac_ct_CC=$CC
3532 # Extract the first word of "gcc", so it can be a program name with args.
3533 set dummy gcc; ac_word=$2
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535 $as_echo_n "checking for $ac_word... " >&6; }
3536 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3537 $as_echo_n "(cached) " >&6
3538 else
3539 if test -n "$ac_ct_CC"; then
3540 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3541 else
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH
3544 do
3545 IFS=$as_save_IFS
3546 test -z "$as_dir" && as_dir=.
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3549 ac_cv_prog_ac_ct_CC="gcc"
3550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3551 break 2
3552 fi
3553 done
3554 done
3555 IFS=$as_save_IFS
3556
3557 fi
3558 fi
3559 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3560 if test -n "$ac_ct_CC"; then
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3562 $as_echo "$ac_ct_CC" >&6; }
3563 else
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3565 $as_echo "no" >&6; }
3566 fi
3567
3568 if test "x$ac_ct_CC" = x; then
3569 CC=""
3570 else
3571 case $cross_compiling:$ac_tool_warned in
3572 yes:)
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3575 ac_tool_warned=yes ;;
3576 esac
3577 CC=$ac_ct_CC
3578 fi
3579 else
3580 CC="$ac_cv_prog_CC"
3581 fi
3582
3583 if test -z "$CC"; then
3584 if test -n "$ac_tool_prefix"; then
3585 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3586 set dummy ${ac_tool_prefix}cc; ac_word=$2
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588 $as_echo_n "checking for $ac_word... " >&6; }
3589 if test "${ac_cv_prog_CC+set}" = set; then :
3590 $as_echo_n "(cached) " >&6
3591 else
3592 if test -n "$CC"; then
3593 ac_cv_prog_CC="$CC" # Let the user override the test.
3594 else
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH
3597 do
3598 IFS=$as_save_IFS
3599 test -z "$as_dir" && as_dir=.
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3602 ac_cv_prog_CC="${ac_tool_prefix}cc"
3603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 break 2
3605 fi
3606 done
3607 done
3608 IFS=$as_save_IFS
3609
3610 fi
3611 fi
3612 CC=$ac_cv_prog_CC
3613 if test -n "$CC"; then
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3615 $as_echo "$CC" >&6; }
3616 else
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618 $as_echo "no" >&6; }
3619 fi
3620
3621
3622 fi
3623 fi
3624 if test -z "$CC"; then
3625 # Extract the first word of "cc", so it can be a program name with args.
3626 set dummy cc; ac_word=$2
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3628 $as_echo_n "checking for $ac_word... " >&6; }
3629 if test "${ac_cv_prog_CC+set}" = set; then :
3630 $as_echo_n "(cached) " >&6
3631 else
3632 if test -n "$CC"; then
3633 ac_cv_prog_CC="$CC" # Let the user override the test.
3634 else
3635 ac_prog_rejected=no
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH
3638 do
3639 IFS=$as_save_IFS
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3644 ac_prog_rejected=yes
3645 continue
3646 fi
3647 ac_cv_prog_CC="cc"
3648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3649 break 2
3650 fi
3651 done
3652 done
3653 IFS=$as_save_IFS
3654
3655 if test $ac_prog_rejected = yes; then
3656 # We found a bogon in the path, so make sure we never use it.
3657 set dummy $ac_cv_prog_CC
3658 shift
3659 if test $# != 0; then
3660 # We chose a different compiler from the bogus one.
3661 # However, it has the same basename, so the bogon will be chosen
3662 # first if we set CC to just the basename; use the full file name.
3663 shift
3664 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3665 fi
3666 fi
3667 fi
3668 fi
3669 CC=$ac_cv_prog_CC
3670 if test -n "$CC"; then
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3672 $as_echo "$CC" >&6; }
3673 else
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 $as_echo "no" >&6; }
3676 fi
3677
3678
3679 fi
3680 if test -z "$CC"; then
3681 if test -n "$ac_tool_prefix"; then
3682 for ac_prog in cl.exe
3683 do
3684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3685 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687 $as_echo_n "checking for $ac_word... " >&6; }
3688 if test "${ac_cv_prog_CC+set}" = set; then :
3689 $as_echo_n "(cached) " >&6
3690 else
3691 if test -n "$CC"; then
3692 ac_cv_prog_CC="$CC" # Let the user override the test.
3693 else
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 for as_dir in $PATH
3696 do
3697 IFS=$as_save_IFS
3698 test -z "$as_dir" && as_dir=.
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3701 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 break 2
3704 fi
3705 done
3706 done
3707 IFS=$as_save_IFS
3708
3709 fi
3710 fi
3711 CC=$ac_cv_prog_CC
3712 if test -n "$CC"; then
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3714 $as_echo "$CC" >&6; }
3715 else
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 $as_echo "no" >&6; }
3718 fi
3719
3720
3721 test -n "$CC" && break
3722 done
3723 fi
3724 if test -z "$CC"; then
3725 ac_ct_CC=$CC
3726 for ac_prog in cl.exe
3727 do
3728 # Extract the first word of "$ac_prog", so it can be a program name with args.
3729 set dummy $ac_prog; ac_word=$2
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3731 $as_echo_n "checking for $ac_word... " >&6; }
3732 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3733 $as_echo_n "(cached) " >&6
3734 else
3735 if test -n "$ac_ct_CC"; then
3736 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3737 else
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739 for as_dir in $PATH
3740 do
3741 IFS=$as_save_IFS
3742 test -z "$as_dir" && as_dir=.
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3745 ac_cv_prog_ac_ct_CC="$ac_prog"
3746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 break 2
3748 fi
3749 done
3750 done
3751 IFS=$as_save_IFS
3752
3753 fi
3754 fi
3755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3756 if test -n "$ac_ct_CC"; then
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3758 $as_echo "$ac_ct_CC" >&6; }
3759 else
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3761 $as_echo "no" >&6; }
3762 fi
3763
3764
3765 test -n "$ac_ct_CC" && break
3766 done
3767
3768 if test "x$ac_ct_CC" = x; then
3769 CC=""
3770 else
3771 case $cross_compiling:$ac_tool_warned in
3772 yes:)
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3775 ac_tool_warned=yes ;;
3776 esac
3777 CC=$ac_ct_CC
3778 fi
3779 fi
3780
3781 fi
3782
3783
3784 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3786 as_fn_error "no acceptable C compiler found in \$PATH
3787 See \`config.log' for more details." "$LINENO" 5; }
3788
3789 # Provide some information about the compiler.
3790 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3791 set X $ac_compile
3792 ac_compiler=$2
3793 for ac_option in --version -v -V -qversion; do
3794 { { ac_try="$ac_compiler $ac_option >&5"
3795 case "(($ac_try" in
3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797 *) ac_try_echo=$ac_try;;
3798 esac
3799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3800 $as_echo "$ac_try_echo"; } >&5
3801 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3802 ac_status=$?
3803 if test -s conftest.err; then
3804 sed '10a\
3805 ... rest of stderr output deleted ...
3806 10q' conftest.err >conftest.er1
3807 cat conftest.er1 >&5
3808 rm -f conftest.er1 conftest.err
3809 fi
3810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811 test $ac_status = 0; }
3812 done
3813
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h. */
3816
3817 int
3818 main ()
3819 {
3820
3821 ;
3822 return 0;
3823 }
3824 _ACEOF
3825 ac_clean_files_save=$ac_clean_files
3826 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3827 # Try to create an executable without -o first, disregard a.out.
3828 # It will help us diagnose broken compilers, and finding out an intuition
3829 # of exeext.
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3831 $as_echo_n "checking for C compiler default output file name... " >&6; }
3832 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3833
3834 # The possible output files:
3835 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3836
3837 ac_rmfiles=
3838 for ac_file in $ac_files
3839 do
3840 case $ac_file in
3841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3842 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3843 esac
3844 done
3845 rm -f $ac_rmfiles
3846
3847 if { { ac_try="$ac_link_default"
3848 case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851 esac
3852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853 $as_echo "$ac_try_echo"; } >&5
3854 (eval "$ac_link_default") 2>&5
3855 ac_status=$?
3856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857 test $ac_status = 0; }; then :
3858 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3859 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3860 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3861 # so that the user can short-circuit this test for compilers unknown to
3862 # Autoconf.
3863 for ac_file in $ac_files ''
3864 do
3865 test -f "$ac_file" || continue
3866 case $ac_file in
3867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3868 ;;
3869 [ab].out )
3870 # We found the default executable, but exeext='' is most
3871 # certainly right.
3872 break;;
3873 *.* )
3874 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3875 then :; else
3876 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3877 fi
3878 # We set ac_cv_exeext here because the later test for it is not
3879 # safe: cross compilers may not add the suffix if given an `-o'
3880 # argument, so we may need to know it at that point already.
3881 # Even if this section looks crufty: it has the advantage of
3882 # actually working.
3883 break;;
3884 * )
3885 break;;
3886 esac
3887 done
3888 test "$ac_cv_exeext" = no && ac_cv_exeext=
3889
3890 else
3891 ac_file=''
3892 fi
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3894 $as_echo "$ac_file" >&6; }
3895 if test -z "$ac_file"; then :
3896 $as_echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3898
3899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3901 { as_fn_set_status 77
3902 as_fn_error "C compiler cannot create executables
3903 See \`config.log' for more details." "$LINENO" 5; }; }
3904 fi
3905 ac_exeext=$ac_cv_exeext
3906
3907 # Check that the compiler produces executables we can run. If not, either
3908 # the compiler is broken, or we cross compile.
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3910 $as_echo_n "checking whether the C compiler works... " >&6; }
3911 # If not cross compiling, check that we can run a simple program.
3912 if test "$cross_compiling" != yes; then
3913 if { ac_try='./$ac_file'
3914 { { case "(($ac_try" in
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3917 esac
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920 (eval "$ac_try") 2>&5
3921 ac_status=$?
3922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923 test $ac_status = 0; }; }; then
3924 cross_compiling=no
3925 else
3926 if test "$cross_compiling" = maybe; then
3927 cross_compiling=yes
3928 else
3929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3931 as_fn_error "cannot run C compiled programs.
3932 If you meant to cross compile, use \`--host'.
3933 See \`config.log' for more details." "$LINENO" 5; }
3934 fi
3935 fi
3936 fi
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3938 $as_echo "yes" >&6; }
3939
3940 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3941 ac_clean_files=$ac_clean_files_save
3942 # Check that the compiler produces executables we can run. If not, either
3943 # the compiler is broken, or we cross compile.
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3945 $as_echo_n "checking whether we are cross compiling... " >&6; }
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3947 $as_echo "$cross_compiling" >&6; }
3948
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3950 $as_echo_n "checking for suffix of executables... " >&6; }
3951 if { { ac_try="$ac_link"
3952 case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955 esac
3956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957 $as_echo "$ac_try_echo"; } >&5
3958 (eval "$ac_link") 2>&5
3959 ac_status=$?
3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }; then :
3962 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3963 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3964 # work properly (i.e., refer to `conftest.exe'), while it won't with
3965 # `rm'.
3966 for ac_file in conftest.exe conftest conftest.*; do
3967 test -f "$ac_file" || continue
3968 case $ac_file in
3969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3970 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3971 break;;
3972 * ) break;;
3973 esac
3974 done
3975 else
3976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3978 as_fn_error "cannot compute suffix of executables: cannot compile and link
3979 See \`config.log' for more details." "$LINENO" 5; }
3980 fi
3981 rm -f conftest$ac_cv_exeext
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3983 $as_echo "$ac_cv_exeext" >&6; }
3984
3985 rm -f conftest.$ac_ext
3986 EXEEXT=$ac_cv_exeext
3987 ac_exeext=$EXEEXT
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3989 $as_echo_n "checking for suffix of object files... " >&6; }
3990 if test "${ac_cv_objext+set}" = set; then :
3991 $as_echo_n "(cached) " >&6
3992 else
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3995
3996 int
3997 main ()
3998 {
3999
4000 ;
4001 return 0;
4002 }
4003 _ACEOF
4004 rm -f conftest.o conftest.obj
4005 if { { ac_try="$ac_compile"
4006 case "(($ac_try" in
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4009 esac
4010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4011 $as_echo "$ac_try_echo"; } >&5
4012 (eval "$ac_compile") 2>&5
4013 ac_status=$?
4014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4015 test $ac_status = 0; }; then :
4016 for ac_file in conftest.o conftest.obj conftest.*; do
4017 test -f "$ac_file" || continue;
4018 case $ac_file in
4019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4020 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4021 break;;
4022 esac
4023 done
4024 else
4025 $as_echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4027
4028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4030 as_fn_error "cannot compute suffix of object files: cannot compile
4031 See \`config.log' for more details." "$LINENO" 5; }
4032 fi
4033 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4034 fi
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4036 $as_echo "$ac_cv_objext" >&6; }
4037 OBJEXT=$ac_cv_objext
4038 ac_objext=$OBJEXT
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4040 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4041 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4042 $as_echo_n "(cached) " >&6
4043 else
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4046
4047 int
4048 main ()
4049 {
4050 #ifndef __GNUC__
4051 choke me
4052 #endif
4053
4054 ;
4055 return 0;
4056 }
4057 _ACEOF
4058 if ac_fn_c_try_compile "$LINENO"; then :
4059 ac_compiler_gnu=yes
4060 else
4061 ac_compiler_gnu=no
4062 fi
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4065
4066 fi
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4068 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4069 if test $ac_compiler_gnu = yes; then
4070 GCC=yes
4071 else
4072 GCC=
4073 fi
4074 ac_test_CFLAGS=${CFLAGS+set}
4075 ac_save_CFLAGS=$CFLAGS
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4077 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4078 if test "${ac_cv_prog_cc_g+set}" = set; then :
4079 $as_echo_n "(cached) " >&6
4080 else
4081 ac_save_c_werror_flag=$ac_c_werror_flag
4082 ac_c_werror_flag=yes
4083 ac_cv_prog_cc_g=no
4084 CFLAGS="-g"
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4087
4088 int
4089 main ()
4090 {
4091
4092 ;
4093 return 0;
4094 }
4095 _ACEOF
4096 if ac_fn_c_try_compile "$LINENO"; then :
4097 ac_cv_prog_cc_g=yes
4098 else
4099 CFLAGS=""
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4102
4103 int
4104 main ()
4105 {
4106
4107 ;
4108 return 0;
4109 }
4110 _ACEOF
4111 if ac_fn_c_try_compile "$LINENO"; then :
4112
4113 else
4114 ac_c_werror_flag=$ac_save_c_werror_flag
4115 CFLAGS="-g"
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4118
4119 int
4120 main ()
4121 {
4122
4123 ;
4124 return 0;
4125 }
4126 _ACEOF
4127 if ac_fn_c_try_compile "$LINENO"; then :
4128 ac_cv_prog_cc_g=yes
4129 fi
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 fi
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 fi
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 ac_c_werror_flag=$ac_save_c_werror_flag
4136 fi
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4138 $as_echo "$ac_cv_prog_cc_g" >&6; }
4139 if test "$ac_test_CFLAGS" = set; then
4140 CFLAGS=$ac_save_CFLAGS
4141 elif test $ac_cv_prog_cc_g = yes; then
4142 if test "$GCC" = yes; then
4143 CFLAGS="-g -O2"
4144 else
4145 CFLAGS="-g"
4146 fi
4147 else
4148 if test "$GCC" = yes; then
4149 CFLAGS="-O2"
4150 else
4151 CFLAGS=
4152 fi
4153 fi
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4155 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4156 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4157 $as_echo_n "(cached) " >&6
4158 else
4159 ac_cv_prog_cc_c89=no
4160 ac_save_CC=$CC
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4163 #include <stdarg.h>
4164 #include <stdio.h>
4165 #include <sys/types.h>
4166 #include <sys/stat.h>
4167 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4168 struct buf { int x; };
4169 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4170 static char *e (p, i)
4171 char **p;
4172 int i;
4173 {
4174 return p[i];
4175 }
4176 static char *f (char * (*g) (char **, int), char **p, ...)
4177 {
4178 char *s;
4179 va_list v;
4180 va_start (v,p);
4181 s = g (p, va_arg (v,int));
4182 va_end (v);
4183 return s;
4184 }
4185
4186 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4187 function prototypes and stuff, but not '\xHH' hex character constants.
4188 These don't provoke an error unfortunately, instead are silently treated
4189 as 'x'. The following induces an error, until -std is added to get
4190 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4191 array size at least. It's necessary to write '\x00'==0 to get something
4192 that's true only with -std. */
4193 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4194
4195 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4196 inside strings and character constants. */
4197 #define FOO(x) 'x'
4198 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4199
4200 int test (int i, double x);
4201 struct s1 {int (*f) (int a);};
4202 struct s2 {int (*f) (double a);};
4203 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4204 int argc;
4205 char **argv;
4206 int
4207 main ()
4208 {
4209 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4210 ;
4211 return 0;
4212 }
4213 _ACEOF
4214 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4215 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4216 do
4217 CC="$ac_save_CC $ac_arg"
4218 if ac_fn_c_try_compile "$LINENO"; then :
4219 ac_cv_prog_cc_c89=$ac_arg
4220 fi
4221 rm -f core conftest.err conftest.$ac_objext
4222 test "x$ac_cv_prog_cc_c89" != "xno" && break
4223 done
4224 rm -f conftest.$ac_ext
4225 CC=$ac_save_CC
4226
4227 fi
4228 # AC_CACHE_VAL
4229 case "x$ac_cv_prog_cc_c89" in
4230 x)
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4232 $as_echo "none needed" >&6; } ;;
4233 xno)
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4235 $as_echo "unsupported" >&6; } ;;
4236 *)
4237 CC="$CC $ac_cv_prog_cc_c89"
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4239 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4240 esac
4241 if test "x$ac_cv_prog_cc_c89" != xno; then :
4242
4243 fi
4244
4245 ac_ext=c
4246 ac_cpp='$CPP $CPPFLAGS'
4247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4250
4251 if test "x$CC" != xcc; then
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4253 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4254 else
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4256 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4257 fi
4258 set dummy $CC; ac_cc=`$as_echo "$2" |
4259 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4260 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4261 $as_echo_n "(cached) " >&6
4262 else
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4265
4266 int
4267 main ()
4268 {
4269
4270 ;
4271 return 0;
4272 }
4273 _ACEOF
4274 # Make sure it works both with $CC and with simple cc.
4275 # We do the test twice because some compilers refuse to overwrite an
4276 # existing .o file with -o, though they will create one.
4277 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4278 rm -f conftest2.*
4279 if { { case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4282 esac
4283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4284 $as_echo "$ac_try_echo"; } >&5
4285 (eval "$ac_try") 2>&5
4286 ac_status=$?
4287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4288 test $ac_status = 0; } &&
4289 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4292 esac
4293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4294 $as_echo "$ac_try_echo"; } >&5
4295 (eval "$ac_try") 2>&5
4296 ac_status=$?
4297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4298 test $ac_status = 0; };
4299 then
4300 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4301 if test "x$CC" != xcc; then
4302 # Test first that cc exists at all.
4303 if { ac_try='cc -c conftest.$ac_ext >&5'
4304 { { case "(($ac_try" in
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4307 esac
4308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4309 $as_echo "$ac_try_echo"; } >&5
4310 (eval "$ac_try") 2>&5
4311 ac_status=$?
4312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4313 test $ac_status = 0; }; }; then
4314 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4315 rm -f conftest2.*
4316 if { { case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319 esac
4320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4321 $as_echo "$ac_try_echo"; } >&5
4322 (eval "$ac_try") 2>&5
4323 ac_status=$?
4324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4325 test $ac_status = 0; } &&
4326 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4329 esac
4330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4331 $as_echo "$ac_try_echo"; } >&5
4332 (eval "$ac_try") 2>&5
4333 ac_status=$?
4334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4335 test $ac_status = 0; };
4336 then
4337 # cc works too.
4338 :
4339 else
4340 # cc exists but doesn't like -o.
4341 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4342 fi
4343 fi
4344 fi
4345 else
4346 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4347 fi
4348 rm -f core conftest*
4349
4350 fi
4351 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4353 $as_echo "yes" >&6; }
4354 else
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4356 $as_echo "no" >&6; }
4357
4358 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4359
4360 fi
4361
4362 # expand $ac_aux_dir to an absolute path
4363 am_aux_dir=`cd $ac_aux_dir && pwd`
4364
4365 # FIXME: we rely on the cache variable name because
4366 # there is no other way.
4367 set dummy $CC
4368 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4369 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4370 if test "$am_t" != yes; then
4371 # Losing compiler, so override with the script.
4372 # FIXME: It is wrong to rewrite CC.
4373 # But if we don't then we get into trouble of one sort or another.
4374 # A longer-term fix would be to have automake use am__CC in this case,
4375 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4376 CC="$am_aux_dir/compile $CC"
4377 fi
4378
4379
4380 ac_ext=cpp
4381 ac_cpp='$CXXCPP $CPPFLAGS'
4382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4385 if test -z "$CXX"; then
4386 if test -n "$CCC"; then
4387 CXX=$CCC
4388 else
4389 if test -n "$ac_tool_prefix"; then
4390 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4391 do
4392 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4393 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4395 $as_echo_n "checking for $ac_word... " >&6; }
4396 if test "${ac_cv_prog_CXX+set}" = set; then :
4397 $as_echo_n "(cached) " >&6
4398 else
4399 if test -n "$CXX"; then
4400 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4401 else
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH
4404 do
4405 IFS=$as_save_IFS
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4409 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 break 2
4412 fi
4413 done
4414 done
4415 IFS=$as_save_IFS
4416
4417 fi
4418 fi
4419 CXX=$ac_cv_prog_CXX
4420 if test -n "$CXX"; then
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4422 $as_echo "$CXX" >&6; }
4423 else
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4425 $as_echo "no" >&6; }
4426 fi
4427
4428
4429 test -n "$CXX" && break
4430 done
4431 fi
4432 if test -z "$CXX"; then
4433 ac_ct_CXX=$CXX
4434 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4435 do
4436 # Extract the first word of "$ac_prog", so it can be a program name with args.
4437 set dummy $ac_prog; ac_word=$2
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4439 $as_echo_n "checking for $ac_word... " >&6; }
4440 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 if test -n "$ac_ct_CXX"; then
4444 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4445 else
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4448 do
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4453 ac_cv_prog_ac_ct_CXX="$ac_prog"
4454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 break 2
4456 fi
4457 done
4458 done
4459 IFS=$as_save_IFS
4460
4461 fi
4462 fi
4463 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4464 if test -n "$ac_ct_CXX"; then
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4466 $as_echo "$ac_ct_CXX" >&6; }
4467 else
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4469 $as_echo "no" >&6; }
4470 fi
4471
4472
4473 test -n "$ac_ct_CXX" && break
4474 done
4475
4476 if test "x$ac_ct_CXX" = x; then
4477 CXX="g++"
4478 else
4479 case $cross_compiling:$ac_tool_warned in
4480 yes:)
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4483 ac_tool_warned=yes ;;
4484 esac
4485 CXX=$ac_ct_CXX
4486 fi
4487 fi
4488
4489 fi
4490 fi
4491 # Provide some information about the compiler.
4492 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4493 set X $ac_compile
4494 ac_compiler=$2
4495 for ac_option in --version -v -V -qversion; do
4496 { { ac_try="$ac_compiler $ac_option >&5"
4497 case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4500 esac
4501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4502 $as_echo "$ac_try_echo"; } >&5
4503 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4504 ac_status=$?
4505 if test -s conftest.err; then
4506 sed '10a\
4507 ... rest of stderr output deleted ...
4508 10q' conftest.err >conftest.er1
4509 cat conftest.er1 >&5
4510 rm -f conftest.er1 conftest.err
4511 fi
4512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4513 test $ac_status = 0; }
4514 done
4515
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4517 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4518 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4519 $as_echo_n "(cached) " >&6
4520 else
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4523
4524 int
4525 main ()
4526 {
4527 #ifndef __GNUC__
4528 choke me
4529 #endif
4530
4531 ;
4532 return 0;
4533 }
4534 _ACEOF
4535 if ac_fn_cxx_try_compile "$LINENO"; then :
4536 ac_compiler_gnu=yes
4537 else
4538 ac_compiler_gnu=no
4539 fi
4540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4541 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4542
4543 fi
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4545 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4546 if test $ac_compiler_gnu = yes; then
4547 GXX=yes
4548 else
4549 GXX=
4550 fi
4551 ac_test_CXXFLAGS=${CXXFLAGS+set}
4552 ac_save_CXXFLAGS=$CXXFLAGS
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4554 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4555 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4559 ac_cxx_werror_flag=yes
4560 ac_cv_prog_cxx_g=no
4561 CXXFLAGS="-g"
4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h. */
4564
4565 int
4566 main ()
4567 {
4568
4569 ;
4570 return 0;
4571 }
4572 _ACEOF
4573 if ac_fn_cxx_try_compile "$LINENO"; then :
4574 ac_cv_prog_cxx_g=yes
4575 else
4576 CXXFLAGS=""
4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h. */
4579
4580 int
4581 main ()
4582 {
4583
4584 ;
4585 return 0;
4586 }
4587 _ACEOF
4588 if ac_fn_cxx_try_compile "$LINENO"; then :
4589
4590 else
4591 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4592 CXXFLAGS="-g"
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4595
4596 int
4597 main ()
4598 {
4599
4600 ;
4601 return 0;
4602 }
4603 _ACEOF
4604 if ac_fn_cxx_try_compile "$LINENO"; then :
4605 ac_cv_prog_cxx_g=yes
4606 fi
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 fi
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610 fi
4611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4613 fi
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4615 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4616 if test "$ac_test_CXXFLAGS" = set; then
4617 CXXFLAGS=$ac_save_CXXFLAGS
4618 elif test $ac_cv_prog_cxx_g = yes; then
4619 if test "$GXX" = yes; then
4620 CXXFLAGS="-g -O2"
4621 else
4622 CXXFLAGS="-g"
4623 fi
4624 else
4625 if test "$GXX" = yes; then
4626 CXXFLAGS="-O2"
4627 else
4628 CXXFLAGS=
4629 fi
4630 fi
4631 ac_ext=c
4632 ac_cpp='$CPP $CPPFLAGS'
4633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4636
4637
4638
4639
4640 if test -n "$ac_tool_prefix"; then
4641 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4642 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4644 $as_echo_n "checking for $ac_word... " >&6; }
4645 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4646 $as_echo_n "(cached) " >&6
4647 else
4648 if test -n "$GNATBIND"; then
4649 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4650 else
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH
4653 do
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4658 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 break 2
4661 fi
4662 done
4663 done
4664 IFS=$as_save_IFS
4665
4666 fi
4667 fi
4668 GNATBIND=$ac_cv_prog_GNATBIND
4669 if test -n "$GNATBIND"; then
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4671 $as_echo "$GNATBIND" >&6; }
4672 else
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674 $as_echo "no" >&6; }
4675 fi
4676
4677
4678 fi
4679 if test -z "$ac_cv_prog_GNATBIND"; then
4680 ac_ct_GNATBIND=$GNATBIND
4681 # Extract the first word of "gnatbind", so it can be a program name with args.
4682 set dummy gnatbind; ac_word=$2
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4684 $as_echo_n "checking for $ac_word... " >&6; }
4685 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4686 $as_echo_n "(cached) " >&6
4687 else
4688 if test -n "$ac_ct_GNATBIND"; then
4689 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4690 else
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH
4693 do
4694 IFS=$as_save_IFS
4695 test -z "$as_dir" && as_dir=.
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4698 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 break 2
4701 fi
4702 done
4703 done
4704 IFS=$as_save_IFS
4705
4706 fi
4707 fi
4708 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4709 if test -n "$ac_ct_GNATBIND"; then
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4711 $as_echo "$ac_ct_GNATBIND" >&6; }
4712 else
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4714 $as_echo "no" >&6; }
4715 fi
4716
4717 if test "x$ac_ct_GNATBIND" = x; then
4718 GNATBIND="no"
4719 else
4720 case $cross_compiling:$ac_tool_warned in
4721 yes:)
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4724 ac_tool_warned=yes ;;
4725 esac
4726 GNATBIND=$ac_ct_GNATBIND
4727 fi
4728 else
4729 GNATBIND="$ac_cv_prog_GNATBIND"
4730 fi
4731
4732 if test -n "$ac_tool_prefix"; then
4733 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4734 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4736 $as_echo_n "checking for $ac_word... " >&6; }
4737 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4738 $as_echo_n "(cached) " >&6
4739 else
4740 if test -n "$GNATMAKE"; then
4741 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4742 else
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 for as_dir in $PATH
4745 do
4746 IFS=$as_save_IFS
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4750 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4752 break 2
4753 fi
4754 done
4755 done
4756 IFS=$as_save_IFS
4757
4758 fi
4759 fi
4760 GNATMAKE=$ac_cv_prog_GNATMAKE
4761 if test -n "$GNATMAKE"; then
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4763 $as_echo "$GNATMAKE" >&6; }
4764 else
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766 $as_echo "no" >&6; }
4767 fi
4768
4769
4770 fi
4771 if test -z "$ac_cv_prog_GNATMAKE"; then
4772 ac_ct_GNATMAKE=$GNATMAKE
4773 # Extract the first word of "gnatmake", so it can be a program name with args.
4774 set dummy gnatmake; ac_word=$2
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4776 $as_echo_n "checking for $ac_word... " >&6; }
4777 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 if test -n "$ac_ct_GNATMAKE"; then
4781 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4782 else
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 for as_dir in $PATH
4785 do
4786 IFS=$as_save_IFS
4787 test -z "$as_dir" && as_dir=.
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4790 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4792 break 2
4793 fi
4794 done
4795 done
4796 IFS=$as_save_IFS
4797
4798 fi
4799 fi
4800 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4801 if test -n "$ac_ct_GNATMAKE"; then
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4803 $as_echo "$ac_ct_GNATMAKE" >&6; }
4804 else
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806 $as_echo "no" >&6; }
4807 fi
4808
4809 if test "x$ac_ct_GNATMAKE" = x; then
4810 GNATMAKE="no"
4811 else
4812 case $cross_compiling:$ac_tool_warned in
4813 yes:)
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4816 ac_tool_warned=yes ;;
4817 esac
4818 GNATMAKE=$ac_ct_GNATMAKE
4819 fi
4820 else
4821 GNATMAKE="$ac_cv_prog_GNATMAKE"
4822 fi
4823
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4825 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4826 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4827 $as_echo_n "(cached) " >&6
4828 else
4829 cat >conftest.adb <<EOF
4830 procedure conftest is begin null; end conftest;
4831 EOF
4832 acx_cv_cc_gcc_supports_ada=no
4833 # There is a bug in old released versions of GCC which causes the
4834 # driver to exit successfully when the appropriate language module
4835 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4836 # Therefore we must check for the error message as well as an
4837 # unsuccessful exit.
4838 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4839 # given a .adb file, but produce no object file. So we must check
4840 # if an object file was really produced to guard against this.
4841 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4842 if test x"$errors" = x && test -f conftest.$ac_objext; then
4843 acx_cv_cc_gcc_supports_ada=yes
4844 fi
4845 rm -f conftest.*
4846 fi
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4848 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4849
4850 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4851 have_gnat=yes
4852 else
4853 have_gnat=no
4854 fi
4855
4856
4857 # autoconf is lame and doesn't give us any substitution variable for this.
4858 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4859 NO_MINUS_C_MINUS_O=yes
4860 else
4861 OUTPUT_OPTION='-o $@'
4862 fi
4863
4864
4865
4866 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4867 # optimizations to be activated explicitly by the toplevel.
4868 case "$CC" in
4869 */prev-gcc/xgcc*) ;;
4870 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4871 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4872 esac
4873
4874
4875
4876 # Determine PICFLAG for target gnatlib.
4877
4878
4879
4880
4881 case "${target}" in
4882 # PIC is the default on some targets or must not be used.
4883 *-*-darwin*)
4884 # PIC is the default on this platform
4885 # Common symbols not allowed in MH_DYLIB files
4886 PICFLAG_FOR_TARGET=-fno-common
4887 ;;
4888 alpha*-dec-osf5*)
4889 # PIC is the default.
4890 ;;
4891 hppa*64*-*-hpux*)
4892 # PIC is the default for 64-bit PA HP-UX.
4893 ;;
4894 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4895 ;;
4896 i[34567]86-*-interix[3-9]*)
4897 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4898 # Instead, we relocate shared libraries at runtime.
4899 ;;
4900 i[34567]86-*-nto-qnx*)
4901 # QNX uses GNU C++, but need to define -shared option too, otherwise
4902 # it will coredump.
4903 PICFLAG_FOR_TARGET='-fPIC -shared'
4904 ;;
4905 i[34567]86-pc-msdosdjgpp*)
4906 # DJGPP does not support shared libraries at all.
4907 ;;
4908 ia64*-*-hpux*)
4909 # On IA64 HP-UX, PIC is the default but the pic flag
4910 # sets the default TLS model and affects inlining.
4911 PICFLAG_FOR_TARGET=-fPIC
4912 ;;
4913 mips-sgi-irix6*)
4914 # PIC is the default.
4915 ;;
4916 rs6000-ibm-aix* | powerpc-ibm-aix*)
4917 # All AIX code is PIC.
4918 ;;
4919
4920 # Some targets support both -fPIC and -fpic, but prefer the latter.
4921 # FIXME: Why?
4922 i[34567]86-*-* | x86_64-*-*)
4923 PICFLAG_FOR_TARGET=-fpic
4924 ;;
4925 m68k-*-*)
4926 PICFLAG_FOR_TARGET=-fpic
4927 ;;
4928 # FIXME: Override -fPIC default in libgcc only?
4929 sh-*-linux* | sh[2346lbe]*-*-linux*)
4930 PICFLAG_FOR_TARGET=-fpic
4931 ;;
4932 # FIXME: Simplify to sh*-*-netbsd*?
4933 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4934 sh64-*-netbsd* | sh64l*-*-netbsd*)
4935 PICFLAG_FOR_TARGET=-fpic
4936 ;;
4937 # Default to -fPIC unless specified otherwise.
4938 *)
4939 PICFLAG_FOR_TARGET=-fPIC
4940 ;;
4941 esac
4942
4943 # If the user explicitly uses -fpic/-fPIC, keep that.
4944 case "${CFLAGS_FOR_TARGET}" in
4945 *-fpic*)
4946 PICFLAG_FOR_TARGET=-fpic
4947 ;;
4948 *-fPIC*)
4949 PICFLAG_FOR_TARGET=-fPIC
4950 ;;
4951 esac
4952
4953
4954
4955 # -------------------------
4956 # Check C compiler features
4957 # -------------------------
4958
4959
4960 ac_ext=c
4961 ac_cpp='$CPP $CPPFLAGS'
4962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4966 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4967 # On Suns, sometimes $CPP names a directory.
4968 if test -n "$CPP" && test -d "$CPP"; then
4969 CPP=
4970 fi
4971 if test -z "$CPP"; then
4972 if test "${ac_cv_prog_CPP+set}" = set; then :
4973 $as_echo_n "(cached) " >&6
4974 else
4975 # Double quotes because CPP needs to be expanded
4976 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4977 do
4978 ac_preproc_ok=false
4979 for ac_c_preproc_warn_flag in '' yes
4980 do
4981 # Use a header file that comes with gcc, so configuring glibc
4982 # with a fresh cross-compiler works.
4983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4984 # <limits.h> exists even on freestanding compilers.
4985 # On the NeXT, cc -E runs the code through the compiler's parser,
4986 # not just through cpp. "Syntax error" is here to catch this case.
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4989 #ifdef __STDC__
4990 # include <limits.h>
4991 #else
4992 # include <assert.h>
4993 #endif
4994 Syntax error
4995 _ACEOF
4996 if ac_fn_c_try_cpp "$LINENO"; then :
4997
4998 else
4999 # Broken: fails on valid input.
5000 continue
5001 fi
5002 rm -f conftest.err conftest.$ac_ext
5003
5004 # OK, works on sane cases. Now check whether nonexistent headers
5005 # can be detected and how.
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5008 #include <ac_nonexistent.h>
5009 _ACEOF
5010 if ac_fn_c_try_cpp "$LINENO"; then :
5011 # Broken: success on invalid input.
5012 continue
5013 else
5014 # Passes both tests.
5015 ac_preproc_ok=:
5016 break
5017 fi
5018 rm -f conftest.err conftest.$ac_ext
5019
5020 done
5021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5022 rm -f conftest.err conftest.$ac_ext
5023 if $ac_preproc_ok; then :
5024 break
5025 fi
5026
5027 done
5028 ac_cv_prog_CPP=$CPP
5029
5030 fi
5031 CPP=$ac_cv_prog_CPP
5032 else
5033 ac_cv_prog_CPP=$CPP
5034 fi
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5036 $as_echo "$CPP" >&6; }
5037 ac_preproc_ok=false
5038 for ac_c_preproc_warn_flag in '' yes
5039 do
5040 # Use a header file that comes with gcc, so configuring glibc
5041 # with a fresh cross-compiler works.
5042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5043 # <limits.h> exists even on freestanding compilers.
5044 # On the NeXT, cc -E runs the code through the compiler's parser,
5045 # not just through cpp. "Syntax error" is here to catch this case.
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5048 #ifdef __STDC__
5049 # include <limits.h>
5050 #else
5051 # include <assert.h>
5052 #endif
5053 Syntax error
5054 _ACEOF
5055 if ac_fn_c_try_cpp "$LINENO"; then :
5056
5057 else
5058 # Broken: fails on valid input.
5059 continue
5060 fi
5061 rm -f conftest.err conftest.$ac_ext
5062
5063 # OK, works on sane cases. Now check whether nonexistent headers
5064 # can be detected and how.
5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5067 #include <ac_nonexistent.h>
5068 _ACEOF
5069 if ac_fn_c_try_cpp "$LINENO"; then :
5070 # Broken: success on invalid input.
5071 continue
5072 else
5073 # Passes both tests.
5074 ac_preproc_ok=:
5075 break
5076 fi
5077 rm -f conftest.err conftest.$ac_ext
5078
5079 done
5080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5081 rm -f conftest.err conftest.$ac_ext
5082 if $ac_preproc_ok; then :
5083
5084 else
5085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5087 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5088 See \`config.log' for more details." "$LINENO" 5; }
5089 fi
5090
5091 ac_ext=c
5092 ac_cpp='$CPP $CPPFLAGS'
5093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5096
5097
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5099 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5100 if test "${ac_cv_path_GREP+set}" = set; then :
5101 $as_echo_n "(cached) " >&6
5102 else
5103 if test -z "$GREP"; then
5104 ac_path_GREP_found=false
5105 # Loop through the user's path and test for each of PROGNAME-LIST
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5108 do
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 for ac_prog in grep ggrep; do
5112 for ac_exec_ext in '' $ac_executable_extensions; do
5113 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5114 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5115 # Check for GNU ac_path_GREP and select it if it is found.
5116 # Check for GNU $ac_path_GREP
5117 case `"$ac_path_GREP" --version 2>&1` in
5118 *GNU*)
5119 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5120 *)
5121 ac_count=0
5122 $as_echo_n 0123456789 >"conftest.in"
5123 while :
5124 do
5125 cat "conftest.in" "conftest.in" >"conftest.tmp"
5126 mv "conftest.tmp" "conftest.in"
5127 cp "conftest.in" "conftest.nl"
5128 $as_echo 'GREP' >> "conftest.nl"
5129 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5130 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5131 as_fn_arith $ac_count + 1 && ac_count=$as_val
5132 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5133 # Best one so far, save it but keep looking for a better one
5134 ac_cv_path_GREP="$ac_path_GREP"
5135 ac_path_GREP_max=$ac_count
5136 fi
5137 # 10*(2^10) chars as input seems more than enough
5138 test $ac_count -gt 10 && break
5139 done
5140 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5141 esac
5142
5143 $ac_path_GREP_found && break 3
5144 done
5145 done
5146 done
5147 IFS=$as_save_IFS
5148 if test -z "$ac_cv_path_GREP"; then
5149 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5150 fi
5151 else
5152 ac_cv_path_GREP=$GREP
5153 fi
5154
5155 fi
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5157 $as_echo "$ac_cv_path_GREP" >&6; }
5158 GREP="$ac_cv_path_GREP"
5159
5160
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5162 $as_echo_n "checking for egrep... " >&6; }
5163 if test "${ac_cv_path_EGREP+set}" = set; then :
5164 $as_echo_n "(cached) " >&6
5165 else
5166 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5167 then ac_cv_path_EGREP="$GREP -E"
5168 else
5169 if test -z "$EGREP"; then
5170 ac_path_EGREP_found=false
5171 # Loop through the user's path and test for each of PROGNAME-LIST
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5174 do
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5177 for ac_prog in egrep; do
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5180 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5181 # Check for GNU ac_path_EGREP and select it if it is found.
5182 # Check for GNU $ac_path_EGREP
5183 case `"$ac_path_EGREP" --version 2>&1` in
5184 *GNU*)
5185 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5186 *)
5187 ac_count=0
5188 $as_echo_n 0123456789 >"conftest.in"
5189 while :
5190 do
5191 cat "conftest.in" "conftest.in" >"conftest.tmp"
5192 mv "conftest.tmp" "conftest.in"
5193 cp "conftest.in" "conftest.nl"
5194 $as_echo 'EGREP' >> "conftest.nl"
5195 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5197 as_fn_arith $ac_count + 1 && ac_count=$as_val
5198 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5199 # Best one so far, save it but keep looking for a better one
5200 ac_cv_path_EGREP="$ac_path_EGREP"
5201 ac_path_EGREP_max=$ac_count
5202 fi
5203 # 10*(2^10) chars as input seems more than enough
5204 test $ac_count -gt 10 && break
5205 done
5206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5207 esac
5208
5209 $ac_path_EGREP_found && break 3
5210 done
5211 done
5212 done
5213 IFS=$as_save_IFS
5214 if test -z "$ac_cv_path_EGREP"; then
5215 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5216 fi
5217 else
5218 ac_cv_path_EGREP=$EGREP
5219 fi
5220
5221 fi
5222 fi
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5224 $as_echo "$ac_cv_path_EGREP" >&6; }
5225 EGREP="$ac_cv_path_EGREP"
5226
5227
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5229 $as_echo_n "checking for ANSI C header files... " >&6; }
5230 if test "${ac_cv_header_stdc+set}" = set; then :
5231 $as_echo_n "(cached) " >&6
5232 else
5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h. */
5235 #include <stdlib.h>
5236 #include <stdarg.h>
5237 #include <string.h>
5238 #include <float.h>
5239
5240 int
5241 main ()
5242 {
5243
5244 ;
5245 return 0;
5246 }
5247 _ACEOF
5248 if ac_fn_c_try_compile "$LINENO"; then :
5249 ac_cv_header_stdc=yes
5250 else
5251 ac_cv_header_stdc=no
5252 fi
5253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254
5255 if test $ac_cv_header_stdc = yes; then
5256 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5259 #include <string.h>
5260
5261 _ACEOF
5262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5263 $EGREP "memchr" >/dev/null 2>&1; then :
5264
5265 else
5266 ac_cv_header_stdc=no
5267 fi
5268 rm -f conftest*
5269
5270 fi
5271
5272 if test $ac_cv_header_stdc = yes; then
5273 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h. */
5276 #include <stdlib.h>
5277
5278 _ACEOF
5279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5280 $EGREP "free" >/dev/null 2>&1; then :
5281
5282 else
5283 ac_cv_header_stdc=no
5284 fi
5285 rm -f conftest*
5286
5287 fi
5288
5289 if test $ac_cv_header_stdc = yes; then
5290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5291 if test "$cross_compiling" = yes; then :
5292 :
5293 else
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h. */
5296 #include <ctype.h>
5297 #include <stdlib.h>
5298 #if ((' ' & 0x0FF) == 0x020)
5299 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5300 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5301 #else
5302 # define ISLOWER(c) \
5303 (('a' <= (c) && (c) <= 'i') \
5304 || ('j' <= (c) && (c) <= 'r') \
5305 || ('s' <= (c) && (c) <= 'z'))
5306 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5307 #endif
5308
5309 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5310 int
5311 main ()
5312 {
5313 int i;
5314 for (i = 0; i < 256; i++)
5315 if (XOR (islower (i), ISLOWER (i))
5316 || toupper (i) != TOUPPER (i))
5317 return 2;
5318 return 0;
5319 }
5320 _ACEOF
5321 if ac_fn_c_try_run "$LINENO"; then :
5322
5323 else
5324 ac_cv_header_stdc=no
5325 fi
5326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5327 conftest.$ac_objext conftest.beam conftest.$ac_ext
5328 fi
5329
5330 fi
5331 fi
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5333 $as_echo "$ac_cv_header_stdc" >&6; }
5334 if test $ac_cv_header_stdc = yes; then
5335
5336 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5337
5338 fi
5339
5340 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5341 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5342 inttypes.h stdint.h unistd.h
5343 do :
5344 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5345 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5346 "
5347 eval as_val=\$$as_ac_Header
5348 if test "x$as_val" = x""yes; then :
5349 cat >>confdefs.h <<_ACEOF
5350 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5351 _ACEOF
5352
5353 fi
5354
5355 done
5356
5357
5358
5359 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5360 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5361 MINIX=yes
5362 else
5363 MINIX=
5364 fi
5365
5366
5367 if test "$MINIX" = yes; then
5368
5369 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5370
5371
5372 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5373
5374
5375 $as_echo "#define _MINIX 1" >>confdefs.h
5376
5377 fi
5378
5379
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5381 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5382 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5383 $as_echo_n "(cached) " >&6
5384 else
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5387
5388 # define __EXTENSIONS__ 1
5389 $ac_includes_default
5390 int
5391 main ()
5392 {
5393
5394 ;
5395 return 0;
5396 }
5397 _ACEOF
5398 if ac_fn_c_try_compile "$LINENO"; then :
5399 ac_cv_safe_to_define___extensions__=yes
5400 else
5401 ac_cv_safe_to_define___extensions__=no
5402 fi
5403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404 fi
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5406 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5407 test $ac_cv_safe_to_define___extensions__ = yes &&
5408 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5409
5410 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5411
5412 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5413
5414 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5415
5416 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5417
5418
5419 ac_ext=c
5420 ac_cpp='$CPP $CPPFLAGS'
5421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5425 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5426 # On Suns, sometimes $CPP names a directory.
5427 if test -n "$CPP" && test -d "$CPP"; then
5428 CPP=
5429 fi
5430 if test -z "$CPP"; then
5431 if test "${ac_cv_prog_CPP+set}" = set; then :
5432 $as_echo_n "(cached) " >&6
5433 else
5434 # Double quotes because CPP needs to be expanded
5435 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5436 do
5437 ac_preproc_ok=false
5438 for ac_c_preproc_warn_flag in '' yes
5439 do
5440 # Use a header file that comes with gcc, so configuring glibc
5441 # with a fresh cross-compiler works.
5442 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5443 # <limits.h> exists even on freestanding compilers.
5444 # On the NeXT, cc -E runs the code through the compiler's parser,
5445 # not just through cpp. "Syntax error" is here to catch this case.
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5448 #ifdef __STDC__
5449 # include <limits.h>
5450 #else
5451 # include <assert.h>
5452 #endif
5453 Syntax error
5454 _ACEOF
5455 if ac_fn_c_try_cpp "$LINENO"; then :
5456
5457 else
5458 # Broken: fails on valid input.
5459 continue
5460 fi
5461 rm -f conftest.err conftest.$ac_ext
5462
5463 # OK, works on sane cases. Now check whether nonexistent headers
5464 # can be detected and how.
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5467 #include <ac_nonexistent.h>
5468 _ACEOF
5469 if ac_fn_c_try_cpp "$LINENO"; then :
5470 # Broken: success on invalid input.
5471 continue
5472 else
5473 # Passes both tests.
5474 ac_preproc_ok=:
5475 break
5476 fi
5477 rm -f conftest.err conftest.$ac_ext
5478
5479 done
5480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5481 rm -f conftest.err conftest.$ac_ext
5482 if $ac_preproc_ok; then :
5483 break
5484 fi
5485
5486 done
5487 ac_cv_prog_CPP=$CPP
5488
5489 fi
5490 CPP=$ac_cv_prog_CPP
5491 else
5492 ac_cv_prog_CPP=$CPP
5493 fi
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5495 $as_echo "$CPP" >&6; }
5496 ac_preproc_ok=false
5497 for ac_c_preproc_warn_flag in '' yes
5498 do
5499 # Use a header file that comes with gcc, so configuring glibc
5500 # with a fresh cross-compiler works.
5501 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5502 # <limits.h> exists even on freestanding compilers.
5503 # On the NeXT, cc -E runs the code through the compiler's parser,
5504 # not just through cpp. "Syntax error" is here to catch this case.
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5507 #ifdef __STDC__
5508 # include <limits.h>
5509 #else
5510 # include <assert.h>
5511 #endif
5512 Syntax error
5513 _ACEOF
5514 if ac_fn_c_try_cpp "$LINENO"; then :
5515
5516 else
5517 # Broken: fails on valid input.
5518 continue
5519 fi
5520 rm -f conftest.err conftest.$ac_ext
5521
5522 # OK, works on sane cases. Now check whether nonexistent headers
5523 # can be detected and how.
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5526 #include <ac_nonexistent.h>
5527 _ACEOF
5528 if ac_fn_c_try_cpp "$LINENO"; then :
5529 # Broken: success on invalid input.
5530 continue
5531 else
5532 # Passes both tests.
5533 ac_preproc_ok=:
5534 break
5535 fi
5536 rm -f conftest.err conftest.$ac_ext
5537
5538 done
5539 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5540 rm -f conftest.err conftest.$ac_ext
5541 if $ac_preproc_ok; then :
5542
5543 else
5544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5546 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5547 See \`config.log' for more details." "$LINENO" 5; }
5548 fi
5549
5550 ac_ext=c
5551 ac_cpp='$CPP $CPPFLAGS'
5552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5555
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5557 $as_echo_n "checking for inline... " >&6; }
5558 if test "${ac_cv_c_inline+set}" = set; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561 ac_cv_c_inline=no
5562 for ac_kw in inline __inline__ __inline; do
5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564 /* end confdefs.h. */
5565 #ifndef __cplusplus
5566 typedef int foo_t;
5567 static $ac_kw foo_t static_foo () {return 0; }
5568 $ac_kw foo_t foo () {return 0; }
5569 #endif
5570
5571 _ACEOF
5572 if ac_fn_c_try_compile "$LINENO"; then :
5573 ac_cv_c_inline=$ac_kw
5574 fi
5575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576 test "$ac_cv_c_inline" != no && break
5577 done
5578
5579 fi
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5581 $as_echo "$ac_cv_c_inline" >&6; }
5582
5583 case $ac_cv_c_inline in
5584 inline | yes) ;;
5585 *)
5586 case $ac_cv_c_inline in
5587 no) ac_val=;;
5588 *) ac_val=$ac_cv_c_inline;;
5589 esac
5590 cat >>confdefs.h <<_ACEOF
5591 #ifndef __cplusplus
5592 #define inline $ac_val
5593 #endif
5594 _ACEOF
5595 ;;
5596 esac
5597
5598
5599 # Check whether --enable-largefile was given.
5600 if test "${enable_largefile+set}" = set; then :
5601 enableval=$enable_largefile;
5602 fi
5603
5604 if test "$enable_largefile" != no; then
5605
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5607 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5608 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 ac_cv_sys_largefile_CC=no
5612 if test "$GCC" != yes; then
5613 ac_save_CC=$CC
5614 while :; do
5615 # IRIX 6.2 and later do not support large files by default,
5616 # so use the C compiler's -n32 option if that helps.
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5619 #include <sys/types.h>
5620 /* Check that off_t can represent 2**63 - 1 correctly.
5621 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5622 since some C++ compilers masquerading as C compilers
5623 incorrectly reject 9223372036854775807. */
5624 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5625 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5626 && LARGE_OFF_T % 2147483647 == 1)
5627 ? 1 : -1];
5628 int
5629 main ()
5630 {
5631
5632 ;
5633 return 0;
5634 }
5635 _ACEOF
5636 if ac_fn_c_try_compile "$LINENO"; then :
5637 break
5638 fi
5639 rm -f core conftest.err conftest.$ac_objext
5640 CC="$CC -n32"
5641 if ac_fn_c_try_compile "$LINENO"; then :
5642 ac_cv_sys_largefile_CC=' -n32'; break
5643 fi
5644 rm -f core conftest.err conftest.$ac_objext
5645 break
5646 done
5647 CC=$ac_save_CC
5648 rm -f conftest.$ac_ext
5649 fi
5650 fi
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5652 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5653 if test "$ac_cv_sys_largefile_CC" != no; then
5654 CC=$CC$ac_cv_sys_largefile_CC
5655 fi
5656
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5658 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5659 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5660 $as_echo_n "(cached) " >&6
5661 else
5662 while :; do
5663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664 /* end confdefs.h. */
5665 #include <sys/types.h>
5666 /* Check that off_t can represent 2**63 - 1 correctly.
5667 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5668 since some C++ compilers masquerading as C compilers
5669 incorrectly reject 9223372036854775807. */
5670 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5671 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5672 && LARGE_OFF_T % 2147483647 == 1)
5673 ? 1 : -1];
5674 int
5675 main ()
5676 {
5677
5678 ;
5679 return 0;
5680 }
5681 _ACEOF
5682 if ac_fn_c_try_compile "$LINENO"; then :
5683 ac_cv_sys_file_offset_bits=no; break
5684 fi
5685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5688 #define _FILE_OFFSET_BITS 64
5689 #include <sys/types.h>
5690 /* Check that off_t can represent 2**63 - 1 correctly.
5691 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5692 since some C++ compilers masquerading as C compilers
5693 incorrectly reject 9223372036854775807. */
5694 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5695 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5696 && LARGE_OFF_T % 2147483647 == 1)
5697 ? 1 : -1];
5698 int
5699 main ()
5700 {
5701
5702 ;
5703 return 0;
5704 }
5705 _ACEOF
5706 if ac_fn_c_try_compile "$LINENO"; then :
5707 ac_cv_sys_file_offset_bits=64; break
5708 fi
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710 ac_cv_sys_file_offset_bits=unknown
5711 break
5712 done
5713 fi
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5715 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5716 case $ac_cv_sys_file_offset_bits in #(
5717 no | unknown) ;;
5718 *)
5719 cat >>confdefs.h <<_ACEOF
5720 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5721 _ACEOF
5722 ;;
5723 esac
5724 rm -rf conftest*
5725 if test $ac_cv_sys_file_offset_bits = unknown; then
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5727 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5728 if test "${ac_cv_sys_large_files+set}" = set; then :
5729 $as_echo_n "(cached) " >&6
5730 else
5731 while :; do
5732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733 /* end confdefs.h. */
5734 #include <sys/types.h>
5735 /* Check that off_t can represent 2**63 - 1 correctly.
5736 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5737 since some C++ compilers masquerading as C compilers
5738 incorrectly reject 9223372036854775807. */
5739 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5740 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5741 && LARGE_OFF_T % 2147483647 == 1)
5742 ? 1 : -1];
5743 int
5744 main ()
5745 {
5746
5747 ;
5748 return 0;
5749 }
5750 _ACEOF
5751 if ac_fn_c_try_compile "$LINENO"; then :
5752 ac_cv_sys_large_files=no; break
5753 fi
5754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5757 #define _LARGE_FILES 1
5758 #include <sys/types.h>
5759 /* Check that off_t can represent 2**63 - 1 correctly.
5760 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5761 since some C++ compilers masquerading as C compilers
5762 incorrectly reject 9223372036854775807. */
5763 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5764 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5765 && LARGE_OFF_T % 2147483647 == 1)
5766 ? 1 : -1];
5767 int
5768 main ()
5769 {
5770
5771 ;
5772 return 0;
5773 }
5774 _ACEOF
5775 if ac_fn_c_try_compile "$LINENO"; then :
5776 ac_cv_sys_large_files=1; break
5777 fi
5778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5779 ac_cv_sys_large_files=unknown
5780 break
5781 done
5782 fi
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5784 $as_echo "$ac_cv_sys_large_files" >&6; }
5785 case $ac_cv_sys_large_files in #(
5786 no | unknown) ;;
5787 *)
5788 cat >>confdefs.h <<_ACEOF
5789 #define _LARGE_FILES $ac_cv_sys_large_files
5790 _ACEOF
5791 ;;
5792 esac
5793 rm -rf conftest*
5794 fi
5795 fi
5796
5797
5798 # sizeof(char) is 1 by definition.
5799 # The cast to long int works around a bug in the HP C Compiler
5800 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5801 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5802 # This bug is HP SR number 8606223364.
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5804 $as_echo_n "checking size of void *... " >&6; }
5805 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5806 $as_echo_n "(cached) " >&6
5807 else
5808 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5809
5810 else
5811 if test "$ac_cv_type_void_p" = yes; then
5812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5814 { as_fn_set_status 77
5815 as_fn_error "cannot compute sizeof (void *)
5816 See \`config.log' for more details." "$LINENO" 5; }; }
5817 else
5818 ac_cv_sizeof_void_p=0
5819 fi
5820 fi
5821
5822 fi
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5824 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5825
5826
5827
5828 cat >>confdefs.h <<_ACEOF
5829 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5830 _ACEOF
5831
5832
5833 # The cast to long int works around a bug in the HP C Compiler
5834 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5835 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5836 # This bug is HP SR number 8606223364.
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5838 $as_echo_n "checking size of short... " >&6; }
5839 if test "${ac_cv_sizeof_short+set}" = set; then :
5840 $as_echo_n "(cached) " >&6
5841 else
5842 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5843
5844 else
5845 if test "$ac_cv_type_short" = yes; then
5846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5848 { as_fn_set_status 77
5849 as_fn_error "cannot compute sizeof (short)
5850 See \`config.log' for more details." "$LINENO" 5; }; }
5851 else
5852 ac_cv_sizeof_short=0
5853 fi
5854 fi
5855
5856 fi
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5858 $as_echo "$ac_cv_sizeof_short" >&6; }
5859
5860
5861
5862 cat >>confdefs.h <<_ACEOF
5863 #define SIZEOF_SHORT $ac_cv_sizeof_short
5864 _ACEOF
5865
5866
5867 # The cast to long int works around a bug in the HP C Compiler
5868 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5869 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5870 # This bug is HP SR number 8606223364.
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5872 $as_echo_n "checking size of int... " >&6; }
5873 if test "${ac_cv_sizeof_int+set}" = set; then :
5874 $as_echo_n "(cached) " >&6
5875 else
5876 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5877
5878 else
5879 if test "$ac_cv_type_int" = yes; then
5880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5882 { as_fn_set_status 77
5883 as_fn_error "cannot compute sizeof (int)
5884 See \`config.log' for more details." "$LINENO" 5; }; }
5885 else
5886 ac_cv_sizeof_int=0
5887 fi
5888 fi
5889
5890 fi
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5892 $as_echo "$ac_cv_sizeof_int" >&6; }
5893
5894
5895
5896 cat >>confdefs.h <<_ACEOF
5897 #define SIZEOF_INT $ac_cv_sizeof_int
5898 _ACEOF
5899
5900
5901 # The cast to long int works around a bug in the HP C Compiler
5902 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5903 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5904 # This bug is HP SR number 8606223364.
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5906 $as_echo_n "checking size of long... " >&6; }
5907 if test "${ac_cv_sizeof_long+set}" = set; then :
5908 $as_echo_n "(cached) " >&6
5909 else
5910 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5911
5912 else
5913 if test "$ac_cv_type_long" = yes; then
5914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5916 { as_fn_set_status 77
5917 as_fn_error "cannot compute sizeof (long)
5918 See \`config.log' for more details." "$LINENO" 5; }; }
5919 else
5920 ac_cv_sizeof_long=0
5921 fi
5922 fi
5923
5924 fi
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5926 $as_echo "$ac_cv_sizeof_long" >&6; }
5927
5928
5929
5930 cat >>confdefs.h <<_ACEOF
5931 #define SIZEOF_LONG $ac_cv_sizeof_long
5932 _ACEOF
5933
5934
5935 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5936 if test "x$ac_cv_type_long_long" = x""yes; then :
5937
5938 cat >>confdefs.h <<_ACEOF
5939 #define HAVE_LONG_LONG 1
5940 _ACEOF
5941
5942 # The cast to long int works around a bug in the HP C Compiler
5943 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5944 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5945 # This bug is HP SR number 8606223364.
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5947 $as_echo_n "checking size of long long... " >&6; }
5948 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5949 $as_echo_n "(cached) " >&6
5950 else
5951 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5952
5953 else
5954 if test "$ac_cv_type_long_long" = yes; then
5955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5957 { as_fn_set_status 77
5958 as_fn_error "cannot compute sizeof (long long)
5959 See \`config.log' for more details." "$LINENO" 5; }; }
5960 else
5961 ac_cv_sizeof_long_long=0
5962 fi
5963 fi
5964
5965 fi
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5967 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5968
5969
5970
5971 cat >>confdefs.h <<_ACEOF
5972 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5973 _ACEOF
5974
5975
5976 fi
5977
5978 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5979 if test "x$ac_cv_type___int64" = x""yes; then :
5980
5981 cat >>confdefs.h <<_ACEOF
5982 #define HAVE___INT64 1
5983 _ACEOF
5984
5985 # The cast to long int works around a bug in the HP C Compiler
5986 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5987 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5988 # This bug is HP SR number 8606223364.
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5990 $as_echo_n "checking size of __int64... " >&6; }
5991 if test "${ac_cv_sizeof___int64+set}" = set; then :
5992 $as_echo_n "(cached) " >&6
5993 else
5994 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5995
5996 else
5997 if test "$ac_cv_type___int64" = yes; then
5998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6000 { as_fn_set_status 77
6001 as_fn_error "cannot compute sizeof (__int64)
6002 See \`config.log' for more details." "$LINENO" 5; }; }
6003 else
6004 ac_cv_sizeof___int64=0
6005 fi
6006 fi
6007
6008 fi
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6010 $as_echo "$ac_cv_sizeof___int64" >&6; }
6011
6012
6013
6014 cat >>confdefs.h <<_ACEOF
6015 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6016 _ACEOF
6017
6018
6019 fi
6020
6021 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6022 case $ac_cv_c_int8_t in #(
6023 no|yes) ;; #(
6024 *)
6025
6026 cat >>confdefs.h <<_ACEOF
6027 #define int8_t $ac_cv_c_int8_t
6028 _ACEOF
6029 ;;
6030 esac
6031
6032 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6033 case $ac_cv_c_int16_t in #(
6034 no|yes) ;; #(
6035 *)
6036
6037 cat >>confdefs.h <<_ACEOF
6038 #define int16_t $ac_cv_c_int16_t
6039 _ACEOF
6040 ;;
6041 esac
6042
6043 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6044 case $ac_cv_c_int32_t in #(
6045 no|yes) ;; #(
6046 *)
6047
6048 cat >>confdefs.h <<_ACEOF
6049 #define int32_t $ac_cv_c_int32_t
6050 _ACEOF
6051 ;;
6052 esac
6053
6054 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6055 case $ac_cv_c_int64_t in #(
6056 no|yes) ;; #(
6057 *)
6058
6059 cat >>confdefs.h <<_ACEOF
6060 #define int64_t $ac_cv_c_int64_t
6061 _ACEOF
6062 ;;
6063 esac
6064
6065
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6067 $as_echo_n "checking for long long int... " >&6; }
6068 if test "${ac_cv_type_long_long_int+set}" = set; then :
6069 $as_echo_n "(cached) " >&6
6070 else
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h. */
6073
6074 /* For now, do not test the preprocessor; as of 2007 there are too many
6075 implementations with broken preprocessors. Perhaps this can
6076 be revisited in 2012. In the meantime, code should not expect
6077 #if to work with literals wider than 32 bits. */
6078 /* Test literals. */
6079 long long int ll = 9223372036854775807ll;
6080 long long int nll = -9223372036854775807LL;
6081 unsigned long long int ull = 18446744073709551615ULL;
6082 /* Test constant expressions. */
6083 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6084 ? 1 : -1)];
6085 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6086 ? 1 : -1)];
6087 int i = 63;
6088 int
6089 main ()
6090 {
6091 /* Test availability of runtime routines for shift and division. */
6092 long long int llmax = 9223372036854775807ll;
6093 unsigned long long int ullmax = 18446744073709551615ull;
6094 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6095 | (llmax / ll) | (llmax % ll)
6096 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6097 | (ullmax / ull) | (ullmax % ull));
6098 ;
6099 return 0;
6100 }
6101
6102 _ACEOF
6103 if ac_fn_c_try_link "$LINENO"; then :
6104 if test "$cross_compiling" = yes; then :
6105 ac_cv_type_long_long_int=yes
6106 else
6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6109 #include <limits.h>
6110 #ifndef LLONG_MAX
6111 # define HALF \
6112 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6113 # define LLONG_MAX (HALF - 1 + HALF)
6114 #endif
6115 int
6116 main ()
6117 {
6118 long long int n = 1;
6119 int i;
6120 for (i = 0; ; i++)
6121 {
6122 long long int m = n << i;
6123 if (m >> i != n)
6124 return 1;
6125 if (LLONG_MAX / 2 < m)
6126 break;
6127 }
6128 return 0;
6129 ;
6130 return 0;
6131 }
6132 _ACEOF
6133 if ac_fn_c_try_run "$LINENO"; then :
6134 ac_cv_type_long_long_int=yes
6135 else
6136 ac_cv_type_long_long_int=no
6137 fi
6138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6139 conftest.$ac_objext conftest.beam conftest.$ac_ext
6140 fi
6141
6142 else
6143 ac_cv_type_long_long_int=no
6144 fi
6145 rm -f core conftest.err conftest.$ac_objext \
6146 conftest$ac_exeext conftest.$ac_ext
6147 fi
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6149 $as_echo "$ac_cv_type_long_long_int" >&6; }
6150 if test $ac_cv_type_long_long_int = yes; then
6151
6152 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6153
6154 fi
6155
6156
6157
6158 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6159 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6160
6161 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6162
6163 else
6164 test $ac_cv_type_long_long_int = yes \
6165 && ac_type='long long int' \
6166 || ac_type='long int'
6167
6168 cat >>confdefs.h <<_ACEOF
6169 #define intmax_t $ac_type
6170 _ACEOF
6171
6172 fi
6173
6174
6175
6176 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6177 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6178
6179 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6180
6181 else
6182 for ac_type in 'int' 'long int' 'long long int'; do
6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h. */
6185 $ac_includes_default
6186 int
6187 main ()
6188 {
6189 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6190 test_array [0] = 0
6191
6192 ;
6193 return 0;
6194 }
6195 _ACEOF
6196 if ac_fn_c_try_compile "$LINENO"; then :
6197
6198 cat >>confdefs.h <<_ACEOF
6199 #define intptr_t $ac_type
6200 _ACEOF
6201
6202 ac_type=
6203 fi
6204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6205 test -z "$ac_type" && break
6206 done
6207 fi
6208
6209
6210 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6211 case $ac_cv_c_uint8_t in #(
6212 no|yes) ;; #(
6213 *)
6214
6215 $as_echo "#define _UINT8_T 1" >>confdefs.h
6216
6217
6218 cat >>confdefs.h <<_ACEOF
6219 #define uint8_t $ac_cv_c_uint8_t
6220 _ACEOF
6221 ;;
6222 esac
6223
6224 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6225 case $ac_cv_c_uint16_t in #(
6226 no|yes) ;; #(
6227 *)
6228
6229
6230 cat >>confdefs.h <<_ACEOF
6231 #define uint16_t $ac_cv_c_uint16_t
6232 _ACEOF
6233 ;;
6234 esac
6235
6236 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6237 case $ac_cv_c_uint32_t in #(
6238 no|yes) ;; #(
6239 *)
6240
6241 $as_echo "#define _UINT32_T 1" >>confdefs.h
6242
6243
6244 cat >>confdefs.h <<_ACEOF
6245 #define uint32_t $ac_cv_c_uint32_t
6246 _ACEOF
6247 ;;
6248 esac
6249
6250 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6251 case $ac_cv_c_uint64_t in #(
6252 no|yes) ;; #(
6253 *)
6254
6255 $as_echo "#define _UINT64_T 1" >>confdefs.h
6256
6257
6258 cat >>confdefs.h <<_ACEOF
6259 #define uint64_t $ac_cv_c_uint64_t
6260 _ACEOF
6261 ;;
6262 esac
6263
6264
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6266 $as_echo_n "checking for unsigned long long int... " >&6; }
6267 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6268 $as_echo_n "(cached) " >&6
6269 else
6270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6271 /* end confdefs.h. */
6272
6273 /* For now, do not test the preprocessor; as of 2007 there are too many
6274 implementations with broken preprocessors. Perhaps this can
6275 be revisited in 2012. In the meantime, code should not expect
6276 #if to work with literals wider than 32 bits. */
6277 /* Test literals. */
6278 long long int ll = 9223372036854775807ll;
6279 long long int nll = -9223372036854775807LL;
6280 unsigned long long int ull = 18446744073709551615ULL;
6281 /* Test constant expressions. */
6282 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6283 ? 1 : -1)];
6284 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6285 ? 1 : -1)];
6286 int i = 63;
6287 int
6288 main ()
6289 {
6290 /* Test availability of runtime routines for shift and division. */
6291 long long int llmax = 9223372036854775807ll;
6292 unsigned long long int ullmax = 18446744073709551615ull;
6293 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6294 | (llmax / ll) | (llmax % ll)
6295 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6296 | (ullmax / ull) | (ullmax % ull));
6297 ;
6298 return 0;
6299 }
6300
6301 _ACEOF
6302 if ac_fn_c_try_link "$LINENO"; then :
6303 ac_cv_type_unsigned_long_long_int=yes
6304 else
6305 ac_cv_type_unsigned_long_long_int=no
6306 fi
6307 rm -f core conftest.err conftest.$ac_objext \
6308 conftest$ac_exeext conftest.$ac_ext
6309 fi
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6311 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6312 if test $ac_cv_type_unsigned_long_long_int = yes; then
6313
6314 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6315
6316 fi
6317
6318
6319
6320 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6321 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6322
6323 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6324
6325 else
6326 test $ac_cv_type_unsigned_long_long_int = yes \
6327 && ac_type='unsigned long long int' \
6328 || ac_type='unsigned long int'
6329
6330 cat >>confdefs.h <<_ACEOF
6331 #define uintmax_t $ac_type
6332 _ACEOF
6333
6334 fi
6335
6336
6337
6338 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6339 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6340
6341 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6342
6343 else
6344 for ac_type in 'unsigned int' 'unsigned long int' \
6345 'unsigned long long int'; do
6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6348 $ac_includes_default
6349 int
6350 main ()
6351 {
6352 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6353 test_array [0] = 0
6354
6355 ;
6356 return 0;
6357 }
6358 _ACEOF
6359 if ac_fn_c_try_compile "$LINENO"; then :
6360
6361 cat >>confdefs.h <<_ACEOF
6362 #define uintptr_t $ac_type
6363 _ACEOF
6364
6365 ac_type=
6366 fi
6367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368 test -z "$ac_type" && break
6369 done
6370 fi
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386 # ---------------------
6387 # Warnings and checking
6388 # ---------------------
6389
6390 # Check $CC warning features (if it's GCC).
6391 # We want to use -pedantic, but we don't want warnings about
6392 # * 'long long'
6393 # * variadic macros
6394 # * overlong strings
6395 # * C++11 narrowing conversions in { }
6396 # So, we only use -pedantic if we can disable those warnings.
6397
6398 loose_warn=
6399 save_CFLAGS="$CFLAGS"
6400 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6401 # Do the check with the no- prefix removed since gcc silently
6402 # accepts any -Wno-* option on purpose
6403 case $real_option in
6404 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6405 *) option=$real_option ;;
6406 esac
6407 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6408
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. */
6417
6418 int
6419 main ()
6420 {
6421
6422 ;
6423 return 0;
6424 }
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"
6430 fi
6431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6432
6433 fi
6434 eval ac_res=\$$as_acx_Woption
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6436 $as_echo "$ac_res" >&6; }
6437 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6438 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6439 fi
6440 done
6441 CFLAGS="$save_CFLAGS"
6442
6443 c_loose_warn=
6444 save_CFLAGS="$CFLAGS"
6445 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6446 # Do the check with the no- prefix removed since gcc silently
6447 # accepts any -Wno-* option on purpose
6448 case $real_option in
6449 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6450 *) option=$real_option ;;
6451 esac
6452 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6453
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6455 $as_echo_n "checking whether $CC supports $option... " >&6; }
6456 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 CFLAGS="$option"
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6462
6463 int
6464 main ()
6465 {
6466
6467 ;
6468 return 0;
6469 }
6470 _ACEOF
6471 if ac_fn_c_try_compile "$LINENO"; then :
6472 eval "$as_acx_Woption=yes"
6473 else
6474 eval "$as_acx_Woption=no"
6475 fi
6476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6477
6478 fi
6479 eval ac_res=\$$as_acx_Woption
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6481 $as_echo "$ac_res" >&6; }
6482 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6483 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6484 fi
6485 done
6486 CFLAGS="$save_CFLAGS"
6487
6488 strict_warn=
6489 save_CFLAGS="$CFLAGS"
6490 for real_option in -Wmissing-format-attribute; do
6491 # Do the check with the no- prefix removed since gcc silently
6492 # accepts any -Wno-* option on purpose
6493 case $real_option in
6494 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6495 *) option=$real_option ;;
6496 esac
6497 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6498
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6500 $as_echo_n "checking whether $CC supports $option... " >&6; }
6501 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6502 $as_echo_n "(cached) " >&6
6503 else
6504 CFLAGS="$option"
6505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506 /* end confdefs.h. */
6507
6508 int
6509 main ()
6510 {
6511
6512 ;
6513 return 0;
6514 }
6515 _ACEOF
6516 if ac_fn_c_try_compile "$LINENO"; then :
6517 eval "$as_acx_Woption=yes"
6518 else
6519 eval "$as_acx_Woption=no"
6520 fi
6521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6522
6523 fi
6524 eval ac_res=\$$as_acx_Woption
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6526 $as_echo "$ac_res" >&6; }
6527 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6528 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6529 fi
6530 done
6531 CFLAGS="$save_CFLAGS"
6532
6533 c_strict_warn=
6534 save_CFLAGS="$CFLAGS"
6535 for real_option in -Wold-style-definition -Wc++-compat; do
6536 # Do the check with the no- prefix removed since gcc silently
6537 # accepts any -Wno-* option on purpose
6538 case $real_option in
6539 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6540 *) option=$real_option ;;
6541 esac
6542 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6543
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6545 $as_echo_n "checking whether $CC supports $option... " >&6; }
6546 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6547 $as_echo_n "(cached) " >&6
6548 else
6549 CFLAGS="$option"
6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h. */
6552
6553 int
6554 main ()
6555 {
6556
6557 ;
6558 return 0;
6559 }
6560 _ACEOF
6561 if ac_fn_c_try_compile "$LINENO"; then :
6562 eval "$as_acx_Woption=yes"
6563 else
6564 eval "$as_acx_Woption=no"
6565 fi
6566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6567
6568 fi
6569 eval ac_res=\$$as_acx_Woption
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6571 $as_echo "$ac_res" >&6; }
6572 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6573 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6574 fi
6575 done
6576 CFLAGS="$save_CFLAGS"
6577
6578 # Do the check with the no- prefix removed from the warning options
6579 # since gcc silently accepts any -Wno-* option on purpose
6580 if test "$GCC" = yes; then :
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6582 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6583 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6584 $as_echo_n "(cached) " >&6
6585 else
6586 save_CFLAGS="$CFLAGS"
6587 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h. */
6590
6591 int
6592 main ()
6593 {
6594
6595 ;
6596 return 0;
6597 }
6598 _ACEOF
6599 if ac_fn_c_try_compile "$LINENO"; then :
6600 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6601 else
6602 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6603 fi
6604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6605 CFLAGS="$save_CFLAGS"
6606 fi
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6608 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6609 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6610 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6611 fi
6612
6613 fi
6614
6615 # Check whether --enable-werror-always was given.
6616 if test "${enable_werror_always+set}" = set; then :
6617 enableval=$enable_werror_always;
6618 else
6619 enable_werror_always=no
6620 fi
6621
6622 if test $enable_werror_always = yes; then :
6623 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6624 fi
6625
6626
6627
6628 # The above macros do nothing if the compiler is not GCC. However, the
6629 # Makefile has more goo to add other flags, so these variables are used
6630 # to enable warnings only for GCC.
6631 warn_cflags=
6632 warn_cxxflags=
6633 if test "x$GCC" = "xyes"; then
6634 warn_cflags='$(GCC_WARN_CFLAGS)'
6635 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6636 fi
6637
6638
6639
6640 # Disable exceptions and RTTI if building with g++
6641 noexception_flags=
6642 save_CFLAGS="$CFLAGS"
6643 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6644 # Do the check with the no- prefix removed since gcc silently
6645 # accepts any -Wno-* option on purpose
6646 case $real_option in
6647 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6648 *) option=$real_option ;;
6649 esac
6650 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6651
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6653 $as_echo_n "checking whether $CC supports $option... " >&6; }
6654 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6655 $as_echo_n "(cached) " >&6
6656 else
6657 CFLAGS="$option"
6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6660
6661 int
6662 main ()
6663 {
6664
6665 ;
6666 return 0;
6667 }
6668 _ACEOF
6669 if ac_fn_c_try_compile "$LINENO"; then :
6670 eval "$as_acx_Woption=yes"
6671 else
6672 eval "$as_acx_Woption=no"
6673 fi
6674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6675
6676 fi
6677 eval ac_res=\$$as_acx_Woption
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6679 $as_echo "$ac_res" >&6; }
6680 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6681 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6682 fi
6683 done
6684 CFLAGS="$save_CFLAGS"
6685
6686
6687 # Enable expensive internal checks
6688 is_release=
6689 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6690 is_release=yes
6691 fi
6692
6693 # Check whether --enable-checking was given.
6694 if test "${enable_checking+set}" = set; then :
6695 enableval=$enable_checking; ac_checking_flags="${enableval}"
6696 else
6697
6698 # Determine the default checks.
6699 if test x$is_release = x ; then
6700 ac_checking_flags=yes
6701 else
6702 ac_checking_flags=release
6703 fi
6704 fi
6705
6706 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6707 for check in release $ac_checking_flags
6708 do
6709 case $check in
6710 # these set all the flags to specific states
6711 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6712 ac_fold_checking= ; ac_gc_checking=1 ;
6713 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6714 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6715 ac_tree_checking=1 ; ac_valgrind_checking= ;
6716 ac_types_checking=1 ;;
6717 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6718 ac_fold_checking= ; ac_gc_checking= ;
6719 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6720 ac_rtlflag_checking= ; ac_runtime_checking= ;
6721 ac_tree_checking= ; ac_valgrind_checking= ;
6722 ac_types_checking= ;;
6723 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6724 ac_fold_checking=1 ; ac_gc_checking=1 ;
6725 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6726 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6727 ac_tree_checking=1 ; ac_valgrind_checking= ;
6728 ac_types_checking=1 ;;
6729 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6730 ac_fold_checking= ; ac_gc_checking= ;
6731 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6732 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6733 ac_tree_checking= ; ac_valgrind_checking= ;
6734 ac_types_checking= ;;
6735 # these enable particular checks
6736 assert) ac_assert_checking=1 ;;
6737 df) ac_df_checking=1 ;;
6738 fold) ac_fold_checking=1 ;;
6739 gc) ac_gc_checking=1 ;;
6740 gcac) ac_gc_always_collect=1 ;;
6741 gimple) ac_gimple_checking=1 ;;
6742 misc) ac_checking=1 ;;
6743 rtl) ac_rtl_checking=1 ;;
6744 rtlflag) ac_rtlflag_checking=1 ;;
6745 runtime) ac_runtime_checking=1 ;;
6746 tree) ac_tree_checking=1 ;;
6747 types) ac_types_checking=1 ;;
6748 valgrind) ac_valgrind_checking=1 ;;
6749 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6750 esac
6751 done
6752 IFS="$ac_save_IFS"
6753
6754 nocommon_flag=""
6755 if test x$ac_checking != x ; then
6756
6757 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6758
6759 nocommon_flag=-fno-common
6760 fi
6761
6762 if test x$ac_df_checking != x ; then
6763
6764 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6765
6766 fi
6767 if test x$ac_assert_checking != x ; then
6768
6769 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6770
6771 fi
6772 if test x$ac_gimple_checking != x ; then
6773
6774 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6775
6776 fi
6777
6778 if test x$ac_runtime_checking != x ; then
6779
6780 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6781
6782 fi
6783 if test x$ac_tree_checking != x ; then
6784
6785 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6786
6787 TREEBROWSER=tree-browser.o
6788 fi
6789 if test x$ac_types_checking != x ; then
6790
6791 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6792
6793 fi
6794
6795 if test x$ac_rtl_checking != x ; then
6796
6797 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6798
6799 fi
6800 if test x$ac_rtlflag_checking != x ; then
6801
6802 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6803
6804 fi
6805 if test x$ac_gc_checking != x ; then
6806
6807 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6808
6809 fi
6810 if test x$ac_gc_always_collect != x ; then
6811
6812 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6813
6814 fi
6815 if test x$ac_fold_checking != x ; then
6816
6817 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6818
6819 fi
6820 valgrind_path_defines=
6821 valgrind_command=
6822
6823 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6824 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6825 have_valgrind_h=yes
6826 else
6827 have_valgrind_h=no
6828 fi
6829
6830
6831
6832 if test x$ac_valgrind_checking != x ; then
6833 # It is certainly possible that there's valgrind but no valgrind.h.
6834 # GCC relies on making annotations so we must have both.
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6836 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6839 #include <valgrind/memcheck.h>
6840 #ifndef VALGRIND_DISCARD
6841 #error VALGRIND_DISCARD not defined
6842 #endif
6843 _ACEOF
6844 if ac_fn_c_try_cpp "$LINENO"; then :
6845 gcc_cv_header_valgrind_memcheck_h=yes
6846 else
6847 gcc_cv_header_valgrind_memcheck_h=no
6848 fi
6849 rm -f conftest.err conftest.$ac_ext
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6851 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6853 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855 /* end confdefs.h. */
6856 #include <memcheck.h>
6857 #ifndef VALGRIND_DISCARD
6858 #error VALGRIND_DISCARD not defined
6859 #endif
6860 _ACEOF
6861 if ac_fn_c_try_cpp "$LINENO"; then :
6862 gcc_cv_header_memcheck_h=yes
6863 else
6864 gcc_cv_header_memcheck_h=no
6865 fi
6866 rm -f conftest.err conftest.$ac_ext
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6868 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6869
6870 # Prepare PATH_SEPARATOR.
6871 # The user is always right.
6872 if test "${PATH_SEPARATOR+set}" != set; then
6873 echo "#! /bin/sh" >conf$$.sh
6874 echo "exit 0" >>conf$$.sh
6875 chmod +x conf$$.sh
6876 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6877 PATH_SEPARATOR=';'
6878 else
6879 PATH_SEPARATOR=:
6880 fi
6881 rm -f conf$$.sh
6882 fi
6883
6884 # Find out how to test for executable files. Don't use a zero-byte file,
6885 # as systems may use methods other than mode bits to determine executability.
6886 cat >conf$$.file <<_ASEOF
6887 #! /bin/sh
6888 exit 0
6889 _ASEOF
6890 chmod +x conf$$.file
6891 if test -x conf$$.file >/dev/null 2>&1; then
6892 ac_executable_p="test -x"
6893 else
6894 ac_executable_p="test -f"
6895 fi
6896 rm -f conf$$.file
6897
6898 # Extract the first word of "valgrind", so it can be a program name with args.
6899 set dummy valgrind; ac_word=$2
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901 $as_echo_n "checking for $ac_word... " >&6; }
6902 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6903 $as_echo_n "(cached) " >&6
6904 else
6905 case "$valgrind_path" in
6906 [\\/]* | ?:[\\/]*)
6907 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6908 ;;
6909 *)
6910 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6911 for ac_dir in $PATH; do
6912 IFS="$ac_save_IFS"
6913 test -z "$ac_dir" && ac_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6916 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6917 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6918 break 2
6919 fi
6920 fi
6921 done
6922 done
6923 IFS="$ac_save_IFS"
6924 ;;
6925 esac
6926 fi
6927 valgrind_path="$ac_cv_path_valgrind_path"
6928 if test -n "$valgrind_path"; then
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6930 $as_echo "$valgrind_path" >&6; }
6931 else
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6934 fi
6935
6936 if test "x$valgrind_path" = "x" \
6937 || (test $have_valgrind_h = no \
6938 && test $gcc_cv_header_memcheck_h = no \
6939 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6940 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6941 fi
6942 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6943 valgrind_command="$valgrind_path -q"
6944
6945 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6946
6947 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6948
6949 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6950
6951 fi
6952 if test $gcc_cv_header_memcheck_h = yes; then
6953
6954 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6955
6956 fi
6957 fi
6958
6959
6960
6961 # Enable code coverage collection
6962 # Check whether --enable-coverage was given.
6963 if test "${enable_coverage+set}" = set; then :
6964 enableval=$enable_coverage; case "${enableval}" in
6965 yes|noopt)
6966 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6967 ;;
6968 opt)
6969 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6970 ;;
6971 no)
6972 # a.k.a. --disable-coverage
6973 coverage_flags=""
6974 ;;
6975 *)
6976 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6977 ;;
6978 esac
6979 else
6980 coverage_flags=""
6981 fi
6982
6983
6984
6985 # Check whether --enable-gather-detailed-mem-stats was given.
6986 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6987 enableval=$enable_gather_detailed_mem_stats;
6988 else
6989 enable_gather_detailed_mem_stats=no
6990 fi
6991
6992 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6993
6994 cat >>confdefs.h <<_ACEOF
6995 #define GATHER_STATISTICS $gather_stats
6996 _ACEOF
6997
6998
6999 # -------------------------------
7000 # Miscenalleous configure options
7001 # -------------------------------
7002
7003 # With stabs
7004
7005 # Check whether --with-stabs was given.
7006 if test "${with_stabs+set}" = set; then :
7007 withval=$with_stabs; stabs="$with_stabs"
7008 else
7009 stabs=no
7010 fi
7011
7012
7013 # Determine whether or not multilibs are enabled.
7014 # Check whether --enable-multilib was given.
7015 if test "${enable_multilib+set}" = set; then :
7016 enableval=$enable_multilib;
7017 else
7018 enable_multilib=yes
7019 fi
7020
7021
7022
7023 # Determine whether or not multiarch is enabled.
7024 # Check whether --enable-multiarch was given.
7025 if test "${enable_multiarch+set}" = set; then :
7026 enableval=$enable_multiarch; case "${withval}" in
7027 yes|no|auto) enable_multiarch=$withval;;
7028 *) as_fn_error "bad value ${withval} given for --enable-multiarch option" "$LINENO" 5 ;;
7029 esac
7030 else
7031 enable_multiarch=auto
7032 fi
7033
7034 if test x${enable_multiarch} = xauto; then
7035 if test x${with_native_system_header_dir} != x; then
7036 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7037 enable_multiarch=no
7038 fi
7039 if test x$host != x$target && test "x$with_sysroot" = x; then
7040 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7041 enable_multiarch=no
7042 fi
7043 fi
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7045 $as_echo_n "checking for multiarch configuration... " >&6; }
7046
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7048 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7049
7050 # needed for setting the multiarch name for soft-float/hard-float ABIs
7051
7052
7053 # Enable __cxa_atexit for C++.
7054 # Check whether --enable-__cxa_atexit was given.
7055 if test "${enable___cxa_atexit+set}" = set; then :
7056 enableval=$enable___cxa_atexit;
7057 fi
7058
7059
7060 # Enable C extension for decimal float if target supports it.
7061
7062 # Check whether --enable-decimal-float was given.
7063 if test "${enable_decimal_float+set}" = set; then :
7064 enableval=$enable_decimal_float;
7065 case $enable_decimal_float in
7066 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7067 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7068 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7069 esac
7070
7071 else
7072
7073 case $target in
7074 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7075 i?86*-*-mingw* | x86_64*-*-mingw* | \
7076 i?86*-*-cygwin*)
7077 enable_decimal_float=yes
7078 ;;
7079 *)
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7081 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7082 enable_decimal_float=no
7083 ;;
7084 esac
7085
7086 fi
7087
7088
7089 # x86's use BID format instead of DPD
7090 case x$enable_decimal_float in
7091 xyes)
7092 case $target in
7093 i?86*-*-* | x86_64*-*-*)
7094 enable_decimal_float=bid
7095 ;;
7096 *)
7097 enable_decimal_float=dpd
7098 ;;
7099 esac
7100 default_decimal_float=$enable_decimal_float
7101 ;;
7102 xno)
7103 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7104 # dependency on libdecnumber.
7105 default_decimal_float=dpd
7106 ;;
7107 esac
7108
7109
7110
7111
7112 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7113
7114 cat >>confdefs.h <<_ACEOF
7115 #define ENABLE_DECIMAL_FLOAT $dfp
7116 _ACEOF
7117
7118
7119 # Use default_decimal_float for dependency.
7120 enable_decimal_float=$default_decimal_float
7121
7122 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7123
7124 cat >>confdefs.h <<_ACEOF
7125 #define ENABLE_DECIMAL_BID_FORMAT $bid
7126 _ACEOF
7127
7128
7129 # Enable C extension for fixed-point arithmetic.
7130 # Check whether --enable-fixed-point was given.
7131 if test "${enable_fixed_point+set}" = set; then :
7132 enableval=$enable_fixed_point;
7133 else
7134
7135 case $target in
7136 arm*)
7137 enable_fixed_point=yes
7138 ;;
7139
7140 mips*-*-*)
7141 enable_fixed_point=yes
7142 ;;
7143 *)
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7145 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7146 enable_fixed_point=no
7147 ;;
7148 esac
7149
7150 fi
7151
7152
7153
7154 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7155
7156 cat >>confdefs.h <<_ACEOF
7157 #define ENABLE_FIXED_POINT $fixedpoint
7158 _ACEOF
7159
7160
7161 # Enable threads
7162 # Pass with no value to take the default
7163 # Pass with a value to specify a thread package
7164 # Check whether --enable-threads was given.
7165 if test "${enable_threads+set}" = set; then :
7166 enableval=$enable_threads;
7167 else
7168 enable_threads=''
7169 fi
7170
7171
7172 # Check whether --enable-tls was given.
7173 if test "${enable_tls+set}" = set; then :
7174 enableval=$enable_tls;
7175 case $enable_tls in
7176 yes | no) ;;
7177 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7178 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7179 esac
7180
7181 else
7182 enable_tls=''
7183 fi
7184
7185
7186 # Check whether --enable-objc-gc was given.
7187 if test "${enable_objc_gc+set}" = set; then :
7188 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7189 objc_boehm_gc=''
7190 else
7191 objc_boehm_gc=1
7192 fi
7193 else
7194 objc_boehm_gc=''
7195 fi
7196
7197
7198
7199 # Check whether --with-dwarf2 was given.
7200 if test "${with_dwarf2+set}" = set; then :
7201 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7202 else
7203 dwarf2=no
7204 fi
7205
7206
7207 # Check whether --enable-shared was given.
7208 if test "${enable_shared+set}" = set; then :
7209 enableval=$enable_shared;
7210 case $enable_shared in
7211 yes | no) ;;
7212 *)
7213 enable_shared=no
7214 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7215 for pkg in $enableval; do
7216 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7217 enable_shared=yes
7218 fi
7219 done
7220 IFS="$ac_save_ifs"
7221 ;;
7222 esac
7223
7224 else
7225 enable_shared=yes
7226 fi
7227
7228
7229
7230
7231 # Check whether --with-native-system-header-dir was given.
7232 if test "${with_native_system_header_dir+set}" = set; then :
7233 withval=$with_native_system_header_dir;
7234 case ${with_native_system_header_dir} in
7235 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7236 /* | [A-Za-z]:[\\/]*) ;;
7237 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7238 esac
7239 configured_native_system_header_dir="${withval}"
7240
7241 else
7242 configured_native_system_header_dir=
7243 fi
7244
7245
7246
7247 # Check whether --with-build-sysroot was given.
7248 if test "${with_build_sysroot+set}" = set; then :
7249 withval=$with_build_sysroot; if test x"$withval" != x ; then
7250 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7251 fi
7252 else
7253 SYSROOT_CFLAGS_FOR_TARGET=
7254 fi
7255
7256
7257
7258 if test "x$prefix" = xNONE; then
7259 test_prefix=/usr/local
7260 else
7261 test_prefix=$prefix
7262 fi
7263 if test "x$exec_prefix" = xNONE; then
7264 test_exec_prefix=$test_prefix
7265 else
7266 test_exec_prefix=$exec_prefix
7267 fi
7268
7269
7270 # Check whether --with-sysroot was given.
7271 if test "${with_sysroot+set}" = set; then :
7272 withval=$with_sysroot;
7273 case ${with_sysroot} in
7274 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7275 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7276 esac
7277
7278 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7279 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7280
7281 case ${TARGET_SYSTEM_ROOT} in
7282 "${test_prefix}"|"${test_prefix}/"*|\
7283 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7284 '${prefix}'|'${prefix}/'*|\
7285 '${exec_prefix}'|'${exec_prefix}/'*)
7286 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7287 TARGET_SYSTEM_ROOT_DEFINE="$t"
7288 ;;
7289 esac
7290
7291 else
7292
7293 TARGET_SYSTEM_ROOT=
7294 TARGET_SYSTEM_ROOT_DEFINE=
7295 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7296
7297 fi
7298
7299
7300
7301
7302
7303
7304 # Check whether --with-specs was given.
7305 if test "${with_specs+set}" = set; then :
7306 withval=$with_specs; CONFIGURE_SPECS=$withval
7307 else
7308 CONFIGURE_SPECS=
7309
7310 fi
7311
7312
7313
7314
7315
7316 # Check whether --with-pkgversion was given.
7317 if test "${with_pkgversion+set}" = set; then :
7318 withval=$with_pkgversion; case "$withval" in
7319 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7320 no) PKGVERSION= ;;
7321 *) PKGVERSION="($withval) " ;;
7322 esac
7323 else
7324 PKGVERSION="(GCC) "
7325
7326 fi
7327
7328
7329
7330
7331
7332 # Check whether --with-bugurl was given.
7333 if test "${with_bugurl+set}" = set; then :
7334 withval=$with_bugurl; case "$withval" in
7335 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7336 no) BUGURL=
7337 ;;
7338 *) BUGURL="$withval"
7339 ;;
7340 esac
7341 else
7342 BUGURL="http://gcc.gnu.org/bugs.html"
7343
7344 fi
7345
7346 case ${BUGURL} in
7347 "")
7348 REPORT_BUGS_TO=
7349 REPORT_BUGS_TEXI=
7350 ;;
7351 *)
7352 REPORT_BUGS_TO="<$BUGURL>"
7353 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7354 ;;
7355 esac;
7356
7357
7358
7359
7360 # Sanity check enable_languages in case someone does not run the toplevel
7361 # configure # script.
7362 # Check whether --enable-languages was given.
7363 if test "${enable_languages+set}" = set; then :
7364 enableval=$enable_languages; case ,${enable_languages}, in
7365 ,,|,yes,)
7366 # go safe -- we cannot be much sure without the toplevel
7367 # configure's
7368 # analysis of which target libs are present and usable
7369 enable_languages=c
7370 ;;
7371 *,all,*)
7372 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7373 ;;
7374 *,c,*)
7375 ;;
7376 *)
7377 enable_languages=c,${enable_languages}
7378 ;;
7379 esac
7380 else
7381 enable_languages=c
7382 fi
7383
7384
7385
7386 # Check whether --with-multilib-list was given.
7387 if test "${with_multilib_list+set}" = set; then :
7388 withval=$with_multilib_list; :
7389 else
7390 with_multilib_list=default
7391 fi
7392
7393
7394 # -------------------------
7395 # Checks for other programs
7396 # -------------------------
7397
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7399 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7400 set x ${MAKE-make}
7401 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7402 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7403 $as_echo_n "(cached) " >&6
7404 else
7405 cat >conftest.make <<\_ACEOF
7406 SHELL = /bin/sh
7407 all:
7408 @echo '@@@%%%=$(MAKE)=@@@%%%'
7409 _ACEOF
7410 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7411 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7412 *@@@%%%=?*=@@@%%%*)
7413 eval ac_cv_prog_make_${ac_make}_set=yes;;
7414 *)
7415 eval ac_cv_prog_make_${ac_make}_set=no;;
7416 esac
7417 rm -f conftest.make
7418 fi
7419 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7421 $as_echo "yes" >&6; }
7422 SET_MAKE=
7423 else
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425 $as_echo "no" >&6; }
7426 SET_MAKE="MAKE=${MAKE-make}"
7427 fi
7428
7429
7430 # Find some useful tools
7431 for ac_prog in gawk mawk nawk awk
7432 do
7433 # Extract the first word of "$ac_prog", so it can be a program name with args.
7434 set dummy $ac_prog; ac_word=$2
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436 $as_echo_n "checking for $ac_word... " >&6; }
7437 if test "${ac_cv_prog_AWK+set}" = set; then :
7438 $as_echo_n "(cached) " >&6
7439 else
7440 if test -n "$AWK"; then
7441 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7442 else
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH
7445 do
7446 IFS=$as_save_IFS
7447 test -z "$as_dir" && as_dir=.
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7450 ac_cv_prog_AWK="$ac_prog"
7451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7452 break 2
7453 fi
7454 done
7455 done
7456 IFS=$as_save_IFS
7457
7458 fi
7459 fi
7460 AWK=$ac_cv_prog_AWK
7461 if test -n "$AWK"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7463 $as_echo "$AWK" >&6; }
7464 else
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7467 fi
7468
7469
7470 test -n "$AWK" && break
7471 done
7472
7473 # We need awk to create options.c and options.h.
7474 # Bail out if it's missing.
7475 case ${AWK} in
7476 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7477 esac
7478
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7480 $as_echo_n "checking whether ln -s works... " >&6; }
7481 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7482 $as_echo_n "(cached) " >&6
7483 else
7484 rm -f conftestdata_t
7485 echo >conftestdata_f
7486 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7487 then
7488 gcc_cv_prog_LN_S="ln -s"
7489 else
7490 if ln conftestdata_f conftestdata_t 2>/dev/null
7491 then
7492 gcc_cv_prog_LN_S=ln
7493 else
7494 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7495 then
7496 gcc_cv_prog_LN_S="cp -p"
7497 else
7498 gcc_cv_prog_LN_S=cp
7499 fi
7500 fi
7501 fi
7502 rm -f conftestdata_f conftestdata_t
7503
7504 fi
7505 LN_S="$gcc_cv_prog_LN_S"
7506 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7508 $as_echo "yes" >&6; }
7509 else
7510 if test "$gcc_cv_prog_LN_S" = "ln"; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7512 $as_echo "no, using ln" >&6; }
7513 else
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7515 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7516 fi
7517 fi
7518
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7520 $as_echo_n "checking whether ln works... " >&6; }
7521 if test "${acx_cv_prog_LN+set}" = set; then :
7522 $as_echo_n "(cached) " >&6
7523 else
7524 rm -f conftestdata_t
7525 echo >conftestdata_f
7526 if ln conftestdata_f conftestdata_t 2>/dev/null
7527 then
7528 acx_cv_prog_LN=ln
7529 else
7530 acx_cv_prog_LN=no
7531 fi
7532 rm -f conftestdata_f conftestdata_t
7533
7534 fi
7535 if test $acx_cv_prog_LN = no; then
7536 LN="$LN_S"
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7538 $as_echo "no, using $LN" >&6; }
7539 else
7540 LN="$acx_cv_prog_LN"
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7542 $as_echo "yes" >&6; }
7543 fi
7544
7545 if test -n "$ac_tool_prefix"; then
7546 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7547 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7549 $as_echo_n "checking for $ac_word... " >&6; }
7550 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7551 $as_echo_n "(cached) " >&6
7552 else
7553 if test -n "$RANLIB"; then
7554 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7555 else
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7558 do
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7563 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 break 2
7566 fi
7567 done
7568 done
7569 IFS=$as_save_IFS
7570
7571 fi
7572 fi
7573 RANLIB=$ac_cv_prog_RANLIB
7574 if test -n "$RANLIB"; then
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7576 $as_echo "$RANLIB" >&6; }
7577 else
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579 $as_echo "no" >&6; }
7580 fi
7581
7582
7583 fi
7584 if test -z "$ac_cv_prog_RANLIB"; then
7585 ac_ct_RANLIB=$RANLIB
7586 # Extract the first word of "ranlib", so it can be a program name with args.
7587 set dummy ranlib; ac_word=$2
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589 $as_echo_n "checking for $ac_word... " >&6; }
7590 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7591 $as_echo_n "(cached) " >&6
7592 else
7593 if test -n "$ac_ct_RANLIB"; then
7594 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7595 else
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7598 do
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7603 ac_cv_prog_ac_ct_RANLIB="ranlib"
7604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 break 2
7606 fi
7607 done
7608 done
7609 IFS=$as_save_IFS
7610
7611 fi
7612 fi
7613 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7614 if test -n "$ac_ct_RANLIB"; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7616 $as_echo "$ac_ct_RANLIB" >&6; }
7617 else
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619 $as_echo "no" >&6; }
7620 fi
7621
7622 if test "x$ac_ct_RANLIB" = x; then
7623 RANLIB=":"
7624 else
7625 case $cross_compiling:$ac_tool_warned in
7626 yes:)
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7629 ac_tool_warned=yes ;;
7630 esac
7631 RANLIB=$ac_ct_RANLIB
7632 fi
7633 else
7634 RANLIB="$ac_cv_prog_RANLIB"
7635 fi
7636
7637 ranlib_flags=""
7638
7639
7640 # Find a good install program. We prefer a C program (faster),
7641 # so one script is as good as another. But avoid the broken or
7642 # incompatible versions:
7643 # SysV /etc/install, /usr/sbin/install
7644 # SunOS /usr/etc/install
7645 # IRIX /sbin/install
7646 # AIX /bin/install
7647 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7648 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7649 # ./install, which can be erroneously created by make from ./install.sh.
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7651 $as_echo_n "checking for a BSD compatible install... " >&6; }
7652 if test -z "$INSTALL"; then
7653 if test "${ac_cv_path_install+set}" = set; then :
7654 $as_echo_n "(cached) " >&6
7655 else
7656 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7657 for ac_dir in $PATH; do
7658 # Account for people who put trailing slashes in PATH elements.
7659 case "$ac_dir/" in
7660 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7661 *)
7662 # OSF1 and SCO ODT 3.0 have their own names for install.
7663 for ac_prog in ginstall scoinst install; do
7664 if test -f $ac_dir/$ac_prog; then
7665 if test $ac_prog = install &&
7666 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7667 # AIX install. It has an incompatible calling convention.
7668 # OSF/1 installbsd also uses dspmsg, but is usable.
7669 :
7670 else
7671 ac_cv_path_install="$ac_dir/$ac_prog -c"
7672 break 2
7673 fi
7674 fi
7675 done
7676 ;;
7677 esac
7678 done
7679 IFS="$ac_save_IFS"
7680
7681 fi
7682 if test "${ac_cv_path_install+set}" = set; then
7683 INSTALL="$ac_cv_path_install"
7684 else
7685 # As a last resort, use the slow shell script. We don't cache a
7686 # path for INSTALL within a source directory, because that will
7687 # break other packages using the cache if that directory is
7688 # removed, or if the path is relative.
7689 INSTALL="$ac_install_sh"
7690 fi
7691 fi
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7693 $as_echo "$INSTALL" >&6; }
7694
7695 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7696 # It thinks the first close brace ends the variable substitution.
7697 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7698
7699 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7700
7701
7702 # See if cmp has --ignore-initial.
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7704 $as_echo_n "checking for cmp's capabilities... " >&6; }
7705 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7706 $as_echo_n "(cached) " >&6
7707 else
7708 echo abfoo >t1
7709 echo cdfoo >t2
7710 gcc_cv_prog_cmp_skip=slowcompare
7711 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7712 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7713 :
7714 else
7715 gcc_cv_prog_cmp_skip=gnucompare
7716 fi
7717 fi
7718 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7719 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7720 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7721 :
7722 else
7723 gcc_cv_prog_cmp_skip=fastcompare
7724 fi
7725 fi
7726 fi
7727 rm t1 t2
7728
7729 fi
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7731 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7732 make_compare_target=$gcc_cv_prog_cmp_skip
7733
7734
7735
7736 # See if we have the mktemp command.
7737 # Extract the first word of "mktemp", so it can be a program name with args.
7738 set dummy mktemp; ac_word=$2
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740 $as_echo_n "checking for $ac_word... " >&6; }
7741 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7742 $as_echo_n "(cached) " >&6
7743 else
7744 if test -n "$have_mktemp_command"; then
7745 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7746 else
7747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 for as_dir in $PATH
7749 do
7750 IFS=$as_save_IFS
7751 test -z "$as_dir" && as_dir=.
7752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7754 ac_cv_prog_have_mktemp_command="yes"
7755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7756 break 2
7757 fi
7758 done
7759 done
7760 IFS=$as_save_IFS
7761
7762 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7763 fi
7764 fi
7765 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7766 if test -n "$have_mktemp_command"; then
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7768 $as_echo "$have_mktemp_command" >&6; }
7769 else
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771 $as_echo "no" >&6; }
7772 fi
7773
7774
7775
7776 # See if makeinfo has been installed and is modern enough
7777 # that we can use it.
7778
7779 # Extract the first word of "makeinfo", so it can be a program name with args.
7780 set dummy makeinfo; ac_word=$2
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782 $as_echo_n "checking for $ac_word... " >&6; }
7783 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7784 $as_echo_n "(cached) " >&6
7785 else
7786 if test -n "$MAKEINFO"; then
7787 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7788 else
7789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790 for as_dir in $PATH
7791 do
7792 IFS=$as_save_IFS
7793 test -z "$as_dir" && as_dir=.
7794 for ac_exec_ext in '' $ac_executable_extensions; do
7795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7796 ac_cv_prog_MAKEINFO="makeinfo"
7797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7798 break 2
7799 fi
7800 done
7801 done
7802 IFS=$as_save_IFS
7803
7804 fi
7805 fi
7806 MAKEINFO=$ac_cv_prog_MAKEINFO
7807 if test -n "$MAKEINFO"; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7809 $as_echo "$MAKEINFO" >&6; }
7810 else
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 $as_echo "no" >&6; }
7813 fi
7814
7815
7816 if test -n "$MAKEINFO"; then
7817 # Found it, now check the version.
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7819 $as_echo_n "checking for modern makeinfo... " >&6; }
7820 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7821 $as_echo_n "(cached) " >&6
7822 else
7823 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7824 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7825
7826 case $ac_prog_version in
7827 '') gcc_cv_prog_makeinfo_modern=no;;
7828 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7829 *) gcc_cv_prog_makeinfo_modern=no;;
7830 esac
7831
7832 fi
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7834 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7835 else
7836 gcc_cv_prog_makeinfo_modern=no
7837 fi
7838 if test $gcc_cv_prog_makeinfo_modern = no; then
7839 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7840 fi
7841
7842 if test $gcc_cv_prog_makeinfo_modern = no; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7844 *** Makeinfo is missing or too old.
7845 *** Info documentation will not be built." >&5
7846 $as_echo "$as_me: WARNING:
7847 *** Makeinfo is missing or too old.
7848 *** Info documentation will not be built." >&2;}
7849 BUILD_INFO=
7850 else
7851 BUILD_INFO=info
7852 fi
7853
7854
7855 # Is pod2man recent enough to regenerate manpages?
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7857 $as_echo_n "checking for recent Pod::Man... " >&6; }
7858 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7860 $as_echo "yes" >&6; }
7861 GENERATED_MANPAGES=generated-manpages
7862 else
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864 $as_echo "no" >&6; }
7865 GENERATED_MANPAGES=
7866 fi
7867
7868
7869 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7870
7871 # How about lex?
7872 for ac_prog in flex
7873 do
7874 # Extract the first word of "$ac_prog", so it can be a program name with args.
7875 set dummy $ac_prog; ac_word=$2
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877 $as_echo_n "checking for $ac_word... " >&6; }
7878 if test "${ac_cv_prog_FLEX+set}" = set; then :
7879 $as_echo_n "(cached) " >&6
7880 else
7881 if test -n "$FLEX"; then
7882 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7883 else
7884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885 for as_dir in $PATH
7886 do
7887 IFS=$as_save_IFS
7888 test -z "$as_dir" && as_dir=.
7889 for ac_exec_ext in '' $ac_executable_extensions; do
7890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7891 ac_cv_prog_FLEX="$ac_prog"
7892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7893 break 2
7894 fi
7895 done
7896 done
7897 IFS=$as_save_IFS
7898
7899 fi
7900 fi
7901 FLEX=$ac_cv_prog_FLEX
7902 if test -n "$FLEX"; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7904 $as_echo "$FLEX" >&6; }
7905 else
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7908 fi
7909
7910
7911 test -n "$FLEX" && break
7912 done
7913 test -n "$FLEX" || FLEX="$MISSING flex"
7914
7915
7916 # Bison?
7917 for ac_prog in bison
7918 do
7919 # Extract the first word of "$ac_prog", so it can be a program name with args.
7920 set dummy $ac_prog; ac_word=$2
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7922 $as_echo_n "checking for $ac_word... " >&6; }
7923 if test "${ac_cv_prog_BISON+set}" = set; then :
7924 $as_echo_n "(cached) " >&6
7925 else
7926 if test -n "$BISON"; then
7927 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7928 else
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 for as_dir in $PATH
7931 do
7932 IFS=$as_save_IFS
7933 test -z "$as_dir" && as_dir=.
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7936 ac_cv_prog_BISON="$ac_prog"
7937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7938 break 2
7939 fi
7940 done
7941 done
7942 IFS=$as_save_IFS
7943
7944 fi
7945 fi
7946 BISON=$ac_cv_prog_BISON
7947 if test -n "$BISON"; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7949 $as_echo "$BISON" >&6; }
7950 else
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 $as_echo "no" >&6; }
7953 fi
7954
7955
7956 test -n "$BISON" && break
7957 done
7958 test -n "$BISON" || BISON="$MISSING bison"
7959
7960
7961 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7962 # check for build == host before using them.
7963
7964 # NM
7965 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7966 && test -d ../binutils ; then
7967 NM='${objdir}/../binutils/nm-new'
7968 else
7969 # Extract the first word of "nm", so it can be a program name with args.
7970 set dummy nm; ac_word=$2
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972 $as_echo_n "checking for $ac_word... " >&6; }
7973 if test "${ac_cv_prog_NM+set}" = set; then :
7974 $as_echo_n "(cached) " >&6
7975 else
7976 if test -n "$NM"; then
7977 ac_cv_prog_NM="$NM" # Let the user override the test.
7978 else
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980 for as_dir in $PATH
7981 do
7982 IFS=$as_save_IFS
7983 test -z "$as_dir" && as_dir=.
7984 for ac_exec_ext in '' $ac_executable_extensions; do
7985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7986 ac_cv_prog_NM="nm"
7987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7988 break 2
7989 fi
7990 done
7991 done
7992 IFS=$as_save_IFS
7993
7994 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7995 fi
7996 fi
7997 NM=$ac_cv_prog_NM
7998 if test -n "$NM"; then
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8000 $as_echo "$NM" >&6; }
8001 else
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003 $as_echo "no" >&6; }
8004 fi
8005
8006
8007 fi
8008
8009 # AR
8010 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8011 && test -d ../binutils ; then
8012 AR='${objdir}/../binutils/ar'
8013 else
8014 # Extract the first word of "ar", so it can be a program name with args.
8015 set dummy ar; ac_word=$2
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017 $as_echo_n "checking for $ac_word... " >&6; }
8018 if test "${ac_cv_prog_AR+set}" = set; then :
8019 $as_echo_n "(cached) " >&6
8020 else
8021 if test -n "$AR"; then
8022 ac_cv_prog_AR="$AR" # Let the user override the test.
8023 else
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 for as_dir in $PATH
8026 do
8027 IFS=$as_save_IFS
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8031 ac_cv_prog_AR="ar"
8032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 break 2
8034 fi
8035 done
8036 done
8037 IFS=$as_save_IFS
8038
8039 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8040 fi
8041 fi
8042 AR=$ac_cv_prog_AR
8043 if test -n "$AR"; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8045 $as_echo "$AR" >&6; }
8046 else
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 $as_echo "no" >&6; }
8049 fi
8050
8051
8052 fi
8053
8054
8055 # --------------------
8056 # Checks for C headers
8057 # --------------------
8058
8059 # Need to reject headers which give warnings, so that the -Werror bootstrap
8060 # works later. *sigh* This needs to come before all header checks.
8061
8062 ac_c_preproc_warn_flag=yes
8063
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8065 $as_echo_n "checking for ANSI C header files... " >&6; }
8066 if test "${ac_cv_header_stdc+set}" = set; then :
8067 $as_echo_n "(cached) " >&6
8068 else
8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h. */
8071 #include <stdlib.h>
8072 #include <stdarg.h>
8073 #include <string.h>
8074 #include <float.h>
8075
8076 int
8077 main ()
8078 {
8079
8080 ;
8081 return 0;
8082 }
8083 _ACEOF
8084 if ac_fn_c_try_compile "$LINENO"; then :
8085 ac_cv_header_stdc=yes
8086 else
8087 ac_cv_header_stdc=no
8088 fi
8089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8090
8091 if test $ac_cv_header_stdc = yes; then
8092 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8095 #include <string.h>
8096
8097 _ACEOF
8098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8099 $EGREP "memchr" >/dev/null 2>&1; then :
8100
8101 else
8102 ac_cv_header_stdc=no
8103 fi
8104 rm -f conftest*
8105
8106 fi
8107
8108 if test $ac_cv_header_stdc = yes; then
8109 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8112 #include <stdlib.h>
8113
8114 _ACEOF
8115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8116 $EGREP "free" >/dev/null 2>&1; then :
8117
8118 else
8119 ac_cv_header_stdc=no
8120 fi
8121 rm -f conftest*
8122
8123 fi
8124
8125 if test $ac_cv_header_stdc = yes; then
8126 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8127 if test "$cross_compiling" = yes; then :
8128 :
8129 else
8130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8131 /* end confdefs.h. */
8132 #include <ctype.h>
8133 #include <stdlib.h>
8134 #if ((' ' & 0x0FF) == 0x020)
8135 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8136 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8137 #else
8138 # define ISLOWER(c) \
8139 (('a' <= (c) && (c) <= 'i') \
8140 || ('j' <= (c) && (c) <= 'r') \
8141 || ('s' <= (c) && (c) <= 'z'))
8142 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8143 #endif
8144
8145 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8146 int
8147 main ()
8148 {
8149 int i;
8150 for (i = 0; i < 256; i++)
8151 if (XOR (islower (i), ISLOWER (i))
8152 || toupper (i) != TOUPPER (i))
8153 return 2;
8154 return 0;
8155 }
8156 _ACEOF
8157 if ac_fn_c_try_run "$LINENO"; then :
8158
8159 else
8160 ac_cv_header_stdc=no
8161 fi
8162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8163 conftest.$ac_objext conftest.beam conftest.$ac_ext
8164 fi
8165
8166 fi
8167 fi
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8169 $as_echo "$ac_cv_header_stdc" >&6; }
8170 if test $ac_cv_header_stdc = yes; then
8171
8172 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8173
8174 fi
8175
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8177 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8178 if test "${ac_cv_header_time+set}" = set; then :
8179 $as_echo_n "(cached) " >&6
8180 else
8181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182 /* end confdefs.h. */
8183 #include <sys/types.h>
8184 #include <sys/time.h>
8185 #include <time.h>
8186
8187 int
8188 main ()
8189 {
8190 if ((struct tm *) 0)
8191 return 0;
8192 ;
8193 return 0;
8194 }
8195 _ACEOF
8196 if ac_fn_c_try_compile "$LINENO"; then :
8197 ac_cv_header_time=yes
8198 else
8199 ac_cv_header_time=no
8200 fi
8201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8202 fi
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8204 $as_echo "$ac_cv_header_time" >&6; }
8205 if test $ac_cv_header_time = yes; then
8206
8207 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8208
8209 fi
8210
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8212 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8213 if test "${gcc_cv_header_string+set}" = set; then :
8214 $as_echo_n "(cached) " >&6
8215 else
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8218 #include <string.h>
8219 #include <strings.h>
8220 int
8221 main ()
8222 {
8223
8224 ;
8225 return 0;
8226 }
8227 _ACEOF
8228 if ac_fn_c_try_compile "$LINENO"; then :
8229 gcc_cv_header_string=yes
8230 else
8231 gcc_cv_header_string=no
8232 fi
8233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8234 fi
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8236 $as_echo "$gcc_cv_header_string" >&6; }
8237 if test $gcc_cv_header_string = yes; then
8238
8239 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8240
8241 fi
8242
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8244 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8245 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8246 $as_echo_n "(cached) " >&6
8247 else
8248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8249 /* end confdefs.h. */
8250 #include <sys/types.h>
8251 #include <sys/wait.h>
8252 #ifndef WEXITSTATUS
8253 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8254 #endif
8255 #ifndef WIFEXITED
8256 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8257 #endif
8258
8259 int
8260 main ()
8261 {
8262 int s;
8263 wait (&s);
8264 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8265 ;
8266 return 0;
8267 }
8268 _ACEOF
8269 if ac_fn_c_try_compile "$LINENO"; then :
8270 ac_cv_header_sys_wait_h=yes
8271 else
8272 ac_cv_header_sys_wait_h=no
8273 fi
8274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8275 fi
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8277 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8278 if test $ac_cv_header_sys_wait_h = yes; then
8279
8280 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8281
8282 fi
8283
8284 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8285 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8286 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8287 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h libintl.h
8288 do :
8289 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8290 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8291 eval as_val=\$$as_ac_Header
8292 if test "x$as_val" = x""yes; then :
8293 cat >>confdefs.h <<_ACEOF
8294 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8295 _ACEOF
8296
8297 fi
8298 done
8299
8300
8301 # Check for thread headers.
8302 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8303 if test "x$ac_cv_header_thread_h" = x""yes; then :
8304 have_thread_h=yes
8305 else
8306 have_thread_h=
8307 fi
8308
8309 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8310 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8311 have_pthread_h=yes
8312 else
8313 have_pthread_h=
8314 fi
8315
8316
8317 # These tests can't be done till we know if we have limits.h.
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8319 $as_echo_n "checking for CHAR_BIT... " >&6; }
8320 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h. */
8325 #ifdef HAVE_LIMITS_H
8326 #include <limits.h>
8327 #endif
8328 #ifdef CHAR_BIT
8329 found
8330 #endif
8331 _ACEOF
8332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8333 $EGREP "found" >/dev/null 2>&1; then :
8334 gcc_cv_decl_char_bit=yes
8335 else
8336 gcc_cv_decl_char_bit=no
8337 fi
8338 rm -f conftest*
8339
8340
8341 fi
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8343 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8344 if test $gcc_cv_decl_char_bit = no; then
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8346 $as_echo_n "checking number of bits in a byte... " >&6; }
8347 if test "${gcc_cv_c_nbby+set}" = set; then :
8348 $as_echo_n "(cached) " >&6
8349 else
8350 i=8
8351 gcc_cv_c_nbby=
8352 while test $i -lt 65; do
8353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8354 /* end confdefs.h. */
8355
8356 int
8357 main ()
8358 {
8359 switch(0) {
8360 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8361 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8362 ; }
8363 ;
8364 return 0;
8365 }
8366 _ACEOF
8367 if ac_fn_c_try_compile "$LINENO"; then :
8368 gcc_cv_c_nbby=$i; break
8369 fi
8370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8371 i=`expr $i + 1`
8372 done
8373 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8374
8375 fi
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8377 $as_echo "$gcc_cv_c_nbby" >&6; }
8378 if test $gcc_cv_c_nbby = failed; then
8379 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8380 else
8381
8382 cat >>confdefs.h <<_ACEOF
8383 #define CHAR_BIT $gcc_cv_c_nbby
8384 _ACEOF
8385
8386 fi
8387 fi
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8389 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8390 if test "${ac_cv_c_bigendian+set}" = set; then :
8391 $as_echo_n "(cached) " >&6
8392 else
8393 ac_cv_c_bigendian=unknown
8394 # See if we're dealing with a universal compiler.
8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8397 #ifndef __APPLE_CC__
8398 not a universal capable compiler
8399 #endif
8400 typedef int dummy;
8401
8402 _ACEOF
8403 if ac_fn_c_try_compile "$LINENO"; then :
8404
8405 # Check for potential -arch flags. It is not universal unless
8406 # there are at least two -arch flags with different values.
8407 ac_arch=
8408 ac_prev=
8409 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8410 if test -n "$ac_prev"; then
8411 case $ac_word in
8412 i?86 | x86_64 | ppc | ppc64)
8413 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8414 ac_arch=$ac_word
8415 else
8416 ac_cv_c_bigendian=universal
8417 break
8418 fi
8419 ;;
8420 esac
8421 ac_prev=
8422 elif test "x$ac_word" = "x-arch"; then
8423 ac_prev=arch
8424 fi
8425 done
8426 fi
8427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8428 if test $ac_cv_c_bigendian = unknown; then
8429 # See if sys/param.h defines the BYTE_ORDER macro.
8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8432 #include <sys/types.h>
8433 #include <sys/param.h>
8434
8435 int
8436 main ()
8437 {
8438 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8439 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8440 && LITTLE_ENDIAN)
8441 bogus endian macros
8442 #endif
8443
8444 ;
8445 return 0;
8446 }
8447 _ACEOF
8448 if ac_fn_c_try_compile "$LINENO"; then :
8449 # It does; now see whether it defined to BIG_ENDIAN or not.
8450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451 /* end confdefs.h. */
8452 #include <sys/types.h>
8453 #include <sys/param.h>
8454
8455 int
8456 main ()
8457 {
8458 #if BYTE_ORDER != BIG_ENDIAN
8459 not big endian
8460 #endif
8461
8462 ;
8463 return 0;
8464 }
8465 _ACEOF
8466 if ac_fn_c_try_compile "$LINENO"; then :
8467 ac_cv_c_bigendian=yes
8468 else
8469 ac_cv_c_bigendian=no
8470 fi
8471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8472 fi
8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8474 fi
8475 if test $ac_cv_c_bigendian = unknown; then
8476 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8478 /* end confdefs.h. */
8479 #include <limits.h>
8480
8481 int
8482 main ()
8483 {
8484 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8485 bogus endian macros
8486 #endif
8487
8488 ;
8489 return 0;
8490 }
8491 _ACEOF
8492 if ac_fn_c_try_compile "$LINENO"; then :
8493 # It does; now see whether it defined to _BIG_ENDIAN or not.
8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8496 #include <limits.h>
8497
8498 int
8499 main ()
8500 {
8501 #ifndef _BIG_ENDIAN
8502 not big endian
8503 #endif
8504
8505 ;
8506 return 0;
8507 }
8508 _ACEOF
8509 if ac_fn_c_try_compile "$LINENO"; then :
8510 ac_cv_c_bigendian=yes
8511 else
8512 ac_cv_c_bigendian=no
8513 fi
8514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8515 fi
8516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8517 fi
8518 if test $ac_cv_c_bigendian = unknown; then
8519 # Compile a test program.
8520 if test "$cross_compiling" = yes; then :
8521 # Try to guess by grepping values from an object file.
8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8524 short int ascii_mm[] =
8525 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8526 short int ascii_ii[] =
8527 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8528 int use_ascii (int i) {
8529 return ascii_mm[i] + ascii_ii[i];
8530 }
8531 short int ebcdic_ii[] =
8532 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8533 short int ebcdic_mm[] =
8534 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8535 int use_ebcdic (int i) {
8536 return ebcdic_mm[i] + ebcdic_ii[i];
8537 }
8538 extern int foo;
8539
8540 int
8541 main ()
8542 {
8543 return use_ascii (foo) == use_ebcdic (foo);
8544 ;
8545 return 0;
8546 }
8547 _ACEOF
8548 if ac_fn_c_try_compile "$LINENO"; then :
8549 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8550 ac_cv_c_bigendian=yes
8551 fi
8552 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8553 if test "$ac_cv_c_bigendian" = unknown; then
8554 ac_cv_c_bigendian=no
8555 else
8556 # finding both strings is unlikely to happen, but who knows?
8557 ac_cv_c_bigendian=unknown
8558 fi
8559 fi
8560 fi
8561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8562 else
8563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8564 /* end confdefs.h. */
8565 $ac_includes_default
8566 int
8567 main ()
8568 {
8569
8570 /* Are we little or big endian? From Harbison&Steele. */
8571 union
8572 {
8573 long int l;
8574 char c[sizeof (long int)];
8575 } u;
8576 u.l = 1;
8577 return u.c[sizeof (long int) - 1] == 1;
8578
8579 ;
8580 return 0;
8581 }
8582 _ACEOF
8583 if ac_fn_c_try_run "$LINENO"; then :
8584 ac_cv_c_bigendian=no
8585 else
8586 ac_cv_c_bigendian=yes
8587 fi
8588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8589 conftest.$ac_objext conftest.beam conftest.$ac_ext
8590 fi
8591
8592 fi
8593 fi
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8595 $as_echo "$ac_cv_c_bigendian" >&6; }
8596 case $ac_cv_c_bigendian in #(
8597 yes)
8598 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8599 ;; #(
8600 no)
8601 ;; #(
8602 universal)
8603
8604 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8605
8606 ;; #(
8607 *)
8608 as_fn_error "unknown endianness
8609 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8610 esac
8611
8612
8613 # ----------------------
8614 # Checks for C++ headers
8615 # ----------------------
8616
8617 ac_ext=cpp
8618 ac_cpp='$CXXCPP $CPPFLAGS'
8619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8623 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8624 if test -z "$CXXCPP"; then
8625 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8626 $as_echo_n "(cached) " >&6
8627 else
8628 # Double quotes because CXXCPP needs to be expanded
8629 for CXXCPP in "$CXX -E" "/lib/cpp"
8630 do
8631 ac_preproc_ok=false
8632 for ac_cxx_preproc_warn_flag in '' yes
8633 do
8634 # Use a header file that comes with gcc, so configuring glibc
8635 # with a fresh cross-compiler works.
8636 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8637 # <limits.h> exists even on freestanding compilers.
8638 # On the NeXT, cc -E runs the code through the compiler's parser,
8639 # not just through cpp. "Syntax error" is here to catch this case.
8640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8642 #ifdef __STDC__
8643 # include <limits.h>
8644 #else
8645 # include <assert.h>
8646 #endif
8647 Syntax error
8648 _ACEOF
8649 if ac_fn_cxx_try_cpp "$LINENO"; then :
8650
8651 else
8652 # Broken: fails on valid input.
8653 continue
8654 fi
8655 rm -f conftest.err conftest.$ac_ext
8656
8657 # OK, works on sane cases. Now check whether nonexistent headers
8658 # can be detected and how.
8659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8660 /* end confdefs.h. */
8661 #include <ac_nonexistent.h>
8662 _ACEOF
8663 if ac_fn_cxx_try_cpp "$LINENO"; then :
8664 # Broken: success on invalid input.
8665 continue
8666 else
8667 # Passes both tests.
8668 ac_preproc_ok=:
8669 break
8670 fi
8671 rm -f conftest.err conftest.$ac_ext
8672
8673 done
8674 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8675 rm -f conftest.err conftest.$ac_ext
8676 if $ac_preproc_ok; then :
8677 break
8678 fi
8679
8680 done
8681 ac_cv_prog_CXXCPP=$CXXCPP
8682
8683 fi
8684 CXXCPP=$ac_cv_prog_CXXCPP
8685 else
8686 ac_cv_prog_CXXCPP=$CXXCPP
8687 fi
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8689 $as_echo "$CXXCPP" >&6; }
8690 ac_preproc_ok=false
8691 for ac_cxx_preproc_warn_flag in '' yes
8692 do
8693 # Use a header file that comes with gcc, so configuring glibc
8694 # with a fresh cross-compiler works.
8695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8696 # <limits.h> exists even on freestanding compilers.
8697 # On the NeXT, cc -E runs the code through the compiler's parser,
8698 # not just through cpp. "Syntax error" is here to catch this case.
8699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8700 /* end confdefs.h. */
8701 #ifdef __STDC__
8702 # include <limits.h>
8703 #else
8704 # include <assert.h>
8705 #endif
8706 Syntax error
8707 _ACEOF
8708 if ac_fn_cxx_try_cpp "$LINENO"; then :
8709
8710 else
8711 # Broken: fails on valid input.
8712 continue
8713 fi
8714 rm -f conftest.err conftest.$ac_ext
8715
8716 # OK, works on sane cases. Now check whether nonexistent headers
8717 # can be detected and how.
8718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8719 /* end confdefs.h. */
8720 #include <ac_nonexistent.h>
8721 _ACEOF
8722 if ac_fn_cxx_try_cpp "$LINENO"; then :
8723 # Broken: success on invalid input.
8724 continue
8725 else
8726 # Passes both tests.
8727 ac_preproc_ok=:
8728 break
8729 fi
8730 rm -f conftest.err conftest.$ac_ext
8731
8732 done
8733 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8734 rm -f conftest.err conftest.$ac_ext
8735 if $ac_preproc_ok; then :
8736
8737 else
8738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8741 See \`config.log' for more details." >&5
8742 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8743 See \`config.log' for more details." >&2;}; }
8744 fi
8745
8746 ac_ext=c
8747 ac_cpp='$CPP $CPPFLAGS'
8748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8751
8752
8753 ac_ext=cpp
8754 ac_cpp='$CXXCPP $CPPFLAGS'
8755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8758
8759
8760
8761
8762 for ac_header in unordered_map
8763 do :
8764 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8765 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8766 cat >>confdefs.h <<_ACEOF
8767 #define HAVE_UNORDERED_MAP 1
8768 _ACEOF
8769
8770 fi
8771 done
8772
8773 for ac_header in tr1/unordered_map
8774 do :
8775 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8776 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8777 cat >>confdefs.h <<_ACEOF
8778 #define HAVE_TR1_UNORDERED_MAP 1
8779 _ACEOF
8780
8781 fi
8782 done
8783
8784 for ac_header in ext/hash_map
8785 do :
8786 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8787 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8788 cat >>confdefs.h <<_ACEOF
8789 #define HAVE_EXT_HASH_MAP 1
8790 _ACEOF
8791
8792 fi
8793 done
8794
8795
8796 ac_ext=c
8797 ac_cpp='$CPP $CPPFLAGS'
8798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8801
8802
8803 # --------
8804 # UNSORTED
8805 # --------
8806
8807
8808 # These libraries may be used by collect2.
8809 # We may need a special search path to get them linked.
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8811 $as_echo_n "checking for collect2 libraries... " >&6; }
8812 if test "${gcc_cv_collect2_libs+set}" = set; then :
8813 $as_echo_n "(cached) " >&6
8814 else
8815 save_LIBS="$LIBS"
8816 for libs in '' -lld -lmld \
8817 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8818 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8819 do
8820 LIBS="$libs"
8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822 /* end confdefs.h. */
8823
8824 /* Override any GCC internal prototype to avoid an error.
8825 Use char because int might match the return type of a GCC
8826 builtin and then its argument prototype would still apply. */
8827 #ifdef __cplusplus
8828 extern "C"
8829 #endif
8830 char ldopen ();
8831 int
8832 main ()
8833 {
8834 return ldopen ();
8835 ;
8836 return 0;
8837 }
8838 _ACEOF
8839 if ac_fn_c_try_link "$LINENO"; then :
8840 gcc_cv_collect2_libs="$libs"; break
8841 fi
8842 rm -f core conftest.err conftest.$ac_objext \
8843 conftest$ac_exeext conftest.$ac_ext
8844 done
8845 LIBS="$save_LIBS"
8846 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8847 fi
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8849 $as_echo "$gcc_cv_collect2_libs" >&6; }
8850 case $gcc_cv_collect2_libs in
8851 "none required") ;;
8852 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8853 esac
8854
8855
8856 # When building Ada code on Alpha, we need exc_resume which is usually in
8857 # -lexc. So test for it.
8858 save_LIBS="$LIBS"
8859 LIBS=
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8861 $as_echo_n "checking for library containing exc_resume... " >&6; }
8862 if test "${ac_cv_search_exc_resume+set}" = set; then :
8863 $as_echo_n "(cached) " >&6
8864 else
8865 ac_func_search_save_LIBS=$LIBS
8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8868
8869 /* Override any GCC internal prototype to avoid an error.
8870 Use char because int might match the return type of a GCC
8871 builtin and then its argument prototype would still apply. */
8872 #ifdef __cplusplus
8873 extern "C"
8874 #endif
8875 char exc_resume ();
8876 int
8877 main ()
8878 {
8879 return exc_resume ();
8880 ;
8881 return 0;
8882 }
8883 _ACEOF
8884 for ac_lib in '' exc; do
8885 if test -z "$ac_lib"; then
8886 ac_res="none required"
8887 else
8888 ac_res=-l$ac_lib
8889 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8890 fi
8891 if ac_fn_c_try_link "$LINENO"; then :
8892 ac_cv_search_exc_resume=$ac_res
8893 fi
8894 rm -f core conftest.err conftest.$ac_objext \
8895 conftest$ac_exeext
8896 if test "${ac_cv_search_exc_resume+set}" = set; then :
8897 break
8898 fi
8899 done
8900 if test "${ac_cv_search_exc_resume+set}" = set; then :
8901
8902 else
8903 ac_cv_search_exc_resume=no
8904 fi
8905 rm conftest.$ac_ext
8906 LIBS=$ac_func_search_save_LIBS
8907 fi
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8909 $as_echo "$ac_cv_search_exc_resume" >&6; }
8910 ac_res=$ac_cv_search_exc_resume
8911 if test "$ac_res" != no; then :
8912 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8913
8914 fi
8915
8916 GNAT_LIBEXC="$LIBS"
8917 LIBS="$save_LIBS"
8918
8919
8920 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8921 save_LIBS="$LIBS"
8922 LIBS=
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8924 $as_echo_n "checking for library containing kstat_open... " >&6; }
8925 if test "${ac_cv_search_kstat_open+set}" = set; then :
8926 $as_echo_n "(cached) " >&6
8927 else
8928 ac_func_search_save_LIBS=$LIBS
8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h. */
8931
8932 /* Override any GCC internal prototype to avoid an error.
8933 Use char because int might match the return type of a GCC
8934 builtin and then its argument prototype would still apply. */
8935 #ifdef __cplusplus
8936 extern "C"
8937 #endif
8938 char kstat_open ();
8939 int
8940 main ()
8941 {
8942 return kstat_open ();
8943 ;
8944 return 0;
8945 }
8946 _ACEOF
8947 for ac_lib in '' kstat; do
8948 if test -z "$ac_lib"; then
8949 ac_res="none required"
8950 else
8951 ac_res=-l$ac_lib
8952 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8953 fi
8954 if ac_fn_c_try_link "$LINENO"; then :
8955 ac_cv_search_kstat_open=$ac_res
8956 fi
8957 rm -f core conftest.err conftest.$ac_objext \
8958 conftest$ac_exeext
8959 if test "${ac_cv_search_kstat_open+set}" = set; then :
8960 break
8961 fi
8962 done
8963 if test "${ac_cv_search_kstat_open+set}" = set; then :
8964
8965 else
8966 ac_cv_search_kstat_open=no
8967 fi
8968 rm conftest.$ac_ext
8969 LIBS=$ac_func_search_save_LIBS
8970 fi
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8972 $as_echo "$ac_cv_search_kstat_open" >&6; }
8973 ac_res=$ac_cv_search_kstat_open
8974 if test "$ac_res" != no; then :
8975 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8976
8977 fi
8978
8979 EXTRA_GCC_LIBS="$LIBS"
8980 LIBS="$save_LIBS"
8981
8982
8983 # Some systems put ldexp and frexp in libm instead of libc; assume
8984 # they're both in the same place. jcf-dump needs them.
8985 save_LIBS="$LIBS"
8986 LIBS=
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8988 $as_echo_n "checking for library containing ldexp... " >&6; }
8989 if test "${ac_cv_search_ldexp+set}" = set; then :
8990 $as_echo_n "(cached) " >&6
8991 else
8992 ac_func_search_save_LIBS=$LIBS
8993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h. */
8995
8996 /* Override any GCC internal prototype to avoid an error.
8997 Use char because int might match the return type of a GCC
8998 builtin and then its argument prototype would still apply. */
8999 #ifdef __cplusplus
9000 extern "C"
9001 #endif
9002 char ldexp ();
9003 int
9004 main ()
9005 {
9006 return ldexp ();
9007 ;
9008 return 0;
9009 }
9010 _ACEOF
9011 for ac_lib in '' m; do
9012 if test -z "$ac_lib"; then
9013 ac_res="none required"
9014 else
9015 ac_res=-l$ac_lib
9016 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9017 fi
9018 if ac_fn_c_try_link "$LINENO"; then :
9019 ac_cv_search_ldexp=$ac_res
9020 fi
9021 rm -f core conftest.err conftest.$ac_objext \
9022 conftest$ac_exeext
9023 if test "${ac_cv_search_ldexp+set}" = set; then :
9024 break
9025 fi
9026 done
9027 if test "${ac_cv_search_ldexp+set}" = set; then :
9028
9029 else
9030 ac_cv_search_ldexp=no
9031 fi
9032 rm conftest.$ac_ext
9033 LIBS=$ac_func_search_save_LIBS
9034 fi
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9036 $as_echo "$ac_cv_search_ldexp" >&6; }
9037 ac_res=$ac_cv_search_ldexp
9038 if test "$ac_res" != no; then :
9039 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9040
9041 fi
9042
9043 LDEXP_LIB="$LIBS"
9044 LIBS="$save_LIBS"
9045
9046
9047 # Use <inttypes.h> only if it exists,
9048 # doesn't clash with <sys/types.h>, and declares intmax_t.
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9050 $as_echo_n "checking for inttypes.h... " >&6; }
9051 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9052 $as_echo_n "(cached) " >&6
9053 else
9054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055 /* end confdefs.h. */
9056 #include <sys/types.h>
9057 #include <inttypes.h>
9058 int
9059 main ()
9060 {
9061 intmax_t i = -1;
9062 ;
9063 return 0;
9064 }
9065 _ACEOF
9066 if ac_fn_c_try_compile "$LINENO"; then :
9067 gcc_cv_header_inttypes_h=yes
9068 else
9069 gcc_cv_header_inttypes_h=no
9070 fi
9071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9072 fi
9073
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9075 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9076 if test $gcc_cv_header_inttypes_h = yes; then
9077
9078 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9079
9080 fi
9081
9082
9083
9084 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9085 sysconf strsignal getrusage nl_langinfo \
9086 gettimeofday mbstowcs wcswidth mmap setlocale \
9087 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise
9088 do :
9089 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9090 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9091 eval as_val=\$$as_ac_var
9092 if test "x$as_val" = x""yes; then :
9093 cat >>confdefs.h <<_ACEOF
9094 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9095 _ACEOF
9096
9097 fi
9098 done
9099
9100
9101 if test x$ac_cv_func_mbstowcs = xyes; then
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9103 $as_echo_n "checking whether mbstowcs works... " >&6; }
9104 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9105 $as_echo_n "(cached) " >&6
9106 else
9107 if test "$cross_compiling" = yes; then :
9108 gcc_cv_func_mbstowcs_works=yes
9109 else
9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9112 #include <stdlib.h>
9113 int main()
9114 {
9115 mbstowcs(0, "", 0);
9116 return 0;
9117 }
9118 _ACEOF
9119 if ac_fn_c_try_run "$LINENO"; then :
9120 gcc_cv_func_mbstowcs_works=yes
9121 else
9122 gcc_cv_func_mbstowcs_works=no
9123 fi
9124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9125 conftest.$ac_objext conftest.beam conftest.$ac_ext
9126 fi
9127
9128 fi
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9130 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9131 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9132
9133 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9134
9135 fi
9136 fi
9137
9138 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9139 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9140
9141 else
9142
9143 cat >>confdefs.h <<_ACEOF
9144 #define ssize_t int
9145 _ACEOF
9146
9147 fi
9148
9149 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9150 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9151
9152 else
9153
9154 cat >>confdefs.h <<_ACEOF
9155 #define caddr_t char *
9156 _ACEOF
9157
9158 fi
9159
9160
9161
9162 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9163 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9164 gcc_header_sys_mman_h=yes
9165 else
9166 gcc_header_sys_mman_h=no
9167 fi
9168
9169 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9170 if test "x$ac_cv_func_mmap" = x""yes; then :
9171 gcc_func_mmap=yes
9172 else
9173 gcc_func_mmap=no
9174 fi
9175
9176 if test "$gcc_header_sys_mman_h" != yes \
9177 || test "$gcc_func_mmap" != yes; then
9178 gcc_cv_func_mmap_file=no
9179 gcc_cv_func_mmap_dev_zero=no
9180 gcc_cv_func_mmap_anon=no
9181 else
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9183 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9184 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9185 $as_echo_n "(cached) " >&6
9186 else
9187 # Add a system to this blacklist if
9188 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9189 # memory area containing the same data that you'd get if you applied
9190 # read() to the same fd. The only system known to have a problem here
9191 # is VMS, where text files have record structure.
9192 case "$host_os" in
9193 *vms* | ultrix*)
9194 gcc_cv_func_mmap_file=no ;;
9195 *)
9196 gcc_cv_func_mmap_file=yes;;
9197 esac
9198 fi
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9200 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9202 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9203 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9204 $as_echo_n "(cached) " >&6
9205 else
9206 # Add a system to this blacklist if it has mmap() but /dev/zero
9207 # does not exist, or if mmapping /dev/zero does not give anonymous
9208 # zeroed pages with both the following properties:
9209 # 1. If you map N consecutive pages in with one call, and then
9210 # unmap any subset of those pages, the pages that were not
9211 # explicitly unmapped remain accessible.
9212 # 2. If you map two adjacent blocks of memory and then unmap them
9213 # both at once, they must both go away.
9214 # Systems known to be in this category are Windows (all variants),
9215 # VMS, and Darwin.
9216 case "$host_os" in
9217 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9218 gcc_cv_func_mmap_dev_zero=no ;;
9219 *)
9220 gcc_cv_func_mmap_dev_zero=yes;;
9221 esac
9222 fi
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9224 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9225
9226 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9228 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9229 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9230 $as_echo_n "(cached) " >&6
9231 else
9232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9233 /* end confdefs.h. */
9234 #include <sys/types.h>
9235 #include <sys/mman.h>
9236 #include <unistd.h>
9237
9238 #ifndef MAP_ANONYMOUS
9239 #define MAP_ANONYMOUS MAP_ANON
9240 #endif
9241
9242 int
9243 main ()
9244 {
9245 int n = MAP_ANONYMOUS;
9246 ;
9247 return 0;
9248 }
9249 _ACEOF
9250 if ac_fn_c_try_compile "$LINENO"; then :
9251 gcc_cv_decl_map_anon=yes
9252 else
9253 gcc_cv_decl_map_anon=no
9254 fi
9255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9256 fi
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9258 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9259
9260 if test $gcc_cv_decl_map_anon = no; then
9261 gcc_cv_func_mmap_anon=no
9262 else
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9264 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9265 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9266 $as_echo_n "(cached) " >&6
9267 else
9268 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9269 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9270 # doesn't give anonymous zeroed pages with the same properties listed
9271 # above for use of /dev/zero.
9272 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9273 case "$host_os" in
9274 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9275 gcc_cv_func_mmap_anon=no ;;
9276 *)
9277 gcc_cv_func_mmap_anon=yes;;
9278 esac
9279 fi
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9281 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9282 fi
9283 fi
9284
9285 if test $gcc_cv_func_mmap_file = yes; then
9286
9287 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9288
9289 fi
9290 if test $gcc_cv_func_mmap_dev_zero = yes; then
9291
9292 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9293
9294 fi
9295 if test $gcc_cv_func_mmap_anon = yes; then
9296
9297 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9298
9299 fi
9300
9301
9302 case "${host}" in
9303 *-*-*vms*)
9304 # Under VMS, vfork works very differently than on Unix. The standard test
9305 # won't work, and it isn't easily adaptable. It makes more sense to
9306 # just force it.
9307 ac_cv_func_vfork_works=yes
9308 ;;
9309 esac
9310 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9311 if test "x$ac_cv_type_pid_t" = x""yes; then :
9312
9313 else
9314
9315 cat >>confdefs.h <<_ACEOF
9316 #define pid_t int
9317 _ACEOF
9318
9319 fi
9320
9321 for ac_header in vfork.h
9322 do :
9323 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9324 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9325 cat >>confdefs.h <<_ACEOF
9326 #define HAVE_VFORK_H 1
9327 _ACEOF
9328
9329 fi
9330 done
9331
9332 for ac_func in fork vfork
9333 do :
9334 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9335 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9336 eval as_val=\$$as_ac_var
9337 if test "x$as_val" = x""yes; then :
9338 cat >>confdefs.h <<_ACEOF
9339 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9340 _ACEOF
9341
9342 fi
9343 done
9344
9345 if test "x$ac_cv_func_fork" = xyes; then
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9347 $as_echo_n "checking for working fork... " >&6; }
9348 if test "${ac_cv_func_fork_works+set}" = set; then :
9349 $as_echo_n "(cached) " >&6
9350 else
9351 if test "$cross_compiling" = yes; then :
9352 ac_cv_func_fork_works=cross
9353 else
9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9356 $ac_includes_default
9357 int
9358 main ()
9359 {
9360
9361 /* By Ruediger Kuhlmann. */
9362 return fork () < 0;
9363
9364 ;
9365 return 0;
9366 }
9367 _ACEOF
9368 if ac_fn_c_try_run "$LINENO"; then :
9369 ac_cv_func_fork_works=yes
9370 else
9371 ac_cv_func_fork_works=no
9372 fi
9373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9374 conftest.$ac_objext conftest.beam conftest.$ac_ext
9375 fi
9376
9377 fi
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9379 $as_echo "$ac_cv_func_fork_works" >&6; }
9380
9381 else
9382 ac_cv_func_fork_works=$ac_cv_func_fork
9383 fi
9384 if test "x$ac_cv_func_fork_works" = xcross; then
9385 case $host in
9386 *-*-amigaos* | *-*-msdosdjgpp*)
9387 # Override, as these systems have only a dummy fork() stub
9388 ac_cv_func_fork_works=no
9389 ;;
9390 *)
9391 ac_cv_func_fork_works=yes
9392 ;;
9393 esac
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9395 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9396 fi
9397 ac_cv_func_vfork_works=$ac_cv_func_vfork
9398 if test "x$ac_cv_func_vfork" = xyes; then
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9400 $as_echo_n "checking for working vfork... " >&6; }
9401 if test "${ac_cv_func_vfork_works+set}" = set; then :
9402 $as_echo_n "(cached) " >&6
9403 else
9404 if test "$cross_compiling" = yes; then :
9405 ac_cv_func_vfork_works=cross
9406 else
9407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9408 /* end confdefs.h. */
9409 /* Thanks to Paul Eggert for this test. */
9410 $ac_includes_default
9411 #include <sys/wait.h>
9412 #ifdef HAVE_VFORK_H
9413 # include <vfork.h>
9414 #endif
9415 /* On some sparc systems, changes by the child to local and incoming
9416 argument registers are propagated back to the parent. The compiler
9417 is told about this with #include <vfork.h>, but some compilers
9418 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9419 static variable whose address is put into a register that is
9420 clobbered by the vfork. */
9421 static void
9422 #ifdef __cplusplus
9423 sparc_address_test (int arg)
9424 # else
9425 sparc_address_test (arg) int arg;
9426 #endif
9427 {
9428 static pid_t child;
9429 if (!child) {
9430 child = vfork ();
9431 if (child < 0) {
9432 perror ("vfork");
9433 _exit(2);
9434 }
9435 if (!child) {
9436 arg = getpid();
9437 write(-1, "", 0);
9438 _exit (arg);
9439 }
9440 }
9441 }
9442
9443 int
9444 main ()
9445 {
9446 pid_t parent = getpid ();
9447 pid_t child;
9448
9449 sparc_address_test (0);
9450
9451 child = vfork ();
9452
9453 if (child == 0) {
9454 /* Here is another test for sparc vfork register problems. This
9455 test uses lots of local variables, at least as many local
9456 variables as main has allocated so far including compiler
9457 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9458 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9459 reuse the register of parent for one of the local variables,
9460 since it will think that parent can't possibly be used any more
9461 in this routine. Assigning to the local variable will thus
9462 munge parent in the parent process. */
9463 pid_t
9464 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9465 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9466 /* Convince the compiler that p..p7 are live; otherwise, it might
9467 use the same hardware register for all 8 local variables. */
9468 if (p != p1 || p != p2 || p != p3 || p != p4
9469 || p != p5 || p != p6 || p != p7)
9470 _exit(1);
9471
9472 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9473 from child file descriptors. If the child closes a descriptor
9474 before it execs or exits, this munges the parent's descriptor
9475 as well. Test for this by closing stdout in the child. */
9476 _exit(close(fileno(stdout)) != 0);
9477 } else {
9478 int status;
9479 struct stat st;
9480
9481 while (wait(&status) != child)
9482 ;
9483 return (
9484 /* Was there some problem with vforking? */
9485 child < 0
9486
9487 /* Did the child fail? (This shouldn't happen.) */
9488 || status
9489
9490 /* Did the vfork/compiler bug occur? */
9491 || parent != getpid()
9492
9493 /* Did the file descriptor bug occur? */
9494 || fstat(fileno(stdout), &st) != 0
9495 );
9496 }
9497 }
9498 _ACEOF
9499 if ac_fn_c_try_run "$LINENO"; then :
9500 ac_cv_func_vfork_works=yes
9501 else
9502 ac_cv_func_vfork_works=no
9503 fi
9504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9505 conftest.$ac_objext conftest.beam conftest.$ac_ext
9506 fi
9507
9508 fi
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9510 $as_echo "$ac_cv_func_vfork_works" >&6; }
9511
9512 fi;
9513 if test "x$ac_cv_func_fork_works" = xcross; then
9514 ac_cv_func_vfork_works=$ac_cv_func_vfork
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9516 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9517 fi
9518
9519 if test "x$ac_cv_func_vfork_works" = xyes; then
9520
9521 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9522
9523 else
9524
9525 $as_echo "#define vfork fork" >>confdefs.h
9526
9527 fi
9528 if test "x$ac_cv_func_fork_works" = xyes; then
9529
9530 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9531
9532 fi
9533
9534
9535 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9536 # iconv() prototype.
9537 ac_ext=cpp
9538 ac_cpp='$CXXCPP $CPPFLAGS'
9539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9542
9543
9544 if test "X$prefix" = "XNONE"; then
9545 acl_final_prefix="$ac_default_prefix"
9546 else
9547 acl_final_prefix="$prefix"
9548 fi
9549 if test "X$exec_prefix" = "XNONE"; then
9550 acl_final_exec_prefix='${prefix}'
9551 else
9552 acl_final_exec_prefix="$exec_prefix"
9553 fi
9554 acl_save_prefix="$prefix"
9555 prefix="$acl_final_prefix"
9556 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9557 prefix="$acl_save_prefix"
9558
9559
9560 # Check whether --with-gnu-ld was given.
9561 if test "${with_gnu_ld+set}" = set; then :
9562 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9563 else
9564 with_gnu_ld=no
9565 fi
9566
9567 # Prepare PATH_SEPARATOR.
9568 # The user is always right.
9569 if test "${PATH_SEPARATOR+set}" != set; then
9570 echo "#! /bin/sh" >conf$$.sh
9571 echo "exit 0" >>conf$$.sh
9572 chmod +x conf$$.sh
9573 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9574 PATH_SEPARATOR=';'
9575 else
9576 PATH_SEPARATOR=:
9577 fi
9578 rm -f conf$$.sh
9579 fi
9580 ac_prog=ld
9581 if test "$GCC" = yes; then
9582 # Check if gcc -print-prog-name=ld gives a path.
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9584 $as_echo_n "checking for ld used by GCC... " >&6; }
9585 case $host in
9586 *-*-mingw*)
9587 # gcc leaves a trailing carriage return which upsets mingw
9588 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9589 *)
9590 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9591 esac
9592 case $ac_prog in
9593 # Accept absolute paths.
9594 [\\/]* | [A-Za-z]:[\\/]*)
9595 re_direlt='/[^/][^/]*/\.\./'
9596 # Canonicalize the path of ld
9597 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9598 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9599 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9600 done
9601 test -z "$LD" && LD="$ac_prog"
9602 ;;
9603 "")
9604 # If it fails, then pretend we aren't using GCC.
9605 ac_prog=ld
9606 ;;
9607 *)
9608 # If it is relative, then search for the first ld in PATH.
9609 with_gnu_ld=unknown
9610 ;;
9611 esac
9612 elif test "$with_gnu_ld" = yes; then
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9614 $as_echo_n "checking for GNU ld... " >&6; }
9615 else
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9617 $as_echo_n "checking for non-GNU ld... " >&6; }
9618 fi
9619 if test "${acl_cv_path_LD+set}" = set; then :
9620 $as_echo_n "(cached) " >&6
9621 else
9622 if test -z "$LD"; then
9623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9624 for ac_dir in $PATH; do
9625 test -z "$ac_dir" && ac_dir=.
9626 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9627 acl_cv_path_LD="$ac_dir/$ac_prog"
9628 # Check to see if the program is GNU ld. I'd rather use --version,
9629 # but apparently some GNU ld's only accept -v.
9630 # Break only if it was the GNU/non-GNU ld that we prefer.
9631 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9632 test "$with_gnu_ld" != no && break
9633 else
9634 test "$with_gnu_ld" != yes && break
9635 fi
9636 fi
9637 done
9638 IFS="$ac_save_ifs"
9639 else
9640 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9641 fi
9642 fi
9643
9644 LD="$acl_cv_path_LD"
9645 if test -n "$LD"; then
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9647 $as_echo "$LD" >&6; }
9648 else
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9650 $as_echo "no" >&6; }
9651 fi
9652 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9654 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9655 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9656 $as_echo_n "(cached) " >&6
9657 else
9658 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9659 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9660 acl_cv_prog_gnu_ld=yes
9661 else
9662 acl_cv_prog_gnu_ld=no
9663 fi
9664 fi
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9666 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9667 with_gnu_ld=$acl_cv_prog_gnu_ld
9668
9669
9670
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9672 $as_echo_n "checking for shared library run path origin... " >&6; }
9673 if test "${acl_cv_rpath+set}" = set; then :
9674 $as_echo_n "(cached) " >&6
9675 else
9676
9677 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9678 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9679 . ./conftest.sh
9680 rm -f ./conftest.sh
9681 acl_cv_rpath=done
9682
9683 fi
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9685 $as_echo "$acl_cv_rpath" >&6; }
9686 wl="$acl_cv_wl"
9687 libext="$acl_cv_libext"
9688 shlibext="$acl_cv_shlibext"
9689 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9690 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9691 hardcode_direct="$acl_cv_hardcode_direct"
9692 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9693 # Check whether --enable-rpath was given.
9694 if test "${enable_rpath+set}" = set; then :
9695 enableval=$enable_rpath; :
9696 else
9697 enable_rpath=yes
9698 fi
9699
9700
9701
9702
9703
9704
9705
9706
9707 use_additional=yes
9708
9709 acl_save_prefix="$prefix"
9710 prefix="$acl_final_prefix"
9711 acl_save_exec_prefix="$exec_prefix"
9712 exec_prefix="$acl_final_exec_prefix"
9713
9714 eval additional_includedir=\"$includedir\"
9715 eval additional_libdir=\"$libdir\"
9716
9717 exec_prefix="$acl_save_exec_prefix"
9718 prefix="$acl_save_prefix"
9719
9720
9721 # Check whether --with-libiconv-prefix was given.
9722 if test "${with_libiconv_prefix+set}" = set; then :
9723 withval=$with_libiconv_prefix;
9724 if test "X$withval" = "Xno"; then
9725 use_additional=no
9726 else
9727 if test "X$withval" = "X"; then
9728
9729 acl_save_prefix="$prefix"
9730 prefix="$acl_final_prefix"
9731 acl_save_exec_prefix="$exec_prefix"
9732 exec_prefix="$acl_final_exec_prefix"
9733
9734 eval additional_includedir=\"$includedir\"
9735 eval additional_libdir=\"$libdir\"
9736
9737 exec_prefix="$acl_save_exec_prefix"
9738 prefix="$acl_save_prefix"
9739
9740 else
9741 additional_includedir="$withval/include"
9742 additional_libdir="$withval/lib"
9743 fi
9744 fi
9745
9746 fi
9747
9748 LIBICONV=
9749 LTLIBICONV=
9750 INCICONV=
9751 rpathdirs=
9752 ltrpathdirs=
9753 names_already_handled=
9754 names_next_round='iconv '
9755 while test -n "$names_next_round"; do
9756 names_this_round="$names_next_round"
9757 names_next_round=
9758 for name in $names_this_round; do
9759 already_handled=
9760 for n in $names_already_handled; do
9761 if test "$n" = "$name"; then
9762 already_handled=yes
9763 break
9764 fi
9765 done
9766 if test -z "$already_handled"; then
9767 names_already_handled="$names_already_handled $name"
9768 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9769 eval value=\"\$HAVE_LIB$uppername\"
9770 if test -n "$value"; then
9771 if test "$value" = yes; then
9772 eval value=\"\$LIB$uppername\"
9773 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9774 eval value=\"\$LTLIB$uppername\"
9775 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9776 else
9777 :
9778 fi
9779 else
9780 found_dir=
9781 found_la=
9782 found_so=
9783 found_a=
9784 if test $use_additional = yes; then
9785 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9786 found_dir="$additional_libdir"
9787 found_so="$additional_libdir/lib$name.$shlibext"
9788 if test -f "$additional_libdir/lib$name.la"; then
9789 found_la="$additional_libdir/lib$name.la"
9790 fi
9791 else
9792 if test -f "$additional_libdir/lib$name.$libext"; then
9793 found_dir="$additional_libdir"
9794 found_a="$additional_libdir/lib$name.$libext"
9795 if test -f "$additional_libdir/lib$name.la"; then
9796 found_la="$additional_libdir/lib$name.la"
9797 fi
9798 fi
9799 fi
9800 fi
9801 if test "X$found_dir" = "X"; then
9802 for x in $LDFLAGS $LTLIBICONV; do
9803
9804 acl_save_prefix="$prefix"
9805 prefix="$acl_final_prefix"
9806 acl_save_exec_prefix="$exec_prefix"
9807 exec_prefix="$acl_final_exec_prefix"
9808 eval x=\"$x\"
9809 exec_prefix="$acl_save_exec_prefix"
9810 prefix="$acl_save_prefix"
9811
9812 case "$x" in
9813 -L*)
9814 dir=`echo "X$x" | sed -e 's/^X-L//'`
9815 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9816 found_dir="$dir"
9817 found_so="$dir/lib$name.$shlibext"
9818 if test -f "$dir/lib$name.la"; then
9819 found_la="$dir/lib$name.la"
9820 fi
9821 else
9822 if test -f "$dir/lib$name.$libext"; then
9823 found_dir="$dir"
9824 found_a="$dir/lib$name.$libext"
9825 if test -f "$dir/lib$name.la"; then
9826 found_la="$dir/lib$name.la"
9827 fi
9828 fi
9829 fi
9830 ;;
9831 esac
9832 if test "X$found_dir" != "X"; then
9833 break
9834 fi
9835 done
9836 fi
9837 if test "X$found_dir" != "X"; then
9838 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9839 if test "X$found_so" != "X"; then
9840 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9841 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9842 else
9843 haveit=
9844 for x in $ltrpathdirs; do
9845 if test "X$x" = "X$found_dir"; then
9846 haveit=yes
9847 break
9848 fi
9849 done
9850 if test -z "$haveit"; then
9851 ltrpathdirs="$ltrpathdirs $found_dir"
9852 fi
9853 if test "$hardcode_direct" = yes; then
9854 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9855 else
9856 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9857 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9858 haveit=
9859 for x in $rpathdirs; do
9860 if test "X$x" = "X$found_dir"; then
9861 haveit=yes
9862 break
9863 fi
9864 done
9865 if test -z "$haveit"; then
9866 rpathdirs="$rpathdirs $found_dir"
9867 fi
9868 else
9869 haveit=
9870 for x in $LDFLAGS $LIBICONV; do
9871
9872 acl_save_prefix="$prefix"
9873 prefix="$acl_final_prefix"
9874 acl_save_exec_prefix="$exec_prefix"
9875 exec_prefix="$acl_final_exec_prefix"
9876 eval x=\"$x\"
9877 exec_prefix="$acl_save_exec_prefix"
9878 prefix="$acl_save_prefix"
9879
9880 if test "X$x" = "X-L$found_dir"; then
9881 haveit=yes
9882 break
9883 fi
9884 done
9885 if test -z "$haveit"; then
9886 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9887 fi
9888 if test "$hardcode_minus_L" != no; then
9889 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9890 else
9891 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9892 fi
9893 fi
9894 fi
9895 fi
9896 else
9897 if test "X$found_a" != "X"; then
9898 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9899 else
9900 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9901 fi
9902 fi
9903 additional_includedir=
9904 case "$found_dir" in
9905 */lib | */lib/)
9906 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9907 additional_includedir="$basedir/include"
9908 ;;
9909 esac
9910 if test "X$additional_includedir" != "X"; then
9911 if test "X$additional_includedir" != "X/usr/include"; then
9912 haveit=
9913 if test "X$additional_includedir" = "X/usr/local/include"; then
9914 if test -n "$GCC"; then
9915 case $host_os in
9916 linux*) haveit=yes;;
9917 esac
9918 fi
9919 fi
9920 if test -z "$haveit"; then
9921 for x in $CPPFLAGS $INCICONV; do
9922
9923 acl_save_prefix="$prefix"
9924 prefix="$acl_final_prefix"
9925 acl_save_exec_prefix="$exec_prefix"
9926 exec_prefix="$acl_final_exec_prefix"
9927 eval x=\"$x\"
9928 exec_prefix="$acl_save_exec_prefix"
9929 prefix="$acl_save_prefix"
9930
9931 if test "X$x" = "X-I$additional_includedir"; then
9932 haveit=yes
9933 break
9934 fi
9935 done
9936 if test -z "$haveit"; then
9937 if test -d "$additional_includedir"; then
9938 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9939 fi
9940 fi
9941 fi
9942 fi
9943 fi
9944 if test -n "$found_la"; then
9945 save_libdir="$libdir"
9946 case "$found_la" in
9947 */* | *\\*) . "$found_la" ;;
9948 *) . "./$found_la" ;;
9949 esac
9950 libdir="$save_libdir"
9951 for dep in $dependency_libs; do
9952 case "$dep" in
9953 -L*)
9954 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9955 if test "X$additional_libdir" != "X/usr/lib"; then
9956 haveit=
9957 if test "X$additional_libdir" = "X/usr/local/lib"; then
9958 if test -n "$GCC"; then
9959 case $host_os in
9960 linux*) haveit=yes;;
9961 esac
9962 fi
9963 fi
9964 if test -z "$haveit"; then
9965 haveit=
9966 for x in $LDFLAGS $LIBICONV; do
9967
9968 acl_save_prefix="$prefix"
9969 prefix="$acl_final_prefix"
9970 acl_save_exec_prefix="$exec_prefix"
9971 exec_prefix="$acl_final_exec_prefix"
9972 eval x=\"$x\"
9973 exec_prefix="$acl_save_exec_prefix"
9974 prefix="$acl_save_prefix"
9975
9976 if test "X$x" = "X-L$additional_libdir"; then
9977 haveit=yes
9978 break
9979 fi
9980 done
9981 if test -z "$haveit"; then
9982 if test -d "$additional_libdir"; then
9983 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9984 fi
9985 fi
9986 haveit=
9987 for x in $LDFLAGS $LTLIBICONV; do
9988
9989 acl_save_prefix="$prefix"
9990 prefix="$acl_final_prefix"
9991 acl_save_exec_prefix="$exec_prefix"
9992 exec_prefix="$acl_final_exec_prefix"
9993 eval x=\"$x\"
9994 exec_prefix="$acl_save_exec_prefix"
9995 prefix="$acl_save_prefix"
9996
9997 if test "X$x" = "X-L$additional_libdir"; then
9998 haveit=yes
9999 break
10000 fi
10001 done
10002 if test -z "$haveit"; then
10003 if test -d "$additional_libdir"; then
10004 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10005 fi
10006 fi
10007 fi
10008 fi
10009 ;;
10010 -R*)
10011 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10012 if test "$enable_rpath" != no; then
10013 haveit=
10014 for x in $rpathdirs; do
10015 if test "X$x" = "X$dir"; then
10016 haveit=yes
10017 break
10018 fi
10019 done
10020 if test -z "$haveit"; then
10021 rpathdirs="$rpathdirs $dir"
10022 fi
10023 haveit=
10024 for x in $ltrpathdirs; do
10025 if test "X$x" = "X$dir"; then
10026 haveit=yes
10027 break
10028 fi
10029 done
10030 if test -z "$haveit"; then
10031 ltrpathdirs="$ltrpathdirs $dir"
10032 fi
10033 fi
10034 ;;
10035 -l*)
10036 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10037 ;;
10038 *.la)
10039 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10040 ;;
10041 *)
10042 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10043 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10044 ;;
10045 esac
10046 done
10047 fi
10048 else
10049 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10050 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10051 fi
10052 fi
10053 fi
10054 done
10055 done
10056 if test "X$rpathdirs" != "X"; then
10057 if test -n "$hardcode_libdir_separator"; then
10058 alldirs=
10059 for found_dir in $rpathdirs; do
10060 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10061 done
10062 acl_save_libdir="$libdir"
10063 libdir="$alldirs"
10064 eval flag=\"$hardcode_libdir_flag_spec\"
10065 libdir="$acl_save_libdir"
10066 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10067 else
10068 for found_dir in $rpathdirs; do
10069 acl_save_libdir="$libdir"
10070 libdir="$found_dir"
10071 eval flag=\"$hardcode_libdir_flag_spec\"
10072 libdir="$acl_save_libdir"
10073 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10074 done
10075 fi
10076 fi
10077 if test "X$ltrpathdirs" != "X"; then
10078 for found_dir in $ltrpathdirs; do
10079 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10080 done
10081 fi
10082
10083
10084
10085
10086
10087
10088
10089 am_save_CPPFLAGS="$CPPFLAGS"
10090
10091 for element in $INCICONV; do
10092 haveit=
10093 for x in $CPPFLAGS; do
10094
10095 acl_save_prefix="$prefix"
10096 prefix="$acl_final_prefix"
10097 acl_save_exec_prefix="$exec_prefix"
10098 exec_prefix="$acl_final_exec_prefix"
10099 eval x=\"$x\"
10100 exec_prefix="$acl_save_exec_prefix"
10101 prefix="$acl_save_prefix"
10102
10103 if test "X$x" = "X$element"; then
10104 haveit=yes
10105 break
10106 fi
10107 done
10108 if test -z "$haveit"; then
10109 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10110 fi
10111 done
10112
10113
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10115 $as_echo_n "checking for iconv... " >&6; }
10116 if test "${am_cv_func_iconv+set}" = set; then :
10117 $as_echo_n "(cached) " >&6
10118 else
10119
10120 am_cv_func_iconv="no, consider installing GNU libiconv"
10121 am_cv_lib_iconv=no
10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123 /* end confdefs.h. */
10124 #include <stdlib.h>
10125 #include <iconv.h>
10126 int
10127 main ()
10128 {
10129 iconv_t cd = iconv_open("","");
10130 iconv(cd,NULL,NULL,NULL,NULL);
10131 iconv_close(cd);
10132 ;
10133 return 0;
10134 }
10135 _ACEOF
10136 if ac_fn_cxx_try_link "$LINENO"; then :
10137 am_cv_func_iconv=yes
10138 fi
10139 rm -f core conftest.err conftest.$ac_objext \
10140 conftest$ac_exeext conftest.$ac_ext
10141 if test "$am_cv_func_iconv" != yes; then
10142 am_save_LIBS="$LIBS"
10143 LIBS="$LIBS $LIBICONV"
10144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10145 /* end confdefs.h. */
10146 #include <stdlib.h>
10147 #include <iconv.h>
10148 int
10149 main ()
10150 {
10151 iconv_t cd = iconv_open("","");
10152 iconv(cd,NULL,NULL,NULL,NULL);
10153 iconv_close(cd);
10154 ;
10155 return 0;
10156 }
10157 _ACEOF
10158 if ac_fn_cxx_try_link "$LINENO"; then :
10159 am_cv_lib_iconv=yes
10160 am_cv_func_iconv=yes
10161 fi
10162 rm -f core conftest.err conftest.$ac_objext \
10163 conftest$ac_exeext conftest.$ac_ext
10164 LIBS="$am_save_LIBS"
10165 fi
10166
10167 fi
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10169 $as_echo "$am_cv_func_iconv" >&6; }
10170 if test "$am_cv_func_iconv" = yes; then
10171
10172 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10173
10174 fi
10175 if test "$am_cv_lib_iconv" = yes; then
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10177 $as_echo_n "checking how to link with libiconv... " >&6; }
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10179 $as_echo "$LIBICONV" >&6; }
10180 else
10181 CPPFLAGS="$am_save_CPPFLAGS"
10182 LIBICONV=
10183 LTLIBICONV=
10184 fi
10185
10186
10187
10188 if test "$am_cv_func_iconv" = yes; then
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10190 $as_echo_n "checking for iconv declaration... " >&6; }
10191 if test "${am_cv_proto_iconv+set}" = set; then :
10192 $as_echo_n "(cached) " >&6
10193 else
10194
10195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10196 /* end confdefs.h. */
10197
10198 #include <stdlib.h>
10199 #include <iconv.h>
10200 extern
10201 #ifdef __cplusplus
10202 "C"
10203 #endif
10204 #if defined(__STDC__) || defined(__cplusplus)
10205 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10206 #else
10207 size_t iconv();
10208 #endif
10209
10210 int
10211 main ()
10212 {
10213
10214 ;
10215 return 0;
10216 }
10217 _ACEOF
10218 if ac_fn_cxx_try_compile "$LINENO"; then :
10219 am_cv_proto_iconv_arg1=""
10220 else
10221 am_cv_proto_iconv_arg1="const"
10222 fi
10223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10224 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10225 fi
10226
10227 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10229 }$am_cv_proto_iconv" >&5
10230 $as_echo "${ac_t:-
10231 }$am_cv_proto_iconv" >&6; }
10232
10233 cat >>confdefs.h <<_ACEOF
10234 #define ICONV_CONST $am_cv_proto_iconv_arg1
10235 _ACEOF
10236
10237 fi
10238
10239 ac_ext=c
10240 ac_cpp='$CPP $CPPFLAGS'
10241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10244
10245
10246 # Until we have in-tree GNU iconv:
10247 LIBICONV_DEP=
10248
10249
10250
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10252 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10253 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10254 $as_echo_n "(cached) " >&6
10255 else
10256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257 /* end confdefs.h. */
10258 #include <locale.h>
10259 int
10260 main ()
10261 {
10262 return LC_MESSAGES
10263 ;
10264 return 0;
10265 }
10266 _ACEOF
10267 if ac_fn_c_try_link "$LINENO"; then :
10268 am_cv_val_LC_MESSAGES=yes
10269 else
10270 am_cv_val_LC_MESSAGES=no
10271 fi
10272 rm -f core conftest.err conftest.$ac_objext \
10273 conftest$ac_exeext conftest.$ac_ext
10274 fi
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10276 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10277 if test $am_cv_val_LC_MESSAGES = yes; then
10278
10279 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10280
10281 fi
10282
10283
10284
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10286 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10287 if test "${am_cv_langinfo_codeset+set}" = set; then :
10288 $as_echo_n "(cached) " >&6
10289 else
10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h. */
10292 #include <langinfo.h>
10293 int
10294 main ()
10295 {
10296 char* cs = nl_langinfo(CODESET);
10297 ;
10298 return 0;
10299 }
10300 _ACEOF
10301 if ac_fn_c_try_link "$LINENO"; then :
10302 am_cv_langinfo_codeset=yes
10303 else
10304 am_cv_langinfo_codeset=no
10305 fi
10306 rm -f core conftest.err conftest.$ac_objext \
10307 conftest$ac_exeext conftest.$ac_ext
10308
10309 fi
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10311 $as_echo "$am_cv_langinfo_codeset" >&6; }
10312 if test $am_cv_langinfo_codeset = yes; then
10313
10314 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10315
10316 fi
10317
10318
10319 # We will need to find libiberty.h and ansidecl.h
10320 saved_CFLAGS="$CFLAGS"
10321 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10322 saved_CXXFLAGS="$CXXFLAGS"
10323 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10324 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10325 strsignal strstr stpcpy strverscmp \
10326 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10327 free basename getopt clock getpagesize ffs clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10328 do
10329 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10331 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10332 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10333 $as_echo_n "(cached) " >&6
10334 else
10335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10336 /* end confdefs.h. */
10337 #undef $ac_tr_decl
10338 #define $ac_tr_decl 1
10339
10340 #include "ansidecl.h"
10341 #include "system.h"
10342
10343 int
10344 main ()
10345 {
10346 #ifndef $ac_func
10347 char *(*pfn) = (char *(*)) $ac_func ;
10348 #endif
10349 ;
10350 return 0;
10351 }
10352 _ACEOF
10353 if ac_fn_c_try_compile "$LINENO"; then :
10354 eval "gcc_cv_have_decl_$ac_func=yes"
10355 else
10356 eval "gcc_cv_have_decl_$ac_func=no"
10357 fi
10358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10359 fi
10360
10361 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10363 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10364 #define $ac_tr_decl 1
10365 _ACEOF
10366
10367 else
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10369 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10370 #define $ac_tr_decl 0
10371 _ACEOF
10372
10373 fi
10374
10375 done
10376
10377
10378 for ac_func in getrlimit setrlimit getrusage
10379 do
10380 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10382 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10383 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10384 $as_echo_n "(cached) " >&6
10385 else
10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10388 #undef $ac_tr_decl
10389 #define $ac_tr_decl 1
10390
10391 #include "ansidecl.h"
10392 #include "system.h"
10393 #ifdef HAVE_SYS_RESOURCE_H
10394 #include <sys/resource.h>
10395 #endif
10396
10397
10398 int
10399 main ()
10400 {
10401 #ifndef $ac_func
10402 char *(*pfn) = (char *(*)) $ac_func ;
10403 #endif
10404 ;
10405 return 0;
10406 }
10407 _ACEOF
10408 if ac_fn_c_try_compile "$LINENO"; then :
10409 eval "gcc_cv_have_decl_$ac_func=yes"
10410 else
10411 eval "gcc_cv_have_decl_$ac_func=no"
10412 fi
10413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10414 fi
10415
10416 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10418 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10419 #define $ac_tr_decl 1
10420 _ACEOF
10421
10422 else
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10424 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10425 #define $ac_tr_decl 0
10426 _ACEOF
10427
10428 fi
10429
10430 done
10431
10432
10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434 /* end confdefs.h. */
10435
10436 #include "ansidecl.h"
10437 #include "system.h"
10438 #ifdef HAVE_SYS_RESOURCE_H
10439 #include <sys/resource.h>
10440 #endif
10441
10442 int
10443 main ()
10444 {
10445 rlim_t l = 0;
10446 ;
10447 return 0;
10448 }
10449 _ACEOF
10450 if ac_fn_c_try_compile "$LINENO"; then :
10451
10452 else
10453
10454 $as_echo "#define rlim_t long" >>confdefs.h
10455
10456 fi
10457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10458
10459 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10460 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10461 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10462 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10463 for ac_func in ldgetname
10464 do
10465 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10467 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10468 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10469 $as_echo_n "(cached) " >&6
10470 else
10471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10472 /* end confdefs.h. */
10473 #undef $ac_tr_decl
10474 #define $ac_tr_decl 1
10475
10476 #include "ansidecl.h"
10477 #include "system.h"
10478 #ifdef HAVE_LDFCN_H
10479 #undef FREAD
10480 #undef FWRITE
10481 #include <ldfcn.h>
10482 #endif
10483
10484
10485 int
10486 main ()
10487 {
10488 #ifndef $ac_func
10489 char *(*pfn) = (char *(*)) $ac_func ;
10490 #endif
10491 ;
10492 return 0;
10493 }
10494 _ACEOF
10495 if ac_fn_c_try_compile "$LINENO"; then :
10496 eval "gcc_cv_have_decl_$ac_func=yes"
10497 else
10498 eval "gcc_cv_have_decl_$ac_func=no"
10499 fi
10500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10501 fi
10502
10503 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10505 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10506 #define $ac_tr_decl 1
10507 _ACEOF
10508
10509 else
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10511 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10512 #define $ac_tr_decl 0
10513 _ACEOF
10514
10515 fi
10516
10517 done
10518
10519
10520 for ac_func in times
10521 do
10522 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10524 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10525 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10526 $as_echo_n "(cached) " >&6
10527 else
10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529 /* end confdefs.h. */
10530 #undef $ac_tr_decl
10531 #define $ac_tr_decl 1
10532
10533 #include "ansidecl.h"
10534 #include "system.h"
10535 #ifdef HAVE_SYS_TIMES_H
10536 #include <sys/times.h>
10537 #endif
10538
10539
10540 int
10541 main ()
10542 {
10543 #ifndef $ac_func
10544 char *(*pfn) = (char *(*)) $ac_func ;
10545 #endif
10546 ;
10547 return 0;
10548 }
10549 _ACEOF
10550 if ac_fn_c_try_compile "$LINENO"; then :
10551 eval "gcc_cv_have_decl_$ac_func=yes"
10552 else
10553 eval "gcc_cv_have_decl_$ac_func=no"
10554 fi
10555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10556 fi
10557
10558 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10560 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10561 #define $ac_tr_decl 1
10562 _ACEOF
10563
10564 else
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10567 #define $ac_tr_decl 0
10568 _ACEOF
10569
10570 fi
10571
10572 done
10573
10574
10575 for ac_func in sigaltstack
10576 do
10577 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10579 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10580 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10581 $as_echo_n "(cached) " >&6
10582 else
10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h. */
10585 #undef $ac_tr_decl
10586 #define $ac_tr_decl 1
10587
10588 #include "ansidecl.h"
10589 #include "system.h"
10590 #include <signal.h>
10591
10592
10593 int
10594 main ()
10595 {
10596 #ifndef $ac_func
10597 char *(*pfn) = (char *(*)) $ac_func ;
10598 #endif
10599 ;
10600 return 0;
10601 }
10602 _ACEOF
10603 if ac_fn_c_try_compile "$LINENO"; then :
10604 eval "gcc_cv_have_decl_$ac_func=yes"
10605 else
10606 eval "gcc_cv_have_decl_$ac_func=no"
10607 fi
10608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10609 fi
10610
10611 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10613 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10614 #define $ac_tr_decl 1
10615 _ACEOF
10616
10617 else
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10619 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10620 #define $ac_tr_decl 0
10621 _ACEOF
10622
10623 fi
10624
10625 done
10626
10627
10628 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10629 # prototype.
10630 ac_ext=cpp
10631 ac_cpp='$CXXCPP $CPPFLAGS'
10632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10635
10636 for ac_func in madvise
10637 do
10638 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10640 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10641 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10642 $as_echo_n "(cached) " >&6
10643 else
10644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10645 /* end confdefs.h. */
10646 #undef $ac_tr_decl
10647 #define $ac_tr_decl 1
10648
10649 #include "ansidecl.h"
10650 #include "system.h"
10651
10652
10653 int
10654 main ()
10655 {
10656 #ifndef $ac_func
10657 char *(*pfn) = (char *(*)) $ac_func ;
10658 #endif
10659 ;
10660 return 0;
10661 }
10662 _ACEOF
10663 if ac_fn_cxx_try_compile "$LINENO"; then :
10664 eval "gcc_cv_have_decl_$ac_func=yes"
10665 else
10666 eval "gcc_cv_have_decl_$ac_func=no"
10667 fi
10668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10669 fi
10670
10671 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10673 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10674 #define $ac_tr_decl 1
10675 _ACEOF
10676
10677 else
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10679 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10680 #define $ac_tr_decl 0
10681 _ACEOF
10682
10683 fi
10684
10685 done
10686
10687 ac_ext=c
10688 ac_cpp='$CPP $CPPFLAGS'
10689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10692
10693
10694 # More time-related stuff.
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10696 $as_echo_n "checking for struct tms... " >&6; }
10697 if test "${ac_cv_struct_tms+set}" = set; then :
10698 $as_echo_n "(cached) " >&6
10699 else
10700
10701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702 /* end confdefs.h. */
10703
10704 #include "ansidecl.h"
10705 #include "system.h"
10706 #ifdef HAVE_SYS_TIMES_H
10707 #include <sys/times.h>
10708 #endif
10709
10710 int
10711 main ()
10712 {
10713 struct tms tms;
10714 ;
10715 return 0;
10716 }
10717 _ACEOF
10718 if ac_fn_c_try_compile "$LINENO"; then :
10719 ac_cv_struct_tms=yes
10720 else
10721 ac_cv_struct_tms=no
10722 fi
10723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10724 fi
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10726 $as_echo "$ac_cv_struct_tms" >&6; }
10727 if test $ac_cv_struct_tms = yes; then
10728
10729 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10730
10731 fi
10732
10733 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10734 # revisit after autoconf 2.50.
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10736 $as_echo_n "checking for clock_t... " >&6; }
10737 if test "${gcc_cv_type_clock_t+set}" = set; then :
10738 $as_echo_n "(cached) " >&6
10739 else
10740
10741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10742 /* end confdefs.h. */
10743
10744 #include "ansidecl.h"
10745 #include "system.h"
10746
10747 int
10748 main ()
10749 {
10750 clock_t x;
10751 ;
10752 return 0;
10753 }
10754 _ACEOF
10755 if ac_fn_c_try_compile "$LINENO"; then :
10756 gcc_cv_type_clock_t=yes
10757 else
10758 gcc_cv_type_clock_t=no
10759 fi
10760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10761 fi
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10763 $as_echo "$gcc_cv_type_clock_t" >&6; }
10764 if test $gcc_cv_type_clock_t = yes; then
10765
10766 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10767
10768 fi
10769
10770 # Check if F_SETLKW is supported by fcntl.
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10772 $as_echo_n "checking for F_SETLKW... " >&6; }
10773 if test "${ac_cv_f_setlkw+set}" = set; then :
10774 $as_echo_n "(cached) " >&6
10775 else
10776
10777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10778 /* end confdefs.h. */
10779
10780 #include <fcntl.h>
10781 int
10782 main ()
10783 {
10784
10785 struct flock fl;
10786 fl.l_whence = 0;
10787 fl.l_start = 0;
10788 fl.l_len = 0;
10789 fl.l_pid = 0;
10790 return fcntl (1, F_SETLKW, &fl);
10791 ;
10792 return 0;
10793 }
10794 _ACEOF
10795 if ac_fn_c_try_compile "$LINENO"; then :
10796 ac_cv_f_setlkw=yes
10797 else
10798 ac_cv_f_setlkw=no
10799 fi
10800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10801 fi
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10803 $as_echo "$ac_cv_f_setlkw" >&6; }
10804 if test $ac_cv_f_setlkw = yes; then
10805
10806 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10807
10808 fi
10809
10810 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10811 CFLAGS="$saved_CFLAGS"
10812 CXXFLAGS="$saved_CXXFLAGS"
10813
10814 # mkdir takes a single argument on some systems.
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10816 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10817 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10818 $as_echo_n "(cached) " >&6
10819 else
10820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10821 /* end confdefs.h. */
10822
10823 #include <sys/types.h>
10824 #ifdef HAVE_SYS_STAT_H
10825 # include <sys/stat.h>
10826 #endif
10827 #ifdef HAVE_UNISTD_H
10828 # include <unistd.h>
10829 #endif
10830 #ifdef HAVE_DIRECT_H
10831 # include <direct.h>
10832 #endif
10833 int
10834 main ()
10835 {
10836 mkdir ("foo", 0);
10837 ;
10838 return 0;
10839 }
10840 _ACEOF
10841 if ac_fn_c_try_compile "$LINENO"; then :
10842 gcc_cv_mkdir_takes_one_arg=no
10843 else
10844 gcc_cv_mkdir_takes_one_arg=yes
10845 fi
10846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10847 fi
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10849 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10850 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10851
10852 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10853
10854 fi
10855
10856
10857 # File extensions
10858 manext='.1'
10859 objext='.o'
10860
10861
10862
10863 # With Setjmp/Longjmp based exception handling.
10864 # Check whether --enable-sjlj-exceptions was given.
10865 if test "${enable_sjlj_exceptions+set}" = set; then :
10866 enableval=$enable_sjlj_exceptions; case $target in
10867 *-*-hpux10*)
10868 if test $enableval != yes; then
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10870 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10871 enableval=yes
10872 fi
10873 ;;
10874 esac
10875 force_sjlj_exceptions=yes
10876 else
10877 case $target in
10878 *-*-hpux10*)
10879 force_sjlj_exceptions=yes
10880 enableval=yes
10881 ;;
10882 *)
10883 force_sjlj_exceptions=no
10884 ;;
10885 esac
10886 fi
10887
10888 if test $force_sjlj_exceptions = yes; then
10889 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10890
10891 cat >>confdefs.h <<_ACEOF
10892 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10893 _ACEOF
10894
10895 fi
10896
10897 # --------------------------------------------------------
10898 # Build, host, and target specific configuration fragments
10899 # --------------------------------------------------------
10900
10901 # Collect build-machine-specific information.
10902 . ${srcdir}/config.build
10903
10904 # Collect host-machine-specific information.
10905 . ${srcdir}/config.host
10906
10907 target_gtfiles=
10908
10909 # Collect target-machine-specific information.
10910 . ${srcdir}/config.gcc
10911
10912 extra_objs="${host_extra_objs} ${extra_objs}"
10913 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10914
10915 # Default the target-machine variables that were not explicitly set.
10916 if test x"$tm_file" = x
10917 then tm_file=$cpu_type/$cpu_type.h; fi
10918
10919 if test x"$extra_headers" = x
10920 then extra_headers=; fi
10921
10922 if test x$md_file = x
10923 then md_file=$cpu_type/$cpu_type.md; fi
10924
10925 if test x$out_file = x
10926 then out_file=$cpu_type/$cpu_type.c; fi
10927
10928 if test x"$tmake_file" = x
10929 then tmake_file=$cpu_type/t-$cpu_type
10930 fi
10931
10932 # Support --enable-initfini-array.
10933 if test x$enable_initfini_array != xno; then
10934 tm_file="${tm_file} initfini-array.h"
10935 fi
10936
10937 if test x"$dwarf2" = xyes
10938 then tm_file="$tm_file tm-dwarf2.h"
10939 fi
10940
10941 # Say what files are being used for the output code and MD file.
10942 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10943 echo "Using \`$srcdir/config/$md_file' as machine description file."
10944
10945 # If any of the xm_file variables contain nonexistent files, warn
10946 # about them and drop them.
10947
10948 bx=
10949 for x in $build_xm_file; do
10950 if test -f $srcdir/config/$x
10951 then bx="$bx $x"
10952 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10953 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10954 fi
10955 done
10956 build_xm_file="$bx"
10957
10958 hx=
10959 for x in $host_xm_file; do
10960 if test -f $srcdir/config/$x
10961 then hx="$hx $x"
10962 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10963 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10964 fi
10965 done
10966 host_xm_file="$hx"
10967
10968 tx=
10969 for x in $xm_file; do
10970 if test -f $srcdir/config/$x
10971 then tx="$tx $x"
10972 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10973 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10974 fi
10975 done
10976 xm_file="$tx"
10977
10978 count=a
10979 for f in $tm_file; do
10980 count=${count}x
10981 done
10982 if test $count = ax; then
10983 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10984 else
10985 echo "Using the following target machine macro files:"
10986 for f in $tm_file; do
10987 echo " $srcdir/config/$f"
10988 done
10989 fi
10990
10991 if test x$need_64bit_hwint = xyes; then
10992
10993 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10994
10995 fi
10996
10997 if test x$use_long_long_for_widest_fast_int = xyes; then
10998
10999 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11000
11001 fi
11002
11003 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11004
11005 cat >>confdefs.h <<_ACEOF
11006 #define HAVE_GNU_LD $gnu_ld_bool
11007 _ACEOF
11008
11009
11010 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11011
11012 cat >>confdefs.h <<_ACEOF
11013 #define HAVE_GNU_AS $gnu_as_bool
11014 _ACEOF
11015
11016
11017 count=a
11018 for f in $host_xm_file; do
11019 count=${count}x
11020 done
11021 if test $count = a; then
11022 :
11023 elif test $count = ax; then
11024 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11025 else
11026 echo "Using the following host machine macro files:"
11027 for f in $host_xm_file; do
11028 echo " $srcdir/config/$f"
11029 done
11030 fi
11031 echo "Using ${out_host_hook_obj} for host machine hooks."
11032
11033 if test "$host_xm_file" != "$build_xm_file"; then
11034 count=a
11035 for f in $build_xm_file; do
11036 count=${count}x
11037 done
11038 if test $count = a; then
11039 :
11040 elif test $count = ax; then
11041 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11042 else
11043 echo "Using the following build machine macro files:"
11044 for f in $build_xm_file; do
11045 echo " $srcdir/config/$f"
11046 done
11047 fi
11048 fi
11049
11050 if test -n "$configured_native_system_header_dir"; then
11051 native_system_header_dir=$configured_native_system_header_dir
11052 fi
11053 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11054
11055
11056 case ${host} in
11057 powerpc*-*-darwin*)
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11059 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11060 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11061 $as_echo_n "(cached) " >&6
11062 else
11063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11064 /* end confdefs.h. */
11065
11066 #include <sys/cdefs.h>
11067 #include <sys/signal.h>
11068 #include <ucontext.h>
11069 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11070
11071 _ACEOF
11072 if ac_fn_c_try_compile "$LINENO"; then :
11073 gcc_cv_mcontext_underscores=no
11074 else
11075 gcc_cv_mcontext_underscores=yes
11076 fi
11077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11078 fi
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11080 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11081 if test $gcc_cv_mcontext_underscores = yes; then
11082
11083 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11084
11085 fi
11086 ;;
11087 esac
11088
11089 # ---------
11090 # Threading
11091 # ---------
11092
11093 # Check if a valid thread package
11094 case ${enable_threads} in
11095 "" | no)
11096 # No threads
11097 target_thread_file='single'
11098 ;;
11099 yes)
11100 # default
11101 target_thread_file='single'
11102 ;;
11103 aix | dce | lynx | mipssde | posix | rtems | \
11104 single | tpf | vxworks | win32)
11105 target_thread_file=${enable_threads}
11106 ;;
11107 *)
11108 echo "${enable_threads} is an unknown thread package" 1>&2
11109 exit 1
11110 ;;
11111 esac
11112
11113 if test x${thread_file} = x; then
11114 # No thread file set by target-specific clauses in config.gcc,
11115 # so use file chosen by default logic above
11116 thread_file=${target_thread_file}
11117 fi
11118
11119 # --------
11120 # UNSORTED
11121 # --------
11122
11123 use_cxa_atexit=no
11124 if test x$enable___cxa_atexit = xyes || \
11125 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11126 if test x$host = x$target; then
11127 case $host in
11128 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11129 # keyed to flag_use_cxa_atexit
11130 *-*-mingw32*)
11131 use_cxa_atexit=yes
11132 ;;
11133 *)
11134 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11135 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11136 use_cxa_atexit=yes
11137 else
11138 echo "__cxa_atexit can't be enabled on this target"
11139 fi
11140
11141 ;;
11142 esac
11143 else
11144 # We can't check for __cxa_atexit when building a cross, so assume
11145 # it is available
11146 use_cxa_atexit=yes
11147 fi
11148 if test x$use_cxa_atexit = xyes; then
11149
11150 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11151
11152 fi
11153 fi
11154
11155 # Look for a file containing extra machine modes.
11156 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11157 extra_modes_file='$(srcdir)'/config/${extra_modes}
11158
11159
11160 cat >>confdefs.h <<_ACEOF
11161 #define EXTRA_MODES_FILE "config/$extra_modes"
11162 _ACEOF
11163
11164 fi
11165
11166 # Convert extra_options into a form suitable for Makefile use.
11167 extra_opt_files=
11168 all_opt_files=
11169 for f in $extra_options; do
11170 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11171 all_opt_files="$all_opt_files $srcdir/config/$f"
11172 done
11173
11174
11175 # auto-host.h is the file containing items generated by autoconf and is
11176 # the first file included by config.h.
11177 # If host=build, it is correct to have bconfig include auto-host.h
11178 # as well. If host!=build, we are in error and need to do more
11179 # work to find out the build config parameters.
11180 if test x$host = x$build
11181 then
11182 build_auto=auto-host.h
11183 else
11184 # We create a subdir, then run autoconf in the subdir.
11185 # To prevent recursion we set host and build for the new
11186 # invocation of configure to the build for this invocation
11187 # of configure.
11188 tempdir=build.$$
11189 rm -rf $tempdir
11190 mkdir $tempdir
11191 cd $tempdir
11192 case ${srcdir} in
11193 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11194 *) realsrcdir=../${srcdir};;
11195 esac
11196 saved_CFLAGS="${CFLAGS}"
11197 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11198 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11199 ${realsrcdir}/configure \
11200 --enable-languages=${enable_languages-all} \
11201 --target=$target_alias --host=$build_alias --build=$build_alias
11202 CFLAGS="${saved_CFLAGS}"
11203
11204 # We just finished tests for the build machine, so rename
11205 # the file auto-build.h in the gcc directory.
11206 mv auto-host.h ../auto-build.h
11207 cd ..
11208 rm -rf $tempdir
11209 build_auto=auto-build.h
11210 fi
11211
11212
11213 tm_file="${tm_file} defaults.h"
11214 tm_p_file="${tm_p_file} tm-preds.h"
11215 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11216 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11217 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11218 # put this back in temporarily.
11219 xm_file="auto-host.h ansidecl.h ${xm_file}"
11220
11221 # --------
11222 # UNSORTED
11223 # --------
11224
11225 # Compile in configure arguments.
11226 if test -f configargs.h ; then
11227 # Being re-configured.
11228 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11229 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11230 else
11231 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11232 fi
11233
11234 # Double all backslashes and backslash all quotes to turn
11235 # gcc_config_arguments into a C string.
11236 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11237 $gcc_config_arguments
11238 EOF
11239 gcc_config_arguments_str=`cat conftest.out`
11240 rm -f conftest.out
11241
11242 cat > configargs.h <<EOF
11243 /* Generated automatically. */
11244 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11245 static const char thread_model[] = "$thread_file";
11246
11247 static const struct {
11248 const char *name, *value;
11249 } configure_default_options[] = $configure_default_options;
11250 EOF
11251
11252 gcc_BASEVER=`cat $srcdir/BASE-VER`
11253 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11254 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11255 if test -f $srcdir/REVISION ; then
11256 gcc_REVISION=`cat $srcdir/REVISION`
11257 else
11258 gcc_REVISION=""
11259 fi
11260 cat > plugin-version.h <<EOF
11261 #include "configargs.h"
11262
11263 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11264 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11265 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11266 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11267
11268 static char basever[] = "$gcc_BASEVER";
11269 static char datestamp[] = "$gcc_DATESTAMP";
11270 static char devphase[] = "$gcc_DEVPHASE";
11271 static char revision[] = "$gcc_REVISION";
11272
11273 /* FIXME plugins: We should make the version information more precise.
11274 One way to do is to add a checksum. */
11275
11276 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11277 devphase, revision,
11278 configuration_arguments};
11279 EOF
11280
11281 # Internationalization
11282 # If we haven't got the data from the intl directory,
11283 # assume NLS is disabled.
11284 USE_NLS=no
11285 LIBINTL=
11286 LIBINTL_DEP=
11287 INCINTL=
11288 XGETTEXT=
11289 GMSGFMT=
11290 POSUB=
11291
11292 if test -f ../intl/config.intl; then
11293 . ../intl/config.intl
11294 fi
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11296 $as_echo_n "checking whether NLS is requested... " >&6; }
11297 if test x"$USE_NLS" != xyes; then
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11299 $as_echo "no" >&6; }
11300 else
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11302 $as_echo "yes" >&6; }
11303
11304 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11305
11306
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11308 $as_echo_n "checking for catalogs to be installed... " >&6; }
11309 # Look for .po and .gmo files in the source directory.
11310 CATALOGS=
11311 XLINGUAS=
11312 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11313 # If there aren't any .gmo files the shell will give us the
11314 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11315 # weeded out.
11316 case "$cat" in *\**)
11317 continue;;
11318 esac
11319 # The quadruple backslash is collapsed to a double backslash
11320 # by the backticks, then collapsed again by the double quotes,
11321 # leaving us with one backslash in the sed expression (right
11322 # before the dot that mustn't act as a wildcard).
11323 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11324 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11325 # The user is allowed to set LINGUAS to a list of languages to
11326 # install catalogs for. If it's empty that means "all of them."
11327 if test "x$LINGUAS" = x; then
11328 CATALOGS="$CATALOGS $cat"
11329 XLINGUAS="$XLINGUAS $lang"
11330 else
11331 case "$LINGUAS" in *$lang*)
11332 CATALOGS="$CATALOGS $cat"
11333 XLINGUAS="$XLINGUAS $lang"
11334 ;;
11335 esac
11336 fi
11337 done
11338 LINGUAS="$XLINGUAS"
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11340 $as_echo "$LINGUAS" >&6; }
11341
11342
11343 DATADIRNAME=share
11344
11345 INSTOBJEXT=.mo
11346
11347 GENCAT=gencat
11348
11349 CATOBJEXT=.gmo
11350
11351 fi
11352
11353 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11354 # -liconv on the link line twice.
11355 case "$LIBINTL" in *$LIBICONV*)
11356 LIBICONV= ;;
11357 esac
11358
11359 # Check whether --enable-secureplt was given.
11360 if test "${enable_secureplt+set}" = set; then :
11361 enableval=$enable_secureplt;
11362 fi
11363
11364
11365 # Check whether --enable-leading-mingw64-underscores was given.
11366 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11367 enableval=$enable_leading_mingw64_underscores;
11368 fi
11369
11370 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11371
11372 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11373
11374 fi
11375
11376 # Check whether --enable-cld was given.
11377 if test "${enable_cld+set}" = set; then :
11378 enableval=$enable_cld;
11379 else
11380 enable_cld=no
11381 fi
11382
11383
11384 # Check whether --enable-frame-pointer was given.
11385 if test "${enable_frame_pointer+set}" = set; then :
11386 enableval=$enable_frame_pointer;
11387 else
11388
11389 case $target_os in
11390 linux* | darwin[8912]*)
11391 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11392 # DWARF2.
11393 enable_frame_pointer=no
11394 ;;
11395 *)
11396 enable_frame_pointer=yes
11397 ;;
11398 esac
11399
11400 fi
11401
11402
11403 # Windows32 Registry support for specifying GCC installation paths.
11404 # Check whether --enable-win32-registry was given.
11405 if test "${enable_win32_registry+set}" = set; then :
11406 enableval=$enable_win32_registry;
11407 fi
11408
11409
11410 case $host_os in
11411 win32 | pe | cygwin* | mingw32* | uwin*)
11412 if test "x$enable_win32_registry" != xno; then
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11414 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11415 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11416 $as_echo_n "(cached) " >&6
11417 else
11418 ac_func_search_save_LIBS=$LIBS
11419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11420 /* end confdefs.h. */
11421
11422 /* Override any GCC internal prototype to avoid an error.
11423 Use char because int might match the return type of a GCC
11424 builtin and then its argument prototype would still apply. */
11425 #ifdef __cplusplus
11426 extern "C"
11427 #endif
11428 char RegOpenKeyExA ();
11429 int
11430 main ()
11431 {
11432 return RegOpenKeyExA ();
11433 ;
11434 return 0;
11435 }
11436 _ACEOF
11437 for ac_lib in '' advapi32; do
11438 if test -z "$ac_lib"; then
11439 ac_res="none required"
11440 else
11441 ac_res=-l$ac_lib
11442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11443 fi
11444 if ac_fn_c_try_link "$LINENO"; then :
11445 ac_cv_search_RegOpenKeyExA=$ac_res
11446 fi
11447 rm -f core conftest.err conftest.$ac_objext \
11448 conftest$ac_exeext
11449 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11450 break
11451 fi
11452 done
11453 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11454
11455 else
11456 ac_cv_search_RegOpenKeyExA=no
11457 fi
11458 rm conftest.$ac_ext
11459 LIBS=$ac_func_search_save_LIBS
11460 fi
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11462 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11463 ac_res=$ac_cv_search_RegOpenKeyExA
11464 if test "$ac_res" != no; then :
11465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11466
11467 else
11468 enable_win32_registry=no
11469 fi
11470
11471 fi
11472
11473 if test "x$enable_win32_registry" != xno; then
11474
11475 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11476
11477
11478 if test "x$enable_win32_registry" != xyes \
11479 && test "x$enable_win32_registry" != x; then
11480
11481 cat >>confdefs.h <<_ACEOF
11482 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11483 _ACEOF
11484
11485 fi
11486 fi
11487 ;;
11488 esac
11489
11490 # Get an absolute path to the GCC top-level source directory
11491 holddir=`${PWDCMD-pwd}`
11492 cd $srcdir
11493 topdir=`${PWDCMD-pwd}`
11494 cd $holddir
11495
11496 # Conditionalize the makefile for this host machine.
11497 xmake_file=
11498 for f in ${host_xmake_file}
11499 do
11500 if test -f ${srcdir}/config/$f
11501 then
11502 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11503 fi
11504 done
11505
11506 # Conditionalize the makefile for this target machine.
11507 tmake_file_=
11508 for f in ${tmake_file}
11509 do
11510 if test -f ${srcdir}/config/$f
11511 then
11512 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11513 fi
11514 done
11515 tmake_file="${tmake_file_}"
11516
11517 out_object_file=`basename $out_file .c`.o
11518 common_out_object_file=`basename $common_out_file .c`.o
11519
11520 tm_file_list="options.h"
11521 tm_include_list="options.h insn-constants.h"
11522 for f in $tm_file; do
11523 case $f in
11524 ./* )
11525 f=`echo $f | sed 's/^..//'`
11526 tm_file_list="${tm_file_list} $f"
11527 tm_include_list="${tm_include_list} $f"
11528 ;;
11529 defaults.h )
11530 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11531 tm_include_list="${tm_include_list} $f"
11532 ;;
11533 * )
11534 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11535 tm_include_list="${tm_include_list} config/$f"
11536 ;;
11537 esac
11538 done
11539
11540 tm_p_file_list=
11541 tm_p_include_list=
11542 for f in $tm_p_file; do
11543 case $f in
11544 tm-preds.h )
11545 tm_p_file_list="${tm_p_file_list} $f"
11546 tm_p_include_list="${tm_p_include_list} $f"
11547 ;;
11548 * )
11549 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11550 tm_p_include_list="${tm_p_include_list} config/$f"
11551 esac
11552 done
11553
11554 xm_file_list=
11555 xm_include_list=
11556 for f in $xm_file; do
11557 case $f in
11558 ansidecl.h )
11559 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11560 xm_include_list="${xm_include_list} $f"
11561 ;;
11562 auto-host.h )
11563 xm_file_list="${xm_file_list} $f"
11564 xm_include_list="${xm_include_list} $f"
11565 ;;
11566 * )
11567 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11568 xm_include_list="${xm_include_list} config/$f"
11569 ;;
11570 esac
11571 done
11572
11573 host_xm_file_list=
11574 host_xm_include_list=
11575 for f in $host_xm_file; do
11576 case $f in
11577 ansidecl.h )
11578 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11579 host_xm_include_list="${host_xm_include_list} $f"
11580 ;;
11581 auto-host.h )
11582 host_xm_file_list="${host_xm_file_list} $f"
11583 host_xm_include_list="${host_xm_include_list} $f"
11584 ;;
11585 * )
11586 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11587 host_xm_include_list="${host_xm_include_list} config/$f"
11588 ;;
11589 esac
11590 done
11591
11592 build_xm_file_list=
11593 for f in $build_xm_file; do
11594 case $f in
11595 ansidecl.h )
11596 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11597 build_xm_include_list="${build_xm_include_list} $f"
11598 ;;
11599 auto-build.h | auto-host.h )
11600 build_xm_file_list="${build_xm_file_list} $f"
11601 build_xm_include_list="${build_xm_include_list} $f"
11602 ;;
11603 * )
11604 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11605 build_xm_include_list="${build_xm_include_list} config/$f"
11606 ;;
11607 esac
11608 done
11609
11610 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11611 # cross-compiler which does not use the native headers and libraries.
11612 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11613 CROSS=
11614 ALL=all.internal
11615 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11616
11617 if test "x$with_build_sysroot" != x; then
11618 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11619 else
11620 # This value is used, even on a native system, because
11621 # CROSS_SYSTEM_HEADER_DIR is just
11622 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11623 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11624 fi
11625
11626 if test x$host != x$target
11627 then
11628 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11629 ALL=all.cross
11630 SYSTEM_HEADER_DIR=$build_system_header_dir
11631 case "$host","$target" in
11632 # Darwin crosses can use the host system's libraries and headers,
11633 # because of the fat library support. Of course, it must be the
11634 # same version of Darwin on both sides. Allow the user to
11635 # just say --target=foo-darwin without a version number to mean
11636 # "the version on this system".
11637 *-*-darwin*,*-*-darwin*)
11638 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11639 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11640 if test $hostos = $targetos -o $targetos = darwin ; then
11641 CROSS=
11642 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11643 with_headers=yes
11644 fi
11645 ;;
11646
11647 i?86-*-*,x86_64-*-* \
11648 | powerpc*-*-*,powerpc64*-*-*)
11649 CROSS="$CROSS -DNATIVE_CROSS" ;;
11650 esac
11651
11652 case $target in
11653 *-*-mingw*)
11654 if test "x$with_headers" = x; then
11655 with_headers=yes
11656 fi
11657 ;;
11658 *)
11659 ;;
11660 esac
11661 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11662 SYSTEM_HEADER_DIR=$build_system_header_dir
11663 fi
11664
11665 # If this is a cross-compiler that does not
11666 # have its own set of headers then define
11667 # inhibit_libc
11668
11669 # If this is using newlib, without having the headers available now,
11670 # then define inhibit_libc in LIBGCC2_CFLAGS.
11671 # This prevents libgcc2 from containing any code which requires libc
11672 # support.
11673 : ${inhibit_libc=false}
11674 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11675 test x$with_newlib = xyes ; } &&
11676 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11677 inhibit_libc=true
11678 fi
11679
11680
11681 # When building gcc with a cross-compiler, we need to adjust things so
11682 # that the generator programs are still built with the native compiler.
11683 # Also, we cannot run fixincludes.
11684
11685 # These are the normal (build=host) settings:
11686 CC_FOR_BUILD='$(CC)'
11687 CXX_FOR_BUILD='$(CXX)'
11688 BUILD_CFLAGS='$(ALL_CFLAGS)'
11689 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11690 BUILD_LDFLAGS='$(LDFLAGS)'
11691 STMP_FIXINC=stmp-fixinc
11692
11693 # And these apply if build != host, or we are generating coverage data
11694 if test x$build != x$host || test "x$coverage_flags" != x
11695 then
11696 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11697 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11698 fi
11699
11700 # Expand extra_headers to include complete path.
11701 # This substitutes for lots of t-* files.
11702 extra_headers_list=
11703 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11704 for file in ${extra_headers} ; do
11705 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11706 done
11707
11708 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11709 if test x"$use_gcc_tgmath" = xyes
11710 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11711 fi
11712
11713 # Define collect2 in Makefile.
11714 case $host_can_use_collect2 in
11715 no) collect2= ;;
11716 *) collect2='collect2$(exeext)' ;;
11717 esac
11718
11719
11720 # Add a definition of USE_COLLECT2 if system wants one.
11721 case $use_collect2 in
11722 no) use_collect2= ;;
11723 "") ;;
11724 *)
11725 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11726 xm_defines="${xm_defines} USE_COLLECT2"
11727 case $host_can_use_collect2 in
11728 no)
11729 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11730 ;;
11731 esac
11732 ;;
11733 esac
11734
11735
11736 cat >>confdefs.h <<_ACEOF
11737 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11738 _ACEOF
11739
11740
11741 # ---------------------------
11742 # Assembler & linker features
11743 # ---------------------------
11744
11745 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11746 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11747 # However when ld-new is first executed from the build tree, libtool will
11748 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11749 # to the build tree. While doing this we need to use the previous-stage
11750 # linker, or we have an infinite loop. The presence of a shell script as
11751 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11752 # the gcc/collect-ld script. So we need to know how libtool works, or
11753 # exec-tool will fail.
11754
11755
11756 case `pwd` in
11757 *\ * | *\ *)
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11759 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11760 esac
11761
11762
11763
11764 macro_version='2.2.7a'
11765 macro_revision='1.3134'
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779 ltmain="$ac_aux_dir/ltmain.sh"
11780
11781 # Backslashify metacharacters that are still active within
11782 # double-quoted strings.
11783 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11784
11785 # Same as above, but do not quote variable references.
11786 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11787
11788 # Sed substitution to delay expansion of an escaped shell variable in a
11789 # double_quote_subst'ed string.
11790 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11791
11792 # Sed substitution to delay expansion of an escaped single quote.
11793 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11794
11795 # Sed substitution to avoid accidental globbing in evaled expressions
11796 no_glob_subst='s/\*/\\\*/g'
11797
11798 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11799 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11800 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11801
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11803 $as_echo_n "checking how to print strings... " >&6; }
11804 # Test print first, because it will be a builtin if present.
11805 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11806 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11807 ECHO='print -r --'
11808 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11809 ECHO='printf %s\n'
11810 else
11811 # Use this function as a fallback that always works.
11812 func_fallback_echo ()
11813 {
11814 eval 'cat <<_LTECHO_EOF
11815 $1
11816 _LTECHO_EOF'
11817 }
11818 ECHO='func_fallback_echo'
11819 fi
11820
11821 # func_echo_all arg...
11822 # Invoke $ECHO with all args, space-separated.
11823 func_echo_all ()
11824 {
11825 $ECHO ""
11826 }
11827
11828 case "$ECHO" in
11829 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11830 $as_echo "printf" >&6; } ;;
11831 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11832 $as_echo "print -r" >&6; } ;;
11833 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11834 $as_echo "cat" >&6; } ;;
11835 esac
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11851 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11852 if test "${ac_cv_path_SED+set}" = set; then :
11853 $as_echo_n "(cached) " >&6
11854 else
11855 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11856 for ac_i in 1 2 3 4 5 6 7; do
11857 ac_script="$ac_script$as_nl$ac_script"
11858 done
11859 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11860 { ac_script=; unset ac_script;}
11861 if test -z "$SED"; then
11862 ac_path_SED_found=false
11863 # Loop through the user's path and test for each of PROGNAME-LIST
11864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11865 for as_dir in $PATH
11866 do
11867 IFS=$as_save_IFS
11868 test -z "$as_dir" && as_dir=.
11869 for ac_prog in sed gsed; do
11870 for ac_exec_ext in '' $ac_executable_extensions; do
11871 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11872 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11873 # Check for GNU ac_path_SED and select it if it is found.
11874 # Check for GNU $ac_path_SED
11875 case `"$ac_path_SED" --version 2>&1` in
11876 *GNU*)
11877 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11878 *)
11879 ac_count=0
11880 $as_echo_n 0123456789 >"conftest.in"
11881 while :
11882 do
11883 cat "conftest.in" "conftest.in" >"conftest.tmp"
11884 mv "conftest.tmp" "conftest.in"
11885 cp "conftest.in" "conftest.nl"
11886 $as_echo '' >> "conftest.nl"
11887 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11888 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11889 as_fn_arith $ac_count + 1 && ac_count=$as_val
11890 if test $ac_count -gt ${ac_path_SED_max-0}; then
11891 # Best one so far, save it but keep looking for a better one
11892 ac_cv_path_SED="$ac_path_SED"
11893 ac_path_SED_max=$ac_count
11894 fi
11895 # 10*(2^10) chars as input seems more than enough
11896 test $ac_count -gt 10 && break
11897 done
11898 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11899 esac
11900
11901 $ac_path_SED_found && break 3
11902 done
11903 done
11904 done
11905 IFS=$as_save_IFS
11906 if test -z "$ac_cv_path_SED"; then
11907 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11908 fi
11909 else
11910 ac_cv_path_SED=$SED
11911 fi
11912
11913 fi
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11915 $as_echo "$ac_cv_path_SED" >&6; }
11916 SED="$ac_cv_path_SED"
11917 rm -f conftest.sed
11918
11919 test -z "$SED" && SED=sed
11920 Xsed="$SED -e 1s/^X//"
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11933 $as_echo_n "checking for fgrep... " >&6; }
11934 if test "${ac_cv_path_FGREP+set}" = set; then :
11935 $as_echo_n "(cached) " >&6
11936 else
11937 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11938 then ac_cv_path_FGREP="$GREP -F"
11939 else
11940 if test -z "$FGREP"; then
11941 ac_path_FGREP_found=false
11942 # Loop through the user's path and test for each of PROGNAME-LIST
11943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11944 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11945 do
11946 IFS=$as_save_IFS
11947 test -z "$as_dir" && as_dir=.
11948 for ac_prog in fgrep; do
11949 for ac_exec_ext in '' $ac_executable_extensions; do
11950 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11951 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11952 # Check for GNU ac_path_FGREP and select it if it is found.
11953 # Check for GNU $ac_path_FGREP
11954 case `"$ac_path_FGREP" --version 2>&1` in
11955 *GNU*)
11956 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11957 *)
11958 ac_count=0
11959 $as_echo_n 0123456789 >"conftest.in"
11960 while :
11961 do
11962 cat "conftest.in" "conftest.in" >"conftest.tmp"
11963 mv "conftest.tmp" "conftest.in"
11964 cp "conftest.in" "conftest.nl"
11965 $as_echo 'FGREP' >> "conftest.nl"
11966 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11967 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11968 as_fn_arith $ac_count + 1 && ac_count=$as_val
11969 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11970 # Best one so far, save it but keep looking for a better one
11971 ac_cv_path_FGREP="$ac_path_FGREP"
11972 ac_path_FGREP_max=$ac_count
11973 fi
11974 # 10*(2^10) chars as input seems more than enough
11975 test $ac_count -gt 10 && break
11976 done
11977 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11978 esac
11979
11980 $ac_path_FGREP_found && break 3
11981 done
11982 done
11983 done
11984 IFS=$as_save_IFS
11985 if test -z "$ac_cv_path_FGREP"; then
11986 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11987 fi
11988 else
11989 ac_cv_path_FGREP=$FGREP
11990 fi
11991
11992 fi
11993 fi
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11995 $as_echo "$ac_cv_path_FGREP" >&6; }
11996 FGREP="$ac_cv_path_FGREP"
11997
11998
11999 test -z "$GREP" && GREP=grep
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019 # Check whether --with-gnu-ld was given.
12020 if test "${with_gnu_ld+set}" = set; then :
12021 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12022 else
12023 with_gnu_ld=no
12024 fi
12025
12026 ac_prog=ld
12027 if test "$GCC" = yes; then
12028 # Check if gcc -print-prog-name=ld gives a path.
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12030 $as_echo_n "checking for ld used by $CC... " >&6; }
12031 case $host in
12032 *-*-mingw*)
12033 # gcc leaves a trailing carriage return which upsets mingw
12034 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12035 *)
12036 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12037 esac
12038 case $ac_prog in
12039 # Accept absolute paths.
12040 [\\/]* | ?:[\\/]*)
12041 re_direlt='/[^/][^/]*/\.\./'
12042 # Canonicalize the pathname of ld
12043 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12044 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12045 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12046 done
12047 test -z "$LD" && LD="$ac_prog"
12048 ;;
12049 "")
12050 # If it fails, then pretend we aren't using GCC.
12051 ac_prog=ld
12052 ;;
12053 *)
12054 # If it is relative, then search for the first ld in PATH.
12055 with_gnu_ld=unknown
12056 ;;
12057 esac
12058 elif test "$with_gnu_ld" = yes; then
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12060 $as_echo_n "checking for GNU ld... " >&6; }
12061 else
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12063 $as_echo_n "checking for non-GNU ld... " >&6; }
12064 fi
12065 if test "${lt_cv_path_LD+set}" = set; then :
12066 $as_echo_n "(cached) " >&6
12067 else
12068 if test -z "$LD"; then
12069 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12070 for ac_dir in $PATH; do
12071 IFS="$lt_save_ifs"
12072 test -z "$ac_dir" && ac_dir=.
12073 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12074 lt_cv_path_LD="$ac_dir/$ac_prog"
12075 # Check to see if the program is GNU ld. I'd rather use --version,
12076 # but apparently some variants of GNU ld only accept -v.
12077 # Break only if it was the GNU/non-GNU ld that we prefer.
12078 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12079 *GNU* | *'with BFD'*)
12080 test "$with_gnu_ld" != no && break
12081 ;;
12082 *)
12083 test "$with_gnu_ld" != yes && break
12084 ;;
12085 esac
12086 fi
12087 done
12088 IFS="$lt_save_ifs"
12089 else
12090 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12091 fi
12092 fi
12093
12094 LD="$lt_cv_path_LD"
12095 if test -n "$LD"; then
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12097 $as_echo "$LD" >&6; }
12098 else
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12100 $as_echo "no" >&6; }
12101 fi
12102 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12104 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12105 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12106 $as_echo_n "(cached) " >&6
12107 else
12108 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12109 case `$LD -v 2>&1 </dev/null` in
12110 *GNU* | *'with BFD'*)
12111 lt_cv_prog_gnu_ld=yes
12112 ;;
12113 *)
12114 lt_cv_prog_gnu_ld=no
12115 ;;
12116 esac
12117 fi
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12119 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12120 with_gnu_ld=$lt_cv_prog_gnu_ld
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12131 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12132 if test "${lt_cv_path_NM+set}" = set; then :
12133 $as_echo_n "(cached) " >&6
12134 else
12135 if test -n "$NM"; then
12136 # Let the user override the test.
12137 lt_cv_path_NM="$NM"
12138 else
12139 lt_nm_to_check="${ac_tool_prefix}nm"
12140 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12141 lt_nm_to_check="$lt_nm_to_check nm"
12142 fi
12143 for lt_tmp_nm in $lt_nm_to_check; do
12144 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12145 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12146 IFS="$lt_save_ifs"
12147 test -z "$ac_dir" && ac_dir=.
12148 tmp_nm="$ac_dir/$lt_tmp_nm"
12149 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12150 # Check to see if the nm accepts a BSD-compat flag.
12151 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12152 # nm: unknown option "B" ignored
12153 # Tru64's nm complains that /dev/null is an invalid object file
12154 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12155 */dev/null* | *'Invalid file or object type'*)
12156 lt_cv_path_NM="$tmp_nm -B"
12157 break
12158 ;;
12159 *)
12160 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12161 */dev/null*)
12162 lt_cv_path_NM="$tmp_nm -p"
12163 break
12164 ;;
12165 *)
12166 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12167 continue # so that we can try to find one that supports BSD flags
12168 ;;
12169 esac
12170 ;;
12171 esac
12172 fi
12173 done
12174 IFS="$lt_save_ifs"
12175 done
12176 : ${lt_cv_path_NM=no}
12177 fi
12178 fi
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12180 $as_echo "$lt_cv_path_NM" >&6; }
12181 if test "$lt_cv_path_NM" != "no"; then
12182 NM="$lt_cv_path_NM"
12183 else
12184 # Didn't find any BSD compatible name lister, look for dumpbin.
12185 if test -n "$DUMPBIN"; then :
12186 # Let the user override the test.
12187 else
12188 if test -n "$ac_tool_prefix"; then
12189 for ac_prog in dumpbin "link -dump"
12190 do
12191 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12192 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12194 $as_echo_n "checking for $ac_word... " >&6; }
12195 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12196 $as_echo_n "(cached) " >&6
12197 else
12198 if test -n "$DUMPBIN"; then
12199 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12200 else
12201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12202 for as_dir in $PATH
12203 do
12204 IFS=$as_save_IFS
12205 test -z "$as_dir" && as_dir=.
12206 for ac_exec_ext in '' $ac_executable_extensions; do
12207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12208 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12210 break 2
12211 fi
12212 done
12213 done
12214 IFS=$as_save_IFS
12215
12216 fi
12217 fi
12218 DUMPBIN=$ac_cv_prog_DUMPBIN
12219 if test -n "$DUMPBIN"; then
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12221 $as_echo "$DUMPBIN" >&6; }
12222 else
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12224 $as_echo "no" >&6; }
12225 fi
12226
12227
12228 test -n "$DUMPBIN" && break
12229 done
12230 fi
12231 if test -z "$DUMPBIN"; then
12232 ac_ct_DUMPBIN=$DUMPBIN
12233 for ac_prog in dumpbin "link -dump"
12234 do
12235 # Extract the first word of "$ac_prog", so it can be a program name with args.
12236 set dummy $ac_prog; ac_word=$2
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12238 $as_echo_n "checking for $ac_word... " >&6; }
12239 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12240 $as_echo_n "(cached) " >&6
12241 else
12242 if test -n "$ac_ct_DUMPBIN"; then
12243 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12244 else
12245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246 for as_dir in $PATH
12247 do
12248 IFS=$as_save_IFS
12249 test -z "$as_dir" && as_dir=.
12250 for ac_exec_ext in '' $ac_executable_extensions; do
12251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12252 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12254 break 2
12255 fi
12256 done
12257 done
12258 IFS=$as_save_IFS
12259
12260 fi
12261 fi
12262 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12263 if test -n "$ac_ct_DUMPBIN"; then
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12265 $as_echo "$ac_ct_DUMPBIN" >&6; }
12266 else
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268 $as_echo "no" >&6; }
12269 fi
12270
12271
12272 test -n "$ac_ct_DUMPBIN" && break
12273 done
12274
12275 if test "x$ac_ct_DUMPBIN" = x; then
12276 DUMPBIN=":"
12277 else
12278 case $cross_compiling:$ac_tool_warned in
12279 yes:)
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12282 ac_tool_warned=yes ;;
12283 esac
12284 DUMPBIN=$ac_ct_DUMPBIN
12285 fi
12286 fi
12287
12288 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12289 *COFF*)
12290 DUMPBIN="$DUMPBIN -symbols"
12291 ;;
12292 *)
12293 DUMPBIN=:
12294 ;;
12295 esac
12296 fi
12297
12298 if test "$DUMPBIN" != ":"; then
12299 NM="$DUMPBIN"
12300 fi
12301 fi
12302 test -z "$NM" && NM=nm
12303
12304
12305
12306
12307
12308
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12310 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12311 if test "${lt_cv_nm_interface+set}" = set; then :
12312 $as_echo_n "(cached) " >&6
12313 else
12314 lt_cv_nm_interface="BSD nm"
12315 echo "int some_variable = 0;" > conftest.$ac_ext
12316 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12317 (eval "$ac_compile" 2>conftest.err)
12318 cat conftest.err >&5
12319 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12320 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12321 cat conftest.err >&5
12322 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12323 cat conftest.out >&5
12324 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12325 lt_cv_nm_interface="MS dumpbin"
12326 fi
12327 rm -f conftest*
12328 fi
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12330 $as_echo "$lt_cv_nm_interface" >&6; }
12331
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12333 $as_echo_n "checking whether ln -s works... " >&6; }
12334 LN_S=$as_ln_s
12335 if test "$LN_S" = "ln -s"; then
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12337 $as_echo "yes" >&6; }
12338 else
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12340 $as_echo "no, using $LN_S" >&6; }
12341 fi
12342
12343 # find the maximum length of command line arguments
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12345 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12346 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12347 $as_echo_n "(cached) " >&6
12348 else
12349 i=0
12350 teststring="ABCD"
12351
12352 case $build_os in
12353 msdosdjgpp*)
12354 # On DJGPP, this test can blow up pretty badly due to problems in libc
12355 # (any single argument exceeding 2000 bytes causes a buffer overrun
12356 # during glob expansion). Even if it were fixed, the result of this
12357 # check would be larger than it should be.
12358 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12359 ;;
12360
12361 gnu*)
12362 # Under GNU Hurd, this test is not required because there is
12363 # no limit to the length of command line arguments.
12364 # Libtool will interpret -1 as no limit whatsoever
12365 lt_cv_sys_max_cmd_len=-1;
12366 ;;
12367
12368 cygwin* | mingw* | cegcc*)
12369 # On Win9x/ME, this test blows up -- it succeeds, but takes
12370 # about 5 minutes as the teststring grows exponentially.
12371 # Worse, since 9x/ME are not pre-emptively multitasking,
12372 # you end up with a "frozen" computer, even though with patience
12373 # the test eventually succeeds (with a max line length of 256k).
12374 # Instead, let's just punt: use the minimum linelength reported by
12375 # all of the supported platforms: 8192 (on NT/2K/XP).
12376 lt_cv_sys_max_cmd_len=8192;
12377 ;;
12378
12379 mint*)
12380 # On MiNT this can take a long time and run out of memory.
12381 lt_cv_sys_max_cmd_len=8192;
12382 ;;
12383
12384 amigaos*)
12385 # On AmigaOS with pdksh, this test takes hours, literally.
12386 # So we just punt and use a minimum line length of 8192.
12387 lt_cv_sys_max_cmd_len=8192;
12388 ;;
12389
12390 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12391 # This has been around since 386BSD, at least. Likely further.
12392 if test -x /sbin/sysctl; then
12393 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12394 elif test -x /usr/sbin/sysctl; then
12395 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12396 else
12397 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12398 fi
12399 # And add a safety zone
12400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12401 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12402 ;;
12403
12404 interix*)
12405 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12406 lt_cv_sys_max_cmd_len=196608
12407 ;;
12408
12409 osf*)
12410 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12411 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12412 # nice to cause kernel panics so lets avoid the loop below.
12413 # First set a reasonable default.
12414 lt_cv_sys_max_cmd_len=16384
12415 #
12416 if test -x /sbin/sysconfig; then
12417 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12418 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12419 esac
12420 fi
12421 ;;
12422 sco3.2v5*)
12423 lt_cv_sys_max_cmd_len=102400
12424 ;;
12425 sysv5* | sco5v6* | sysv4.2uw2*)
12426 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12427 if test -n "$kargmax"; then
12428 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12429 else
12430 lt_cv_sys_max_cmd_len=32768
12431 fi
12432 ;;
12433 *)
12434 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12435 if test -n "$lt_cv_sys_max_cmd_len"; then
12436 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12437 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12438 else
12439 # Make teststring a little bigger before we do anything with it.
12440 # a 1K string should be a reasonable start.
12441 for i in 1 2 3 4 5 6 7 8 ; do
12442 teststring=$teststring$teststring
12443 done
12444 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12445 # If test is not a shell built-in, we'll probably end up computing a
12446 # maximum length that is only half of the actual maximum length, but
12447 # we can't tell.
12448 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12449 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12450 test $i != 17 # 1/2 MB should be enough
12451 do
12452 i=`expr $i + 1`
12453 teststring=$teststring$teststring
12454 done
12455 # Only check the string length outside the loop.
12456 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12457 teststring=
12458 # Add a significant safety factor because C++ compilers can tack on
12459 # massive amounts of additional arguments before passing them to the
12460 # linker. It appears as though 1/2 is a usable value.
12461 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12462 fi
12463 ;;
12464 esac
12465
12466 fi
12467
12468 if test -n $lt_cv_sys_max_cmd_len ; then
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12470 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12471 else
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12473 $as_echo "none" >&6; }
12474 fi
12475 max_cmd_len=$lt_cv_sys_max_cmd_len
12476
12477
12478
12479
12480
12481
12482 : ${CP="cp -f"}
12483 : ${MV="mv -f"}
12484 : ${RM="rm -f"}
12485
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12487 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12488 # Try some XSI features
12489 xsi_shell=no
12490 ( _lt_dummy="a/b/c"
12491 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12492 = c,a/b,, \
12493 && eval 'test $(( 1 + 1 )) -eq 2 \
12494 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12495 && xsi_shell=yes
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12497 $as_echo "$xsi_shell" >&6; }
12498
12499
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12501 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12502 lt_shell_append=no
12503 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12504 >/dev/null 2>&1 \
12505 && lt_shell_append=yes
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12507 $as_echo "$lt_shell_append" >&6; }
12508
12509
12510 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12511 lt_unset=unset
12512 else
12513 lt_unset=false
12514 fi
12515
12516
12517
12518
12519
12520 # test EBCDIC or ASCII
12521 case `echo X|tr X '\101'` in
12522 A) # ASCII based system
12523 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12524 lt_SP2NL='tr \040 \012'
12525 lt_NL2SP='tr \015\012 \040\040'
12526 ;;
12527 *) # EBCDIC based system
12528 lt_SP2NL='tr \100 \n'
12529 lt_NL2SP='tr \r\n \100\100'
12530 ;;
12531 esac
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12542 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12543 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12544 $as_echo_n "(cached) " >&6
12545 else
12546 lt_cv_ld_reload_flag='-r'
12547 fi
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12549 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12550 reload_flag=$lt_cv_ld_reload_flag
12551 case $reload_flag in
12552 "" | " "*) ;;
12553 *) reload_flag=" $reload_flag" ;;
12554 esac
12555 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12556 case $host_os in
12557 darwin*)
12558 if test "$GCC" = yes; then
12559 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12560 else
12561 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12562 fi
12563 ;;
12564 esac
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574 if test -n "$ac_tool_prefix"; then
12575 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12576 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12578 $as_echo_n "checking for $ac_word... " >&6; }
12579 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12580 $as_echo_n "(cached) " >&6
12581 else
12582 if test -n "$OBJDUMP"; then
12583 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12584 else
12585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12586 for as_dir in $PATH
12587 do
12588 IFS=$as_save_IFS
12589 test -z "$as_dir" && as_dir=.
12590 for ac_exec_ext in '' $ac_executable_extensions; do
12591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12592 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12594 break 2
12595 fi
12596 done
12597 done
12598 IFS=$as_save_IFS
12599
12600 fi
12601 fi
12602 OBJDUMP=$ac_cv_prog_OBJDUMP
12603 if test -n "$OBJDUMP"; then
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12605 $as_echo "$OBJDUMP" >&6; }
12606 else
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608 $as_echo "no" >&6; }
12609 fi
12610
12611
12612 fi
12613 if test -z "$ac_cv_prog_OBJDUMP"; then
12614 ac_ct_OBJDUMP=$OBJDUMP
12615 # Extract the first word of "objdump", so it can be a program name with args.
12616 set dummy objdump; ac_word=$2
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12618 $as_echo_n "checking for $ac_word... " >&6; }
12619 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12620 $as_echo_n "(cached) " >&6
12621 else
12622 if test -n "$ac_ct_OBJDUMP"; then
12623 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12624 else
12625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12626 for as_dir in $PATH
12627 do
12628 IFS=$as_save_IFS
12629 test -z "$as_dir" && as_dir=.
12630 for ac_exec_ext in '' $ac_executable_extensions; do
12631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12632 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12634 break 2
12635 fi
12636 done
12637 done
12638 IFS=$as_save_IFS
12639
12640 fi
12641 fi
12642 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12643 if test -n "$ac_ct_OBJDUMP"; then
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12645 $as_echo "$ac_ct_OBJDUMP" >&6; }
12646 else
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12648 $as_echo "no" >&6; }
12649 fi
12650
12651 if test "x$ac_ct_OBJDUMP" = x; then
12652 OBJDUMP="false"
12653 else
12654 case $cross_compiling:$ac_tool_warned in
12655 yes:)
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12658 ac_tool_warned=yes ;;
12659 esac
12660 OBJDUMP=$ac_ct_OBJDUMP
12661 fi
12662 else
12663 OBJDUMP="$ac_cv_prog_OBJDUMP"
12664 fi
12665
12666 test -z "$OBJDUMP" && OBJDUMP=objdump
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12677 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12678 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12679 $as_echo_n "(cached) " >&6
12680 else
12681 lt_cv_file_magic_cmd='$MAGIC_CMD'
12682 lt_cv_file_magic_test_file=
12683 lt_cv_deplibs_check_method='unknown'
12684 # Need to set the preceding variable on all platforms that support
12685 # interlibrary dependencies.
12686 # 'none' -- dependencies not supported.
12687 # `unknown' -- same as none, but documents that we really don't know.
12688 # 'pass_all' -- all dependencies passed with no checks.
12689 # 'test_compile' -- check by making test program.
12690 # 'file_magic [[regex]]' -- check by looking for files in library path
12691 # which responds to the $file_magic_cmd with a given extended regex.
12692 # If you have `file' or equivalent on your system and you're not sure
12693 # whether `pass_all' will *always* work, you probably want this one.
12694
12695 case $host_os in
12696 aix[4-9]*)
12697 lt_cv_deplibs_check_method=pass_all
12698 ;;
12699
12700 beos*)
12701 lt_cv_deplibs_check_method=pass_all
12702 ;;
12703
12704 bsdi[45]*)
12705 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12706 lt_cv_file_magic_cmd='/usr/bin/file -L'
12707 lt_cv_file_magic_test_file=/shlib/libc.so
12708 ;;
12709
12710 cygwin*)
12711 # func_win32_libid is a shell function defined in ltmain.sh
12712 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12713 lt_cv_file_magic_cmd='func_win32_libid'
12714 ;;
12715
12716 mingw* | pw32*)
12717 # Base MSYS/MinGW do not provide the 'file' command needed by
12718 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12719 # unless we find 'file', for example because we are cross-compiling.
12720 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12721 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12722 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12723 lt_cv_file_magic_cmd='func_win32_libid'
12724 else
12725 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12726 lt_cv_file_magic_cmd='$OBJDUMP -f'
12727 fi
12728 ;;
12729
12730 cegcc*)
12731 # use the weaker test based on 'objdump'. See mingw*.
12732 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12733 lt_cv_file_magic_cmd='$OBJDUMP -f'
12734 ;;
12735
12736 darwin* | rhapsody*)
12737 lt_cv_deplibs_check_method=pass_all
12738 ;;
12739
12740 freebsd* | dragonfly*)
12741 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12742 case $host_cpu in
12743 i*86 )
12744 # Not sure whether the presence of OpenBSD here was a mistake.
12745 # Let's accept both of them until this is cleared up.
12746 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12747 lt_cv_file_magic_cmd=/usr/bin/file
12748 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12749 ;;
12750 esac
12751 else
12752 lt_cv_deplibs_check_method=pass_all
12753 fi
12754 ;;
12755
12756 gnu*)
12757 lt_cv_deplibs_check_method=pass_all
12758 ;;
12759
12760 haiku*)
12761 lt_cv_deplibs_check_method=pass_all
12762 ;;
12763
12764 hpux10.20* | hpux11*)
12765 lt_cv_file_magic_cmd=/usr/bin/file
12766 case $host_cpu in
12767 ia64*)
12768 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12769 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12770 ;;
12771 hppa*64*)
12772 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
12773 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12774 ;;
12775 *)
12776 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12777 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12778 ;;
12779 esac
12780 ;;
12781
12782 interix[3-9]*)
12783 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12784 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12785 ;;
12786
12787 irix5* | irix6* | nonstopux*)
12788 case $LD in
12789 *-32|*"-32 ") libmagic=32-bit;;
12790 *-n32|*"-n32 ") libmagic=N32;;
12791 *-64|*"-64 ") libmagic=64-bit;;
12792 *) libmagic=never-match;;
12793 esac
12794 lt_cv_deplibs_check_method=pass_all
12795 ;;
12796
12797 # This must be Linux ELF.
12798 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12799 lt_cv_deplibs_check_method=pass_all
12800 ;;
12801
12802 netbsd*)
12803 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12804 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12805 else
12806 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12807 fi
12808 ;;
12809
12810 newos6*)
12811 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12812 lt_cv_file_magic_cmd=/usr/bin/file
12813 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12814 ;;
12815
12816 *nto* | *qnx*)
12817 lt_cv_deplibs_check_method=pass_all
12818 ;;
12819
12820 openbsd*)
12821 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12822 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12823 else
12824 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12825 fi
12826 ;;
12827
12828 osf3* | osf4* | osf5*)
12829 lt_cv_deplibs_check_method=pass_all
12830 ;;
12831
12832 rdos*)
12833 lt_cv_deplibs_check_method=pass_all
12834 ;;
12835
12836 solaris*)
12837 lt_cv_deplibs_check_method=pass_all
12838 ;;
12839
12840 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12841 lt_cv_deplibs_check_method=pass_all
12842 ;;
12843
12844 sysv4 | sysv4.3*)
12845 case $host_vendor in
12846 motorola)
12847 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
12848 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12849 ;;
12850 ncr)
12851 lt_cv_deplibs_check_method=pass_all
12852 ;;
12853 sequent)
12854 lt_cv_file_magic_cmd='/bin/file'
12855 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12856 ;;
12857 sni)
12858 lt_cv_file_magic_cmd='/bin/file'
12859 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12860 lt_cv_file_magic_test_file=/lib/libc.so
12861 ;;
12862 siemens)
12863 lt_cv_deplibs_check_method=pass_all
12864 ;;
12865 pc)
12866 lt_cv_deplibs_check_method=pass_all
12867 ;;
12868 esac
12869 ;;
12870
12871 tpf*)
12872 lt_cv_deplibs_check_method=pass_all
12873 ;;
12874 esac
12875
12876 fi
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12878 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12879 file_magic_cmd=$lt_cv_file_magic_cmd
12880 deplibs_check_method=$lt_cv_deplibs_check_method
12881 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894 if test -n "$ac_tool_prefix"; then
12895 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12896 set dummy ${ac_tool_prefix}ar; ac_word=$2
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12898 $as_echo_n "checking for $ac_word... " >&6; }
12899 if test "${ac_cv_prog_AR+set}" = set; then :
12900 $as_echo_n "(cached) " >&6
12901 else
12902 if test -n "$AR"; then
12903 ac_cv_prog_AR="$AR" # Let the user override the test.
12904 else
12905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12906 for as_dir in $PATH
12907 do
12908 IFS=$as_save_IFS
12909 test -z "$as_dir" && as_dir=.
12910 for ac_exec_ext in '' $ac_executable_extensions; do
12911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12912 ac_cv_prog_AR="${ac_tool_prefix}ar"
12913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12914 break 2
12915 fi
12916 done
12917 done
12918 IFS=$as_save_IFS
12919
12920 fi
12921 fi
12922 AR=$ac_cv_prog_AR
12923 if test -n "$AR"; then
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12925 $as_echo "$AR" >&6; }
12926 else
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12928 $as_echo "no" >&6; }
12929 fi
12930
12931
12932 fi
12933 if test -z "$ac_cv_prog_AR"; then
12934 ac_ct_AR=$AR
12935 # Extract the first word of "ar", so it can be a program name with args.
12936 set dummy ar; ac_word=$2
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12938 $as_echo_n "checking for $ac_word... " >&6; }
12939 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12940 $as_echo_n "(cached) " >&6
12941 else
12942 if test -n "$ac_ct_AR"; then
12943 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12944 else
12945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12946 for as_dir in $PATH
12947 do
12948 IFS=$as_save_IFS
12949 test -z "$as_dir" && as_dir=.
12950 for ac_exec_ext in '' $ac_executable_extensions; do
12951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12952 ac_cv_prog_ac_ct_AR="ar"
12953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12954 break 2
12955 fi
12956 done
12957 done
12958 IFS=$as_save_IFS
12959
12960 fi
12961 fi
12962 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12963 if test -n "$ac_ct_AR"; then
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12965 $as_echo "$ac_ct_AR" >&6; }
12966 else
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12968 $as_echo "no" >&6; }
12969 fi
12970
12971 if test "x$ac_ct_AR" = x; then
12972 AR="false"
12973 else
12974 case $cross_compiling:$ac_tool_warned in
12975 yes:)
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12978 ac_tool_warned=yes ;;
12979 esac
12980 AR=$ac_ct_AR
12981 fi
12982 else
12983 AR="$ac_cv_prog_AR"
12984 fi
12985
12986 test -z "$AR" && AR=ar
12987 test -z "$AR_FLAGS" && AR_FLAGS=cru
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999 if test -n "$ac_tool_prefix"; then
13000 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13001 set dummy ${ac_tool_prefix}strip; ac_word=$2
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13003 $as_echo_n "checking for $ac_word... " >&6; }
13004 if test "${ac_cv_prog_STRIP+set}" = set; then :
13005 $as_echo_n "(cached) " >&6
13006 else
13007 if test -n "$STRIP"; then
13008 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13009 else
13010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13011 for as_dir in $PATH
13012 do
13013 IFS=$as_save_IFS
13014 test -z "$as_dir" && as_dir=.
13015 for ac_exec_ext in '' $ac_executable_extensions; do
13016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13017 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13019 break 2
13020 fi
13021 done
13022 done
13023 IFS=$as_save_IFS
13024
13025 fi
13026 fi
13027 STRIP=$ac_cv_prog_STRIP
13028 if test -n "$STRIP"; then
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13030 $as_echo "$STRIP" >&6; }
13031 else
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13033 $as_echo "no" >&6; }
13034 fi
13035
13036
13037 fi
13038 if test -z "$ac_cv_prog_STRIP"; then
13039 ac_ct_STRIP=$STRIP
13040 # Extract the first word of "strip", so it can be a program name with args.
13041 set dummy strip; ac_word=$2
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13043 $as_echo_n "checking for $ac_word... " >&6; }
13044 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13045 $as_echo_n "(cached) " >&6
13046 else
13047 if test -n "$ac_ct_STRIP"; then
13048 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13049 else
13050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13051 for as_dir in $PATH
13052 do
13053 IFS=$as_save_IFS
13054 test -z "$as_dir" && as_dir=.
13055 for ac_exec_ext in '' $ac_executable_extensions; do
13056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13057 ac_cv_prog_ac_ct_STRIP="strip"
13058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13059 break 2
13060 fi
13061 done
13062 done
13063 IFS=$as_save_IFS
13064
13065 fi
13066 fi
13067 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13068 if test -n "$ac_ct_STRIP"; then
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13070 $as_echo "$ac_ct_STRIP" >&6; }
13071 else
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13073 $as_echo "no" >&6; }
13074 fi
13075
13076 if test "x$ac_ct_STRIP" = x; then
13077 STRIP=":"
13078 else
13079 case $cross_compiling:$ac_tool_warned in
13080 yes:)
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13083 ac_tool_warned=yes ;;
13084 esac
13085 STRIP=$ac_ct_STRIP
13086 fi
13087 else
13088 STRIP="$ac_cv_prog_STRIP"
13089 fi
13090
13091 test -z "$STRIP" && STRIP=:
13092
13093
13094
13095
13096
13097
13098 if test -n "$ac_tool_prefix"; then
13099 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13100 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13102 $as_echo_n "checking for $ac_word... " >&6; }
13103 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13104 $as_echo_n "(cached) " >&6
13105 else
13106 if test -n "$RANLIB"; then
13107 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13108 else
13109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13110 for as_dir in $PATH
13111 do
13112 IFS=$as_save_IFS
13113 test -z "$as_dir" && as_dir=.
13114 for ac_exec_ext in '' $ac_executable_extensions; do
13115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13116 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13118 break 2
13119 fi
13120 done
13121 done
13122 IFS=$as_save_IFS
13123
13124 fi
13125 fi
13126 RANLIB=$ac_cv_prog_RANLIB
13127 if test -n "$RANLIB"; then
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13129 $as_echo "$RANLIB" >&6; }
13130 else
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13132 $as_echo "no" >&6; }
13133 fi
13134
13135
13136 fi
13137 if test -z "$ac_cv_prog_RANLIB"; then
13138 ac_ct_RANLIB=$RANLIB
13139 # Extract the first word of "ranlib", so it can be a program name with args.
13140 set dummy ranlib; ac_word=$2
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13142 $as_echo_n "checking for $ac_word... " >&6; }
13143 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13144 $as_echo_n "(cached) " >&6
13145 else
13146 if test -n "$ac_ct_RANLIB"; then
13147 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13148 else
13149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13150 for as_dir in $PATH
13151 do
13152 IFS=$as_save_IFS
13153 test -z "$as_dir" && as_dir=.
13154 for ac_exec_ext in '' $ac_executable_extensions; do
13155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13156 ac_cv_prog_ac_ct_RANLIB="ranlib"
13157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13158 break 2
13159 fi
13160 done
13161 done
13162 IFS=$as_save_IFS
13163
13164 fi
13165 fi
13166 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13167 if test -n "$ac_ct_RANLIB"; then
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13169 $as_echo "$ac_ct_RANLIB" >&6; }
13170 else
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172 $as_echo "no" >&6; }
13173 fi
13174
13175 if test "x$ac_ct_RANLIB" = x; then
13176 RANLIB=":"
13177 else
13178 case $cross_compiling:$ac_tool_warned in
13179 yes:)
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13182 ac_tool_warned=yes ;;
13183 esac
13184 RANLIB=$ac_ct_RANLIB
13185 fi
13186 else
13187 RANLIB="$ac_cv_prog_RANLIB"
13188 fi
13189
13190 test -z "$RANLIB" && RANLIB=:
13191
13192
13193
13194
13195
13196
13197 # Determine commands to create old-style static archives.
13198 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13199 old_postinstall_cmds='chmod 644 $oldlib'
13200 old_postuninstall_cmds=
13201
13202 if test -n "$RANLIB"; then
13203 case $host_os in
13204 openbsd*)
13205 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13206 ;;
13207 *)
13208 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13209 ;;
13210 esac
13211 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13212 fi
13213
13214 case $host_os in
13215 darwin*)
13216 lock_old_archive_extraction=yes ;;
13217 *)
13218 lock_old_archive_extraction=no ;;
13219 esac
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259 # If no C compiler was specified, use CC.
13260 LTCC=${LTCC-"$CC"}
13261
13262 # If no C compiler flags were specified, use CFLAGS.
13263 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13264
13265 # Allow CC to be a program name with arguments.
13266 compiler=$CC
13267
13268
13269 # Check for command to grab the raw symbol name followed by C symbol from nm.
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13271 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13272 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13273 $as_echo_n "(cached) " >&6
13274 else
13275
13276 # These are sane defaults that work on at least a few old systems.
13277 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13278
13279 # Character class describing NM global symbol codes.
13280 symcode='[BCDEGRST]'
13281
13282 # Regexp to match symbols that can be accessed directly from C.
13283 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13284
13285 # Define system-specific variables.
13286 case $host_os in
13287 aix*)
13288 symcode='[BCDT]'
13289 ;;
13290 cygwin* | mingw* | pw32* | cegcc*)
13291 symcode='[ABCDGISTW]'
13292 ;;
13293 hpux*)
13294 if test "$host_cpu" = ia64; then
13295 symcode='[ABCDEGRST]'
13296 fi
13297 ;;
13298 irix* | nonstopux*)
13299 symcode='[BCDEGRST]'
13300 ;;
13301 osf*)
13302 symcode='[BCDEGQRST]'
13303 ;;
13304 solaris*)
13305 symcode='[BDRT]'
13306 ;;
13307 sco3.2v5*)
13308 symcode='[DT]'
13309 ;;
13310 sysv4.2uw2*)
13311 symcode='[DT]'
13312 ;;
13313 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13314 symcode='[ABDT]'
13315 ;;
13316 sysv4)
13317 symcode='[DFNSTU]'
13318 ;;
13319 esac
13320
13321 # If we're using GNU nm, then use its standard symbol codes.
13322 case `$NM -V 2>&1` in
13323 *GNU* | *'with BFD'*)
13324 symcode='[ABCDGIRSTW]' ;;
13325 esac
13326
13327 # Transform an extracted symbol line into a proper C declaration.
13328 # Some systems (esp. on ia64) link data and code symbols differently,
13329 # so use this general approach.
13330 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13331
13332 # Transform an extracted symbol line into symbol name and symbol address
13333 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13334 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
13335
13336 # Handle CRLF in mingw tool chain
13337 opt_cr=
13338 case $build_os in
13339 mingw*)
13340 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13341 ;;
13342 esac
13343
13344 # Try without a prefix underscore, then with it.
13345 for ac_symprfx in "" "_"; do
13346
13347 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13348 symxfrm="\\1 $ac_symprfx\\2 \\2"
13349
13350 # Write the raw and C identifiers.
13351 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13352 # Fake it for dumpbin and say T for any non-static function
13353 # and D for any global variable.
13354 # Also find C++ and __fastcall symbols from MSVC++,
13355 # which start with @ or ?.
13356 lt_cv_sys_global_symbol_pipe="$AWK '"\
13357 " {last_section=section; section=\$ 3};"\
13358 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13359 " \$ 0!~/External *\|/{next};"\
13360 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13361 " {if(hide[section]) next};"\
13362 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13363 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13364 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13365 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13366 " ' prfx=^$ac_symprfx"
13367 else
13368 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13369 fi
13370
13371 # Check to see that the pipe works correctly.
13372 pipe_works=no
13373
13374 rm -f conftest*
13375 cat > conftest.$ac_ext <<_LT_EOF
13376 #ifdef __cplusplus
13377 extern "C" {
13378 #endif
13379 char nm_test_var;
13380 void nm_test_func(void);
13381 void nm_test_func(void){}
13382 #ifdef __cplusplus
13383 }
13384 #endif
13385 int main(){nm_test_var='a';nm_test_func();return(0);}
13386 _LT_EOF
13387
13388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13389 (eval $ac_compile) 2>&5
13390 ac_status=$?
13391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13392 test $ac_status = 0; }; then
13393 # Now try to grab the symbols.
13394 nlist=conftest.nm
13395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13396 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13397 ac_status=$?
13398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13399 test $ac_status = 0; } && test -s "$nlist"; then
13400 # Try sorting and uniquifying the output.
13401 if sort "$nlist" | uniq > "$nlist"T; then
13402 mv -f "$nlist"T "$nlist"
13403 else
13404 rm -f "$nlist"T
13405 fi
13406
13407 # Make sure that we snagged all the symbols we need.
13408 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13409 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13410 cat <<_LT_EOF > conftest.$ac_ext
13411 #ifdef __cplusplus
13412 extern "C" {
13413 #endif
13414
13415 _LT_EOF
13416 # Now generate the symbol file.
13417 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13418
13419 cat <<_LT_EOF >> conftest.$ac_ext
13420
13421 /* The mapping between symbol names and symbols. */
13422 const struct {
13423 const char *name;
13424 void *address;
13425 }
13426 lt__PROGRAM__LTX_preloaded_symbols[] =
13427 {
13428 { "@PROGRAM@", (void *) 0 },
13429 _LT_EOF
13430 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13431 cat <<\_LT_EOF >> conftest.$ac_ext
13432 {0, (void *) 0}
13433 };
13434
13435 /* This works around a problem in FreeBSD linker */
13436 #ifdef FREEBSD_WORKAROUND
13437 static const void *lt_preloaded_setup() {
13438 return lt__PROGRAM__LTX_preloaded_symbols;
13439 }
13440 #endif
13441
13442 #ifdef __cplusplus
13443 }
13444 #endif
13445 _LT_EOF
13446 # Now try linking the two files.
13447 mv conftest.$ac_objext conftstm.$ac_objext
13448 lt_save_LIBS="$LIBS"
13449 lt_save_CFLAGS="$CFLAGS"
13450 LIBS="conftstm.$ac_objext"
13451 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13452 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13453 (eval $ac_link) 2>&5
13454 ac_status=$?
13455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13456 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13457 pipe_works=yes
13458 fi
13459 LIBS="$lt_save_LIBS"
13460 CFLAGS="$lt_save_CFLAGS"
13461 else
13462 echo "cannot find nm_test_func in $nlist" >&5
13463 fi
13464 else
13465 echo "cannot find nm_test_var in $nlist" >&5
13466 fi
13467 else
13468 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13469 fi
13470 else
13471 echo "$progname: failed program was:" >&5
13472 cat conftest.$ac_ext >&5
13473 fi
13474 rm -rf conftest* conftst*
13475
13476 # Do not use the global_symbol_pipe unless it works.
13477 if test "$pipe_works" = yes; then
13478 break
13479 else
13480 lt_cv_sys_global_symbol_pipe=
13481 fi
13482 done
13483
13484 fi
13485
13486 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13487 lt_cv_sys_global_symbol_to_cdecl=
13488 fi
13489 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13491 $as_echo "failed" >&6; }
13492 else
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13494 $as_echo "ok" >&6; }
13495 fi
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518 # Check whether --enable-libtool-lock was given.
13519 if test "${enable_libtool_lock+set}" = set; then :
13520 enableval=$enable_libtool_lock;
13521 fi
13522
13523 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13524
13525 # Some flags need to be propagated to the compiler or linker for good
13526 # libtool support.
13527 case $host in
13528 ia64-*-hpux*)
13529 # Find out which ABI we are using.
13530 echo 'int i;' > conftest.$ac_ext
13531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13532 (eval $ac_compile) 2>&5
13533 ac_status=$?
13534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13535 test $ac_status = 0; }; then
13536 case `/usr/bin/file conftest.$ac_objext` in
13537 *ELF-32*)
13538 HPUX_IA64_MODE="32"
13539 ;;
13540 *ELF-64*)
13541 HPUX_IA64_MODE="64"
13542 ;;
13543 esac
13544 fi
13545 rm -rf conftest*
13546 ;;
13547 *-*-irix6*)
13548 # Find out which ABI we are using.
13549 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13551 (eval $ac_compile) 2>&5
13552 ac_status=$?
13553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13554 test $ac_status = 0; }; then
13555 if test "$lt_cv_prog_gnu_ld" = yes; then
13556 case `/usr/bin/file conftest.$ac_objext` in
13557 *32-bit*)
13558 LD="${LD-ld} -melf32bsmip"
13559 ;;
13560 *N32*)
13561 LD="${LD-ld} -melf32bmipn32"
13562 ;;
13563 *64-bit*)
13564 LD="${LD-ld} -melf64bmip"
13565 ;;
13566 esac
13567 else
13568 case `/usr/bin/file conftest.$ac_objext` in
13569 *32-bit*)
13570 LD="${LD-ld} -32"
13571 ;;
13572 *N32*)
13573 LD="${LD-ld} -n32"
13574 ;;
13575 *64-bit*)
13576 LD="${LD-ld} -64"
13577 ;;
13578 esac
13579 fi
13580 fi
13581 rm -rf conftest*
13582 ;;
13583
13584 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13585 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13586 # Find out which ABI we are using.
13587 echo 'int i;' > conftest.$ac_ext
13588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13589 (eval $ac_compile) 2>&5
13590 ac_status=$?
13591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13592 test $ac_status = 0; }; then
13593 case `/usr/bin/file conftest.o` in
13594 *32-bit*)
13595 case $host in
13596 x86_64-*kfreebsd*-gnu)
13597 LD="${LD-ld} -m elf_i386_fbsd"
13598 ;;
13599 x86_64-*linux*)
13600 case `/usr/bin/file conftest.o` in
13601 *x86-64*)
13602 LD="${LD-ld} -m elf32_x86_64"
13603 ;;
13604 *)
13605 LD="${LD-ld} -m elf_i386"
13606 ;;
13607 esac
13608 ;;
13609 ppc64-*linux*|powerpc64-*linux*)
13610 LD="${LD-ld} -m elf32ppclinux"
13611 ;;
13612 s390x-*linux*)
13613 LD="${LD-ld} -m elf_s390"
13614 ;;
13615 sparc64-*linux*)
13616 LD="${LD-ld} -m elf32_sparc"
13617 ;;
13618 esac
13619 ;;
13620 *64-bit*)
13621 case $host in
13622 x86_64-*kfreebsd*-gnu)
13623 LD="${LD-ld} -m elf_x86_64_fbsd"
13624 ;;
13625 x86_64-*linux*)
13626 LD="${LD-ld} -m elf_x86_64"
13627 ;;
13628 ppc*-*linux*|powerpc*-*linux*)
13629 LD="${LD-ld} -m elf64ppc"
13630 ;;
13631 s390*-*linux*|s390*-*tpf*)
13632 LD="${LD-ld} -m elf64_s390"
13633 ;;
13634 sparc*-*linux*)
13635 LD="${LD-ld} -m elf64_sparc"
13636 ;;
13637 esac
13638 ;;
13639 esac
13640 fi
13641 rm -rf conftest*
13642 ;;
13643
13644 *-*-sco3.2v5*)
13645 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13646 SAVE_CFLAGS="$CFLAGS"
13647 CFLAGS="$CFLAGS -belf"
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13649 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13650 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13651 $as_echo_n "(cached) " >&6
13652 else
13653 ac_ext=c
13654 ac_cpp='$CPP $CPPFLAGS'
13655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13658
13659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13660 /* end confdefs.h. */
13661
13662 int
13663 main ()
13664 {
13665
13666 ;
13667 return 0;
13668 }
13669 _ACEOF
13670 if ac_fn_c_try_link "$LINENO"; then :
13671 lt_cv_cc_needs_belf=yes
13672 else
13673 lt_cv_cc_needs_belf=no
13674 fi
13675 rm -f core conftest.err conftest.$ac_objext \
13676 conftest$ac_exeext conftest.$ac_ext
13677 ac_ext=c
13678 ac_cpp='$CPP $CPPFLAGS'
13679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13682
13683 fi
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13685 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13686 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13687 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13688 CFLAGS="$SAVE_CFLAGS"
13689 fi
13690 ;;
13691 sparc*-*solaris*)
13692 # Find out which ABI we are using.
13693 echo 'int i;' > conftest.$ac_ext
13694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13695 (eval $ac_compile) 2>&5
13696 ac_status=$?
13697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13698 test $ac_status = 0; }; then
13699 case `/usr/bin/file conftest.o` in
13700 *64-bit*)
13701 case $lt_cv_prog_gnu_ld in
13702 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13703 *)
13704 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13705 LD="${LD-ld} -64"
13706 fi
13707 ;;
13708 esac
13709 ;;
13710 esac
13711 fi
13712 rm -rf conftest*
13713 ;;
13714 esac
13715
13716 need_locks="$enable_libtool_lock"
13717
13718
13719 case $host_os in
13720 rhapsody* | darwin*)
13721 if test -n "$ac_tool_prefix"; then
13722 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13723 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13725 $as_echo_n "checking for $ac_word... " >&6; }
13726 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13727 $as_echo_n "(cached) " >&6
13728 else
13729 if test -n "$DSYMUTIL"; then
13730 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13731 else
13732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13733 for as_dir in $PATH
13734 do
13735 IFS=$as_save_IFS
13736 test -z "$as_dir" && as_dir=.
13737 for ac_exec_ext in '' $ac_executable_extensions; do
13738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13739 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13741 break 2
13742 fi
13743 done
13744 done
13745 IFS=$as_save_IFS
13746
13747 fi
13748 fi
13749 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13750 if test -n "$DSYMUTIL"; then
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13752 $as_echo "$DSYMUTIL" >&6; }
13753 else
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13755 $as_echo "no" >&6; }
13756 fi
13757
13758
13759 fi
13760 if test -z "$ac_cv_prog_DSYMUTIL"; then
13761 ac_ct_DSYMUTIL=$DSYMUTIL
13762 # Extract the first word of "dsymutil", so it can be a program name with args.
13763 set dummy dsymutil; ac_word=$2
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13765 $as_echo_n "checking for $ac_word... " >&6; }
13766 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13767 $as_echo_n "(cached) " >&6
13768 else
13769 if test -n "$ac_ct_DSYMUTIL"; then
13770 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13771 else
13772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13773 for as_dir in $PATH
13774 do
13775 IFS=$as_save_IFS
13776 test -z "$as_dir" && as_dir=.
13777 for ac_exec_ext in '' $ac_executable_extensions; do
13778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13779 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13781 break 2
13782 fi
13783 done
13784 done
13785 IFS=$as_save_IFS
13786
13787 fi
13788 fi
13789 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13790 if test -n "$ac_ct_DSYMUTIL"; then
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13792 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13793 else
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13795 $as_echo "no" >&6; }
13796 fi
13797
13798 if test "x$ac_ct_DSYMUTIL" = x; then
13799 DSYMUTIL=":"
13800 else
13801 case $cross_compiling:$ac_tool_warned in
13802 yes:)
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13805 ac_tool_warned=yes ;;
13806 esac
13807 DSYMUTIL=$ac_ct_DSYMUTIL
13808 fi
13809 else
13810 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13811 fi
13812
13813 if test -n "$ac_tool_prefix"; then
13814 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13815 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13817 $as_echo_n "checking for $ac_word... " >&6; }
13818 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13819 $as_echo_n "(cached) " >&6
13820 else
13821 if test -n "$NMEDIT"; then
13822 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13823 else
13824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13825 for as_dir in $PATH
13826 do
13827 IFS=$as_save_IFS
13828 test -z "$as_dir" && as_dir=.
13829 for ac_exec_ext in '' $ac_executable_extensions; do
13830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13831 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13833 break 2
13834 fi
13835 done
13836 done
13837 IFS=$as_save_IFS
13838
13839 fi
13840 fi
13841 NMEDIT=$ac_cv_prog_NMEDIT
13842 if test -n "$NMEDIT"; then
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13844 $as_echo "$NMEDIT" >&6; }
13845 else
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13847 $as_echo "no" >&6; }
13848 fi
13849
13850
13851 fi
13852 if test -z "$ac_cv_prog_NMEDIT"; then
13853 ac_ct_NMEDIT=$NMEDIT
13854 # Extract the first word of "nmedit", so it can be a program name with args.
13855 set dummy nmedit; ac_word=$2
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13857 $as_echo_n "checking for $ac_word... " >&6; }
13858 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13859 $as_echo_n "(cached) " >&6
13860 else
13861 if test -n "$ac_ct_NMEDIT"; then
13862 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13863 else
13864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13865 for as_dir in $PATH
13866 do
13867 IFS=$as_save_IFS
13868 test -z "$as_dir" && as_dir=.
13869 for ac_exec_ext in '' $ac_executable_extensions; do
13870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13871 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13873 break 2
13874 fi
13875 done
13876 done
13877 IFS=$as_save_IFS
13878
13879 fi
13880 fi
13881 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13882 if test -n "$ac_ct_NMEDIT"; then
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13884 $as_echo "$ac_ct_NMEDIT" >&6; }
13885 else
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13887 $as_echo "no" >&6; }
13888 fi
13889
13890 if test "x$ac_ct_NMEDIT" = x; then
13891 NMEDIT=":"
13892 else
13893 case $cross_compiling:$ac_tool_warned in
13894 yes:)
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13897 ac_tool_warned=yes ;;
13898 esac
13899 NMEDIT=$ac_ct_NMEDIT
13900 fi
13901 else
13902 NMEDIT="$ac_cv_prog_NMEDIT"
13903 fi
13904
13905 if test -n "$ac_tool_prefix"; then
13906 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13907 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13909 $as_echo_n "checking for $ac_word... " >&6; }
13910 if test "${ac_cv_prog_LIPO+set}" = set; then :
13911 $as_echo_n "(cached) " >&6
13912 else
13913 if test -n "$LIPO"; then
13914 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13915 else
13916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13917 for as_dir in $PATH
13918 do
13919 IFS=$as_save_IFS
13920 test -z "$as_dir" && as_dir=.
13921 for ac_exec_ext in '' $ac_executable_extensions; do
13922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13923 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13925 break 2
13926 fi
13927 done
13928 done
13929 IFS=$as_save_IFS
13930
13931 fi
13932 fi
13933 LIPO=$ac_cv_prog_LIPO
13934 if test -n "$LIPO"; then
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13936 $as_echo "$LIPO" >&6; }
13937 else
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13939 $as_echo "no" >&6; }
13940 fi
13941
13942
13943 fi
13944 if test -z "$ac_cv_prog_LIPO"; then
13945 ac_ct_LIPO=$LIPO
13946 # Extract the first word of "lipo", so it can be a program name with args.
13947 set dummy lipo; ac_word=$2
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13949 $as_echo_n "checking for $ac_word... " >&6; }
13950 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13951 $as_echo_n "(cached) " >&6
13952 else
13953 if test -n "$ac_ct_LIPO"; then
13954 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13955 else
13956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13957 for as_dir in $PATH
13958 do
13959 IFS=$as_save_IFS
13960 test -z "$as_dir" && as_dir=.
13961 for ac_exec_ext in '' $ac_executable_extensions; do
13962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13963 ac_cv_prog_ac_ct_LIPO="lipo"
13964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13965 break 2
13966 fi
13967 done
13968 done
13969 IFS=$as_save_IFS
13970
13971 fi
13972 fi
13973 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13974 if test -n "$ac_ct_LIPO"; then
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13976 $as_echo "$ac_ct_LIPO" >&6; }
13977 else
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13979 $as_echo "no" >&6; }
13980 fi
13981
13982 if test "x$ac_ct_LIPO" = x; then
13983 LIPO=":"
13984 else
13985 case $cross_compiling:$ac_tool_warned in
13986 yes:)
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13989 ac_tool_warned=yes ;;
13990 esac
13991 LIPO=$ac_ct_LIPO
13992 fi
13993 else
13994 LIPO="$ac_cv_prog_LIPO"
13995 fi
13996
13997 if test -n "$ac_tool_prefix"; then
13998 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13999 set dummy ${ac_tool_prefix}otool; ac_word=$2
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14001 $as_echo_n "checking for $ac_word... " >&6; }
14002 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14003 $as_echo_n "(cached) " >&6
14004 else
14005 if test -n "$OTOOL"; then
14006 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14007 else
14008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14009 for as_dir in $PATH
14010 do
14011 IFS=$as_save_IFS
14012 test -z "$as_dir" && as_dir=.
14013 for ac_exec_ext in '' $ac_executable_extensions; do
14014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14015 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14017 break 2
14018 fi
14019 done
14020 done
14021 IFS=$as_save_IFS
14022
14023 fi
14024 fi
14025 OTOOL=$ac_cv_prog_OTOOL
14026 if test -n "$OTOOL"; then
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14028 $as_echo "$OTOOL" >&6; }
14029 else
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14031 $as_echo "no" >&6; }
14032 fi
14033
14034
14035 fi
14036 if test -z "$ac_cv_prog_OTOOL"; then
14037 ac_ct_OTOOL=$OTOOL
14038 # Extract the first word of "otool", so it can be a program name with args.
14039 set dummy otool; ac_word=$2
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14041 $as_echo_n "checking for $ac_word... " >&6; }
14042 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14043 $as_echo_n "(cached) " >&6
14044 else
14045 if test -n "$ac_ct_OTOOL"; then
14046 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14047 else
14048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14049 for as_dir in $PATH
14050 do
14051 IFS=$as_save_IFS
14052 test -z "$as_dir" && as_dir=.
14053 for ac_exec_ext in '' $ac_executable_extensions; do
14054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14055 ac_cv_prog_ac_ct_OTOOL="otool"
14056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14057 break 2
14058 fi
14059 done
14060 done
14061 IFS=$as_save_IFS
14062
14063 fi
14064 fi
14065 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14066 if test -n "$ac_ct_OTOOL"; then
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14068 $as_echo "$ac_ct_OTOOL" >&6; }
14069 else
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14071 $as_echo "no" >&6; }
14072 fi
14073
14074 if test "x$ac_ct_OTOOL" = x; then
14075 OTOOL=":"
14076 else
14077 case $cross_compiling:$ac_tool_warned in
14078 yes:)
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14081 ac_tool_warned=yes ;;
14082 esac
14083 OTOOL=$ac_ct_OTOOL
14084 fi
14085 else
14086 OTOOL="$ac_cv_prog_OTOOL"
14087 fi
14088
14089 if test -n "$ac_tool_prefix"; then
14090 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14091 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14093 $as_echo_n "checking for $ac_word... " >&6; }
14094 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14095 $as_echo_n "(cached) " >&6
14096 else
14097 if test -n "$OTOOL64"; then
14098 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14099 else
14100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14101 for as_dir in $PATH
14102 do
14103 IFS=$as_save_IFS
14104 test -z "$as_dir" && as_dir=.
14105 for ac_exec_ext in '' $ac_executable_extensions; do
14106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14107 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14109 break 2
14110 fi
14111 done
14112 done
14113 IFS=$as_save_IFS
14114
14115 fi
14116 fi
14117 OTOOL64=$ac_cv_prog_OTOOL64
14118 if test -n "$OTOOL64"; then
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14120 $as_echo "$OTOOL64" >&6; }
14121 else
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14123 $as_echo "no" >&6; }
14124 fi
14125
14126
14127 fi
14128 if test -z "$ac_cv_prog_OTOOL64"; then
14129 ac_ct_OTOOL64=$OTOOL64
14130 # Extract the first word of "otool64", so it can be a program name with args.
14131 set dummy otool64; ac_word=$2
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14133 $as_echo_n "checking for $ac_word... " >&6; }
14134 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14135 $as_echo_n "(cached) " >&6
14136 else
14137 if test -n "$ac_ct_OTOOL64"; then
14138 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14139 else
14140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14141 for as_dir in $PATH
14142 do
14143 IFS=$as_save_IFS
14144 test -z "$as_dir" && as_dir=.
14145 for ac_exec_ext in '' $ac_executable_extensions; do
14146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14147 ac_cv_prog_ac_ct_OTOOL64="otool64"
14148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14149 break 2
14150 fi
14151 done
14152 done
14153 IFS=$as_save_IFS
14154
14155 fi
14156 fi
14157 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14158 if test -n "$ac_ct_OTOOL64"; then
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14160 $as_echo "$ac_ct_OTOOL64" >&6; }
14161 else
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14163 $as_echo "no" >&6; }
14164 fi
14165
14166 if test "x$ac_ct_OTOOL64" = x; then
14167 OTOOL64=":"
14168 else
14169 case $cross_compiling:$ac_tool_warned in
14170 yes:)
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14173 ac_tool_warned=yes ;;
14174 esac
14175 OTOOL64=$ac_ct_OTOOL64
14176 fi
14177 else
14178 OTOOL64="$ac_cv_prog_OTOOL64"
14179 fi
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14208 $as_echo_n "checking for -single_module linker flag... " >&6; }
14209 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14210 $as_echo_n "(cached) " >&6
14211 else
14212 lt_cv_apple_cc_single_mod=no
14213 if test -z "${LT_MULTI_MODULE}"; then
14214 # By default we will add the -single_module flag. You can override
14215 # by either setting the environment variable LT_MULTI_MODULE
14216 # non-empty at configure time, or by adding -multi_module to the
14217 # link flags.
14218 rm -rf libconftest.dylib*
14219 echo "int foo(void){return 1;}" > conftest.c
14220 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14221 -dynamiclib -Wl,-single_module conftest.c" >&5
14222 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14223 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14224 _lt_result=$?
14225 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14226 lt_cv_apple_cc_single_mod=yes
14227 else
14228 cat conftest.err >&5
14229 fi
14230 rm -rf libconftest.dylib*
14231 rm -f conftest.*
14232 fi
14233 fi
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14235 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14237 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14238 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14239 $as_echo_n "(cached) " >&6
14240 else
14241 lt_cv_ld_exported_symbols_list=no
14242 save_LDFLAGS=$LDFLAGS
14243 echo "_main" > conftest.sym
14244 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14246 /* end confdefs.h. */
14247
14248 int
14249 main ()
14250 {
14251
14252 ;
14253 return 0;
14254 }
14255 _ACEOF
14256 if ac_fn_c_try_link "$LINENO"; then :
14257 lt_cv_ld_exported_symbols_list=yes
14258 else
14259 lt_cv_ld_exported_symbols_list=no
14260 fi
14261 rm -f core conftest.err conftest.$ac_objext \
14262 conftest$ac_exeext conftest.$ac_ext
14263 LDFLAGS="$save_LDFLAGS"
14264
14265 fi
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14267 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14269 $as_echo_n "checking for -force_load linker flag... " >&6; }
14270 if test "${lt_cv_ld_force_load+set}" = set; then :
14271 $as_echo_n "(cached) " >&6
14272 else
14273 lt_cv_ld_force_load=no
14274 cat > conftest.c << _LT_EOF
14275 int forced_loaded() { return 2;}
14276 _LT_EOF
14277 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14278 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14279 echo "$AR cru libconftest.a conftest.o" >&5
14280 $AR cru libconftest.a conftest.o 2>&5
14281 cat > conftest.c << _LT_EOF
14282 int main() { return 0;}
14283 _LT_EOF
14284 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14285 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14286 _lt_result=$?
14287 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14288 lt_cv_ld_force_load=yes
14289 else
14290 cat conftest.err >&5
14291 fi
14292 rm -f conftest.err libconftest.a conftest conftest.c
14293 rm -rf conftest.dSYM
14294
14295 fi
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14297 $as_echo "$lt_cv_ld_force_load" >&6; }
14298 case $host_os in
14299 rhapsody* | darwin1.[012])
14300 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14301 darwin1.*)
14302 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14303 darwin*) # darwin 5.x on
14304 # if running on 10.5 or later, the deployment target defaults
14305 # to the OS version, if on x86, and 10.4, the deployment
14306 # target defaults to 10.4. Don't you love it?
14307 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14308 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14309 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14310 10.[012]*)
14311 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14312 10.*)
14313 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14314 esac
14315 ;;
14316 esac
14317 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14318 _lt_dar_single_mod='$single_module'
14319 fi
14320 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14321 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14322 else
14323 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14324 fi
14325 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14326 _lt_dsymutil='~$DSYMUTIL $lib || :'
14327 else
14328 _lt_dsymutil=
14329 fi
14330 ;;
14331 esac
14332
14333 for ac_header in dlfcn.h
14334 do :
14335 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14336 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14337 cat >>confdefs.h <<_ACEOF
14338 #define HAVE_DLFCN_H 1
14339 _ACEOF
14340
14341 fi
14342 done
14343
14344
14345
14346
14347
14348 # Set options
14349
14350
14351
14352 enable_dlopen=no
14353
14354
14355 enable_win32_dll=no
14356
14357
14358 # Check whether --enable-shared was given.
14359 if test "${enable_shared+set}" = set; then :
14360 enableval=$enable_shared; p=${PACKAGE-default}
14361 case $enableval in
14362 yes) enable_shared=yes ;;
14363 no) enable_shared=no ;;
14364 *)
14365 enable_shared=no
14366 # Look at the argument we got. We use all the common list separators.
14367 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14368 for pkg in $enableval; do
14369 IFS="$lt_save_ifs"
14370 if test "X$pkg" = "X$p"; then
14371 enable_shared=yes
14372 fi
14373 done
14374 IFS="$lt_save_ifs"
14375 ;;
14376 esac
14377 else
14378 enable_shared=yes
14379 fi
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389 # Check whether --enable-static was given.
14390 if test "${enable_static+set}" = set; then :
14391 enableval=$enable_static; p=${PACKAGE-default}
14392 case $enableval in
14393 yes) enable_static=yes ;;
14394 no) enable_static=no ;;
14395 *)
14396 enable_static=no
14397 # Look at the argument we got. We use all the common list separators.
14398 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14399 for pkg in $enableval; do
14400 IFS="$lt_save_ifs"
14401 if test "X$pkg" = "X$p"; then
14402 enable_static=yes
14403 fi
14404 done
14405 IFS="$lt_save_ifs"
14406 ;;
14407 esac
14408 else
14409 enable_static=yes
14410 fi
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421 # Check whether --with-pic was given.
14422 if test "${with_pic+set}" = set; then :
14423 withval=$with_pic; pic_mode="$withval"
14424 else
14425 pic_mode=default
14426 fi
14427
14428
14429 test -z "$pic_mode" && pic_mode=default
14430
14431
14432
14433
14434
14435
14436
14437 # Check whether --enable-fast-install was given.
14438 if test "${enable_fast_install+set}" = set; then :
14439 enableval=$enable_fast_install; p=${PACKAGE-default}
14440 case $enableval in
14441 yes) enable_fast_install=yes ;;
14442 no) enable_fast_install=no ;;
14443 *)
14444 enable_fast_install=no
14445 # Look at the argument we got. We use all the common list separators.
14446 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14447 for pkg in $enableval; do
14448 IFS="$lt_save_ifs"
14449 if test "X$pkg" = "X$p"; then
14450 enable_fast_install=yes
14451 fi
14452 done
14453 IFS="$lt_save_ifs"
14454 ;;
14455 esac
14456 else
14457 enable_fast_install=yes
14458 fi
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470 # This can be used to rebuild libtool when needed
14471 LIBTOOL_DEPS="$ltmain"
14472
14473 # Always use our own libtool.
14474 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501 test -z "$LN_S" && LN_S="ln -s"
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516 if test -n "${ZSH_VERSION+set}" ; then
14517 setopt NO_GLOB_SUBST
14518 fi
14519
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14521 $as_echo_n "checking for objdir... " >&6; }
14522 if test "${lt_cv_objdir+set}" = set; then :
14523 $as_echo_n "(cached) " >&6
14524 else
14525 rm -f .libs 2>/dev/null
14526 mkdir .libs 2>/dev/null
14527 if test -d .libs; then
14528 lt_cv_objdir=.libs
14529 else
14530 # MS-DOS does not allow filenames that begin with a dot.
14531 lt_cv_objdir=_libs
14532 fi
14533 rmdir .libs 2>/dev/null
14534 fi
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14536 $as_echo "$lt_cv_objdir" >&6; }
14537 objdir=$lt_cv_objdir
14538
14539
14540
14541
14542
14543 cat >>confdefs.h <<_ACEOF
14544 #define LT_OBJDIR "$lt_cv_objdir/"
14545 _ACEOF
14546
14547
14548
14549
14550 case $host_os in
14551 aix3*)
14552 # AIX sometimes has problems with the GCC collect2 program. For some
14553 # reason, if we set the COLLECT_NAMES environment variable, the problems
14554 # vanish in a puff of smoke.
14555 if test "X${COLLECT_NAMES+set}" != Xset; then
14556 COLLECT_NAMES=
14557 export COLLECT_NAMES
14558 fi
14559 ;;
14560 esac
14561
14562 # Global variables:
14563 ofile=libtool
14564 can_build_shared=yes
14565
14566 # All known linkers require a `.a' archive for static linking (except MSVC,
14567 # which needs '.lib').
14568 libext=a
14569
14570 with_gnu_ld="$lt_cv_prog_gnu_ld"
14571
14572 old_CC="$CC"
14573 old_CFLAGS="$CFLAGS"
14574
14575 # Set sane defaults for various variables
14576 test -z "$CC" && CC=cc
14577 test -z "$LTCC" && LTCC=$CC
14578 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14579 test -z "$LD" && LD=ld
14580 test -z "$ac_objext" && ac_objext=o
14581
14582 for cc_temp in $compiler""; do
14583 case $cc_temp in
14584 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14585 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14586 \-*) ;;
14587 *) break;;
14588 esac
14589 done
14590 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14591
14592
14593 # Only perform the check for file, if the check method requires it
14594 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14595 case $deplibs_check_method in
14596 file_magic*)
14597 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14599 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14600 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14601 $as_echo_n "(cached) " >&6
14602 else
14603 case $MAGIC_CMD in
14604 [\\/*] | ?:[\\/]*)
14605 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14606 ;;
14607 *)
14608 lt_save_MAGIC_CMD="$MAGIC_CMD"
14609 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14610 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14611 for ac_dir in $ac_dummy; do
14612 IFS="$lt_save_ifs"
14613 test -z "$ac_dir" && ac_dir=.
14614 if test -f $ac_dir/${ac_tool_prefix}file; then
14615 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14616 if test -n "$file_magic_test_file"; then
14617 case $deplibs_check_method in
14618 "file_magic "*)
14619 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14620 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14621 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14622 $EGREP "$file_magic_regex" > /dev/null; then
14623 :
14624 else
14625 cat <<_LT_EOF 1>&2
14626
14627 *** Warning: the command libtool uses to detect shared libraries,
14628 *** $file_magic_cmd, produces output that libtool cannot recognize.
14629 *** The result is that libtool may fail to recognize shared libraries
14630 *** as such. This will affect the creation of libtool libraries that
14631 *** depend on shared libraries, but programs linked with such libtool
14632 *** libraries will work regardless of this problem. Nevertheless, you
14633 *** may want to report the problem to your system manager and/or to
14634 *** bug-libtool@gnu.org
14635
14636 _LT_EOF
14637 fi ;;
14638 esac
14639 fi
14640 break
14641 fi
14642 done
14643 IFS="$lt_save_ifs"
14644 MAGIC_CMD="$lt_save_MAGIC_CMD"
14645 ;;
14646 esac
14647 fi
14648
14649 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14650 if test -n "$MAGIC_CMD"; then
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14652 $as_echo "$MAGIC_CMD" >&6; }
14653 else
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14655 $as_echo "no" >&6; }
14656 fi
14657
14658
14659
14660
14661
14662 if test -z "$lt_cv_path_MAGIC_CMD"; then
14663 if test -n "$ac_tool_prefix"; then
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14665 $as_echo_n "checking for file... " >&6; }
14666 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14667 $as_echo_n "(cached) " >&6
14668 else
14669 case $MAGIC_CMD in
14670 [\\/*] | ?:[\\/]*)
14671 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14672 ;;
14673 *)
14674 lt_save_MAGIC_CMD="$MAGIC_CMD"
14675 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14676 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14677 for ac_dir in $ac_dummy; do
14678 IFS="$lt_save_ifs"
14679 test -z "$ac_dir" && ac_dir=.
14680 if test -f $ac_dir/file; then
14681 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14682 if test -n "$file_magic_test_file"; then
14683 case $deplibs_check_method in
14684 "file_magic "*)
14685 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14686 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14687 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14688 $EGREP "$file_magic_regex" > /dev/null; then
14689 :
14690 else
14691 cat <<_LT_EOF 1>&2
14692
14693 *** Warning: the command libtool uses to detect shared libraries,
14694 *** $file_magic_cmd, produces output that libtool cannot recognize.
14695 *** The result is that libtool may fail to recognize shared libraries
14696 *** as such. This will affect the creation of libtool libraries that
14697 *** depend on shared libraries, but programs linked with such libtool
14698 *** libraries will work regardless of this problem. Nevertheless, you
14699 *** may want to report the problem to your system manager and/or to
14700 *** bug-libtool@gnu.org
14701
14702 _LT_EOF
14703 fi ;;
14704 esac
14705 fi
14706 break
14707 fi
14708 done
14709 IFS="$lt_save_ifs"
14710 MAGIC_CMD="$lt_save_MAGIC_CMD"
14711 ;;
14712 esac
14713 fi
14714
14715 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14716 if test -n "$MAGIC_CMD"; then
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14718 $as_echo "$MAGIC_CMD" >&6; }
14719 else
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14721 $as_echo "no" >&6; }
14722 fi
14723
14724
14725 else
14726 MAGIC_CMD=:
14727 fi
14728 fi
14729
14730 fi
14731 ;;
14732 esac
14733
14734 # Use C for the default configuration in the libtool script
14735
14736 lt_save_CC="$CC"
14737 ac_ext=c
14738 ac_cpp='$CPP $CPPFLAGS'
14739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14742
14743
14744 # Source file extension for C test sources.
14745 ac_ext=c
14746
14747 # Object file extension for compiled C test sources.
14748 objext=o
14749 objext=$objext
14750
14751 # Code to be used in simple compile tests
14752 lt_simple_compile_test_code="int some_variable = 0;"
14753
14754 # Code to be used in simple link tests
14755 lt_simple_link_test_code='int main(){return(0);}'
14756
14757
14758
14759
14760
14761
14762
14763 # If no C compiler was specified, use CC.
14764 LTCC=${LTCC-"$CC"}
14765
14766 # If no C compiler flags were specified, use CFLAGS.
14767 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14768
14769 # Allow CC to be a program name with arguments.
14770 compiler=$CC
14771
14772 # Save the default compiler, since it gets overwritten when the other
14773 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14774 compiler_DEFAULT=$CC
14775
14776 # save warnings/boilerplate of simple test code
14777 ac_outfile=conftest.$ac_objext
14778 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14779 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14780 _lt_compiler_boilerplate=`cat conftest.err`
14781 $RM conftest*
14782
14783 ac_outfile=conftest.$ac_objext
14784 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14785 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14786 _lt_linker_boilerplate=`cat conftest.err`
14787 $RM -r conftest*
14788
14789
14790 ## CAVEAT EMPTOR:
14791 ## There is no encapsulation within the following macros, do not change
14792 ## the running order or otherwise move them around unless you know exactly
14793 ## what you are doing...
14794 if test -n "$compiler"; then
14795
14796 lt_prog_compiler_no_builtin_flag=
14797
14798 if test "$GCC" = yes; then
14799 case $cc_basename in
14800 nvcc*)
14801 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14802 *)
14803 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14804 esac
14805
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14807 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14808 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14809 $as_echo_n "(cached) " >&6
14810 else
14811 lt_cv_prog_compiler_rtti_exceptions=no
14812 ac_outfile=conftest.$ac_objext
14813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14814 lt_compiler_flag="-fno-rtti -fno-exceptions"
14815 # Insert the option either (1) after the last *FLAGS variable, or
14816 # (2) before a word containing "conftest.", or (3) at the end.
14817 # Note that $ac_compile itself does not contain backslashes and begins
14818 # with a dollar sign (not a hyphen), so the echo should work correctly.
14819 # The option is referenced via a variable to avoid confusing sed.
14820 lt_compile=`echo "$ac_compile" | $SED \
14821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14823 -e 's:$: $lt_compiler_flag:'`
14824 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14825 (eval "$lt_compile" 2>conftest.err)
14826 ac_status=$?
14827 cat conftest.err >&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 if (exit $ac_status) && test -s "$ac_outfile"; then
14830 # The compiler can only warn and ignore the option if not recognized
14831 # So say no if there are warnings other than the usual output.
14832 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14834 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14835 lt_cv_prog_compiler_rtti_exceptions=yes
14836 fi
14837 fi
14838 $RM conftest*
14839
14840 fi
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14842 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14843
14844 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14845 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14846 else
14847 :
14848 fi
14849
14850 fi
14851
14852
14853
14854
14855
14856
14857 lt_prog_compiler_wl=
14858 lt_prog_compiler_pic=
14859 lt_prog_compiler_static=
14860
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14862 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14863
14864 if test "$GCC" = yes; then
14865 lt_prog_compiler_wl='-Wl,'
14866 lt_prog_compiler_static='-static'
14867
14868 case $host_os in
14869 aix*)
14870 # All AIX code is PIC.
14871 if test "$host_cpu" = ia64; then
14872 # AIX 5 now supports IA64 processor
14873 lt_prog_compiler_static='-Bstatic'
14874 fi
14875 lt_prog_compiler_pic='-fPIC'
14876 ;;
14877
14878 amigaos*)
14879 case $host_cpu in
14880 powerpc)
14881 # see comment about AmigaOS4 .so support
14882 lt_prog_compiler_pic='-fPIC'
14883 ;;
14884 m68k)
14885 # FIXME: we need at least 68020 code to build shared libraries, but
14886 # adding the `-m68020' flag to GCC prevents building anything better,
14887 # like `-m68040'.
14888 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14889 ;;
14890 esac
14891 ;;
14892
14893 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14894 # PIC is the default for these OSes.
14895 ;;
14896
14897 mingw* | cygwin* | pw32* | os2* | cegcc*)
14898 # This hack is so that the source file can tell whether it is being
14899 # built for inclusion in a dll (and should export symbols for example).
14900 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14901 # (--disable-auto-import) libraries
14902 lt_prog_compiler_pic='-DDLL_EXPORT'
14903 ;;
14904
14905 darwin* | rhapsody*)
14906 # PIC is the default on this platform
14907 # Common symbols not allowed in MH_DYLIB files
14908 lt_prog_compiler_pic='-fno-common'
14909 ;;
14910
14911 haiku*)
14912 # PIC is the default for Haiku.
14913 # The "-static" flag exists, but is broken.
14914 lt_prog_compiler_static=
14915 ;;
14916
14917 hpux*)
14918 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14919 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14920 # sets the default TLS model and affects inlining.
14921 case $host_cpu in
14922 hppa*64*)
14923 # +Z the default
14924 ;;
14925 *)
14926 lt_prog_compiler_pic='-fPIC'
14927 ;;
14928 esac
14929 ;;
14930
14931 interix[3-9]*)
14932 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14933 # Instead, we relocate shared libraries at runtime.
14934 ;;
14935
14936 msdosdjgpp*)
14937 # Just because we use GCC doesn't mean we suddenly get shared libraries
14938 # on systems that don't support them.
14939 lt_prog_compiler_can_build_shared=no
14940 enable_shared=no
14941 ;;
14942
14943 *nto* | *qnx*)
14944 # QNX uses GNU C++, but need to define -shared option too, otherwise
14945 # it will coredump.
14946 lt_prog_compiler_pic='-fPIC -shared'
14947 ;;
14948
14949 sysv4*MP*)
14950 if test -d /usr/nec; then
14951 lt_prog_compiler_pic=-Kconform_pic
14952 fi
14953 ;;
14954
14955 *)
14956 lt_prog_compiler_pic='-fPIC'
14957 ;;
14958 esac
14959
14960 case $cc_basename in
14961 nvcc*) # Cuda Compiler Driver 2.2
14962 lt_prog_compiler_wl='-Xlinker '
14963 lt_prog_compiler_pic='-Xcompiler -fPIC'
14964 ;;
14965 esac
14966 else
14967 # PORTME Check for flag to pass linker flags through the system compiler.
14968 case $host_os in
14969 aix*)
14970 lt_prog_compiler_wl='-Wl,'
14971 if test "$host_cpu" = ia64; then
14972 # AIX 5 now supports IA64 processor
14973 lt_prog_compiler_static='-Bstatic'
14974 else
14975 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14976 fi
14977 ;;
14978
14979 mingw* | cygwin* | pw32* | os2* | cegcc*)
14980 # This hack is so that the source file can tell whether it is being
14981 # built for inclusion in a dll (and should export symbols for example).
14982 lt_prog_compiler_pic='-DDLL_EXPORT'
14983 ;;
14984
14985 hpux9* | hpux10* | hpux11*)
14986 lt_prog_compiler_wl='-Wl,'
14987 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14988 # not for PA HP-UX.
14989 case $host_cpu in
14990 hppa*64*|ia64*)
14991 # +Z the default
14992 ;;
14993 *)
14994 lt_prog_compiler_pic='+Z'
14995 ;;
14996 esac
14997 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14998 lt_prog_compiler_static='${wl}-a ${wl}archive'
14999 ;;
15000
15001 irix5* | irix6* | nonstopux*)
15002 lt_prog_compiler_wl='-Wl,'
15003 # PIC (with -KPIC) is the default.
15004 lt_prog_compiler_static='-non_shared'
15005 ;;
15006
15007 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15008 case $cc_basename in
15009 # old Intel for x86_64 which still supported -KPIC.
15010 ecc*)
15011 lt_prog_compiler_wl='-Wl,'
15012 lt_prog_compiler_pic='-KPIC'
15013 lt_prog_compiler_static='-static'
15014 ;;
15015 # icc used to be incompatible with GCC.
15016 # ICC 10 doesn't accept -KPIC any more.
15017 icc* | ifort*)
15018 lt_prog_compiler_wl='-Wl,'
15019 lt_prog_compiler_pic='-fPIC'
15020 lt_prog_compiler_static='-static'
15021 ;;
15022 # Lahey Fortran 8.1.
15023 lf95*)
15024 lt_prog_compiler_wl='-Wl,'
15025 lt_prog_compiler_pic='--shared'
15026 lt_prog_compiler_static='--static'
15027 ;;
15028 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15029 # Portland Group compilers (*not* the Pentium gcc compiler,
15030 # which looks to be a dead project)
15031 lt_prog_compiler_wl='-Wl,'
15032 lt_prog_compiler_pic='-fpic'
15033 lt_prog_compiler_static='-Bstatic'
15034 ;;
15035 ccc*)
15036 lt_prog_compiler_wl='-Wl,'
15037 # All Alpha code is PIC.
15038 lt_prog_compiler_static='-non_shared'
15039 ;;
15040 xl* | bgxl* | bgf* | mpixl*)
15041 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15042 lt_prog_compiler_wl='-Wl,'
15043 lt_prog_compiler_pic='-qpic'
15044 lt_prog_compiler_static='-qstaticlink'
15045 ;;
15046 *)
15047 case `$CC -V 2>&1 | sed 5q` in
15048 *Sun\ F* | *Sun*Fortran*)
15049 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15050 lt_prog_compiler_pic='-KPIC'
15051 lt_prog_compiler_static='-Bstatic'
15052 lt_prog_compiler_wl=''
15053 ;;
15054 *Sun\ C*)
15055 # Sun C 5.9
15056 lt_prog_compiler_pic='-KPIC'
15057 lt_prog_compiler_static='-Bstatic'
15058 lt_prog_compiler_wl='-Wl,'
15059 ;;
15060 esac
15061 ;;
15062 esac
15063 ;;
15064
15065 newsos6)
15066 lt_prog_compiler_pic='-KPIC'
15067 lt_prog_compiler_static='-Bstatic'
15068 ;;
15069
15070 *nto* | *qnx*)
15071 # QNX uses GNU C++, but need to define -shared option too, otherwise
15072 # it will coredump.
15073 lt_prog_compiler_pic='-fPIC -shared'
15074 ;;
15075
15076 osf3* | osf4* | osf5*)
15077 lt_prog_compiler_wl='-Wl,'
15078 # All OSF/1 code is PIC.
15079 lt_prog_compiler_static='-non_shared'
15080 ;;
15081
15082 rdos*)
15083 lt_prog_compiler_static='-non_shared'
15084 ;;
15085
15086 solaris*)
15087 lt_prog_compiler_pic='-KPIC'
15088 lt_prog_compiler_static='-Bstatic'
15089 case $cc_basename in
15090 f77* | f90* | f95*)
15091 lt_prog_compiler_wl='-Qoption ld ';;
15092 *)
15093 lt_prog_compiler_wl='-Wl,';;
15094 esac
15095 ;;
15096
15097 sunos4*)
15098 lt_prog_compiler_wl='-Qoption ld '
15099 lt_prog_compiler_pic='-PIC'
15100 lt_prog_compiler_static='-Bstatic'
15101 ;;
15102
15103 sysv4 | sysv4.2uw2* | sysv4.3*)
15104 lt_prog_compiler_wl='-Wl,'
15105 lt_prog_compiler_pic='-KPIC'
15106 lt_prog_compiler_static='-Bstatic'
15107 ;;
15108
15109 sysv4*MP*)
15110 if test -d /usr/nec ;then
15111 lt_prog_compiler_pic='-Kconform_pic'
15112 lt_prog_compiler_static='-Bstatic'
15113 fi
15114 ;;
15115
15116 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15117 lt_prog_compiler_wl='-Wl,'
15118 lt_prog_compiler_pic='-KPIC'
15119 lt_prog_compiler_static='-Bstatic'
15120 ;;
15121
15122 unicos*)
15123 lt_prog_compiler_wl='-Wl,'
15124 lt_prog_compiler_can_build_shared=no
15125 ;;
15126
15127 uts4*)
15128 lt_prog_compiler_pic='-pic'
15129 lt_prog_compiler_static='-Bstatic'
15130 ;;
15131
15132 *)
15133 lt_prog_compiler_can_build_shared=no
15134 ;;
15135 esac
15136 fi
15137
15138 case $host_os in
15139 # For platforms which do not support PIC, -DPIC is meaningless:
15140 *djgpp*)
15141 lt_prog_compiler_pic=
15142 ;;
15143 *)
15144 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15145 ;;
15146 esac
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15148 $as_echo "$lt_prog_compiler_pic" >&6; }
15149
15150
15151
15152
15153
15154
15155 #
15156 # Check to make sure the PIC flag actually works.
15157 #
15158 if test -n "$lt_prog_compiler_pic"; then
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15160 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15161 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15162 $as_echo_n "(cached) " >&6
15163 else
15164 lt_cv_prog_compiler_pic_works=no
15165 ac_outfile=conftest.$ac_objext
15166 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15167 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15168 # Insert the option either (1) after the last *FLAGS variable, or
15169 # (2) before a word containing "conftest.", or (3) at the end.
15170 # Note that $ac_compile itself does not contain backslashes and begins
15171 # with a dollar sign (not a hyphen), so the echo should work correctly.
15172 # The option is referenced via a variable to avoid confusing sed.
15173 lt_compile=`echo "$ac_compile" | $SED \
15174 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15175 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15176 -e 's:$: $lt_compiler_flag:'`
15177 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15178 (eval "$lt_compile" 2>conftest.err)
15179 ac_status=$?
15180 cat conftest.err >&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 if (exit $ac_status) && test -s "$ac_outfile"; then
15183 # The compiler can only warn and ignore the option if not recognized
15184 # So say no if there are warnings other than the usual output.
15185 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15186 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15187 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15188 lt_cv_prog_compiler_pic_works=yes
15189 fi
15190 fi
15191 $RM conftest*
15192
15193 fi
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15195 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15196
15197 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15198 case $lt_prog_compiler_pic in
15199 "" | " "*) ;;
15200 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15201 esac
15202 else
15203 lt_prog_compiler_pic=
15204 lt_prog_compiler_can_build_shared=no
15205 fi
15206
15207 fi
15208
15209
15210
15211
15212
15213
15214 #
15215 # Check to make sure the static flag actually works.
15216 #
15217 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15219 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15220 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15221 $as_echo_n "(cached) " >&6
15222 else
15223 lt_cv_prog_compiler_static_works=no
15224 save_LDFLAGS="$LDFLAGS"
15225 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15226 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15227 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15228 # The linker can only warn and ignore the option if not recognized
15229 # So say no if there are warnings
15230 if test -s conftest.err; then
15231 # Append any errors to the config.log.
15232 cat conftest.err 1>&5
15233 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15234 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15235 if diff conftest.exp conftest.er2 >/dev/null; then
15236 lt_cv_prog_compiler_static_works=yes
15237 fi
15238 else
15239 lt_cv_prog_compiler_static_works=yes
15240 fi
15241 fi
15242 $RM -r conftest*
15243 LDFLAGS="$save_LDFLAGS"
15244
15245 fi
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15247 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15248
15249 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15250 :
15251 else
15252 lt_prog_compiler_static=
15253 fi
15254
15255
15256
15257
15258
15259
15260
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15262 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15263 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15264 $as_echo_n "(cached) " >&6
15265 else
15266 lt_cv_prog_compiler_c_o=no
15267 $RM -r conftest 2>/dev/null
15268 mkdir conftest
15269 cd conftest
15270 mkdir out
15271 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15272
15273 lt_compiler_flag="-o out/conftest2.$ac_objext"
15274 # Insert the option either (1) after the last *FLAGS variable, or
15275 # (2) before a word containing "conftest.", or (3) at the end.
15276 # Note that $ac_compile itself does not contain backslashes and begins
15277 # with a dollar sign (not a hyphen), so the echo should work correctly.
15278 lt_compile=`echo "$ac_compile" | $SED \
15279 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15281 -e 's:$: $lt_compiler_flag:'`
15282 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15283 (eval "$lt_compile" 2>out/conftest.err)
15284 ac_status=$?
15285 cat out/conftest.err >&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15288 then
15289 # The compiler can only warn and ignore the option if not recognized
15290 # So say no if there are warnings
15291 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15292 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15293 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15294 lt_cv_prog_compiler_c_o=yes
15295 fi
15296 fi
15297 chmod u+w . 2>&5
15298 $RM conftest*
15299 # SGI C++ compiler will create directory out/ii_files/ for
15300 # template instantiation
15301 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15302 $RM out/* && rmdir out
15303 cd ..
15304 $RM -r conftest
15305 $RM conftest*
15306
15307 fi
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15309 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15310
15311
15312
15313
15314
15315
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15317 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15318 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15319 $as_echo_n "(cached) " >&6
15320 else
15321 lt_cv_prog_compiler_c_o=no
15322 $RM -r conftest 2>/dev/null
15323 mkdir conftest
15324 cd conftest
15325 mkdir out
15326 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15327
15328 lt_compiler_flag="-o out/conftest2.$ac_objext"
15329 # Insert the option either (1) after the last *FLAGS variable, or
15330 # (2) before a word containing "conftest.", or (3) at the end.
15331 # Note that $ac_compile itself does not contain backslashes and begins
15332 # with a dollar sign (not a hyphen), so the echo should work correctly.
15333 lt_compile=`echo "$ac_compile" | $SED \
15334 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15335 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15336 -e 's:$: $lt_compiler_flag:'`
15337 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15338 (eval "$lt_compile" 2>out/conftest.err)
15339 ac_status=$?
15340 cat out/conftest.err >&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15343 then
15344 # The compiler can only warn and ignore the option if not recognized
15345 # So say no if there are warnings
15346 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15347 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15348 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15349 lt_cv_prog_compiler_c_o=yes
15350 fi
15351 fi
15352 chmod u+w . 2>&5
15353 $RM conftest*
15354 # SGI C++ compiler will create directory out/ii_files/ for
15355 # template instantiation
15356 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15357 $RM out/* && rmdir out
15358 cd ..
15359 $RM -r conftest
15360 $RM conftest*
15361
15362 fi
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15364 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15365
15366
15367
15368
15369 hard_links="nottested"
15370 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15371 # do not overwrite the value of need_locks provided by the user
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15373 $as_echo_n "checking if we can lock with hard links... " >&6; }
15374 hard_links=yes
15375 $RM conftest*
15376 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15377 touch conftest.a
15378 ln conftest.a conftest.b 2>&5 || hard_links=no
15379 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15381 $as_echo "$hard_links" >&6; }
15382 if test "$hard_links" = no; then
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15384 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15385 need_locks=warn
15386 fi
15387 else
15388 need_locks=no
15389 fi
15390
15391
15392
15393
15394
15395
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15397 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15398
15399 runpath_var=
15400 allow_undefined_flag=
15401 always_export_symbols=no
15402 archive_cmds=
15403 archive_expsym_cmds=
15404 compiler_needs_object=no
15405 enable_shared_with_static_runtimes=no
15406 export_dynamic_flag_spec=
15407 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15408 hardcode_automatic=no
15409 hardcode_direct=no
15410 hardcode_direct_absolute=no
15411 hardcode_libdir_flag_spec=
15412 hardcode_libdir_flag_spec_ld=
15413 hardcode_libdir_separator=
15414 hardcode_minus_L=no
15415 hardcode_shlibpath_var=unsupported
15416 inherit_rpath=no
15417 link_all_deplibs=unknown
15418 module_cmds=
15419 module_expsym_cmds=
15420 old_archive_from_new_cmds=
15421 old_archive_from_expsyms_cmds=
15422 thread_safe_flag_spec=
15423 whole_archive_flag_spec=
15424 # include_expsyms should be a list of space-separated symbols to be *always*
15425 # included in the symbol list
15426 include_expsyms=
15427 # exclude_expsyms can be an extended regexp of symbols to exclude
15428 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15429 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15430 # as well as any symbol that contains `d'.
15431 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15432 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15433 # platforms (ab)use it in PIC code, but their linkers get confused if
15434 # the symbol is explicitly referenced. Since portable code cannot
15435 # rely on this symbol name, it's probably fine to never include it in
15436 # preloaded symbol tables.
15437 # Exclude shared library initialization/finalization symbols.
15438 extract_expsyms_cmds=
15439
15440 case $host_os in
15441 cygwin* | mingw* | pw32* | cegcc*)
15442 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15443 # When not using gcc, we currently assume that we are using
15444 # Microsoft Visual C++.
15445 if test "$GCC" != yes; then
15446 with_gnu_ld=no
15447 fi
15448 ;;
15449 interix*)
15450 # we just hope/assume this is gcc and not c89 (= MSVC++)
15451 with_gnu_ld=yes
15452 ;;
15453 openbsd*)
15454 with_gnu_ld=no
15455 ;;
15456 esac
15457
15458 ld_shlibs=yes
15459
15460 # On some targets, GNU ld is compatible enough with the native linker
15461 # that we're better off using the native interface for both.
15462 lt_use_gnu_ld_interface=no
15463 if test "$with_gnu_ld" = yes; then
15464 case $host_os in
15465 aix*)
15466 # The AIX port of GNU ld has always aspired to compatibility
15467 # with the native linker. However, as the warning in the GNU ld
15468 # block says, versions before 2.19.5* couldn't really create working
15469 # shared libraries, regardless of the interface used.
15470 case `$LD -v 2>&1` in
15471 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15472 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15473 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15474 *)
15475 lt_use_gnu_ld_interface=yes
15476 ;;
15477 esac
15478 ;;
15479 *)
15480 lt_use_gnu_ld_interface=yes
15481 ;;
15482 esac
15483 fi
15484
15485 if test "$lt_use_gnu_ld_interface" = yes; then
15486 # If archive_cmds runs LD, not CC, wlarc should be empty
15487 wlarc='${wl}'
15488
15489 # Set some defaults for GNU ld with shared library support. These
15490 # are reset later if shared libraries are not supported. Putting them
15491 # here allows them to be overridden if necessary.
15492 runpath_var=LD_RUN_PATH
15493 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15494 export_dynamic_flag_spec='${wl}--export-dynamic'
15495 # ancient GNU ld didn't support --whole-archive et. al.
15496 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15497 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15498 else
15499 whole_archive_flag_spec=
15500 fi
15501 supports_anon_versioning=no
15502 case `$LD -v 2>&1` in
15503 *GNU\ gold*) supports_anon_versioning=yes ;;
15504 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15505 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15506 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15507 *\ 2.11.*) ;; # other 2.11 versions
15508 *) supports_anon_versioning=yes ;;
15509 esac
15510
15511 # See if GNU ld supports shared libraries.
15512 case $host_os in
15513 aix[3-9]*)
15514 # On AIX/PPC, the GNU linker is very broken
15515 if test "$host_cpu" != ia64; then
15516 ld_shlibs=no
15517 cat <<_LT_EOF 1>&2
15518
15519 *** Warning: the GNU linker, at least up to release 2.19, is reported
15520 *** to be unable to reliably create shared libraries on AIX.
15521 *** Therefore, libtool is disabling shared libraries support. If you
15522 *** really care for shared libraries, you may want to install binutils
15523 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15524 *** You will then need to restart the configuration process.
15525
15526 _LT_EOF
15527 fi
15528 ;;
15529
15530 amigaos*)
15531 case $host_cpu in
15532 powerpc)
15533 # see comment about AmigaOS4 .so support
15534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15535 archive_expsym_cmds=''
15536 ;;
15537 m68k)
15538 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15539 hardcode_libdir_flag_spec='-L$libdir'
15540 hardcode_minus_L=yes
15541 ;;
15542 esac
15543 ;;
15544
15545 beos*)
15546 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15547 allow_undefined_flag=unsupported
15548 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15549 # support --undefined. This deserves some investigation. FIXME
15550 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15551 else
15552 ld_shlibs=no
15553 fi
15554 ;;
15555
15556 cygwin* | mingw* | pw32* | cegcc*)
15557 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15558 # as there is no search path for DLLs.
15559 hardcode_libdir_flag_spec='-L$libdir'
15560 export_dynamic_flag_spec='${wl}--export-all-symbols'
15561 allow_undefined_flag=unsupported
15562 always_export_symbols=no
15563 enable_shared_with_static_runtimes=yes
15564 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15565
15566 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15567 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15568 # If the export-symbols file already is a .def file (1st line
15569 # is EXPORTS), use it as is; otherwise, prepend...
15570 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15571 cp $export_symbols $output_objdir/$soname.def;
15572 else
15573 echo EXPORTS > $output_objdir/$soname.def;
15574 cat $export_symbols >> $output_objdir/$soname.def;
15575 fi~
15576 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15577 else
15578 ld_shlibs=no
15579 fi
15580 ;;
15581
15582 haiku*)
15583 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15584 link_all_deplibs=yes
15585 ;;
15586
15587 interix[3-9]*)
15588 hardcode_direct=no
15589 hardcode_shlibpath_var=no
15590 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15591 export_dynamic_flag_spec='${wl}-E'
15592 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15593 # Instead, shared libraries are loaded at an image base (0x10000000 by
15594 # default) and relocated if they conflict, which is a slow very memory
15595 # consuming and fragmenting process. To avoid this, we pick a random,
15596 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15597 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15598 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15599 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15600 ;;
15601
15602 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15603 tmp_diet=no
15604 if test "$host_os" = linux-dietlibc; then
15605 case $cc_basename in
15606 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15607 esac
15608 fi
15609 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15610 && test "$tmp_diet" = no
15611 then
15612 tmp_addflag=
15613 tmp_sharedflag='-shared'
15614 case $cc_basename,$host_cpu in
15615 pgcc*) # Portland Group C compiler
15616 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15617 tmp_addflag=' $pic_flag'
15618 ;;
15619 pgf77* | pgf90* | pgf95* | pgfortran*)
15620 # Portland Group f77 and f90 compilers
15621 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15622 tmp_addflag=' $pic_flag -Mnomain' ;;
15623 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15624 tmp_addflag=' -i_dynamic' ;;
15625 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15626 tmp_addflag=' -i_dynamic -nofor_main' ;;
15627 ifc* | ifort*) # Intel Fortran compiler
15628 tmp_addflag=' -nofor_main' ;;
15629 lf95*) # Lahey Fortran 8.1
15630 whole_archive_flag_spec=
15631 tmp_sharedflag='--shared' ;;
15632 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15633 tmp_sharedflag='-qmkshrobj'
15634 tmp_addflag= ;;
15635 nvcc*) # Cuda Compiler Driver 2.2
15636 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15637 compiler_needs_object=yes
15638 ;;
15639 esac
15640 case `$CC -V 2>&1 | sed 5q` in
15641 *Sun\ C*) # Sun C 5.9
15642 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15643 compiler_needs_object=yes
15644 tmp_sharedflag='-G' ;;
15645 *Sun\ F*) # Sun Fortran 8.3
15646 tmp_sharedflag='-G' ;;
15647 esac
15648 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15649
15650 if test "x$supports_anon_versioning" = xyes; then
15651 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15652 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15653 echo "local: *; };" >> $output_objdir/$libname.ver~
15654 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15655 fi
15656
15657 case $cc_basename in
15658 xlf* | bgf* | bgxlf* | mpixlf*)
15659 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15660 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15661 hardcode_libdir_flag_spec=
15662 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15663 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15664 if test "x$supports_anon_versioning" = xyes; then
15665 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15666 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15667 echo "local: *; };" >> $output_objdir/$libname.ver~
15668 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15669 fi
15670 ;;
15671 esac
15672 else
15673 ld_shlibs=no
15674 fi
15675 ;;
15676
15677 netbsd*)
15678 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15679 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15680 wlarc=
15681 else
15682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15683 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15684 fi
15685 ;;
15686
15687 solaris*)
15688 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15689 ld_shlibs=no
15690 cat <<_LT_EOF 1>&2
15691
15692 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15693 *** create shared libraries on Solaris systems. Therefore, libtool
15694 *** is disabling shared libraries support. We urge you to upgrade GNU
15695 *** binutils to release 2.9.1 or newer. Another option is to modify
15696 *** your PATH or compiler configuration so that the native linker is
15697 *** used, and then restart.
15698
15699 _LT_EOF
15700 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15701 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15702 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15703 else
15704 ld_shlibs=no
15705 fi
15706 ;;
15707
15708 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15709 case `$LD -v 2>&1` in
15710 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15711 ld_shlibs=no
15712 cat <<_LT_EOF 1>&2
15713
15714 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15715 *** reliably create shared libraries on SCO systems. Therefore, libtool
15716 *** is disabling shared libraries support. We urge you to upgrade GNU
15717 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15718 *** your PATH or compiler configuration so that the native linker is
15719 *** used, and then restart.
15720
15721 _LT_EOF
15722 ;;
15723 *)
15724 # For security reasons, it is highly recommended that you always
15725 # use absolute paths for naming shared libraries, and exclude the
15726 # DT_RUNPATH tag from executables and libraries. But doing so
15727 # requires that you compile everything twice, which is a pain.
15728 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15729 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15731 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15732 else
15733 ld_shlibs=no
15734 fi
15735 ;;
15736 esac
15737 ;;
15738
15739 sunos4*)
15740 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15741 wlarc=
15742 hardcode_direct=yes
15743 hardcode_shlibpath_var=no
15744 ;;
15745
15746 *)
15747 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15748 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15749 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15750 else
15751 ld_shlibs=no
15752 fi
15753 ;;
15754 esac
15755
15756 if test "$ld_shlibs" = no; then
15757 runpath_var=
15758 hardcode_libdir_flag_spec=
15759 export_dynamic_flag_spec=
15760 whole_archive_flag_spec=
15761 fi
15762 else
15763 # PORTME fill in a description of your system's linker (not GNU ld)
15764 case $host_os in
15765 aix3*)
15766 allow_undefined_flag=unsupported
15767 always_export_symbols=yes
15768 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15769 # Note: this linker hardcodes the directories in LIBPATH if there
15770 # are no directories specified by -L.
15771 hardcode_minus_L=yes
15772 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15773 # Neither direct hardcoding nor static linking is supported with a
15774 # broken collect2.
15775 hardcode_direct=unsupported
15776 fi
15777 ;;
15778
15779 aix[4-9]*)
15780 if test "$host_cpu" = ia64; then
15781 # On IA64, the linker does run time linking by default, so we don't
15782 # have to do anything special.
15783 aix_use_runtimelinking=no
15784 exp_sym_flag='-Bexport'
15785 no_entry_flag=""
15786 else
15787 # If we're using GNU nm, then we don't want the "-C" option.
15788 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15789 # Also, AIX nm treats weak defined symbols like other global
15790 # defined symbols, whereas GNU nm marks them as "W".
15791 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15792 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15793 else
15794 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15795 fi
15796 aix_use_runtimelinking=no
15797
15798 # Test if we are trying to use run time linking or normal
15799 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15800 # need to do runtime linking.
15801 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15802 for ld_flag in $LDFLAGS; do
15803 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15804 aix_use_runtimelinking=yes
15805 break
15806 fi
15807 done
15808 ;;
15809 esac
15810
15811 exp_sym_flag='-bexport'
15812 no_entry_flag='-bnoentry'
15813 fi
15814
15815 # When large executables or shared objects are built, AIX ld can
15816 # have problems creating the table of contents. If linking a library
15817 # or program results in "error TOC overflow" add -mminimal-toc to
15818 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15819 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15820
15821 archive_cmds=''
15822 hardcode_direct=yes
15823 hardcode_direct_absolute=yes
15824 hardcode_libdir_separator=':'
15825 link_all_deplibs=yes
15826 file_list_spec='${wl}-f,'
15827
15828 if test "$GCC" = yes; then
15829 case $host_os in aix4.[012]|aix4.[012].*)
15830 # We only want to do this on AIX 4.2 and lower, the check
15831 # below for broken collect2 doesn't work under 4.3+
15832 collect2name=`${CC} -print-prog-name=collect2`
15833 if test -f "$collect2name" &&
15834 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15835 then
15836 # We have reworked collect2
15837 :
15838 else
15839 # We have old collect2
15840 hardcode_direct=unsupported
15841 # It fails to find uninstalled libraries when the uninstalled
15842 # path is not listed in the libpath. Setting hardcode_minus_L
15843 # to unsupported forces relinking
15844 hardcode_minus_L=yes
15845 hardcode_libdir_flag_spec='-L$libdir'
15846 hardcode_libdir_separator=
15847 fi
15848 ;;
15849 esac
15850 shared_flag='-shared'
15851 if test "$aix_use_runtimelinking" = yes; then
15852 shared_flag="$shared_flag "'${wl}-G'
15853 fi
15854 else
15855 # not using gcc
15856 if test "$host_cpu" = ia64; then
15857 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15858 # chokes on -Wl,-G. The following line is correct:
15859 shared_flag='-G'
15860 else
15861 if test "$aix_use_runtimelinking" = yes; then
15862 shared_flag='${wl}-G'
15863 else
15864 shared_flag='${wl}-bM:SRE'
15865 fi
15866 fi
15867 fi
15868
15869 export_dynamic_flag_spec='${wl}-bexpall'
15870 # It seems that -bexpall does not export symbols beginning with
15871 # underscore (_), so it is better to generate a list of symbols to export.
15872 always_export_symbols=yes
15873 if test "$aix_use_runtimelinking" = yes; then
15874 # Warning - without using the other runtime loading flags (-brtl),
15875 # -berok will link without error, but may produce a broken library.
15876 allow_undefined_flag='-berok'
15877 # Determine the default libpath from the value encoded in an
15878 # empty executable.
15879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15880 /* end confdefs.h. */
15881
15882 int
15883 main ()
15884 {
15885
15886 ;
15887 return 0;
15888 }
15889 _ACEOF
15890 if ac_fn_c_try_link "$LINENO"; then :
15891
15892 lt_aix_libpath_sed='
15893 /Import File Strings/,/^$/ {
15894 /^0/ {
15895 s/^0 *\(.*\)$/\1/
15896 p
15897 }
15898 }'
15899 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15900 # Check for a 64-bit object if we didn't find anything.
15901 if test -z "$aix_libpath"; then
15902 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15903 fi
15904 fi
15905 rm -f core conftest.err conftest.$ac_objext \
15906 conftest$ac_exeext conftest.$ac_ext
15907 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15908
15909 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15910 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15911 else
15912 if test "$host_cpu" = ia64; then
15913 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15914 allow_undefined_flag="-z nodefs"
15915 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15916 else
15917 # Determine the default libpath from the value encoded in an
15918 # empty executable.
15919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15920 /* end confdefs.h. */
15921
15922 int
15923 main ()
15924 {
15925
15926 ;
15927 return 0;
15928 }
15929 _ACEOF
15930 if ac_fn_c_try_link "$LINENO"; then :
15931
15932 lt_aix_libpath_sed='
15933 /Import File Strings/,/^$/ {
15934 /^0/ {
15935 s/^0 *\(.*\)$/\1/
15936 p
15937 }
15938 }'
15939 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15940 # Check for a 64-bit object if we didn't find anything.
15941 if test -z "$aix_libpath"; then
15942 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15943 fi
15944 fi
15945 rm -f core conftest.err conftest.$ac_objext \
15946 conftest$ac_exeext conftest.$ac_ext
15947 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15948
15949 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15950 # Warning - without using the other run time loading flags,
15951 # -berok will link without error, but may produce a broken library.
15952 no_undefined_flag=' ${wl}-bernotok'
15953 allow_undefined_flag=' ${wl}-berok'
15954 if test "$with_gnu_ld" = yes; then
15955 # We only use this code for GNU lds that support --whole-archive.
15956 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15957 else
15958 # Exported symbols can be pulled into shared objects from archives
15959 whole_archive_flag_spec='$convenience'
15960 fi
15961 archive_cmds_need_lc=yes
15962 # This is similar to how AIX traditionally builds its shared libraries.
15963 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15964 fi
15965 fi
15966 ;;
15967
15968 amigaos*)
15969 case $host_cpu in
15970 powerpc)
15971 # see comment about AmigaOS4 .so support
15972 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15973 archive_expsym_cmds=''
15974 ;;
15975 m68k)
15976 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15977 hardcode_libdir_flag_spec='-L$libdir'
15978 hardcode_minus_L=yes
15979 ;;
15980 esac
15981 ;;
15982
15983 bsdi[45]*)
15984 export_dynamic_flag_spec=-rdynamic
15985 ;;
15986
15987 cygwin* | mingw* | pw32* | cegcc*)
15988 # When not using gcc, we currently assume that we are using
15989 # Microsoft Visual C++.
15990 # hardcode_libdir_flag_spec is actually meaningless, as there is
15991 # no search path for DLLs.
15992 hardcode_libdir_flag_spec=' '
15993 allow_undefined_flag=unsupported
15994 # Tell ltmain to make .lib files, not .a files.
15995 libext=lib
15996 # Tell ltmain to make .dll files, not .so files.
15997 shrext_cmds=".dll"
15998 # FIXME: Setting linknames here is a bad hack.
15999 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16000 # The linker will automatically build a .lib file if we build a DLL.
16001 old_archive_from_new_cmds='true'
16002 # FIXME: Should let the user specify the lib program.
16003 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16004 fix_srcfile_path='`cygpath -w "$srcfile"`'
16005 enable_shared_with_static_runtimes=yes
16006 ;;
16007
16008 darwin* | rhapsody*)
16009
16010
16011 archive_cmds_need_lc=no
16012 hardcode_direct=no
16013 hardcode_automatic=yes
16014 hardcode_shlibpath_var=unsupported
16015 if test "$lt_cv_ld_force_load" = "yes"; then
16016 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
16017 else
16018 whole_archive_flag_spec=''
16019 fi
16020 link_all_deplibs=yes
16021 allow_undefined_flag="$_lt_dar_allow_undefined"
16022 case $cc_basename in
16023 ifort*) _lt_dar_can_shared=yes ;;
16024 *) _lt_dar_can_shared=$GCC ;;
16025 esac
16026 if test "$_lt_dar_can_shared" = "yes"; then
16027 output_verbose_link_cmd=func_echo_all
16028 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16029 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16030 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
16031 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
16032
16033 else
16034 ld_shlibs=no
16035 fi
16036
16037 ;;
16038
16039 dgux*)
16040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16041 hardcode_libdir_flag_spec='-L$libdir'
16042 hardcode_shlibpath_var=no
16043 ;;
16044
16045 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16046 # support. Future versions do this automatically, but an explicit c++rt0.o
16047 # does not break anything, and helps significantly (at the cost of a little
16048 # extra space).
16049 freebsd2.2*)
16050 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16051 hardcode_libdir_flag_spec='-R$libdir'
16052 hardcode_direct=yes
16053 hardcode_shlibpath_var=no
16054 ;;
16055
16056 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16057 freebsd2.*)
16058 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16059 hardcode_direct=yes
16060 hardcode_minus_L=yes
16061 hardcode_shlibpath_var=no
16062 ;;
16063
16064 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16065 freebsd* | dragonfly*)
16066 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16067 hardcode_libdir_flag_spec='-R$libdir'
16068 hardcode_direct=yes
16069 hardcode_shlibpath_var=no
16070 ;;
16071
16072 hpux9*)
16073 if test "$GCC" = yes; then
16074 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16075 else
16076 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16077 fi
16078 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16079 hardcode_libdir_separator=:
16080 hardcode_direct=yes
16081
16082 # hardcode_minus_L: Not really in the search PATH,
16083 # but as the default location of the library.
16084 hardcode_minus_L=yes
16085 export_dynamic_flag_spec='${wl}-E'
16086 ;;
16087
16088 hpux10*)
16089 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16090 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16091 else
16092 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16093 fi
16094 if test "$with_gnu_ld" = no; then
16095 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16096 hardcode_libdir_flag_spec_ld='+b $libdir'
16097 hardcode_libdir_separator=:
16098 hardcode_direct=yes
16099 hardcode_direct_absolute=yes
16100 export_dynamic_flag_spec='${wl}-E'
16101 # hardcode_minus_L: Not really in the search PATH,
16102 # but as the default location of the library.
16103 hardcode_minus_L=yes
16104 fi
16105 ;;
16106
16107 hpux11*)
16108 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16109 case $host_cpu in
16110 hppa*64*)
16111 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16112 ;;
16113 ia64*)
16114 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16115 ;;
16116 *)
16117 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16118 ;;
16119 esac
16120 else
16121 case $host_cpu in
16122 hppa*64*)
16123 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16124 ;;
16125 ia64*)
16126 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16127 ;;
16128 *)
16129
16130 # Older versions of the 11.00 compiler do not understand -b yet
16131 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16133 $as_echo_n "checking if $CC understands -b... " >&6; }
16134 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16135 $as_echo_n "(cached) " >&6
16136 else
16137 lt_cv_prog_compiler__b=no
16138 save_LDFLAGS="$LDFLAGS"
16139 LDFLAGS="$LDFLAGS -b"
16140 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16141 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16142 # The linker can only warn and ignore the option if not recognized
16143 # So say no if there are warnings
16144 if test -s conftest.err; then
16145 # Append any errors to the config.log.
16146 cat conftest.err 1>&5
16147 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16149 if diff conftest.exp conftest.er2 >/dev/null; then
16150 lt_cv_prog_compiler__b=yes
16151 fi
16152 else
16153 lt_cv_prog_compiler__b=yes
16154 fi
16155 fi
16156 $RM -r conftest*
16157 LDFLAGS="$save_LDFLAGS"
16158
16159 fi
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16161 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16162
16163 if test x"$lt_cv_prog_compiler__b" = xyes; then
16164 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16165 else
16166 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16167 fi
16168
16169 ;;
16170 esac
16171 fi
16172 if test "$with_gnu_ld" = no; then
16173 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16174 hardcode_libdir_separator=:
16175
16176 case $host_cpu in
16177 hppa*64*|ia64*)
16178 hardcode_direct=no
16179 hardcode_shlibpath_var=no
16180 ;;
16181 *)
16182 hardcode_direct=yes
16183 hardcode_direct_absolute=yes
16184 export_dynamic_flag_spec='${wl}-E'
16185
16186 # hardcode_minus_L: Not really in the search PATH,
16187 # but as the default location of the library.
16188 hardcode_minus_L=yes
16189 ;;
16190 esac
16191 fi
16192 ;;
16193
16194 irix5* | irix6* | nonstopux*)
16195 if test "$GCC" = yes; then
16196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16197 # Try to use the -exported_symbol ld option, if it does not
16198 # work, assume that -exports_file does not work either and
16199 # implicitly export all symbols.
16200 save_LDFLAGS="$LDFLAGS"
16201 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16203 /* end confdefs.h. */
16204 int foo(void) {}
16205 _ACEOF
16206 if ac_fn_c_try_link "$LINENO"; then :
16207 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
16208
16209 fi
16210 rm -f core conftest.err conftest.$ac_objext \
16211 conftest$ac_exeext conftest.$ac_ext
16212 LDFLAGS="$save_LDFLAGS"
16213 else
16214 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16215 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
16216 fi
16217 archive_cmds_need_lc='no'
16218 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16219 hardcode_libdir_separator=:
16220 inherit_rpath=yes
16221 link_all_deplibs=yes
16222 ;;
16223
16224 netbsd*)
16225 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16226 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16227 else
16228 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16229 fi
16230 hardcode_libdir_flag_spec='-R$libdir'
16231 hardcode_direct=yes
16232 hardcode_shlibpath_var=no
16233 ;;
16234
16235 newsos6)
16236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16237 hardcode_direct=yes
16238 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16239 hardcode_libdir_separator=:
16240 hardcode_shlibpath_var=no
16241 ;;
16242
16243 *nto* | *qnx*)
16244 ;;
16245
16246 openbsd*)
16247 if test -f /usr/libexec/ld.so; then
16248 hardcode_direct=yes
16249 hardcode_shlibpath_var=no
16250 hardcode_direct_absolute=yes
16251 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16252 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16253 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16254 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16255 export_dynamic_flag_spec='${wl}-E'
16256 else
16257 case $host_os in
16258 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16259 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16260 hardcode_libdir_flag_spec='-R$libdir'
16261 ;;
16262 *)
16263 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16264 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16265 ;;
16266 esac
16267 fi
16268 else
16269 ld_shlibs=no
16270 fi
16271 ;;
16272
16273 os2*)
16274 hardcode_libdir_flag_spec='-L$libdir'
16275 hardcode_minus_L=yes
16276 allow_undefined_flag=unsupported
16277 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16278 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16279 ;;
16280
16281 osf3*)
16282 if test "$GCC" = yes; then
16283 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16284 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16285 else
16286 allow_undefined_flag=' -expect_unresolved \*'
16287 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16288 fi
16289 archive_cmds_need_lc='no'
16290 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16291 hardcode_libdir_separator=:
16292 ;;
16293
16294 osf4* | osf5*) # as osf3* with the addition of -msym flag
16295 if test "$GCC" = yes; then
16296 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16297 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16298 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16299 else
16300 allow_undefined_flag=' -expect_unresolved \*'
16301 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16302 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
16303 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
16304
16305 # Both c and cxx compiler support -rpath directly
16306 hardcode_libdir_flag_spec='-rpath $libdir'
16307 fi
16308 archive_cmds_need_lc='no'
16309 hardcode_libdir_separator=:
16310 ;;
16311
16312 solaris*)
16313 no_undefined_flag=' -z defs'
16314 if test "$GCC" = yes; then
16315 wlarc='${wl}'
16316 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16317 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16318 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16319 else
16320 case `$CC -V 2>&1` in
16321 *"Compilers 5.0"*)
16322 wlarc=''
16323 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16324 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16325 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16326 ;;
16327 *)
16328 wlarc='${wl}'
16329 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16330 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16331 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16332 ;;
16333 esac
16334 fi
16335 hardcode_libdir_flag_spec='-R$libdir'
16336 hardcode_shlibpath_var=no
16337 case $host_os in
16338 solaris2.[0-5] | solaris2.[0-5].*) ;;
16339 *)
16340 # The compiler driver will combine and reorder linker options,
16341 # but understands `-z linker_flag'. GCC discards it without `$wl',
16342 # but is careful enough not to reorder.
16343 # Supported since Solaris 2.6 (maybe 2.5.1?)
16344 if test "$GCC" = yes; then
16345 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16346 else
16347 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16348 fi
16349 ;;
16350 esac
16351 link_all_deplibs=yes
16352 ;;
16353
16354 sunos4*)
16355 if test "x$host_vendor" = xsequent; then
16356 # Use $CC to link under sequent, because it throws in some extra .o
16357 # files that make .init and .fini sections work.
16358 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16359 else
16360 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16361 fi
16362 hardcode_libdir_flag_spec='-L$libdir'
16363 hardcode_direct=yes
16364 hardcode_minus_L=yes
16365 hardcode_shlibpath_var=no
16366 ;;
16367
16368 sysv4)
16369 case $host_vendor in
16370 sni)
16371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16372 hardcode_direct=yes # is this really true???
16373 ;;
16374 siemens)
16375 ## LD is ld it makes a PLAMLIB
16376 ## CC just makes a GrossModule.
16377 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16378 reload_cmds='$CC -r -o $output$reload_objs'
16379 hardcode_direct=no
16380 ;;
16381 motorola)
16382 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16383 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16384 ;;
16385 esac
16386 runpath_var='LD_RUN_PATH'
16387 hardcode_shlibpath_var=no
16388 ;;
16389
16390 sysv4.3*)
16391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16392 hardcode_shlibpath_var=no
16393 export_dynamic_flag_spec='-Bexport'
16394 ;;
16395
16396 sysv4*MP*)
16397 if test -d /usr/nec; then
16398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16399 hardcode_shlibpath_var=no
16400 runpath_var=LD_RUN_PATH
16401 hardcode_runpath_var=yes
16402 ld_shlibs=yes
16403 fi
16404 ;;
16405
16406 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16407 no_undefined_flag='${wl}-z,text'
16408 archive_cmds_need_lc=no
16409 hardcode_shlibpath_var=no
16410 runpath_var='LD_RUN_PATH'
16411
16412 if test "$GCC" = yes; then
16413 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16414 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16415 else
16416 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16417 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16418 fi
16419 ;;
16420
16421 sysv5* | sco3.2v5* | sco5v6*)
16422 # Note: We can NOT use -z defs as we might desire, because we do not
16423 # link with -lc, and that would cause any symbols used from libc to
16424 # always be unresolved, which means just about no library would
16425 # ever link correctly. If we're not using GNU ld we use -z text
16426 # though, which does catch some bad symbols but isn't as heavy-handed
16427 # as -z defs.
16428 no_undefined_flag='${wl}-z,text'
16429 allow_undefined_flag='${wl}-z,nodefs'
16430 archive_cmds_need_lc=no
16431 hardcode_shlibpath_var=no
16432 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16433 hardcode_libdir_separator=':'
16434 link_all_deplibs=yes
16435 export_dynamic_flag_spec='${wl}-Bexport'
16436 runpath_var='LD_RUN_PATH'
16437
16438 if test "$GCC" = yes; then
16439 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16440 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16441 else
16442 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16443 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16444 fi
16445 ;;
16446
16447 uts4*)
16448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16449 hardcode_libdir_flag_spec='-L$libdir'
16450 hardcode_shlibpath_var=no
16451 ;;
16452
16453 *)
16454 ld_shlibs=no
16455 ;;
16456 esac
16457
16458 if test x$host_vendor = xsni; then
16459 case $host in
16460 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16461 export_dynamic_flag_spec='${wl}-Blargedynsym'
16462 ;;
16463 esac
16464 fi
16465 fi
16466
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16468 $as_echo "$ld_shlibs" >&6; }
16469 test "$ld_shlibs" = no && can_build_shared=no
16470
16471 with_gnu_ld=$with_gnu_ld
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487 #
16488 # Do we need to explicitly link libc?
16489 #
16490 case "x$archive_cmds_need_lc" in
16491 x|xyes)
16492 # Assume -lc should be added
16493 archive_cmds_need_lc=yes
16494
16495 if test "$enable_shared" = yes && test "$GCC" = yes; then
16496 case $archive_cmds in
16497 *'~'*)
16498 # FIXME: we may have to deal with multi-command sequences.
16499 ;;
16500 '$CC '*)
16501 # Test whether the compiler implicitly links with -lc since on some
16502 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16503 # to ld, don't add -lc before -lgcc.
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16505 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16506 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16507 $as_echo_n "(cached) " >&6
16508 else
16509 $RM conftest*
16510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16511
16512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16513 (eval $ac_compile) 2>&5
16514 ac_status=$?
16515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16516 test $ac_status = 0; } 2>conftest.err; then
16517 soname=conftest
16518 lib=conftest
16519 libobjs=conftest.$ac_objext
16520 deplibs=
16521 wl=$lt_prog_compiler_wl
16522 pic_flag=$lt_prog_compiler_pic
16523 compiler_flags=-v
16524 linker_flags=-v
16525 verstring=
16526 output_objdir=.
16527 libname=conftest
16528 lt_save_allow_undefined_flag=$allow_undefined_flag
16529 allow_undefined_flag=
16530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16531 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16532 ac_status=$?
16533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16534 test $ac_status = 0; }
16535 then
16536 lt_cv_archive_cmds_need_lc=no
16537 else
16538 lt_cv_archive_cmds_need_lc=yes
16539 fi
16540 allow_undefined_flag=$lt_save_allow_undefined_flag
16541 else
16542 cat conftest.err 1>&5
16543 fi
16544 $RM conftest*
16545
16546 fi
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16548 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16549 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16550 ;;
16551 esac
16552 fi
16553 ;;
16554 esac
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16713 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16714
16715 if test "$GCC" = yes; then
16716 case $host_os in
16717 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16718 *) lt_awk_arg="/^libraries:/" ;;
16719 esac
16720 case $host_os in
16721 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16722 *) lt_sed_strip_eq="s,=/,/,g" ;;
16723 esac
16724 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16725 case $lt_search_path_spec in
16726 *\;*)
16727 # if the path contains ";" then we assume it to be the separator
16728 # otherwise default to the standard path separator (i.e. ":") - it is
16729 # assumed that no part of a normal pathname contains ";" but that should
16730 # okay in the real world where ";" in dirpaths is itself problematic.
16731 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16732 ;;
16733 *)
16734 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16735 ;;
16736 esac
16737 # Ok, now we have the path, separated by spaces, we can step through it
16738 # and add multilib dir if necessary.
16739 lt_tmp_lt_search_path_spec=
16740 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16741 for lt_sys_path in $lt_search_path_spec; do
16742 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16743 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16744 else
16745 test -d "$lt_sys_path" && \
16746 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16747 fi
16748 done
16749 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16750 BEGIN {RS=" "; FS="/|\n";} {
16751 lt_foo="";
16752 lt_count=0;
16753 for (lt_i = NF; lt_i > 0; lt_i--) {
16754 if ($lt_i != "" && $lt_i != ".") {
16755 if ($lt_i == "..") {
16756 lt_count++;
16757 } else {
16758 if (lt_count == 0) {
16759 lt_foo="/" $lt_i lt_foo;
16760 } else {
16761 lt_count--;
16762 }
16763 }
16764 }
16765 }
16766 if (lt_foo != "") { lt_freq[lt_foo]++; }
16767 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16768 }'`
16769 # AWK program above erroneously prepends '/' to C:/dos/paths
16770 # for these hosts.
16771 case $host_os in
16772 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16773 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16774 esac
16775 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16776 else
16777 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16778 fi
16779 library_names_spec=
16780 libname_spec='lib$name'
16781 soname_spec=
16782 shrext_cmds=".so"
16783 postinstall_cmds=
16784 postuninstall_cmds=
16785 finish_cmds=
16786 finish_eval=
16787 shlibpath_var=
16788 shlibpath_overrides_runpath=unknown
16789 version_type=none
16790 dynamic_linker="$host_os ld.so"
16791 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16792 need_lib_prefix=unknown
16793 hardcode_into_libs=no
16794
16795 # when you set need_version to no, make sure it does not cause -set_version
16796 # flags to be left without arguments
16797 need_version=unknown
16798
16799 case $host_os in
16800 aix3*)
16801 version_type=linux
16802 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16803 shlibpath_var=LIBPATH
16804
16805 # AIX 3 has no versioning support, so we append a major version to the name.
16806 soname_spec='${libname}${release}${shared_ext}$major'
16807 ;;
16808
16809 aix[4-9]*)
16810 version_type=linux
16811 need_lib_prefix=no
16812 need_version=no
16813 hardcode_into_libs=yes
16814 if test "$host_cpu" = ia64; then
16815 # AIX 5 supports IA64
16816 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16817 shlibpath_var=LD_LIBRARY_PATH
16818 else
16819 # With GCC up to 2.95.x, collect2 would create an import file
16820 # for dependence libraries. The import file would start with
16821 # the line `#! .'. This would cause the generated library to
16822 # depend on `.', always an invalid library. This was fixed in
16823 # development snapshots of GCC prior to 3.0.
16824 case $host_os in
16825 aix4 | aix4.[01] | aix4.[01].*)
16826 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16827 echo ' yes '
16828 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16829 :
16830 else
16831 can_build_shared=no
16832 fi
16833 ;;
16834 esac
16835 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16836 # soname into executable. Probably we can add versioning support to
16837 # collect2, so additional links can be useful in future.
16838 if test "$aix_use_runtimelinking" = yes; then
16839 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16840 # instead of lib<name>.a to let people know that these are not
16841 # typical AIX shared libraries.
16842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16843 else
16844 # We preserve .a as extension for shared libraries through AIX4.2
16845 # and later when we are not doing run time linking.
16846 library_names_spec='${libname}${release}.a $libname.a'
16847 soname_spec='${libname}${release}${shared_ext}$major'
16848 fi
16849 shlibpath_var=LIBPATH
16850 fi
16851 ;;
16852
16853 amigaos*)
16854 case $host_cpu in
16855 powerpc)
16856 # Since July 2007 AmigaOS4 officially supports .so libraries.
16857 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16859 ;;
16860 m68k)
16861 library_names_spec='$libname.ixlibrary $libname.a'
16862 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16863 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16864 ;;
16865 esac
16866 ;;
16867
16868 beos*)
16869 library_names_spec='${libname}${shared_ext}'
16870 dynamic_linker="$host_os ld.so"
16871 shlibpath_var=LIBRARY_PATH
16872 ;;
16873
16874 bsdi[45]*)
16875 version_type=linux
16876 need_version=no
16877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16878 soname_spec='${libname}${release}${shared_ext}$major'
16879 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16880 shlibpath_var=LD_LIBRARY_PATH
16881 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16882 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16883 # the default ld.so.conf also contains /usr/contrib/lib and
16884 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16885 # libtool to hard-code these into programs
16886 ;;
16887
16888 cygwin* | mingw* | pw32* | cegcc*)
16889 version_type=windows
16890 shrext_cmds=".dll"
16891 need_version=no
16892 need_lib_prefix=no
16893
16894 case $GCC,$host_os in
16895 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16896 library_names_spec='$libname.dll.a'
16897 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16898 postinstall_cmds='base_file=`basename \${file}`~
16899 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16900 dldir=$destdir/`dirname \$dlpath`~
16901 test -d \$dldir || mkdir -p \$dldir~
16902 $install_prog $dir/$dlname \$dldir/$dlname~
16903 chmod a+x \$dldir/$dlname~
16904 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16905 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16906 fi'
16907 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16908 dlpath=$dir/\$dldll~
16909 $RM \$dlpath'
16910 shlibpath_overrides_runpath=yes
16911
16912 case $host_os in
16913 cygwin*)
16914 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16915 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16916
16917 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16918 ;;
16919 mingw* | cegcc*)
16920 # MinGW DLLs use traditional 'lib' prefix
16921 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16922 ;;
16923 pw32*)
16924 # pw32 DLLs use 'pw' prefix rather than 'lib'
16925 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16926 ;;
16927 esac
16928 ;;
16929
16930 *)
16931 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16932 ;;
16933 esac
16934 dynamic_linker='Win32 ld.exe'
16935 # FIXME: first we should search . and the directory the executable is in
16936 shlibpath_var=PATH
16937 ;;
16938
16939 darwin* | rhapsody*)
16940 dynamic_linker="$host_os dyld"
16941 version_type=darwin
16942 need_lib_prefix=no
16943 need_version=no
16944 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16945 soname_spec='${libname}${release}${major}$shared_ext'
16946 shlibpath_overrides_runpath=yes
16947 shlibpath_var=DYLD_LIBRARY_PATH
16948 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16949
16950 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16951 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16952 ;;
16953
16954 dgux*)
16955 version_type=linux
16956 need_lib_prefix=no
16957 need_version=no
16958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16959 soname_spec='${libname}${release}${shared_ext}$major'
16960 shlibpath_var=LD_LIBRARY_PATH
16961 ;;
16962
16963 freebsd* | dragonfly*)
16964 # DragonFly does not have aout. When/if they implement a new
16965 # versioning mechanism, adjust this.
16966 if test -x /usr/bin/objformat; then
16967 objformat=`/usr/bin/objformat`
16968 else
16969 case $host_os in
16970 freebsd[23].*) objformat=aout ;;
16971 *) objformat=elf ;;
16972 esac
16973 fi
16974 version_type=freebsd-$objformat
16975 case $version_type in
16976 freebsd-elf*)
16977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16978 need_version=no
16979 need_lib_prefix=no
16980 ;;
16981 freebsd-*)
16982 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16983 need_version=yes
16984 ;;
16985 esac
16986 shlibpath_var=LD_LIBRARY_PATH
16987 case $host_os in
16988 freebsd2.*)
16989 shlibpath_overrides_runpath=yes
16990 ;;
16991 freebsd3.[01]* | freebsdelf3.[01]*)
16992 shlibpath_overrides_runpath=yes
16993 hardcode_into_libs=yes
16994 ;;
16995 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16996 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16997 shlibpath_overrides_runpath=no
16998 hardcode_into_libs=yes
16999 ;;
17000 *) # from 4.6 on, and DragonFly
17001 shlibpath_overrides_runpath=yes
17002 hardcode_into_libs=yes
17003 ;;
17004 esac
17005 ;;
17006
17007 gnu*)
17008 version_type=linux
17009 need_lib_prefix=no
17010 need_version=no
17011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17012 soname_spec='${libname}${release}${shared_ext}$major'
17013 shlibpath_var=LD_LIBRARY_PATH
17014 hardcode_into_libs=yes
17015 ;;
17016
17017 haiku*)
17018 version_type=linux
17019 need_lib_prefix=no
17020 need_version=no
17021 dynamic_linker="$host_os runtime_loader"
17022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17023 soname_spec='${libname}${release}${shared_ext}$major'
17024 shlibpath_var=LIBRARY_PATH
17025 shlibpath_overrides_runpath=yes
17026 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17027 hardcode_into_libs=yes
17028 ;;
17029
17030 hpux9* | hpux10* | hpux11*)
17031 # Give a soname corresponding to the major version so that dld.sl refuses to
17032 # link against other versions.
17033 version_type=sunos
17034 need_lib_prefix=no
17035 need_version=no
17036 case $host_cpu in
17037 ia64*)
17038 shrext_cmds='.so'
17039 hardcode_into_libs=yes
17040 dynamic_linker="$host_os dld.so"
17041 shlibpath_var=LD_LIBRARY_PATH
17042 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17044 soname_spec='${libname}${release}${shared_ext}$major'
17045 if test "X$HPUX_IA64_MODE" = X32; then
17046 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17047 else
17048 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17049 fi
17050 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17051 ;;
17052 hppa*64*)
17053 shrext_cmds='.sl'
17054 hardcode_into_libs=yes
17055 dynamic_linker="$host_os dld.sl"
17056 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17057 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17059 soname_spec='${libname}${release}${shared_ext}$major'
17060 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17061 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17062 ;;
17063 *)
17064 shrext_cmds='.sl'
17065 dynamic_linker="$host_os dld.sl"
17066 shlibpath_var=SHLIB_PATH
17067 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17069 soname_spec='${libname}${release}${shared_ext}$major'
17070 ;;
17071 esac
17072 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17073 postinstall_cmds='chmod 555 $lib'
17074 # or fails outright, so override atomically:
17075 install_override_mode=555
17076 ;;
17077
17078 interix[3-9]*)
17079 version_type=linux
17080 need_lib_prefix=no
17081 need_version=no
17082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17083 soname_spec='${libname}${release}${shared_ext}$major'
17084 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17085 shlibpath_var=LD_LIBRARY_PATH
17086 shlibpath_overrides_runpath=no
17087 hardcode_into_libs=yes
17088 ;;
17089
17090 irix5* | irix6* | nonstopux*)
17091 case $host_os in
17092 nonstopux*) version_type=nonstopux ;;
17093 *)
17094 if test "$lt_cv_prog_gnu_ld" = yes; then
17095 version_type=linux
17096 else
17097 version_type=irix
17098 fi ;;
17099 esac
17100 need_lib_prefix=no
17101 need_version=no
17102 soname_spec='${libname}${release}${shared_ext}$major'
17103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17104 case $host_os in
17105 irix5* | nonstopux*)
17106 libsuff= shlibsuff=
17107 ;;
17108 *)
17109 case $LD in # libtool.m4 will add one of these switches to LD
17110 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17111 libsuff= shlibsuff= libmagic=32-bit;;
17112 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17113 libsuff=32 shlibsuff=N32 libmagic=N32;;
17114 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17115 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17116 *) libsuff= shlibsuff= libmagic=never-match;;
17117 esac
17118 ;;
17119 esac
17120 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17121 shlibpath_overrides_runpath=no
17122 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17123 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17124 hardcode_into_libs=yes
17125 ;;
17126
17127 # No shared lib support for Linux oldld, aout, or coff.
17128 linux*oldld* | linux*aout* | linux*coff*)
17129 dynamic_linker=no
17130 ;;
17131
17132 # This must be Linux ELF.
17133 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17134 version_type=linux
17135 need_lib_prefix=no
17136 need_version=no
17137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17138 soname_spec='${libname}${release}${shared_ext}$major'
17139 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17140 shlibpath_var=LD_LIBRARY_PATH
17141 shlibpath_overrides_runpath=no
17142
17143 # Some binutils ld are patched to set DT_RUNPATH
17144 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17145 $as_echo_n "(cached) " >&6
17146 else
17147 lt_cv_shlibpath_overrides_runpath=no
17148 save_LDFLAGS=$LDFLAGS
17149 save_libdir=$libdir
17150 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17151 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17153 /* end confdefs.h. */
17154
17155 int
17156 main ()
17157 {
17158
17159 ;
17160 return 0;
17161 }
17162 _ACEOF
17163 if ac_fn_c_try_link "$LINENO"; then :
17164 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17165 lt_cv_shlibpath_overrides_runpath=yes
17166 fi
17167 fi
17168 rm -f core conftest.err conftest.$ac_objext \
17169 conftest$ac_exeext conftest.$ac_ext
17170 LDFLAGS=$save_LDFLAGS
17171 libdir=$save_libdir
17172
17173 fi
17174
17175 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17176
17177 # This implies no fast_install, which is unacceptable.
17178 # Some rework will be needed to allow for fast_install
17179 # before this can be enabled.
17180 hardcode_into_libs=yes
17181
17182 # Append ld.so.conf contents to the search path
17183 if test -f /etc/ld.so.conf; then
17184 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
17185 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17186 fi
17187
17188 # We used to test for /lib/ld.so.1 and disable shared libraries on
17189 # powerpc, because MkLinux only supported shared libraries with the
17190 # GNU dynamic linker. Since this was broken with cross compilers,
17191 # most powerpc-linux boxes support dynamic linking these days and
17192 # people can always --disable-shared, the test was removed, and we
17193 # assume the GNU/Linux dynamic linker is in use.
17194 dynamic_linker='GNU/Linux ld.so'
17195 ;;
17196
17197 netbsd*)
17198 version_type=sunos
17199 need_lib_prefix=no
17200 need_version=no
17201 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17204 dynamic_linker='NetBSD (a.out) ld.so'
17205 else
17206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17207 soname_spec='${libname}${release}${shared_ext}$major'
17208 dynamic_linker='NetBSD ld.elf_so'
17209 fi
17210 shlibpath_var=LD_LIBRARY_PATH
17211 shlibpath_overrides_runpath=yes
17212 hardcode_into_libs=yes
17213 ;;
17214
17215 newsos6)
17216 version_type=linux
17217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17218 shlibpath_var=LD_LIBRARY_PATH
17219 shlibpath_overrides_runpath=yes
17220 ;;
17221
17222 *nto* | *qnx*)
17223 version_type=qnx
17224 need_lib_prefix=no
17225 need_version=no
17226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17227 soname_spec='${libname}${release}${shared_ext}$major'
17228 shlibpath_var=LD_LIBRARY_PATH
17229 shlibpath_overrides_runpath=no
17230 hardcode_into_libs=yes
17231 dynamic_linker='ldqnx.so'
17232 ;;
17233
17234 openbsd*)
17235 version_type=sunos
17236 sys_lib_dlsearch_path_spec="/usr/lib"
17237 need_lib_prefix=no
17238 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17239 case $host_os in
17240 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17241 *) need_version=no ;;
17242 esac
17243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17245 shlibpath_var=LD_LIBRARY_PATH
17246 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17247 case $host_os in
17248 openbsd2.[89] | openbsd2.[89].*)
17249 shlibpath_overrides_runpath=no
17250 ;;
17251 *)
17252 shlibpath_overrides_runpath=yes
17253 ;;
17254 esac
17255 else
17256 shlibpath_overrides_runpath=yes
17257 fi
17258 ;;
17259
17260 os2*)
17261 libname_spec='$name'
17262 shrext_cmds=".dll"
17263 need_lib_prefix=no
17264 library_names_spec='$libname${shared_ext} $libname.a'
17265 dynamic_linker='OS/2 ld.exe'
17266 shlibpath_var=LIBPATH
17267 ;;
17268
17269 osf3* | osf4* | osf5*)
17270 version_type=osf
17271 need_lib_prefix=no
17272 need_version=no
17273 soname_spec='${libname}${release}${shared_ext}$major'
17274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17275 shlibpath_var=LD_LIBRARY_PATH
17276 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17277 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17278 ;;
17279
17280 rdos*)
17281 dynamic_linker=no
17282 ;;
17283
17284 solaris*)
17285 version_type=linux
17286 need_lib_prefix=no
17287 need_version=no
17288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17289 soname_spec='${libname}${release}${shared_ext}$major'
17290 shlibpath_var=LD_LIBRARY_PATH
17291 shlibpath_overrides_runpath=yes
17292 hardcode_into_libs=yes
17293 # ldd complains unless libraries are executable
17294 postinstall_cmds='chmod +x $lib'
17295 ;;
17296
17297 sunos4*)
17298 version_type=sunos
17299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17300 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17301 shlibpath_var=LD_LIBRARY_PATH
17302 shlibpath_overrides_runpath=yes
17303 if test "$with_gnu_ld" = yes; then
17304 need_lib_prefix=no
17305 fi
17306 need_version=yes
17307 ;;
17308
17309 sysv4 | sysv4.3*)
17310 version_type=linux
17311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17312 soname_spec='${libname}${release}${shared_ext}$major'
17313 shlibpath_var=LD_LIBRARY_PATH
17314 case $host_vendor in
17315 sni)
17316 shlibpath_overrides_runpath=no
17317 need_lib_prefix=no
17318 runpath_var=LD_RUN_PATH
17319 ;;
17320 siemens)
17321 need_lib_prefix=no
17322 ;;
17323 motorola)
17324 need_lib_prefix=no
17325 need_version=no
17326 shlibpath_overrides_runpath=no
17327 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17328 ;;
17329 esac
17330 ;;
17331
17332 sysv4*MP*)
17333 if test -d /usr/nec ;then
17334 version_type=linux
17335 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17336 soname_spec='$libname${shared_ext}.$major'
17337 shlibpath_var=LD_LIBRARY_PATH
17338 fi
17339 ;;
17340
17341 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17342 version_type=freebsd-elf
17343 need_lib_prefix=no
17344 need_version=no
17345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17346 soname_spec='${libname}${release}${shared_ext}$major'
17347 shlibpath_var=LD_LIBRARY_PATH
17348 shlibpath_overrides_runpath=yes
17349 hardcode_into_libs=yes
17350 if test "$with_gnu_ld" = yes; then
17351 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17352 else
17353 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17354 case $host_os in
17355 sco3.2v5*)
17356 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17357 ;;
17358 esac
17359 fi
17360 sys_lib_dlsearch_path_spec='/usr/lib'
17361 ;;
17362
17363 tpf*)
17364 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17365 version_type=linux
17366 need_lib_prefix=no
17367 need_version=no
17368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17369 shlibpath_var=LD_LIBRARY_PATH
17370 shlibpath_overrides_runpath=no
17371 hardcode_into_libs=yes
17372 ;;
17373
17374 uts4*)
17375 version_type=linux
17376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17377 soname_spec='${libname}${release}${shared_ext}$major'
17378 shlibpath_var=LD_LIBRARY_PATH
17379 ;;
17380
17381 *)
17382 dynamic_linker=no
17383 ;;
17384 esac
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17386 $as_echo "$dynamic_linker" >&6; }
17387 test "$dynamic_linker" = no && can_build_shared=no
17388
17389 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17390 if test "$GCC" = yes; then
17391 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17392 fi
17393
17394 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17395 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17396 fi
17397 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17398 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17399 fi
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17493 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17494 hardcode_action=
17495 if test -n "$hardcode_libdir_flag_spec" ||
17496 test -n "$runpath_var" ||
17497 test "X$hardcode_automatic" = "Xyes" ; then
17498
17499 # We can hardcode non-existent directories.
17500 if test "$hardcode_direct" != no &&
17501 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17502 # have to relink, otherwise we might link with an installed library
17503 # when we should be linking with a yet-to-be-installed one
17504 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17505 test "$hardcode_minus_L" != no; then
17506 # Linking always hardcodes the temporary library directory.
17507 hardcode_action=relink
17508 else
17509 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17510 hardcode_action=immediate
17511 fi
17512 else
17513 # We cannot hardcode anything, or else we can only hardcode existing
17514 # directories.
17515 hardcode_action=unsupported
17516 fi
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17518 $as_echo "$hardcode_action" >&6; }
17519
17520 if test "$hardcode_action" = relink ||
17521 test "$inherit_rpath" = yes; then
17522 # Fast installation is not supported
17523 enable_fast_install=no
17524 elif test "$shlibpath_overrides_runpath" = yes ||
17525 test "$enable_shared" = no; then
17526 # Fast installation is not necessary
17527 enable_fast_install=needless
17528 fi
17529
17530
17531
17532
17533
17534
17535 if test "x$enable_dlopen" != xyes; then
17536 enable_dlopen=unknown
17537 enable_dlopen_self=unknown
17538 enable_dlopen_self_static=unknown
17539 else
17540 lt_cv_dlopen=no
17541 lt_cv_dlopen_libs=
17542
17543 case $host_os in
17544 beos*)
17545 lt_cv_dlopen="load_add_on"
17546 lt_cv_dlopen_libs=
17547 lt_cv_dlopen_self=yes
17548 ;;
17549
17550 mingw* | pw32* | cegcc*)
17551 lt_cv_dlopen="LoadLibrary"
17552 lt_cv_dlopen_libs=
17553 ;;
17554
17555 cygwin*)
17556 lt_cv_dlopen="dlopen"
17557 lt_cv_dlopen_libs=
17558 ;;
17559
17560 darwin*)
17561 # if libdl is installed we need to link against it
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17563 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17564 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17565 $as_echo_n "(cached) " >&6
17566 else
17567 ac_check_lib_save_LIBS=$LIBS
17568 LIBS="-ldl $LIBS"
17569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17570 /* end confdefs.h. */
17571
17572 /* Override any GCC internal prototype to avoid an error.
17573 Use char because int might match the return type of a GCC
17574 builtin and then its argument prototype would still apply. */
17575 #ifdef __cplusplus
17576 extern "C"
17577 #endif
17578 char dlopen ();
17579 int
17580 main ()
17581 {
17582 return dlopen ();
17583 ;
17584 return 0;
17585 }
17586 _ACEOF
17587 if ac_fn_c_try_link "$LINENO"; then :
17588 ac_cv_lib_dl_dlopen=yes
17589 else
17590 ac_cv_lib_dl_dlopen=no
17591 fi
17592 rm -f core conftest.err conftest.$ac_objext \
17593 conftest$ac_exeext conftest.$ac_ext
17594 LIBS=$ac_check_lib_save_LIBS
17595 fi
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17597 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17598 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17599 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17600 else
17601
17602 lt_cv_dlopen="dyld"
17603 lt_cv_dlopen_libs=
17604 lt_cv_dlopen_self=yes
17605
17606 fi
17607
17608 ;;
17609
17610 *)
17611 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17612 if test "x$ac_cv_func_shl_load" = x""yes; then :
17613 lt_cv_dlopen="shl_load"
17614 else
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17616 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17617 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17618 $as_echo_n "(cached) " >&6
17619 else
17620 ac_check_lib_save_LIBS=$LIBS
17621 LIBS="-ldld $LIBS"
17622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17623 /* end confdefs.h. */
17624
17625 /* Override any GCC internal prototype to avoid an error.
17626 Use char because int might match the return type of a GCC
17627 builtin and then its argument prototype would still apply. */
17628 #ifdef __cplusplus
17629 extern "C"
17630 #endif
17631 char shl_load ();
17632 int
17633 main ()
17634 {
17635 return shl_load ();
17636 ;
17637 return 0;
17638 }
17639 _ACEOF
17640 if ac_fn_c_try_link "$LINENO"; then :
17641 ac_cv_lib_dld_shl_load=yes
17642 else
17643 ac_cv_lib_dld_shl_load=no
17644 fi
17645 rm -f core conftest.err conftest.$ac_objext \
17646 conftest$ac_exeext conftest.$ac_ext
17647 LIBS=$ac_check_lib_save_LIBS
17648 fi
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17650 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17651 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17652 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17653 else
17654 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17655 if test "x$ac_cv_func_dlopen" = x""yes; then :
17656 lt_cv_dlopen="dlopen"
17657 else
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17659 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17660 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17661 $as_echo_n "(cached) " >&6
17662 else
17663 ac_check_lib_save_LIBS=$LIBS
17664 LIBS="-ldl $LIBS"
17665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17666 /* end confdefs.h. */
17667
17668 /* Override any GCC internal prototype to avoid an error.
17669 Use char because int might match the return type of a GCC
17670 builtin and then its argument prototype would still apply. */
17671 #ifdef __cplusplus
17672 extern "C"
17673 #endif
17674 char dlopen ();
17675 int
17676 main ()
17677 {
17678 return dlopen ();
17679 ;
17680 return 0;
17681 }
17682 _ACEOF
17683 if ac_fn_c_try_link "$LINENO"; then :
17684 ac_cv_lib_dl_dlopen=yes
17685 else
17686 ac_cv_lib_dl_dlopen=no
17687 fi
17688 rm -f core conftest.err conftest.$ac_objext \
17689 conftest$ac_exeext conftest.$ac_ext
17690 LIBS=$ac_check_lib_save_LIBS
17691 fi
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17693 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17694 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17695 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17696 else
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17698 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17699 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17700 $as_echo_n "(cached) " >&6
17701 else
17702 ac_check_lib_save_LIBS=$LIBS
17703 LIBS="-lsvld $LIBS"
17704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17705 /* end confdefs.h. */
17706
17707 /* Override any GCC internal prototype to avoid an error.
17708 Use char because int might match the return type of a GCC
17709 builtin and then its argument prototype would still apply. */
17710 #ifdef __cplusplus
17711 extern "C"
17712 #endif
17713 char dlopen ();
17714 int
17715 main ()
17716 {
17717 return dlopen ();
17718 ;
17719 return 0;
17720 }
17721 _ACEOF
17722 if ac_fn_c_try_link "$LINENO"; then :
17723 ac_cv_lib_svld_dlopen=yes
17724 else
17725 ac_cv_lib_svld_dlopen=no
17726 fi
17727 rm -f core conftest.err conftest.$ac_objext \
17728 conftest$ac_exeext conftest.$ac_ext
17729 LIBS=$ac_check_lib_save_LIBS
17730 fi
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17732 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17733 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17734 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17735 else
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17737 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17738 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17739 $as_echo_n "(cached) " >&6
17740 else
17741 ac_check_lib_save_LIBS=$LIBS
17742 LIBS="-ldld $LIBS"
17743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17744 /* end confdefs.h. */
17745
17746 /* Override any GCC internal prototype to avoid an error.
17747 Use char because int might match the return type of a GCC
17748 builtin and then its argument prototype would still apply. */
17749 #ifdef __cplusplus
17750 extern "C"
17751 #endif
17752 char dld_link ();
17753 int
17754 main ()
17755 {
17756 return dld_link ();
17757 ;
17758 return 0;
17759 }
17760 _ACEOF
17761 if ac_fn_c_try_link "$LINENO"; then :
17762 ac_cv_lib_dld_dld_link=yes
17763 else
17764 ac_cv_lib_dld_dld_link=no
17765 fi
17766 rm -f core conftest.err conftest.$ac_objext \
17767 conftest$ac_exeext conftest.$ac_ext
17768 LIBS=$ac_check_lib_save_LIBS
17769 fi
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17771 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17772 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17773 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17774 fi
17775
17776
17777 fi
17778
17779
17780 fi
17781
17782
17783 fi
17784
17785
17786 fi
17787
17788
17789 fi
17790
17791 ;;
17792 esac
17793
17794 if test "x$lt_cv_dlopen" != xno; then
17795 enable_dlopen=yes
17796 else
17797 enable_dlopen=no
17798 fi
17799
17800 case $lt_cv_dlopen in
17801 dlopen)
17802 save_CPPFLAGS="$CPPFLAGS"
17803 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17804
17805 save_LDFLAGS="$LDFLAGS"
17806 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17807
17808 save_LIBS="$LIBS"
17809 LIBS="$lt_cv_dlopen_libs $LIBS"
17810
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17812 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17813 if test "${lt_cv_dlopen_self+set}" = set; then :
17814 $as_echo_n "(cached) " >&6
17815 else
17816 if test "$cross_compiling" = yes; then :
17817 lt_cv_dlopen_self=cross
17818 else
17819 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17820 lt_status=$lt_dlunknown
17821 cat > conftest.$ac_ext <<_LT_EOF
17822 #line 17822 "configure"
17823 #include "confdefs.h"
17824
17825 #if HAVE_DLFCN_H
17826 #include <dlfcn.h>
17827 #endif
17828
17829 #include <stdio.h>
17830
17831 #ifdef RTLD_GLOBAL
17832 # define LT_DLGLOBAL RTLD_GLOBAL
17833 #else
17834 # ifdef DL_GLOBAL
17835 # define LT_DLGLOBAL DL_GLOBAL
17836 # else
17837 # define LT_DLGLOBAL 0
17838 # endif
17839 #endif
17840
17841 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17842 find out it does not work in some platform. */
17843 #ifndef LT_DLLAZY_OR_NOW
17844 # ifdef RTLD_LAZY
17845 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17846 # else
17847 # ifdef DL_LAZY
17848 # define LT_DLLAZY_OR_NOW DL_LAZY
17849 # else
17850 # ifdef RTLD_NOW
17851 # define LT_DLLAZY_OR_NOW RTLD_NOW
17852 # else
17853 # ifdef DL_NOW
17854 # define LT_DLLAZY_OR_NOW DL_NOW
17855 # else
17856 # define LT_DLLAZY_OR_NOW 0
17857 # endif
17858 # endif
17859 # endif
17860 # endif
17861 #endif
17862
17863 /* When -fvisbility=hidden is used, assume the code has been annotated
17864 correspondingly for the symbols needed. */
17865 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17866 void fnord () __attribute__((visibility("default")));
17867 #endif
17868
17869 void fnord () { int i=42; }
17870 int main ()
17871 {
17872 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17873 int status = $lt_dlunknown;
17874
17875 if (self)
17876 {
17877 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17878 else
17879 {
17880 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17881 else puts (dlerror ());
17882 }
17883 /* dlclose (self); */
17884 }
17885 else
17886 puts (dlerror ());
17887
17888 return status;
17889 }
17890 _LT_EOF
17891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17892 (eval $ac_link) 2>&5
17893 ac_status=$?
17894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17895 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17896 (./conftest; exit; ) >&5 2>/dev/null
17897 lt_status=$?
17898 case x$lt_status in
17899 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17900 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17901 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17902 esac
17903 else :
17904 # compilation failed
17905 lt_cv_dlopen_self=no
17906 fi
17907 fi
17908 rm -fr conftest*
17909
17910
17911 fi
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17913 $as_echo "$lt_cv_dlopen_self" >&6; }
17914
17915 if test "x$lt_cv_dlopen_self" = xyes; then
17916 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17918 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17919 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17920 $as_echo_n "(cached) " >&6
17921 else
17922 if test "$cross_compiling" = yes; then :
17923 lt_cv_dlopen_self_static=cross
17924 else
17925 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17926 lt_status=$lt_dlunknown
17927 cat > conftest.$ac_ext <<_LT_EOF
17928 #line 17928 "configure"
17929 #include "confdefs.h"
17930
17931 #if HAVE_DLFCN_H
17932 #include <dlfcn.h>
17933 #endif
17934
17935 #include <stdio.h>
17936
17937 #ifdef RTLD_GLOBAL
17938 # define LT_DLGLOBAL RTLD_GLOBAL
17939 #else
17940 # ifdef DL_GLOBAL
17941 # define LT_DLGLOBAL DL_GLOBAL
17942 # else
17943 # define LT_DLGLOBAL 0
17944 # endif
17945 #endif
17946
17947 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17948 find out it does not work in some platform. */
17949 #ifndef LT_DLLAZY_OR_NOW
17950 # ifdef RTLD_LAZY
17951 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17952 # else
17953 # ifdef DL_LAZY
17954 # define LT_DLLAZY_OR_NOW DL_LAZY
17955 # else
17956 # ifdef RTLD_NOW
17957 # define LT_DLLAZY_OR_NOW RTLD_NOW
17958 # else
17959 # ifdef DL_NOW
17960 # define LT_DLLAZY_OR_NOW DL_NOW
17961 # else
17962 # define LT_DLLAZY_OR_NOW 0
17963 # endif
17964 # endif
17965 # endif
17966 # endif
17967 #endif
17968
17969 /* When -fvisbility=hidden is used, assume the code has been annotated
17970 correspondingly for the symbols needed. */
17971 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17972 void fnord () __attribute__((visibility("default")));
17973 #endif
17974
17975 void fnord () { int i=42; }
17976 int main ()
17977 {
17978 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17979 int status = $lt_dlunknown;
17980
17981 if (self)
17982 {
17983 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17984 else
17985 {
17986 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17987 else puts (dlerror ());
17988 }
17989 /* dlclose (self); */
17990 }
17991 else
17992 puts (dlerror ());
17993
17994 return status;
17995 }
17996 _LT_EOF
17997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17998 (eval $ac_link) 2>&5
17999 ac_status=$?
18000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18001 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18002 (./conftest; exit; ) >&5 2>/dev/null
18003 lt_status=$?
18004 case x$lt_status in
18005 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18006 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18007 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18008 esac
18009 else :
18010 # compilation failed
18011 lt_cv_dlopen_self_static=no
18012 fi
18013 fi
18014 rm -fr conftest*
18015
18016
18017 fi
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18019 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18020 fi
18021
18022 CPPFLAGS="$save_CPPFLAGS"
18023 LDFLAGS="$save_LDFLAGS"
18024 LIBS="$save_LIBS"
18025 ;;
18026 esac
18027
18028 case $lt_cv_dlopen_self in
18029 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18030 *) enable_dlopen_self=unknown ;;
18031 esac
18032
18033 case $lt_cv_dlopen_self_static in
18034 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18035 *) enable_dlopen_self_static=unknown ;;
18036 esac
18037 fi
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055 striplib=
18056 old_striplib=
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18058 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18059 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18060 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18061 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18063 $as_echo "yes" >&6; }
18064 else
18065 # FIXME - insert some real tests, host_os isn't really good enough
18066 case $host_os in
18067 darwin*)
18068 if test -n "$STRIP" ; then
18069 striplib="$STRIP -x"
18070 old_striplib="$STRIP -S"
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18072 $as_echo "yes" >&6; }
18073 else
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18075 $as_echo "no" >&6; }
18076 fi
18077 ;;
18078 *)
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18080 $as_echo "no" >&6; }
18081 ;;
18082 esac
18083 fi
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096 # Report which library types will actually be built
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18098 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18100 $as_echo "$can_build_shared" >&6; }
18101
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18103 $as_echo_n "checking whether to build shared libraries... " >&6; }
18104 test "$can_build_shared" = "no" && enable_shared=no
18105
18106 # On AIX, shared libraries and static libraries use the same namespace, and
18107 # are all built from PIC.
18108 case $host_os in
18109 aix3*)
18110 test "$enable_shared" = yes && enable_static=no
18111 if test -n "$RANLIB"; then
18112 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18113 postinstall_cmds='$RANLIB $lib'
18114 fi
18115 ;;
18116
18117 aix[4-9]*)
18118 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18119 test "$enable_shared" = yes && enable_static=no
18120 fi
18121 ;;
18122 esac
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18124 $as_echo "$enable_shared" >&6; }
18125
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18127 $as_echo_n "checking whether to build static libraries... " >&6; }
18128 # Make sure either enable_shared or enable_static is yes.
18129 test "$enable_shared" = yes || enable_static=yes
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18131 $as_echo "$enable_static" >&6; }
18132
18133
18134
18135
18136 fi
18137 ac_ext=c
18138 ac_cpp='$CPP $CPPFLAGS'
18139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18142
18143 CC="$lt_save_CC"
18144
18145 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18146 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18147 (test "X$CXX" != "Xg++"))) ; then
18148 ac_ext=cpp
18149 ac_cpp='$CXXCPP $CPPFLAGS'
18150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18154 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18155 if test -z "$CXXCPP"; then
18156 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18157 $as_echo_n "(cached) " >&6
18158 else
18159 # Double quotes because CXXCPP needs to be expanded
18160 for CXXCPP in "$CXX -E" "/lib/cpp"
18161 do
18162 ac_preproc_ok=false
18163 for ac_cxx_preproc_warn_flag in '' yes
18164 do
18165 # Use a header file that comes with gcc, so configuring glibc
18166 # with a fresh cross-compiler works.
18167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18168 # <limits.h> exists even on freestanding compilers.
18169 # On the NeXT, cc -E runs the code through the compiler's parser,
18170 # not just through cpp. "Syntax error" is here to catch this case.
18171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18172 /* end confdefs.h. */
18173 #ifdef __STDC__
18174 # include <limits.h>
18175 #else
18176 # include <assert.h>
18177 #endif
18178 Syntax error
18179 _ACEOF
18180 if ac_fn_cxx_try_cpp "$LINENO"; then :
18181
18182 else
18183 # Broken: fails on valid input.
18184 continue
18185 fi
18186 rm -f conftest.err conftest.$ac_ext
18187
18188 # OK, works on sane cases. Now check whether nonexistent headers
18189 # can be detected and how.
18190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18191 /* end confdefs.h. */
18192 #include <ac_nonexistent.h>
18193 _ACEOF
18194 if ac_fn_cxx_try_cpp "$LINENO"; then :
18195 # Broken: success on invalid input.
18196 continue
18197 else
18198 # Passes both tests.
18199 ac_preproc_ok=:
18200 break
18201 fi
18202 rm -f conftest.err conftest.$ac_ext
18203
18204 done
18205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18206 rm -f conftest.err conftest.$ac_ext
18207 if $ac_preproc_ok; then :
18208 break
18209 fi
18210
18211 done
18212 ac_cv_prog_CXXCPP=$CXXCPP
18213
18214 fi
18215 CXXCPP=$ac_cv_prog_CXXCPP
18216 else
18217 ac_cv_prog_CXXCPP=$CXXCPP
18218 fi
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18220 $as_echo "$CXXCPP" >&6; }
18221 ac_preproc_ok=false
18222 for ac_cxx_preproc_warn_flag in '' yes
18223 do
18224 # Use a header file that comes with gcc, so configuring glibc
18225 # with a fresh cross-compiler works.
18226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18227 # <limits.h> exists even on freestanding compilers.
18228 # On the NeXT, cc -E runs the code through the compiler's parser,
18229 # not just through cpp. "Syntax error" is here to catch this case.
18230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18231 /* end confdefs.h. */
18232 #ifdef __STDC__
18233 # include <limits.h>
18234 #else
18235 # include <assert.h>
18236 #endif
18237 Syntax error
18238 _ACEOF
18239 if ac_fn_cxx_try_cpp "$LINENO"; then :
18240
18241 else
18242 # Broken: fails on valid input.
18243 continue
18244 fi
18245 rm -f conftest.err conftest.$ac_ext
18246
18247 # OK, works on sane cases. Now check whether nonexistent headers
18248 # can be detected and how.
18249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18250 /* end confdefs.h. */
18251 #include <ac_nonexistent.h>
18252 _ACEOF
18253 if ac_fn_cxx_try_cpp "$LINENO"; then :
18254 # Broken: success on invalid input.
18255 continue
18256 else
18257 # Passes both tests.
18258 ac_preproc_ok=:
18259 break
18260 fi
18261 rm -f conftest.err conftest.$ac_ext
18262
18263 done
18264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18265 rm -f conftest.err conftest.$ac_ext
18266 if $ac_preproc_ok; then :
18267
18268 else
18269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18271 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18272 See \`config.log' for more details." "$LINENO" 5; }
18273 fi
18274
18275 ac_ext=c
18276 ac_cpp='$CPP $CPPFLAGS'
18277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18280
18281 else
18282 _lt_caught_CXX_error=yes
18283 fi
18284
18285 ac_ext=cpp
18286 ac_cpp='$CXXCPP $CPPFLAGS'
18287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18290
18291 archive_cmds_need_lc_CXX=no
18292 allow_undefined_flag_CXX=
18293 always_export_symbols_CXX=no
18294 archive_expsym_cmds_CXX=
18295 compiler_needs_object_CXX=no
18296 export_dynamic_flag_spec_CXX=
18297 hardcode_direct_CXX=no
18298 hardcode_direct_absolute_CXX=no
18299 hardcode_libdir_flag_spec_CXX=
18300 hardcode_libdir_flag_spec_ld_CXX=
18301 hardcode_libdir_separator_CXX=
18302 hardcode_minus_L_CXX=no
18303 hardcode_shlibpath_var_CXX=unsupported
18304 hardcode_automatic_CXX=no
18305 inherit_rpath_CXX=no
18306 module_cmds_CXX=
18307 module_expsym_cmds_CXX=
18308 link_all_deplibs_CXX=unknown
18309 old_archive_cmds_CXX=$old_archive_cmds
18310 reload_flag_CXX=$reload_flag
18311 reload_cmds_CXX=$reload_cmds
18312 no_undefined_flag_CXX=
18313 whole_archive_flag_spec_CXX=
18314 enable_shared_with_static_runtimes_CXX=no
18315
18316 # Source file extension for C++ test sources.
18317 ac_ext=cpp
18318
18319 # Object file extension for compiled C++ test sources.
18320 objext=o
18321 objext_CXX=$objext
18322
18323 # No sense in running all these tests if we already determined that
18324 # the CXX compiler isn't working. Some variables (like enable_shared)
18325 # are currently assumed to apply to all compilers on this platform,
18326 # and will be corrupted by setting them based on a non-working compiler.
18327 if test "$_lt_caught_CXX_error" != yes; then
18328 # Code to be used in simple compile tests
18329 lt_simple_compile_test_code="int some_variable = 0;"
18330
18331 # Code to be used in simple link tests
18332 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18333
18334 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18335
18336
18337
18338
18339
18340
18341 # If no C compiler was specified, use CC.
18342 LTCC=${LTCC-"$CC"}
18343
18344 # If no C compiler flags were specified, use CFLAGS.
18345 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18346
18347 # Allow CC to be a program name with arguments.
18348 compiler=$CC
18349
18350
18351 # save warnings/boilerplate of simple test code
18352 ac_outfile=conftest.$ac_objext
18353 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18354 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18355 _lt_compiler_boilerplate=`cat conftest.err`
18356 $RM conftest*
18357
18358 ac_outfile=conftest.$ac_objext
18359 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18360 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18361 _lt_linker_boilerplate=`cat conftest.err`
18362 $RM -r conftest*
18363
18364
18365 # Allow CC to be a program name with arguments.
18366 lt_save_CC=$CC
18367 lt_save_LD=$LD
18368 lt_save_GCC=$GCC
18369 GCC=$GXX
18370 lt_save_with_gnu_ld=$with_gnu_ld
18371 lt_save_path_LD=$lt_cv_path_LD
18372 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18373 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18374 else
18375 $as_unset lt_cv_prog_gnu_ld
18376 fi
18377 if test -n "${lt_cv_path_LDCXX+set}"; then
18378 lt_cv_path_LD=$lt_cv_path_LDCXX
18379 else
18380 $as_unset lt_cv_path_LD
18381 fi
18382 test -z "${LDCXX+set}" || LD=$LDCXX
18383 CC=${CXX-"c++"}
18384 compiler=$CC
18385 compiler_CXX=$CC
18386 for cc_temp in $compiler""; do
18387 case $cc_temp in
18388 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18389 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18390 \-*) ;;
18391 *) break;;
18392 esac
18393 done
18394 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18395
18396
18397 if test -n "$compiler"; then
18398 # We don't want -fno-exception when compiling C++ code, so set the
18399 # no_builtin_flag separately
18400 if test "$GXX" = yes; then
18401 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18402 else
18403 lt_prog_compiler_no_builtin_flag_CXX=
18404 fi
18405
18406 if test "$GXX" = yes; then
18407 # Set up default GNU C++ configuration
18408
18409
18410
18411 # Check whether --with-gnu-ld was given.
18412 if test "${with_gnu_ld+set}" = set; then :
18413 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18414 else
18415 with_gnu_ld=no
18416 fi
18417
18418 ac_prog=ld
18419 if test "$GCC" = yes; then
18420 # Check if gcc -print-prog-name=ld gives a path.
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18422 $as_echo_n "checking for ld used by $CC... " >&6; }
18423 case $host in
18424 *-*-mingw*)
18425 # gcc leaves a trailing carriage return which upsets mingw
18426 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18427 *)
18428 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18429 esac
18430 case $ac_prog in
18431 # Accept absolute paths.
18432 [\\/]* | ?:[\\/]*)
18433 re_direlt='/[^/][^/]*/\.\./'
18434 # Canonicalize the pathname of ld
18435 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18436 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18437 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18438 done
18439 test -z "$LD" && LD="$ac_prog"
18440 ;;
18441 "")
18442 # If it fails, then pretend we aren't using GCC.
18443 ac_prog=ld
18444 ;;
18445 *)
18446 # If it is relative, then search for the first ld in PATH.
18447 with_gnu_ld=unknown
18448 ;;
18449 esac
18450 elif test "$with_gnu_ld" = yes; then
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18452 $as_echo_n "checking for GNU ld... " >&6; }
18453 else
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18455 $as_echo_n "checking for non-GNU ld... " >&6; }
18456 fi
18457 if test "${lt_cv_path_LD+set}" = set; then :
18458 $as_echo_n "(cached) " >&6
18459 else
18460 if test -z "$LD"; then
18461 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18462 for ac_dir in $PATH; do
18463 IFS="$lt_save_ifs"
18464 test -z "$ac_dir" && ac_dir=.
18465 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18466 lt_cv_path_LD="$ac_dir/$ac_prog"
18467 # Check to see if the program is GNU ld. I'd rather use --version,
18468 # but apparently some variants of GNU ld only accept -v.
18469 # Break only if it was the GNU/non-GNU ld that we prefer.
18470 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18471 *GNU* | *'with BFD'*)
18472 test "$with_gnu_ld" != no && break
18473 ;;
18474 *)
18475 test "$with_gnu_ld" != yes && break
18476 ;;
18477 esac
18478 fi
18479 done
18480 IFS="$lt_save_ifs"
18481 else
18482 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18483 fi
18484 fi
18485
18486 LD="$lt_cv_path_LD"
18487 if test -n "$LD"; then
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18489 $as_echo "$LD" >&6; }
18490 else
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18492 $as_echo "no" >&6; }
18493 fi
18494 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18496 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18497 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18498 $as_echo_n "(cached) " >&6
18499 else
18500 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18501 case `$LD -v 2>&1 </dev/null` in
18502 *GNU* | *'with BFD'*)
18503 lt_cv_prog_gnu_ld=yes
18504 ;;
18505 *)
18506 lt_cv_prog_gnu_ld=no
18507 ;;
18508 esac
18509 fi
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18511 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18512 with_gnu_ld=$lt_cv_prog_gnu_ld
18513
18514
18515
18516
18517
18518
18519
18520 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18521 # archiving commands below assume that GNU ld is being used.
18522 if test "$with_gnu_ld" = yes; then
18523 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18524 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18525
18526 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18527 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18528
18529 # If archive_cmds runs LD, not CC, wlarc should be empty
18530 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18531 # investigate it a little bit more. (MM)
18532 wlarc='${wl}'
18533
18534 # ancient GNU ld didn't support --whole-archive et. al.
18535 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18536 $GREP 'no-whole-archive' > /dev/null; then
18537 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18538 else
18539 whole_archive_flag_spec_CXX=
18540 fi
18541 else
18542 with_gnu_ld=no
18543 wlarc=
18544
18545 # A generic and very simple default shared library creation
18546 # command for GNU C++ for the case where it uses the native
18547 # linker, instead of GNU ld. If possible, this setting should
18548 # overridden to take advantage of the native linker features on
18549 # the platform it is being used on.
18550 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18551 fi
18552
18553 # Commands to make compiler produce verbose output that lists
18554 # what "hidden" libraries, object files and flags are used when
18555 # linking a shared library.
18556 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18557
18558 else
18559 GXX=no
18560 with_gnu_ld=no
18561 wlarc=
18562 fi
18563
18564 # PORTME: fill in a description of your system's C++ link characteristics
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18566 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18567 ld_shlibs_CXX=yes
18568 case $host_os in
18569 aix3*)
18570 # FIXME: insert proper C++ library support
18571 ld_shlibs_CXX=no
18572 ;;
18573 aix[4-9]*)
18574 if test "$host_cpu" = ia64; then
18575 # On IA64, the linker does run time linking by default, so we don't
18576 # have to do anything special.
18577 aix_use_runtimelinking=no
18578 exp_sym_flag='-Bexport'
18579 no_entry_flag=""
18580 else
18581 aix_use_runtimelinking=no
18582
18583 # Test if we are trying to use run time linking or normal
18584 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18585 # need to do runtime linking.
18586 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18587 for ld_flag in $LDFLAGS; do
18588 case $ld_flag in
18589 *-brtl*)
18590 aix_use_runtimelinking=yes
18591 break
18592 ;;
18593 esac
18594 done
18595 ;;
18596 esac
18597
18598 exp_sym_flag='-bexport'
18599 no_entry_flag='-bnoentry'
18600 fi
18601
18602 # When large executables or shared objects are built, AIX ld can
18603 # have problems creating the table of contents. If linking a library
18604 # or program results in "error TOC overflow" add -mminimal-toc to
18605 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18606 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18607
18608 archive_cmds_CXX=''
18609 hardcode_direct_CXX=yes
18610 hardcode_direct_absolute_CXX=yes
18611 hardcode_libdir_separator_CXX=':'
18612 link_all_deplibs_CXX=yes
18613 file_list_spec_CXX='${wl}-f,'
18614
18615 if test "$GXX" = yes; then
18616 case $host_os in aix4.[012]|aix4.[012].*)
18617 # We only want to do this on AIX 4.2 and lower, the check
18618 # below for broken collect2 doesn't work under 4.3+
18619 collect2name=`${CC} -print-prog-name=collect2`
18620 if test -f "$collect2name" &&
18621 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18622 then
18623 # We have reworked collect2
18624 :
18625 else
18626 # We have old collect2
18627 hardcode_direct_CXX=unsupported
18628 # It fails to find uninstalled libraries when the uninstalled
18629 # path is not listed in the libpath. Setting hardcode_minus_L
18630 # to unsupported forces relinking
18631 hardcode_minus_L_CXX=yes
18632 hardcode_libdir_flag_spec_CXX='-L$libdir'
18633 hardcode_libdir_separator_CXX=
18634 fi
18635 esac
18636 shared_flag='-shared'
18637 if test "$aix_use_runtimelinking" = yes; then
18638 shared_flag="$shared_flag "'${wl}-G'
18639 fi
18640 else
18641 # not using gcc
18642 if test "$host_cpu" = ia64; then
18643 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18644 # chokes on -Wl,-G. The following line is correct:
18645 shared_flag='-G'
18646 else
18647 if test "$aix_use_runtimelinking" = yes; then
18648 shared_flag='${wl}-G'
18649 else
18650 shared_flag='${wl}-bM:SRE'
18651 fi
18652 fi
18653 fi
18654
18655 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18656 # It seems that -bexpall does not export symbols beginning with
18657 # underscore (_), so it is better to generate a list of symbols to
18658 # export.
18659 always_export_symbols_CXX=yes
18660 if test "$aix_use_runtimelinking" = yes; then
18661 # Warning - without using the other runtime loading flags (-brtl),
18662 # -berok will link without error, but may produce a broken library.
18663 allow_undefined_flag_CXX='-berok'
18664 # Determine the default libpath from the value encoded in an empty
18665 # executable.
18666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18667 /* end confdefs.h. */
18668
18669 int
18670 main ()
18671 {
18672
18673 ;
18674 return 0;
18675 }
18676 _ACEOF
18677 if ac_fn_cxx_try_link "$LINENO"; then :
18678
18679 lt_aix_libpath_sed='
18680 /Import File Strings/,/^$/ {
18681 /^0/ {
18682 s/^0 *\(.*\)$/\1/
18683 p
18684 }
18685 }'
18686 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18687 # Check for a 64-bit object if we didn't find anything.
18688 if test -z "$aix_libpath"; then
18689 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18690 fi
18691 fi
18692 rm -f core conftest.err conftest.$ac_objext \
18693 conftest$ac_exeext conftest.$ac_ext
18694 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18695
18696 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18697
18698 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18699 else
18700 if test "$host_cpu" = ia64; then
18701 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18702 allow_undefined_flag_CXX="-z nodefs"
18703 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18704 else
18705 # Determine the default libpath from the value encoded in an
18706 # empty executable.
18707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18708 /* end confdefs.h. */
18709
18710 int
18711 main ()
18712 {
18713
18714 ;
18715 return 0;
18716 }
18717 _ACEOF
18718 if ac_fn_cxx_try_link "$LINENO"; then :
18719
18720 lt_aix_libpath_sed='
18721 /Import File Strings/,/^$/ {
18722 /^0/ {
18723 s/^0 *\(.*\)$/\1/
18724 p
18725 }
18726 }'
18727 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18728 # Check for a 64-bit object if we didn't find anything.
18729 if test -z "$aix_libpath"; then
18730 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18731 fi
18732 fi
18733 rm -f core conftest.err conftest.$ac_objext \
18734 conftest$ac_exeext conftest.$ac_ext
18735 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18736
18737 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18738 # Warning - without using the other run time loading flags,
18739 # -berok will link without error, but may produce a broken library.
18740 no_undefined_flag_CXX=' ${wl}-bernotok'
18741 allow_undefined_flag_CXX=' ${wl}-berok'
18742 if test "$with_gnu_ld" = yes; then
18743 # We only use this code for GNU lds that support --whole-archive.
18744 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18745 else
18746 # Exported symbols can be pulled into shared objects from archives
18747 whole_archive_flag_spec_CXX='$convenience'
18748 fi
18749 archive_cmds_need_lc_CXX=yes
18750 # This is similar to how AIX traditionally builds its shared
18751 # libraries.
18752 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18753 fi
18754 fi
18755 ;;
18756
18757 beos*)
18758 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18759 allow_undefined_flag_CXX=unsupported
18760 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18761 # support --undefined. This deserves some investigation. FIXME
18762 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18763 else
18764 ld_shlibs_CXX=no
18765 fi
18766 ;;
18767
18768 chorus*)
18769 case $cc_basename in
18770 *)
18771 # FIXME: insert proper C++ library support
18772 ld_shlibs_CXX=no
18773 ;;
18774 esac
18775 ;;
18776
18777 cygwin* | mingw* | pw32* | cegcc*)
18778 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18779 # as there is no search path for DLLs.
18780 hardcode_libdir_flag_spec_CXX='-L$libdir'
18781 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18782 allow_undefined_flag_CXX=unsupported
18783 always_export_symbols_CXX=no
18784 enable_shared_with_static_runtimes_CXX=yes
18785
18786 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18787 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18788 # If the export-symbols file already is a .def file (1st line
18789 # is EXPORTS), use it as is; otherwise, prepend...
18790 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18791 cp $export_symbols $output_objdir/$soname.def;
18792 else
18793 echo EXPORTS > $output_objdir/$soname.def;
18794 cat $export_symbols >> $output_objdir/$soname.def;
18795 fi~
18796 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18797 else
18798 ld_shlibs_CXX=no
18799 fi
18800 ;;
18801 darwin* | rhapsody*)
18802
18803
18804 archive_cmds_need_lc_CXX=no
18805 hardcode_direct_CXX=no
18806 hardcode_automatic_CXX=yes
18807 hardcode_shlibpath_var_CXX=unsupported
18808 if test "$lt_cv_ld_force_load" = "yes"; then
18809 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
18810 else
18811 whole_archive_flag_spec_CXX=''
18812 fi
18813 link_all_deplibs_CXX=yes
18814 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18815 case $cc_basename in
18816 ifort*) _lt_dar_can_shared=yes ;;
18817 *) _lt_dar_can_shared=$GCC ;;
18818 esac
18819 if test "$_lt_dar_can_shared" = "yes"; then
18820 output_verbose_link_cmd=func_echo_all
18821 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18822 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18823 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18824 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18825 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18826 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
18827 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
18828 fi
18829
18830 else
18831 ld_shlibs_CXX=no
18832 fi
18833
18834 ;;
18835
18836 dgux*)
18837 case $cc_basename in
18838 ec++*)
18839 # FIXME: insert proper C++ library support
18840 ld_shlibs_CXX=no
18841 ;;
18842 ghcx*)
18843 # Green Hills C++ Compiler
18844 # FIXME: insert proper C++ library support
18845 ld_shlibs_CXX=no
18846 ;;
18847 *)
18848 # FIXME: insert proper C++ library support
18849 ld_shlibs_CXX=no
18850 ;;
18851 esac
18852 ;;
18853
18854 freebsd2.*)
18855 # C++ shared libraries reported to be fairly broken before
18856 # switch to ELF
18857 ld_shlibs_CXX=no
18858 ;;
18859
18860 freebsd-elf*)
18861 archive_cmds_need_lc_CXX=no
18862 ;;
18863
18864 freebsd* | dragonfly*)
18865 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18866 # conventions
18867 ld_shlibs_CXX=yes
18868 ;;
18869
18870 gnu*)
18871 ;;
18872
18873 haiku*)
18874 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18875 link_all_deplibs_CXX=yes
18876 ;;
18877
18878 hpux9*)
18879 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18880 hardcode_libdir_separator_CXX=:
18881 export_dynamic_flag_spec_CXX='${wl}-E'
18882 hardcode_direct_CXX=yes
18883 hardcode_minus_L_CXX=yes # Not in the search PATH,
18884 # but as the default
18885 # location of the library.
18886
18887 case $cc_basename in
18888 CC*)
18889 # FIXME: insert proper C++ library support
18890 ld_shlibs_CXX=no
18891 ;;
18892 aCC*)
18893 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18894 # Commands to make compiler produce verbose output that lists
18895 # what "hidden" libraries, object files and flags are used when
18896 # linking a shared library.
18897 #
18898 # There doesn't appear to be a way to prevent this compiler from
18899 # explicitly linking system object files so we need to strip them
18900 # from the output so that they don't get included in the library
18901 # dependencies.
18902 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
18903 ;;
18904 *)
18905 if test "$GXX" = yes; then
18906 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18907 else
18908 # FIXME: insert proper C++ library support
18909 ld_shlibs_CXX=no
18910 fi
18911 ;;
18912 esac
18913 ;;
18914
18915 hpux10*|hpux11*)
18916 if test $with_gnu_ld = no; then
18917 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18918 hardcode_libdir_separator_CXX=:
18919
18920 case $host_cpu in
18921 hppa*64*|ia64*)
18922 ;;
18923 *)
18924 export_dynamic_flag_spec_CXX='${wl}-E'
18925 ;;
18926 esac
18927 fi
18928 case $host_cpu in
18929 hppa*64*|ia64*)
18930 hardcode_direct_CXX=no
18931 hardcode_shlibpath_var_CXX=no
18932 ;;
18933 *)
18934 hardcode_direct_CXX=yes
18935 hardcode_direct_absolute_CXX=yes
18936 hardcode_minus_L_CXX=yes # Not in the search PATH,
18937 # but as the default
18938 # location of the library.
18939 ;;
18940 esac
18941
18942 case $cc_basename in
18943 CC*)
18944 # FIXME: insert proper C++ library support
18945 ld_shlibs_CXX=no
18946 ;;
18947 aCC*)
18948 case $host_cpu in
18949 hppa*64*)
18950 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18951 ;;
18952 ia64*)
18953 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18954 ;;
18955 *)
18956 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18957 ;;
18958 esac
18959 # Commands to make compiler produce verbose output that lists
18960 # what "hidden" libraries, object files and flags are used when
18961 # linking a shared library.
18962 #
18963 # There doesn't appear to be a way to prevent this compiler from
18964 # explicitly linking system object files so we need to strip them
18965 # from the output so that they don't get included in the library
18966 # dependencies.
18967 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
18968 ;;
18969 *)
18970 if test "$GXX" = yes; then
18971 if test $with_gnu_ld = no; then
18972 case $host_cpu in
18973 hppa*64*)
18974 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18975 ;;
18976 ia64*)
18977 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18978 ;;
18979 *)
18980 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18981 ;;
18982 esac
18983 fi
18984 else
18985 # FIXME: insert proper C++ library support
18986 ld_shlibs_CXX=no
18987 fi
18988 ;;
18989 esac
18990 ;;
18991
18992 interix[3-9]*)
18993 hardcode_direct_CXX=no
18994 hardcode_shlibpath_var_CXX=no
18995 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18996 export_dynamic_flag_spec_CXX='${wl}-E'
18997 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18998 # Instead, shared libraries are loaded at an image base (0x10000000 by
18999 # default) and relocated if they conflict, which is a slow very memory
19000 # consuming and fragmenting process. To avoid this, we pick a random,
19001 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19002 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19003 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19004 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19005 ;;
19006 irix5* | irix6*)
19007 case $cc_basename in
19008 CC*)
19009 # SGI C++
19010 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19011
19012 # Archives containing C++ object files must be created using
19013 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19014 # necessary to make sure instantiated templates are included
19015 # in the archive.
19016 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19017 ;;
19018 *)
19019 if test "$GXX" = yes; then
19020 if test "$with_gnu_ld" = no; then
19021 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19022 else
19023 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
19024 fi
19025 fi
19026 link_all_deplibs_CXX=yes
19027 ;;
19028 esac
19029 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19030 hardcode_libdir_separator_CXX=:
19031 inherit_rpath_CXX=yes
19032 ;;
19033
19034 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19035 case $cc_basename in
19036 KCC*)
19037 # Kuck and Associates, Inc. (KAI) C++ Compiler
19038
19039 # KCC will only create a shared library if the output file
19040 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19041 # to its proper name (with version) after linking.
19042 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19043 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
19044 # Commands to make compiler produce verbose output that lists
19045 # what "hidden" libraries, object files and flags are used when
19046 # linking a shared library.
19047 #
19048 # There doesn't appear to be a way to prevent this compiler from
19049 # explicitly linking system object files so we need to strip them
19050 # from the output so that they don't get included in the library
19051 # dependencies.
19052 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19053
19054 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19055 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19056
19057 # Archives containing C++ object files must be created using
19058 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19059 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19060 ;;
19061 icpc* | ecpc* )
19062 # Intel C++
19063 with_gnu_ld=yes
19064 # version 8.0 and above of icpc choke on multiply defined symbols
19065 # if we add $predep_objects and $postdep_objects, however 7.1 and
19066 # earlier do not add the objects themselves.
19067 case `$CC -V 2>&1` in
19068 *"Version 7."*)
19069 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19070 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19071 ;;
19072 *) # Version 8.0 or newer
19073 tmp_idyn=
19074 case $host_cpu in
19075 ia64*) tmp_idyn=' -i_dynamic';;
19076 esac
19077 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19078 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19079 ;;
19080 esac
19081 archive_cmds_need_lc_CXX=no
19082 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19083 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19084 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19085 ;;
19086 pgCC* | pgcpp*)
19087 # Portland Group C++ compiler
19088 case `$CC -V` in
19089 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19090 prelink_cmds_CXX='tpldir=Template.dir~
19091 rm -rf $tpldir~
19092 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19093 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19094 old_archive_cmds_CXX='tpldir=Template.dir~
19095 rm -rf $tpldir~
19096 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19097 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19098 $RANLIB $oldlib'
19099 archive_cmds_CXX='tpldir=Template.dir~
19100 rm -rf $tpldir~
19101 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19102 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19103 archive_expsym_cmds_CXX='tpldir=Template.dir~
19104 rm -rf $tpldir~
19105 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19106 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19107 ;;
19108 *) # Version 6 and above use weak symbols
19109 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19110 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19111 ;;
19112 esac
19113
19114 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19115 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19116 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
19117 ;;
19118 cxx*)
19119 # Compaq C++
19120 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19121 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
19122
19123 runpath_var=LD_RUN_PATH
19124 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19125 hardcode_libdir_separator_CXX=:
19126
19127 # Commands to make compiler produce verbose output that lists
19128 # what "hidden" libraries, object files and flags are used when
19129 # linking a shared library.
19130 #
19131 # There doesn't appear to be a way to prevent this compiler from
19132 # explicitly linking system object files so we need to strip them
19133 # from the output so that they don't get included in the library
19134 # dependencies.
19135 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
19136 ;;
19137 xl* | mpixl* | bgxl*)
19138 # IBM XL 8.0 on PPC, with GNU ld
19139 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19140 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19141 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19142 if test "x$supports_anon_versioning" = xyes; then
19143 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19144 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19145 echo "local: *; };" >> $output_objdir/$libname.ver~
19146 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19147 fi
19148 ;;
19149 *)
19150 case `$CC -V 2>&1 | sed 5q` in
19151 *Sun\ C*)
19152 # Sun C++ 5.9
19153 no_undefined_flag_CXX=' -zdefs'
19154 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19155 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
19156 hardcode_libdir_flag_spec_CXX='-R$libdir'
19157 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
19158 compiler_needs_object_CXX=yes
19159
19160 # Not sure whether something based on
19161 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19162 # would be better.
19163 output_verbose_link_cmd='func_echo_all'
19164
19165 # Archives containing C++ object files must be created using
19166 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19167 # necessary to make sure instantiated templates are included
19168 # in the archive.
19169 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19170 ;;
19171 esac
19172 ;;
19173 esac
19174 ;;
19175
19176 lynxos*)
19177 # FIXME: insert proper C++ library support
19178 ld_shlibs_CXX=no
19179 ;;
19180
19181 m88k*)
19182 # FIXME: insert proper C++ library support
19183 ld_shlibs_CXX=no
19184 ;;
19185
19186 mvs*)
19187 case $cc_basename in
19188 cxx*)
19189 # FIXME: insert proper C++ library support
19190 ld_shlibs_CXX=no
19191 ;;
19192 *)
19193 # FIXME: insert proper C++ library support
19194 ld_shlibs_CXX=no
19195 ;;
19196 esac
19197 ;;
19198
19199 netbsd*)
19200 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19201 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19202 wlarc=
19203 hardcode_libdir_flag_spec_CXX='-R$libdir'
19204 hardcode_direct_CXX=yes
19205 hardcode_shlibpath_var_CXX=no
19206 fi
19207 # Workaround some broken pre-1.5 toolchains
19208 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19209 ;;
19210
19211 *nto* | *qnx*)
19212 ld_shlibs_CXX=yes
19213 ;;
19214
19215 openbsd2*)
19216 # C++ shared libraries are fairly broken
19217 ld_shlibs_CXX=no
19218 ;;
19219
19220 openbsd*)
19221 if test -f /usr/libexec/ld.so; then
19222 hardcode_direct_CXX=yes
19223 hardcode_shlibpath_var_CXX=no
19224 hardcode_direct_absolute_CXX=yes
19225 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19226 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19227 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19228 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19229 export_dynamic_flag_spec_CXX='${wl}-E'
19230 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19231 fi
19232 output_verbose_link_cmd=func_echo_all
19233 else
19234 ld_shlibs_CXX=no
19235 fi
19236 ;;
19237
19238 osf3* | osf4* | osf5*)
19239 case $cc_basename in
19240 KCC*)
19241 # Kuck and Associates, Inc. (KAI) C++ Compiler
19242
19243 # KCC will only create a shared library if the output file
19244 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19245 # to its proper name (with version) after linking.
19246 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19247
19248 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19249 hardcode_libdir_separator_CXX=:
19250
19251 # Archives containing C++ object files must be created using
19252 # the KAI C++ compiler.
19253 case $host in
19254 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19255 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19256 esac
19257 ;;
19258 RCC*)
19259 # Rational C++ 2.4.1
19260 # FIXME: insert proper C++ library support
19261 ld_shlibs_CXX=no
19262 ;;
19263 cxx*)
19264 case $host in
19265 osf3*)
19266 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19267 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19268 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19269 ;;
19270 *)
19271 allow_undefined_flag_CXX=' -expect_unresolved \*'
19272 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19273 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19274 echo "-hidden">> $lib.exp~
19275 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
19276 $RM $lib.exp'
19277 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19278 ;;
19279 esac
19280
19281 hardcode_libdir_separator_CXX=:
19282
19283 # Commands to make compiler produce verbose output that lists
19284 # what "hidden" libraries, object files and flags are used when
19285 # linking a shared library.
19286 #
19287 # There doesn't appear to be a way to prevent this compiler from
19288 # explicitly linking system object files so we need to strip them
19289 # from the output so that they don't get included in the library
19290 # dependencies.
19291 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19292 ;;
19293 *)
19294 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19295 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19296 case $host in
19297 osf3*)
19298 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19299 ;;
19300 *)
19301 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19302 ;;
19303 esac
19304
19305 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19306 hardcode_libdir_separator_CXX=:
19307
19308 # Commands to make compiler produce verbose output that lists
19309 # what "hidden" libraries, object files and flags are used when
19310 # linking a shared library.
19311 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19312
19313 else
19314 # FIXME: insert proper C++ library support
19315 ld_shlibs_CXX=no
19316 fi
19317 ;;
19318 esac
19319 ;;
19320
19321 psos*)
19322 # FIXME: insert proper C++ library support
19323 ld_shlibs_CXX=no
19324 ;;
19325
19326 sunos4*)
19327 case $cc_basename in
19328 CC*)
19329 # Sun C++ 4.x
19330 # FIXME: insert proper C++ library support
19331 ld_shlibs_CXX=no
19332 ;;
19333 lcc*)
19334 # Lucid
19335 # FIXME: insert proper C++ library support
19336 ld_shlibs_CXX=no
19337 ;;
19338 *)
19339 # FIXME: insert proper C++ library support
19340 ld_shlibs_CXX=no
19341 ;;
19342 esac
19343 ;;
19344
19345 solaris*)
19346 case $cc_basename in
19347 CC*)
19348 # Sun C++ 4.2, 5.x and Centerline C++
19349 archive_cmds_need_lc_CXX=yes
19350 no_undefined_flag_CXX=' -zdefs'
19351 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19352 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19353 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19354
19355 hardcode_libdir_flag_spec_CXX='-R$libdir'
19356 hardcode_shlibpath_var_CXX=no
19357 case $host_os in
19358 solaris2.[0-5] | solaris2.[0-5].*) ;;
19359 *)
19360 # The compiler driver will combine and reorder linker options,
19361 # but understands `-z linker_flag'.
19362 # Supported since Solaris 2.6 (maybe 2.5.1?)
19363 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19364 ;;
19365 esac
19366 link_all_deplibs_CXX=yes
19367
19368 output_verbose_link_cmd='func_echo_all'
19369
19370 # Archives containing C++ object files must be created using
19371 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19372 # necessary to make sure instantiated templates are included
19373 # in the archive.
19374 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19375 ;;
19376 gcx*)
19377 # Green Hills C++ Compiler
19378 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19379
19380 # The C++ compiler must be used to create the archive.
19381 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19382 ;;
19383 *)
19384 # GNU C++ compiler with Solaris linker
19385 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19386 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19387 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19388 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19389 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19390 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19391
19392 # Commands to make compiler produce verbose output that lists
19393 # what "hidden" libraries, object files and flags are used when
19394 # linking a shared library.
19395 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19396 else
19397 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19398 # platform.
19399 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19400 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19401 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19402
19403 # Commands to make compiler produce verbose output that lists
19404 # what "hidden" libraries, object files and flags are used when
19405 # linking a shared library.
19406 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19407 fi
19408
19409 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19410 case $host_os in
19411 solaris2.[0-5] | solaris2.[0-5].*) ;;
19412 *)
19413 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19414 ;;
19415 esac
19416 fi
19417 ;;
19418 esac
19419 ;;
19420
19421 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19422 no_undefined_flag_CXX='${wl}-z,text'
19423 archive_cmds_need_lc_CXX=no
19424 hardcode_shlibpath_var_CXX=no
19425 runpath_var='LD_RUN_PATH'
19426
19427 case $cc_basename in
19428 CC*)
19429 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19430 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19431 ;;
19432 *)
19433 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19434 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19435 ;;
19436 esac
19437 ;;
19438
19439 sysv5* | sco3.2v5* | sco5v6*)
19440 # Note: We can NOT use -z defs as we might desire, because we do not
19441 # link with -lc, and that would cause any symbols used from libc to
19442 # always be unresolved, which means just about no library would
19443 # ever link correctly. If we're not using GNU ld we use -z text
19444 # though, which does catch some bad symbols but isn't as heavy-handed
19445 # as -z defs.
19446 no_undefined_flag_CXX='${wl}-z,text'
19447 allow_undefined_flag_CXX='${wl}-z,nodefs'
19448 archive_cmds_need_lc_CXX=no
19449 hardcode_shlibpath_var_CXX=no
19450 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19451 hardcode_libdir_separator_CXX=':'
19452 link_all_deplibs_CXX=yes
19453 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19454 runpath_var='LD_RUN_PATH'
19455
19456 case $cc_basename in
19457 CC*)
19458 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19459 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19460 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19461 '"$old_archive_cmds_CXX"
19462 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19463 '"$reload_cmds_CXX"
19464 ;;
19465 *)
19466 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19467 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19468 ;;
19469 esac
19470 ;;
19471
19472 tandem*)
19473 case $cc_basename in
19474 NCC*)
19475 # NonStop-UX NCC 3.20
19476 # FIXME: insert proper C++ library support
19477 ld_shlibs_CXX=no
19478 ;;
19479 *)
19480 # FIXME: insert proper C++ library support
19481 ld_shlibs_CXX=no
19482 ;;
19483 esac
19484 ;;
19485
19486 vxworks*)
19487 # FIXME: insert proper C++ library support
19488 ld_shlibs_CXX=no
19489 ;;
19490
19491 *)
19492 # FIXME: insert proper C++ library support
19493 ld_shlibs_CXX=no
19494 ;;
19495 esac
19496
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19498 $as_echo "$ld_shlibs_CXX" >&6; }
19499 test "$ld_shlibs_CXX" = no && can_build_shared=no
19500
19501 GCC_CXX="$GXX"
19502 LD_CXX="$LD"
19503
19504 ## CAVEAT EMPTOR:
19505 ## There is no encapsulation within the following macros, do not change
19506 ## the running order or otherwise move them around unless you know exactly
19507 ## what you are doing...
19508 # Dependencies to place before and after the object being linked:
19509 predep_objects_CXX=
19510 postdep_objects_CXX=
19511 predeps_CXX=
19512 postdeps_CXX=
19513 compiler_lib_search_path_CXX=
19514
19515 cat > conftest.$ac_ext <<_LT_EOF
19516 class Foo
19517 {
19518 public:
19519 Foo (void) { a = 0; }
19520 private:
19521 int a;
19522 };
19523 _LT_EOF
19524
19525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19526 (eval $ac_compile) 2>&5
19527 ac_status=$?
19528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19529 test $ac_status = 0; }; then
19530 # Parse the compiler output and extract the necessary
19531 # objects, libraries and library flags.
19532
19533 # Sentinel used to keep track of whether or not we are before
19534 # the conftest object file.
19535 pre_test_object_deps_done=no
19536
19537 for p in `eval "$output_verbose_link_cmd"`; do
19538 case $p in
19539
19540 -L* | -R* | -l*)
19541 # Some compilers place space between "-{L,R}" and the path.
19542 # Remove the space.
19543 if test $p = "-L" ||
19544 test $p = "-R"; then
19545 prev=$p
19546 continue
19547 else
19548 prev=
19549 fi
19550
19551 if test "$pre_test_object_deps_done" = no; then
19552 case $p in
19553 -L* | -R*)
19554 # Internal compiler library paths should come after those
19555 # provided the user. The postdeps already come after the
19556 # user supplied libs so there is no need to process them.
19557 if test -z "$compiler_lib_search_path_CXX"; then
19558 compiler_lib_search_path_CXX="${prev}${p}"
19559 else
19560 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19561 fi
19562 ;;
19563 # The "-l" case would never come before the object being
19564 # linked, so don't bother handling this case.
19565 esac
19566 else
19567 if test -z "$postdeps_CXX"; then
19568 postdeps_CXX="${prev}${p}"
19569 else
19570 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19571 fi
19572 fi
19573 ;;
19574
19575 *.$objext)
19576 # This assumes that the test object file only shows up
19577 # once in the compiler output.
19578 if test "$p" = "conftest.$objext"; then
19579 pre_test_object_deps_done=yes
19580 continue
19581 fi
19582
19583 if test "$pre_test_object_deps_done" = no; then
19584 if test -z "$predep_objects_CXX"; then
19585 predep_objects_CXX="$p"
19586 else
19587 predep_objects_CXX="$predep_objects_CXX $p"
19588 fi
19589 else
19590 if test -z "$postdep_objects_CXX"; then
19591 postdep_objects_CXX="$p"
19592 else
19593 postdep_objects_CXX="$postdep_objects_CXX $p"
19594 fi
19595 fi
19596 ;;
19597
19598 *) ;; # Ignore the rest.
19599
19600 esac
19601 done
19602
19603 # Clean up.
19604 rm -f a.out a.exe
19605 else
19606 echo "libtool.m4: error: problem compiling CXX test program"
19607 fi
19608
19609 $RM -f confest.$objext
19610
19611 # PORTME: override above test on systems where it is broken
19612 case $host_os in
19613 interix[3-9]*)
19614 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19615 # hack all around it, let's just trust "g++" to DTRT.
19616 predep_objects_CXX=
19617 postdep_objects_CXX=
19618 postdeps_CXX=
19619 ;;
19620
19621 linux*)
19622 case `$CC -V 2>&1 | sed 5q` in
19623 *Sun\ C*)
19624 # Sun C++ 5.9
19625
19626 # The more standards-conforming stlport4 library is
19627 # incompatible with the Cstd library. Avoid specifying
19628 # it if it's in CXXFLAGS. Ignore libCrun as
19629 # -library=stlport4 depends on it.
19630 case " $CXX $CXXFLAGS " in
19631 *" -library=stlport4 "*)
19632 solaris_use_stlport4=yes
19633 ;;
19634 esac
19635
19636 if test "$solaris_use_stlport4" != yes; then
19637 postdeps_CXX='-library=Cstd -library=Crun'
19638 fi
19639 ;;
19640 esac
19641 ;;
19642
19643 solaris*)
19644 case $cc_basename in
19645 CC*)
19646 # The more standards-conforming stlport4 library is
19647 # incompatible with the Cstd library. Avoid specifying
19648 # it if it's in CXXFLAGS. Ignore libCrun as
19649 # -library=stlport4 depends on it.
19650 case " $CXX $CXXFLAGS " in
19651 *" -library=stlport4 "*)
19652 solaris_use_stlport4=yes
19653 ;;
19654 esac
19655
19656 # Adding this requires a known-good setup of shared libraries for
19657 # Sun compiler versions before 5.6, else PIC objects from an old
19658 # archive will be linked into the output, leading to subtle bugs.
19659 if test "$solaris_use_stlport4" != yes; then
19660 postdeps_CXX='-library=Cstd -library=Crun'
19661 fi
19662 ;;
19663 esac
19664 ;;
19665 esac
19666
19667
19668 case " $postdeps_CXX " in
19669 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19670 esac
19671 compiler_lib_search_dirs_CXX=
19672 if test -n "${compiler_lib_search_path_CXX}"; then
19673 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19674 fi
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706 lt_prog_compiler_wl_CXX=
19707 lt_prog_compiler_pic_CXX=
19708 lt_prog_compiler_static_CXX=
19709
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19711 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19712
19713 # C++ specific cases for pic, static, wl, etc.
19714 if test "$GXX" = yes; then
19715 lt_prog_compiler_wl_CXX='-Wl,'
19716 lt_prog_compiler_static_CXX='-static'
19717
19718 case $host_os in
19719 aix*)
19720 # All AIX code is PIC.
19721 if test "$host_cpu" = ia64; then
19722 # AIX 5 now supports IA64 processor
19723 lt_prog_compiler_static_CXX='-Bstatic'
19724 fi
19725 lt_prog_compiler_pic_CXX='-fPIC'
19726 ;;
19727
19728 amigaos*)
19729 case $host_cpu in
19730 powerpc)
19731 # see comment about AmigaOS4 .so support
19732 lt_prog_compiler_pic_CXX='-fPIC'
19733 ;;
19734 m68k)
19735 # FIXME: we need at least 68020 code to build shared libraries, but
19736 # adding the `-m68020' flag to GCC prevents building anything better,
19737 # like `-m68040'.
19738 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19739 ;;
19740 esac
19741 ;;
19742
19743 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19744 # PIC is the default for these OSes.
19745 ;;
19746 mingw* | cygwin* | os2* | pw32* | cegcc*)
19747 # This hack is so that the source file can tell whether it is being
19748 # built for inclusion in a dll (and should export symbols for example).
19749 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19750 # (--disable-auto-import) libraries
19751 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19752 ;;
19753 darwin* | rhapsody*)
19754 # PIC is the default on this platform
19755 # Common symbols not allowed in MH_DYLIB files
19756 lt_prog_compiler_pic_CXX='-fno-common'
19757 ;;
19758 *djgpp*)
19759 # DJGPP does not support shared libraries at all
19760 lt_prog_compiler_pic_CXX=
19761 ;;
19762 haiku*)
19763 # PIC is the default for Haiku.
19764 # The "-static" flag exists, but is broken.
19765 lt_prog_compiler_static_CXX=
19766 ;;
19767 interix[3-9]*)
19768 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19769 # Instead, we relocate shared libraries at runtime.
19770 ;;
19771 sysv4*MP*)
19772 if test -d /usr/nec; then
19773 lt_prog_compiler_pic_CXX=-Kconform_pic
19774 fi
19775 ;;
19776 hpux*)
19777 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19778 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19779 # sets the default TLS model and affects inlining.
19780 case $host_cpu in
19781 hppa*64*)
19782 ;;
19783 *)
19784 lt_prog_compiler_pic_CXX='-fPIC'
19785 ;;
19786 esac
19787 ;;
19788 *qnx* | *nto*)
19789 # QNX uses GNU C++, but need to define -shared option too, otherwise
19790 # it will coredump.
19791 lt_prog_compiler_pic_CXX='-fPIC -shared'
19792 ;;
19793 *)
19794 lt_prog_compiler_pic_CXX='-fPIC'
19795 ;;
19796 esac
19797 else
19798 case $host_os in
19799 aix[4-9]*)
19800 # All AIX code is PIC.
19801 if test "$host_cpu" = ia64; then
19802 # AIX 5 now supports IA64 processor
19803 lt_prog_compiler_static_CXX='-Bstatic'
19804 else
19805 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19806 fi
19807 ;;
19808 chorus*)
19809 case $cc_basename in
19810 cxch68*)
19811 # Green Hills C++ Compiler
19812 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
19813 ;;
19814 esac
19815 ;;
19816 dgux*)
19817 case $cc_basename in
19818 ec++*)
19819 lt_prog_compiler_pic_CXX='-KPIC'
19820 ;;
19821 ghcx*)
19822 # Green Hills C++ Compiler
19823 lt_prog_compiler_pic_CXX='-pic'
19824 ;;
19825 *)
19826 ;;
19827 esac
19828 ;;
19829 freebsd* | dragonfly*)
19830 # FreeBSD uses GNU C++
19831 ;;
19832 hpux9* | hpux10* | hpux11*)
19833 case $cc_basename in
19834 CC*)
19835 lt_prog_compiler_wl_CXX='-Wl,'
19836 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19837 if test "$host_cpu" != ia64; then
19838 lt_prog_compiler_pic_CXX='+Z'
19839 fi
19840 ;;
19841 aCC*)
19842 lt_prog_compiler_wl_CXX='-Wl,'
19843 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19844 case $host_cpu in
19845 hppa*64*|ia64*)
19846 # +Z the default
19847 ;;
19848 *)
19849 lt_prog_compiler_pic_CXX='+Z'
19850 ;;
19851 esac
19852 ;;
19853 *)
19854 ;;
19855 esac
19856 ;;
19857 interix*)
19858 # This is c89, which is MS Visual C++ (no shared libs)
19859 # Anyone wants to do a port?
19860 ;;
19861 irix5* | irix6* | nonstopux*)
19862 case $cc_basename in
19863 CC*)
19864 lt_prog_compiler_wl_CXX='-Wl,'
19865 lt_prog_compiler_static_CXX='-non_shared'
19866 # CC pic flag -KPIC is the default.
19867 ;;
19868 *)
19869 ;;
19870 esac
19871 ;;
19872 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19873 case $cc_basename in
19874 KCC*)
19875 # KAI C++ Compiler
19876 lt_prog_compiler_wl_CXX='--backend -Wl,'
19877 lt_prog_compiler_pic_CXX='-fPIC'
19878 ;;
19879 ecpc* )
19880 # old Intel C++ for x86_64 which still supported -KPIC.
19881 lt_prog_compiler_wl_CXX='-Wl,'
19882 lt_prog_compiler_pic_CXX='-KPIC'
19883 lt_prog_compiler_static_CXX='-static'
19884 ;;
19885 icpc* )
19886 # Intel C++, used to be incompatible with GCC.
19887 # ICC 10 doesn't accept -KPIC any more.
19888 lt_prog_compiler_wl_CXX='-Wl,'
19889 lt_prog_compiler_pic_CXX='-fPIC'
19890 lt_prog_compiler_static_CXX='-static'
19891 ;;
19892 pgCC* | pgcpp*)
19893 # Portland Group C++ compiler
19894 lt_prog_compiler_wl_CXX='-Wl,'
19895 lt_prog_compiler_pic_CXX='-fpic'
19896 lt_prog_compiler_static_CXX='-Bstatic'
19897 ;;
19898 cxx*)
19899 # Compaq C++
19900 # Make sure the PIC flag is empty. It appears that all Alpha
19901 # Linux and Compaq Tru64 Unix objects are PIC.
19902 lt_prog_compiler_pic_CXX=
19903 lt_prog_compiler_static_CXX='-non_shared'
19904 ;;
19905 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19906 # IBM XL 8.0, 9.0 on PPC and BlueGene
19907 lt_prog_compiler_wl_CXX='-Wl,'
19908 lt_prog_compiler_pic_CXX='-qpic'
19909 lt_prog_compiler_static_CXX='-qstaticlink'
19910 ;;
19911 *)
19912 case `$CC -V 2>&1 | sed 5q` in
19913 *Sun\ C*)
19914 # Sun C++ 5.9
19915 lt_prog_compiler_pic_CXX='-KPIC'
19916 lt_prog_compiler_static_CXX='-Bstatic'
19917 lt_prog_compiler_wl_CXX='-Qoption ld '
19918 ;;
19919 esac
19920 ;;
19921 esac
19922 ;;
19923 lynxos*)
19924 ;;
19925 m88k*)
19926 ;;
19927 mvs*)
19928 case $cc_basename in
19929 cxx*)
19930 lt_prog_compiler_pic_CXX='-W c,exportall'
19931 ;;
19932 *)
19933 ;;
19934 esac
19935 ;;
19936 netbsd*)
19937 ;;
19938 *qnx* | *nto*)
19939 # QNX uses GNU C++, but need to define -shared option too, otherwise
19940 # it will coredump.
19941 lt_prog_compiler_pic_CXX='-fPIC -shared'
19942 ;;
19943 osf3* | osf4* | osf5*)
19944 case $cc_basename in
19945 KCC*)
19946 lt_prog_compiler_wl_CXX='--backend -Wl,'
19947 ;;
19948 RCC*)
19949 # Rational C++ 2.4.1
19950 lt_prog_compiler_pic_CXX='-pic'
19951 ;;
19952 cxx*)
19953 # Digital/Compaq C++
19954 lt_prog_compiler_wl_CXX='-Wl,'
19955 # Make sure the PIC flag is empty. It appears that all Alpha
19956 # Linux and Compaq Tru64 Unix objects are PIC.
19957 lt_prog_compiler_pic_CXX=
19958 lt_prog_compiler_static_CXX='-non_shared'
19959 ;;
19960 *)
19961 ;;
19962 esac
19963 ;;
19964 psos*)
19965 ;;
19966 solaris*)
19967 case $cc_basename in
19968 CC*)
19969 # Sun C++ 4.2, 5.x and Centerline C++
19970 lt_prog_compiler_pic_CXX='-KPIC'
19971 lt_prog_compiler_static_CXX='-Bstatic'
19972 lt_prog_compiler_wl_CXX='-Qoption ld '
19973 ;;
19974 gcx*)
19975 # Green Hills C++ Compiler
19976 lt_prog_compiler_pic_CXX='-PIC'
19977 ;;
19978 *)
19979 ;;
19980 esac
19981 ;;
19982 sunos4*)
19983 case $cc_basename in
19984 CC*)
19985 # Sun C++ 4.x
19986 lt_prog_compiler_pic_CXX='-pic'
19987 lt_prog_compiler_static_CXX='-Bstatic'
19988 ;;
19989 lcc*)
19990 # Lucid
19991 lt_prog_compiler_pic_CXX='-pic'
19992 ;;
19993 *)
19994 ;;
19995 esac
19996 ;;
19997 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19998 case $cc_basename in
19999 CC*)
20000 lt_prog_compiler_wl_CXX='-Wl,'
20001 lt_prog_compiler_pic_CXX='-KPIC'
20002 lt_prog_compiler_static_CXX='-Bstatic'
20003 ;;
20004 esac
20005 ;;
20006 tandem*)
20007 case $cc_basename in
20008 NCC*)
20009 # NonStop-UX NCC 3.20
20010 lt_prog_compiler_pic_CXX='-KPIC'
20011 ;;
20012 *)
20013 ;;
20014 esac
20015 ;;
20016 vxworks*)
20017 ;;
20018 *)
20019 lt_prog_compiler_can_build_shared_CXX=no
20020 ;;
20021 esac
20022 fi
20023
20024 case $host_os in
20025 # For platforms which do not support PIC, -DPIC is meaningless:
20026 *djgpp*)
20027 lt_prog_compiler_pic_CXX=
20028 ;;
20029 *)
20030 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20031 ;;
20032 esac
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20034 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20035
20036
20037
20038 #
20039 # Check to make sure the PIC flag actually works.
20040 #
20041 if test -n "$lt_prog_compiler_pic_CXX"; then
20042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20043 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20044 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20045 $as_echo_n "(cached) " >&6
20046 else
20047 lt_cv_prog_compiler_pic_works_CXX=no
20048 ac_outfile=conftest.$ac_objext
20049 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20050 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20051 # Insert the option either (1) after the last *FLAGS variable, or
20052 # (2) before a word containing "conftest.", or (3) at the end.
20053 # Note that $ac_compile itself does not contain backslashes and begins
20054 # with a dollar sign (not a hyphen), so the echo should work correctly.
20055 # The option is referenced via a variable to avoid confusing sed.
20056 lt_compile=`echo "$ac_compile" | $SED \
20057 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20058 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20059 -e 's:$: $lt_compiler_flag:'`
20060 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20061 (eval "$lt_compile" 2>conftest.err)
20062 ac_status=$?
20063 cat conftest.err >&5
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 if (exit $ac_status) && test -s "$ac_outfile"; then
20066 # The compiler can only warn and ignore the option if not recognized
20067 # So say no if there are warnings other than the usual output.
20068 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20069 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20070 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20071 lt_cv_prog_compiler_pic_works_CXX=yes
20072 fi
20073 fi
20074 $RM conftest*
20075
20076 fi
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20078 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20079
20080 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20081 case $lt_prog_compiler_pic_CXX in
20082 "" | " "*) ;;
20083 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20084 esac
20085 else
20086 lt_prog_compiler_pic_CXX=
20087 lt_prog_compiler_can_build_shared_CXX=no
20088 fi
20089
20090 fi
20091
20092
20093
20094 #
20095 # Check to make sure the static flag actually works.
20096 #
20097 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20099 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20100 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20101 $as_echo_n "(cached) " >&6
20102 else
20103 lt_cv_prog_compiler_static_works_CXX=no
20104 save_LDFLAGS="$LDFLAGS"
20105 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20106 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20107 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20108 # The linker can only warn and ignore the option if not recognized
20109 # So say no if there are warnings
20110 if test -s conftest.err; then
20111 # Append any errors to the config.log.
20112 cat conftest.err 1>&5
20113 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20115 if diff conftest.exp conftest.er2 >/dev/null; then
20116 lt_cv_prog_compiler_static_works_CXX=yes
20117 fi
20118 else
20119 lt_cv_prog_compiler_static_works_CXX=yes
20120 fi
20121 fi
20122 $RM -r conftest*
20123 LDFLAGS="$save_LDFLAGS"
20124
20125 fi
20126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20127 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20128
20129 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20130 :
20131 else
20132 lt_prog_compiler_static_CXX=
20133 fi
20134
20135
20136
20137
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20139 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20140 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20141 $as_echo_n "(cached) " >&6
20142 else
20143 lt_cv_prog_compiler_c_o_CXX=no
20144 $RM -r conftest 2>/dev/null
20145 mkdir conftest
20146 cd conftest
20147 mkdir out
20148 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20149
20150 lt_compiler_flag="-o out/conftest2.$ac_objext"
20151 # Insert the option either (1) after the last *FLAGS variable, or
20152 # (2) before a word containing "conftest.", or (3) at the end.
20153 # Note that $ac_compile itself does not contain backslashes and begins
20154 # with a dollar sign (not a hyphen), so the echo should work correctly.
20155 lt_compile=`echo "$ac_compile" | $SED \
20156 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20157 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20158 -e 's:$: $lt_compiler_flag:'`
20159 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20160 (eval "$lt_compile" 2>out/conftest.err)
20161 ac_status=$?
20162 cat out/conftest.err >&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20165 then
20166 # The compiler can only warn and ignore the option if not recognized
20167 # So say no if there are warnings
20168 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20169 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20170 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20171 lt_cv_prog_compiler_c_o_CXX=yes
20172 fi
20173 fi
20174 chmod u+w . 2>&5
20175 $RM conftest*
20176 # SGI C++ compiler will create directory out/ii_files/ for
20177 # template instantiation
20178 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20179 $RM out/* && rmdir out
20180 cd ..
20181 $RM -r conftest
20182 $RM conftest*
20183
20184 fi
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20186 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20187
20188
20189
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20191 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20192 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20193 $as_echo_n "(cached) " >&6
20194 else
20195 lt_cv_prog_compiler_c_o_CXX=no
20196 $RM -r conftest 2>/dev/null
20197 mkdir conftest
20198 cd conftest
20199 mkdir out
20200 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20201
20202 lt_compiler_flag="-o out/conftest2.$ac_objext"
20203 # Insert the option either (1) after the last *FLAGS variable, or
20204 # (2) before a word containing "conftest.", or (3) at the end.
20205 # Note that $ac_compile itself does not contain backslashes and begins
20206 # with a dollar sign (not a hyphen), so the echo should work correctly.
20207 lt_compile=`echo "$ac_compile" | $SED \
20208 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20210 -e 's:$: $lt_compiler_flag:'`
20211 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20212 (eval "$lt_compile" 2>out/conftest.err)
20213 ac_status=$?
20214 cat out/conftest.err >&5
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20217 then
20218 # The compiler can only warn and ignore the option if not recognized
20219 # So say no if there are warnings
20220 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20221 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20222 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20223 lt_cv_prog_compiler_c_o_CXX=yes
20224 fi
20225 fi
20226 chmod u+w . 2>&5
20227 $RM conftest*
20228 # SGI C++ compiler will create directory out/ii_files/ for
20229 # template instantiation
20230 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20231 $RM out/* && rmdir out
20232 cd ..
20233 $RM -r conftest
20234 $RM conftest*
20235
20236 fi
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20238 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20239
20240
20241
20242
20243 hard_links="nottested"
20244 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20245 # do not overwrite the value of need_locks provided by the user
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20247 $as_echo_n "checking if we can lock with hard links... " >&6; }
20248 hard_links=yes
20249 $RM conftest*
20250 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20251 touch conftest.a
20252 ln conftest.a conftest.b 2>&5 || hard_links=no
20253 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20255 $as_echo "$hard_links" >&6; }
20256 if test "$hard_links" = no; then
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20258 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20259 need_locks=warn
20260 fi
20261 else
20262 need_locks=no
20263 fi
20264
20265
20266
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20268 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20269
20270 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20271 case $host_os in
20272 aix[4-9]*)
20273 # If we're using GNU nm, then we don't want the "-C" option.
20274 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20275 # Also, AIX nm treats weak defined symbols like other global defined
20276 # symbols, whereas GNU nm marks them as "W".
20277 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20278 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20279 else
20280 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20281 fi
20282 ;;
20283 pw32*)
20284 export_symbols_cmds_CXX="$ltdll_cmds"
20285 ;;
20286 cygwin* | mingw* | cegcc*)
20287 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
20288 ;;
20289 *)
20290 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20291 ;;
20292 esac
20293 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20294
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20296 $as_echo "$ld_shlibs_CXX" >&6; }
20297 test "$ld_shlibs_CXX" = no && can_build_shared=no
20298
20299 with_gnu_ld_CXX=$with_gnu_ld
20300
20301
20302
20303
20304
20305
20306 #
20307 # Do we need to explicitly link libc?
20308 #
20309 case "x$archive_cmds_need_lc_CXX" in
20310 x|xyes)
20311 # Assume -lc should be added
20312 archive_cmds_need_lc_CXX=yes
20313
20314 if test "$enable_shared" = yes && test "$GCC" = yes; then
20315 case $archive_cmds_CXX in
20316 *'~'*)
20317 # FIXME: we may have to deal with multi-command sequences.
20318 ;;
20319 '$CC '*)
20320 # Test whether the compiler implicitly links with -lc since on some
20321 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20322 # to ld, don't add -lc before -lgcc.
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20324 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20325 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20326 $as_echo_n "(cached) " >&6
20327 else
20328 $RM conftest*
20329 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20330
20331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20332 (eval $ac_compile) 2>&5
20333 ac_status=$?
20334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20335 test $ac_status = 0; } 2>conftest.err; then
20336 soname=conftest
20337 lib=conftest
20338 libobjs=conftest.$ac_objext
20339 deplibs=
20340 wl=$lt_prog_compiler_wl_CXX
20341 pic_flag=$lt_prog_compiler_pic_CXX
20342 compiler_flags=-v
20343 linker_flags=-v
20344 verstring=
20345 output_objdir=.
20346 libname=conftest
20347 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20348 allow_undefined_flag_CXX=
20349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20350 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20351 ac_status=$?
20352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20353 test $ac_status = 0; }
20354 then
20355 lt_cv_archive_cmds_need_lc_CXX=no
20356 else
20357 lt_cv_archive_cmds_need_lc_CXX=yes
20358 fi
20359 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20360 else
20361 cat conftest.err 1>&5
20362 fi
20363 $RM conftest*
20364
20365 fi
20366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20367 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20368 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20369 ;;
20370 esac
20371 fi
20372 ;;
20373 esac
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20439 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20440
20441 library_names_spec=
20442 libname_spec='lib$name'
20443 soname_spec=
20444 shrext_cmds=".so"
20445 postinstall_cmds=
20446 postuninstall_cmds=
20447 finish_cmds=
20448 finish_eval=
20449 shlibpath_var=
20450 shlibpath_overrides_runpath=unknown
20451 version_type=none
20452 dynamic_linker="$host_os ld.so"
20453 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20454 need_lib_prefix=unknown
20455 hardcode_into_libs=no
20456
20457 # when you set need_version to no, make sure it does not cause -set_version
20458 # flags to be left without arguments
20459 need_version=unknown
20460
20461 case $host_os in
20462 aix3*)
20463 version_type=linux
20464 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20465 shlibpath_var=LIBPATH
20466
20467 # AIX 3 has no versioning support, so we append a major version to the name.
20468 soname_spec='${libname}${release}${shared_ext}$major'
20469 ;;
20470
20471 aix[4-9]*)
20472 version_type=linux
20473 need_lib_prefix=no
20474 need_version=no
20475 hardcode_into_libs=yes
20476 if test "$host_cpu" = ia64; then
20477 # AIX 5 supports IA64
20478 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20479 shlibpath_var=LD_LIBRARY_PATH
20480 else
20481 # With GCC up to 2.95.x, collect2 would create an import file
20482 # for dependence libraries. The import file would start with
20483 # the line `#! .'. This would cause the generated library to
20484 # depend on `.', always an invalid library. This was fixed in
20485 # development snapshots of GCC prior to 3.0.
20486 case $host_os in
20487 aix4 | aix4.[01] | aix4.[01].*)
20488 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20489 echo ' yes '
20490 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20491 :
20492 else
20493 can_build_shared=no
20494 fi
20495 ;;
20496 esac
20497 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20498 # soname into executable. Probably we can add versioning support to
20499 # collect2, so additional links can be useful in future.
20500 if test "$aix_use_runtimelinking" = yes; then
20501 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20502 # instead of lib<name>.a to let people know that these are not
20503 # typical AIX shared libraries.
20504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20505 else
20506 # We preserve .a as extension for shared libraries through AIX4.2
20507 # and later when we are not doing run time linking.
20508 library_names_spec='${libname}${release}.a $libname.a'
20509 soname_spec='${libname}${release}${shared_ext}$major'
20510 fi
20511 shlibpath_var=LIBPATH
20512 fi
20513 ;;
20514
20515 amigaos*)
20516 case $host_cpu in
20517 powerpc)
20518 # Since July 2007 AmigaOS4 officially supports .so libraries.
20519 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20521 ;;
20522 m68k)
20523 library_names_spec='$libname.ixlibrary $libname.a'
20524 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20525 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
20526 ;;
20527 esac
20528 ;;
20529
20530 beos*)
20531 library_names_spec='${libname}${shared_ext}'
20532 dynamic_linker="$host_os ld.so"
20533 shlibpath_var=LIBRARY_PATH
20534 ;;
20535
20536 bsdi[45]*)
20537 version_type=linux
20538 need_version=no
20539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20540 soname_spec='${libname}${release}${shared_ext}$major'
20541 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20542 shlibpath_var=LD_LIBRARY_PATH
20543 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20544 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20545 # the default ld.so.conf also contains /usr/contrib/lib and
20546 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20547 # libtool to hard-code these into programs
20548 ;;
20549
20550 cygwin* | mingw* | pw32* | cegcc*)
20551 version_type=windows
20552 shrext_cmds=".dll"
20553 need_version=no
20554 need_lib_prefix=no
20555
20556 case $GCC,$host_os in
20557 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20558 library_names_spec='$libname.dll.a'
20559 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20560 postinstall_cmds='base_file=`basename \${file}`~
20561 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20562 dldir=$destdir/`dirname \$dlpath`~
20563 test -d \$dldir || mkdir -p \$dldir~
20564 $install_prog $dir/$dlname \$dldir/$dlname~
20565 chmod a+x \$dldir/$dlname~
20566 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20567 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20568 fi'
20569 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20570 dlpath=$dir/\$dldll~
20571 $RM \$dlpath'
20572 shlibpath_overrides_runpath=yes
20573
20574 case $host_os in
20575 cygwin*)
20576 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20577 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20578
20579 ;;
20580 mingw* | cegcc*)
20581 # MinGW DLLs use traditional 'lib' prefix
20582 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20583 ;;
20584 pw32*)
20585 # pw32 DLLs use 'pw' prefix rather than 'lib'
20586 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20587 ;;
20588 esac
20589 ;;
20590
20591 *)
20592 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20593 ;;
20594 esac
20595 dynamic_linker='Win32 ld.exe'
20596 # FIXME: first we should search . and the directory the executable is in
20597 shlibpath_var=PATH
20598 ;;
20599
20600 darwin* | rhapsody*)
20601 dynamic_linker="$host_os dyld"
20602 version_type=darwin
20603 need_lib_prefix=no
20604 need_version=no
20605 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20606 soname_spec='${libname}${release}${major}$shared_ext'
20607 shlibpath_overrides_runpath=yes
20608 shlibpath_var=DYLD_LIBRARY_PATH
20609 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20610
20611 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20612 ;;
20613
20614 dgux*)
20615 version_type=linux
20616 need_lib_prefix=no
20617 need_version=no
20618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20619 soname_spec='${libname}${release}${shared_ext}$major'
20620 shlibpath_var=LD_LIBRARY_PATH
20621 ;;
20622
20623 freebsd* | dragonfly*)
20624 # DragonFly does not have aout. When/if they implement a new
20625 # versioning mechanism, adjust this.
20626 if test -x /usr/bin/objformat; then
20627 objformat=`/usr/bin/objformat`
20628 else
20629 case $host_os in
20630 freebsd[23].*) objformat=aout ;;
20631 *) objformat=elf ;;
20632 esac
20633 fi
20634 version_type=freebsd-$objformat
20635 case $version_type in
20636 freebsd-elf*)
20637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20638 need_version=no
20639 need_lib_prefix=no
20640 ;;
20641 freebsd-*)
20642 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20643 need_version=yes
20644 ;;
20645 esac
20646 shlibpath_var=LD_LIBRARY_PATH
20647 case $host_os in
20648 freebsd2.*)
20649 shlibpath_overrides_runpath=yes
20650 ;;
20651 freebsd3.[01]* | freebsdelf3.[01]*)
20652 shlibpath_overrides_runpath=yes
20653 hardcode_into_libs=yes
20654 ;;
20655 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20656 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20657 shlibpath_overrides_runpath=no
20658 hardcode_into_libs=yes
20659 ;;
20660 *) # from 4.6 on, and DragonFly
20661 shlibpath_overrides_runpath=yes
20662 hardcode_into_libs=yes
20663 ;;
20664 esac
20665 ;;
20666
20667 gnu*)
20668 version_type=linux
20669 need_lib_prefix=no
20670 need_version=no
20671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20672 soname_spec='${libname}${release}${shared_ext}$major'
20673 shlibpath_var=LD_LIBRARY_PATH
20674 hardcode_into_libs=yes
20675 ;;
20676
20677 haiku*)
20678 version_type=linux
20679 need_lib_prefix=no
20680 need_version=no
20681 dynamic_linker="$host_os runtime_loader"
20682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20683 soname_spec='${libname}${release}${shared_ext}$major'
20684 shlibpath_var=LIBRARY_PATH
20685 shlibpath_overrides_runpath=yes
20686 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20687 hardcode_into_libs=yes
20688 ;;
20689
20690 hpux9* | hpux10* | hpux11*)
20691 # Give a soname corresponding to the major version so that dld.sl refuses to
20692 # link against other versions.
20693 version_type=sunos
20694 need_lib_prefix=no
20695 need_version=no
20696 case $host_cpu in
20697 ia64*)
20698 shrext_cmds='.so'
20699 hardcode_into_libs=yes
20700 dynamic_linker="$host_os dld.so"
20701 shlibpath_var=LD_LIBRARY_PATH
20702 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20704 soname_spec='${libname}${release}${shared_ext}$major'
20705 if test "X$HPUX_IA64_MODE" = X32; then
20706 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20707 else
20708 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20709 fi
20710 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20711 ;;
20712 hppa*64*)
20713 shrext_cmds='.sl'
20714 hardcode_into_libs=yes
20715 dynamic_linker="$host_os dld.sl"
20716 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20717 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20719 soname_spec='${libname}${release}${shared_ext}$major'
20720 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20721 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20722 ;;
20723 *)
20724 shrext_cmds='.sl'
20725 dynamic_linker="$host_os dld.sl"
20726 shlibpath_var=SHLIB_PATH
20727 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20729 soname_spec='${libname}${release}${shared_ext}$major'
20730 ;;
20731 esac
20732 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20733 postinstall_cmds='chmod 555 $lib'
20734 # or fails outright, so override atomically:
20735 install_override_mode=555
20736 ;;
20737
20738 interix[3-9]*)
20739 version_type=linux
20740 need_lib_prefix=no
20741 need_version=no
20742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20743 soname_spec='${libname}${release}${shared_ext}$major'
20744 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20745 shlibpath_var=LD_LIBRARY_PATH
20746 shlibpath_overrides_runpath=no
20747 hardcode_into_libs=yes
20748 ;;
20749
20750 irix5* | irix6* | nonstopux*)
20751 case $host_os in
20752 nonstopux*) version_type=nonstopux ;;
20753 *)
20754 if test "$lt_cv_prog_gnu_ld" = yes; then
20755 version_type=linux
20756 else
20757 version_type=irix
20758 fi ;;
20759 esac
20760 need_lib_prefix=no
20761 need_version=no
20762 soname_spec='${libname}${release}${shared_ext}$major'
20763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20764 case $host_os in
20765 irix5* | nonstopux*)
20766 libsuff= shlibsuff=
20767 ;;
20768 *)
20769 case $LD in # libtool.m4 will add one of these switches to LD
20770 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20771 libsuff= shlibsuff= libmagic=32-bit;;
20772 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20773 libsuff=32 shlibsuff=N32 libmagic=N32;;
20774 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20775 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20776 *) libsuff= shlibsuff= libmagic=never-match;;
20777 esac
20778 ;;
20779 esac
20780 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20781 shlibpath_overrides_runpath=no
20782 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20783 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20784 hardcode_into_libs=yes
20785 ;;
20786
20787 # No shared lib support for Linux oldld, aout, or coff.
20788 linux*oldld* | linux*aout* | linux*coff*)
20789 dynamic_linker=no
20790 ;;
20791
20792 # This must be Linux ELF.
20793 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20794 version_type=linux
20795 need_lib_prefix=no
20796 need_version=no
20797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20798 soname_spec='${libname}${release}${shared_ext}$major'
20799 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20800 shlibpath_var=LD_LIBRARY_PATH
20801 shlibpath_overrides_runpath=no
20802
20803 # Some binutils ld are patched to set DT_RUNPATH
20804 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20805 $as_echo_n "(cached) " >&6
20806 else
20807 lt_cv_shlibpath_overrides_runpath=no
20808 save_LDFLAGS=$LDFLAGS
20809 save_libdir=$libdir
20810 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20811 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20813 /* end confdefs.h. */
20814
20815 int
20816 main ()
20817 {
20818
20819 ;
20820 return 0;
20821 }
20822 _ACEOF
20823 if ac_fn_cxx_try_link "$LINENO"; then :
20824 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20825 lt_cv_shlibpath_overrides_runpath=yes
20826 fi
20827 fi
20828 rm -f core conftest.err conftest.$ac_objext \
20829 conftest$ac_exeext conftest.$ac_ext
20830 LDFLAGS=$save_LDFLAGS
20831 libdir=$save_libdir
20832
20833 fi
20834
20835 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20836
20837 # This implies no fast_install, which is unacceptable.
20838 # Some rework will be needed to allow for fast_install
20839 # before this can be enabled.
20840 hardcode_into_libs=yes
20841
20842 # Append ld.so.conf contents to the search path
20843 if test -f /etc/ld.so.conf; then
20844 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
20845 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20846 fi
20847
20848 # We used to test for /lib/ld.so.1 and disable shared libraries on
20849 # powerpc, because MkLinux only supported shared libraries with the
20850 # GNU dynamic linker. Since this was broken with cross compilers,
20851 # most powerpc-linux boxes support dynamic linking these days and
20852 # people can always --disable-shared, the test was removed, and we
20853 # assume the GNU/Linux dynamic linker is in use.
20854 dynamic_linker='GNU/Linux ld.so'
20855 ;;
20856
20857 netbsd*)
20858 version_type=sunos
20859 need_lib_prefix=no
20860 need_version=no
20861 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20864 dynamic_linker='NetBSD (a.out) ld.so'
20865 else
20866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20867 soname_spec='${libname}${release}${shared_ext}$major'
20868 dynamic_linker='NetBSD ld.elf_so'
20869 fi
20870 shlibpath_var=LD_LIBRARY_PATH
20871 shlibpath_overrides_runpath=yes
20872 hardcode_into_libs=yes
20873 ;;
20874
20875 newsos6)
20876 version_type=linux
20877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20878 shlibpath_var=LD_LIBRARY_PATH
20879 shlibpath_overrides_runpath=yes
20880 ;;
20881
20882 *nto* | *qnx*)
20883 version_type=qnx
20884 need_lib_prefix=no
20885 need_version=no
20886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20887 soname_spec='${libname}${release}${shared_ext}$major'
20888 shlibpath_var=LD_LIBRARY_PATH
20889 shlibpath_overrides_runpath=no
20890 hardcode_into_libs=yes
20891 dynamic_linker='ldqnx.so'
20892 ;;
20893
20894 openbsd*)
20895 version_type=sunos
20896 sys_lib_dlsearch_path_spec="/usr/lib"
20897 need_lib_prefix=no
20898 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20899 case $host_os in
20900 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20901 *) need_version=no ;;
20902 esac
20903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20904 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20905 shlibpath_var=LD_LIBRARY_PATH
20906 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20907 case $host_os in
20908 openbsd2.[89] | openbsd2.[89].*)
20909 shlibpath_overrides_runpath=no
20910 ;;
20911 *)
20912 shlibpath_overrides_runpath=yes
20913 ;;
20914 esac
20915 else
20916 shlibpath_overrides_runpath=yes
20917 fi
20918 ;;
20919
20920 os2*)
20921 libname_spec='$name'
20922 shrext_cmds=".dll"
20923 need_lib_prefix=no
20924 library_names_spec='$libname${shared_ext} $libname.a'
20925 dynamic_linker='OS/2 ld.exe'
20926 shlibpath_var=LIBPATH
20927 ;;
20928
20929 osf3* | osf4* | osf5*)
20930 version_type=osf
20931 need_lib_prefix=no
20932 need_version=no
20933 soname_spec='${libname}${release}${shared_ext}$major'
20934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20935 shlibpath_var=LD_LIBRARY_PATH
20936 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20937 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20938 ;;
20939
20940 rdos*)
20941 dynamic_linker=no
20942 ;;
20943
20944 solaris*)
20945 version_type=linux
20946 need_lib_prefix=no
20947 need_version=no
20948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20949 soname_spec='${libname}${release}${shared_ext}$major'
20950 shlibpath_var=LD_LIBRARY_PATH
20951 shlibpath_overrides_runpath=yes
20952 hardcode_into_libs=yes
20953 # ldd complains unless libraries are executable
20954 postinstall_cmds='chmod +x $lib'
20955 ;;
20956
20957 sunos4*)
20958 version_type=sunos
20959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20960 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20961 shlibpath_var=LD_LIBRARY_PATH
20962 shlibpath_overrides_runpath=yes
20963 if test "$with_gnu_ld" = yes; then
20964 need_lib_prefix=no
20965 fi
20966 need_version=yes
20967 ;;
20968
20969 sysv4 | sysv4.3*)
20970 version_type=linux
20971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20972 soname_spec='${libname}${release}${shared_ext}$major'
20973 shlibpath_var=LD_LIBRARY_PATH
20974 case $host_vendor in
20975 sni)
20976 shlibpath_overrides_runpath=no
20977 need_lib_prefix=no
20978 runpath_var=LD_RUN_PATH
20979 ;;
20980 siemens)
20981 need_lib_prefix=no
20982 ;;
20983 motorola)
20984 need_lib_prefix=no
20985 need_version=no
20986 shlibpath_overrides_runpath=no
20987 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20988 ;;
20989 esac
20990 ;;
20991
20992 sysv4*MP*)
20993 if test -d /usr/nec ;then
20994 version_type=linux
20995 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20996 soname_spec='$libname${shared_ext}.$major'
20997 shlibpath_var=LD_LIBRARY_PATH
20998 fi
20999 ;;
21000
21001 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21002 version_type=freebsd-elf
21003 need_lib_prefix=no
21004 need_version=no
21005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21006 soname_spec='${libname}${release}${shared_ext}$major'
21007 shlibpath_var=LD_LIBRARY_PATH
21008 shlibpath_overrides_runpath=yes
21009 hardcode_into_libs=yes
21010 if test "$with_gnu_ld" = yes; then
21011 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21012 else
21013 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21014 case $host_os in
21015 sco3.2v5*)
21016 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21017 ;;
21018 esac
21019 fi
21020 sys_lib_dlsearch_path_spec='/usr/lib'
21021 ;;
21022
21023 tpf*)
21024 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21025 version_type=linux
21026 need_lib_prefix=no
21027 need_version=no
21028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21029 shlibpath_var=LD_LIBRARY_PATH
21030 shlibpath_overrides_runpath=no
21031 hardcode_into_libs=yes
21032 ;;
21033
21034 uts4*)
21035 version_type=linux
21036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21037 soname_spec='${libname}${release}${shared_ext}$major'
21038 shlibpath_var=LD_LIBRARY_PATH
21039 ;;
21040
21041 *)
21042 dynamic_linker=no
21043 ;;
21044 esac
21045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21046 $as_echo "$dynamic_linker" >&6; }
21047 test "$dynamic_linker" = no && can_build_shared=no
21048
21049 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21050 if test "$GCC" = yes; then
21051 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21052 fi
21053
21054 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21055 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21056 fi
21057 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21058 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21059 fi
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21099 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21100 hardcode_action_CXX=
21101 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21102 test -n "$runpath_var_CXX" ||
21103 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21104
21105 # We can hardcode non-existent directories.
21106 if test "$hardcode_direct_CXX" != no &&
21107 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21108 # have to relink, otherwise we might link with an installed library
21109 # when we should be linking with a yet-to-be-installed one
21110 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21111 test "$hardcode_minus_L_CXX" != no; then
21112 # Linking always hardcodes the temporary library directory.
21113 hardcode_action_CXX=relink
21114 else
21115 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21116 hardcode_action_CXX=immediate
21117 fi
21118 else
21119 # We cannot hardcode anything, or else we can only hardcode existing
21120 # directories.
21121 hardcode_action_CXX=unsupported
21122 fi
21123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21124 $as_echo "$hardcode_action_CXX" >&6; }
21125
21126 if test "$hardcode_action_CXX" = relink ||
21127 test "$inherit_rpath_CXX" = yes; then
21128 # Fast installation is not supported
21129 enable_fast_install=no
21130 elif test "$shlibpath_overrides_runpath" = yes ||
21131 test "$enable_shared" = no; then
21132 # Fast installation is not necessary
21133 enable_fast_install=needless
21134 fi
21135
21136
21137
21138
21139
21140
21141
21142 fi # test -n "$compiler"
21143
21144 CC=$lt_save_CC
21145 LDCXX=$LD
21146 LD=$lt_save_LD
21147 GCC=$lt_save_GCC
21148 with_gnu_ld=$lt_save_with_gnu_ld
21149 lt_cv_path_LDCXX=$lt_cv_path_LD
21150 lt_cv_path_LD=$lt_save_path_LD
21151 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21152 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21153 fi # test "$_lt_caught_CXX_error" != yes
21154
21155 ac_ext=c
21156 ac_cpp='$CPP $CPPFLAGS'
21157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21160
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176 # Only expand once:
21177
21178
21179
21180
21181
21182 # Identify the assembler which will work hand-in-glove with the newly
21183 # built GCC, so that we can examine its features. This is the assembler
21184 # which will be driven by the driver program.
21185 #
21186 # If build != host, and we aren't building gas in-tree, we identify a
21187 # build->target assembler and hope that it will have the same features
21188 # as the host->target assembler we'll be using.
21189 gcc_cv_gas_major_version=
21190 gcc_cv_gas_minor_version=
21191 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21192
21193 if test "${gcc_cv_as+set}" = set; then :
21194
21195 else
21196
21197 if test -x "$DEFAULT_ASSEMBLER"; then
21198 gcc_cv_as="$DEFAULT_ASSEMBLER"
21199 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21200 && test -f ../gas/Makefile \
21201 && test x$build = x$host; then
21202 gcc_cv_as=../gas/as-new$build_exeext
21203 elif test -x as$build_exeext; then
21204 # Build using assembler in the current directory.
21205 gcc_cv_as=./as$build_exeext
21206 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21207 gcc_cv_as="$AS_FOR_TARGET"
21208 else
21209 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21210 set dummy $AS_FOR_TARGET; ac_word=$2
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21212 $as_echo_n "checking for $ac_word... " >&6; }
21213 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21214 $as_echo_n "(cached) " >&6
21215 else
21216 case $gcc_cv_as in
21217 [\\/]* | ?:[\\/]*)
21218 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21219 ;;
21220 *)
21221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21222 for as_dir in $PATH
21223 do
21224 IFS=$as_save_IFS
21225 test -z "$as_dir" && as_dir=.
21226 for ac_exec_ext in '' $ac_executable_extensions; do
21227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21228 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21230 break 2
21231 fi
21232 done
21233 done
21234 IFS=$as_save_IFS
21235
21236 ;;
21237 esac
21238 fi
21239 gcc_cv_as=$ac_cv_path_gcc_cv_as
21240 if test -n "$gcc_cv_as"; then
21241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21242 $as_echo "$gcc_cv_as" >&6; }
21243 else
21244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21245 $as_echo "no" >&6; }
21246 fi
21247
21248
21249 fi
21250 fi
21251
21252 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21253
21254 case "$ORIGINAL_AS_FOR_TARGET" in
21255 ./as | ./as$build_exeext) ;;
21256 *) ac_config_files="$ac_config_files as:exec-tool.in"
21257 ;;
21258 esac
21259
21260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21261 $as_echo_n "checking what assembler to use... " >&6; }
21262 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21263 # Single tree build which includes gas. We want to prefer it
21264 # over whatever linker top-level may have detected, since
21265 # we'll use what we're building after installation anyway.
21266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21267 $as_echo "newly built gas" >&6; }
21268 in_tree_gas=yes
21269 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21270 for f in $gcc_cv_as_bfd_srcdir/configure \
21271 $gcc_cv_as_gas_srcdir/configure \
21272 $gcc_cv_as_gas_srcdir/configure.in \
21273 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21274 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21275 if test x$gcc_cv_gas_version != x; then
21276 break
21277 fi
21278 done
21279 case $gcc_cv_gas_version in
21280 VERSION=[0-9]*) ;;
21281 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21282 esac
21283 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21284 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21285 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21286 case $gcc_cv_gas_patch_version in
21287 "") gcc_cv_gas_patch_version="0" ;;
21288 esac
21289 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21290 + $gcc_cv_gas_minor_version \) \* 1000 \
21291 + $gcc_cv_gas_patch_version`
21292
21293 in_tree_gas_is_elf=no
21294 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21295 || (grep 'obj_format = multi' ../gas/Makefile \
21296 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21297 then
21298 in_tree_gas_is_elf=yes
21299 fi
21300 else
21301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21302 $as_echo "$gcc_cv_as" >&6; }
21303 in_tree_gas=no
21304 fi
21305
21306 # Identify the linker which will work hand-in-glove with the newly
21307 # built GCC, so that we can examine its features. This is the linker
21308 # which will be driven by the driver program.
21309 #
21310 # If build != host, and we aren't building gas in-tree, we identify a
21311 # build->target linker and hope that it will have the same features
21312 # as the host->target linker we'll be using.
21313 gcc_cv_gld_major_version=
21314 gcc_cv_gld_minor_version=
21315 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21316 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21317
21318 if test "${gcc_cv_ld+set}" = set; then :
21319
21320 else
21321
21322 if test -x "$DEFAULT_LINKER"; then
21323 gcc_cv_ld="$DEFAULT_LINKER"
21324 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21325 && test -f ../ld/Makefile \
21326 && test x$build = x$host; then
21327 gcc_cv_ld=../ld/ld-new$build_exeext
21328 elif test -x collect-ld$build_exeext; then
21329 # Build using linker in the current directory.
21330 gcc_cv_ld=./collect-ld$build_exeext
21331 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21332 gcc_cv_ld="$LD_FOR_TARGET"
21333 else
21334 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21335 set dummy $LD_FOR_TARGET; ac_word=$2
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21337 $as_echo_n "checking for $ac_word... " >&6; }
21338 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21339 $as_echo_n "(cached) " >&6
21340 else
21341 case $gcc_cv_ld in
21342 [\\/]* | ?:[\\/]*)
21343 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21344 ;;
21345 *)
21346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21347 for as_dir in $PATH
21348 do
21349 IFS=$as_save_IFS
21350 test -z "$as_dir" && as_dir=.
21351 for ac_exec_ext in '' $ac_executable_extensions; do
21352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21353 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21355 break 2
21356 fi
21357 done
21358 done
21359 IFS=$as_save_IFS
21360
21361 ;;
21362 esac
21363 fi
21364 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21365 if test -n "$gcc_cv_ld"; then
21366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21367 $as_echo "$gcc_cv_ld" >&6; }
21368 else
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21370 $as_echo "no" >&6; }
21371 fi
21372
21373
21374 fi
21375 fi
21376
21377 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21378 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21379 # if the PLUGIN_LD is set ld-new, just have it as ld
21380 # as that is the installed named.
21381 if test x$PLUGIN_LD_SUFFIX == xld-new \
21382 || test x$PLUGIN_LD_SUFFIX == xcollect-ld ; then
21383 PLUGIN_LD_SUFFIX=ld
21384 fi
21385
21386 # Check whether --with-plugin-ld was given.
21387 if test "${with_plugin_ld+set}" = set; then :
21388 withval=$with_plugin_ld; if test x"$withval" != x; then
21389 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21390 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21391 fi
21392 fi
21393
21394
21395
21396 cat >>confdefs.h <<_ACEOF
21397 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21398 _ACEOF
21399
21400
21401 # Check to see if we are using gold instead of ld
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21403 $as_echo_n "checking whether we are using gold... " >&6; }
21404 ld_is_gold=no
21405 if test x$gcc_cv_ld != x; then
21406 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21407 | grep "GNU gold" > /dev/null; then
21408 ld_is_gold=yes
21409 fi
21410 fi
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21412 $as_echo "$ld_is_gold" >&6; }
21413
21414 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21415
21416 case "$ORIGINAL_LD_FOR_TARGET" in
21417 ./collect-ld | ./collect-ld$build_exeext) ;;
21418 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21419 ;;
21420 esac
21421
21422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21423 $as_echo_n "checking what linker to use... " >&6; }
21424 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21425 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21426 # Single tree build which includes ld. We want to prefer it
21427 # over whatever linker top-level may have detected, since
21428 # we'll use what we're building after installation anyway.
21429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21430 $as_echo "newly built ld" >&6; }
21431 in_tree_ld=yes
21432 in_tree_ld_is_elf=no
21433 if (grep 'EMUL = .*elf' ../ld/Makefile \
21434 || grep 'EMUL = .*linux' ../ld/Makefile \
21435 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21436 in_tree_ld_is_elf=yes
21437 elif test "$ld_is_gold" = yes; then
21438 in_tree_ld_is_elf=yes
21439 fi
21440 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
21441 do
21442 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21443 if test x$gcc_cv_gld_version != x; then
21444 break
21445 fi
21446 done
21447 case $gcc_cv_gld_version in
21448 VERSION=[0-9]*) ;;
21449 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21450 esac
21451 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21452 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21453 else
21454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21455 $as_echo "$gcc_cv_ld" >&6; }
21456 in_tree_ld=no
21457 fi
21458
21459 # Figure out what nm we will be using.
21460 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21461 if test "${gcc_cv_nm+set}" = set; then :
21462
21463 else
21464
21465 if test -f $gcc_cv_binutils_srcdir/configure.in \
21466 && test -f ../binutils/Makefile \
21467 && test x$build = x$host; then
21468 gcc_cv_nm=../binutils/nm-new$build_exeext
21469 elif test -x nm$build_exeext; then
21470 gcc_cv_nm=./nm$build_exeext
21471 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21472 gcc_cv_nm="$NM_FOR_TARGET"
21473 else
21474 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21475 set dummy $NM_FOR_TARGET; ac_word=$2
21476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21477 $as_echo_n "checking for $ac_word... " >&6; }
21478 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21479 $as_echo_n "(cached) " >&6
21480 else
21481 case $gcc_cv_nm in
21482 [\\/]* | ?:[\\/]*)
21483 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21484 ;;
21485 *)
21486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21487 for as_dir in $PATH
21488 do
21489 IFS=$as_save_IFS
21490 test -z "$as_dir" && as_dir=.
21491 for ac_exec_ext in '' $ac_executable_extensions; do
21492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21493 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21495 break 2
21496 fi
21497 done
21498 done
21499 IFS=$as_save_IFS
21500
21501 ;;
21502 esac
21503 fi
21504 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21505 if test -n "$gcc_cv_nm"; then
21506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21507 $as_echo "$gcc_cv_nm" >&6; }
21508 else
21509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21510 $as_echo "no" >&6; }
21511 fi
21512
21513
21514 fi
21515 fi
21516
21517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21518 $as_echo_n "checking what nm to use... " >&6; }
21519 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21520 # Single tree build which includes binutils.
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21522 $as_echo "newly built nm" >&6; }
21523 in_tree_nm=yes
21524 else
21525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21526 $as_echo "$gcc_cv_nm" >&6; }
21527 in_tree_nm=no
21528 fi
21529
21530 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21531
21532 case "$ORIGINAL_NM_FOR_TARGET" in
21533 ./nm | ./nm$build_exeext) ;;
21534 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21535 ;;
21536 esac
21537
21538
21539 # Figure out what objdump we will be using.
21540 if test "${gcc_cv_objdump+set}" = set; then :
21541
21542 else
21543
21544 if test -f $gcc_cv_binutils_srcdir/configure.in \
21545 && test -f ../binutils/Makefile \
21546 && test x$build = x$host; then
21547 # Single tree build which includes binutils.
21548 gcc_cv_objdump=../binutils/objdump$build_exeext
21549 elif test -x objdump$build_exeext; then
21550 gcc_cv_objdump=./objdump$build_exeext
21551 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21552 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21553 else
21554 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21555 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21557 $as_echo_n "checking for $ac_word... " >&6; }
21558 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21559 $as_echo_n "(cached) " >&6
21560 else
21561 case $gcc_cv_objdump in
21562 [\\/]* | ?:[\\/]*)
21563 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21564 ;;
21565 *)
21566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21567 for as_dir in $PATH
21568 do
21569 IFS=$as_save_IFS
21570 test -z "$as_dir" && as_dir=.
21571 for ac_exec_ext in '' $ac_executable_extensions; do
21572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21573 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21575 break 2
21576 fi
21577 done
21578 done
21579 IFS=$as_save_IFS
21580
21581 ;;
21582 esac
21583 fi
21584 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21585 if test -n "$gcc_cv_objdump"; then
21586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21587 $as_echo "$gcc_cv_objdump" >&6; }
21588 else
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21590 $as_echo "no" >&6; }
21591 fi
21592
21593
21594 fi
21595 fi
21596
21597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21598 $as_echo_n "checking what objdump to use... " >&6; }
21599 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21600 # Single tree build which includes binutils.
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21602 $as_echo "newly built objdump" >&6; }
21603 elif test x$gcc_cv_objdump = x; then
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21605 $as_echo "not found" >&6; }
21606 else
21607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21608 $as_echo "$gcc_cv_objdump" >&6; }
21609 fi
21610
21611 # Figure out what readelf we will be using.
21612 if test "${gcc_cv_readelf+set}" = set; then :
21613
21614 else
21615
21616 if test -f $gcc_cv_binutils_srcdir/configure.in \
21617 && test -f ../binutils/Makefile \
21618 && test x$build = x$host; then
21619 # Single tree build which includes binutils.
21620 gcc_cv_readelf=../binutils/readelf$build_exeext
21621 elif test -x readelf$build_exeext; then
21622 gcc_cv_readelf=./readelf$build_exeext
21623 else
21624 # Extract the first word of "readelf", so it can be a program name with args.
21625 set dummy readelf; ac_word=$2
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21627 $as_echo_n "checking for $ac_word... " >&6; }
21628 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21629 $as_echo_n "(cached) " >&6
21630 else
21631 case $gcc_cv_readelf in
21632 [\\/]* | ?:[\\/]*)
21633 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21634 ;;
21635 *)
21636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21637 for as_dir in $PATH
21638 do
21639 IFS=$as_save_IFS
21640 test -z "$as_dir" && as_dir=.
21641 for ac_exec_ext in '' $ac_executable_extensions; do
21642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21643 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21645 break 2
21646 fi
21647 done
21648 done
21649 IFS=$as_save_IFS
21650
21651 ;;
21652 esac
21653 fi
21654 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21655 if test -n "$gcc_cv_readelf"; then
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21657 $as_echo "$gcc_cv_readelf" >&6; }
21658 else
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21660 $as_echo "no" >&6; }
21661 fi
21662
21663
21664 fi
21665 fi
21666
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21668 $as_echo_n "checking what readelf to use... " >&6; }
21669 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21670 # Single tree build which includes binutils.
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21672 $as_echo "newly built readelf" >&6; }
21673 elif test x$gcc_cv_readelf = x; then
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21675 $as_echo "not found" >&6; }
21676 else
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21678 $as_echo "$gcc_cv_readelf" >&6; }
21679 fi
21680
21681 # Figure out what assembler alignment features are present.
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21683 $as_echo_n "checking assembler flags... " >&6; }
21684 if test "${gcc_cv_as_flags+set}" = set; then :
21685 $as_echo_n "(cached) " >&6
21686 else
21687 case "$target" in
21688 i[34567]86-*-linux*)
21689 gcc_cv_as_flags="--32"
21690 ;;
21691 powerpc*-*-darwin*)
21692 gcc_cv_as_flags="-arch ppc"
21693 ;;
21694 *)
21695 gcc_cv_as_flags=" "
21696 ;;
21697 esac
21698 fi
21699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21700 $as_echo "$gcc_cv_as_flags" >&6; }
21701
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21703 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21704 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21705 $as_echo_n "(cached) " >&6
21706 else
21707 gcc_cv_as_balign_and_p2align=no
21708 if test $in_tree_gas = yes; then
21709 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21710 then gcc_cv_as_balign_and_p2align=yes
21711 fi
21712 elif test x$gcc_cv_as != x; then
21713 $as_echo '.balign 4
21714 .p2align 2' > conftest.s
21715 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21717 (eval $ac_try) 2>&5
21718 ac_status=$?
21719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21720 test $ac_status = 0; }; }
21721 then
21722 gcc_cv_as_balign_and_p2align=yes
21723 else
21724 echo "configure: failed program was" >&5
21725 cat conftest.s >&5
21726 fi
21727 rm -f conftest.o conftest.s
21728 fi
21729 fi
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21731 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21732 if test $gcc_cv_as_balign_and_p2align = yes; then
21733
21734 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21735
21736 fi
21737
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21739 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21740 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21741 $as_echo_n "(cached) " >&6
21742 else
21743 gcc_cv_as_max_skip_p2align=no
21744 if test $in_tree_gas = yes; then
21745 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21746 then gcc_cv_as_max_skip_p2align=yes
21747 fi
21748 elif test x$gcc_cv_as != x; then
21749 $as_echo '.p2align 4,,7' > conftest.s
21750 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21752 (eval $ac_try) 2>&5
21753 ac_status=$?
21754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21755 test $ac_status = 0; }; }
21756 then
21757 gcc_cv_as_max_skip_p2align=yes
21758 else
21759 echo "configure: failed program was" >&5
21760 cat conftest.s >&5
21761 fi
21762 rm -f conftest.o conftest.s
21763 fi
21764 fi
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21766 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21767 if test $gcc_cv_as_max_skip_p2align = yes; then
21768
21769 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21770
21771 fi
21772
21773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21774 $as_echo_n "checking assembler for .literal16... " >&6; }
21775 if test "${gcc_cv_as_literal16+set}" = set; then :
21776 $as_echo_n "(cached) " >&6
21777 else
21778 gcc_cv_as_literal16=no
21779 if test $in_tree_gas = yes; then
21780 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21781 then gcc_cv_as_literal16=yes
21782 fi
21783 elif test x$gcc_cv_as != x; then
21784 $as_echo '.literal16' > conftest.s
21785 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21787 (eval $ac_try) 2>&5
21788 ac_status=$?
21789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21790 test $ac_status = 0; }; }
21791 then
21792 gcc_cv_as_literal16=yes
21793 else
21794 echo "configure: failed program was" >&5
21795 cat conftest.s >&5
21796 fi
21797 rm -f conftest.o conftest.s
21798 fi
21799 fi
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21801 $as_echo "$gcc_cv_as_literal16" >&6; }
21802 if test $gcc_cv_as_literal16 = yes; then
21803
21804 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21805
21806 fi
21807
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21809 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21810 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21811 $as_echo_n "(cached) " >&6
21812 else
21813 gcc_cv_as_subsection_m1=no
21814 if test $in_tree_gas = yes; then
21815 if test $in_tree_gas_is_elf = yes \
21816 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21817 then gcc_cv_as_subsection_m1=yes
21818 fi
21819 elif test x$gcc_cv_as != x; then
21820 $as_echo 'conftest_label1: .word 0
21821 .subsection -1
21822 conftest_label2: .word 0
21823 .previous' > conftest.s
21824 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21826 (eval $ac_try) 2>&5
21827 ac_status=$?
21828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21829 test $ac_status = 0; }; }
21830 then
21831 if test x$gcc_cv_nm != x; then
21832 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21833 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21834 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21835 then :
21836 else gcc_cv_as_subsection_m1=yes
21837 fi
21838 rm -f conftest.nm1 conftest.nm2
21839 fi
21840 else
21841 echo "configure: failed program was" >&5
21842 cat conftest.s >&5
21843 fi
21844 rm -f conftest.o conftest.s
21845 fi
21846 fi
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21848 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21849 if test $gcc_cv_as_subsection_m1 = yes; then
21850
21851 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21852
21853 fi
21854
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21856 $as_echo_n "checking assembler for .weak... " >&6; }
21857 if test "${gcc_cv_as_weak+set}" = set; then :
21858 $as_echo_n "(cached) " >&6
21859 else
21860 gcc_cv_as_weak=no
21861 if test $in_tree_gas = yes; then
21862 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21863 then gcc_cv_as_weak=yes
21864 fi
21865 elif test x$gcc_cv_as != x; then
21866 $as_echo ' .weak foobar' > conftest.s
21867 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21869 (eval $ac_try) 2>&5
21870 ac_status=$?
21871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21872 test $ac_status = 0; }; }
21873 then
21874 gcc_cv_as_weak=yes
21875 else
21876 echo "configure: failed program was" >&5
21877 cat conftest.s >&5
21878 fi
21879 rm -f conftest.o conftest.s
21880 fi
21881 fi
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21883 $as_echo "$gcc_cv_as_weak" >&6; }
21884 if test $gcc_cv_as_weak = yes; then
21885
21886 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21887
21888 fi
21889
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21891 $as_echo_n "checking assembler for .weakref... " >&6; }
21892 if test "${gcc_cv_as_weakref+set}" = set; then :
21893 $as_echo_n "(cached) " >&6
21894 else
21895 gcc_cv_as_weakref=no
21896 if test $in_tree_gas = yes; then
21897 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21898 then gcc_cv_as_weakref=yes
21899 fi
21900 elif test x$gcc_cv_as != x; then
21901 $as_echo ' .weakref foobar, barfnot' > conftest.s
21902 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21904 (eval $ac_try) 2>&5
21905 ac_status=$?
21906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21907 test $ac_status = 0; }; }
21908 then
21909 gcc_cv_as_weakref=yes
21910 else
21911 echo "configure: failed program was" >&5
21912 cat conftest.s >&5
21913 fi
21914 rm -f conftest.o conftest.s
21915 fi
21916 fi
21917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21918 $as_echo "$gcc_cv_as_weakref" >&6; }
21919 if test $gcc_cv_as_weakref = yes; then
21920
21921 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21922
21923 fi
21924
21925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21926 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21927 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21928 $as_echo_n "(cached) " >&6
21929 else
21930 gcc_cv_as_nsubspa_comdat=no
21931 if test $in_tree_gas = yes; then
21932 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21933 then gcc_cv_as_nsubspa_comdat=yes
21934 fi
21935 elif test x$gcc_cv_as != x; then
21936 $as_echo ' .SPACE $TEXT$
21937 .NSUBSPA $CODE$,COMDAT' > conftest.s
21938 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21940 (eval $ac_try) 2>&5
21941 ac_status=$?
21942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21943 test $ac_status = 0; }; }
21944 then
21945 gcc_cv_as_nsubspa_comdat=yes
21946 else
21947 echo "configure: failed program was" >&5
21948 cat conftest.s >&5
21949 fi
21950 rm -f conftest.o conftest.s
21951 fi
21952 fi
21953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21954 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21955 if test $gcc_cv_as_nsubspa_comdat = yes; then
21956
21957 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21958
21959 fi
21960
21961 # .hidden needs to be supported in both the assembler and the linker,
21962 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21963 # This is irritatingly difficult to feature test for; we have to check the
21964 # date string after the version number. If we've got an in-tree
21965 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21966 # to be safe.
21967 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21969 $as_echo_n "checking assembler for .hidden... " >&6; }
21970 if test "${gcc_cv_as_hidden+set}" = set; then :
21971 $as_echo_n "(cached) " >&6
21972 else
21973 gcc_cv_as_hidden=no
21974 if test $in_tree_gas = yes; then
21975 if test $in_tree_gas_is_elf = yes \
21976 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21977 then gcc_cv_as_hidden=yes
21978 fi
21979 elif test x$gcc_cv_as != x; then
21980 $as_echo ' .hidden foobar
21981 foobar:' > conftest.s
21982 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21984 (eval $ac_try) 2>&5
21985 ac_status=$?
21986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21987 test $ac_status = 0; }; }
21988 then
21989
21990 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21991 # STV_HIDDEN, so disable .hidden support if so.
21992 case "${target}" in
21993 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
21994 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21995 cat > conftest.s <<EOF
21996 .globl hidden
21997 .hidden hidden
21998 hidden:
21999 .globl default
22000 .set default,hidden
22001 EOF
22002 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22003 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22004 grep '\.hidden default' > /dev/null; then
22005 gcc_cv_as_hidden=no
22006 else
22007 gcc_cv_as_hidden=yes
22008 fi
22009 else
22010 # Assume bug is present if objdump is missing.
22011 gcc_cv_as_hidden=no
22012 fi
22013 ;;
22014 *)
22015 gcc_cv_as_hidden=yes
22016 ;;
22017 esac
22018 else
22019 echo "configure: failed program was" >&5
22020 cat conftest.s >&5
22021 fi
22022 rm -f conftest.o conftest.s
22023 fi
22024 fi
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22026 $as_echo "$gcc_cv_as_hidden" >&6; }
22027
22028 case "${target}" in
22029 *-*-darwin*)
22030 # Darwin as has some visibility support, though with a different syntax.
22031 gcc_cv_as_hidden=yes
22032 ;;
22033 esac
22034
22035 # gnu_indirect_function type is an extension proposed at
22036 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22037 # selection of function implementation
22038 # Check whether --enable-gnu-indirect-function was given.
22039 if test "${enable_gnu_indirect_function+set}" = set; then :
22040 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22041 yes | no) ;;
22042 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22043 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22044 esac
22045 else
22046 enable_gnu_indirect_function="$default_gnu_indirect_function"
22047 fi
22048
22049 if test x$enable_gnu_indirect_function = xyes; then
22050
22051 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22052
22053 fi
22054
22055 if test $in_tree_ld != yes ; then
22056 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22057 if echo "$ld_ver" | grep GNU > /dev/null; then
22058 if test x"$ld_is_gold" = xyes; then
22059 # GNU gold --version looks like this:
22060 #
22061 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22062 #
22063 # We extract the binutils version which is more familiar and specific
22064 # than the gold version.
22065 ld_vers=`echo $ld_ver | sed -n \
22066 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22067 else
22068 # GNU ld --version looks like this:
22069 #
22070 # GNU ld (GNU Binutils) 2.21.51.20110225
22071 ld_vers=`echo $ld_ver | sed -n \
22072 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22073 fi
22074 ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
22075 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22076 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22077 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22078 else
22079 case "${target}" in
22080 *-*-solaris2*)
22081 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22082 # format.
22083 #
22084 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22085 # /usr/ccs/bin/ld has been configured.
22086 ld_ver=`$gcc_cv_ld -V 2>&1`
22087 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22088 ld_vers=`echo $ld_ver | sed -n \
22089 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22090 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22091 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22092 fi
22093 ;;
22094 esac
22095 fi
22096 fi
22097
22098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22099 $as_echo_n "checking linker for .hidden support... " >&6; }
22100 if test "${gcc_cv_ld_hidden+set}" = set; then :
22101 $as_echo_n "(cached) " >&6
22102 else
22103 if test $in_tree_ld = yes ; then
22104 gcc_cv_ld_hidden=no
22105 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 \
22106 && test $in_tree_ld_is_elf = yes; then
22107 gcc_cv_ld_hidden=yes
22108 fi
22109 else
22110 gcc_cv_ld_hidden=yes
22111 if test x"$ld_is_gold" = xyes; then
22112 :
22113 elif echo "$ld_ver" | grep GNU > /dev/null; then
22114 case "${target}" in
22115 mmix-knuth-mmixware)
22116 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22117 gcc_cv_ld_hidden=no
22118 ;;
22119 esac
22120 if test 0"$ld_date" -lt 20020404; then
22121 if test -n "$ld_date"; then
22122 # If there was date string, but was earlier than 2002-04-04, fail
22123 gcc_cv_ld_hidden=no
22124 elif test -z "$ld_vers"; then
22125 # If there was no date string nor ld version number, something is wrong
22126 gcc_cv_ld_hidden=no
22127 else
22128 test -z "$ld_vers_patch" && ld_vers_patch=0
22129 if test "$ld_vers_major" -lt 2; then
22130 gcc_cv_ld_hidden=no
22131 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22132 gcc_cv_ld_hidden="no"
22133 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22134 gcc_cv_ld_hidden=no
22135 fi
22136 fi
22137 fi
22138 else
22139 case "${target}" in
22140 *-*-darwin*)
22141 # Darwin ld has some visibility support.
22142 gcc_cv_ld_hidden=yes
22143 ;;
22144 hppa64*-*-hpux* | ia64*-*-hpux*)
22145 gcc_cv_ld_hidden=yes
22146 ;;
22147 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22148 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22149 # .symbolic was only added in Solaris 9 12/02.
22150 gcc_cv_ld_hidden=yes
22151 ;;
22152 *)
22153 gcc_cv_ld_hidden=no
22154 ;;
22155 esac
22156 fi
22157 fi
22158 fi
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22160 $as_echo "$gcc_cv_ld_hidden" >&6; }
22161 libgcc_visibility=no
22162
22163
22164 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22165 libgcc_visibility=yes
22166
22167 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22168
22169 fi
22170
22171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22172 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22173 gcc_cv_ld_ro_rw_mix=unknown
22174 if test $in_tree_ld = yes ; then
22175 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
22176 && test $in_tree_ld_is_elf = yes; then
22177 gcc_cv_ld_ro_rw_mix=read-write
22178 fi
22179 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22180 echo '.section myfoosect, "a"' > conftest1.s
22181 echo '.section myfoosect, "aw"' > conftest2.s
22182 echo '.byte 1' >> conftest2.s
22183 echo '.section myfoosect, "a"' > conftest3.s
22184 echo '.byte 0' >> conftest3.s
22185 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22186 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22187 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22188 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22189 conftest2.o conftest3.o > /dev/null 2>&1; then
22190 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22191 | sed -e '/myfoosect/!d' -e N`
22192 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22193 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22194 gcc_cv_ld_ro_rw_mix=read-only
22195 else
22196 gcc_cv_ld_ro_rw_mix=read-write
22197 fi
22198 fi
22199 fi
22200 rm -f conftest.* conftest[123].*
22201 fi
22202 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22203
22204 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22205
22206 fi
22207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22208 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22209
22210 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22211 case "${target}" in
22212 *-*-solaris2*)
22213 #
22214 # Solaris 2 ld -V output looks like this for a regular version:
22215 #
22216 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22217 #
22218 # but test versions add stuff at the end:
22219 #
22220 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22221 #
22222 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22223 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22224 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22225 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22226 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22227 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22228 fi
22229 ;;
22230 esac
22231 fi
22232
22233 # Check whether --enable-initfini-array was given.
22234 if test "${enable_initfini_array+set}" = set; then :
22235 enableval=$enable_initfini_array;
22236 else
22237
22238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22239 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22240 if test "${gcc_cv_initfini_array+set}" = set; then :
22241 $as_echo_n "(cached) " >&6
22242 else
22243 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22244 case "${target}" in
22245 ia64-*)
22246 if test "$cross_compiling" = yes; then :
22247 gcc_cv_initfini_array=no
22248 else
22249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22250 /* end confdefs.h. */
22251
22252 #ifndef __ELF__
22253 #error Not an ELF OS
22254 #endif
22255 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22256 if it can be used. */
22257 static int x = -1;
22258 int main (void) { return x; }
22259 int foo (void) { x = 0; }
22260 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22261
22262 _ACEOF
22263 if ac_fn_c_try_run "$LINENO"; then :
22264 gcc_cv_initfini_array=yes
22265 else
22266 gcc_cv_initfini_array=no
22267 fi
22268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22269 conftest.$ac_objext conftest.beam conftest.$ac_ext
22270 fi
22271 ;;
22272 *)
22273 gcc_cv_initfini_array=no
22274 if test $in_tree_ld = yes ; then
22275 if test "$gcc_cv_gld_major_version" -eq 2 \
22276 -a "$gcc_cv_gld_minor_version" -ge 22 \
22277 -o "$gcc_cv_gld_major_version" -gt 2 \
22278 && test $in_tree_ld_is_elf = yes; then
22279 gcc_cv_initfini_array=yes
22280 fi
22281 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22282 cat > conftest.s <<\EOF
22283 .section .dtors,"a",%progbits
22284 .balign 4
22285 .byte 'A', 'A', 'A', 'A'
22286 .section .ctors,"a",%progbits
22287 .balign 4
22288 .byte 'B', 'B', 'B', 'B'
22289 .section .fini_array.65530,"a",%progbits
22290 .balign 4
22291 .byte 'C', 'C', 'C', 'C'
22292 .section .init_array.65530,"a",%progbits
22293 .balign 4
22294 .byte 'D', 'D', 'D', 'D'
22295 .section .dtors.64528,"a",%progbits
22296 .balign 4
22297 .byte 'E', 'E', 'E', 'E'
22298 .section .ctors.64528,"a",%progbits
22299 .balign 4
22300 .byte 'F', 'F', 'F', 'F'
22301 .section .fini_array.01005,"a",%progbits
22302 .balign 4
22303 .byte 'G', 'G', 'G', 'G'
22304 .section .init_array.01005,"a",%progbits
22305 .balign 4
22306 .byte 'H', 'H', 'H', 'H'
22307 .text
22308 .globl _start
22309 _start:
22310 EOF
22311 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22312 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22313 && $gcc_cv_objdump -s -j .init_array conftest \
22314 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22315 && $gcc_cv_objdump -s -j .fini_array conftest \
22316 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22317 gcc_cv_initfini_array=yes
22318 fi
22319 rm -f conftest conftest.*
22320 fi
22321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22322 /* end confdefs.h. */
22323
22324 #ifndef __ELF__
22325 # error Not an ELF OS
22326 #endif
22327 #include <stdlib.h>
22328 #if defined __GLIBC_PREREQ
22329 # if __GLIBC_PREREQ (2, 4)
22330 # else
22331 # error GLIBC 2.4 required
22332 # endif
22333 #else
22334 # if defined __sun__ && defined __svr4__
22335 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22336 # else
22337 # error The C library not known to support .init_array/.fini_array
22338 # endif
22339 #endif
22340
22341 _ACEOF
22342 if ac_fn_c_try_cpp "$LINENO"; then :
22343
22344 else
22345 gcc_cv_initfini_array=no
22346 fi
22347 rm -f conftest.err conftest.$ac_ext;;
22348 esac
22349 else
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22351 $as_echo_n "checking cross compile... guessing... " >&6; }
22352 gcc_cv_initfini_array=no
22353 fi
22354 fi
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22356 $as_echo "$gcc_cv_initfini_array" >&6; }
22357 enable_initfini_array=$gcc_cv_initfini_array
22358
22359 fi
22360
22361 if test $enable_initfini_array = yes; then
22362
22363 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22364
22365 fi
22366
22367 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22369 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22370 if test "${gcc_cv_as_leb128+set}" = set; then :
22371 $as_echo_n "(cached) " >&6
22372 else
22373 gcc_cv_as_leb128=no
22374 if test $in_tree_gas = yes; then
22375 if test $in_tree_gas_is_elf = yes \
22376 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22377 then gcc_cv_as_leb128=yes
22378 fi
22379 elif test x$gcc_cv_as != x; then
22380 $as_echo ' .data
22381 .uleb128 L2 - L1
22382 L1:
22383 .uleb128 1280
22384 .sleb128 -1010
22385 L2:' > conftest.s
22386 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22388 (eval $ac_try) 2>&5
22389 ac_status=$?
22390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22391 test $ac_status = 0; }; }
22392 then
22393 # GAS versions before 2.11 do not support uleb128,
22394 # despite appearing to.
22395 # ??? There exists an elf-specific test that will crash
22396 # the assembler. Perhaps it's better to figure out whether
22397 # arbitrary sections are supported and try the test.
22398 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22399 if echo "$as_ver" | grep GNU > /dev/null; then
22400 as_vers=`echo $as_ver | sed -n \
22401 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22402 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22403 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22404 if test $as_major -eq 2 && test $as_minor -lt 11
22405 then :
22406 else gcc_cv_as_leb128=yes
22407 fi
22408 fi
22409 else
22410 echo "configure: failed program was" >&5
22411 cat conftest.s >&5
22412 fi
22413 rm -f conftest.o conftest.s
22414 fi
22415 fi
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22417 $as_echo "$gcc_cv_as_leb128" >&6; }
22418 if test $gcc_cv_as_leb128 = yes; then
22419
22420 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22421
22422 fi
22423
22424 # Check if we have assembler support for unwind directives.
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22426 $as_echo_n "checking assembler for cfi directives... " >&6; }
22427 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22428 $as_echo_n "(cached) " >&6
22429 else
22430 gcc_cv_as_cfi_directive=no
22431 if test x$gcc_cv_as != x; then
22432 $as_echo ' .text
22433 .cfi_startproc
22434 .cfi_offset 0, 0
22435 .cfi_same_value 1
22436 .cfi_def_cfa 1, 2
22437 .cfi_escape 1, 2, 3, 4, 5
22438 .cfi_endproc' > conftest.s
22439 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22441 (eval $ac_try) 2>&5
22442 ac_status=$?
22443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22444 test $ac_status = 0; }; }
22445 then
22446 case "$target" in
22447 *-*-solaris*)
22448 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22449 # read-only and read-write sections, we need to make sure that the
22450 # assembler used emits read-write .eh_frame sections.
22451 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22452 if test "x$gcc_cv_objdump" != x; then
22453 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22454 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22455 gcc_cv_as_cfi_directive=no
22456 else
22457 case "$target" in
22458 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22459 # On Solaris/x86, make sure that GCC and gas agree on using
22460 # read-only .eh_frame sections for 64-bit.
22461 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22462 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22463 sed -e /.eh_frame/!d -e N | \
22464 grep READONLY > /dev/null; then
22465 gcc_cv_as_cfi_directive=yes
22466 else
22467 gcc_cv_as_cfi_directive=no
22468 fi
22469 ;;
22470 *)
22471 gcc_cv_as_cfi_directive=yes
22472 ;;
22473 esac
22474 fi
22475 else
22476 # no objdump, err on the side of caution
22477 gcc_cv_as_cfi_directive=no
22478 fi
22479 else
22480 gcc_cv_as_cfi_directive=yes
22481 fi
22482 ;;
22483 *-*-*)
22484 gcc_cv_as_cfi_directive=yes
22485 ;;
22486 esac
22487 else
22488 echo "configure: failed program was" >&5
22489 cat conftest.s >&5
22490 fi
22491 rm -f conftest.o conftest.s
22492 fi
22493 fi
22494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22495 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22496
22497 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22499 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22500 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22501 $as_echo_n "(cached) " >&6
22502 else
22503 gcc_cv_as_cfi_advance_working=no
22504 if test x$gcc_cv_as != x; then
22505 $as_echo ' .text
22506 .cfi_startproc
22507 .cfi_adjust_cfa_offset 64
22508 .skip 75040, 0
22509 .cfi_adjust_cfa_offset 128
22510 .cfi_endproc' > conftest.s
22511 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22513 (eval $ac_try) 2>&5
22514 ac_status=$?
22515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22516 test $ac_status = 0; }; }
22517 then
22518
22519 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22520 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22521 gcc_cv_as_cfi_advance_working=yes
22522 fi
22523
22524 else
22525 echo "configure: failed program was" >&5
22526 cat conftest.s >&5
22527 fi
22528 rm -f conftest.o conftest.s
22529 fi
22530 fi
22531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22532 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22533
22534 else
22535 # no objdump, err on the side of caution
22536 gcc_cv_as_cfi_advance_working=no
22537 fi
22538
22539
22540 cat >>confdefs.h <<_ACEOF
22541 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22542 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22543 _ACEOF
22544
22545
22546
22547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22548 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22549 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22550 $as_echo_n "(cached) " >&6
22551 else
22552 gcc_cv_as_cfi_personality_directive=no
22553 if test x$gcc_cv_as != x; then
22554 $as_echo ' .text
22555 .cfi_startproc
22556 .cfi_personality 0, symbol
22557 .cfi_endproc' > conftest.s
22558 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22560 (eval $ac_try) 2>&5
22561 ac_status=$?
22562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22563 test $ac_status = 0; }; }
22564 then
22565 gcc_cv_as_cfi_personality_directive=yes
22566 else
22567 echo "configure: failed program was" >&5
22568 cat conftest.s >&5
22569 fi
22570 rm -f conftest.o conftest.s
22571 fi
22572 fi
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22574 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22575
22576
22577 cat >>confdefs.h <<_ACEOF
22578 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22579 then echo 1; else echo 0; fi`
22580 _ACEOF
22581
22582
22583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22584 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22585 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22586 $as_echo_n "(cached) " >&6
22587 else
22588 gcc_cv_as_cfi_sections_directive=no
22589 if test x$gcc_cv_as != x; then
22590 $as_echo ' .text
22591 .cfi_sections .debug_frame, .eh_frame
22592 .cfi_startproc
22593 .cfi_endproc' > conftest.s
22594 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22596 (eval $ac_try) 2>&5
22597 ac_status=$?
22598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22599 test $ac_status = 0; }; }
22600 then
22601 case $target_os in
22602 win32 | pe | cygwin* | mingw32* | uwin*)
22603 # Need to check that we generated the correct relocation for the
22604 # .debug_frame section. This was fixed for binutils 2.21.
22605 gcc_cv_as_cfi_sections_directive=no
22606 if test "x$gcc_cv_objdump" != x; then
22607 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22608 grep secrel > /dev/null; then
22609 gcc_cv_as_cfi_sections_directive=yes
22610 fi
22611 fi
22612 ;;
22613 *)
22614 gcc_cv_as_cfi_sections_directive=yes
22615 ;;
22616 esac
22617 else
22618 echo "configure: failed program was" >&5
22619 cat conftest.s >&5
22620 fi
22621 rm -f conftest.o conftest.s
22622 fi
22623 fi
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22625 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22626
22627
22628
22629 cat >>confdefs.h <<_ACEOF
22630 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22631 then echo 1; else echo 0; fi`
22632 _ACEOF
22633
22634
22635 # GAS versions up to and including 2.11.0 may mis-optimize
22636 # .eh_frame data.
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22638 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22639 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22640 $as_echo_n "(cached) " >&6
22641 else
22642 gcc_cv_as_eh_frame=no
22643 if test $in_tree_gas = yes; then
22644 if test $in_tree_gas_is_elf = yes \
22645 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22646 then gcc_cv_as_eh_frame=yes
22647 fi
22648 elif test x$gcc_cv_as != x; then
22649 $as_echo ' .text
22650 .LFB1:
22651 .4byte 0
22652 .L1:
22653 .4byte 0
22654 .LFE1:
22655 .section .eh_frame,"aw",@progbits
22656 __FRAME_BEGIN__:
22657 .4byte .LECIE1-.LSCIE1
22658 .LSCIE1:
22659 .4byte 0x0
22660 .byte 0x1
22661 .ascii "z\0"
22662 .byte 0x1
22663 .byte 0x78
22664 .byte 0x1a
22665 .byte 0x0
22666 .byte 0x4
22667 .4byte 1
22668 .p2align 1
22669 .LECIE1:
22670 .LSFDE1:
22671 .4byte .LEFDE1-.LASFDE1
22672 .LASFDE1:
22673 .4byte .LASFDE1-__FRAME_BEGIN__
22674 .4byte .LFB1
22675 .4byte .LFE1-.LFB1
22676 .byte 0x4
22677 .4byte .LFE1-.LFB1
22678 .byte 0x4
22679 .4byte .L1-.LFB1
22680 .LEFDE1:' > conftest.s
22681 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22683 (eval $ac_try) 2>&5
22684 ac_status=$?
22685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22686 test $ac_status = 0; }; }
22687 then
22688 cat > conftest.lit <<EOF
22689 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22690 0010 01000000 12000000 18000000 00000000 ................
22691 0020 08000000 04080000 0044 .........D
22692 EOF
22693 cat > conftest.big <<EOF
22694 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22695 0010 00000001 00000012 00000018 00000000 ................
22696 0020 00000008 04000000 0844 .........D
22697 EOF
22698 # If the assembler didn't choke, and we can objdump,
22699 # and we got the correct data, then succeed.
22700 # The text in the here-document typically retains its unix-style line
22701 # endings, while the output of objdump will use host line endings.
22702 # Therefore, use diff -b for the comparisons.
22703 if test x$gcc_cv_objdump != x \
22704 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22705 | tail -3 > conftest.got \
22706 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22707 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22708 then
22709 gcc_cv_as_eh_frame=yes
22710 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22712 (eval $ac_try) 2>&5
22713 ac_status=$?
22714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22715 test $ac_status = 0; }; }; then
22716 gcc_cv_as_eh_frame=buggy
22717 else
22718 # Uh oh, what do we do now?
22719 gcc_cv_as_eh_frame=no
22720 fi
22721 else
22722 echo "configure: failed program was" >&5
22723 cat conftest.s >&5
22724 fi
22725 rm -f conftest.o conftest.s
22726 fi
22727 fi
22728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22729 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22730
22731
22732 if test $gcc_cv_as_eh_frame = buggy; then
22733
22734 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22735
22736 fi
22737
22738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22739 $as_echo_n "checking assembler for section merging support... " >&6; }
22740 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22741 $as_echo_n "(cached) " >&6
22742 else
22743 gcc_cv_as_shf_merge=no
22744 if test $in_tree_gas = yes; then
22745 if test $in_tree_gas_is_elf = yes \
22746 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22747 then gcc_cv_as_shf_merge=yes
22748 fi
22749 elif test x$gcc_cv_as != x; then
22750 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22751 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22753 (eval $ac_try) 2>&5
22754 ac_status=$?
22755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22756 test $ac_status = 0; }; }
22757 then
22758 gcc_cv_as_shf_merge=yes
22759 else
22760 echo "configure: failed program was" >&5
22761 cat conftest.s >&5
22762 fi
22763 rm -f conftest.o conftest.s
22764 fi
22765 fi
22766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22767 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22768
22769 if test $gcc_cv_as_shf_merge = no; then
22770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22771 $as_echo_n "checking assembler for section merging support... " >&6; }
22772 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22773 $as_echo_n "(cached) " >&6
22774 else
22775 gcc_cv_as_shf_merge=no
22776 if test $in_tree_gas = yes; then
22777 if test $in_tree_gas_is_elf = yes \
22778 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22779 then gcc_cv_as_shf_merge=yes
22780 fi
22781 elif test x$gcc_cv_as != x; then
22782 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22783 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22785 (eval $ac_try) 2>&5
22786 ac_status=$?
22787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22788 test $ac_status = 0; }; }
22789 then
22790 gcc_cv_as_shf_merge=yes
22791 else
22792 echo "configure: failed program was" >&5
22793 cat conftest.s >&5
22794 fi
22795 rm -f conftest.o conftest.s
22796 fi
22797 fi
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22799 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22800
22801 fi
22802
22803 cat >>confdefs.h <<_ACEOF
22804 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22805 _ACEOF
22806
22807
22808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22809 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22810 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22811 $as_echo_n "(cached) " >&6
22812 else
22813 gcc_cv_as_comdat_group=no
22814 if test $in_tree_gas = yes; then
22815 if test $in_tree_gas_is_elf = yes \
22816 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22817 then gcc_cv_as_comdat_group=yes
22818 fi
22819 elif test x$gcc_cv_as != x; then
22820 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22821 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22823 (eval $ac_try) 2>&5
22824 ac_status=$?
22825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22826 test $ac_status = 0; }; }
22827 then
22828 gcc_cv_as_comdat_group=yes
22829 else
22830 echo "configure: failed program was" >&5
22831 cat conftest.s >&5
22832 fi
22833 rm -f conftest.o conftest.s
22834 fi
22835 fi
22836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22837 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22838
22839 if test $gcc_cv_as_comdat_group = yes; then
22840 gcc_cv_as_comdat_group_percent=no
22841 gcc_cv_as_comdat_group_group=no
22842 else
22843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22844 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22845 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22846 $as_echo_n "(cached) " >&6
22847 else
22848 gcc_cv_as_comdat_group_percent=no
22849 if test $in_tree_gas = yes; then
22850 if test $in_tree_gas_is_elf = yes \
22851 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22852 then gcc_cv_as_comdat_group_percent=yes
22853 fi
22854 elif test x$gcc_cv_as != x; then
22855 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22856 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22858 (eval $ac_try) 2>&5
22859 ac_status=$?
22860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22861 test $ac_status = 0; }; }
22862 then
22863 gcc_cv_as_comdat_group_percent=yes
22864 else
22865 echo "configure: failed program was" >&5
22866 cat conftest.s >&5
22867 fi
22868 rm -f conftest.o conftest.s
22869 fi
22870 fi
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22872 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22873
22874 if test $gcc_cv_as_comdat_group_percent = yes; then
22875 gcc_cv_as_comdat_group_group=no
22876 else
22877 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22878 gcc_cv_as_comdat_group_group=no
22879 fi
22880 case "${target}" in
22881 # Sun as uses a completely different syntax.
22882 *-*-solaris2*)
22883 case "${target}" in
22884 sparc*-*-solaris2*)
22885 conftest_s='
22886 .group foo,".text%foo",#comdat
22887 .section ".text%foo", #alloc,#execinstr,#progbits
22888 .globl foo
22889 foo:
22890 '
22891 ;;
22892 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22893 conftest_s='
22894 .group foo,.text%foo,#comdat
22895 .section .text%foo, "ax", @progbits
22896 .globl foo
22897 foo:
22898 '
22899 ;;
22900 esac
22901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22902 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22903 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22904 $as_echo_n "(cached) " >&6
22905 else
22906 gcc_cv_as_comdat_group_group=no
22907 if test x$gcc_cv_as != x; then
22908 $as_echo "$conftest_s" > conftest.s
22909 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22911 (eval $ac_try) 2>&5
22912 ac_status=$?
22913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22914 test $ac_status = 0; }; }
22915 then
22916 gcc_cv_as_comdat_group_group=yes
22917 else
22918 echo "configure: failed program was" >&5
22919 cat conftest.s >&5
22920 fi
22921 rm -f conftest.o conftest.s
22922 fi
22923 fi
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22925 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22926
22927 ;;
22928 esac
22929 fi
22930 fi
22931 if test x"$ld_is_gold" = xyes; then
22932 comdat_group=yes
22933 elif test $in_tree_ld = yes ; then
22934 comdat_group=no
22935 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
22936 && test $in_tree_ld_is_elf = yes; then
22937 comdat_group=yes
22938 fi
22939 elif echo "$ld_ver" | grep GNU > /dev/null; then
22940 comdat_group=yes
22941 if test 0"$ld_date" -lt 20050308; then
22942 if test -n "$ld_date"; then
22943 # If there was date string, but was earlier than 2005-03-08, fail
22944 comdat_group=no
22945 elif test "$ld_vers_major" -lt 2; then
22946 comdat_group=no
22947 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22948 comdat_group=no
22949 fi
22950 fi
22951 else
22952 case "${target}" in
22953 *-*-solaris2.1[1-9]*)
22954 comdat_group=no
22955 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22956 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22957 # version 1.688.
22958 #
22959 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22960 # least ld version 1.2267.
22961 if test "$ld_vers_major" -gt 1; then
22962 comdat_group=yes
22963 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
22964 comdat_group=yes
22965 elif test "$ld_vers_minor" -ge 2267; then
22966 comdat_group=yes
22967 fi
22968 ;;
22969 *)
22970 # Assume linkers other than GNU ld don't support COMDAT group.
22971 comdat_group=no
22972 ;;
22973 esac
22974 fi
22975 # Allow overriding the automatic COMDAT group tests above.
22976 # Check whether --enable-comdat was given.
22977 if test "${enable_comdat+set}" = set; then :
22978 enableval=$enable_comdat; comdat_group="$enable_comdat"
22979 fi
22980
22981 if test $comdat_group = no; then
22982 gcc_cv_as_comdat_group=no
22983 gcc_cv_as_comdat_group_percent=no
22984 gcc_cv_as_comdat_group_group=no
22985 fi
22986
22987 cat >>confdefs.h <<_ACEOF
22988 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22989 || test $gcc_cv_as_comdat_group_percent = yes \
22990 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22991 _ACEOF
22992
22993
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22995 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22996 if test "${gcc_cv_as_discriminator+set}" = set; then :
22997 $as_echo_n "(cached) " >&6
22998 else
22999 gcc_cv_as_discriminator=no
23000 if test $in_tree_gas = yes; then
23001 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23002 then gcc_cv_as_discriminator=yes
23003 fi
23004 elif test x$gcc_cv_as != x; then
23005 $as_echo ' .text
23006 .file 1 "conf.c"
23007 .loc 1 1 0 discriminator 1' > conftest.s
23008 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23010 (eval $ac_try) 2>&5
23011 ac_status=$?
23012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23013 test $ac_status = 0; }; }
23014 then
23015 gcc_cv_as_discriminator=yes
23016 else
23017 echo "configure: failed program was" >&5
23018 cat conftest.s >&5
23019 fi
23020 rm -f conftest.o conftest.s
23021 fi
23022 fi
23023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23024 $as_echo "$gcc_cv_as_discriminator" >&6; }
23025 if test $gcc_cv_as_discriminator = yes; then
23026
23027 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23028
23029 fi
23030
23031 # Thread-local storage - the check is heavily parameterized.
23032 conftest_s=
23033 tls_first_major=
23034 tls_first_minor=
23035 tls_as_opt=
23036 case "$target" in
23037 alpha*-*-*)
23038 conftest_s='
23039 .section ".tdata","awT",@progbits
23040 foo: .long 25
23041 .text
23042 ldq $27,__tls_get_addr($29) !literal!1
23043 lda $16,foo($29) !tlsgd!1
23044 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23045 ldq $27,__tls_get_addr($29) !literal!2
23046 lda $16,foo($29) !tlsldm!2
23047 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23048 ldq $1,foo($29) !gotdtprel
23049 ldah $2,foo($29) !dtprelhi
23050 lda $3,foo($2) !dtprello
23051 lda $4,foo($29) !dtprel
23052 ldq $1,foo($29) !gottprel
23053 ldah $2,foo($29) !tprelhi
23054 lda $3,foo($2) !tprello
23055 lda $4,foo($29) !tprel'
23056 tls_first_major=2
23057 tls_first_minor=13
23058 tls_as_opt=--fatal-warnings
23059 ;;
23060 cris-*-*|crisv32-*-*)
23061 conftest_s='
23062 .section ".tdata","awT",@progbits
23063 x: .long 25
23064 .text
23065 move.d x:IE,$r10
23066 nop'
23067 tls_first_major=2
23068 tls_first_minor=20
23069 tls_as_opt=--fatal-warnings
23070 ;;
23071 frv*-*-*)
23072 conftest_s='
23073 .section ".tdata","awT",@progbits
23074 x: .long 25
23075 .text
23076 call #gettlsoff(x)'
23077 tls_first_major=2
23078 tls_first_minor=14
23079 ;;
23080 hppa*-*-linux*)
23081 conftest_s='
23082 t1: .reg %r20
23083 t2: .reg %r21
23084 gp: .reg %r19
23085 .section ".tdata","awT",@progbits
23086 foo: .long 25
23087 .text
23088 .align 4
23089 addil LT%foo-$tls_gdidx$,gp
23090 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23091 b __tls_get_addr
23092 nop
23093 addil LT%foo-$tls_ldidx$,gp
23094 b __tls_get_addr
23095 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23096 addil LR%foo-$tls_dtpoff$,%ret0
23097 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23098 mfctl %cr27,%t1
23099 addil LT%foo-$tls_ieoff$,gp
23100 ldw RT%foo-$tls_ieoff$(%r1),%t2
23101 add %t1,%t2,%t3
23102 mfctl %cr27,%t1
23103 addil LR%foo-$tls_leoff$,%t1
23104 ldo RR%foo-$tls_leoff$(%r1),%t2'
23105 tls_first_major=2
23106 tls_first_minor=15
23107 tls_as_opt=--fatal-warnings
23108 ;;
23109 arm*-*-*)
23110 conftest_s='
23111 .section ".tdata","awT",%progbits
23112 foo: .long 25
23113 .text
23114 .word foo(gottpoff)
23115 .word foo(tpoff)
23116 .word foo(tlsgd)
23117 .word foo(tlsldm)
23118 .word foo(tlsldo)'
23119 tls_first_major=2
23120 tls_first_minor=17
23121 ;;
23122 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23123 case "$target" in
23124 i[34567]86-*-solaris2.*)
23125 on_solaris=yes
23126 tga_func=___tls_get_addr
23127 ;;
23128 x86_64-*-solaris2.1[0-9]*)
23129 on_solaris=yes
23130 tga_func=__tls_get_addr
23131 ;;
23132 *)
23133 on_solaris=no
23134 ;;
23135 esac
23136 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23137 conftest_s='
23138 .section .tdata,"awt",@progbits'
23139 tls_first_major=0
23140 tls_first_minor=0
23141
23142 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23143
23144 else
23145 conftest_s='
23146 .section ".tdata","awT",@progbits'
23147 tls_first_major=2
23148 tls_first_minor=14
23149 tls_as_opt="--fatal-warnings"
23150 fi
23151 conftest_s="$conftest_s
23152 foo: .long 25
23153 .text
23154 movl %gs:0, %eax
23155 leal foo@tlsgd(,%ebx,1), %eax
23156 leal foo@tlsldm(%ebx), %eax
23157 leal foo@dtpoff(%eax), %edx
23158 movl foo@gottpoff(%ebx), %eax
23159 subl foo@gottpoff(%ebx), %eax
23160 addl foo@gotntpoff(%ebx), %eax
23161 movl foo@indntpoff, %eax
23162 movl \$foo@tpoff, %eax
23163 subl \$foo@tpoff, %eax
23164 leal foo@ntpoff(%ecx), %eax"
23165 ;;
23166 x86_64-*-*)
23167 conftest_s='
23168 .section ".tdata","awT",@progbits
23169 foo: .long 25
23170 .text
23171 movq %fs:0, %rax
23172 leaq foo@TLSGD(%rip), %rdi
23173 leaq foo@TLSLD(%rip), %rdi
23174 leaq foo@DTPOFF(%rax), %rdx
23175 movq foo@GOTTPOFF(%rip), %rax
23176 movq $foo@TPOFF, %rax'
23177 tls_first_major=2
23178 tls_first_minor=14
23179 tls_as_opt=--fatal-warnings
23180 ;;
23181 ia64-*-*)
23182 conftest_s='
23183 .section ".tdata","awT",@progbits
23184 foo: data8 25
23185 .text
23186 addl r16 = @ltoff(@dtpmod(foo#)), gp
23187 addl r17 = @ltoff(@dtprel(foo#)), gp
23188 addl r18 = @ltoff(@tprel(foo#)), gp
23189 addl r19 = @dtprel(foo#), gp
23190 adds r21 = @dtprel(foo#), r13
23191 movl r23 = @dtprel(foo#)
23192 addl r20 = @tprel(foo#), gp
23193 adds r22 = @tprel(foo#), r13
23194 movl r24 = @tprel(foo#)'
23195 tls_first_major=2
23196 tls_first_minor=13
23197 tls_as_opt=--fatal-warnings
23198 ;;
23199 mips*-*-*)
23200 conftest_s='
23201 .section .tdata,"awT",@progbits
23202 x:
23203 .word 2
23204 .text
23205 addiu $4, $28, %tlsgd(x)
23206 addiu $4, $28, %tlsldm(x)
23207 lui $4, %dtprel_hi(x)
23208 addiu $4, $4, %dtprel_lo(x)
23209 lw $4, %gottprel(x)($28)
23210 lui $4, %tprel_hi(x)
23211 addiu $4, $4, %tprel_lo(x)'
23212 tls_first_major=2
23213 tls_first_minor=16
23214 tls_as_opt='-32 --fatal-warnings'
23215 ;;
23216 m68k-*-*)
23217 conftest_s='
23218 .section .tdata,"awT",@progbits
23219 x:
23220 .word 2
23221 .text
23222 foo:
23223 move.l x@TLSGD(%a5),%a0
23224 move.l x@TLSLDM(%a5),%a0
23225 move.l x@TLSLDO(%a5),%a0
23226 move.l x@TLSIE(%a5),%a0
23227 move.l x@TLSLE(%a5),%a0'
23228 tls_first_major=2
23229 tls_first_minor=19
23230 tls_as_opt='--fatal-warnings'
23231 ;;
23232 aarch64*-*-*)
23233 conftest_s='
23234 .section ".tdata","awT",%progbits
23235 foo: .long 25
23236 .text
23237 adrp x0, :tlsgd:x
23238 add x0, x0, #:tlsgd_lo12:x
23239 bl __tls_get_addr
23240 nop'
23241 tls_first_major=2
23242 tls_first_minor=20
23243 tls_as_opt='--fatal-warnings'
23244 ;;
23245 powerpc-*-*)
23246 conftest_s='
23247 .section ".tdata","awT",@progbits
23248 .align 2
23249 ld0: .space 4
23250 ld1: .space 4
23251 x1: .space 4
23252 x2: .space 4
23253 x3: .space 4
23254 .text
23255 addi 3,31,ld0@got@tlsgd
23256 bl __tls_get_addr
23257 addi 3,31,x1@got@tlsld
23258 bl __tls_get_addr
23259 addi 9,3,x1@dtprel
23260 addis 9,3,x2@dtprel@ha
23261 addi 9,9,x2@dtprel@l
23262 lwz 9,x3@got@tprel(31)
23263 add 9,9,x@tls
23264 addi 9,2,x1@tprel
23265 addis 9,2,x2@tprel@ha
23266 addi 9,9,x2@tprel@l'
23267 tls_first_major=2
23268 tls_first_minor=14
23269 tls_as_opt="-a32 --fatal-warnings"
23270 ;;
23271 powerpc64-*-*)
23272 conftest_s='
23273 .section ".tdata","awT",@progbits
23274 .align 3
23275 ld0: .space 8
23276 ld1: .space 8
23277 x1: .space 8
23278 x2: .space 8
23279 x3: .space 8
23280 .text
23281 addi 3,2,ld0@got@tlsgd
23282 bl .__tls_get_addr
23283 nop
23284 addi 3,2,ld1@toc
23285 bl .__tls_get_addr
23286 nop
23287 addi 3,2,x1@got@tlsld
23288 bl .__tls_get_addr
23289 nop
23290 addi 9,3,x1@dtprel
23291 bl .__tls_get_addr
23292 nop
23293 addis 9,3,x2@dtprel@ha
23294 addi 9,9,x2@dtprel@l
23295 bl .__tls_get_addr
23296 nop
23297 ld 9,x3@got@dtprel(2)
23298 add 9,9,3
23299 bl .__tls_get_addr
23300 nop'
23301 tls_first_major=2
23302 tls_first_minor=14
23303 tls_as_opt="-a64 --fatal-warnings"
23304 ;;
23305 s390-*-*)
23306 conftest_s='
23307 .section ".tdata","awT",@progbits
23308 foo: .long 25
23309 .text
23310 .long foo@TLSGD
23311 .long foo@TLSLDM
23312 .long foo@DTPOFF
23313 .long foo@NTPOFF
23314 .long foo@GOTNTPOFF
23315 .long foo@INDNTPOFF
23316 l %r1,foo@GOTNTPOFF(%r12)
23317 l %r1,0(%r1):tls_load:foo
23318 bas %r14,0(%r1,%r13):tls_gdcall:foo
23319 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23320 tls_first_major=2
23321 tls_first_minor=14
23322 tls_as_opt="-m31 --fatal-warnings"
23323 ;;
23324 s390x-*-*)
23325 conftest_s='
23326 .section ".tdata","awT",@progbits
23327 foo: .long 25
23328 .text
23329 .quad foo@TLSGD
23330 .quad foo@TLSLDM
23331 .quad foo@DTPOFF
23332 .quad foo@NTPOFF
23333 .quad foo@GOTNTPOFF
23334 lg %r1,foo@GOTNTPOFF(%r12)
23335 larl %r1,foo@INDNTPOFF
23336 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23337 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23338 tls_first_major=2
23339 tls_first_minor=14
23340 tls_as_opt="-m64 -Aesame --fatal-warnings"
23341 ;;
23342 sh-*-* | sh[34]-*-*)
23343 conftest_s='
23344 .section ".tdata","awT",@progbits
23345 foo: .long 25
23346 .text
23347 .long foo@TLSGD
23348 .long foo@TLSLDM
23349 .long foo@DTPOFF
23350 .long foo@GOTTPOFF
23351 .long foo@TPOFF'
23352 tls_first_major=2
23353 tls_first_minor=13
23354 tls_as_opt=--fatal-warnings
23355 ;;
23356 sparc*-*-*)
23357 case "$target" in
23358 sparc*-sun-solaris2.*)
23359 on_solaris=yes
23360 tga_func=__tls_get_addr
23361 ;;
23362 *)
23363 on_solaris=no
23364 ;;
23365 esac
23366 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23367 conftest_s='
23368 .section ".tdata",#alloc,#write,#tls'
23369 tls_first_major=0
23370 tls_first_minor=0
23371 else
23372 conftest_s='
23373 .section ".tdata","awT",@progbits'
23374 tls_first_major=2
23375 tls_first_minor=14
23376 tls_as_opt="-32 --fatal-warnings"
23377 fi
23378 conftest_s="$conftest_s
23379 foo: .long 25
23380 .text
23381 sethi %tgd_hi22(foo), %o0
23382 add %o0, %tgd_lo10(foo), %o1
23383 add %l7, %o1, %o0, %tgd_add(foo)
23384 call __tls_get_addr, %tgd_call(foo)
23385 sethi %tldm_hi22(foo), %l1
23386 add %l1, %tldm_lo10(foo), %l2
23387 add %l7, %l2, %o0, %tldm_add(foo)
23388 call __tls_get_addr, %tldm_call(foo)
23389 sethi %tldo_hix22(foo), %l3
23390 xor %l3, %tldo_lox10(foo), %l4
23391 add %o0, %l4, %l5, %tldo_add(foo)
23392 sethi %tie_hi22(foo), %o3
23393 add %o3, %tie_lo10(foo), %o3
23394 ld [%l7 + %o3], %o2, %tie_ld(foo)
23395 add %g7, %o2, %o4, %tie_add(foo)
23396 sethi %tle_hix22(foo), %l1
23397 xor %l1, %tle_lox10(foo), %o5
23398 ld [%g7 + %o5], %o1"
23399 ;;
23400 tilepro*-*-*)
23401 conftest_s='
23402 .section ".tdata","awT",@progbits
23403 foo: .long 25
23404 .text
23405 addli r0, zero, tls_gd(foo)
23406 auli r0, zero, tls_gd_ha16(foo)
23407 addli r0, r0, tls_gd_lo16(foo)
23408 jal __tls_get_addr
23409 addli r0, zero, tls_ie(foo)
23410 auli r0, r0, tls_ie_ha16(foo)
23411 addli r0, r0, tls_ie_lo16(foo)'
23412 tls_first_major=2
23413 tls_first_minor=22
23414 tls_as_opt="--fatal-warnings"
23415 ;;
23416 tilegx*-*-*)
23417 conftest_s='
23418 .section ".tdata","awT",@progbits
23419 foo: .long 25
23420 .text
23421 shl16insli r0, zero, hw0_last_tls_gd(foo)
23422 shl16insli r0, zero, hw1_last_tls_gd(foo)
23423 shl16insli r0, r0, hw0_tls_gd(foo)
23424 jal __tls_get_addr
23425 shl16insli r0, zero, hw1_last_tls_ie(foo)
23426 shl16insli r0, r0, hw0_tls_ie(foo)'
23427 tls_first_major=2
23428 tls_first_minor=22
23429 tls_as_opt="--fatal-warnings"
23430 ;;
23431 xtensa*-*-*)
23432 conftest_s='
23433 .section ".tdata","awT",@progbits
23434 foo: .long 25
23435 .text
23436 movi a8, foo@TLSFUNC
23437 movi a10, foo@TLSARG
23438 callx8.tls a8, foo@TLSCALL'
23439 tls_first_major=2
23440 tls_first_minor=19
23441 ;;
23442 esac
23443 set_have_as_tls=no
23444 if test "x$enable_tls" = xno ; then
23445 : # TLS explicitly disabled.
23446 elif test "x$enable_tls" = xyes ; then
23447 set_have_as_tls=yes # TLS explicitly enabled.
23448 elif test -z "$tls_first_major"; then
23449 : # If we don't have a check, assume no support.
23450 else
23451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23452 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23453 if test "${gcc_cv_as_tls+set}" = set; then :
23454 $as_echo_n "(cached) " >&6
23455 else
23456 gcc_cv_as_tls=no
23457 if test $in_tree_gas = yes; then
23458 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23459 then gcc_cv_as_tls=yes
23460 fi
23461 elif test x$gcc_cv_as != x; then
23462 $as_echo "$conftest_s" > conftest.s
23463 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23465 (eval $ac_try) 2>&5
23466 ac_status=$?
23467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23468 test $ac_status = 0; }; }
23469 then
23470 gcc_cv_as_tls=yes
23471 else
23472 echo "configure: failed program was" >&5
23473 cat conftest.s >&5
23474 fi
23475 rm -f conftest.o conftest.s
23476 fi
23477 fi
23478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23479 $as_echo "$gcc_cv_as_tls" >&6; }
23480 if test $gcc_cv_as_tls = yes; then
23481 set_have_as_tls=yes
23482 fi
23483 fi
23484 case "$target" in
23485 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23486 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23487 # Sun style that Sun ld and GCC don't support any longer.
23488 *-*-solaris2.*)
23489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23490 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23491 ld_tls_support=no
23492 # Check ld and ld.so.1 TLS support.
23493 if echo "$ld_ver" | grep GNU > /dev/null; then
23494 # Assume all interesting versions of GNU ld have TLS support.
23495 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23496 ld_tls_support=yes
23497 else
23498 case "$target" in
23499 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23500 i?86-*-solaris2.9)
23501 min_tls_ld_vers_minor=374
23502 ;;
23503 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23504 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23505 min_tls_ld_vers_minor=343
23506 ;;
23507 esac
23508 if test "$ld_vers_major" -gt 1 || \
23509 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23510 ld_tls_support=yes
23511 else
23512 set_have_as_tls=no
23513 fi
23514 fi
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23516 $as_echo "$ld_tls_support" >&6; }
23517
23518 save_LIBS="$LIBS"
23519 save_LDFLAGS="$LDFLAGS"
23520 LIBS=
23521 LDFLAGS=
23522
23523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23524 $as_echo_n "checking library containing $tga_func... " >&6; }
23525 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23526 # (32-bit x86) only lived in libthread, so check for that. Keep
23527 # set_have_as_tls if found, disable if not.
23528 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23530 $as_echo_n "checking for library containing $tga_func... " >&6; }
23531 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23532 $as_echo_n "(cached) " >&6
23533 else
23534 ac_func_search_save_LIBS=$LIBS
23535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23536 /* end confdefs.h. */
23537
23538 /* Override any GCC internal prototype to avoid an error.
23539 Use char because int might match the return type of a GCC
23540 builtin and then its argument prototype would still apply. */
23541 #ifdef __cplusplus
23542 extern "C"
23543 #endif
23544 char $tga_func ();
23545 int
23546 main ()
23547 {
23548 return $tga_func ();
23549 ;
23550 return 0;
23551 }
23552 _ACEOF
23553 for ac_lib in '' thread; do
23554 if test -z "$ac_lib"; then
23555 ac_res="none required"
23556 else
23557 ac_res=-l$ac_lib
23558 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23559 fi
23560 if ac_fn_c_try_link "$LINENO"; then :
23561 eval "$as_ac_Search=\$ac_res"
23562 fi
23563 rm -f core conftest.err conftest.$ac_objext \
23564 conftest$ac_exeext
23565 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23566 break
23567 fi
23568 done
23569 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23570
23571 else
23572 eval "$as_ac_Search=no"
23573 fi
23574 rm conftest.$ac_ext
23575 LIBS=$ac_func_search_save_LIBS
23576 fi
23577 eval ac_res=\$$as_ac_Search
23578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23579 $as_echo "$ac_res" >&6; }
23580 eval ac_res=\$$as_ac_Search
23581 if test "$ac_res" != no; then :
23582 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23583
23584 else
23585 set_have_as_tls=no
23586 fi
23587
23588 # Clear LIBS if we cannot support TLS.
23589 if test $set_have_as_tls = no; then
23590 LIBS=
23591 fi
23592 # Always define LIB_TLS_SPEC, even without TLS support.
23593
23594 cat >>confdefs.h <<_ACEOF
23595 #define LIB_TLS_SPEC "$LIBS"
23596 _ACEOF
23597
23598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23599 $as_echo "$LIBS" >&6; }
23600
23601 LIBS="$save_LIBS"
23602 LDFLAGS="$save_LDFLAGS"
23603 ;;
23604 esac
23605 if test $set_have_as_tls = yes ; then
23606
23607 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23608
23609 fi
23610
23611 # Target-specific assembler checks.
23612
23613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23614 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23615 gcc_cv_ld_static_dynamic=no
23616 gcc_cv_ld_static_option='-Bstatic'
23617 gcc_cv_ld_dynamic_option='-Bdynamic'
23618 if test $in_tree_ld = yes ; then
23619 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2; then
23620 gcc_cv_ld_static_dynamic=yes
23621 fi
23622 elif test x$gcc_cv_ld != x; then
23623 # Check if linker supports -Bstatic/-Bdynamic option
23624 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23625 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23626 gcc_cv_ld_static_dynamic=yes
23627 else
23628 case "$target" in
23629 # HP-UX ld uses -a flags to select between shared and archive.
23630 *-*-hpux*)
23631 if test x"$gnu_ld" = xno; then
23632 gcc_cv_ld_static_dynamic=yes
23633 gcc_cv_ld_static_option="-aarchive_shared"
23634 gcc_cv_ld_dynamic_option="-adefault"
23635 fi
23636 ;;
23637 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23638 *-*-solaris2*)
23639 gcc_cv_ld_static_dynamic=yes
23640 ;;
23641 esac
23642 fi
23643 fi
23644 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23645
23646 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23647
23648
23649 cat >>confdefs.h <<_ACEOF
23650 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23651 _ACEOF
23652
23653
23654 cat >>confdefs.h <<_ACEOF
23655 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23656 _ACEOF
23657
23658 fi
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23660 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23661
23662 if test x"$demangler_in_ld" = xyes; then
23663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23664 $as_echo_n "checking linker --demangle support... " >&6; }
23665 gcc_cv_ld_demangle=no
23666 if test $in_tree_ld = yes; then
23667 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
23668 gcc_cv_ld_demangle=yes
23669 fi
23670 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23671 # Check if the GNU linker supports --demangle option
23672 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23673 gcc_cv_ld_demangle=yes
23674 fi
23675 fi
23676 if test x"$gcc_cv_ld_demangle" = xyes; then
23677
23678 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23679
23680 fi
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23682 $as_echo "$gcc_cv_ld_demangle" >&6; }
23683 fi
23684
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23686 $as_echo_n "checking linker plugin support... " >&6; }
23687 gcc_cv_lto_plugin=0
23688 if test -f liblto_plugin.la; then
23689 save_ld_ver="$ld_ver"
23690 save_ld_vers_major="$ld_vers_major"
23691 save_ld_vers_minor="$ld_vers_minor"
23692 save_ld_is_gold="$ld_is_gold"
23693
23694 ld_is_gold=no
23695
23696 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23697 ld_ver="GNU ld"
23698 # FIXME: ld_is_gold?
23699 ld_vers_major="$gcc_cv_gld_major_version"
23700 ld_vers_minor="$gcc_cv_gld_minor_version"
23701 else
23702 # Determine plugin linker version.
23703 # FIXME: Partial duplicate from above, generalize.
23704 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23705 if echo "$ld_ver" | grep GNU > /dev/null; then
23706 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23707 ld_is_gold=yes
23708 ld_vers=`echo $ld_ver | sed -n \
23709 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23710 else
23711 ld_vers=`echo $ld_ver | sed -n \
23712 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23713 fi
23714 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23715 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23716 fi
23717 fi
23718
23719 # Determine plugin support.
23720 if echo "$ld_ver" | grep GNU > /dev/null; then
23721 # Require GNU ld or gold 2.21+ for plugin support by default.
23722 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23723 gcc_cv_lto_plugin=2
23724 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23725 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23726 gcc_cv_lto_plugin=1
23727 fi
23728 fi
23729
23730 ld_ver="$save_ld_ver"
23731 ld_vers_major="$save_ld_vers_major"
23732 ld_vers_minor="$save_ld_vers_minor"
23733 ld_is_gold="$save_ld_is_gold"
23734 fi
23735
23736 cat >>confdefs.h <<_ACEOF
23737 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23738 _ACEOF
23739
23740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23741 $as_echo "$gcc_cv_lto_plugin" >&6; }
23742
23743 case "$target" in
23744 # All TARGET_ABI_OSF targets.
23745 alpha*-*-linux* | alpha*-*-*bsd*)
23746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23747 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23748 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23749 $as_echo_n "(cached) " >&6
23750 else
23751 gcc_cv_as_alpha_explicit_relocs=no
23752 if test $in_tree_gas = yes; then
23753 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23754 then gcc_cv_as_alpha_explicit_relocs=yes
23755 fi
23756 elif test x$gcc_cv_as != x; then
23757 $as_echo ' .set nomacro
23758 .text
23759 extbl $3, $2, $3 !lituse_bytoff!1
23760 ldq $2, a($29) !literal!1
23761 ldq $4, b($29) !literal!2
23762 ldq_u $3, 0($2) !lituse_base!1
23763 ldq $27, f($29) !literal!5
23764 jsr $26, ($27), f !lituse_jsr!5
23765 ldah $29, 0($26) !gpdisp!3
23766 lda $0, c($29) !gprel
23767 ldah $1, d($29) !gprelhigh
23768 lda $1, d($1) !gprellow
23769 lda $29, 0($29) !gpdisp!3' > conftest.s
23770 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23772 (eval $ac_try) 2>&5
23773 ac_status=$?
23774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23775 test $ac_status = 0; }; }
23776 then
23777 gcc_cv_as_alpha_explicit_relocs=yes
23778 else
23779 echo "configure: failed program was" >&5
23780 cat conftest.s >&5
23781 fi
23782 rm -f conftest.o conftest.s
23783 fi
23784 fi
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23786 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23787 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23788
23789 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23790
23791 fi
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23793 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23794 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23795 $as_echo_n "(cached) " >&6
23796 else
23797 gcc_cv_as_alpha_jsrdirect_relocs=no
23798 if test $in_tree_gas = yes; then
23799 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23800 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23801 fi
23802 elif test x$gcc_cv_as != x; then
23803 $as_echo ' .set nomacro
23804 .text
23805 ldq $27, a($29) !literal!1
23806 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23807 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23809 (eval $ac_try) 2>&5
23810 ac_status=$?
23811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23812 test $ac_status = 0; }; }
23813 then
23814 gcc_cv_as_alpha_jsrdirect_relocs=yes
23815 else
23816 echo "configure: failed program was" >&5
23817 cat conftest.s >&5
23818 fi
23819 rm -f conftest.o conftest.s
23820 fi
23821 fi
23822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23823 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23824 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23825
23826 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23827
23828 fi
23829 ;;
23830
23831 cris-*-*)
23832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23833 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23834 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23835 $as_echo_n "(cached) " >&6
23836 else
23837 gcc_cv_as_cris_no_mul_bug=no
23838 if test $in_tree_gas = yes; then
23839 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23840 then gcc_cv_as_cris_no_mul_bug=yes
23841 fi
23842 elif test x$gcc_cv_as != x; then
23843 $as_echo '.text' > conftest.s
23844 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23846 (eval $ac_try) 2>&5
23847 ac_status=$?
23848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23849 test $ac_status = 0; }; }
23850 then
23851 gcc_cv_as_cris_no_mul_bug=yes
23852 else
23853 echo "configure: failed program was" >&5
23854 cat conftest.s >&5
23855 fi
23856 rm -f conftest.o conftest.s
23857 fi
23858 fi
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23860 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23861 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23862
23863 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23864
23865 fi
23866 ;;
23867
23868 sparc*-*-*)
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23870 $as_echo_n "checking assembler for .register... " >&6; }
23871 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23872 $as_echo_n "(cached) " >&6
23873 else
23874 gcc_cv_as_sparc_register_op=no
23875 if test x$gcc_cv_as != x; then
23876 $as_echo '.register %g2, #scratch' > conftest.s
23877 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23879 (eval $ac_try) 2>&5
23880 ac_status=$?
23881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23882 test $ac_status = 0; }; }
23883 then
23884 gcc_cv_as_sparc_register_op=yes
23885 else
23886 echo "configure: failed program was" >&5
23887 cat conftest.s >&5
23888 fi
23889 rm -f conftest.o conftest.s
23890 fi
23891 fi
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23893 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23894 if test $gcc_cv_as_sparc_register_op = yes; then
23895
23896 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23897
23898 fi
23899
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23901 $as_echo_n "checking assembler for -relax option... " >&6; }
23902 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23903 $as_echo_n "(cached) " >&6
23904 else
23905 gcc_cv_as_sparc_relax=no
23906 if test x$gcc_cv_as != x; then
23907 $as_echo '.text' > conftest.s
23908 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23910 (eval $ac_try) 2>&5
23911 ac_status=$?
23912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23913 test $ac_status = 0; }; }
23914 then
23915 gcc_cv_as_sparc_relax=yes
23916 else
23917 echo "configure: failed program was" >&5
23918 cat conftest.s >&5
23919 fi
23920 rm -f conftest.o conftest.s
23921 fi
23922 fi
23923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23924 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23925 if test $gcc_cv_as_sparc_relax = yes; then
23926
23927 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23928
23929 fi
23930
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23932 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23933 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23934 $as_echo_n "(cached) " >&6
23935 else
23936 gcc_cv_as_sparc_gotdata_op=no
23937 if test x$gcc_cv_as != x; then
23938 $as_echo '.text
23939 .align 4
23940 foo:
23941 nop
23942 bar:
23943 sethi %gdop_hix22(foo), %g1
23944 xor %g1, %gdop_lox10(foo), %g1
23945 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23946 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23948 (eval $ac_try) 2>&5
23949 ac_status=$?
23950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23951 test $ac_status = 0; }; }
23952 then
23953 if test x$gcc_cv_ld != x \
23954 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23955 if test x$gcc_cv_objdump != x; then
23956 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23957 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23958 gcc_cv_as_sparc_gotdata_op=no
23959 else
23960 gcc_cv_as_sparc_gotdata_op=yes
23961 fi
23962 fi
23963 fi
23964 rm -f conftest
23965 else
23966 echo "configure: failed program was" >&5
23967 cat conftest.s >&5
23968 fi
23969 rm -f conftest.o conftest.s
23970 fi
23971 fi
23972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23973 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23974 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23975
23976 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23977
23978 fi
23979
23980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23981 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23982 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23983 $as_echo_n "(cached) " >&6
23984 else
23985 gcc_cv_as_sparc_ua_pcrel=no
23986 if test x$gcc_cv_as != x; then
23987 $as_echo '.text
23988 foo:
23989 nop
23990 .data
23991 .align 4
23992 .byte 0
23993 .uaword %r_disp32(foo)' > conftest.s
23994 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23996 (eval $ac_try) 2>&5
23997 ac_status=$?
23998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23999 test $ac_status = 0; }; }
24000 then
24001 if test x$gcc_cv_ld != x \
24002 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24003 gcc_cv_as_sparc_ua_pcrel=yes
24004 fi
24005 rm -f conftest
24006 else
24007 echo "configure: failed program was" >&5
24008 cat conftest.s >&5
24009 fi
24010 rm -f conftest.o conftest.s
24011 fi
24012 fi
24013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24014 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24015 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24016
24017 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24018
24019
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24021 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24022 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24023 $as_echo_n "(cached) " >&6
24024 else
24025 gcc_cv_as_sparc_ua_pcrel_hidden=no
24026 if test x$gcc_cv_as != x; then
24027 $as_echo '.data
24028 .align 4
24029 .byte 0x31
24030 .uaword %r_disp32(foo)
24031 .byte 0x32, 0x33, 0x34
24032 .global foo
24033 .hidden foo
24034 foo:
24035 .skip 4' > conftest.s
24036 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24038 (eval $ac_try) 2>&5
24039 ac_status=$?
24040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24041 test $ac_status = 0; }; }
24042 then
24043 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24044 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24045 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24046 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24047 if $gcc_cv_objdump -R conftest 2> /dev/null \
24048 | grep 'DISP32' > /dev/null 2>&1; then
24049 :
24050 else
24051 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24052 fi
24053 fi
24054 rm -f conftest
24055 else
24056 echo "configure: failed program was" >&5
24057 cat conftest.s >&5
24058 fi
24059 rm -f conftest.o conftest.s
24060 fi
24061 fi
24062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24063 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24064 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24065
24066 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24067
24068 fi
24069
24070 fi # unaligned pcrel relocs
24071
24072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24073 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24074 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24075 $as_echo_n "(cached) " >&6
24076 else
24077 gcc_cv_as_sparc_offsetable_lo10=no
24078 if test x$gcc_cv_as != x; then
24079 $as_echo '.text
24080 or %g1, %lo(ab) + 12, %g1
24081 or %g1, %lo(ab + 12), %g1' > conftest.s
24082 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24084 (eval $ac_try) 2>&5
24085 ac_status=$?
24086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24087 test $ac_status = 0; }; }
24088 then
24089 if test x$gcc_cv_objdump != x \
24090 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24091 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24092 gcc_cv_as_sparc_offsetable_lo10=yes
24093 fi
24094 else
24095 echo "configure: failed program was" >&5
24096 cat conftest.s >&5
24097 fi
24098 rm -f conftest.o conftest.s
24099 fi
24100 fi
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24102 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24103 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24104
24105 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24106
24107 fi
24108
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24110 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24111 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24112 $as_echo_n "(cached) " >&6
24113 else
24114 gcc_cv_as_sparc_fmaf=no
24115 if test x$gcc_cv_as != x; then
24116 $as_echo '.text
24117 .register %g2, #scratch
24118 .register %g3, #scratch
24119 .align 4
24120 fmaddd %f0, %f2, %f4, %f6
24121 addxccc %g1, %g2, %g3
24122 fsrl32 %f2, %f4, %f8
24123 fnaddd %f10, %f12, %f14' > conftest.s
24124 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24126 (eval $ac_try) 2>&5
24127 ac_status=$?
24128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24129 test $ac_status = 0; }; }
24130 then
24131 gcc_cv_as_sparc_fmaf=yes
24132 else
24133 echo "configure: failed program was" >&5
24134 cat conftest.s >&5
24135 fi
24136 rm -f conftest.o conftest.s
24137 fi
24138 fi
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24140 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24141 if test $gcc_cv_as_sparc_fmaf = yes; then
24142
24143 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24144
24145 fi
24146 ;;
24147
24148 i[34567]86-*-* | x86_64-*-*)
24149 case $target_os in
24150 cygwin*)
24151 # Full C++ conformance when using a shared libstdc++-v3 requires some
24152 # support from the Cygwin DLL, which in more recent versions exports
24153 # wrappers to aid in interposing and redirecting operators new, delete,
24154 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24155 # are configuring for a version of Cygwin that exports the wrappers.
24156 if test x$host = x$target; then
24157 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24158 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24159 gcc_ac_cygwin_dll_wrappers=yes
24160 else
24161 gcc_ac_cygwin_dll_wrappers=no
24162 fi
24163
24164 else
24165 # Can't check presence of libc functions during cross-compile, so
24166 # we just have to assume we're building for an up-to-date target.
24167 gcc_ac_cygwin_dll_wrappers=yes
24168 fi
24169
24170 cat >>confdefs.h <<_ACEOF
24171 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24172 _ACEOF
24173
24174 esac
24175 case $target_os in
24176 cygwin* | pe | mingw32* | interix*)
24177 # Recent binutils allows the three-operand form of ".comm" on PE. This
24178 # definition is used unconditionally to initialise the default state of
24179 # the target option variable that governs usage of the feature.
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24181 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24182 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24183 $as_echo_n "(cached) " >&6
24184 else
24185 gcc_cv_as_comm_has_align=no
24186 if test $in_tree_gas = yes; then
24187 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24188 then gcc_cv_as_comm_has_align=yes
24189 fi
24190 elif test x$gcc_cv_as != x; then
24191 $as_echo '.comm foo,1,32' > 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_comm_has_align=yes
24200 else
24201 echo "configure: failed program was" >&5
24202 cat conftest.s >&5
24203 fi
24204 rm -f conftest.o conftest.s
24205 fi
24206 fi
24207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24208 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24209
24210
24211 cat >>confdefs.h <<_ACEOF
24212 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24213 _ACEOF
24214
24215 # Used for DWARF 2 in PE
24216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24217 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24218 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24219 $as_echo_n "(cached) " >&6
24220 else
24221 gcc_cv_as_ix86_pe_secrel32=no
24222 if test $in_tree_gas = yes; then
24223 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24224 then gcc_cv_as_ix86_pe_secrel32=yes
24225 fi
24226 elif test x$gcc_cv_as != x; then
24227 $as_echo '.text
24228 foo: nop
24229 .data
24230 .secrel32 foo' > conftest.s
24231 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24233 (eval $ac_try) 2>&5
24234 ac_status=$?
24235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24236 test $ac_status = 0; }; }
24237 then
24238 if test x$gcc_cv_ld != x \
24239 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24240 gcc_cv_as_ix86_pe_secrel32=yes
24241 fi
24242 rm -f conftest
24243 else
24244 echo "configure: failed program was" >&5
24245 cat conftest.s >&5
24246 fi
24247 rm -f conftest.o conftest.s
24248 fi
24249 fi
24250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24251 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24252 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24253
24254 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24255
24256 fi
24257 # Test if the assembler supports the extended form of the .section
24258 # directive that specifies section alignment. LTO support uses this,
24259 # but normally only after installation, so we warn but don't fail the
24260 # configure if LTO is enabled but the assembler does not support it.
24261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24262 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24263 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24264 $as_echo_n "(cached) " >&6
24265 else
24266 gcc_cv_as_section_has_align=no
24267 if test $in_tree_gas = yes; then
24268 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24269 then gcc_cv_as_section_has_align=yes
24270 fi
24271 elif test x$gcc_cv_as != x; then
24272 $as_echo '.section lto_test,"dr0"' > conftest.s
24273 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24275 (eval $ac_try) 2>&5
24276 ac_status=$?
24277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24278 test $ac_status = 0; }; }
24279 then
24280 gcc_cv_as_section_has_align=yes
24281 else
24282 echo "configure: failed program was" >&5
24283 cat conftest.s >&5
24284 fi
24285 rm -f conftest.o conftest.s
24286 fi
24287 fi
24288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24289 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24290
24291 if test x$gcc_cv_as_section_has_align != xyes; then
24292 case ",$enable_languages," in
24293 *,lto,*)
24294 { $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
24295 $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;}
24296 ;;
24297 esac
24298 fi
24299 # Test if the assembler supports the section flag 'e' for specifying
24300 # an excluded section.
24301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24302 $as_echo_n "checking assembler for .section with e... " >&6; }
24303 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24304 $as_echo_n "(cached) " >&6
24305 else
24306 gcc_cv_as_section_has_e=no
24307 if test $in_tree_gas = yes; then
24308 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24309 then gcc_cv_as_section_has_e=yes
24310 fi
24311 elif test x$gcc_cv_as != x; then
24312 $as_echo '.section foo1,"e"
24313 .byte 0,0,0,0' > conftest.s
24314 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24316 (eval $ac_try) 2>&5
24317 ac_status=$?
24318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24319 test $ac_status = 0; }; }
24320 then
24321 gcc_cv_as_section_has_e=yes
24322 else
24323 echo "configure: failed program was" >&5
24324 cat conftest.s >&5
24325 fi
24326 rm -f conftest.o conftest.s
24327 fi
24328 fi
24329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24330 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24331
24332
24333 cat >>confdefs.h <<_ACEOF
24334 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24335 _ACEOF
24336
24337 ;;
24338 esac
24339
24340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24341 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24342 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24343 $as_echo_n "(cached) " >&6
24344 else
24345 gcc_cv_as_ix86_filds=no
24346 if test x$gcc_cv_as != x; then
24347 $as_echo 'filds mem; fists mem' > conftest.s
24348 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24350 (eval $ac_try) 2>&5
24351 ac_status=$?
24352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24353 test $ac_status = 0; }; }
24354 then
24355 gcc_cv_as_ix86_filds=yes
24356 else
24357 echo "configure: failed program was" >&5
24358 cat conftest.s >&5
24359 fi
24360 rm -f conftest.o conftest.s
24361 fi
24362 fi
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24364 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24365 if test $gcc_cv_as_ix86_filds = yes; then
24366
24367 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24368
24369 fi
24370
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24372 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24373 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24374 $as_echo_n "(cached) " >&6
24375 else
24376 gcc_cv_as_ix86_fildq=no
24377 if test x$gcc_cv_as != x; then
24378 $as_echo 'fildq mem; fistpq mem' > conftest.s
24379 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24381 (eval $ac_try) 2>&5
24382 ac_status=$?
24383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24384 test $ac_status = 0; }; }
24385 then
24386 gcc_cv_as_ix86_fildq=yes
24387 else
24388 echo "configure: failed program was" >&5
24389 cat conftest.s >&5
24390 fi
24391 rm -f conftest.o conftest.s
24392 fi
24393 fi
24394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24395 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24396 if test $gcc_cv_as_ix86_fildq = yes; then
24397
24398 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24399
24400 fi
24401
24402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24403 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24404 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24405 $as_echo_n "(cached) " >&6
24406 else
24407 gcc_cv_as_ix86_cmov_sun_syntax=no
24408 if test x$gcc_cv_as != x; then
24409 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24410 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24412 (eval $ac_try) 2>&5
24413 ac_status=$?
24414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24415 test $ac_status = 0; }; }
24416 then
24417 gcc_cv_as_ix86_cmov_sun_syntax=yes
24418 else
24419 echo "configure: failed program was" >&5
24420 cat conftest.s >&5
24421 fi
24422 rm -f conftest.o conftest.s
24423 fi
24424 fi
24425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24426 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24427 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24428
24429 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24430
24431 fi
24432
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24434 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24435 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24436 $as_echo_n "(cached) " >&6
24437 else
24438 gcc_cv_as_ix86_ffreep=no
24439 if test x$gcc_cv_as != x; then
24440 $as_echo 'ffreep %st(1)' > conftest.s
24441 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24443 (eval $ac_try) 2>&5
24444 ac_status=$?
24445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24446 test $ac_status = 0; }; }
24447 then
24448 gcc_cv_as_ix86_ffreep=yes
24449 else
24450 echo "configure: failed program was" >&5
24451 cat conftest.s >&5
24452 fi
24453 rm -f conftest.o conftest.s
24454 fi
24455 fi
24456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24457 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24458 if test $gcc_cv_as_ix86_ffreep = yes; then
24459
24460 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24461
24462 fi
24463
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24465 $as_echo_n "checking assembler for .quad directive... " >&6; }
24466 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24467 $as_echo_n "(cached) " >&6
24468 else
24469 gcc_cv_as_ix86_quad=no
24470 if test x$gcc_cv_as != x; then
24471 $as_echo '.quad 0' > conftest.s
24472 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24474 (eval $ac_try) 2>&5
24475 ac_status=$?
24476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24477 test $ac_status = 0; }; }
24478 then
24479 gcc_cv_as_ix86_quad=yes
24480 else
24481 echo "configure: failed program was" >&5
24482 cat conftest.s >&5
24483 fi
24484 rm -f conftest.o conftest.s
24485 fi
24486 fi
24487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24488 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24489 if test $gcc_cv_as_ix86_quad = yes; then
24490
24491 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24492
24493 fi
24494
24495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24496 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24497 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24498 $as_echo_n "(cached) " >&6
24499 else
24500 gcc_cv_as_ix86_sahf=no
24501 if test x$gcc_cv_as != x; then
24502 $as_echo '.code64
24503 sahf' > conftest.s
24504 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24506 (eval $ac_try) 2>&5
24507 ac_status=$?
24508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24509 test $ac_status = 0; }; }
24510 then
24511 gcc_cv_as_ix86_sahf=yes
24512 else
24513 echo "configure: failed program was" >&5
24514 cat conftest.s >&5
24515 fi
24516 rm -f conftest.o conftest.s
24517 fi
24518 fi
24519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24520 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24521 if test $gcc_cv_as_ix86_sahf = yes; then
24522
24523 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24524
24525 fi
24526
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24528 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24529 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24530 $as_echo_n "(cached) " >&6
24531 else
24532 gcc_cv_as_ix86_hle=no
24533 if test x$gcc_cv_as != x; then
24534 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24535 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24537 (eval $ac_try) 2>&5
24538 ac_status=$?
24539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24540 test $ac_status = 0; }; }
24541 then
24542 gcc_cv_as_ix86_hle=yes
24543 else
24544 echo "configure: failed program was" >&5
24545 cat conftest.s >&5
24546 fi
24547 rm -f conftest.o conftest.s
24548 fi
24549 fi
24550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24551 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24552 if test $gcc_cv_as_ix86_hle = yes; then
24553
24554 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24555
24556 fi
24557
24558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24559 $as_echo_n "checking assembler for swap suffix... " >&6; }
24560 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24561 $as_echo_n "(cached) " >&6
24562 else
24563 gcc_cv_as_ix86_swap=no
24564 if test x$gcc_cv_as != x; then
24565 $as_echo 'movl.s %esp, %ebp' > conftest.s
24566 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24568 (eval $ac_try) 2>&5
24569 ac_status=$?
24570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24571 test $ac_status = 0; }; }
24572 then
24573 gcc_cv_as_ix86_swap=yes
24574 else
24575 echo "configure: failed program was" >&5
24576 cat conftest.s >&5
24577 fi
24578 rm -f conftest.o conftest.s
24579 fi
24580 fi
24581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24582 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24583 if test $gcc_cv_as_ix86_swap = yes; then
24584
24585 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24586
24587 fi
24588
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24590 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24591 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24592 $as_echo_n "(cached) " >&6
24593 else
24594 gcc_cv_as_ix86_diff_sect_delta=no
24595 if test x$gcc_cv_as != x; then
24596 $as_echo '.section .rodata
24597 .L1:
24598 .long .L2-.L1
24599 .long .L3-.L1
24600 .text
24601 .L3: nop
24602 .L2: nop' > conftest.s
24603 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24605 (eval $ac_try) 2>&5
24606 ac_status=$?
24607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24608 test $ac_status = 0; }; }
24609 then
24610 gcc_cv_as_ix86_diff_sect_delta=yes
24611 else
24612 echo "configure: failed program was" >&5
24613 cat conftest.s >&5
24614 fi
24615 rm -f conftest.o conftest.s
24616 fi
24617 fi
24618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24619 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24620 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24621
24622 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24623
24624 fi
24625
24626 # These two are used unconditionally by i386.[ch]; it is to be defined
24627 # to 1 if the feature is present, 0 otherwise.
24628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24629 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24630 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24631 $as_echo_n "(cached) " >&6
24632 else
24633 gcc_cv_as_ix86_gotoff_in_data=no
24634 if test $in_tree_gas = yes; then
24635 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24636 then gcc_cv_as_ix86_gotoff_in_data=yes
24637 fi
24638 elif test x$gcc_cv_as != x; then
24639 $as_echo ' .text
24640 .L0:
24641 nop
24642 .data
24643 .long .L0@GOTOFF' > conftest.s
24644 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24646 (eval $ac_try) 2>&5
24647 ac_status=$?
24648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24649 test $ac_status = 0; }; }
24650 then
24651 gcc_cv_as_ix86_gotoff_in_data=yes
24652 else
24653 echo "configure: failed program was" >&5
24654 cat conftest.s >&5
24655 fi
24656 rm -f conftest.o conftest.s
24657 fi
24658 fi
24659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24660 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24661
24662
24663 cat >>confdefs.h <<_ACEOF
24664 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24665 _ACEOF
24666
24667
24668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24669 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24670 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24671 $as_echo_n "(cached) " >&6
24672 else
24673 gcc_cv_as_ix86_rep_lock_prefix=no
24674 if test x$gcc_cv_as != x; then
24675 $as_echo 'rep movsl
24676 rep ret
24677 rep nop
24678 rep bsf %ecx, %eax
24679 rep bsr %ecx, %eax
24680 lock addl %edi, (%eax,%esi)
24681 lock orl $0, (%esp)' > conftest.s
24682 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24684 (eval $ac_try) 2>&5
24685 ac_status=$?
24686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24687 test $ac_status = 0; }; }
24688 then
24689 gcc_cv_as_ix86_rep_lock_prefix=yes
24690 else
24691 echo "configure: failed program was" >&5
24692 cat conftest.s >&5
24693 fi
24694 rm -f conftest.o conftest.s
24695 fi
24696 fi
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24698 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24699 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24700
24701 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24702
24703 fi
24704
24705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24706 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24707 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24708 $as_echo_n "(cached) " >&6
24709 else
24710 gcc_cv_as_ix86_tlsgdplt=no
24711 if test x$gcc_cv_as != x; then
24712 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24713 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24715 (eval $ac_try) 2>&5
24716 ac_status=$?
24717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24718 test $ac_status = 0; }; }
24719 then
24720 if test x$gcc_cv_ld != x \
24721 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24722 gcc_cv_as_ix86_tlsgdplt=yes
24723 fi
24724 rm -f conftest
24725 else
24726 echo "configure: failed program was" >&5
24727 cat conftest.s >&5
24728 fi
24729 rm -f conftest.o conftest.s
24730 fi
24731 fi
24732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24733 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24734 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24735
24736 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24737
24738 fi
24739
24740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24741 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24742 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24743 $as_echo_n "(cached) " >&6
24744 else
24745 gcc_cv_as_ix86_tlsldmplt=no
24746 if test x$gcc_cv_as != x; then
24747 $as_echo 'tls_ld:
24748 call tls_ld@tlsldmplt' > conftest.s
24749 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24751 (eval $ac_try) 2>&5
24752 ac_status=$?
24753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24754 test $ac_status = 0; }; }
24755 then
24756 if test x$gcc_cv_ld != x \
24757 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24758 gcc_cv_as_ix86_tlsldmplt=yes
24759 fi
24760 rm -f conftest
24761 else
24762 echo "configure: failed program was" >&5
24763 cat conftest.s >&5
24764 fi
24765 rm -f conftest.o conftest.s
24766 fi
24767 fi
24768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24769 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24770 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24771
24772 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24773
24774 fi
24775
24776 ;;
24777
24778 ia64*-*-*)
24779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24780 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24781 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24782 $as_echo_n "(cached) " >&6
24783 else
24784 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24785 if test $in_tree_gas = yes; then
24786 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24787 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24788 fi
24789 elif test x$gcc_cv_as != x; then
24790 $as_echo ' .text
24791 addl r15 = @ltoffx(x#), gp
24792 ;;
24793 ld8.mov r16 = [r15], x#' > conftest.s
24794 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24796 (eval $ac_try) 2>&5
24797 ac_status=$?
24798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24799 test $ac_status = 0; }; }
24800 then
24801 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24802 else
24803 echo "configure: failed program was" >&5
24804 cat conftest.s >&5
24805 fi
24806 rm -f conftest.o conftest.s
24807 fi
24808 fi
24809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24810 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24811 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24812
24813 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24814
24815 fi
24816
24817 ;;
24818
24819 powerpc*-*-*)
24820 case $target in
24821 *-*-aix*) conftest_s=' .machine "pwr5"
24822 .csect .text[PR]
24823 mfcr 3,128';;
24824 *-*-darwin*)
24825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24826 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24827 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24828 $as_echo_n "(cached) " >&6
24829 else
24830 gcc_cv_as_machine_directive=no
24831 if test x$gcc_cv_as != x; then
24832 $as_echo ' .machine ppc7400' > conftest.s
24833 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24835 (eval $ac_try) 2>&5
24836 ac_status=$?
24837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24838 test $ac_status = 0; }; }
24839 then
24840 gcc_cv_as_machine_directive=yes
24841 else
24842 echo "configure: failed program was" >&5
24843 cat conftest.s >&5
24844 fi
24845 rm -f conftest.o conftest.s
24846 fi
24847 fi
24848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24849 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24850
24851 if test x$gcc_cv_as_machine_directive != xyes; then
24852 echo "*** This target requires an assembler supporting \".machine\"" >&2
24853 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24854 test x$build = x$target && exit 1
24855 fi
24856 conftest_s=' .text
24857 mfcr r3,128';;
24858 *) conftest_s=' .machine power4
24859 .text
24860 mfcr 3,128';;
24861 esac
24862
24863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24864 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24865 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24866 $as_echo_n "(cached) " >&6
24867 else
24868 gcc_cv_as_powerpc_mfcrf=no
24869 if test $in_tree_gas = yes; then
24870 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24871 then gcc_cv_as_powerpc_mfcrf=yes
24872 fi
24873 elif test x$gcc_cv_as != x; then
24874 $as_echo "$conftest_s" > conftest.s
24875 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24877 (eval $ac_try) 2>&5
24878 ac_status=$?
24879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24880 test $ac_status = 0; }; }
24881 then
24882 gcc_cv_as_powerpc_mfcrf=yes
24883 else
24884 echo "configure: failed program was" >&5
24885 cat conftest.s >&5
24886 fi
24887 rm -f conftest.o conftest.s
24888 fi
24889 fi
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24891 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24892 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24893
24894 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24895
24896 fi
24897
24898 case $target in
24899 *-*-aix*) conftest_s=' .machine "pwr5"
24900 .csect .text[PR]
24901 popcntb 3,3';;
24902 *) conftest_s=' .machine power5
24903 .text
24904 popcntb 3,3';;
24905 esac
24906
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24908 $as_echo_n "checking assembler for popcntb support... " >&6; }
24909 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24910 $as_echo_n "(cached) " >&6
24911 else
24912 gcc_cv_as_powerpc_popcntb=no
24913 if test $in_tree_gas = yes; then
24914 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24915 then gcc_cv_as_powerpc_popcntb=yes
24916 fi
24917 elif test x$gcc_cv_as != x; then
24918 $as_echo "$conftest_s" > conftest.s
24919 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24921 (eval $ac_try) 2>&5
24922 ac_status=$?
24923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24924 test $ac_status = 0; }; }
24925 then
24926 gcc_cv_as_powerpc_popcntb=yes
24927 else
24928 echo "configure: failed program was" >&5
24929 cat conftest.s >&5
24930 fi
24931 rm -f conftest.o conftest.s
24932 fi
24933 fi
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24935 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24936 if test $gcc_cv_as_powerpc_popcntb = yes; then
24937
24938 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24939
24940 fi
24941
24942 case $target in
24943 *-*-aix*) conftest_s=' .machine "pwr5x"
24944 .csect .text[PR]
24945 frin 1,1';;
24946 *) conftest_s=' .machine power5
24947 .text
24948 frin 1,1';;
24949 esac
24950
24951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24952 $as_echo_n "checking assembler for fp round support... " >&6; }
24953 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24954 $as_echo_n "(cached) " >&6
24955 else
24956 gcc_cv_as_powerpc_fprnd=no
24957 if test $in_tree_gas = yes; then
24958 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24959 then gcc_cv_as_powerpc_fprnd=yes
24960 fi
24961 elif test x$gcc_cv_as != x; then
24962 $as_echo "$conftest_s" > conftest.s
24963 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24965 (eval $ac_try) 2>&5
24966 ac_status=$?
24967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24968 test $ac_status = 0; }; }
24969 then
24970 gcc_cv_as_powerpc_fprnd=yes
24971 else
24972 echo "configure: failed program was" >&5
24973 cat conftest.s >&5
24974 fi
24975 rm -f conftest.o conftest.s
24976 fi
24977 fi
24978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24979 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24980 if test $gcc_cv_as_powerpc_fprnd = yes; then
24981
24982 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24983
24984 fi
24985
24986 case $target in
24987 *-*-aix*) conftest_s=' .machine "pwr6"
24988 .csect .text[PR]
24989 mffgpr 1,3';;
24990 *) conftest_s=' .machine power6
24991 .text
24992 mffgpr 1,3';;
24993 esac
24994
24995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24996 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24997 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24998 $as_echo_n "(cached) " >&6
24999 else
25000 gcc_cv_as_powerpc_mfpgpr=no
25001 if test $in_tree_gas = yes; then
25002 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25003 then gcc_cv_as_powerpc_mfpgpr=yes
25004 fi
25005 elif test x$gcc_cv_as != x; then
25006 $as_echo "$conftest_s" > conftest.s
25007 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25009 (eval $ac_try) 2>&5
25010 ac_status=$?
25011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25012 test $ac_status = 0; }; }
25013 then
25014 gcc_cv_as_powerpc_mfpgpr=yes
25015 else
25016 echo "configure: failed program was" >&5
25017 cat conftest.s >&5
25018 fi
25019 rm -f conftest.o conftest.s
25020 fi
25021 fi
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25023 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25024 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25025
25026 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25027
25028 fi
25029
25030 case $target in
25031 *-*-aix*) conftest_s=' .csect .text[PR]
25032 LCF..0:
25033 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25034 *-*-darwin*)
25035 conftest_s=' .text
25036 LCF0:
25037 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25038 *) conftest_s=' .text
25039 .LCF0:
25040 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25041 esac
25042
25043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25044 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25045 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25046 $as_echo_n "(cached) " >&6
25047 else
25048 gcc_cv_as_powerpc_rel16=no
25049 if test $in_tree_gas = yes; then
25050 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25051 then gcc_cv_as_powerpc_rel16=yes
25052 fi
25053 elif test x$gcc_cv_as != x; then
25054 $as_echo "$conftest_s" > conftest.s
25055 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25057 (eval $ac_try) 2>&5
25058 ac_status=$?
25059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25060 test $ac_status = 0; }; }
25061 then
25062 gcc_cv_as_powerpc_rel16=yes
25063 else
25064 echo "configure: failed program was" >&5
25065 cat conftest.s >&5
25066 fi
25067 rm -f conftest.o conftest.s
25068 fi
25069 fi
25070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25071 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25072 if test $gcc_cv_as_powerpc_rel16 = yes; then
25073
25074 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25075
25076 fi
25077
25078 case $target in
25079 *-*-aix*) conftest_s=' .machine "pwr6"
25080 .csect .text[PR]
25081 cmpb 3,4,5';;
25082 *) conftest_s=' .machine power6
25083 .text
25084 cmpb 3,4,5';;
25085 esac
25086
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25088 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25089 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25090 $as_echo_n "(cached) " >&6
25091 else
25092 gcc_cv_as_powerpc_cmpb=no
25093 if test $in_tree_gas = yes; then
25094 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25095 then gcc_cv_as_powerpc_cmpb=yes
25096 fi
25097 elif test x$gcc_cv_as != x; then
25098 $as_echo "$conftest_s" > conftest.s
25099 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25101 (eval $ac_try) 2>&5
25102 ac_status=$?
25103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25104 test $ac_status = 0; }; }
25105 then
25106 gcc_cv_as_powerpc_cmpb=yes
25107 else
25108 echo "configure: failed program was" >&5
25109 cat conftest.s >&5
25110 fi
25111 rm -f conftest.o conftest.s
25112 fi
25113 fi
25114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25115 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25116 if test $gcc_cv_as_powerpc_cmpb = yes; then
25117
25118 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25119
25120 fi
25121
25122 case $target in
25123 *-*-aix*) conftest_s=' .machine "pwr6"
25124 .csect .text[PR]
25125 dadd 1,2,3';;
25126 *) conftest_s=' .machine power6
25127 .text
25128 dadd 1,2,3';;
25129 esac
25130
25131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25132 $as_echo_n "checking assembler for decimal float support... " >&6; }
25133 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25134 $as_echo_n "(cached) " >&6
25135 else
25136 gcc_cv_as_powerpc_dfp=no
25137 if test $in_tree_gas = yes; then
25138 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25139 then gcc_cv_as_powerpc_dfp=yes
25140 fi
25141 elif test x$gcc_cv_as != x; then
25142 $as_echo "$conftest_s" > conftest.s
25143 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25145 (eval $ac_try) 2>&5
25146 ac_status=$?
25147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25148 test $ac_status = 0; }; }
25149 then
25150 gcc_cv_as_powerpc_dfp=yes
25151 else
25152 echo "configure: failed program was" >&5
25153 cat conftest.s >&5
25154 fi
25155 rm -f conftest.o conftest.s
25156 fi
25157 fi
25158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25159 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25160 if test $gcc_cv_as_powerpc_dfp = yes; then
25161
25162 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25163
25164 fi
25165
25166 case $target in
25167 *-*-aix*) conftest_s=' .machine "pwr7"
25168 .csect .text[PR]
25169 lxvd2x 1,2,3';;
25170 *) conftest_s=' .machine power7
25171 .text
25172 lxvd2x 1,2,3';;
25173 esac
25174
25175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25176 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25177 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25178 $as_echo_n "(cached) " >&6
25179 else
25180 gcc_cv_as_powerpc_vsx=no
25181 if test $in_tree_gas = yes; then
25182 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25183 then gcc_cv_as_powerpc_vsx=yes
25184 fi
25185 elif test x$gcc_cv_as != x; then
25186 $as_echo "$conftest_s" > conftest.s
25187 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25189 (eval $ac_try) 2>&5
25190 ac_status=$?
25191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25192 test $ac_status = 0; }; }
25193 then
25194 gcc_cv_as_powerpc_vsx=yes
25195 else
25196 echo "configure: failed program was" >&5
25197 cat conftest.s >&5
25198 fi
25199 rm -f conftest.o conftest.s
25200 fi
25201 fi
25202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25203 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25204 if test $gcc_cv_as_powerpc_vsx = yes; then
25205
25206 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25207
25208 fi
25209
25210 case $target in
25211 *-*-aix*) conftest_s=' .machine "pwr7"
25212 .csect .text[PR]
25213 popcntd 3,3';;
25214 *) conftest_s=' .machine power7
25215 .text
25216 popcntd 3,3';;
25217 esac
25218
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25220 $as_echo_n "checking assembler for popcntd support... " >&6; }
25221 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25222 $as_echo_n "(cached) " >&6
25223 else
25224 gcc_cv_as_powerpc_popcntd=no
25225 if test $in_tree_gas = yes; then
25226 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25227 then gcc_cv_as_powerpc_popcntd=yes
25228 fi
25229 elif test x$gcc_cv_as != x; then
25230 $as_echo "$conftest_s" > conftest.s
25231 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25233 (eval $ac_try) 2>&5
25234 ac_status=$?
25235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25236 test $ac_status = 0; }; }
25237 then
25238 gcc_cv_as_powerpc_popcntd=yes
25239 else
25240 echo "configure: failed program was" >&5
25241 cat conftest.s >&5
25242 fi
25243 rm -f conftest.o conftest.s
25244 fi
25245 fi
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25247 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25248 if test $gcc_cv_as_powerpc_popcntd = yes; then
25249
25250 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25251
25252 fi
25253
25254 case $target in
25255 *-*-aix*) conftest_s=' .machine "pwr8"
25256 .csect .text[PR]';;
25257 *) conftest_s=' .machine power8
25258 .text';;
25259 esac
25260
25261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25262 $as_echo_n "checking assembler for power8 support... " >&6; }
25263 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25264 $as_echo_n "(cached) " >&6
25265 else
25266 gcc_cv_as_powerpc_power8=no
25267 if test $in_tree_gas = yes; then
25268 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25269 then gcc_cv_as_powerpc_power8=yes
25270 fi
25271 elif test x$gcc_cv_as != x; then
25272 $as_echo "$conftest_s" > conftest.s
25273 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25275 (eval $ac_try) 2>&5
25276 ac_status=$?
25277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25278 test $ac_status = 0; }; }
25279 then
25280 gcc_cv_as_powerpc_power8=yes
25281 else
25282 echo "configure: failed program was" >&5
25283 cat conftest.s >&5
25284 fi
25285 rm -f conftest.o conftest.s
25286 fi
25287 fi
25288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25289 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25290 if test $gcc_cv_as_powerpc_power8 = yes; then
25291
25292 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25293
25294 fi
25295
25296 case $target in
25297 *-*-aix*) conftest_s=' .csect .text[PR]
25298 lwsync';;
25299 *) conftest_s=' .text
25300 lwsync';;
25301 esac
25302
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25304 $as_echo_n "checking assembler for lwsync support... " >&6; }
25305 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25306 $as_echo_n "(cached) " >&6
25307 else
25308 gcc_cv_as_powerpc_lwsync=no
25309 if test $in_tree_gas = yes; then
25310 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25311 then gcc_cv_as_powerpc_lwsync=yes
25312 fi
25313 elif test x$gcc_cv_as != x; then
25314 $as_echo "$conftest_s" > conftest.s
25315 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25317 (eval $ac_try) 2>&5
25318 ac_status=$?
25319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25320 test $ac_status = 0; }; }
25321 then
25322 gcc_cv_as_powerpc_lwsync=yes
25323 else
25324 echo "configure: failed program was" >&5
25325 cat conftest.s >&5
25326 fi
25327 rm -f conftest.o conftest.s
25328 fi
25329 fi
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25331 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25332 if test $gcc_cv_as_powerpc_lwsync = yes; then
25333
25334 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25335
25336 fi
25337
25338 case $target in
25339 *-*-aix*) conftest_s=' .machine "476"
25340 .csect .text[PR]
25341 dci 0';;
25342 *) conftest_s=' .machine "476"
25343 .text
25344 dci 0';;
25345 esac
25346
25347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25348 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25349 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25350 $as_echo_n "(cached) " >&6
25351 else
25352 gcc_cv_as_powerpc_dci=no
25353 if test $in_tree_gas = yes; then
25354 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25355 then gcc_cv_as_powerpc_dci=yes
25356 fi
25357 elif test x$gcc_cv_as != x; then
25358 $as_echo "$conftest_s" > conftest.s
25359 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25361 (eval $ac_try) 2>&5
25362 ac_status=$?
25363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25364 test $ac_status = 0; }; }
25365 then
25366 gcc_cv_as_powerpc_dci=yes
25367 else
25368 echo "configure: failed program was" >&5
25369 cat conftest.s >&5
25370 fi
25371 rm -f conftest.o conftest.s
25372 fi
25373 fi
25374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25375 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25376 if test $gcc_cv_as_powerpc_dci = yes; then
25377
25378 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25379
25380 fi
25381
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25383 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25384 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25385 $as_echo_n "(cached) " >&6
25386 else
25387 gcc_cv_as_powerpc_gnu_attribute=no
25388 if test $in_tree_gas = yes; then
25389 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25390 then gcc_cv_as_powerpc_gnu_attribute=yes
25391 fi
25392 elif test x$gcc_cv_as != x; then
25393 $as_echo '.gnu_attribute 4,1' > conftest.s
25394 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25396 (eval $ac_try) 2>&5
25397 ac_status=$?
25398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25399 test $ac_status = 0; }; }
25400 then
25401 gcc_cv_as_powerpc_gnu_attribute=yes
25402 else
25403 echo "configure: failed program was" >&5
25404 cat conftest.s >&5
25405 fi
25406 rm -f conftest.o conftest.s
25407 fi
25408 fi
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25410 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25411 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25412
25413 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25414
25415 fi
25416
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25418 $as_echo_n "checking assembler for tls marker support... " >&6; }
25419 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25420 $as_echo_n "(cached) " >&6
25421 else
25422 gcc_cv_as_powerpc_tls_markers=no
25423 if test $in_tree_gas = yes; then
25424 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25425 then gcc_cv_as_powerpc_tls_markers=yes
25426 fi
25427 elif test x$gcc_cv_as != x; then
25428 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25429 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25431 (eval $ac_try) 2>&5
25432 ac_status=$?
25433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25434 test $ac_status = 0; }; }
25435 then
25436 gcc_cv_as_powerpc_tls_markers=yes
25437 else
25438 echo "configure: failed program was" >&5
25439 cat conftest.s >&5
25440 fi
25441 rm -f conftest.o conftest.s
25442 fi
25443 fi
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25445 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25446 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25447
25448 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25449
25450 fi
25451
25452 case $target in
25453 *-*-aix*)
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25455 $as_echo_n "checking assembler for .ref support... " >&6; }
25456 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25457 $as_echo_n "(cached) " >&6
25458 else
25459 gcc_cv_as_aix_ref=no
25460 if test $in_tree_gas = yes; then
25461 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25462 then gcc_cv_as_aix_ref=yes
25463 fi
25464 elif test x$gcc_cv_as != x; then
25465 $as_echo ' .csect stuff[rw]
25466 stuff:
25467 .long 1
25468 .extern sym
25469 .ref sym
25470 ' > conftest.s
25471 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25473 (eval $ac_try) 2>&5
25474 ac_status=$?
25475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25476 test $ac_status = 0; }; }
25477 then
25478 gcc_cv_as_aix_ref=yes
25479 else
25480 echo "configure: failed program was" >&5
25481 cat conftest.s >&5
25482 fi
25483 rm -f conftest.o conftest.s
25484 fi
25485 fi
25486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25487 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25488 if test $gcc_cv_as_aix_ref = yes; then
25489
25490 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25491
25492 fi
25493 ;;
25494 esac
25495 ;;
25496
25497 mips*-*-*)
25498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25499 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25500 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25501 $as_echo_n "(cached) " >&6
25502 else
25503 gcc_cv_as_mips_explicit_relocs=no
25504 if test $in_tree_gas = yes; then
25505 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25506 then gcc_cv_as_mips_explicit_relocs=yes
25507 fi
25508 elif test x$gcc_cv_as != x; then
25509 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25510 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25512 (eval $ac_try) 2>&5
25513 ac_status=$?
25514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25515 test $ac_status = 0; }; }
25516 then
25517 gcc_cv_as_mips_explicit_relocs=yes
25518 else
25519 echo "configure: failed program was" >&5
25520 cat conftest.s >&5
25521 fi
25522 rm -f conftest.o conftest.s
25523 fi
25524 fi
25525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25526 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25527 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25528 if test x$target_cpu_default = x
25529 then target_cpu_default=MASK_EXPLICIT_RELOCS
25530 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25531 fi
25532 fi
25533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25534 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25535 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25536 $as_echo_n "(cached) " >&6
25537 else
25538 gcc_cv_as_mips_no_shared=no
25539 if test $in_tree_gas = yes; then
25540 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25541 then gcc_cv_as_mips_no_shared=yes
25542 fi
25543 elif test x$gcc_cv_as != x; then
25544 $as_echo 'nop' > conftest.s
25545 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25547 (eval $ac_try) 2>&5
25548 ac_status=$?
25549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25550 test $ac_status = 0; }; }
25551 then
25552 gcc_cv_as_mips_no_shared=yes
25553 else
25554 echo "configure: failed program was" >&5
25555 cat conftest.s >&5
25556 fi
25557 rm -f conftest.o conftest.s
25558 fi
25559 fi
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25561 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25562 if test $gcc_cv_as_mips_no_shared = yes; then
25563
25564 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25565
25566 fi
25567
25568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25569 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25570 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25571 $as_echo_n "(cached) " >&6
25572 else
25573 gcc_cv_as_mips_gnu_attribute=no
25574 if test $in_tree_gas = yes; then
25575 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25576 then gcc_cv_as_mips_gnu_attribute=yes
25577 fi
25578 elif test x$gcc_cv_as != x; then
25579 $as_echo '.gnu_attribute 4,1' > conftest.s
25580 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25582 (eval $ac_try) 2>&5
25583 ac_status=$?
25584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25585 test $ac_status = 0; }; }
25586 then
25587 gcc_cv_as_mips_gnu_attribute=yes
25588 else
25589 echo "configure: failed program was" >&5
25590 cat conftest.s >&5
25591 fi
25592 rm -f conftest.o conftest.s
25593 fi
25594 fi
25595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25596 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25597 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25598
25599 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25600
25601 fi
25602
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25604 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25605 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25606 $as_echo_n "(cached) " >&6
25607 else
25608 gcc_cv_as_mips_dtprelword=no
25609 if test $in_tree_gas = yes; then
25610 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25611 then gcc_cv_as_mips_dtprelword=yes
25612 fi
25613 elif test x$gcc_cv_as != x; then
25614 $as_echo '.section .tdata,"awT",@progbits
25615 x:
25616 .word 2
25617 .text
25618 .dtprelword x+0x8000' > conftest.s
25619 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25621 (eval $ac_try) 2>&5
25622 ac_status=$?
25623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25624 test $ac_status = 0; }; }
25625 then
25626 gcc_cv_as_mips_dtprelword=yes
25627 else
25628 echo "configure: failed program was" >&5
25629 cat conftest.s >&5
25630 fi
25631 rm -f conftest.o conftest.s
25632 fi
25633 fi
25634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25635 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25636 if test $gcc_cv_as_mips_dtprelword = yes; then
25637
25638 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25639
25640 fi
25641
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25643 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25644 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25645 $as_echo_n "(cached) " >&6
25646 else
25647 gcc_cv_as_mips_dspr1_mult=no
25648 if test x$gcc_cv_as != x; then
25649 $as_echo ' .set mips32r2
25650 .set nodspr2
25651 .set dsp
25652 madd $ac3,$4,$5
25653 maddu $ac3,$4,$5
25654 msub $ac3,$4,$5
25655 msubu $ac3,$4,$5
25656 mult $ac3,$4,$5
25657 multu $ac3,$4,$5' > conftest.s
25658 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25660 (eval $ac_try) 2>&5
25661 ac_status=$?
25662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25663 test $ac_status = 0; }; }
25664 then
25665 gcc_cv_as_mips_dspr1_mult=yes
25666 else
25667 echo "configure: failed program was" >&5
25668 cat conftest.s >&5
25669 fi
25670 rm -f conftest.o conftest.s
25671 fi
25672 fi
25673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25674 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25675 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25676
25677 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25678
25679 fi
25680
25681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25682 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25683 gcc_cv_as_ld_jalr_reloc=no
25684 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25685 if test $in_tree_ld = yes ; then
25686 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 \
25687 && test $in_tree_ld_is_elf = yes; then
25688 gcc_cv_as_ld_jalr_reloc=yes
25689 fi
25690 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25691 echo ' .ent x' > conftest.s
25692 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25693 echo ' ld $25,%call16(y)($28)' >> conftest.s
25694 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25695 echo '1: jalr $25' >> conftest.s
25696 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25697 echo '1: jalr $25' >> conftest.s
25698 echo ' .end x' >> conftest.s
25699 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25700 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25701 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25702 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25703 gcc_cv_as_ld_jalr_reloc=yes
25704 fi
25705 fi
25706 rm -f conftest.*
25707 fi
25708 fi
25709 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25710 if test x$target_cpu_default = x; then
25711 target_cpu_default=MASK_RELAX_PIC_CALLS
25712 else
25713 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25714 fi
25715 fi
25716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25717 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25718
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25720 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25721 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25722 $as_echo_n "(cached) " >&6
25723 else
25724 gcc_cv_ld_mips_personality_relaxation=no
25725 if test $in_tree_ld = yes ; then
25726 if test "$gcc_cv_gld_major_version" -eq 2 \
25727 -a "$gcc_cv_gld_minor_version" -ge 21 \
25728 -o "$gcc_cv_gld_major_version" -gt 2; then
25729 gcc_cv_ld_mips_personality_relaxation=yes
25730 fi
25731 elif test x$gcc_cv_as != x \
25732 -a x$gcc_cv_ld != x \
25733 -a x$gcc_cv_readelf != x ; then
25734 cat > conftest.s <<EOF
25735 .cfi_startproc
25736 .cfi_personality 0x80,indirect_ptr
25737 .ent test
25738 test:
25739 nop
25740 .end test
25741 .cfi_endproc
25742
25743 .section .data,"aw",@progbits
25744 indirect_ptr:
25745 .dc.a personality
25746 EOF
25747 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25748 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25749 if $gcc_cv_readelf -d conftest 2>&1 \
25750 | grep TEXTREL > /dev/null 2>&1; then
25751 :
25752 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25753 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25754 :
25755 else
25756 gcc_cv_ld_mips_personality_relaxation=yes
25757 fi
25758 fi
25759 fi
25760 rm -f conftest.s conftest.o conftest
25761 fi
25762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25763 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25764 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25765
25766 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25767
25768 fi
25769 ;;
25770 esac
25771
25772 # Mips and HP-UX need the GNU assembler.
25773 # Linux on IA64 might be able to use the Intel assembler.
25774
25775 case "$target" in
25776 mips*-*-* | *-*-hpux* )
25777 if test x$gas_flag = xyes \
25778 || test x"$host" != x"$build" \
25779 || test ! -x "$gcc_cv_as" \
25780 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25781 :
25782 else
25783 echo "*** This configuration requires the GNU assembler" >&2
25784 exit 1
25785 fi
25786 ;;
25787 esac
25788
25789 # ??? Not all targets support dwarf2 debug_line, even within a version
25790 # of gas. Moreover, we need to emit a valid instruction to trigger any
25791 # info to the output file. So, as supported targets are added to gas 2.11,
25792 # add some instruction here to (also) show we expect this might work.
25793 # ??? Once 2.11 is released, probably need to add first known working
25794 # version to the per-target configury.
25795 case "$cpu_type" in
25796 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25797 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
25798 insn="nop"
25799 ;;
25800 ia64 | s390)
25801 insn="nop 0"
25802 ;;
25803 mmix)
25804 insn="swym 0"
25805 ;;
25806 esac
25807 if test x"$insn" != x; then
25808 conftest_s="\
25809 .file 1 \"conftest.s\"
25810 .loc 1 3 0
25811 $insn"
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25813 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25814 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25815 $as_echo_n "(cached) " >&6
25816 else
25817 gcc_cv_as_dwarf2_debug_line=no
25818 if test $in_tree_gas = yes; then
25819 if test $in_tree_gas_is_elf = yes \
25820 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25821 then gcc_cv_as_dwarf2_debug_line=yes
25822 fi
25823 elif test x$gcc_cv_as != x; then
25824 $as_echo "$conftest_s" > conftest.s
25825 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25827 (eval $ac_try) 2>&5
25828 ac_status=$?
25829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25830 test $ac_status = 0; }; }
25831 then
25832 if test x$gcc_cv_objdump != x \
25833 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25834 | grep debug_line > /dev/null 2>&1; then
25835 gcc_cv_as_dwarf2_debug_line=yes
25836 fi
25837 else
25838 echo "configure: failed program was" >&5
25839 cat conftest.s >&5
25840 fi
25841 rm -f conftest.o conftest.s
25842 fi
25843 fi
25844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25845 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25846
25847
25848 # The .debug_line file table must be in the exact order that
25849 # we specified the files, since these indices are also used
25850 # by DW_AT_decl_file. Approximate this test by testing if
25851 # the assembler bitches if the same index is assigned twice.
25852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25853 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25854 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25855 $as_echo_n "(cached) " >&6
25856 else
25857 gcc_cv_as_dwarf2_file_buggy=no
25858 if test x$gcc_cv_as != x; then
25859 $as_echo ' .file 1 "foo.s"
25860 .file 1 "bar.s"' > conftest.s
25861 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25863 (eval $ac_try) 2>&5
25864 ac_status=$?
25865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25866 test $ac_status = 0; }; }
25867 then
25868 gcc_cv_as_dwarf2_file_buggy=yes
25869 else
25870 echo "configure: failed program was" >&5
25871 cat conftest.s >&5
25872 fi
25873 rm -f conftest.o conftest.s
25874 fi
25875 fi
25876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25877 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25878
25879
25880 if test $gcc_cv_as_dwarf2_debug_line = yes \
25881 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25882
25883 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25884
25885 fi
25886
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25888 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25889 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25890 $as_echo_n "(cached) " >&6
25891 else
25892 gcc_cv_as_gdwarf2_flag=no
25893 if test $in_tree_gas = yes; then
25894 if test $in_tree_gas_is_elf = yes \
25895 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25896 then gcc_cv_as_gdwarf2_flag=yes
25897 fi
25898 elif test x$gcc_cv_as != x; then
25899 $as_echo "$insn" > conftest.s
25900 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25902 (eval $ac_try) 2>&5
25903 ac_status=$?
25904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25905 test $ac_status = 0; }; }
25906 then
25907 gcc_cv_as_gdwarf2_flag=yes
25908 else
25909 echo "configure: failed program was" >&5
25910 cat conftest.s >&5
25911 fi
25912 rm -f conftest.o conftest.s
25913 fi
25914 fi
25915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25916 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25917 if test $gcc_cv_as_gdwarf2_flag = yes; then
25918
25919 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25920
25921 fi
25922
25923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25924 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25925 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25926 $as_echo_n "(cached) " >&6
25927 else
25928 gcc_cv_as_gstabs_flag=no
25929 if test $in_tree_gas = yes; then
25930 if test $in_tree_gas_is_elf = yes \
25931 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25932 then gcc_cv_as_gstabs_flag=yes
25933 fi
25934 elif test x$gcc_cv_as != x; then
25935 $as_echo "$insn" > conftest.s
25936 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25938 (eval $ac_try) 2>&5
25939 ac_status=$?
25940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25941 test $ac_status = 0; }; }
25942 then
25943 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25944 # and warns about it, but still exits successfully. So check for
25945 # this.
25946 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25948 (eval $ac_try) 2>&5
25949 ac_status=$?
25950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25951 test $ac_status = 0; }; }
25952 then :
25953 else gcc_cv_as_gstabs_flag=yes
25954 fi
25955 else
25956 echo "configure: failed program was" >&5
25957 cat conftest.s >&5
25958 fi
25959 rm -f conftest.o conftest.s
25960 fi
25961 fi
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25963 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25964 if test $gcc_cv_as_gstabs_flag = yes; then
25965
25966 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25967
25968 fi
25969
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25971 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25972 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25973 $as_echo_n "(cached) " >&6
25974 else
25975 gcc_cv_as_debug_prefix_map_flag=no
25976 if test $in_tree_gas = yes; then
25977 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25978 then gcc_cv_as_debug_prefix_map_flag=yes
25979 fi
25980 elif test x$gcc_cv_as != x; then
25981 $as_echo "$insn" > conftest.s
25982 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25984 (eval $ac_try) 2>&5
25985 ac_status=$?
25986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25987 test $ac_status = 0; }; }
25988 then
25989 gcc_cv_as_debug_prefix_map_flag=yes
25990 else
25991 echo "configure: failed program was" >&5
25992 cat conftest.s >&5
25993 fi
25994 rm -f conftest.o conftest.s
25995 fi
25996 fi
25997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25998 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25999 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26000
26001 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26002
26003 fi
26004 fi
26005
26006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26007 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26008 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26009 $as_echo_n "(cached) " >&6
26010 else
26011 gcc_cv_as_lcomm_with_alignment=no
26012 if test x$gcc_cv_as != x; then
26013 $as_echo '.lcomm bar,4,16' > conftest.s
26014 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26016 (eval $ac_try) 2>&5
26017 ac_status=$?
26018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26019 test $ac_status = 0; }; }
26020 then
26021 gcc_cv_as_lcomm_with_alignment=yes
26022 else
26023 echo "configure: failed program was" >&5
26024 cat conftest.s >&5
26025 fi
26026 rm -f conftest.o conftest.s
26027 fi
26028 fi
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26030 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26031 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26032
26033 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26034
26035 fi
26036
26037 # Check whether --enable-gnu-unique-object was given.
26038 if test "${enable_gnu_unique_object+set}" = set; then :
26039 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26040 yes | no) ;;
26041 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26042 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26043 esac
26044 else
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26046 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26047 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26048 $as_echo_n "(cached) " >&6
26049 else
26050 gcc_cv_as_gnu_unique_object=no
26051 if test $in_tree_gas = yes; then
26052 if test $in_tree_gas_is_elf = yes \
26053 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26054 then gcc_cv_as_gnu_unique_object=yes
26055 fi
26056 elif test x$gcc_cv_as != x; then
26057 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26058 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26060 (eval $ac_try) 2>&5
26061 ac_status=$?
26062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26063 test $ac_status = 0; }; }
26064 then
26065 gcc_cv_as_gnu_unique_object=yes
26066 else
26067 echo "configure: failed program was" >&5
26068 cat conftest.s >&5
26069 fi
26070 rm -f conftest.o conftest.s
26071 fi
26072 fi
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26074 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26075 if test $gcc_cv_as_gnu_unique_object = yes; then
26076 # We need to unquote above to to use the definition from config.gcc.
26077 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26078 if test x$host = x$build -a x$host = x$target &&
26079 ldd --version 2>/dev/null &&
26080 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26081 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26082 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26083 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26084 if test "$glibcnum" -ge 2011 ; then
26085 enable_gnu_unique_object=yes
26086 fi
26087 fi
26088 fi
26089 fi
26090
26091 if test x$enable_gnu_unique_object = xyes; then
26092
26093 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26094
26095 fi
26096
26097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26098 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26099 if test "${gcc_cv_as_line_zero+set}" = set; then :
26100 $as_echo_n "(cached) " >&6
26101 else
26102 gcc_cv_as_line_zero=no
26103 if test $in_tree_gas = yes; then
26104 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26105 then gcc_cv_as_line_zero=yes
26106 fi
26107 elif test "x$gcc_cv_as" != x; then
26108 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26109 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26111 (eval $ac_try) 2>&5
26112 ac_status=$?
26113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26114 test $ac_status = 0; }; } &&
26115 test "x`cat conftest.out`" = x
26116 then
26117 gcc_cv_as_line_zero=yes
26118 else
26119 echo "configure: failed program was" >&5
26120 cat conftest.s >&5
26121 echo "configure: error output was" >&5
26122 cat conftest.out >&5
26123 fi
26124 rm -f conftest.o conftest.s conftest.out
26125 fi
26126 fi
26127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26128 $as_echo "$gcc_cv_as_line_zero" >&6; }
26129 if test "x$gcc_cv_as_line_zero" = xyes; then
26130
26131 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26132
26133 fi
26134
26135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26136 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26137 gcc_cv_ld_eh_frame_hdr=no
26138 if test $in_tree_ld = yes ; then
26139 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 \
26140 && test $in_tree_ld_is_elf = yes; then
26141 gcc_cv_ld_eh_frame_hdr=yes
26142 fi
26143 elif test x$gcc_cv_ld != x; then
26144 if echo "$ld_ver" | grep GNU > /dev/null; then
26145 # Check if linker supports --eh-frame-hdr option
26146 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26147 gcc_cv_ld_eh_frame_hdr=yes
26148 fi
26149 else
26150 case "$target" in
26151 *-*-solaris2*)
26152 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26153 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26154 gcc_cv_ld_eh_frame_hdr=yes
26155 fi
26156 ;;
26157 esac
26158 fi
26159 fi
26160
26161 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26162
26163 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26164
26165 fi
26166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26167 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26168
26169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26170 $as_echo_n "checking linker position independent executable support... " >&6; }
26171 gcc_cv_ld_pie=no
26172 if test $in_tree_ld = yes ; then
26173 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 \
26174 && test $in_tree_ld_is_elf = yes; then
26175 gcc_cv_ld_pie=yes
26176 fi
26177 elif test x$gcc_cv_ld != x; then
26178 # Check if linker supports -pie option
26179 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26180 gcc_cv_ld_pie=yes
26181 fi
26182 fi
26183 if test x"$gcc_cv_ld_pie" = xyes; then
26184
26185 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26186
26187 fi
26188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26189 $as_echo "$gcc_cv_ld_pie" >&6; }
26190
26191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26192 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26193 gcc_cv_ld_eh_gc_sections=no
26194 if test $in_tree_ld = yes ; then
26195 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 \
26196 && test $in_tree_ld_is_elf = yes; then
26197 gcc_cv_ld_eh_gc_sections=yes
26198 fi
26199 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26200 cat > conftest.s <<EOF
26201 .section .text
26202 .globl _start
26203 .type _start, @function
26204 _start:
26205 .long foo
26206 .size _start, .-_start
26207 .section .text.foo,"ax",@progbits
26208 .type foo, @function
26209 foo:
26210 .long 0
26211 .size foo, .-foo
26212 .section .gcc_except_table.foo,"a",@progbits
26213 .L0:
26214 .long 0
26215 .section .eh_frame,"a",@progbits
26216 .long .L0
26217 EOF
26218 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26219 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26220 | grep "gc-sections option ignored" > /dev/null; then
26221 gcc_cv_ld_eh_gc_sections=no
26222 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26223 | grep gcc_except_table > /dev/null; then
26224 gcc_cv_ld_eh_gc_sections=yes
26225 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26226 if test x$gcc_cv_as_comdat_group != xyes; then
26227 gcc_cv_ld_eh_gc_sections=no
26228 cat > conftest.s <<EOF
26229 .section .text
26230 .globl _start
26231 .type _start, @function
26232 _start:
26233 .long foo
26234 .size _start, .-_start
26235 .section .gnu.linkonce.t.foo,"ax",@progbits
26236 .type foo, @function
26237 foo:
26238 .long 0
26239 .size foo, .-foo
26240 .section .gcc_except_table.foo,"a",@progbits
26241 .L0:
26242 .long 0
26243 .section .eh_frame,"a",@progbits
26244 .long .L0
26245 EOF
26246 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26247 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26248 | grep "gc-sections option ignored" > /dev/null; then
26249 gcc_cv_ld_eh_gc_sections=no
26250 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26251 | grep gcc_except_table > /dev/null; then
26252 gcc_cv_ld_eh_gc_sections=yes
26253 fi
26254 fi
26255 fi
26256 fi
26257 fi
26258 rm -f conftest.s conftest.o conftest
26259 fi
26260 case "$target" in
26261 hppa*-*-linux*)
26262 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26263 gcc_cv_ld_eh_gc_sections=no
26264 ;;
26265 esac
26266 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26267
26268 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26269
26270 fi
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26272 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26273
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26275 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26276 gcc_cv_ld_eh_gc_sections_bug=no
26277 if test $in_tree_ld = yes ; then
26278 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 \
26279 && test $in_tree_ld_is_elf = yes; then
26280 gcc_cv_ld_eh_gc_sections_bug=yes
26281 fi
26282 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
26283 gcc_cv_ld_eh_gc_sections_bug=yes
26284 cat > conftest.s <<EOF
26285 .section .text
26286 .globl _start
26287 .type _start, @function
26288 _start:
26289 .long foo
26290 .size _start, .-_start
26291 .section .text.startup.foo,"ax",@progbits
26292 .type foo, @function
26293 foo:
26294 .long 0
26295 .size foo, .-foo
26296 .section .gcc_except_table.foo,"a",@progbits
26297 .L0:
26298 .long 0
26299 .section .eh_frame,"a",@progbits
26300 .long .L0
26301 EOF
26302 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26303 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26304 | grep "gc-sections option ignored" > /dev/null; then
26305 :
26306 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26307 | grep gcc_except_table > /dev/null; then
26308 gcc_cv_ld_eh_gc_sections_bug=no
26309 fi
26310 fi
26311 rm -f conftest.s conftest.o conftest
26312 fi
26313 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26314
26315 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26316
26317 fi
26318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26319 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26320
26321 # --------
26322 # UNSORTED
26323 # --------
26324
26325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26326 $as_echo_n "checking linker --as-needed support... " >&6; }
26327 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26328 $as_echo_n "(cached) " >&6
26329 else
26330 gcc_cv_ld_as_needed=no
26331 if test $in_tree_ld = yes ; then
26332 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
26333 && test $in_tree_ld_is_elf = yes; then
26334 gcc_cv_ld_as_needed=yes
26335 fi
26336 elif test x$gcc_cv_ld != x; then
26337 # Check if linker supports --as-needed and --no-as-needed options
26338 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26339 gcc_cv_ld_as_needed=yes
26340 fi
26341 fi
26342
26343 fi
26344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26345 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26346 if test x"$gcc_cv_ld_as_needed" = xyes; then
26347
26348 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26349
26350 fi
26351
26352 case "$target:$tm_file" in
26353 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26354 case "$target" in
26355 *-*-linux*)
26356 emul_name="-melf64ppc"
26357 ;;
26358 *-*-freebsd*)
26359 emul_name="-melf64ppc_fbsd"
26360 ;;
26361 esac
26362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26363 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26364 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26365 $as_echo_n "(cached) " >&6
26366 else
26367 gcc_cv_ld_no_dot_syms=no
26368 if test x"$ld_is_gold" = xyes; then
26369 gcc_cv_ld_no_dot_syms=yes
26370 elif test $in_tree_ld = yes ; then
26371 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
26372 gcc_cv_ld_no_dot_syms=yes
26373 fi
26374 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26375 cat > conftest1.s <<EOF
26376 .text
26377 bl .foo
26378 EOF
26379 cat > conftest2.s <<EOF
26380 .section ".opd","aw"
26381 .align 3
26382 .globl foo
26383 .type foo,@function
26384 foo:
26385 .quad .LEfoo,.TOC.@tocbase,0
26386 .text
26387 .LEfoo:
26388 blr
26389 .size foo,.-.LEfoo
26390 EOF
26391 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26392 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26393 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26394 gcc_cv_ld_no_dot_syms=yes
26395 fi
26396 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26397 fi
26398
26399 fi
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26401 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26402 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26403
26404 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26405
26406 fi
26407
26408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26409 $as_echo_n "checking linker large toc support... " >&6; }
26410 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26411 $as_echo_n "(cached) " >&6
26412 else
26413 gcc_cv_ld_large_toc=no
26414 if test x"$ld_is_gold" = xyes; then
26415 gcc_cv_ld_large_toc=yes
26416 elif test $in_tree_ld = yes ; then
26417 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
26418 gcc_cv_ld_large_toc=yes
26419 fi
26420 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26421 cat > conftest.s <<EOF
26422 .section ".tbss","awT",@nobits
26423 .align 3
26424 ie0: .space 8
26425 .global _start
26426 .text
26427 _start:
26428 addis 9,13,ie0@got@tprel@ha
26429 ld 9,ie0@got@tprel@l(9)
26430 EOF
26431 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26432 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26433 gcc_cv_ld_large_toc=yes
26434 fi
26435 rm -f conftest conftest.o conftest.s
26436 fi
26437
26438 fi
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26440 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26441 if test x"$gcc_cv_ld_large_toc" = xyes; then
26442
26443 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26444
26445 fi
26446 ;;
26447 esac
26448
26449 case "$target" in
26450 *-*-aix*)
26451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26452 $as_echo_n "checking linker large toc support... " >&6; }
26453 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26454 $as_echo_n "(cached) " >&6
26455 else
26456 gcc_cv_ld_large_toc=no
26457 if test x$gcc_cv_as != x ; then
26458 cat > conftest.s <<EOF
26459 .toc
26460 LC..1:
26461 .tc a[TC],a[RW]
26462 .extern a[RW]
26463 .csect .text[PR]
26464 .largetoctest:
26465 addis 9,LC..1@u(2)
26466 ld 3,LC..1@l(9)
26467 EOF
26468 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
26469 gcc_cv_ld_large_toc=yes
26470 fi
26471 rm -f conftest conftest.o conftest.s
26472 fi
26473
26474 fi
26475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26476 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26477 if test x"$gcc_cv_ld_large_toc" = xyes; then
26478
26479 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26480
26481 fi
26482 ;;
26483 esac
26484
26485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26486 $as_echo_n "checking linker --build-id support... " >&6; }
26487 if test "${gcc_cv_ld_buildid+set}" = set; then :
26488 $as_echo_n "(cached) " >&6
26489 else
26490 gcc_cv_ld_buildid=no
26491 if test $in_tree_ld = yes ; then
26492 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26493 "$gcc_cv_gld_minor_version" -ge 18 -o \
26494 "$gcc_cv_gld_major_version" -gt 2 \
26495 && test $in_tree_ld_is_elf = yes; then
26496 gcc_cv_ld_buildid=yes
26497 fi
26498 elif test x$gcc_cv_ld != x; then
26499 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26500 gcc_cv_ld_buildid=yes
26501 fi
26502 fi
26503 fi
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26505 $as_echo "$gcc_cv_ld_buildid" >&6; }
26506 if test x"$gcc_cv_ld_buildid" = xyes; then
26507
26508 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26509
26510 fi
26511
26512 # Check whether --enable-linker-build-id was given.
26513 if test "${enable_linker_build_id+set}" = set; then :
26514 enableval=$enable_linker_build_id;
26515 else
26516 enable_linker_build_id=no
26517 fi
26518
26519
26520 if test x"$enable_linker_build_id" = xyes; then
26521 if test x"$gcc_cv_ld_buildid" = xyes; then
26522
26523 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26524
26525 else
26526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26527 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26528 fi
26529 fi
26530
26531 # In binutils 2.21, GNU ld gained support for new emulations fully
26532 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26534 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26535 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26536 $as_echo_n "(cached) " >&6
26537 else
26538 gcc_cv_ld_sol2_emulation=no
26539 if test $in_tree_ld = yes ; then
26540 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26541 "$gcc_cv_gld_minor_version" -ge 21 -o \
26542 "$gcc_cv_gld_major_version" -gt 2 \
26543 && test $in_tree_ld_is_elf = yes; then
26544 gcc_cv_ld_sol2_emulation=yes
26545 fi
26546 elif test x$gcc_cv_ld != x; then
26547 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26548 grep _sol2 > /dev/null; then
26549 gcc_cv_ld_sol2_emulation=yes
26550 fi
26551 fi
26552 fi
26553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26554 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26555 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26556
26557 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26558
26559 fi
26560
26561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26562 $as_echo_n "checking linker --sysroot support... " >&6; }
26563 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26564 $as_echo_n "(cached) " >&6
26565 else
26566 gcc_cv_ld_sysroot=no
26567 if test $in_tree_ld = yes ; then
26568 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
26569 gcc_cv_ld_sysroot=yes
26570 fi
26571 elif test x$gcc_cv_ld != x; then
26572 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26573 gcc_cv_ld_sysroot=yes
26574 fi
26575 fi
26576 fi
26577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26578 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26579 if test x"$gcc_cv_ld_sysroot" = xyes; then
26580
26581 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26582
26583 fi
26584
26585 if test x$with_sysroot = x && test x$host = x$target \
26586 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26587 && test "$prefix" != "NONE"; then
26588
26589 cat >>confdefs.h <<_ACEOF
26590 #define PREFIX_INCLUDE_DIR "$prefix/include"
26591 _ACEOF
26592
26593 fi
26594
26595 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26596 if test "x$with_headers" != x; then
26597 target_header_dir=$with_headers
26598 elif test "x$with_sysroot" = x; then
26599 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26600 elif test "x$with_build_sysroot" != "x"; then
26601 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26602 elif test "x$with_sysroot" = xyes; then
26603 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26604 else
26605 target_header_dir="${with_sysroot}${native_system_header_dir}"
26606 fi
26607 else
26608 target_header_dir=${native_system_header_dir}
26609 fi
26610
26611 # Test for stack protector support in target C library.
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26613 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26614 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26615 $as_echo_n "(cached) " >&6
26616 else
26617 gcc_cv_libc_provides_ssp=no
26618 case "$target" in
26619 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26620 # glibc 2.4 and later provides __stack_chk_fail and
26621 # either __stack_chk_guard, or TLS access to stack guard canary.
26622 if test -f $target_header_dir/features.h \
26623 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26624 $target_header_dir/features.h > /dev/null; then
26625 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26626 $target_header_dir/features.h > /dev/null; then
26627 gcc_cv_libc_provides_ssp=yes
26628 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26629 $target_header_dir/features.h > /dev/null \
26630 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26631 $target_header_dir/features.h > /dev/null; then
26632 gcc_cv_libc_provides_ssp=yes
26633 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26634 $target_header_dir/features.h > /dev/null && \
26635 test -f $target_header_dir/bits/uClibc_config.h && \
26636 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26637 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26638 gcc_cv_libc_provides_ssp=yes
26639 fi
26640 # all versions of Bionic support stack protector
26641 elif test -f $target_header_dir/sys/cdefs.h \
26642 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26643 $target_header_dir/sys/cdefs.h > /dev/null; then
26644 gcc_cv_libc_provides_ssp=yes
26645 fi
26646 ;;
26647 *-*-gnu*)
26648 # Avoid complicated tests (see
26649 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26650 # simply assert that glibc does provide this, which is true for all
26651 # realistically usable GNU/Hurd configurations.
26652 gcc_cv_libc_provides_ssp=yes;;
26653 *-*-darwin* | *-*-freebsd*)
26654 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26655 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26656 gcc_cv_libc_provides_ssp=yes
26657 else
26658 echo "no __stack_chk_fail on this target"
26659 fi
26660
26661 ;;
26662 *) gcc_cv_libc_provides_ssp=no ;;
26663 esac
26664 fi
26665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26666 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26667
26668 if test x$gcc_cv_libc_provides_ssp = xyes; then
26669
26670 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26671
26672 fi
26673
26674 # Test for <sys/sdt.h> on the target.
26675
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26677 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26678 have_sys_sdt_h=no
26679 if test -f $target_header_dir/sys/sdt.h; then
26680 have_sys_sdt_h=yes
26681
26682 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26683
26684 fi
26685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26686 $as_echo "$have_sys_sdt_h" >&6; }
26687
26688 # Check if TFmode long double should be used by default or not.
26689 # Some glibc targets used DFmode long double, but with glibc 2.4
26690 # and later they can use TFmode.
26691 case "$target" in
26692 powerpc*-*-linux* | \
26693 sparc*-*-linux* | \
26694 s390*-*-linux* | \
26695 alpha*-*-linux*)
26696
26697 # Check whether --with-long-double-128 was given.
26698 if test "${with_long_double_128+set}" = set; then :
26699 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26700 else
26701 gcc_cv_target_ldbl128=no
26702 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26703 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26704 && gcc_cv_target_ldbl128=yes
26705
26706 fi
26707
26708 ;;
26709 esac
26710 if test x$gcc_cv_target_ldbl128 = xyes; then
26711
26712 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26713
26714 fi
26715
26716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26717 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26718 gcc_cv_target_dl_iterate_phdr=unknown
26719 case "$target" in
26720 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26721 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26722 # libdl there, both complicating its use and breaking compatibility
26723 # between Solaris 10 updates.
26724 *-*-solaris2.1[1-9]*)
26725 # <link.h> needs both a dl_iterate_phdr declaration and support for
26726 # compilation with largefile support.
26727 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26728 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26729 gcc_cv_target_dl_iterate_phdr=yes
26730 else
26731 gcc_cv_target_dl_iterate_phdr=no
26732 fi
26733 ;;
26734 esac
26735
26736 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26737
26738 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26739
26740 fi
26741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26742 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26743
26744 # Find out what GC implementation we want, or may, use.
26745
26746 # Check whether --with-gc was given.
26747 if test "${with_gc+set}" = set; then :
26748 withval=$with_gc; case "$withval" in
26749 page)
26750 GGC=ggc-$withval
26751 ;;
26752 zone)
26753 GGC=ggc-$withval
26754
26755 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26756
26757 ;;
26758 *)
26759 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26760 ;;
26761 esac
26762 else
26763 GGC=ggc-page
26764 fi
26765
26766
26767 echo "Using $GGC for garbage collection."
26768
26769 # Libraries to use on the host. This will normally be set by the top
26770 # level Makefile. Here we simply capture the value for our Makefile.
26771 if test -z "${HOST_LIBS+set}"; then
26772 HOST_LIBS=
26773 fi
26774
26775
26776 # Use the system's zlib library.
26777 zlibdir=-L../zlib
26778 zlibinc="-I\$(srcdir)/../zlib"
26779
26780 # Check whether --with-system-zlib was given.
26781 if test "${with_system_zlib+set}" = set; then :
26782 withval=$with_system_zlib; zlibdir=
26783 zlibinc=
26784
26785 fi
26786
26787
26788
26789
26790
26791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26792 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26793 # Check whether --enable-maintainer-mode was given.
26794 if test "${enable_maintainer_mode+set}" = set; then :
26795 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26796 else
26797 maintainer_mode=no
26798 fi
26799
26800
26801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26802 $as_echo "$maintainer_mode" >&6; }
26803
26804 if test "$maintainer_mode" = "yes"; then
26805 MAINT=''
26806 else
26807 MAINT='#'
26808 fi
26809
26810 # --------------
26811 # Language hooks
26812 # --------------
26813
26814 # Make empty files to contain the specs and options for each language.
26815 # Then add #include lines to for a compiler that has specs and/or options.
26816
26817 subdirs=
26818 lang_opt_files=
26819 lang_specs_files=
26820 lang_tree_files=
26821 # These (without "all_") are set in each config-lang.in.
26822 # `language' must be a single word so is spelled singularly.
26823 all_languages=
26824 all_compilers=
26825 all_outputs='Makefile'
26826 # List of language makefile fragments.
26827 all_lang_makefrags=
26828 # Additional files for gengtype
26829 all_gtfiles="$target_gtfiles"
26830
26831 # These are the languages that are set in --enable-languages,
26832 # and are available in the GCC tree.
26833 all_selected_languages=
26834
26835 # Add the language fragments.
26836 # Languages are added via two mechanisms. Some information must be
26837 # recorded in makefile variables, these are defined in config-lang.in.
26838 # We accumulate them and plug them into the main Makefile.
26839 # The other mechanism is a set of hooks for each of the main targets
26840 # like `clean', `install', etc.
26841
26842 language_hooks="Make-hooks"
26843
26844 for lang in ${srcdir}/*/config-lang.in
26845 do
26846 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26847
26848 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26849 if test "x$lang_alias" = x
26850 then
26851 echo "$lang doesn't set \$language." 1>&2
26852 exit 1
26853 fi
26854 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26855 subdirs="$subdirs $subdir"
26856
26857 # $gcc_subdir is where the gcc integration files are to be found
26858 # for a language, both for internal compiler purposes (compiler
26859 # sources implementing front-end to GCC tree converters), and for
26860 # build infrastructure purposes (Make-lang.in, etc.)
26861 #
26862 # This will be <subdir> (relative to $srcdir) if a line like
26863 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26864 # is found in <langdir>/config-lang.in, and will remain <langdir>
26865 # otherwise.
26866 #
26867 # Except for the language alias (fetched above), the regular
26868 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26869 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26870 # only this and the language alias.
26871
26872 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26873 if [ "$gcc_subdir" = "" ]; then
26874 gcc_subdir="$subdir"
26875 fi
26876
26877 case ",$enable_languages," in
26878 *,$lang_alias,*)
26879 all_selected_languages="$all_selected_languages $lang_alias"
26880 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26881 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26882 fi
26883 ;;
26884 esac
26885
26886 language=
26887 boot_language=
26888 compilers=
26889 outputs=
26890 gtfiles=
26891 subdir_requires=
26892 . ${srcdir}/$gcc_subdir/config-lang.in
26893 if test "x$language" = x
26894 then
26895 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26896 exit 1
26897 fi
26898
26899 ok=:
26900 case ",$enable_languages," in
26901 *,$lang_alias,*) ;;
26902 *)
26903 for i in $subdir_requires; do
26904 test -f "${srcdir}/$i/config-lang.in" && continue
26905 ok=false
26906 break
26907 done
26908 ;;
26909 esac
26910 $ok || continue
26911
26912 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26913 if test -f $srcdir/$gcc_subdir/lang.opt; then
26914 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26915 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26916 fi
26917 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26918 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26919 fi
26920 all_languages="$all_languages $language"
26921 all_compilers="$all_compilers $compilers"
26922 all_outputs="$all_outputs $outputs"
26923 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26924 case ",$enable_languages," in
26925 *,lto,*)
26926
26927 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26928
26929 enable_lto=yes
26930
26931 ;;
26932 *) ;;
26933 esac
26934 done
26935
26936 check_languages=
26937 for language in $all_selected_languages
26938 do
26939 check_languages="$check_languages check-$language"
26940 done
26941
26942 # We link each language in with a set of hooks, reached indirectly via
26943 # lang.${target}. Only do so for selected languages.
26944
26945 rm -f Make-hooks
26946 touch Make-hooks
26947 target_list="all.cross start.encap rest.encap tags \
26948 install-common install-man install-info install-pdf install-html dvi \
26949 pdf html uninstall info man srcextra srcman srcinfo \
26950 mostlyclean clean distclean maintainer-clean install-plugin"
26951
26952 for t in $target_list
26953 do
26954 x=
26955 for lang in $all_selected_languages
26956 do
26957 x="$x $lang.$t"
26958 done
26959 echo "lang.$t: $x" >> Make-hooks
26960 done
26961
26962 # --------
26963 # Option include files
26964 # --------
26965
26966 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26967 option_includes="option-includes.mk"
26968
26969
26970 # --------
26971 # UNSORTED
26972 # --------
26973
26974 # Create .gdbinit.
26975
26976 echo "dir ." > .gdbinit
26977 echo "dir ${srcdir}" >> .gdbinit
26978 if test x$gdb_needs_out_file_path = xyes
26979 then
26980 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26981 fi
26982 if test "x$subdirs" != x; then
26983 for s in $subdirs
26984 do
26985 echo "dir ${srcdir}/$s" >> .gdbinit
26986 done
26987 fi
26988 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26989
26990 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26991
26992
26993
26994 # Find a directory in which to install a shared libgcc.
26995
26996 # Check whether --enable-version-specific-runtime-libs was given.
26997 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26998 enableval=$enable_version_specific_runtime_libs;
26999 fi
27000
27001
27002 # Substitute configuration variables
27003
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017
27018
27019
27020
27021
27022
27023
27024
27025
27026
27027
27028
27029
27030
27031
27032
27033
27034
27035
27036
27037
27038
27039
27040
27041
27042
27043
27044
27045
27046
27047
27048
27049
27050
27051
27052
27053
27054
27055
27056
27057
27058
27059
27060
27061
27062
27063
27064
27065 # Echo link setup.
27066 if test x${build} = x${host} ; then
27067 if test x${host} = x${target} ; then
27068 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27069 else
27070 echo "Links are now set up to build a cross-compiler" 1>&2
27071 echo " from ${host} to ${target}." 1>&2
27072 fi
27073 else
27074 if test x${host} = x${target} ; then
27075 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27076 echo " for ${target}." 1>&2
27077 else
27078 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27079 echo " from ${host} to ${target}." 1>&2
27080 fi
27081 fi
27082
27083
27084
27085
27086
27087
27088
27089
27090
27091 if test "x${CLOOGLIBS}" != "x" ; then
27092
27093 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27094
27095 fi
27096
27097 # Check for plugin support
27098 # Check whether --enable-plugin was given.
27099 if test "${enable_plugin+set}" = set; then :
27100 enableval=$enable_plugin; enable_plugin=$enableval
27101 else
27102 enable_plugin=yes; default_plugin=yes
27103 fi
27104
27105
27106 pluginlibs=
27107
27108 case "${host}" in
27109 *-*-darwin*)
27110 if test x$build = x$host; then
27111 export_sym_check="nm${exeext} -g"
27112 elif test x$host = x$target; then
27113 export_sym_check="$gcc_cv_nm -g"
27114 else
27115 export_sym_check=
27116 fi
27117 ;;
27118 *)
27119 if test x$build = x$host; then
27120 export_sym_check="objdump${exeext} -T"
27121 elif test x$host = x$target; then
27122 export_sym_check="$gcc_cv_objdump -T"
27123 else
27124 export_sym_check=
27125 fi
27126 ;;
27127 esac
27128
27129 if test x"$enable_plugin" = x"yes"; then
27130
27131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27132 $as_echo_n "checking for exported symbols... " >&6; }
27133 if test "x$export_sym_check" != x; then
27134 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27135 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27136 if $export_sym_check conftest | grep foobar > /dev/null; then
27137 : # No need to use a flag
27138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27139 $as_echo "yes" >&6; }
27140 else
27141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27142 $as_echo "yes" >&6; }
27143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27144 $as_echo_n "checking for -rdynamic... " >&6; }
27145 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27146 if $export_sym_check conftest | grep foobar > /dev/null; then
27147 plugin_rdynamic=yes
27148 pluginlibs="-rdynamic"
27149 else
27150 plugin_rdynamic=no
27151 enable_plugin=no
27152 fi
27153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27154 $as_echo "$plugin_rdynamic" >&6; }
27155 fi
27156 else
27157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27158 $as_echo "unable to check" >&6; }
27159 fi
27160
27161 # Check -ldl
27162 saved_LIBS="$LIBS"
27163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27164 $as_echo_n "checking for library containing dlopen... " >&6; }
27165 if test "${ac_cv_search_dlopen+set}" = set; then :
27166 $as_echo_n "(cached) " >&6
27167 else
27168 ac_func_search_save_LIBS=$LIBS
27169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27170 /* end confdefs.h. */
27171
27172 /* Override any GCC internal prototype to avoid an error.
27173 Use char because int might match the return type of a GCC
27174 builtin and then its argument prototype would still apply. */
27175 #ifdef __cplusplus
27176 extern "C"
27177 #endif
27178 char dlopen ();
27179 int
27180 main ()
27181 {
27182 return dlopen ();
27183 ;
27184 return 0;
27185 }
27186 _ACEOF
27187 for ac_lib in '' dl; do
27188 if test -z "$ac_lib"; then
27189 ac_res="none required"
27190 else
27191 ac_res=-l$ac_lib
27192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27193 fi
27194 if ac_fn_c_try_link "$LINENO"; then :
27195 ac_cv_search_dlopen=$ac_res
27196 fi
27197 rm -f core conftest.err conftest.$ac_objext \
27198 conftest$ac_exeext
27199 if test "${ac_cv_search_dlopen+set}" = set; then :
27200 break
27201 fi
27202 done
27203 if test "${ac_cv_search_dlopen+set}" = set; then :
27204
27205 else
27206 ac_cv_search_dlopen=no
27207 fi
27208 rm conftest.$ac_ext
27209 LIBS=$ac_func_search_save_LIBS
27210 fi
27211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27212 $as_echo "$ac_cv_search_dlopen" >&6; }
27213 ac_res=$ac_cv_search_dlopen
27214 if test "$ac_res" != no; then :
27215 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27216
27217 fi
27218
27219 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27220 pluginlibs="$pluginlibs -ldl"
27221 fi
27222 LIBS="$saved_LIBS"
27223
27224 # Check that we can build shared objects with -fPIC -shared
27225 saved_LDFLAGS="$LDFLAGS"
27226 saved_CFLAGS="$CFLAGS"
27227 case "${host}" in
27228 *-*-darwin*)
27229 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27230 CFLAGS="$CFLAGS -fPIC"
27231 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27232 ;;
27233 *)
27234 CFLAGS="$CFLAGS -fPIC"
27235 LDFLAGS="$LDFLAGS -fPIC -shared"
27236 ;;
27237 esac
27238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27239 $as_echo_n "checking for -fPIC -shared... " >&6; }
27240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27241 /* end confdefs.h. */
27242 extern int X;
27243 int
27244 main ()
27245 {
27246 return X == 0;
27247 ;
27248 return 0;
27249 }
27250 _ACEOF
27251 if ac_fn_c_try_link "$LINENO"; then :
27252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27253 $as_echo "yes" >&6; }; have_pic_shared=yes
27254 else
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27256 $as_echo "no" >&6; }; have_pic_shared=no
27257 fi
27258 rm -f core conftest.err conftest.$ac_objext \
27259 conftest$ac_exeext conftest.$ac_ext
27260 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27261 pluginlibs=
27262 enable_plugin=no
27263 fi
27264 LDFLAGS="$saved_LDFLAGS"
27265 CFLAGS="$saved_CFLAGS"
27266
27267 # If plugin support had been requested but not available, fail.
27268 if test x"$enable_plugin" = x"no" ; then
27269 if test x"$default_plugin" != x"yes"; then
27270 as_fn_error "
27271 Building GCC with plugin support requires a host that supports
27272 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27273 fi
27274 fi
27275 fi
27276
27277
27278
27279 if test x"$enable_plugin" = x"yes"; then
27280
27281 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27282
27283 fi
27284
27285
27286 # Check whether --enable-libquadmath-support was given.
27287 if test "${enable_libquadmath_support+set}" = set; then :
27288 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27289 else
27290 ENABLE_LIBQUADMATH_SUPPORT=yes
27291 fi
27292
27293 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27294
27295 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27296
27297 fi
27298
27299
27300 # Specify what hash style to use by default.
27301
27302 # Check whether --with-linker-hash-style was given.
27303 if test "${with_linker_hash_style+set}" = set; then :
27304 withval=$with_linker_hash_style; case x"$withval" in
27305 xsysv)
27306 LINKER_HASH_STYLE=sysv
27307 ;;
27308 xgnu)
27309 LINKER_HASH_STYLE=gnu
27310 ;;
27311 xboth)
27312 LINKER_HASH_STYLE=both
27313 ;;
27314 *)
27315 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27316 ;;
27317 esac
27318 else
27319 LINKER_HASH_STYLE=''
27320 fi
27321
27322 if test x"${LINKER_HASH_STYLE}" != x; then
27323
27324 cat >>confdefs.h <<_ACEOF
27325 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27326 _ACEOF
27327
27328 fi
27329
27330 # Configure the subdirectories
27331 # AC_CONFIG_SUBDIRS($subdirs)
27332
27333 # Create the Makefile
27334 # and configure language subdirectories
27335 ac_config_files="$ac_config_files $all_outputs"
27336
27337
27338 ac_config_commands="$ac_config_commands default"
27339
27340 cat >confcache <<\_ACEOF
27341 # This file is a shell script that caches the results of configure
27342 # tests run on this system so they can be shared between configure
27343 # scripts and configure runs, see configure's option --config-cache.
27344 # It is not useful on other systems. If it contains results you don't
27345 # want to keep, you may remove or edit it.
27346 #
27347 # config.status only pays attention to the cache file if you give it
27348 # the --recheck option to rerun configure.
27349 #
27350 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27351 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27352 # following values.
27353
27354 _ACEOF
27355
27356 # The following way of writing the cache mishandles newlines in values,
27357 # but we know of no workaround that is simple, portable, and efficient.
27358 # So, we kill variables containing newlines.
27359 # Ultrix sh set writes to stderr and can't be redirected directly,
27360 # and sets the high bit in the cache file unless we assign to the vars.
27361 (
27362 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27363 eval ac_val=\$$ac_var
27364 case $ac_val in #(
27365 *${as_nl}*)
27366 case $ac_var in #(
27367 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27368 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27369 esac
27370 case $ac_var in #(
27371 _ | IFS | as_nl) ;; #(
27372 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27373 *) { eval $ac_var=; unset $ac_var;} ;;
27374 esac ;;
27375 esac
27376 done
27377
27378 (set) 2>&1 |
27379 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27380 *${as_nl}ac_space=\ *)
27381 # `set' does not quote correctly, so add quotes: double-quote
27382 # substitution turns \\\\ into \\, and sed turns \\ into \.
27383 sed -n \
27384 "s/'/'\\\\''/g;
27385 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27386 ;; #(
27387 *)
27388 # `set' quotes correctly as required by POSIX, so do not add quotes.
27389 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27390 ;;
27391 esac |
27392 sort
27393 ) |
27394 sed '
27395 /^ac_cv_env_/b end
27396 t clear
27397 :clear
27398 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27399 t end
27400 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27401 :end' >>confcache
27402 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27403 if test -w "$cache_file"; then
27404 test "x$cache_file" != "x/dev/null" &&
27405 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27406 $as_echo "$as_me: updating cache $cache_file" >&6;}
27407 cat confcache >$cache_file
27408 else
27409 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27410 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27411 fi
27412 fi
27413 rm -f confcache
27414
27415 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27416 # Let make expand exec_prefix.
27417 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27418
27419 DEFS=-DHAVE_CONFIG_H
27420
27421 ac_libobjs=
27422 ac_ltlibobjs=
27423 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27424 # 1. Remove the extension, and $U if already installed.
27425 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27426 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27427 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27428 # will be set to the directory where LIBOBJS objects are built.
27429 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27430 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27431 done
27432 LIBOBJS=$ac_libobjs
27433
27434 LTLIBOBJS=$ac_ltlibobjs
27435
27436
27437
27438
27439 : ${CONFIG_STATUS=./config.status}
27440 ac_write_fail=0
27441 ac_clean_files_save=$ac_clean_files
27442 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27443 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27444 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27445 as_write_fail=0
27446 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27447 #! $SHELL
27448 # Generated by $as_me.
27449 # Run this file to recreate the current configuration.
27450 # Compiler output produced by configure, useful for debugging
27451 # configure, is in config.log if it exists.
27452
27453 debug=false
27454 ac_cs_recheck=false
27455 ac_cs_silent=false
27456
27457 SHELL=\${CONFIG_SHELL-$SHELL}
27458 export SHELL
27459 _ASEOF
27460 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27461 ## -------------------- ##
27462 ## M4sh Initialization. ##
27463 ## -------------------- ##
27464
27465 # Be more Bourne compatible
27466 DUALCASE=1; export DUALCASE # for MKS sh
27467 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27468 emulate sh
27469 NULLCMD=:
27470 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27471 # is contrary to our usage. Disable this feature.
27472 alias -g '${1+"$@"}'='"$@"'
27473 setopt NO_GLOB_SUBST
27474 else
27475 case `(set -o) 2>/dev/null` in #(
27476 *posix*) :
27477 set -o posix ;; #(
27478 *) :
27479 ;;
27480 esac
27481 fi
27482
27483
27484 as_nl='
27485 '
27486 export as_nl
27487 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27488 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27489 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27490 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27491 # Prefer a ksh shell builtin over an external printf program on Solaris,
27492 # but without wasting forks for bash or zsh.
27493 if test -z "$BASH_VERSION$ZSH_VERSION" \
27494 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27495 as_echo='print -r --'
27496 as_echo_n='print -rn --'
27497 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27498 as_echo='printf %s\n'
27499 as_echo_n='printf %s'
27500 else
27501 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27502 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27503 as_echo_n='/usr/ucb/echo -n'
27504 else
27505 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27506 as_echo_n_body='eval
27507 arg=$1;
27508 case $arg in #(
27509 *"$as_nl"*)
27510 expr "X$arg" : "X\\(.*\\)$as_nl";
27511 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27512 esac;
27513 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27514 '
27515 export as_echo_n_body
27516 as_echo_n='sh -c $as_echo_n_body as_echo'
27517 fi
27518 export as_echo_body
27519 as_echo='sh -c $as_echo_body as_echo'
27520 fi
27521
27522 # The user is always right.
27523 if test "${PATH_SEPARATOR+set}" != set; then
27524 PATH_SEPARATOR=:
27525 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27526 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27527 PATH_SEPARATOR=';'
27528 }
27529 fi
27530
27531
27532 # IFS
27533 # We need space, tab and new line, in precisely that order. Quoting is
27534 # there to prevent editors from complaining about space-tab.
27535 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27536 # splitting by setting IFS to empty value.)
27537 IFS=" "" $as_nl"
27538
27539 # Find who we are. Look in the path if we contain no directory separator.
27540 case $0 in #((
27541 *[\\/]* ) as_myself=$0 ;;
27542 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27543 for as_dir in $PATH
27544 do
27545 IFS=$as_save_IFS
27546 test -z "$as_dir" && as_dir=.
27547 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27548 done
27549 IFS=$as_save_IFS
27550
27551 ;;
27552 esac
27553 # We did not find ourselves, most probably we were run as `sh COMMAND'
27554 # in which case we are not to be found in the path.
27555 if test "x$as_myself" = x; then
27556 as_myself=$0
27557 fi
27558 if test ! -f "$as_myself"; then
27559 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27560 exit 1
27561 fi
27562
27563 # Unset variables that we do not need and which cause bugs (e.g. in
27564 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27565 # suppresses any "Segmentation fault" message there. '((' could
27566 # trigger a bug in pdksh 5.2.14.
27567 for as_var in BASH_ENV ENV MAIL MAILPATH
27568 do eval test x\${$as_var+set} = xset \
27569 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27570 done
27571 PS1='$ '
27572 PS2='> '
27573 PS4='+ '
27574
27575 # NLS nuisances.
27576 LC_ALL=C
27577 export LC_ALL
27578 LANGUAGE=C
27579 export LANGUAGE
27580
27581 # CDPATH.
27582 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27583
27584
27585 # as_fn_error ERROR [LINENO LOG_FD]
27586 # ---------------------------------
27587 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27588 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27589 # script with status $?, using 1 if that was 0.
27590 as_fn_error ()
27591 {
27592 as_status=$?; test $as_status -eq 0 && as_status=1
27593 if test "$3"; then
27594 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27595 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27596 fi
27597 $as_echo "$as_me: error: $1" >&2
27598 as_fn_exit $as_status
27599 } # as_fn_error
27600
27601
27602 # as_fn_set_status STATUS
27603 # -----------------------
27604 # Set $? to STATUS, without forking.
27605 as_fn_set_status ()
27606 {
27607 return $1
27608 } # as_fn_set_status
27609
27610 # as_fn_exit STATUS
27611 # -----------------
27612 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27613 as_fn_exit ()
27614 {
27615 set +e
27616 as_fn_set_status $1
27617 exit $1
27618 } # as_fn_exit
27619
27620 # as_fn_unset VAR
27621 # ---------------
27622 # Portably unset VAR.
27623 as_fn_unset ()
27624 {
27625 { eval $1=; unset $1;}
27626 }
27627 as_unset=as_fn_unset
27628 # as_fn_append VAR VALUE
27629 # ----------------------
27630 # Append the text in VALUE to the end of the definition contained in VAR. Take
27631 # advantage of any shell optimizations that allow amortized linear growth over
27632 # repeated appends, instead of the typical quadratic growth present in naive
27633 # implementations.
27634 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27635 eval 'as_fn_append ()
27636 {
27637 eval $1+=\$2
27638 }'
27639 else
27640 as_fn_append ()
27641 {
27642 eval $1=\$$1\$2
27643 }
27644 fi # as_fn_append
27645
27646 # as_fn_arith ARG...
27647 # ------------------
27648 # Perform arithmetic evaluation on the ARGs, and store the result in the
27649 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27650 # must be portable across $(()) and expr.
27651 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27652 eval 'as_fn_arith ()
27653 {
27654 as_val=$(( $* ))
27655 }'
27656 else
27657 as_fn_arith ()
27658 {
27659 as_val=`expr "$@" || test $? -eq 1`
27660 }
27661 fi # as_fn_arith
27662
27663
27664 if expr a : '\(a\)' >/dev/null 2>&1 &&
27665 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27666 as_expr=expr
27667 else
27668 as_expr=false
27669 fi
27670
27671 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27672 as_basename=basename
27673 else
27674 as_basename=false
27675 fi
27676
27677 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27678 as_dirname=dirname
27679 else
27680 as_dirname=false
27681 fi
27682
27683 as_me=`$as_basename -- "$0" ||
27684 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27685 X"$0" : 'X\(//\)$' \| \
27686 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27687 $as_echo X/"$0" |
27688 sed '/^.*\/\([^/][^/]*\)\/*$/{
27689 s//\1/
27690 q
27691 }
27692 /^X\/\(\/\/\)$/{
27693 s//\1/
27694 q
27695 }
27696 /^X\/\(\/\).*/{
27697 s//\1/
27698 q
27699 }
27700 s/.*/./; q'`
27701
27702 # Avoid depending upon Character Ranges.
27703 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27704 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27705 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27706 as_cr_digits='0123456789'
27707 as_cr_alnum=$as_cr_Letters$as_cr_digits
27708
27709 ECHO_C= ECHO_N= ECHO_T=
27710 case `echo -n x` in #(((((
27711 -n*)
27712 case `echo 'xy\c'` in
27713 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27714 xy) ECHO_C='\c';;
27715 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27716 ECHO_T=' ';;
27717 esac;;
27718 *)
27719 ECHO_N='-n';;
27720 esac
27721
27722 rm -f conf$$ conf$$.exe conf$$.file
27723 if test -d conf$$.dir; then
27724 rm -f conf$$.dir/conf$$.file
27725 else
27726 rm -f conf$$.dir
27727 mkdir conf$$.dir 2>/dev/null
27728 fi
27729 if (echo >conf$$.file) 2>/dev/null; then
27730 if ln -s conf$$.file conf$$ 2>/dev/null; then
27731 as_ln_s='ln -s'
27732 # ... but there are two gotchas:
27733 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27734 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27735 # In both cases, we have to default to `cp -p'.
27736 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27737 as_ln_s='cp -p'
27738 elif ln conf$$.file conf$$ 2>/dev/null; then
27739 as_ln_s=ln
27740 else
27741 as_ln_s='cp -p'
27742 fi
27743 else
27744 as_ln_s='cp -p'
27745 fi
27746 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27747 rmdir conf$$.dir 2>/dev/null
27748
27749
27750 # as_fn_mkdir_p
27751 # -------------
27752 # Create "$as_dir" as a directory, including parents if necessary.
27753 as_fn_mkdir_p ()
27754 {
27755
27756 case $as_dir in #(
27757 -*) as_dir=./$as_dir;;
27758 esac
27759 test -d "$as_dir" || eval $as_mkdir_p || {
27760 as_dirs=
27761 while :; do
27762 case $as_dir in #(
27763 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27764 *) as_qdir=$as_dir;;
27765 esac
27766 as_dirs="'$as_qdir' $as_dirs"
27767 as_dir=`$as_dirname -- "$as_dir" ||
27768 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27769 X"$as_dir" : 'X\(//\)[^/]' \| \
27770 X"$as_dir" : 'X\(//\)$' \| \
27771 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27772 $as_echo X"$as_dir" |
27773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27774 s//\1/
27775 q
27776 }
27777 /^X\(\/\/\)[^/].*/{
27778 s//\1/
27779 q
27780 }
27781 /^X\(\/\/\)$/{
27782 s//\1/
27783 q
27784 }
27785 /^X\(\/\).*/{
27786 s//\1/
27787 q
27788 }
27789 s/.*/./; q'`
27790 test -d "$as_dir" && break
27791 done
27792 test -z "$as_dirs" || eval "mkdir $as_dirs"
27793 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27794
27795
27796 } # as_fn_mkdir_p
27797 if mkdir -p . 2>/dev/null; then
27798 as_mkdir_p='mkdir -p "$as_dir"'
27799 else
27800 test -d ./-p && rmdir ./-p
27801 as_mkdir_p=false
27802 fi
27803
27804 if test -x / >/dev/null 2>&1; then
27805 as_test_x='test -x'
27806 else
27807 if ls -dL / >/dev/null 2>&1; then
27808 as_ls_L_option=L
27809 else
27810 as_ls_L_option=
27811 fi
27812 as_test_x='
27813 eval sh -c '\''
27814 if test -d "$1"; then
27815 test -d "$1/.";
27816 else
27817 case $1 in #(
27818 -*)set "./$1";;
27819 esac;
27820 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27821 ???[sx]*):;;*)false;;esac;fi
27822 '\'' sh
27823 '
27824 fi
27825 as_executable_p=$as_test_x
27826
27827 # Sed expression to map a string onto a valid CPP name.
27828 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27829
27830 # Sed expression to map a string onto a valid variable name.
27831 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27832
27833
27834 exec 6>&1
27835 ## ----------------------------------- ##
27836 ## Main body of $CONFIG_STATUS script. ##
27837 ## ----------------------------------- ##
27838 _ASEOF
27839 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27840
27841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27842 # Save the log message, to keep $0 and so on meaningful, and to
27843 # report actual input values of CONFIG_FILES etc. instead of their
27844 # values after options handling.
27845 ac_log="
27846 This file was extended by $as_me, which was
27847 generated by GNU Autoconf 2.64. Invocation command line was
27848
27849 CONFIG_FILES = $CONFIG_FILES
27850 CONFIG_HEADERS = $CONFIG_HEADERS
27851 CONFIG_LINKS = $CONFIG_LINKS
27852 CONFIG_COMMANDS = $CONFIG_COMMANDS
27853 $ $0 $@
27854
27855 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27856 "
27857
27858 _ACEOF
27859
27860 case $ac_config_files in *"
27861 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27862 esac
27863
27864 case $ac_config_headers in *"
27865 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27866 esac
27867
27868
27869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27870 # Files that config.status was made for.
27871 config_files="$ac_config_files"
27872 config_headers="$ac_config_headers"
27873 config_commands="$ac_config_commands"
27874
27875 _ACEOF
27876
27877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27878 ac_cs_usage="\
27879 \`$as_me' instantiates files and other configuration actions
27880 from templates according to the current configuration. Unless the files
27881 and actions are specified as TAGs, all are instantiated by default.
27882
27883 Usage: $0 [OPTION]... [TAG]...
27884
27885 -h, --help print this help, then exit
27886 -V, --version print version number and configuration settings, then exit
27887 -q, --quiet, --silent
27888 do not print progress messages
27889 -d, --debug don't remove temporary files
27890 --recheck update $as_me by reconfiguring in the same conditions
27891 --file=FILE[:TEMPLATE]
27892 instantiate the configuration file FILE
27893 --header=FILE[:TEMPLATE]
27894 instantiate the configuration header FILE
27895
27896 Configuration files:
27897 $config_files
27898
27899 Configuration headers:
27900 $config_headers
27901
27902 Configuration commands:
27903 $config_commands
27904
27905 Report bugs to the package provider."
27906
27907 _ACEOF
27908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27909 ac_cs_version="\\
27910 config.status
27911 configured by $0, generated by GNU Autoconf 2.64,
27912 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27913
27914 Copyright (C) 2009 Free Software Foundation, Inc.
27915 This config.status script is free software; the Free Software Foundation
27916 gives unlimited permission to copy, distribute and modify it."
27917
27918 ac_pwd='$ac_pwd'
27919 srcdir='$srcdir'
27920 AWK='$AWK'
27921 test -n "\$AWK" || AWK=awk
27922 _ACEOF
27923
27924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27925 # The default lists apply if the user does not specify any file.
27926 ac_need_defaults=:
27927 while test $# != 0
27928 do
27929 case $1 in
27930 --*=*)
27931 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27932 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27933 ac_shift=:
27934 ;;
27935 *)
27936 ac_option=$1
27937 ac_optarg=$2
27938 ac_shift=shift
27939 ;;
27940 esac
27941
27942 case $ac_option in
27943 # Handling of the options.
27944 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27945 ac_cs_recheck=: ;;
27946 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27947 $as_echo "$ac_cs_version"; exit ;;
27948 --debug | --debu | --deb | --de | --d | -d )
27949 debug=: ;;
27950 --file | --fil | --fi | --f )
27951 $ac_shift
27952 case $ac_optarg in
27953 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27954 esac
27955 as_fn_append CONFIG_FILES " '$ac_optarg'"
27956 ac_need_defaults=false;;
27957 --header | --heade | --head | --hea )
27958 $ac_shift
27959 case $ac_optarg in
27960 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27961 esac
27962 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27963 ac_need_defaults=false;;
27964 --he | --h)
27965 # Conflict between --help and --header
27966 as_fn_error "ambiguous option: \`$1'
27967 Try \`$0 --help' for more information.";;
27968 --help | --hel | -h )
27969 $as_echo "$ac_cs_usage"; exit ;;
27970 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27971 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27972 ac_cs_silent=: ;;
27973
27974 # This is an error.
27975 -*) as_fn_error "unrecognized option: \`$1'
27976 Try \`$0 --help' for more information." ;;
27977
27978 *) as_fn_append ac_config_targets " $1"
27979 ac_need_defaults=false ;;
27980
27981 esac
27982 shift
27983 done
27984
27985 ac_configure_extra_args=
27986
27987 if $ac_cs_silent; then
27988 exec 6>/dev/null
27989 ac_configure_extra_args="$ac_configure_extra_args --silent"
27990 fi
27991
27992 _ACEOF
27993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27994 if \$ac_cs_recheck; then
27995 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27996 shift
27997 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27998 CONFIG_SHELL='$SHELL'
27999 export CONFIG_SHELL
28000 exec "\$@"
28001 fi
28002
28003 _ACEOF
28004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28005 exec 5>>config.log
28006 {
28007 echo
28008 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28009 ## Running $as_me. ##
28010 _ASBOX
28011 $as_echo "$ac_log"
28012 } >&5
28013
28014 _ACEOF
28015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28016 #
28017 # INIT-COMMANDS
28018 #
28019 subdirs='$subdirs'
28020
28021 _ACEOF
28022
28023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28024
28025 # Handling of arguments.
28026 for ac_config_target in $ac_config_targets
28027 do
28028 case $ac_config_target in
28029 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28030 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28031 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28032 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28033 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28034 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28035
28036 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28037 esac
28038 done
28039
28040
28041 # If the user did not use the arguments to specify the items to instantiate,
28042 # then the envvar interface is used. Set only those that are not.
28043 # We use the long form for the default assignment because of an extremely
28044 # bizarre bug on SunOS 4.1.3.
28045 if $ac_need_defaults; then
28046 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28047 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28048 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28049 fi
28050
28051 # Have a temporary directory for convenience. Make it in the build tree
28052 # simply because there is no reason against having it here, and in addition,
28053 # creating and moving files from /tmp can sometimes cause problems.
28054 # Hook for its removal unless debugging.
28055 # Note that there is a small window in which the directory will not be cleaned:
28056 # after its creation but before its name has been assigned to `$tmp'.
28057 $debug ||
28058 {
28059 tmp=
28060 trap 'exit_status=$?
28061 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28062 ' 0
28063 trap 'as_fn_exit 1' 1 2 13 15
28064 }
28065 # Create a (secure) tmp directory for tmp files.
28066
28067 {
28068 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28069 test -n "$tmp" && test -d "$tmp"
28070 } ||
28071 {
28072 tmp=./conf$$-$RANDOM
28073 (umask 077 && mkdir "$tmp")
28074 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28075
28076 # Set up the scripts for CONFIG_FILES section.
28077 # No need to generate them if there are no CONFIG_FILES.
28078 # This happens for instance with `./config.status config.h'.
28079 if test -n "$CONFIG_FILES"; then
28080
28081 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28082 ac_cs_awk_getline=:
28083 ac_cs_awk_pipe_init=
28084 ac_cs_awk_read_file='
28085 while ((getline aline < (F[key])) > 0)
28086 print(aline)
28087 close(F[key])'
28088 ac_cs_awk_pipe_fini=
28089 else
28090 ac_cs_awk_getline=false
28091 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28092 ac_cs_awk_read_file='
28093 print "|#_!!_#|"
28094 print "cat " F[key] " &&"
28095 '$ac_cs_awk_pipe_init
28096 # The final `:' finishes the AND list.
28097 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28098 fi
28099 ac_cr=`echo X | tr X '\015'`
28100 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28101 # But we know of no other shell where ac_cr would be empty at this
28102 # point, so we can use a bashism as a fallback.
28103 if test "x$ac_cr" = x; then
28104 eval ac_cr=\$\'\\r\'
28105 fi
28106 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28107 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28108 ac_cs_awk_cr='\r'
28109 else
28110 ac_cs_awk_cr=$ac_cr
28111 fi
28112
28113 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28114 _ACEOF
28115
28116 # Create commands to substitute file output variables.
28117 {
28118 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28119 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28120 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28121 echo "_ACAWK" &&
28122 echo "_ACEOF"
28123 } >conf$$files.sh &&
28124 . ./conf$$files.sh ||
28125 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28126 rm -f conf$$files.sh
28127
28128 {
28129 echo "cat >conf$$subs.awk <<_ACEOF" &&
28130 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28131 echo "_ACEOF"
28132 } >conf$$subs.sh ||
28133 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28134 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28135 ac_delim='%!_!# '
28136 for ac_last_try in false false false false false :; do
28137 . ./conf$$subs.sh ||
28138 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28139
28140 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28141 if test $ac_delim_n = $ac_delim_num; then
28142 break
28143 elif $ac_last_try; then
28144 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28145 else
28146 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28147 fi
28148 done
28149 rm -f conf$$subs.sh
28150
28151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28152 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28153 _ACEOF
28154 sed -n '
28155 h
28156 s/^/S["/; s/!.*/"]=/
28157 p
28158 g
28159 s/^[^!]*!//
28160 :repl
28161 t repl
28162 s/'"$ac_delim"'$//
28163 t delim
28164 :nl
28165 h
28166 s/\(.\{148\}\).*/\1/
28167 t more1
28168 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28169 p
28170 n
28171 b repl
28172 :more1
28173 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28174 p
28175 g
28176 s/.\{148\}//
28177 t nl
28178 :delim
28179 h
28180 s/\(.\{148\}\).*/\1/
28181 t more2
28182 s/["\\]/\\&/g; s/^/"/; s/$/"/
28183 p
28184 b
28185 :more2
28186 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28187 p
28188 g
28189 s/.\{148\}//
28190 t delim
28191 ' <conf$$subs.awk | sed '
28192 /^[^""]/{
28193 N
28194 s/\n//
28195 }
28196 ' >>$CONFIG_STATUS || ac_write_fail=1
28197 rm -f conf$$subs.awk
28198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28199 _ACAWK
28200 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28201 for (key in S) S_is_set[key] = 1
28202 FS = "\a"
28203 \$ac_cs_awk_pipe_init
28204 }
28205 {
28206 line = $ 0
28207 nfields = split(line, field, "@")
28208 substed = 0
28209 len = length(field[1])
28210 for (i = 2; i < nfields; i++) {
28211 key = field[i]
28212 keylen = length(key)
28213 if (S_is_set[key]) {
28214 value = S[key]
28215 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28216 len += length(value) + length(field[++i])
28217 substed = 1
28218 } else
28219 len += 1 + keylen
28220 }
28221 if (nfields == 3 && !substed) {
28222 key = field[2]
28223 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28224 \$ac_cs_awk_read_file
28225 next
28226 }
28227 }
28228 print line
28229 }
28230 \$ac_cs_awk_pipe_fini
28231 _ACAWK
28232 _ACEOF
28233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28234 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28235 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28236 else
28237 cat
28238 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28239 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28240 _ACEOF
28241
28242 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28243 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28244 # trailing colons and then remove the whole line if VPATH becomes empty
28245 # (actually we leave an empty line to preserve line numbers).
28246 if test "x$srcdir" = x.; then
28247 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28248 s/:*\$(srcdir):*/:/
28249 s/:*\${srcdir}:*/:/
28250 s/:*@srcdir@:*/:/
28251 s/^\([^=]*=[ ]*\):*/\1/
28252 s/:*$//
28253 s/^[^=]*=[ ]*$//
28254 }'
28255 fi
28256
28257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28258 fi # test -n "$CONFIG_FILES"
28259
28260 # Set up the scripts for CONFIG_HEADERS section.
28261 # No need to generate them if there are no CONFIG_HEADERS.
28262 # This happens for instance with `./config.status Makefile'.
28263 if test -n "$CONFIG_HEADERS"; then
28264 cat >"$tmp/defines.awk" <<\_ACAWK ||
28265 BEGIN {
28266 _ACEOF
28267
28268 # Transform confdefs.h into an awk script `defines.awk', embedded as
28269 # here-document in config.status, that substitutes the proper values into
28270 # config.h.in to produce config.h.
28271
28272 # Create a delimiter string that does not exist in confdefs.h, to ease
28273 # handling of long lines.
28274 ac_delim='%!_!# '
28275 for ac_last_try in false false :; do
28276 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28277 if test -z "$ac_t"; then
28278 break
28279 elif $ac_last_try; then
28280 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28281 else
28282 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28283 fi
28284 done
28285
28286 # For the awk script, D is an array of macro values keyed by name,
28287 # likewise P contains macro parameters if any. Preserve backslash
28288 # newline sequences.
28289
28290 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28291 sed -n '
28292 s/.\{148\}/&'"$ac_delim"'/g
28293 t rset
28294 :rset
28295 s/^[ ]*#[ ]*define[ ][ ]*/ /
28296 t def
28297 d
28298 :def
28299 s/\\$//
28300 t bsnl
28301 s/["\\]/\\&/g
28302 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28303 D["\1"]=" \3"/p
28304 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28305 d
28306 :bsnl
28307 s/["\\]/\\&/g
28308 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28309 D["\1"]=" \3\\\\\\n"\\/p
28310 t cont
28311 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28312 t cont
28313 d
28314 :cont
28315 n
28316 s/.\{148\}/&'"$ac_delim"'/g
28317 t clear
28318 :clear
28319 s/\\$//
28320 t bsnlc
28321 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28322 d
28323 :bsnlc
28324 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28325 b cont
28326 ' <confdefs.h | sed '
28327 s/'"$ac_delim"'/"\\\
28328 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28329
28330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28331 for (key in D) D_is_set[key] = 1
28332 FS = "\a"
28333 }
28334 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28335 line = \$ 0
28336 split(line, arg, " ")
28337 if (arg[1] == "#") {
28338 defundef = arg[2]
28339 mac1 = arg[3]
28340 } else {
28341 defundef = substr(arg[1], 2)
28342 mac1 = arg[2]
28343 }
28344 split(mac1, mac2, "(") #)
28345 macro = mac2[1]
28346 prefix = substr(line, 1, index(line, defundef) - 1)
28347 if (D_is_set[macro]) {
28348 # Preserve the white space surrounding the "#".
28349 print prefix "define", macro P[macro] D[macro]
28350 next
28351 } else {
28352 # Replace #undef with comments. This is necessary, for example,
28353 # in the case of _POSIX_SOURCE, which is predefined and required
28354 # on some systems where configure will not decide to define it.
28355 if (defundef == "undef") {
28356 print "/*", prefix defundef, macro, "*/"
28357 next
28358 }
28359 }
28360 }
28361 { print }
28362 _ACAWK
28363 _ACEOF
28364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28365 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28366 fi # test -n "$CONFIG_HEADERS"
28367
28368
28369 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28370 shift
28371 for ac_tag
28372 do
28373 case $ac_tag in
28374 :[FHLC]) ac_mode=$ac_tag; continue;;
28375 esac
28376 case $ac_mode$ac_tag in
28377 :[FHL]*:*);;
28378 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28379 :[FH]-) ac_tag=-:-;;
28380 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28381 esac
28382 ac_save_IFS=$IFS
28383 IFS=:
28384 set x $ac_tag
28385 IFS=$ac_save_IFS
28386 shift
28387 ac_file=$1
28388 shift
28389
28390 case $ac_mode in
28391 :L) ac_source=$1;;
28392 :[FH])
28393 ac_file_inputs=
28394 for ac_f
28395 do
28396 case $ac_f in
28397 -) ac_f="$tmp/stdin";;
28398 *) # Look for the file first in the build tree, then in the source tree
28399 # (if the path is not absolute). The absolute path cannot be DOS-style,
28400 # because $ac_f cannot contain `:'.
28401 test -f "$ac_f" ||
28402 case $ac_f in
28403 [\\/$]*) false;;
28404 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28405 esac ||
28406 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28407 esac
28408 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28409 as_fn_append ac_file_inputs " '$ac_f'"
28410 done
28411
28412 # Let's still pretend it is `configure' which instantiates (i.e., don't
28413 # use $as_me), people would be surprised to read:
28414 # /* config.h. Generated by config.status. */
28415 configure_input='Generated from '`
28416 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28417 `' by configure.'
28418 if test x"$ac_file" != x-; then
28419 configure_input="$ac_file. $configure_input"
28420 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28421 $as_echo "$as_me: creating $ac_file" >&6;}
28422 fi
28423 # Neutralize special characters interpreted by sed in replacement strings.
28424 case $configure_input in #(
28425 *\&* | *\|* | *\\* )
28426 ac_sed_conf_input=`$as_echo "$configure_input" |
28427 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28428 *) ac_sed_conf_input=$configure_input;;
28429 esac
28430
28431 case $ac_tag in
28432 *:-:* | *:-) cat >"$tmp/stdin" \
28433 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28434 esac
28435 ;;
28436 esac
28437
28438 ac_dir=`$as_dirname -- "$ac_file" ||
28439 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28440 X"$ac_file" : 'X\(//\)[^/]' \| \
28441 X"$ac_file" : 'X\(//\)$' \| \
28442 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28443 $as_echo X"$ac_file" |
28444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28445 s//\1/
28446 q
28447 }
28448 /^X\(\/\/\)[^/].*/{
28449 s//\1/
28450 q
28451 }
28452 /^X\(\/\/\)$/{
28453 s//\1/
28454 q
28455 }
28456 /^X\(\/\).*/{
28457 s//\1/
28458 q
28459 }
28460 s/.*/./; q'`
28461 as_dir="$ac_dir"; as_fn_mkdir_p
28462 ac_builddir=.
28463
28464 case "$ac_dir" in
28465 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28466 *)
28467 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28468 # A ".." for each directory in $ac_dir_suffix.
28469 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28470 case $ac_top_builddir_sub in
28471 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28472 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28473 esac ;;
28474 esac
28475 ac_abs_top_builddir=$ac_pwd
28476 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28477 # for backward compatibility:
28478 ac_top_builddir=$ac_top_build_prefix
28479
28480 case $srcdir in
28481 .) # We are building in place.
28482 ac_srcdir=.
28483 ac_top_srcdir=$ac_top_builddir_sub
28484 ac_abs_top_srcdir=$ac_pwd ;;
28485 [\\/]* | ?:[\\/]* ) # Absolute name.
28486 ac_srcdir=$srcdir$ac_dir_suffix;
28487 ac_top_srcdir=$srcdir
28488 ac_abs_top_srcdir=$srcdir ;;
28489 *) # Relative name.
28490 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28491 ac_top_srcdir=$ac_top_build_prefix$srcdir
28492 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28493 esac
28494 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28495
28496
28497 case $ac_mode in
28498 :F)
28499 #
28500 # CONFIG_FILE
28501 #
28502
28503 _ACEOF
28504
28505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28506 # If the template does not know about datarootdir, expand it.
28507 # FIXME: This hack should be removed a few years after 2.60.
28508 ac_datarootdir_hack=; ac_datarootdir_seen=
28509 ac_sed_dataroot='
28510 /datarootdir/ {
28511 p
28512 q
28513 }
28514 /@datadir@/p
28515 /@docdir@/p
28516 /@infodir@/p
28517 /@localedir@/p
28518 /@mandir@/p'
28519 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28520 *datarootdir*) ac_datarootdir_seen=yes;;
28521 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28523 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28524 _ACEOF
28525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28526 ac_datarootdir_hack='
28527 s&@datadir@&$datadir&g
28528 s&@docdir@&$docdir&g
28529 s&@infodir@&$infodir&g
28530 s&@localedir@&$localedir&g
28531 s&@mandir@&$mandir&g
28532 s&\\\${datarootdir}&$datarootdir&g' ;;
28533 esac
28534 _ACEOF
28535
28536 # Neutralize VPATH when `$srcdir' = `.'.
28537 # Shell code in configure.ac might set extrasub.
28538 # FIXME: do we really want to maintain this feature?
28539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28540 ac_sed_extra="$ac_vpsub
28541 $extrasub
28542 _ACEOF
28543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28544 :t
28545 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28546 s|@configure_input@|$ac_sed_conf_input|;t t
28547 s&@top_builddir@&$ac_top_builddir_sub&;t t
28548 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28549 s&@srcdir@&$ac_srcdir&;t t
28550 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28551 s&@top_srcdir@&$ac_top_srcdir&;t t
28552 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28553 s&@builddir@&$ac_builddir&;t t
28554 s&@abs_builddir@&$ac_abs_builddir&;t t
28555 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28556 $ac_datarootdir_hack
28557 "
28558 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28559 if $ac_cs_awk_getline; then
28560 $AWK -f "$tmp/subs.awk"
28561 else
28562 $AWK -f "$tmp/subs.awk" | $SHELL
28563 fi >$tmp/out \
28564 || as_fn_error "could not create $ac_file" "$LINENO" 5
28565
28566 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28567 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28568 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28570 which seems to be undefined. Please make sure it is defined." >&5
28571 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28572 which seems to be undefined. Please make sure it is defined." >&2;}
28573
28574 rm -f "$tmp/stdin"
28575 case $ac_file in
28576 -) cat "$tmp/out" && rm -f "$tmp/out";;
28577 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28578 esac \
28579 || as_fn_error "could not create $ac_file" "$LINENO" 5
28580 ;;
28581 :H)
28582 #
28583 # CONFIG_HEADER
28584 #
28585 if test x"$ac_file" != x-; then
28586 {
28587 $as_echo "/* $configure_input */" \
28588 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28589 } >"$tmp/config.h" \
28590 || as_fn_error "could not create $ac_file" "$LINENO" 5
28591 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28592 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28593 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28594 else
28595 rm -f "$ac_file"
28596 mv "$tmp/config.h" "$ac_file" \
28597 || as_fn_error "could not create $ac_file" "$LINENO" 5
28598 fi
28599 else
28600 $as_echo "/* $configure_input */" \
28601 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28602 || as_fn_error "could not create -" "$LINENO" 5
28603 fi
28604 ;;
28605
28606 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28607 $as_echo "$as_me: executing $ac_file commands" >&6;}
28608 ;;
28609 esac
28610
28611
28612 case $ac_file$ac_mode in
28613 "as":F) chmod +x as ;;
28614 "collect-ld":F) chmod +x collect-ld ;;
28615 "nm":F) chmod +x nm ;;
28616 "default":C)
28617 case ${CONFIG_HEADERS} in
28618 *auto-host.h:config.in*)
28619 echo > cstamp-h ;;
28620 esac
28621 # Make sure all the subdirs exist.
28622 for d in $subdirs doc build common c-family
28623 do
28624 test -d $d || mkdir $d
28625 done
28626 ;;
28627
28628 esac
28629 done # for ac_tag
28630
28631
28632 as_fn_exit 0
28633 _ACEOF
28634 ac_clean_files=$ac_clean_files_save
28635
28636 test $ac_write_fail = 0 ||
28637 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28638
28639
28640 # configure is writing to config.log, and then calls config.status.
28641 # config.status does its own redirection, appending to config.log.
28642 # Unfortunately, on DOS this fails, as config.log is still kept open
28643 # by configure, so config.status won't be able to write to it; its
28644 # output is simply discarded. So we exec the FD to /dev/null,
28645 # effectively closing config.log, so it can be properly (re)opened and
28646 # appended to by config.status. When coming back to configure, we
28647 # need to make the FD available again.
28648 if test "$no_create" != yes; then
28649 ac_cs_success=:
28650 ac_config_status_args=
28651 test "$silent" = yes &&
28652 ac_config_status_args="$ac_config_status_args --quiet"
28653 exec 5>/dev/null
28654 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28655 exec 5>>config.log
28656 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28657 # would make configure fail if this is the last instruction.
28658 $ac_cs_success || as_fn_exit $?
28659 fi
28660 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28662 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28663 fi
28664
28665
This page took 1.498244 seconds and 5 git commands to generate.