i386.c (legitimize_tls_address): Generate tls_initial_exec_64_sun only when !TARGET_X32.
[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 PPLINC
608 PPLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 common_out_object_file
625 common_out_file
626 out_object_file
627 out_file
628 objc_boehm_gc
629 md_file
630 local_prefix
631 lang_tree_files
632 lang_specs_files
633 lang_opt_files
634 install
635 out_host_hook_obj
636 host_xm_defines
637 host_xm_include_list
638 host_xm_file_list
639 host_exeext
640 gcc_gxx_include_dir_add_sysroot
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 dollar
671 gcc_tooldir
672 enable_lto
673 MAINT
674 zlibinc
675 zlibdir
676 HOST_LIBS
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_CFLAGS
707 CC_FOR_BUILD
708 inhibit_libc
709 SYSTEM_HEADER_DIR
710 ALL
711 CROSS
712 CATOBJEXT
713 GENCAT
714 INSTOBJEXT
715 DATADIRNAME
716 CATALOGS
717 POSUB
718 GMSGFMT
719 XGETTEXT
720 INCINTL
721 LIBINTL_DEP
722 LIBINTL
723 USE_NLS
724 extra_opt_files
725 extra_modes_file
726 NATIVE_SYSTEM_HEADER_DIR
727 objext
728 manext
729 LIBICONV_DEP
730 LTLIBICONV
731 LIBICONV
732 LDEXP_LIB
733 EXTRA_GCC_LIBS
734 GNAT_LIBEXC
735 COLLECT2_LIBS
736 CXXCPP
737 AR
738 NM
739 BISON
740 FLEX
741 GENERATED_MANPAGES
742 BUILD_INFO
743 MAKEINFO
744 have_mktemp_command
745 make_compare_target
746 INSTALL_DATA
747 INSTALL_PROGRAM
748 INSTALL
749 ranlib_flags
750 RANLIB
751 LN
752 LN_S
753 AWK
754 SET_MAKE
755 REPORT_BUGS_TEXI
756 REPORT_BUGS_TO
757 PKGVERSION
758 CONFIGURE_SPECS
759 CROSS_SYSTEM_HEADER_DIR
760 TARGET_SYSTEM_ROOT_DEFINE
761 TARGET_SYSTEM_ROOT
762 SYSROOT_CFLAGS_FOR_TARGET
763 enable_shared
764 enable_fixed_point
765 enable_decimal_float
766 enable_multilib
767 ENABLE_BUILD_WITH_CXX
768 coverage_flags
769 valgrind_command
770 valgrind_path_defines
771 valgrind_path
772 TREEBROWSER
773 nocommon_flag
774 noexception_flags
775 warn_cxxflags
776 warn_cflags
777 c_strict_warn
778 strict_warn
779 c_loose_warn
780 loose_warn
781 EGREP
782 GREP
783 CPP
784 PICFLAG_FOR_TARGET
785 OUTPUT_OPTION
786 NO_MINUS_C_MINUS_O
787 GNATMAKE
788 GNATBIND
789 ac_ct_CXX
790 CXXFLAGS
791 CXX
792 OBJEXT
793 EXEEXT
794 ac_ct_CC
795 CPPFLAGS
796 LDFLAGS
797 CFLAGS
798 CC
799 GENINSRC
800 target_subdir
801 host_subdir
802 build_subdir
803 build_libsubdir
804 target_noncanonical
805 target_os
806 target_vendor
807 target_cpu
808 target
809 host_os
810 host_vendor
811 host_cpu
812 host
813 build_os
814 build_vendor
815 build_cpu
816 build
817 target_alias
818 host_alias
819 build_alias
820 LIBS
821 ECHO_T
822 ECHO_N
823 ECHO_C
824 DEFS
825 mandir
826 localedir
827 libdir
828 psdir
829 pdfdir
830 dvidir
831 htmldir
832 infodir
833 docdir
834 oldincludedir
835 includedir
836 localstatedir
837 sharedstatedir
838 sysconfdir
839 datadir
840 datarootdir
841 libexecdir
842 sbindir
843 bindir
844 program_transform_name
845 prefix
846 exec_prefix
847 PACKAGE_URL
848 PACKAGE_BUGREPORT
849 PACKAGE_STRING
850 PACKAGE_VERSION
851 PACKAGE_TARNAME
852 PACKAGE_NAME
853 PATH_SEPARATOR
854 SHELL'
855 ac_subst_files='option_includes
856 language_hooks'
857 ac_user_opts='
858 enable_option_checking
859 with_build_libsubdir
860 with_local_prefix
861 with_gxx_include_dir
862 with_cpp_install_dir
863 enable_generated_files_in_srcdir
864 with_gnu_ld
865 with_ld
866 with_demangler_in_ld
867 with_gnu_as
868 with_as
869 enable_largefile
870 enable_werror_always
871 enable_checking
872 enable_coverage
873 enable_gather_detailed_mem_stats
874 enable_build_with_cxx
875 with_stabs
876 enable_multilib
877 enable___cxa_atexit
878 enable_decimal_float
879 enable_fixed_point
880 enable_threads
881 enable_tls
882 enable_objc_gc
883 with_dwarf2
884 enable_shared
885 with_native_system_header_dir
886 with_build_sysroot
887 with_sysroot
888 with_specs
889 with_pkgversion
890 with_bugurl
891 enable_languages
892 with_multilib_list
893 enable_rpath
894 with_libiconv_prefix
895 enable_sjlj_exceptions
896 enable_secureplt
897 enable_leading_mingw64_underscores
898 enable_cld
899 enable_frame_pointer
900 enable_win32_registry
901 enable_static
902 with_pic
903 enable_fast_install
904 enable_libtool_lock
905 with_plugin_ld
906 enable_gnu_indirect_function
907 enable_initfini_array
908 enable_comdat
909 enable_gnu_unique_object
910 enable_linker_build_id
911 with_long_double_128
912 with_gc
913 with_system_zlib
914 enable_maintainer_mode
915 enable_version_specific_runtime_libs
916 enable_plugin
917 enable_libquadmath_support
918 with_linker_hash_style
919 '
920 ac_precious_vars='build_alias
921 host_alias
922 target_alias
923 CC
924 CFLAGS
925 LDFLAGS
926 LIBS
927 CPPFLAGS
928 CXX
929 CXXFLAGS
930 CCC
931 CPP
932 CXXCPP
933 GMPLIBS
934 GMPINC
935 PPLLIBS
936 PPLINC
937 CLOOGLIBS
938 CLOOGINC'
939
940
941 # Initialize some variables set by options.
942 ac_init_help=
943 ac_init_version=false
944 ac_unrecognized_opts=
945 ac_unrecognized_sep=
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
948 cache_file=/dev/null
949 exec_prefix=NONE
950 no_create=
951 no_recursion=
952 prefix=NONE
953 program_prefix=NONE
954 program_suffix=NONE
955 program_transform_name=s,x,x,
956 silent=
957 site=
958 srcdir=
959 verbose=
960 x_includes=NONE
961 x_libraries=NONE
962
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir='${exec_prefix}/bin'
970 sbindir='${exec_prefix}/sbin'
971 libexecdir='${exec_prefix}/libexec'
972 datarootdir='${prefix}/share'
973 datadir='${datarootdir}'
974 sysconfdir='${prefix}/etc'
975 sharedstatedir='${prefix}/com'
976 localstatedir='${prefix}/var'
977 includedir='${prefix}/include'
978 oldincludedir='/usr/include'
979 docdir='${datarootdir}/doc/${PACKAGE}'
980 infodir='${datarootdir}/info'
981 htmldir='${docdir}'
982 dvidir='${docdir}'
983 pdfdir='${docdir}'
984 psdir='${docdir}'
985 libdir='${exec_prefix}/lib'
986 localedir='${datarootdir}/locale'
987 mandir='${datarootdir}/man'
988
989 ac_prev=
990 ac_dashdash=
991 for ac_option
992 do
993 # If the previous option needs an argument, assign it.
994 if test -n "$ac_prev"; then
995 eval $ac_prev=\$ac_option
996 ac_prev=
997 continue
998 fi
999
1000 case $ac_option in
1001 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1002 *) ac_optarg=yes ;;
1003 esac
1004
1005 # Accept the important Cygnus configure options, so we can diagnose typos.
1006
1007 case $ac_dashdash$ac_option in
1008 --)
1009 ac_dashdash=yes ;;
1010
1011 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012 ac_prev=bindir ;;
1013 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014 bindir=$ac_optarg ;;
1015
1016 -build | --build | --buil | --bui | --bu)
1017 ac_prev=build_alias ;;
1018 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019 build_alias=$ac_optarg ;;
1020
1021 -cache-file | --cache-file | --cache-fil | --cache-fi \
1022 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023 ac_prev=cache_file ;;
1024 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026 cache_file=$ac_optarg ;;
1027
1028 --config-cache | -C)
1029 cache_file=config.cache ;;
1030
1031 -datadir | --datadir | --datadi | --datad)
1032 ac_prev=datadir ;;
1033 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034 datadir=$ac_optarg ;;
1035
1036 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037 | --dataroo | --dataro | --datar)
1038 ac_prev=datarootdir ;;
1039 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041 datarootdir=$ac_optarg ;;
1042
1043 -disable-* | --disable-*)
1044 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047 as_fn_error "invalid feature name: $ac_useropt"
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1051 *"
1052 "enable_$ac_useropt"
1053 "*) ;;
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
1056 esac
1057 eval enable_$ac_useropt=no ;;
1058
1059 -docdir | --docdir | --docdi | --doc | --do)
1060 ac_prev=docdir ;;
1061 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062 docdir=$ac_optarg ;;
1063
1064 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065 ac_prev=dvidir ;;
1066 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067 dvidir=$ac_optarg ;;
1068
1069 -enable-* | --enable-*)
1070 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 as_fn_error "invalid feature name: $ac_useropt"
1074 ac_useropt_orig=$ac_useropt
1075 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1077 *"
1078 "enable_$ac_useropt"
1079 "*) ;;
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1082 esac
1083 eval enable_$ac_useropt=\$ac_optarg ;;
1084
1085 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087 | --exec | --exe | --ex)
1088 ac_prev=exec_prefix ;;
1089 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091 | --exec=* | --exe=* | --ex=*)
1092 exec_prefix=$ac_optarg ;;
1093
1094 -gas | --gas | --ga | --g)
1095 # Obsolete; use --with-gas.
1096 with_gas=yes ;;
1097
1098 -help | --help | --hel | --he | -h)
1099 ac_init_help=long ;;
1100 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101 ac_init_help=recursive ;;
1102 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103 ac_init_help=short ;;
1104
1105 -host | --host | --hos | --ho)
1106 ac_prev=host_alias ;;
1107 -host=* | --host=* | --hos=* | --ho=*)
1108 host_alias=$ac_optarg ;;
1109
1110 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111 ac_prev=htmldir ;;
1112 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113 | --ht=*)
1114 htmldir=$ac_optarg ;;
1115
1116 -includedir | --includedir | --includedi | --included | --include \
1117 | --includ | --inclu | --incl | --inc)
1118 ac_prev=includedir ;;
1119 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120 | --includ=* | --inclu=* | --incl=* | --inc=*)
1121 includedir=$ac_optarg ;;
1122
1123 -infodir | --infodir | --infodi | --infod | --info | --inf)
1124 ac_prev=infodir ;;
1125 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126 infodir=$ac_optarg ;;
1127
1128 -libdir | --libdir | --libdi | --libd)
1129 ac_prev=libdir ;;
1130 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131 libdir=$ac_optarg ;;
1132
1133 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134 | --libexe | --libex | --libe)
1135 ac_prev=libexecdir ;;
1136 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137 | --libexe=* | --libex=* | --libe=*)
1138 libexecdir=$ac_optarg ;;
1139
1140 -localedir | --localedir | --localedi | --localed | --locale)
1141 ac_prev=localedir ;;
1142 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143 localedir=$ac_optarg ;;
1144
1145 -localstatedir | --localstatedir | --localstatedi | --localstated \
1146 | --localstate | --localstat | --localsta | --localst | --locals)
1147 ac_prev=localstatedir ;;
1148 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150 localstatedir=$ac_optarg ;;
1151
1152 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153 ac_prev=mandir ;;
1154 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155 mandir=$ac_optarg ;;
1156
1157 -nfp | --nfp | --nf)
1158 # Obsolete; use --without-fp.
1159 with_fp=no ;;
1160
1161 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162 | --no-cr | --no-c | -n)
1163 no_create=yes ;;
1164
1165 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167 no_recursion=yes ;;
1168
1169 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171 | --oldin | --oldi | --old | --ol | --o)
1172 ac_prev=oldincludedir ;;
1173 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176 oldincludedir=$ac_optarg ;;
1177
1178 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179 ac_prev=prefix ;;
1180 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181 prefix=$ac_optarg ;;
1182
1183 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184 | --program-pre | --program-pr | --program-p)
1185 ac_prev=program_prefix ;;
1186 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188 program_prefix=$ac_optarg ;;
1189
1190 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191 | --program-suf | --program-su | --program-s)
1192 ac_prev=program_suffix ;;
1193 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195 program_suffix=$ac_optarg ;;
1196
1197 -program-transform-name | --program-transform-name \
1198 | --program-transform-nam | --program-transform-na \
1199 | --program-transform-n | --program-transform- \
1200 | --program-transform | --program-transfor \
1201 | --program-transfo | --program-transf \
1202 | --program-trans | --program-tran \
1203 | --progr-tra | --program-tr | --program-t)
1204 ac_prev=program_transform_name ;;
1205 -program-transform-name=* | --program-transform-name=* \
1206 | --program-transform-nam=* | --program-transform-na=* \
1207 | --program-transform-n=* | --program-transform-=* \
1208 | --program-transform=* | --program-transfor=* \
1209 | --program-transfo=* | --program-transf=* \
1210 | --program-trans=* | --program-tran=* \
1211 | --progr-tra=* | --program-tr=* | --program-t=*)
1212 program_transform_name=$ac_optarg ;;
1213
1214 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215 ac_prev=pdfdir ;;
1216 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217 pdfdir=$ac_optarg ;;
1218
1219 -psdir | --psdir | --psdi | --psd | --ps)
1220 ac_prev=psdir ;;
1221 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222 psdir=$ac_optarg ;;
1223
1224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225 | -silent | --silent | --silen | --sile | --sil)
1226 silent=yes ;;
1227
1228 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1229 ac_prev=sbindir ;;
1230 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1231 | --sbi=* | --sb=*)
1232 sbindir=$ac_optarg ;;
1233
1234 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1235 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1236 | --sharedst | --shareds | --shared | --share | --shar \
1237 | --sha | --sh)
1238 ac_prev=sharedstatedir ;;
1239 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1240 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1241 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1242 | --sha=* | --sh=*)
1243 sharedstatedir=$ac_optarg ;;
1244
1245 -site | --site | --sit)
1246 ac_prev=site ;;
1247 -site=* | --site=* | --sit=*)
1248 site=$ac_optarg ;;
1249
1250 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1251 ac_prev=srcdir ;;
1252 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1253 srcdir=$ac_optarg ;;
1254
1255 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1256 | --syscon | --sysco | --sysc | --sys | --sy)
1257 ac_prev=sysconfdir ;;
1258 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1259 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1260 sysconfdir=$ac_optarg ;;
1261
1262 -target | --target | --targe | --targ | --tar | --ta | --t)
1263 ac_prev=target_alias ;;
1264 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1265 target_alias=$ac_optarg ;;
1266
1267 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1268 verbose=yes ;;
1269
1270 -version | --version | --versio | --versi | --vers | -V)
1271 ac_init_version=: ;;
1272
1273 -with-* | --with-*)
1274 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277 as_fn_error "invalid package name: $ac_useropt"
1278 ac_useropt_orig=$ac_useropt
1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1281 *"
1282 "with_$ac_useropt"
1283 "*) ;;
1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285 ac_unrecognized_sep=', ';;
1286 esac
1287 eval with_$ac_useropt=\$ac_optarg ;;
1288
1289 -without-* | --without-*)
1290 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293 as_fn_error "invalid package name: $ac_useropt"
1294 ac_useropt_orig=$ac_useropt
1295 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1297 *"
1298 "with_$ac_useropt"
1299 "*) ;;
1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301 ac_unrecognized_sep=', ';;
1302 esac
1303 eval with_$ac_useropt=no ;;
1304
1305 --x)
1306 # Obsolete; use --with-x.
1307 with_x=yes ;;
1308
1309 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310 | --x-incl | --x-inc | --x-in | --x-i)
1311 ac_prev=x_includes ;;
1312 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314 x_includes=$ac_optarg ;;
1315
1316 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318 ac_prev=x_libraries ;;
1319 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321 x_libraries=$ac_optarg ;;
1322
1323 -*) as_fn_error "unrecognized option: \`$ac_option'
1324 Try \`$0 --help' for more information."
1325 ;;
1326
1327 *=*)
1328 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1329 # Reject names that are not valid shell variable names.
1330 case $ac_envvar in #(
1331 '' | [0-9]* | *[!_$as_cr_alnum]* )
1332 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1333 esac
1334 eval $ac_envvar=\$ac_optarg
1335 export $ac_envvar ;;
1336
1337 *)
1338 # FIXME: should be removed in autoconf 3.0.
1339 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1343 ;;
1344
1345 esac
1346 done
1347
1348 if test -n "$ac_prev"; then
1349 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1350 as_fn_error "missing argument to $ac_option"
1351 fi
1352
1353 if test -n "$ac_unrecognized_opts"; then
1354 case $enable_option_checking in
1355 no) ;;
1356 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1357 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1358 esac
1359 fi
1360
1361 # Check all directory arguments for consistency.
1362 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363 datadir sysconfdir sharedstatedir localstatedir includedir \
1364 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365 libdir localedir mandir
1366 do
1367 eval ac_val=\$$ac_var
1368 # Remove trailing slashes.
1369 case $ac_val in
1370 */ )
1371 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1372 eval $ac_var=\$ac_val;;
1373 esac
1374 # Be sure to have absolute directory names.
1375 case $ac_val in
1376 [\\/$]* | ?:[\\/]* ) continue;;
1377 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1378 esac
1379 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1380 done
1381
1382 # There might be people who depend on the old broken behavior: `$host'
1383 # used to hold the argument of --host etc.
1384 # FIXME: To remove some day.
1385 build=$build_alias
1386 host=$host_alias
1387 target=$target_alias
1388
1389 # FIXME: To remove some day.
1390 if test "x$host_alias" != x; then
1391 if test "x$build_alias" = x; then
1392 cross_compiling=maybe
1393 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1394 If a cross compiler is detected then cross compile mode will be used." >&2
1395 elif test "x$build_alias" != "x$host_alias"; then
1396 cross_compiling=yes
1397 fi
1398 fi
1399
1400 ac_tool_prefix=
1401 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402
1403 test "$silent" = yes && exec 6>/dev/null
1404
1405
1406 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407 ac_ls_di=`ls -di .` &&
1408 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1409 as_fn_error "working directory cannot be determined"
1410 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411 as_fn_error "pwd does not report name of working directory"
1412
1413
1414 # Find the source files, if location was not specified.
1415 if test -z "$srcdir"; then
1416 ac_srcdir_defaulted=yes
1417 # Try the directory containing this script, then the parent directory.
1418 ac_confdir=`$as_dirname -- "$as_myself" ||
1419 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420 X"$as_myself" : 'X\(//\)[^/]' \| \
1421 X"$as_myself" : 'X\(//\)$' \| \
1422 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423 $as_echo X"$as_myself" |
1424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425 s//\1/
1426 q
1427 }
1428 /^X\(\/\/\)[^/].*/{
1429 s//\1/
1430 q
1431 }
1432 /^X\(\/\/\)$/{
1433 s//\1/
1434 q
1435 }
1436 /^X\(\/\).*/{
1437 s//\1/
1438 q
1439 }
1440 s/.*/./; q'`
1441 srcdir=$ac_confdir
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1443 srcdir=..
1444 fi
1445 else
1446 ac_srcdir_defaulted=no
1447 fi
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1451 fi
1452 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453 ac_abs_confdir=`(
1454 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1455 pwd)`
1456 # When building in place, set srcdir=.
1457 if test "$ac_abs_confdir" = "$ac_pwd"; then
1458 srcdir=.
1459 fi
1460 # Remove unnecessary trailing slashes from srcdir.
1461 # Double slashes in file names in object file debugging info
1462 # mess up M-x gdb in Emacs.
1463 case $srcdir in
1464 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465 esac
1466 for ac_var in $ac_precious_vars; do
1467 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468 eval ac_env_${ac_var}_value=\$${ac_var}
1469 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471 done
1472
1473 #
1474 # Report the --help message.
1475 #
1476 if test "$ac_init_help" = "long"; then
1477 # Omit some internal or obsolete options to make the list less imposing.
1478 # This message is too long to be a string in the A/UX 3.1 sh.
1479 cat <<_ACEOF
1480 \`configure' configures this package to adapt to many kinds of systems.
1481
1482 Usage: $0 [OPTION]... [VAR=VALUE]...
1483
1484 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485 VAR=VALUE. See below for descriptions of some of the useful variables.
1486
1487 Defaults for the options are specified in brackets.
1488
1489 Configuration:
1490 -h, --help display this help and exit
1491 --help=short display options specific to this package
1492 --help=recursive display the short help of all the included packages
1493 -V, --version display version information and exit
1494 -q, --quiet, --silent do not print \`checking...' messages
1495 --cache-file=FILE cache test results in FILE [disabled]
1496 -C, --config-cache alias for \`--cache-file=config.cache'
1497 -n, --no-create do not create output files
1498 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1499
1500 Installation directories:
1501 --prefix=PREFIX install architecture-independent files in PREFIX
1502 [$ac_default_prefix]
1503 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1504 [PREFIX]
1505
1506 By default, \`make install' will install all the files in
1507 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1508 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509 for instance \`--prefix=\$HOME'.
1510
1511 For better control, use the options below.
1512
1513 Fine tuning of the installation directories:
1514 --bindir=DIR user executables [EPREFIX/bin]
1515 --sbindir=DIR system admin executables [EPREFIX/sbin]
1516 --libexecdir=DIR program executables [EPREFIX/libexec]
1517 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1518 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1519 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1520 --libdir=DIR object code libraries [EPREFIX/lib]
1521 --includedir=DIR C header files [PREFIX/include]
1522 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1523 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1524 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1525 --infodir=DIR info documentation [DATAROOTDIR/info]
1526 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1527 --mandir=DIR man documentation [DATAROOTDIR/man]
1528 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1529 --htmldir=DIR html documentation [DOCDIR]
1530 --dvidir=DIR dvi documentation [DOCDIR]
1531 --pdfdir=DIR pdf documentation [DOCDIR]
1532 --psdir=DIR ps documentation [DOCDIR]
1533 _ACEOF
1534
1535 cat <<\_ACEOF
1536
1537 Program names:
1538 --program-prefix=PREFIX prepend PREFIX to installed program names
1539 --program-suffix=SUFFIX append SUFFIX to installed program names
1540 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1541
1542 System types:
1543 --build=BUILD configure for building on BUILD [guessed]
1544 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1545 --target=TARGET configure for building compilers for TARGET [HOST]
1546 _ACEOF
1547 fi
1548
1549 if test -n "$ac_init_help"; then
1550
1551 cat <<\_ACEOF
1552
1553 Optional Features:
1554 --disable-option-checking ignore unrecognized --enable/--with options
1555 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1556 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1557 --enable-generated-files-in-srcdir
1558 put copies of generated files in source dir intended
1559 for creating source tarballs for users without
1560 texinfo bison or flex
1561 --disable-largefile omit support for large files
1562 --enable-werror-always enable -Werror despite compiler version
1563 --enable-checking[=LIST]
1564 enable expensive run-time checks. With LIST, enable
1565 only specific categories of checks. Categories are:
1566 yes,no,all,none,release. Flags are:
1567 assert,df,fold,gc,gcac,gimple,misc,
1568 rtlflag,rtl,runtime,tree,valgrind,types
1569 --enable-coverage[=LEVEL]
1570 enable compiler's code coverage collection. Use to
1571 measure compiler performance and locate unused parts
1572 of the compiler. With LEVEL, specify optimization.
1573 Values are opt, noopt, default is noopt
1574 --enable-gather-detailed-mem-stats
1575 enable detailed memory allocation stats gathering
1576 --enable-build-with-cxx build with C++ compiler instead of C compiler
1577 --enable-multilib enable library support for multiple ABIs
1578 --enable-__cxa_atexit enable __cxa_atexit for C++
1579 --enable-decimal-float={no,yes,bid,dpd}
1580 enable decimal float extension to C. Selecting 'bid'
1581 or 'dpd' choses which decimal floating point format
1582 to use
1583 --enable-fixed-point enable fixed-point arithmetic extension to C
1584 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1585 package
1586 --enable-tls enable or disable generation of tls code overriding
1587 the assembler check for tls support
1588 --enable-objc-gc enable the use of Boehm's garbage collector with the
1589 GNU Objective-C runtime
1590 --disable-shared don't provide a shared libgcc
1591 --enable-languages=LIST specify which front-ends to build
1592 --disable-rpath do not hardcode runtime library paths
1593 --enable-sjlj-exceptions
1594 arrange to use setjmp/longjmp exception handling
1595 --enable-secureplt enable -msecure-plt by default for PowerPC
1596 --enable-leading-mingw64-underscores
1597 enable leading underscores on 64 bit mingw targets
1598 --enable-cld enable -mcld by default for 32bit x86
1599 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1600 x86
1601 --disable-win32-registry
1602 disable lookup of installation paths in the Registry
1603 on Windows hosts
1604 --enable-win32-registry enable registry lookup (default)
1605 --enable-win32-registry=KEY
1606 use KEY instead of GCC version as the last portion
1607 of the registry key
1608 --enable-shared[=PKGS] build shared libraries [default=yes]
1609 --enable-static[=PKGS] build static libraries [default=yes]
1610 --enable-fast-install[=PKGS]
1611 optimize for fast installation [default=yes]
1612 --disable-libtool-lock avoid locking (might break parallel builds)
1613 --enable-gnu-indirect-function
1614 enable the use of the @gnu_indirect_function to
1615 glibc systems
1616 --enable-initfini-array use .init_array/.fini_array sections
1617 --enable-comdat enable COMDAT group support
1618 --enable-gnu-unique-object
1619 enable the use of the @gnu_unique_object ELF
1620 extension on glibc systems
1621 --enable-linker-build-id
1622 compiler will always pass --build-id to linker
1623 --enable-maintainer-mode
1624 enable make rules and dependencies not useful (and
1625 sometimes confusing) to the casual installer
1626 --enable-version-specific-runtime-libs
1627 specify that runtime libraries should be installed
1628 in a compiler-specific directory
1629 --enable-plugin enable plugin support
1630 --disable-libquadmath-support
1631 disable libquadmath support for Fortran
1632
1633 Optional Packages:
1634 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1635 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1636 --with-build-libsubdir=DIR Directory where to find libraries for build system
1637 --with-local-prefix=DIR specifies directory to put local include
1638 --with-gxx-include-dir=DIR
1639 specifies directory to put g++ header files
1640 --with-cpp-install-dir=DIR
1641 install the user visible C preprocessor in DIR
1642 (relative to PREFIX) as well as PREFIX/bin
1643 --with-gnu-ld arrange to work with GNU ld
1644 --with-ld arrange to use the specified ld (full pathname)
1645 --with-demangler-in-ld try to use demangler in GNU ld
1646 --with-gnu-as arrange to work with GNU as
1647 --with-as arrange to use the specified as (full pathname)
1648 --with-stabs arrange to use stabs instead of host debug format
1649 --with-dwarf2 force the default debug format to be DWARF 2
1650 --with-native-system-header-dir=dir
1651 use dir as the directory to look for standard
1652 system header files in. Defaults to /usr/include.
1653 --with-build-sysroot=sysroot
1654 use sysroot as the system root during the build
1655 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1656 --with-specs=SPECS add SPECS to driver command-line processing
1657 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1658 --with-bugurl=URL Direct users to URL to report a bug
1659 --with-multilib-list select multilibs (SH and x86-64 only)
1660 --with-gnu-ld assume the C compiler uses GNU ld default=no
1661 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1662 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1663 --with-pic try to use only PIC/non-PIC objects [default=use
1664 both]
1665 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1666 --with-plugin-ld=[ARG] specify the plugin linker
1667 --with-long-double-128 use 128-bit long double by default
1668 --with-gc={page,zone} choose the garbage collection mechanism to use with
1669 the compiler
1670 --with-system-zlib use installed libz
1671 --with-linker-hash-style={sysv,gnu,both}
1672 specify the linker hash style
1673
1674 Some influential environment variables:
1675 CC C compiler command
1676 CFLAGS C compiler flags
1677 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1678 nonstandard directory <lib dir>
1679 LIBS libraries to pass to the linker, e.g. -l<library>
1680 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1681 you have headers in a nonstandard directory <include dir>
1682 CXX C++ compiler command
1683 CXXFLAGS C++ compiler flags
1684 CPP C preprocessor
1685 CXXCPP C++ preprocessor
1686 GMPLIBS How to link GMP
1687 GMPINC How to find GMP include files
1688 PPLLIBS How to link PPL
1689 PPLINC How to find PPL include files
1690 CLOOGLIBS How to link CLOOG
1691 CLOOGINC How to find CLOOG include files
1692
1693 Use these variables to override the choices made by `configure' or to help
1694 it to find libraries and programs with nonstandard names/locations.
1695
1696 Report bugs to the package provider.
1697 _ACEOF
1698 ac_status=$?
1699 fi
1700
1701 if test "$ac_init_help" = "recursive"; then
1702 # If there are subdirs, report their specific --help.
1703 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1704 test -d "$ac_dir" ||
1705 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1706 continue
1707 ac_builddir=.
1708
1709 case "$ac_dir" in
1710 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1711 *)
1712 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1713 # A ".." for each directory in $ac_dir_suffix.
1714 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1715 case $ac_top_builddir_sub in
1716 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1718 esac ;;
1719 esac
1720 ac_abs_top_builddir=$ac_pwd
1721 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1722 # for backward compatibility:
1723 ac_top_builddir=$ac_top_build_prefix
1724
1725 case $srcdir in
1726 .) # We are building in place.
1727 ac_srcdir=.
1728 ac_top_srcdir=$ac_top_builddir_sub
1729 ac_abs_top_srcdir=$ac_pwd ;;
1730 [\\/]* | ?:[\\/]* ) # Absolute name.
1731 ac_srcdir=$srcdir$ac_dir_suffix;
1732 ac_top_srcdir=$srcdir
1733 ac_abs_top_srcdir=$srcdir ;;
1734 *) # Relative name.
1735 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1736 ac_top_srcdir=$ac_top_build_prefix$srcdir
1737 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1738 esac
1739 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1740
1741 cd "$ac_dir" || { ac_status=$?; continue; }
1742 # Check for guested configure.
1743 if test -f "$ac_srcdir/configure.gnu"; then
1744 echo &&
1745 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1746 elif test -f "$ac_srcdir/configure"; then
1747 echo &&
1748 $SHELL "$ac_srcdir/configure" --help=recursive
1749 else
1750 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1751 fi || ac_status=$?
1752 cd "$ac_pwd" || { ac_status=$?; break; }
1753 done
1754 fi
1755
1756 test -n "$ac_init_help" && exit $ac_status
1757 if $ac_init_version; then
1758 cat <<\_ACEOF
1759 configure
1760 generated by GNU Autoconf 2.64
1761
1762 Copyright (C) 2009 Free Software Foundation, Inc.
1763 This configure script is free software; the Free Software Foundation
1764 gives unlimited permission to copy, distribute and modify it.
1765 _ACEOF
1766 exit
1767 fi
1768
1769 ## ------------------------ ##
1770 ## Autoconf initialization. ##
1771 ## ------------------------ ##
1772
1773 # ac_fn_c_try_compile LINENO
1774 # --------------------------
1775 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_c_try_compile ()
1777 {
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 rm -f conftest.$ac_objext
1780 if { { ac_try="$ac_compile"
1781 case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_compile") 2>conftest.err
1788 ac_status=$?
1789 if test -s conftest.err; then
1790 grep -v '^ *+' conftest.err >conftest.er1
1791 cat conftest.er1 >&5
1792 mv -f conftest.er1 conftest.err
1793 fi
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && {
1796 test -z "$ac_c_werror_flag" ||
1797 test ! -s conftest.err
1798 } && test -s conftest.$ac_objext; then :
1799 ac_retval=0
1800 else
1801 $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.$ac_ext >&5
1803
1804 ac_retval=1
1805 fi
1806 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1807 return $ac_retval
1808
1809 } # ac_fn_c_try_compile
1810
1811 # ac_fn_cxx_try_compile LINENO
1812 # ----------------------------
1813 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1814 ac_fn_cxx_try_compile ()
1815 {
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 rm -f conftest.$ac_objext
1818 if { { ac_try="$ac_compile"
1819 case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_compile") 2>conftest.err
1826 ac_status=$?
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1831 fi
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && {
1834 test -z "$ac_cxx_werror_flag" ||
1835 test ! -s conftest.err
1836 } && test -s conftest.$ac_objext; then :
1837 ac_retval=0
1838 else
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842 ac_retval=1
1843 fi
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1845 return $ac_retval
1846
1847 } # ac_fn_cxx_try_compile
1848
1849 # ac_fn_c_try_cpp LINENO
1850 # ----------------------
1851 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1852 ac_fn_c_try_cpp ()
1853 {
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 if { { ac_try="$ac_cpp conftest.$ac_ext"
1856 case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1863 ac_status=$?
1864 if test -s conftest.err; then
1865 grep -v '^ *+' conftest.err >conftest.er1
1866 cat conftest.er1 >&5
1867 mv -f conftest.er1 conftest.err
1868 fi
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } >/dev/null && {
1871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1872 test ! -s conftest.err
1873 }; then :
1874 ac_retval=0
1875 else
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=1
1880 fi
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882 return $ac_retval
1883
1884 } # ac_fn_c_try_cpp
1885
1886 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1887 # -------------------------------------------------------
1888 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1889 # the include files in INCLUDES and setting the cache variable VAR
1890 # accordingly.
1891 ac_fn_c_check_header_mongrel ()
1892 {
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898 $as_echo_n "(cached) " >&6
1899 fi
1900 eval ac_res=\$$3
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 else
1904 # Is the header compilable?
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1906 $as_echo_n "checking $2 usability... " >&6; }
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1909 $4
1910 #include <$2>
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913 ac_header_compiler=yes
1914 else
1915 ac_header_compiler=no
1916 fi
1917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1919 $as_echo "$ac_header_compiler" >&6; }
1920
1921 # Is the header present?
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1923 $as_echo_n "checking $2 presence... " >&6; }
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1926 #include <$2>
1927 _ACEOF
1928 if ac_fn_c_try_cpp "$LINENO"; then :
1929 ac_header_preproc=yes
1930 else
1931 ac_header_preproc=no
1932 fi
1933 rm -f conftest.err conftest.$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1935 $as_echo "$ac_header_preproc" >&6; }
1936
1937 # So? What about this header?
1938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1939 yes:no: )
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1941 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1943 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1944 ;;
1945 no:yes:* )
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1947 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1949 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1951 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1953 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1955 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1956 ;;
1957 esac
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 $as_echo_n "(cached) " >&6
1962 else
1963 eval "$3=\$ac_header_compiler"
1964 fi
1965 eval ac_res=\$$3
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1968 fi
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970
1971 } # ac_fn_c_check_header_mongrel
1972
1973 # ac_fn_c_try_run LINENO
1974 # ----------------------
1975 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1976 # that executables *can* be run.
1977 ac_fn_c_try_run ()
1978 {
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 if { { ac_try="$ac_link"
1981 case "(($ac_try" in
1982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983 *) ac_try_echo=$ac_try;;
1984 esac
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987 (eval "$ac_link") 2>&5
1988 ac_status=$?
1989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1991 { { case "(($ac_try" in
1992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993 *) ac_try_echo=$ac_try;;
1994 esac
1995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997 (eval "$ac_try") 2>&5
1998 ac_status=$?
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; }; }; then :
2001 ac_retval=0
2002 else
2003 $as_echo "$as_me: program exited with status $ac_status" >&5
2004 $as_echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2006
2007 ac_retval=$ac_status
2008 fi
2009 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2010 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2011 return $ac_retval
2012
2013 } # ac_fn_c_try_run
2014
2015 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2016 # -------------------------------------------------------
2017 # Tests whether HEADER exists and can be compiled using the include files in
2018 # INCLUDES, setting the cache variable VAR accordingly.
2019 ac_fn_c_check_header_compile ()
2020 {
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2025 $as_echo_n "(cached) " >&6
2026 else
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2029 $4
2030 #include <$2>
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033 eval "$3=yes"
2034 else
2035 eval "$3=no"
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 fi
2039 eval ac_res=\$$3
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2043
2044 } # ac_fn_c_check_header_compile
2045
2046 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2047 # --------------------------------------------
2048 # Tries to find the compile-time value of EXPR in a program that includes
2049 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2050 # computed
2051 ac_fn_c_compute_int ()
2052 {
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 if test "$cross_compiling" = yes; then
2055 # Depending upon the size, compute the lo and hi bounds.
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2058 $4
2059 int
2060 main ()
2061 {
2062 static int test_array [1 - 2 * !(($2) >= 0)];
2063 test_array [0] = 0
2064
2065 ;
2066 return 0;
2067 }
2068 _ACEOF
2069 if ac_fn_c_try_compile "$LINENO"; then :
2070 ac_lo=0 ac_mid=0
2071 while :; do
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2074 $4
2075 int
2076 main ()
2077 {
2078 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2079 test_array [0] = 0
2080
2081 ;
2082 return 0;
2083 }
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086 ac_hi=$ac_mid; break
2087 else
2088 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2089 if test $ac_lo -le $ac_mid; then
2090 ac_lo= ac_hi=
2091 break
2092 fi
2093 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2094 fi
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 done
2097 else
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2100 $4
2101 int
2102 main ()
2103 {
2104 static int test_array [1 - 2 * !(($2) < 0)];
2105 test_array [0] = 0
2106
2107 ;
2108 return 0;
2109 }
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112 ac_hi=-1 ac_mid=-1
2113 while :; do
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2116 $4
2117 int
2118 main ()
2119 {
2120 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2121 test_array [0] = 0
2122
2123 ;
2124 return 0;
2125 }
2126 _ACEOF
2127 if ac_fn_c_try_compile "$LINENO"; then :
2128 ac_lo=$ac_mid; break
2129 else
2130 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2131 if test $ac_mid -le $ac_hi; then
2132 ac_lo= ac_hi=
2133 break
2134 fi
2135 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2136 fi
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 done
2139 else
2140 ac_lo= ac_hi=
2141 fi
2142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143 fi
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 # Binary search between lo and hi bounds.
2146 while test "x$ac_lo" != "x$ac_hi"; do
2147 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2150 $4
2151 int
2152 main ()
2153 {
2154 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2155 test_array [0] = 0
2156
2157 ;
2158 return 0;
2159 }
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162 ac_hi=$ac_mid
2163 else
2164 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2165 fi
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 done
2168 case $ac_lo in #((
2169 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2170 '') ac_retval=1 ;;
2171 esac
2172 else
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2175 $4
2176 static long int longval () { return $2; }
2177 static unsigned long int ulongval () { return $2; }
2178 #include <stdio.h>
2179 #include <stdlib.h>
2180 int
2181 main ()
2182 {
2183
2184 FILE *f = fopen ("conftest.val", "w");
2185 if (! f)
2186 return 1;
2187 if (($2) < 0)
2188 {
2189 long int i = longval ();
2190 if (i != ($2))
2191 return 1;
2192 fprintf (f, "%ld", i);
2193 }
2194 else
2195 {
2196 unsigned long int i = ulongval ();
2197 if (i != ($2))
2198 return 1;
2199 fprintf (f, "%lu", i);
2200 }
2201 /* Do not output a trailing newline, as this causes \r\n confusion
2202 on some platforms. */
2203 return ferror (f) || fclose (f) != 0;
2204
2205 ;
2206 return 0;
2207 }
2208 _ACEOF
2209 if ac_fn_c_try_run "$LINENO"; then :
2210 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2211 else
2212 ac_retval=1
2213 fi
2214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2215 conftest.$ac_objext conftest.beam conftest.$ac_ext
2216 rm -f conftest.val
2217
2218 fi
2219 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2220 return $ac_retval
2221
2222 } # ac_fn_c_compute_int
2223
2224 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2225 # -------------------------------------------
2226 # Tests whether TYPE exists after having included INCLUDES, setting cache
2227 # variable VAR accordingly.
2228 ac_fn_c_check_type ()
2229 {
2230 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2232 $as_echo_n "checking for $2... " >&6; }
2233 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2234 $as_echo_n "(cached) " >&6
2235 else
2236 eval "$3=no"
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2239 $4
2240 int
2241 main ()
2242 {
2243 if (sizeof ($2))
2244 return 0;
2245 ;
2246 return 0;
2247 }
2248 _ACEOF
2249 if ac_fn_c_try_compile "$LINENO"; then :
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2252 $4
2253 int
2254 main ()
2255 {
2256 if (sizeof (($2)))
2257 return 0;
2258 ;
2259 return 0;
2260 }
2261 _ACEOF
2262 if ac_fn_c_try_compile "$LINENO"; then :
2263
2264 else
2265 eval "$3=yes"
2266 fi
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 fi
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 fi
2271 eval ac_res=\$$3
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2275
2276 } # ac_fn_c_check_type
2277
2278 # ac_fn_c_find_intX_t LINENO BITS VAR
2279 # -----------------------------------
2280 # Finds a signed integer type with width BITS, setting cache variable VAR
2281 # accordingly.
2282 ac_fn_c_find_intX_t ()
2283 {
2284 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2286 $as_echo_n "checking for int$2_t... " >&6; }
2287 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2288 $as_echo_n "(cached) " >&6
2289 else
2290 eval "$3=no"
2291 for ac_type in int$2_t 'int' 'long int' \
2292 'long long int' 'short int' 'signed char'; do
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2295 $ac_includes_default
2296 int
2297 main ()
2298 {
2299 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2300 test_array [0] = 0
2301
2302 ;
2303 return 0;
2304 }
2305 _ACEOF
2306 if ac_fn_c_try_compile "$LINENO"; then :
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2309 $ac_includes_default
2310 int
2311 main ()
2312 {
2313 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2314 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2315 test_array [0] = 0
2316
2317 ;
2318 return 0;
2319 }
2320 _ACEOF
2321 if ac_fn_c_try_compile "$LINENO"; then :
2322
2323 else
2324 case $ac_type in #(
2325 int$2_t) :
2326 eval "$3=yes" ;; #(
2327 *) :
2328 eval "$3=\$ac_type" ;;
2329 esac
2330 fi
2331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2332 fi
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 eval as_val=\$$3
2335 if test "x$as_val" = x""no; then :
2336
2337 else
2338 break
2339 fi
2340 done
2341 fi
2342 eval ac_res=\$$3
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2344 $as_echo "$ac_res" >&6; }
2345 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2346
2347 } # ac_fn_c_find_intX_t
2348
2349 # ac_fn_c_try_link LINENO
2350 # -----------------------
2351 # Try to link conftest.$ac_ext, and return whether this succeeded.
2352 ac_fn_c_try_link ()
2353 {
2354 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2355 rm -f conftest.$ac_objext conftest$ac_exeext
2356 if { { ac_try="$ac_link"
2357 case "(($ac_try" in
2358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359 *) ac_try_echo=$ac_try;;
2360 esac
2361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2362 $as_echo "$ac_try_echo"; } >&5
2363 (eval "$ac_link") 2>conftest.err
2364 ac_status=$?
2365 if test -s conftest.err; then
2366 grep -v '^ *+' conftest.err >conftest.er1
2367 cat conftest.er1 >&5
2368 mv -f conftest.er1 conftest.err
2369 fi
2370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2371 test $ac_status = 0; } && {
2372 test -z "$ac_c_werror_flag" ||
2373 test ! -s conftest.err
2374 } && test -s conftest$ac_exeext && {
2375 test "$cross_compiling" = yes ||
2376 $as_test_x conftest$ac_exeext
2377 }; then :
2378 ac_retval=0
2379 else
2380 $as_echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2382
2383 ac_retval=1
2384 fi
2385 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2386 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2387 # interfere with the next link command; also delete a directory that is
2388 # left behind by Apple's compiler. We do this before executing the actions.
2389 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2390 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2391 return $ac_retval
2392
2393 } # ac_fn_c_try_link
2394
2395 # ac_fn_c_find_uintX_t LINENO BITS VAR
2396 # ------------------------------------
2397 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2398 # accordingly.
2399 ac_fn_c_find_uintX_t ()
2400 {
2401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2403 $as_echo_n "checking for uint$2_t... " >&6; }
2404 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2405 $as_echo_n "(cached) " >&6
2406 else
2407 eval "$3=no"
2408 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2409 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h. */
2412 $ac_includes_default
2413 int
2414 main ()
2415 {
2416 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2417 test_array [0] = 0
2418
2419 ;
2420 return 0;
2421 }
2422 _ACEOF
2423 if ac_fn_c_try_compile "$LINENO"; then :
2424 case $ac_type in #(
2425 uint$2_t) :
2426 eval "$3=yes" ;; #(
2427 *) :
2428 eval "$3=\$ac_type" ;;
2429 esac
2430 fi
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432 eval as_val=\$$3
2433 if test "x$as_val" = x""no; then :
2434
2435 else
2436 break
2437 fi
2438 done
2439 fi
2440 eval ac_res=\$$3
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442 $as_echo "$ac_res" >&6; }
2443 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2444
2445 } # ac_fn_c_find_uintX_t
2446
2447 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2448 # ----------------------------------------------
2449 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2450 ac_fn_c_check_header_preproc ()
2451 {
2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2454 $as_echo_n "checking for $2... " >&6; }
2455 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2456 $as_echo_n "(cached) " >&6
2457 else
2458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459 /* end confdefs.h. */
2460 #include <$2>
2461 _ACEOF
2462 if ac_fn_c_try_cpp "$LINENO"; then :
2463 eval "$3=yes"
2464 else
2465 eval "$3=no"
2466 fi
2467 rm -f conftest.err conftest.$ac_ext
2468 fi
2469 eval ac_res=\$$3
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471 $as_echo "$ac_res" >&6; }
2472 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2473
2474 } # ac_fn_c_check_header_preproc
2475
2476 # ac_fn_cxx_try_cpp LINENO
2477 # ------------------------
2478 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2479 ac_fn_cxx_try_cpp ()
2480 {
2481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2482 if { { ac_try="$ac_cpp conftest.$ac_ext"
2483 case "(($ac_try" in
2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485 *) ac_try_echo=$ac_try;;
2486 esac
2487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2488 $as_echo "$ac_try_echo"; } >&5
2489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2490 ac_status=$?
2491 if test -s conftest.err; then
2492 grep -v '^ *+' conftest.err >conftest.er1
2493 cat conftest.er1 >&5
2494 mv -f conftest.er1 conftest.err
2495 fi
2496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2497 test $ac_status = 0; } >/dev/null && {
2498 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2499 test ! -s conftest.err
2500 }; then :
2501 ac_retval=0
2502 else
2503 $as_echo "$as_me: failed program was:" >&5
2504 sed 's/^/| /' conftest.$ac_ext >&5
2505
2506 ac_retval=1
2507 fi
2508 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2509 return $ac_retval
2510
2511 } # ac_fn_cxx_try_cpp
2512
2513 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2514 # ------------------------------------------------
2515 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2516 ac_fn_cxx_check_header_preproc ()
2517 {
2518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2520 $as_echo_n "checking for $2... " >&6; }
2521 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2522 $as_echo_n "(cached) " >&6
2523 else
2524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2525 /* end confdefs.h. */
2526 #include <$2>
2527 _ACEOF
2528 if ac_fn_cxx_try_cpp "$LINENO"; then :
2529 eval "$3=yes"
2530 else
2531 eval "$3=no"
2532 fi
2533 rm -f conftest.err conftest.$ac_ext
2534 fi
2535 eval ac_res=\$$3
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2537 $as_echo "$ac_res" >&6; }
2538 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2539
2540 } # ac_fn_cxx_check_header_preproc
2541
2542 # ac_fn_c_check_func LINENO FUNC VAR
2543 # ----------------------------------
2544 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2545 ac_fn_c_check_func ()
2546 {
2547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2549 $as_echo_n "checking for $2... " >&6; }
2550 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2551 $as_echo_n "(cached) " >&6
2552 else
2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2555 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2557 #define $2 innocuous_$2
2558
2559 /* System header to define __stub macros and hopefully few prototypes,
2560 which can conflict with char $2 (); below.
2561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2562 <limits.h> exists even on freestanding compilers. */
2563
2564 #ifdef __STDC__
2565 # include <limits.h>
2566 #else
2567 # include <assert.h>
2568 #endif
2569
2570 #undef $2
2571
2572 /* Override any GCC internal prototype to avoid an error.
2573 Use char because int might match the return type of a GCC
2574 builtin and then its argument prototype would still apply. */
2575 #ifdef __cplusplus
2576 extern "C"
2577 #endif
2578 char $2 ();
2579 /* The GNU C library defines this for functions which it implements
2580 to always fail with ENOSYS. Some functions are actually named
2581 something starting with __ and the normal name is an alias. */
2582 #if defined __stub_$2 || defined __stub___$2
2583 choke me
2584 #endif
2585
2586 int
2587 main ()
2588 {
2589 return $2 ();
2590 ;
2591 return 0;
2592 }
2593 _ACEOF
2594 if ac_fn_c_try_link "$LINENO"; then :
2595 eval "$3=yes"
2596 else
2597 eval "$3=no"
2598 fi
2599 rm -f core conftest.err conftest.$ac_objext \
2600 conftest$ac_exeext conftest.$ac_ext
2601 fi
2602 eval ac_res=\$$3
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2604 $as_echo "$ac_res" >&6; }
2605 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2606
2607 } # ac_fn_c_check_func
2608
2609 # ac_fn_cxx_try_link LINENO
2610 # -------------------------
2611 # Try to link conftest.$ac_ext, and return whether this succeeded.
2612 ac_fn_cxx_try_link ()
2613 {
2614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2615 rm -f conftest.$ac_objext conftest$ac_exeext
2616 if { { ac_try="$ac_link"
2617 case "(($ac_try" in
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2620 esac
2621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2622 $as_echo "$ac_try_echo"; } >&5
2623 (eval "$ac_link") 2>conftest.err
2624 ac_status=$?
2625 if test -s conftest.err; then
2626 grep -v '^ *+' conftest.err >conftest.er1
2627 cat conftest.er1 >&5
2628 mv -f conftest.er1 conftest.err
2629 fi
2630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2631 test $ac_status = 0; } && {
2632 test -z "$ac_cxx_werror_flag" ||
2633 test ! -s conftest.err
2634 } && test -s conftest$ac_exeext && {
2635 test "$cross_compiling" = yes ||
2636 $as_test_x conftest$ac_exeext
2637 }; then :
2638 ac_retval=0
2639 else
2640 $as_echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2642
2643 ac_retval=1
2644 fi
2645 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2646 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2647 # interfere with the next link command; also delete a directory that is
2648 # left behind by Apple's compiler. We do this before executing the actions.
2649 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2650 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2651 return $ac_retval
2652
2653 } # ac_fn_cxx_try_link
2654 cat >config.log <<_ACEOF
2655 This file contains any messages produced by compilers while
2656 running configure, to aid debugging if configure makes a mistake.
2657
2658 It was created by $as_me, which was
2659 generated by GNU Autoconf 2.64. Invocation command line was
2660
2661 $ $0 $@
2662
2663 _ACEOF
2664 exec 5>>config.log
2665 {
2666 cat <<_ASUNAME
2667 ## --------- ##
2668 ## Platform. ##
2669 ## --------- ##
2670
2671 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2672 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2673 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2674 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2675 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2676
2677 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2678 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2679
2680 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2681 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2682 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2683 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2684 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2685 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2686 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2687
2688 _ASUNAME
2689
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 $as_echo "PATH: $as_dir"
2696 done
2697 IFS=$as_save_IFS
2698
2699 } >&5
2700
2701 cat >&5 <<_ACEOF
2702
2703
2704 ## ----------- ##
2705 ## Core tests. ##
2706 ## ----------- ##
2707
2708 _ACEOF
2709
2710
2711 # Keep a trace of the command line.
2712 # Strip out --no-create and --no-recursion so they do not pile up.
2713 # Strip out --silent because we don't want to record it for future runs.
2714 # Also quote any args containing shell meta-characters.
2715 # Make two passes to allow for proper duplicate-argument suppression.
2716 ac_configure_args=
2717 ac_configure_args0=
2718 ac_configure_args1=
2719 ac_must_keep_next=false
2720 for ac_pass in 1 2
2721 do
2722 for ac_arg
2723 do
2724 case $ac_arg in
2725 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2726 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2727 | -silent | --silent | --silen | --sile | --sil)
2728 continue ;;
2729 *\'*)
2730 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2731 esac
2732 case $ac_pass in
2733 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2734 2)
2735 as_fn_append ac_configure_args1 " '$ac_arg'"
2736 if test $ac_must_keep_next = true; then
2737 ac_must_keep_next=false # Got value, back to normal.
2738 else
2739 case $ac_arg in
2740 *=* | --config-cache | -C | -disable-* | --disable-* \
2741 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2742 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2743 | -with-* | --with-* | -without-* | --without-* | --x)
2744 case "$ac_configure_args0 " in
2745 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2746 esac
2747 ;;
2748 -* ) ac_must_keep_next=true ;;
2749 esac
2750 fi
2751 as_fn_append ac_configure_args " '$ac_arg'"
2752 ;;
2753 esac
2754 done
2755 done
2756 { ac_configure_args0=; unset ac_configure_args0;}
2757 { ac_configure_args1=; unset ac_configure_args1;}
2758
2759 # When interrupted or exit'd, cleanup temporary files, and complete
2760 # config.log. We remove comments because anyway the quotes in there
2761 # would cause problems or look ugly.
2762 # WARNING: Use '\'' to represent an apostrophe within the trap.
2763 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2764 trap 'exit_status=$?
2765 # Save into config.log some information that might help in debugging.
2766 {
2767 echo
2768
2769 cat <<\_ASBOX
2770 ## ---------------- ##
2771 ## Cache variables. ##
2772 ## ---------------- ##
2773 _ASBOX
2774 echo
2775 # The following way of writing the cache mishandles newlines in values,
2776 (
2777 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2778 eval ac_val=\$$ac_var
2779 case $ac_val in #(
2780 *${as_nl}*)
2781 case $ac_var in #(
2782 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2783 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2784 esac
2785 case $ac_var in #(
2786 _ | IFS | as_nl) ;; #(
2787 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2788 *) { eval $ac_var=; unset $ac_var;} ;;
2789 esac ;;
2790 esac
2791 done
2792 (set) 2>&1 |
2793 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2794 *${as_nl}ac_space=\ *)
2795 sed -n \
2796 "s/'\''/'\''\\\\'\'''\''/g;
2797 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2798 ;; #(
2799 *)
2800 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2801 ;;
2802 esac |
2803 sort
2804 )
2805 echo
2806
2807 cat <<\_ASBOX
2808 ## ----------------- ##
2809 ## Output variables. ##
2810 ## ----------------- ##
2811 _ASBOX
2812 echo
2813 for ac_var in $ac_subst_vars
2814 do
2815 eval ac_val=\$$ac_var
2816 case $ac_val in
2817 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2818 esac
2819 $as_echo "$ac_var='\''$ac_val'\''"
2820 done | sort
2821 echo
2822
2823 if test -n "$ac_subst_files"; then
2824 cat <<\_ASBOX
2825 ## ------------------- ##
2826 ## File substitutions. ##
2827 ## ------------------- ##
2828 _ASBOX
2829 echo
2830 for ac_var in $ac_subst_files
2831 do
2832 eval ac_val=\$$ac_var
2833 case $ac_val in
2834 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2835 esac
2836 $as_echo "$ac_var='\''$ac_val'\''"
2837 done | sort
2838 echo
2839 fi
2840
2841 if test -s confdefs.h; then
2842 cat <<\_ASBOX
2843 ## ----------- ##
2844 ## confdefs.h. ##
2845 ## ----------- ##
2846 _ASBOX
2847 echo
2848 cat confdefs.h
2849 echo
2850 fi
2851 test "$ac_signal" != 0 &&
2852 $as_echo "$as_me: caught signal $ac_signal"
2853 $as_echo "$as_me: exit $exit_status"
2854 } >&5
2855 rm -f core *.core core.conftest.* &&
2856 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2857 exit $exit_status
2858 ' 0
2859 for ac_signal in 1 2 13 15; do
2860 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2861 done
2862 ac_signal=0
2863
2864 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2865 rm -f -r conftest* confdefs.h
2866
2867 $as_echo "/* confdefs.h */" > confdefs.h
2868
2869 # Predefined preprocessor variables.
2870
2871 cat >>confdefs.h <<_ACEOF
2872 #define PACKAGE_NAME "$PACKAGE_NAME"
2873 _ACEOF
2874
2875 cat >>confdefs.h <<_ACEOF
2876 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2877 _ACEOF
2878
2879 cat >>confdefs.h <<_ACEOF
2880 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2881 _ACEOF
2882
2883 cat >>confdefs.h <<_ACEOF
2884 #define PACKAGE_STRING "$PACKAGE_STRING"
2885 _ACEOF
2886
2887 cat >>confdefs.h <<_ACEOF
2888 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2889 _ACEOF
2890
2891 cat >>confdefs.h <<_ACEOF
2892 #define PACKAGE_URL "$PACKAGE_URL"
2893 _ACEOF
2894
2895
2896 # Let the site file select an alternate cache file if it wants to.
2897 # Prefer an explicitly selected file to automatically selected ones.
2898 ac_site_file1=NONE
2899 ac_site_file2=NONE
2900 if test -n "$CONFIG_SITE"; then
2901 ac_site_file1=$CONFIG_SITE
2902 elif test "x$prefix" != xNONE; then
2903 ac_site_file1=$prefix/share/config.site
2904 ac_site_file2=$prefix/etc/config.site
2905 else
2906 ac_site_file1=$ac_default_prefix/share/config.site
2907 ac_site_file2=$ac_default_prefix/etc/config.site
2908 fi
2909 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2910 do
2911 test "x$ac_site_file" = xNONE && continue
2912 if test -r "$ac_site_file"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2914 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2915 sed 's/^/| /' "$ac_site_file" >&5
2916 . "$ac_site_file"
2917 fi
2918 done
2919
2920 if test -r "$cache_file"; then
2921 # Some versions of bash will fail to source /dev/null (special
2922 # files actually), so we avoid doing that.
2923 if test -f "$cache_file"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2925 $as_echo "$as_me: loading cache $cache_file" >&6;}
2926 case $cache_file in
2927 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2928 *) . "./$cache_file";;
2929 esac
2930 fi
2931 else
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2933 $as_echo "$as_me: creating cache $cache_file" >&6;}
2934 >$cache_file
2935 fi
2936
2937 # Check that the precious variables saved in the cache have kept the same
2938 # value.
2939 ac_cache_corrupted=false
2940 for ac_var in $ac_precious_vars; do
2941 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2942 eval ac_new_set=\$ac_env_${ac_var}_set
2943 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2944 eval ac_new_val=\$ac_env_${ac_var}_value
2945 case $ac_old_set,$ac_new_set in
2946 set,)
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2948 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2949 ac_cache_corrupted=: ;;
2950 ,set)
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2952 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2953 ac_cache_corrupted=: ;;
2954 ,);;
2955 *)
2956 if test "x$ac_old_val" != "x$ac_new_val"; then
2957 # differences in whitespace do not lead to failure.
2958 ac_old_val_w=`echo x $ac_old_val`
2959 ac_new_val_w=`echo x $ac_new_val`
2960 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2962 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2963 ac_cache_corrupted=:
2964 else
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2966 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2967 eval $ac_var=\$ac_old_val
2968 fi
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2970 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2972 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2973 fi;;
2974 esac
2975 # Pass precious variables to config.status.
2976 if test "$ac_new_set" = set; then
2977 case $ac_new_val in
2978 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2979 *) ac_arg=$ac_var=$ac_new_val ;;
2980 esac
2981 case " $ac_configure_args " in
2982 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2983 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2984 esac
2985 fi
2986 done
2987 if $ac_cache_corrupted; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2991 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2992 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2993 fi
2994 ## -------------------- ##
2995 ## Main body of script. ##
2996 ## -------------------- ##
2997
2998 ac_ext=c
2999 ac_cpp='$CPP $CPPFLAGS'
3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3003
3004
3005
3006
3007
3008
3009 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3010
3011
3012 gcc_version=`cat $srcdir/BASE-VER`
3013
3014 # Determine the host, build, and target systems
3015 ac_aux_dir=
3016 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3017 for ac_t in install-sh install.sh shtool; do
3018 if test -f "$ac_dir/$ac_t"; then
3019 ac_aux_dir=$ac_dir
3020 ac_install_sh="$ac_aux_dir/$ac_t -c"
3021 break 2
3022 fi
3023 done
3024 done
3025 if test -z "$ac_aux_dir"; then
3026 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3027 fi
3028
3029 # These three variables are undocumented and unsupported,
3030 # and are intended to be withdrawn in a future Autoconf release.
3031 # They can cause serious problems if a builder's source tree is in a directory
3032 # whose full name contains unusual characters.
3033 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3034 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3035 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3036
3037
3038 # Make sure we can run config.sub.
3039 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3040 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3041
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3043 $as_echo_n "checking build system type... " >&6; }
3044 if test "${ac_cv_build+set}" = set; then :
3045 $as_echo_n "(cached) " >&6
3046 else
3047 ac_build_alias=$build_alias
3048 test "x$ac_build_alias" = x &&
3049 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3050 test "x$ac_build_alias" = x &&
3051 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3053 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3054
3055 fi
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3057 $as_echo "$ac_cv_build" >&6; }
3058 case $ac_cv_build in
3059 *-*-*) ;;
3060 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3061 esac
3062 build=$ac_cv_build
3063 ac_save_IFS=$IFS; IFS='-'
3064 set x $ac_cv_build
3065 shift
3066 build_cpu=$1
3067 build_vendor=$2
3068 shift; shift
3069 # Remember, the first character of IFS is used to create $*,
3070 # except with old shells:
3071 build_os=$*
3072 IFS=$ac_save_IFS
3073 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3074
3075
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3077 $as_echo_n "checking host system type... " >&6; }
3078 if test "${ac_cv_host+set}" = set; then :
3079 $as_echo_n "(cached) " >&6
3080 else
3081 if test "x$host_alias" = x; then
3082 ac_cv_host=$ac_cv_build
3083 else
3084 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3085 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3086 fi
3087
3088 fi
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3090 $as_echo "$ac_cv_host" >&6; }
3091 case $ac_cv_host in
3092 *-*-*) ;;
3093 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3094 esac
3095 host=$ac_cv_host
3096 ac_save_IFS=$IFS; IFS='-'
3097 set x $ac_cv_host
3098 shift
3099 host_cpu=$1
3100 host_vendor=$2
3101 shift; shift
3102 # Remember, the first character of IFS is used to create $*,
3103 # except with old shells:
3104 host_os=$*
3105 IFS=$ac_save_IFS
3106 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3107
3108
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3110 $as_echo_n "checking target system type... " >&6; }
3111 if test "${ac_cv_target+set}" = set; then :
3112 $as_echo_n "(cached) " >&6
3113 else
3114 if test "x$target_alias" = x; then
3115 ac_cv_target=$ac_cv_host
3116 else
3117 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3118 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3119 fi
3120
3121 fi
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3123 $as_echo "$ac_cv_target" >&6; }
3124 case $ac_cv_target in
3125 *-*-*) ;;
3126 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3127 esac
3128 target=$ac_cv_target
3129 ac_save_IFS=$IFS; IFS='-'
3130 set x $ac_cv_target
3131 shift
3132 target_cpu=$1
3133 target_vendor=$2
3134 shift; shift
3135 # Remember, the first character of IFS is used to create $*,
3136 # except with old shells:
3137 target_os=$*
3138 IFS=$ac_save_IFS
3139 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3140
3141
3142 # The aliases save the names the user supplied, while $host etc.
3143 # will get canonicalized.
3144 test -n "$target_alias" &&
3145 test "$program_prefix$program_suffix$program_transform_name" = \
3146 NONENONEs,x,x, &&
3147 program_prefix=${target_alias}-
3148
3149 # Determine the noncanonical target name, for directory use.
3150 case ${build_alias} in
3151 "") build_noncanonical=${build} ;;
3152 *) build_noncanonical=${build_alias} ;;
3153 esac
3154
3155 case ${host_alias} in
3156 "") host_noncanonical=${build_noncanonical} ;;
3157 *) host_noncanonical=${host_alias} ;;
3158 esac
3159
3160 case ${target_alias} in
3161 "") target_noncanonical=${host_noncanonical} ;;
3162 *) target_noncanonical=${target_alias} ;;
3163 esac
3164
3165
3166
3167
3168 # Determine the target- and build-specific subdirectories
3169
3170 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3171 # have matching libraries, they should use host libraries: Makefile.tpl
3172 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3173 # However, they still use the build modules, because the corresponding
3174 # host modules (e.g. bison) are only built for the host when bootstrap
3175 # finishes. So:
3176 # - build_subdir is where we find build modules, and never changes.
3177 # - build_libsubdir is where we find build libraries, and can be overridden.
3178
3179 # Prefix 'build-' so this never conflicts with target_subdir.
3180 build_subdir="build-${build_noncanonical}"
3181
3182 # Check whether --with-build-libsubdir was given.
3183 if test "${with_build_libsubdir+set}" = set; then :
3184 withval=$with_build_libsubdir; build_libsubdir="$withval"
3185 else
3186 build_libsubdir="$build_subdir"
3187 fi
3188
3189 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3190 if ( test $srcdir = . && test -d gcc ) \
3191 || test -d $srcdir/../host-${host_noncanonical}; then
3192 host_subdir="host-${host_noncanonical}"
3193 else
3194 host_subdir=.
3195 fi
3196 # No prefix.
3197 target_subdir=${target_noncanonical}
3198
3199
3200 # Set program_transform_name
3201 test "$program_prefix" != NONE &&
3202 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3203 # Use a double $ so make ignores it.
3204 test "$program_suffix" != NONE &&
3205 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3206 # Double any \ or $.
3207 # By default was `s,x,x', remove it if useless.
3208 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3209 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3210
3211
3212 # Check for bogus environment variables.
3213 # Test if LIBRARY_PATH contains the notation for the current directory
3214 # since this would lead to problems installing/building glibc.
3215 # LIBRARY_PATH contains the current directory if one of the following
3216 # is true:
3217 # - one of the terminals (":" and ";") is the first or last sign
3218 # - two terminals occur directly after each other
3219 # - the path contains an element with a dot in it
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3221 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3222 case ${LIBRARY_PATH} in
3223 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3224 library_path_setting="contains current directory"
3225 ;;
3226 *)
3227 library_path_setting="ok"
3228 ;;
3229 esac
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3231 $as_echo "$library_path_setting" >&6; }
3232 if test "$library_path_setting" != "ok"; then
3233 as_fn_error "
3234 *** LIBRARY_PATH shouldn't contain the current directory when
3235 *** building gcc. Please change the environment variable
3236 *** and run configure again." "$LINENO" 5
3237 fi
3238
3239 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3240 # since this would lead to problems installing/building glibc.
3241 # GCC_EXEC_PREFIX contains the current directory if one of the following
3242 # is true:
3243 # - one of the terminals (":" and ";") is the first or last sign
3244 # - two terminals occur directly after each other
3245 # - the path contains an element with a dot in it
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3247 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3248 case ${GCC_EXEC_PREFIX} in
3249 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3250 gcc_exec_prefix_setting="contains current directory"
3251 ;;
3252 *)
3253 gcc_exec_prefix_setting="ok"
3254 ;;
3255 esac
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3257 $as_echo "$gcc_exec_prefix_setting" >&6; }
3258 if test "$gcc_exec_prefix_setting" != "ok"; then
3259 as_fn_error "
3260 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3261 *** building gcc. Please change the environment variable
3262 *** and run configure again." "$LINENO" 5
3263 fi
3264
3265 # -----------
3266 # Directories
3267 # -----------
3268
3269 # Specify the local prefix
3270 local_prefix=
3271
3272 # Check whether --with-local-prefix was given.
3273 if test "${with_local_prefix+set}" = set; then :
3274 withval=$with_local_prefix; case "${withval}" in
3275 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3276 no) ;;
3277 *) local_prefix=$with_local_prefix ;;
3278 esac
3279 fi
3280
3281
3282 # Default local prefix if it is empty
3283 if test x$local_prefix = x; then
3284 local_prefix=/usr/local
3285 fi
3286
3287 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3288 # passed in by the toplevel make and thus we'd get different behavior
3289 # depending on where we built the sources.
3290 gcc_gxx_include_dir=
3291 # Specify the g++ header file directory
3292
3293 # Check whether --with-gxx-include-dir was given.
3294 if test "${with_gxx_include_dir+set}" = set; then :
3295 withval=$with_gxx_include_dir; case "${withval}" in
3296 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3297 no) ;;
3298 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3299 esac
3300 fi
3301
3302
3303 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3304 if test x${gcc_gxx_include_dir} = x; then
3305 if test x${enable_version_specific_runtime_libs} = xyes; then
3306 gcc_gxx_include_dir='${libsubdir}/include/c++'
3307 else
3308 libstdcxx_incdir='include/c++/$(version)'
3309 if test x$host != x$target; then
3310 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3311 fi
3312 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3313 fi
3314 fi
3315
3316 gcc_gxx_include_dir_add_sysroot=0
3317 if test "${with_sysroot+set}" = set; then
3318 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3319 if test "${gcc_gxx_without_sysroot}"; then
3320 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3321 gcc_gxx_include_dir_add_sysroot=1
3322 fi
3323 fi
3324
3325
3326 # Check whether --with-cpp_install_dir was given.
3327 if test "${with_cpp_install_dir+set}" = set; then :
3328 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3329 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3330 elif test x$withval != xno; then
3331 cpp_install_dir=$withval
3332 fi
3333 fi
3334
3335
3336 # We would like to our source tree to be readonly. However when releases or
3337 # pre-releases are generated, the flex/bison generated files as well as the
3338 # various formats of manuals need to be included along with the rest of the
3339 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3340 # just that.
3341
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3343 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3344 # Check whether --enable-generated-files-in-srcdir was given.
3345 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3346 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3347 else
3348 generated_files_in_srcdir=no
3349 fi
3350
3351
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3353 $as_echo "$generated_files_in_srcdir" >&6; }
3354
3355 if test "$generated_files_in_srcdir" = "yes"; then
3356 GENINSRC=''
3357 else
3358 GENINSRC='#'
3359 fi
3360
3361
3362 # -------------------
3363 # Find default linker
3364 # -------------------
3365
3366 # With GNU ld
3367
3368 # Check whether --with-gnu-ld was given.
3369 if test "${with_gnu_ld+set}" = set; then :
3370 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3371 else
3372 gnu_ld_flag=no
3373 fi
3374
3375
3376 # With pre-defined ld
3377
3378 # Check whether --with-ld was given.
3379 if test "${with_ld+set}" = set; then :
3380 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3381 fi
3382
3383 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3384 if test ! -x "$DEFAULT_LINKER"; then
3385 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3386 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3387 gnu_ld_flag=yes
3388 fi
3389
3390 cat >>confdefs.h <<_ACEOF
3391 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3392 _ACEOF
3393
3394 fi
3395
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3397 $as_echo_n "checking whether a default linker was specified... " >&6; }
3398 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3399 if test x"$gnu_ld_flag" = x"no"; then
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3401 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3402 else
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3404 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3405 fi
3406 else
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3409 fi
3410
3411 # With demangler in GNU ld
3412
3413 # Check whether --with-demangler-in-ld was given.
3414 if test "${with_demangler_in_ld+set}" = set; then :
3415 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3416 else
3417 demangler_in_ld=yes
3418 fi
3419
3420
3421 # ----------------------
3422 # Find default assembler
3423 # ----------------------
3424
3425 # With GNU as
3426
3427 # Check whether --with-gnu-as was given.
3428 if test "${with_gnu_as+set}" = set; then :
3429 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3430 else
3431 gas_flag=no
3432 fi
3433
3434
3435
3436 # Check whether --with-as was given.
3437 if test "${with_as+set}" = set; then :
3438 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3439 fi
3440
3441 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3442 if test ! -x "$DEFAULT_ASSEMBLER"; then
3443 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3444 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3445 gas_flag=yes
3446 fi
3447
3448 cat >>confdefs.h <<_ACEOF
3449 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3450 _ACEOF
3451
3452 fi
3453
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3455 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3456 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3457 if test x"$gas_flag" = x"no"; then
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3459 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3460 else
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3462 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3463 fi
3464 else
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 $as_echo "no" >&6; }
3467 fi
3468
3469 # ---------------
3470 # Find C compiler
3471 # ---------------
3472
3473 # If a non-executable a.out is present (e.g. created by GNU as above even if
3474 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3475 # file, even when creating an executable, so an execution test fails.
3476 # Remove possible default executable files to avoid this.
3477 #
3478 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3479 # Autoconf includes it.
3480 rm -f a.out a.exe b.out
3481
3482 # Find the native compiler
3483 ac_ext=c
3484 ac_cpp='$CPP $CPPFLAGS'
3485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488 if test -n "$ac_tool_prefix"; then
3489 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3490 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3492 $as_echo_n "checking for $ac_word... " >&6; }
3493 if test "${ac_cv_prog_CC+set}" = set; then :
3494 $as_echo_n "(cached) " >&6
3495 else
3496 if test -n "$CC"; then
3497 ac_cv_prog_CC="$CC" # Let the user override the test.
3498 else
3499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500 for as_dir in $PATH
3501 do
3502 IFS=$as_save_IFS
3503 test -z "$as_dir" && as_dir=.
3504 for ac_exec_ext in '' $ac_executable_extensions; do
3505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3506 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3508 break 2
3509 fi
3510 done
3511 done
3512 IFS=$as_save_IFS
3513
3514 fi
3515 fi
3516 CC=$ac_cv_prog_CC
3517 if test -n "$CC"; then
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3519 $as_echo "$CC" >&6; }
3520 else
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522 $as_echo "no" >&6; }
3523 fi
3524
3525
3526 fi
3527 if test -z "$ac_cv_prog_CC"; then
3528 ac_ct_CC=$CC
3529 # Extract the first word of "gcc", so it can be a program name with args.
3530 set dummy gcc; ac_word=$2
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3532 $as_echo_n "checking for $ac_word... " >&6; }
3533 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3534 $as_echo_n "(cached) " >&6
3535 else
3536 if test -n "$ac_ct_CC"; then
3537 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3538 else
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 for as_dir in $PATH
3541 do
3542 IFS=$as_save_IFS
3543 test -z "$as_dir" && as_dir=.
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3546 ac_cv_prog_ac_ct_CC="gcc"
3547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3548 break 2
3549 fi
3550 done
3551 done
3552 IFS=$as_save_IFS
3553
3554 fi
3555 fi
3556 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3557 if test -n "$ac_ct_CC"; then
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3559 $as_echo "$ac_ct_CC" >&6; }
3560 else
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 $as_echo "no" >&6; }
3563 fi
3564
3565 if test "x$ac_ct_CC" = x; then
3566 CC=""
3567 else
3568 case $cross_compiling:$ac_tool_warned in
3569 yes:)
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3572 ac_tool_warned=yes ;;
3573 esac
3574 CC=$ac_ct_CC
3575 fi
3576 else
3577 CC="$ac_cv_prog_CC"
3578 fi
3579
3580 if test -z "$CC"; then
3581 if test -n "$ac_tool_prefix"; then
3582 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3583 set dummy ${ac_tool_prefix}cc; ac_word=$2
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 $as_echo_n "checking for $ac_word... " >&6; }
3586 if test "${ac_cv_prog_CC+set}" = set; then :
3587 $as_echo_n "(cached) " >&6
3588 else
3589 if test -n "$CC"; then
3590 ac_cv_prog_CC="$CC" # Let the user override the test.
3591 else
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 for as_dir in $PATH
3594 do
3595 IFS=$as_save_IFS
3596 test -z "$as_dir" && as_dir=.
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3599 ac_cv_prog_CC="${ac_tool_prefix}cc"
3600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3601 break 2
3602 fi
3603 done
3604 done
3605 IFS=$as_save_IFS
3606
3607 fi
3608 fi
3609 CC=$ac_cv_prog_CC
3610 if test -n "$CC"; then
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3612 $as_echo "$CC" >&6; }
3613 else
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615 $as_echo "no" >&6; }
3616 fi
3617
3618
3619 fi
3620 fi
3621 if test -z "$CC"; then
3622 # Extract the first word of "cc", so it can be a program name with args.
3623 set dummy cc; ac_word=$2
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3625 $as_echo_n "checking for $ac_word... " >&6; }
3626 if test "${ac_cv_prog_CC+set}" = set; then :
3627 $as_echo_n "(cached) " >&6
3628 else
3629 if test -n "$CC"; then
3630 ac_cv_prog_CC="$CC" # Let the user override the test.
3631 else
3632 ac_prog_rejected=no
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH
3635 do
3636 IFS=$as_save_IFS
3637 test -z "$as_dir" && as_dir=.
3638 for ac_exec_ext in '' $ac_executable_extensions; do
3639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3640 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3641 ac_prog_rejected=yes
3642 continue
3643 fi
3644 ac_cv_prog_CC="cc"
3645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 break 2
3647 fi
3648 done
3649 done
3650 IFS=$as_save_IFS
3651
3652 if test $ac_prog_rejected = yes; then
3653 # We found a bogon in the path, so make sure we never use it.
3654 set dummy $ac_cv_prog_CC
3655 shift
3656 if test $# != 0; then
3657 # We chose a different compiler from the bogus one.
3658 # However, it has the same basename, so the bogon will be chosen
3659 # first if we set CC to just the basename; use the full file name.
3660 shift
3661 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3662 fi
3663 fi
3664 fi
3665 fi
3666 CC=$ac_cv_prog_CC
3667 if test -n "$CC"; then
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3669 $as_echo "$CC" >&6; }
3670 else
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672 $as_echo "no" >&6; }
3673 fi
3674
3675
3676 fi
3677 if test -z "$CC"; then
3678 if test -n "$ac_tool_prefix"; then
3679 for ac_prog in cl.exe
3680 do
3681 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3682 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3684 $as_echo_n "checking for $ac_word... " >&6; }
3685 if test "${ac_cv_prog_CC+set}" = set; then :
3686 $as_echo_n "(cached) " >&6
3687 else
3688 if test -n "$CC"; then
3689 ac_cv_prog_CC="$CC" # Let the user override the test.
3690 else
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 for as_dir in $PATH
3693 do
3694 IFS=$as_save_IFS
3695 test -z "$as_dir" && as_dir=.
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3698 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3700 break 2
3701 fi
3702 done
3703 done
3704 IFS=$as_save_IFS
3705
3706 fi
3707 fi
3708 CC=$ac_cv_prog_CC
3709 if test -n "$CC"; then
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3711 $as_echo "$CC" >&6; }
3712 else
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3714 $as_echo "no" >&6; }
3715 fi
3716
3717
3718 test -n "$CC" && break
3719 done
3720 fi
3721 if test -z "$CC"; then
3722 ac_ct_CC=$CC
3723 for ac_prog in cl.exe
3724 do
3725 # Extract the first word of "$ac_prog", so it can be a program name with args.
3726 set dummy $ac_prog; ac_word=$2
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3728 $as_echo_n "checking for $ac_word... " >&6; }
3729 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3730 $as_echo_n "(cached) " >&6
3731 else
3732 if test -n "$ac_ct_CC"; then
3733 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3734 else
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 for as_dir in $PATH
3737 do
3738 IFS=$as_save_IFS
3739 test -z "$as_dir" && as_dir=.
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3742 ac_cv_prog_ac_ct_CC="$ac_prog"
3743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 break 2
3745 fi
3746 done
3747 done
3748 IFS=$as_save_IFS
3749
3750 fi
3751 fi
3752 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3753 if test -n "$ac_ct_CC"; then
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3755 $as_echo "$ac_ct_CC" >&6; }
3756 else
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758 $as_echo "no" >&6; }
3759 fi
3760
3761
3762 test -n "$ac_ct_CC" && break
3763 done
3764
3765 if test "x$ac_ct_CC" = x; then
3766 CC=""
3767 else
3768 case $cross_compiling:$ac_tool_warned in
3769 yes:)
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3772 ac_tool_warned=yes ;;
3773 esac
3774 CC=$ac_ct_CC
3775 fi
3776 fi
3777
3778 fi
3779
3780
3781 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3783 as_fn_error "no acceptable C compiler found in \$PATH
3784 See \`config.log' for more details." "$LINENO" 5; }
3785
3786 # Provide some information about the compiler.
3787 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3788 set X $ac_compile
3789 ac_compiler=$2
3790 for ac_option in --version -v -V -qversion; do
3791 { { ac_try="$ac_compiler $ac_option >&5"
3792 case "(($ac_try" in
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3795 esac
3796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3797 $as_echo "$ac_try_echo"; } >&5
3798 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3799 ac_status=$?
3800 if test -s conftest.err; then
3801 sed '10a\
3802 ... rest of stderr output deleted ...
3803 10q' conftest.err >conftest.er1
3804 cat conftest.er1 >&5
3805 rm -f conftest.er1 conftest.err
3806 fi
3807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3808 test $ac_status = 0; }
3809 done
3810
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h. */
3813
3814 int
3815 main ()
3816 {
3817
3818 ;
3819 return 0;
3820 }
3821 _ACEOF
3822 ac_clean_files_save=$ac_clean_files
3823 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3824 # Try to create an executable without -o first, disregard a.out.
3825 # It will help us diagnose broken compilers, and finding out an intuition
3826 # of exeext.
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3828 $as_echo_n "checking for C compiler default output file name... " >&6; }
3829 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3830
3831 # The possible output files:
3832 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3833
3834 ac_rmfiles=
3835 for ac_file in $ac_files
3836 do
3837 case $ac_file in
3838 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3839 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3840 esac
3841 done
3842 rm -f $ac_rmfiles
3843
3844 if { { ac_try="$ac_link_default"
3845 case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848 esac
3849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850 $as_echo "$ac_try_echo"; } >&5
3851 (eval "$ac_link_default") 2>&5
3852 ac_status=$?
3853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854 test $ac_status = 0; }; then :
3855 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3856 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3857 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3858 # so that the user can short-circuit this test for compilers unknown to
3859 # Autoconf.
3860 for ac_file in $ac_files ''
3861 do
3862 test -f "$ac_file" || continue
3863 case $ac_file in
3864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3865 ;;
3866 [ab].out )
3867 # We found the default executable, but exeext='' is most
3868 # certainly right.
3869 break;;
3870 *.* )
3871 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3872 then :; else
3873 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3874 fi
3875 # We set ac_cv_exeext here because the later test for it is not
3876 # safe: cross compilers may not add the suffix if given an `-o'
3877 # argument, so we may need to know it at that point already.
3878 # Even if this section looks crufty: it has the advantage of
3879 # actually working.
3880 break;;
3881 * )
3882 break;;
3883 esac
3884 done
3885 test "$ac_cv_exeext" = no && ac_cv_exeext=
3886
3887 else
3888 ac_file=''
3889 fi
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3891 $as_echo "$ac_file" >&6; }
3892 if test -z "$ac_file"; then :
3893 $as_echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3895
3896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3898 { as_fn_set_status 77
3899 as_fn_error "C compiler cannot create executables
3900 See \`config.log' for more details." "$LINENO" 5; }; }
3901 fi
3902 ac_exeext=$ac_cv_exeext
3903
3904 # Check that the compiler produces executables we can run. If not, either
3905 # the compiler is broken, or we cross compile.
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3907 $as_echo_n "checking whether the C compiler works... " >&6; }
3908 # If not cross compiling, check that we can run a simple program.
3909 if test "$cross_compiling" != yes; then
3910 if { ac_try='./$ac_file'
3911 { { case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3914 esac
3915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3916 $as_echo "$ac_try_echo"; } >&5
3917 (eval "$ac_try") 2>&5
3918 ac_status=$?
3919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3920 test $ac_status = 0; }; }; then
3921 cross_compiling=no
3922 else
3923 if test "$cross_compiling" = maybe; then
3924 cross_compiling=yes
3925 else
3926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3928 as_fn_error "cannot run C compiled programs.
3929 If you meant to cross compile, use \`--host'.
3930 See \`config.log' for more details." "$LINENO" 5; }
3931 fi
3932 fi
3933 fi
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3935 $as_echo "yes" >&6; }
3936
3937 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3938 ac_clean_files=$ac_clean_files_save
3939 # Check that the compiler produces executables we can run. If not, either
3940 # the compiler is broken, or we cross compile.
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3942 $as_echo_n "checking whether we are cross compiling... " >&6; }
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3944 $as_echo "$cross_compiling" >&6; }
3945
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3947 $as_echo_n "checking for suffix of executables... " >&6; }
3948 if { { ac_try="$ac_link"
3949 case "(($ac_try" in
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3952 esac
3953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3954 $as_echo "$ac_try_echo"; } >&5
3955 (eval "$ac_link") 2>&5
3956 ac_status=$?
3957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3958 test $ac_status = 0; }; then :
3959 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3960 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3961 # work properly (i.e., refer to `conftest.exe'), while it won't with
3962 # `rm'.
3963 for ac_file in conftest.exe conftest conftest.*; do
3964 test -f "$ac_file" || continue
3965 case $ac_file in
3966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3967 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3968 break;;
3969 * ) break;;
3970 esac
3971 done
3972 else
3973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3975 as_fn_error "cannot compute suffix of executables: cannot compile and link
3976 See \`config.log' for more details." "$LINENO" 5; }
3977 fi
3978 rm -f conftest$ac_cv_exeext
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3980 $as_echo "$ac_cv_exeext" >&6; }
3981
3982 rm -f conftest.$ac_ext
3983 EXEEXT=$ac_cv_exeext
3984 ac_exeext=$EXEEXT
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3986 $as_echo_n "checking for suffix of object files... " >&6; }
3987 if test "${ac_cv_objext+set}" = set; then :
3988 $as_echo_n "(cached) " >&6
3989 else
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
3992
3993 int
3994 main ()
3995 {
3996
3997 ;
3998 return 0;
3999 }
4000 _ACEOF
4001 rm -f conftest.o conftest.obj
4002 if { { ac_try="$ac_compile"
4003 case "(($ac_try" in
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4006 esac
4007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4008 $as_echo "$ac_try_echo"; } >&5
4009 (eval "$ac_compile") 2>&5
4010 ac_status=$?
4011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4012 test $ac_status = 0; }; then :
4013 for ac_file in conftest.o conftest.obj conftest.*; do
4014 test -f "$ac_file" || continue;
4015 case $ac_file in
4016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4017 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4018 break;;
4019 esac
4020 done
4021 else
4022 $as_echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4024
4025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4027 as_fn_error "cannot compute suffix of object files: cannot compile
4028 See \`config.log' for more details." "$LINENO" 5; }
4029 fi
4030 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4031 fi
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4033 $as_echo "$ac_cv_objext" >&6; }
4034 OBJEXT=$ac_cv_objext
4035 ac_objext=$OBJEXT
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4037 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4038 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4043
4044 int
4045 main ()
4046 {
4047 #ifndef __GNUC__
4048 choke me
4049 #endif
4050
4051 ;
4052 return 0;
4053 }
4054 _ACEOF
4055 if ac_fn_c_try_compile "$LINENO"; then :
4056 ac_compiler_gnu=yes
4057 else
4058 ac_compiler_gnu=no
4059 fi
4060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4062
4063 fi
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4065 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4066 if test $ac_compiler_gnu = yes; then
4067 GCC=yes
4068 else
4069 GCC=
4070 fi
4071 ac_test_CFLAGS=${CFLAGS+set}
4072 ac_save_CFLAGS=$CFLAGS
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4074 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4075 if test "${ac_cv_prog_cc_g+set}" = set; then :
4076 $as_echo_n "(cached) " >&6
4077 else
4078 ac_save_c_werror_flag=$ac_c_werror_flag
4079 ac_c_werror_flag=yes
4080 ac_cv_prog_cc_g=no
4081 CFLAGS="-g"
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4084
4085 int
4086 main ()
4087 {
4088
4089 ;
4090 return 0;
4091 }
4092 _ACEOF
4093 if ac_fn_c_try_compile "$LINENO"; then :
4094 ac_cv_prog_cc_g=yes
4095 else
4096 CFLAGS=""
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4099
4100 int
4101 main ()
4102 {
4103
4104 ;
4105 return 0;
4106 }
4107 _ACEOF
4108 if ac_fn_c_try_compile "$LINENO"; then :
4109
4110 else
4111 ac_c_werror_flag=$ac_save_c_werror_flag
4112 CFLAGS="-g"
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4115
4116 int
4117 main ()
4118 {
4119
4120 ;
4121 return 0;
4122 }
4123 _ACEOF
4124 if ac_fn_c_try_compile "$LINENO"; then :
4125 ac_cv_prog_cc_g=yes
4126 fi
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128 fi
4129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4130 fi
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 ac_c_werror_flag=$ac_save_c_werror_flag
4133 fi
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4135 $as_echo "$ac_cv_prog_cc_g" >&6; }
4136 if test "$ac_test_CFLAGS" = set; then
4137 CFLAGS=$ac_save_CFLAGS
4138 elif test $ac_cv_prog_cc_g = yes; then
4139 if test "$GCC" = yes; then
4140 CFLAGS="-g -O2"
4141 else
4142 CFLAGS="-g"
4143 fi
4144 else
4145 if test "$GCC" = yes; then
4146 CFLAGS="-O2"
4147 else
4148 CFLAGS=
4149 fi
4150 fi
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4152 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4153 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4154 $as_echo_n "(cached) " >&6
4155 else
4156 ac_cv_prog_cc_c89=no
4157 ac_save_CC=$CC
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4160 #include <stdarg.h>
4161 #include <stdio.h>
4162 #include <sys/types.h>
4163 #include <sys/stat.h>
4164 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4165 struct buf { int x; };
4166 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4167 static char *e (p, i)
4168 char **p;
4169 int i;
4170 {
4171 return p[i];
4172 }
4173 static char *f (char * (*g) (char **, int), char **p, ...)
4174 {
4175 char *s;
4176 va_list v;
4177 va_start (v,p);
4178 s = g (p, va_arg (v,int));
4179 va_end (v);
4180 return s;
4181 }
4182
4183 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4184 function prototypes and stuff, but not '\xHH' hex character constants.
4185 These don't provoke an error unfortunately, instead are silently treated
4186 as 'x'. The following induces an error, until -std is added to get
4187 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4188 array size at least. It's necessary to write '\x00'==0 to get something
4189 that's true only with -std. */
4190 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4191
4192 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4193 inside strings and character constants. */
4194 #define FOO(x) 'x'
4195 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4196
4197 int test (int i, double x);
4198 struct s1 {int (*f) (int a);};
4199 struct s2 {int (*f) (double a);};
4200 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4201 int argc;
4202 char **argv;
4203 int
4204 main ()
4205 {
4206 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4207 ;
4208 return 0;
4209 }
4210 _ACEOF
4211 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4212 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4213 do
4214 CC="$ac_save_CC $ac_arg"
4215 if ac_fn_c_try_compile "$LINENO"; then :
4216 ac_cv_prog_cc_c89=$ac_arg
4217 fi
4218 rm -f core conftest.err conftest.$ac_objext
4219 test "x$ac_cv_prog_cc_c89" != "xno" && break
4220 done
4221 rm -f conftest.$ac_ext
4222 CC=$ac_save_CC
4223
4224 fi
4225 # AC_CACHE_VAL
4226 case "x$ac_cv_prog_cc_c89" in
4227 x)
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4229 $as_echo "none needed" >&6; } ;;
4230 xno)
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4232 $as_echo "unsupported" >&6; } ;;
4233 *)
4234 CC="$CC $ac_cv_prog_cc_c89"
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4236 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4237 esac
4238 if test "x$ac_cv_prog_cc_c89" != xno; then :
4239
4240 fi
4241
4242 ac_ext=c
4243 ac_cpp='$CPP $CPPFLAGS'
4244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4247
4248 if test "x$CC" != xcc; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4250 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4251 else
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4253 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4254 fi
4255 set dummy $CC; ac_cc=`$as_echo "$2" |
4256 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4257 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4258 $as_echo_n "(cached) " >&6
4259 else
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4262
4263 int
4264 main ()
4265 {
4266
4267 ;
4268 return 0;
4269 }
4270 _ACEOF
4271 # Make sure it works both with $CC and with simple cc.
4272 # We do the test twice because some compilers refuse to overwrite an
4273 # existing .o file with -o, though they will create one.
4274 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4275 rm -f conftest2.*
4276 if { { case "(($ac_try" in
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4279 esac
4280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4281 $as_echo "$ac_try_echo"; } >&5
4282 (eval "$ac_try") 2>&5
4283 ac_status=$?
4284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4285 test $ac_status = 0; } &&
4286 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4289 esac
4290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4291 $as_echo "$ac_try_echo"; } >&5
4292 (eval "$ac_try") 2>&5
4293 ac_status=$?
4294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4295 test $ac_status = 0; };
4296 then
4297 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4298 if test "x$CC" != xcc; then
4299 # Test first that cc exists at all.
4300 if { ac_try='cc -c conftest.$ac_ext >&5'
4301 { { case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304 esac
4305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306 $as_echo "$ac_try_echo"; } >&5
4307 (eval "$ac_try") 2>&5
4308 ac_status=$?
4309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4310 test $ac_status = 0; }; }; then
4311 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4312 rm -f conftest2.*
4313 if { { case "(($ac_try" in
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4316 esac
4317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4318 $as_echo "$ac_try_echo"; } >&5
4319 (eval "$ac_try") 2>&5
4320 ac_status=$?
4321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4322 test $ac_status = 0; } &&
4323 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4326 esac
4327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4328 $as_echo "$ac_try_echo"; } >&5
4329 (eval "$ac_try") 2>&5
4330 ac_status=$?
4331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4332 test $ac_status = 0; };
4333 then
4334 # cc works too.
4335 :
4336 else
4337 # cc exists but doesn't like -o.
4338 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4339 fi
4340 fi
4341 fi
4342 else
4343 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4344 fi
4345 rm -f core conftest*
4346
4347 fi
4348 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4350 $as_echo "yes" >&6; }
4351 else
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353 $as_echo "no" >&6; }
4354
4355 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4356
4357 fi
4358
4359 # expand $ac_aux_dir to an absolute path
4360 am_aux_dir=`cd $ac_aux_dir && pwd`
4361
4362 # FIXME: we rely on the cache variable name because
4363 # there is no other way.
4364 set dummy $CC
4365 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4366 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4367 if test "$am_t" != yes; then
4368 # Losing compiler, so override with the script.
4369 # FIXME: It is wrong to rewrite CC.
4370 # But if we don't then we get into trouble of one sort or another.
4371 # A longer-term fix would be to have automake use am__CC in this case,
4372 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4373 CC="$am_aux_dir/compile $CC"
4374 fi
4375
4376
4377 ac_ext=cpp
4378 ac_cpp='$CXXCPP $CPPFLAGS'
4379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4382 if test -z "$CXX"; then
4383 if test -n "$CCC"; then
4384 CXX=$CCC
4385 else
4386 if test -n "$ac_tool_prefix"; then
4387 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4388 do
4389 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4390 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4392 $as_echo_n "checking for $ac_word... " >&6; }
4393 if test "${ac_cv_prog_CXX+set}" = set; then :
4394 $as_echo_n "(cached) " >&6
4395 else
4396 if test -n "$CXX"; then
4397 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4398 else
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH
4401 do
4402 IFS=$as_save_IFS
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4406 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4408 break 2
4409 fi
4410 done
4411 done
4412 IFS=$as_save_IFS
4413
4414 fi
4415 fi
4416 CXX=$ac_cv_prog_CXX
4417 if test -n "$CXX"; then
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4419 $as_echo "$CXX" >&6; }
4420 else
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422 $as_echo "no" >&6; }
4423 fi
4424
4425
4426 test -n "$CXX" && break
4427 done
4428 fi
4429 if test -z "$CXX"; then
4430 ac_ct_CXX=$CXX
4431 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4432 do
4433 # Extract the first word of "$ac_prog", so it can be a program name with args.
4434 set dummy $ac_prog; ac_word=$2
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4436 $as_echo_n "checking for $ac_word... " >&6; }
4437 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 if test -n "$ac_ct_CXX"; then
4441 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4442 else
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH
4445 do
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4450 ac_cv_prog_ac_ct_CXX="$ac_prog"
4451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 break 2
4453 fi
4454 done
4455 done
4456 IFS=$as_save_IFS
4457
4458 fi
4459 fi
4460 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4461 if test -n "$ac_ct_CXX"; then
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4463 $as_echo "$ac_ct_CXX" >&6; }
4464 else
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4466 $as_echo "no" >&6; }
4467 fi
4468
4469
4470 test -n "$ac_ct_CXX" && break
4471 done
4472
4473 if test "x$ac_ct_CXX" = x; then
4474 CXX="g++"
4475 else
4476 case $cross_compiling:$ac_tool_warned in
4477 yes:)
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4480 ac_tool_warned=yes ;;
4481 esac
4482 CXX=$ac_ct_CXX
4483 fi
4484 fi
4485
4486 fi
4487 fi
4488 # Provide some information about the compiler.
4489 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4490 set X $ac_compile
4491 ac_compiler=$2
4492 for ac_option in --version -v -V -qversion; do
4493 { { ac_try="$ac_compiler $ac_option >&5"
4494 case "(($ac_try" in
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4497 esac
4498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4499 $as_echo "$ac_try_echo"; } >&5
4500 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4501 ac_status=$?
4502 if test -s conftest.err; then
4503 sed '10a\
4504 ... rest of stderr output deleted ...
4505 10q' conftest.err >conftest.er1
4506 cat conftest.er1 >&5
4507 rm -f conftest.er1 conftest.err
4508 fi
4509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4510 test $ac_status = 0; }
4511 done
4512
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4514 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4515 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4520
4521 int
4522 main ()
4523 {
4524 #ifndef __GNUC__
4525 choke me
4526 #endif
4527
4528 ;
4529 return 0;
4530 }
4531 _ACEOF
4532 if ac_fn_cxx_try_compile "$LINENO"; then :
4533 ac_compiler_gnu=yes
4534 else
4535 ac_compiler_gnu=no
4536 fi
4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4539
4540 fi
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4542 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4543 if test $ac_compiler_gnu = yes; then
4544 GXX=yes
4545 else
4546 GXX=
4547 fi
4548 ac_test_CXXFLAGS=${CXXFLAGS+set}
4549 ac_save_CXXFLAGS=$CXXFLAGS
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4551 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4552 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4553 $as_echo_n "(cached) " >&6
4554 else
4555 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4556 ac_cxx_werror_flag=yes
4557 ac_cv_prog_cxx_g=no
4558 CXXFLAGS="-g"
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4561
4562 int
4563 main ()
4564 {
4565
4566 ;
4567 return 0;
4568 }
4569 _ACEOF
4570 if ac_fn_cxx_try_compile "$LINENO"; then :
4571 ac_cv_prog_cxx_g=yes
4572 else
4573 CXXFLAGS=""
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4576
4577 int
4578 main ()
4579 {
4580
4581 ;
4582 return 0;
4583 }
4584 _ACEOF
4585 if ac_fn_cxx_try_compile "$LINENO"; then :
4586
4587 else
4588 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4589 CXXFLAGS="-g"
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4592
4593 int
4594 main ()
4595 {
4596
4597 ;
4598 return 0;
4599 }
4600 _ACEOF
4601 if ac_fn_cxx_try_compile "$LINENO"; then :
4602 ac_cv_prog_cxx_g=yes
4603 fi
4604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605 fi
4606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 fi
4608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4609 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4610 fi
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4612 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4613 if test "$ac_test_CXXFLAGS" = set; then
4614 CXXFLAGS=$ac_save_CXXFLAGS
4615 elif test $ac_cv_prog_cxx_g = yes; then
4616 if test "$GXX" = yes; then
4617 CXXFLAGS="-g -O2"
4618 else
4619 CXXFLAGS="-g"
4620 fi
4621 else
4622 if test "$GXX" = yes; then
4623 CXXFLAGS="-O2"
4624 else
4625 CXXFLAGS=
4626 fi
4627 fi
4628 ac_ext=c
4629 ac_cpp='$CPP $CPPFLAGS'
4630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4633
4634
4635
4636
4637 if test -n "$ac_tool_prefix"; then
4638 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4639 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641 $as_echo_n "checking for $ac_word... " >&6; }
4642 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 if test -n "$GNATBIND"; then
4646 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4647 else
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH
4650 do
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4655 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 break 2
4658 fi
4659 done
4660 done
4661 IFS=$as_save_IFS
4662
4663 fi
4664 fi
4665 GNATBIND=$ac_cv_prog_GNATBIND
4666 if test -n "$GNATBIND"; then
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4668 $as_echo "$GNATBIND" >&6; }
4669 else
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4671 $as_echo "no" >&6; }
4672 fi
4673
4674
4675 fi
4676 if test -z "$ac_cv_prog_GNATBIND"; then
4677 ac_ct_GNATBIND=$GNATBIND
4678 # Extract the first word of "gnatbind", so it can be a program name with args.
4679 set dummy gnatbind; ac_word=$2
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4681 $as_echo_n "checking for $ac_word... " >&6; }
4682 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4683 $as_echo_n "(cached) " >&6
4684 else
4685 if test -n "$ac_ct_GNATBIND"; then
4686 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4687 else
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH
4690 do
4691 IFS=$as_save_IFS
4692 test -z "$as_dir" && as_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4695 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4697 break 2
4698 fi
4699 done
4700 done
4701 IFS=$as_save_IFS
4702
4703 fi
4704 fi
4705 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4706 if test -n "$ac_ct_GNATBIND"; then
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4708 $as_echo "$ac_ct_GNATBIND" >&6; }
4709 else
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711 $as_echo "no" >&6; }
4712 fi
4713
4714 if test "x$ac_ct_GNATBIND" = x; then
4715 GNATBIND="no"
4716 else
4717 case $cross_compiling:$ac_tool_warned in
4718 yes:)
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4721 ac_tool_warned=yes ;;
4722 esac
4723 GNATBIND=$ac_ct_GNATBIND
4724 fi
4725 else
4726 GNATBIND="$ac_cv_prog_GNATBIND"
4727 fi
4728
4729 if test -n "$ac_tool_prefix"; then
4730 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4731 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733 $as_echo_n "checking for $ac_word... " >&6; }
4734 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4735 $as_echo_n "(cached) " >&6
4736 else
4737 if test -n "$GNATMAKE"; then
4738 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4739 else
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 for as_dir in $PATH
4742 do
4743 IFS=$as_save_IFS
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4747 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 break 2
4750 fi
4751 done
4752 done
4753 IFS=$as_save_IFS
4754
4755 fi
4756 fi
4757 GNATMAKE=$ac_cv_prog_GNATMAKE
4758 if test -n "$GNATMAKE"; then
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4760 $as_echo "$GNATMAKE" >&6; }
4761 else
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763 $as_echo "no" >&6; }
4764 fi
4765
4766
4767 fi
4768 if test -z "$ac_cv_prog_GNATMAKE"; then
4769 ac_ct_GNATMAKE=$GNATMAKE
4770 # Extract the first word of "gnatmake", so it can be a program name with args.
4771 set dummy gnatmake; ac_word=$2
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773 $as_echo_n "checking for $ac_word... " >&6; }
4774 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4775 $as_echo_n "(cached) " >&6
4776 else
4777 if test -n "$ac_ct_GNATMAKE"; then
4778 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4779 else
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 for as_dir in $PATH
4782 do
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4787 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4790 fi
4791 done
4792 done
4793 IFS=$as_save_IFS
4794
4795 fi
4796 fi
4797 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4798 if test -n "$ac_ct_GNATMAKE"; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4800 $as_echo "$ac_ct_GNATMAKE" >&6; }
4801 else
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 $as_echo "no" >&6; }
4804 fi
4805
4806 if test "x$ac_ct_GNATMAKE" = x; then
4807 GNATMAKE="no"
4808 else
4809 case $cross_compiling:$ac_tool_warned in
4810 yes:)
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4813 ac_tool_warned=yes ;;
4814 esac
4815 GNATMAKE=$ac_ct_GNATMAKE
4816 fi
4817 else
4818 GNATMAKE="$ac_cv_prog_GNATMAKE"
4819 fi
4820
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4822 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4823 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4824 $as_echo_n "(cached) " >&6
4825 else
4826 cat >conftest.adb <<EOF
4827 procedure conftest is begin null; end conftest;
4828 EOF
4829 acx_cv_cc_gcc_supports_ada=no
4830 # There is a bug in old released versions of GCC which causes the
4831 # driver to exit successfully when the appropriate language module
4832 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4833 # Therefore we must check for the error message as well as an
4834 # unsuccessful exit.
4835 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4836 # given a .adb file, but produce no object file. So we must check
4837 # if an object file was really produced to guard against this.
4838 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4839 if test x"$errors" = x && test -f conftest.$ac_objext; then
4840 acx_cv_cc_gcc_supports_ada=yes
4841 fi
4842 rm -f conftest.*
4843 fi
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4845 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4846
4847 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4848 have_gnat=yes
4849 else
4850 have_gnat=no
4851 fi
4852
4853
4854 # autoconf is lame and doesn't give us any substitution variable for this.
4855 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4856 NO_MINUS_C_MINUS_O=yes
4857 else
4858 OUTPUT_OPTION='-o $@'
4859 fi
4860
4861
4862
4863 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4864 # optimizations to be activated explicitly by the toplevel.
4865 case "$CC" in
4866 */prev-gcc/xgcc*) ;;
4867 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4868 esac
4869
4870
4871 # Determine PICFLAG for target gnatlib.
4872
4873
4874
4875
4876 case "${target}" in
4877 # PIC is the default on some targets or must not be used.
4878 *-*-darwin*)
4879 # PIC is the default on this platform
4880 # Common symbols not allowed in MH_DYLIB files
4881 PICFLAG_FOR_TARGET=-fno-common
4882 ;;
4883 alpha*-dec-osf5*)
4884 # PIC is the default.
4885 ;;
4886 hppa*64*-*-hpux*)
4887 # PIC is the default for 64-bit PA HP-UX.
4888 ;;
4889 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4890 ;;
4891 i[34567]86-*-interix[3-9]*)
4892 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4893 # Instead, we relocate shared libraries at runtime.
4894 ;;
4895 i[34567]86-*-nto-qnx*)
4896 # QNX uses GNU C++, but need to define -shared option too, otherwise
4897 # it will coredump.
4898 PICFLAG_FOR_TARGET='-fPIC -shared'
4899 ;;
4900 i[34567]86-pc-msdosdjgpp*)
4901 # DJGPP does not support shared libraries at all.
4902 ;;
4903 ia64*-*-hpux*)
4904 # On IA64 HP-UX, PIC is the default but the pic flag
4905 # sets the default TLS model and affects inlining.
4906 PICFLAG_FOR_TARGET=-fPIC
4907 ;;
4908 mips-sgi-irix6*)
4909 # PIC is the default.
4910 ;;
4911 rs6000-ibm-aix* | powerpc-ibm-aix*)
4912 # All AIX code is PIC.
4913 ;;
4914
4915 # Some targets support both -fPIC and -fpic, but prefer the latter.
4916 # FIXME: Why?
4917 i[34567]86-*-* | x86_64-*-*)
4918 PICFLAG_FOR_TARGET=-fpic
4919 ;;
4920 m68k-*-*)
4921 PICFLAG_FOR_TARGET=-fpic
4922 ;;
4923 # FIXME: Override -fPIC default in libgcc only?
4924 sh-*-linux* | sh[2346lbe]*-*-linux*)
4925 PICFLAG_FOR_TARGET=-fpic
4926 ;;
4927 # FIXME: Simplify to sh*-*-netbsd*?
4928 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4929 sh64-*-netbsd* | sh64l*-*-netbsd*)
4930 PICFLAG_FOR_TARGET=-fpic
4931 ;;
4932 # Default to -fPIC unless specified otherwise.
4933 *)
4934 PICFLAG_FOR_TARGET=-fPIC
4935 ;;
4936 esac
4937
4938 # If the user explicitly uses -fpic/-fPIC, keep that.
4939 case "${CFLAGS_FOR_TARGET}" in
4940 *-fpic*)
4941 PICFLAG_FOR_TARGET=-fpic
4942 ;;
4943 *-fPIC*)
4944 PICFLAG_FOR_TARGET=-fPIC
4945 ;;
4946 esac
4947
4948
4949
4950 # -------------------------
4951 # Check C compiler features
4952 # -------------------------
4953
4954
4955 ac_ext=c
4956 ac_cpp='$CPP $CPPFLAGS'
4957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4961 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4962 # On Suns, sometimes $CPP names a directory.
4963 if test -n "$CPP" && test -d "$CPP"; then
4964 CPP=
4965 fi
4966 if test -z "$CPP"; then
4967 if test "${ac_cv_prog_CPP+set}" = set; then :
4968 $as_echo_n "(cached) " >&6
4969 else
4970 # Double quotes because CPP needs to be expanded
4971 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4972 do
4973 ac_preproc_ok=false
4974 for ac_c_preproc_warn_flag in '' yes
4975 do
4976 # Use a header file that comes with gcc, so configuring glibc
4977 # with a fresh cross-compiler works.
4978 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4979 # <limits.h> exists even on freestanding compilers.
4980 # On the NeXT, cc -E runs the code through the compiler's parser,
4981 # not just through cpp. "Syntax error" is here to catch this case.
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4984 #ifdef __STDC__
4985 # include <limits.h>
4986 #else
4987 # include <assert.h>
4988 #endif
4989 Syntax error
4990 _ACEOF
4991 if ac_fn_c_try_cpp "$LINENO"; then :
4992
4993 else
4994 # Broken: fails on valid input.
4995 continue
4996 fi
4997 rm -f conftest.err conftest.$ac_ext
4998
4999 # OK, works on sane cases. Now check whether nonexistent headers
5000 # can be detected and how.
5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h. */
5003 #include <ac_nonexistent.h>
5004 _ACEOF
5005 if ac_fn_c_try_cpp "$LINENO"; then :
5006 # Broken: success on invalid input.
5007 continue
5008 else
5009 # Passes both tests.
5010 ac_preproc_ok=:
5011 break
5012 fi
5013 rm -f conftest.err conftest.$ac_ext
5014
5015 done
5016 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5017 rm -f conftest.err conftest.$ac_ext
5018 if $ac_preproc_ok; then :
5019 break
5020 fi
5021
5022 done
5023 ac_cv_prog_CPP=$CPP
5024
5025 fi
5026 CPP=$ac_cv_prog_CPP
5027 else
5028 ac_cv_prog_CPP=$CPP
5029 fi
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5031 $as_echo "$CPP" >&6; }
5032 ac_preproc_ok=false
5033 for ac_c_preproc_warn_flag in '' yes
5034 do
5035 # Use a header file that comes with gcc, so configuring glibc
5036 # with a fresh cross-compiler works.
5037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5038 # <limits.h> exists even on freestanding compilers.
5039 # On the NeXT, cc -E runs the code through the compiler's parser,
5040 # not just through cpp. "Syntax error" is here to catch this case.
5041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042 /* end confdefs.h. */
5043 #ifdef __STDC__
5044 # include <limits.h>
5045 #else
5046 # include <assert.h>
5047 #endif
5048 Syntax error
5049 _ACEOF
5050 if ac_fn_c_try_cpp "$LINENO"; then :
5051
5052 else
5053 # Broken: fails on valid input.
5054 continue
5055 fi
5056 rm -f conftest.err conftest.$ac_ext
5057
5058 # OK, works on sane cases. Now check whether nonexistent headers
5059 # can be detected and how.
5060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061 /* end confdefs.h. */
5062 #include <ac_nonexistent.h>
5063 _ACEOF
5064 if ac_fn_c_try_cpp "$LINENO"; then :
5065 # Broken: success on invalid input.
5066 continue
5067 else
5068 # Passes both tests.
5069 ac_preproc_ok=:
5070 break
5071 fi
5072 rm -f conftest.err conftest.$ac_ext
5073
5074 done
5075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5076 rm -f conftest.err conftest.$ac_ext
5077 if $ac_preproc_ok; then :
5078
5079 else
5080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5082 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5083 See \`config.log' for more details." "$LINENO" 5; }
5084 fi
5085
5086 ac_ext=c
5087 ac_cpp='$CPP $CPPFLAGS'
5088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5091
5092
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5094 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5095 if test "${ac_cv_path_GREP+set}" = set; then :
5096 $as_echo_n "(cached) " >&6
5097 else
5098 if test -z "$GREP"; then
5099 ac_path_GREP_found=false
5100 # Loop through the user's path and test for each of PROGNAME-LIST
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5103 do
5104 IFS=$as_save_IFS
5105 test -z "$as_dir" && as_dir=.
5106 for ac_prog in grep ggrep; do
5107 for ac_exec_ext in '' $ac_executable_extensions; do
5108 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5109 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5110 # Check for GNU ac_path_GREP and select it if it is found.
5111 # Check for GNU $ac_path_GREP
5112 case `"$ac_path_GREP" --version 2>&1` in
5113 *GNU*)
5114 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5115 *)
5116 ac_count=0
5117 $as_echo_n 0123456789 >"conftest.in"
5118 while :
5119 do
5120 cat "conftest.in" "conftest.in" >"conftest.tmp"
5121 mv "conftest.tmp" "conftest.in"
5122 cp "conftest.in" "conftest.nl"
5123 $as_echo 'GREP' >> "conftest.nl"
5124 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5125 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5126 as_fn_arith $ac_count + 1 && ac_count=$as_val
5127 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5128 # Best one so far, save it but keep looking for a better one
5129 ac_cv_path_GREP="$ac_path_GREP"
5130 ac_path_GREP_max=$ac_count
5131 fi
5132 # 10*(2^10) chars as input seems more than enough
5133 test $ac_count -gt 10 && break
5134 done
5135 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5136 esac
5137
5138 $ac_path_GREP_found && break 3
5139 done
5140 done
5141 done
5142 IFS=$as_save_IFS
5143 if test -z "$ac_cv_path_GREP"; then
5144 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5145 fi
5146 else
5147 ac_cv_path_GREP=$GREP
5148 fi
5149
5150 fi
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5152 $as_echo "$ac_cv_path_GREP" >&6; }
5153 GREP="$ac_cv_path_GREP"
5154
5155
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5157 $as_echo_n "checking for egrep... " >&6; }
5158 if test "${ac_cv_path_EGREP+set}" = set; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5162 then ac_cv_path_EGREP="$GREP -E"
5163 else
5164 if test -z "$EGREP"; then
5165 ac_path_EGREP_found=false
5166 # Loop through the user's path and test for each of PROGNAME-LIST
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5169 do
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
5172 for ac_prog in egrep; do
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5175 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5176 # Check for GNU ac_path_EGREP and select it if it is found.
5177 # Check for GNU $ac_path_EGREP
5178 case `"$ac_path_EGREP" --version 2>&1` in
5179 *GNU*)
5180 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5181 *)
5182 ac_count=0
5183 $as_echo_n 0123456789 >"conftest.in"
5184 while :
5185 do
5186 cat "conftest.in" "conftest.in" >"conftest.tmp"
5187 mv "conftest.tmp" "conftest.in"
5188 cp "conftest.in" "conftest.nl"
5189 $as_echo 'EGREP' >> "conftest.nl"
5190 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5191 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5192 as_fn_arith $ac_count + 1 && ac_count=$as_val
5193 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5194 # Best one so far, save it but keep looking for a better one
5195 ac_cv_path_EGREP="$ac_path_EGREP"
5196 ac_path_EGREP_max=$ac_count
5197 fi
5198 # 10*(2^10) chars as input seems more than enough
5199 test $ac_count -gt 10 && break
5200 done
5201 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5202 esac
5203
5204 $ac_path_EGREP_found && break 3
5205 done
5206 done
5207 done
5208 IFS=$as_save_IFS
5209 if test -z "$ac_cv_path_EGREP"; then
5210 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5211 fi
5212 else
5213 ac_cv_path_EGREP=$EGREP
5214 fi
5215
5216 fi
5217 fi
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5219 $as_echo "$ac_cv_path_EGREP" >&6; }
5220 EGREP="$ac_cv_path_EGREP"
5221
5222
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5224 $as_echo_n "checking for ANSI C header files... " >&6; }
5225 if test "${ac_cv_header_stdc+set}" = set; then :
5226 $as_echo_n "(cached) " >&6
5227 else
5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229 /* end confdefs.h. */
5230 #include <stdlib.h>
5231 #include <stdarg.h>
5232 #include <string.h>
5233 #include <float.h>
5234
5235 int
5236 main ()
5237 {
5238
5239 ;
5240 return 0;
5241 }
5242 _ACEOF
5243 if ac_fn_c_try_compile "$LINENO"; then :
5244 ac_cv_header_stdc=yes
5245 else
5246 ac_cv_header_stdc=no
5247 fi
5248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5249
5250 if test $ac_cv_header_stdc = yes; then
5251 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5254 #include <string.h>
5255
5256 _ACEOF
5257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5258 $EGREP "memchr" >/dev/null 2>&1; then :
5259
5260 else
5261 ac_cv_header_stdc=no
5262 fi
5263 rm -f conftest*
5264
5265 fi
5266
5267 if test $ac_cv_header_stdc = yes; then
5268 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5271 #include <stdlib.h>
5272
5273 _ACEOF
5274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5275 $EGREP "free" >/dev/null 2>&1; then :
5276
5277 else
5278 ac_cv_header_stdc=no
5279 fi
5280 rm -f conftest*
5281
5282 fi
5283
5284 if test $ac_cv_header_stdc = yes; then
5285 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5286 if test "$cross_compiling" = yes; then :
5287 :
5288 else
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5291 #include <ctype.h>
5292 #include <stdlib.h>
5293 #if ((' ' & 0x0FF) == 0x020)
5294 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5295 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5296 #else
5297 # define ISLOWER(c) \
5298 (('a' <= (c) && (c) <= 'i') \
5299 || ('j' <= (c) && (c) <= 'r') \
5300 || ('s' <= (c) && (c) <= 'z'))
5301 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5302 #endif
5303
5304 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5305 int
5306 main ()
5307 {
5308 int i;
5309 for (i = 0; i < 256; i++)
5310 if (XOR (islower (i), ISLOWER (i))
5311 || toupper (i) != TOUPPER (i))
5312 return 2;
5313 return 0;
5314 }
5315 _ACEOF
5316 if ac_fn_c_try_run "$LINENO"; then :
5317
5318 else
5319 ac_cv_header_stdc=no
5320 fi
5321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5322 conftest.$ac_objext conftest.beam conftest.$ac_ext
5323 fi
5324
5325 fi
5326 fi
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5328 $as_echo "$ac_cv_header_stdc" >&6; }
5329 if test $ac_cv_header_stdc = yes; then
5330
5331 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5332
5333 fi
5334
5335 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5336 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5337 inttypes.h stdint.h unistd.h
5338 do :
5339 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5340 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5341 "
5342 eval as_val=\$$as_ac_Header
5343 if test "x$as_val" = x""yes; then :
5344 cat >>confdefs.h <<_ACEOF
5345 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5346 _ACEOF
5347
5348 fi
5349
5350 done
5351
5352
5353
5354 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5355 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5356 MINIX=yes
5357 else
5358 MINIX=
5359 fi
5360
5361
5362 if test "$MINIX" = yes; then
5363
5364 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5365
5366
5367 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5368
5369
5370 $as_echo "#define _MINIX 1" >>confdefs.h
5371
5372 fi
5373
5374
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5376 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5377 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5378 $as_echo_n "(cached) " >&6
5379 else
5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381 /* end confdefs.h. */
5382
5383 # define __EXTENSIONS__ 1
5384 $ac_includes_default
5385 int
5386 main ()
5387 {
5388
5389 ;
5390 return 0;
5391 }
5392 _ACEOF
5393 if ac_fn_c_try_compile "$LINENO"; then :
5394 ac_cv_safe_to_define___extensions__=yes
5395 else
5396 ac_cv_safe_to_define___extensions__=no
5397 fi
5398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399 fi
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5401 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5402 test $ac_cv_safe_to_define___extensions__ = yes &&
5403 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5404
5405 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5406
5407 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5408
5409 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5410
5411 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5412
5413
5414 ac_ext=c
5415 ac_cpp='$CPP $CPPFLAGS'
5416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5420 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5421 # On Suns, sometimes $CPP names a directory.
5422 if test -n "$CPP" && test -d "$CPP"; then
5423 CPP=
5424 fi
5425 if test -z "$CPP"; then
5426 if test "${ac_cv_prog_CPP+set}" = set; then :
5427 $as_echo_n "(cached) " >&6
5428 else
5429 # Double quotes because CPP needs to be expanded
5430 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5431 do
5432 ac_preproc_ok=false
5433 for ac_c_preproc_warn_flag in '' yes
5434 do
5435 # Use a header file that comes with gcc, so configuring glibc
5436 # with a fresh cross-compiler works.
5437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5438 # <limits.h> exists even on freestanding compilers.
5439 # On the NeXT, cc -E runs the code through the compiler's parser,
5440 # not just through cpp. "Syntax error" is here to catch this case.
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5443 #ifdef __STDC__
5444 # include <limits.h>
5445 #else
5446 # include <assert.h>
5447 #endif
5448 Syntax error
5449 _ACEOF
5450 if ac_fn_c_try_cpp "$LINENO"; then :
5451
5452 else
5453 # Broken: fails on valid input.
5454 continue
5455 fi
5456 rm -f conftest.err conftest.$ac_ext
5457
5458 # OK, works on sane cases. Now check whether nonexistent headers
5459 # can be detected and how.
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5462 #include <ac_nonexistent.h>
5463 _ACEOF
5464 if ac_fn_c_try_cpp "$LINENO"; then :
5465 # Broken: success on invalid input.
5466 continue
5467 else
5468 # Passes both tests.
5469 ac_preproc_ok=:
5470 break
5471 fi
5472 rm -f conftest.err conftest.$ac_ext
5473
5474 done
5475 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5476 rm -f conftest.err conftest.$ac_ext
5477 if $ac_preproc_ok; then :
5478 break
5479 fi
5480
5481 done
5482 ac_cv_prog_CPP=$CPP
5483
5484 fi
5485 CPP=$ac_cv_prog_CPP
5486 else
5487 ac_cv_prog_CPP=$CPP
5488 fi
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5490 $as_echo "$CPP" >&6; }
5491 ac_preproc_ok=false
5492 for ac_c_preproc_warn_flag in '' yes
5493 do
5494 # Use a header file that comes with gcc, so configuring glibc
5495 # with a fresh cross-compiler works.
5496 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5497 # <limits.h> exists even on freestanding compilers.
5498 # On the NeXT, cc -E runs the code through the compiler's parser,
5499 # not just through cpp. "Syntax error" is here to catch this case.
5500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5501 /* end confdefs.h. */
5502 #ifdef __STDC__
5503 # include <limits.h>
5504 #else
5505 # include <assert.h>
5506 #endif
5507 Syntax error
5508 _ACEOF
5509 if ac_fn_c_try_cpp "$LINENO"; then :
5510
5511 else
5512 # Broken: fails on valid input.
5513 continue
5514 fi
5515 rm -f conftest.err conftest.$ac_ext
5516
5517 # OK, works on sane cases. Now check whether nonexistent headers
5518 # can be detected and how.
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5521 #include <ac_nonexistent.h>
5522 _ACEOF
5523 if ac_fn_c_try_cpp "$LINENO"; then :
5524 # Broken: success on invalid input.
5525 continue
5526 else
5527 # Passes both tests.
5528 ac_preproc_ok=:
5529 break
5530 fi
5531 rm -f conftest.err conftest.$ac_ext
5532
5533 done
5534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5535 rm -f conftest.err conftest.$ac_ext
5536 if $ac_preproc_ok; then :
5537
5538 else
5539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5541 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5542 See \`config.log' for more details." "$LINENO" 5; }
5543 fi
5544
5545 ac_ext=c
5546 ac_cpp='$CPP $CPPFLAGS'
5547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5550
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5552 $as_echo_n "checking for inline... " >&6; }
5553 if test "${ac_cv_c_inline+set}" = set; then :
5554 $as_echo_n "(cached) " >&6
5555 else
5556 ac_cv_c_inline=no
5557 for ac_kw in inline __inline__ __inline; do
5558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559 /* end confdefs.h. */
5560 #ifndef __cplusplus
5561 typedef int foo_t;
5562 static $ac_kw foo_t static_foo () {return 0; }
5563 $ac_kw foo_t foo () {return 0; }
5564 #endif
5565
5566 _ACEOF
5567 if ac_fn_c_try_compile "$LINENO"; then :
5568 ac_cv_c_inline=$ac_kw
5569 fi
5570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5571 test "$ac_cv_c_inline" != no && break
5572 done
5573
5574 fi
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5576 $as_echo "$ac_cv_c_inline" >&6; }
5577
5578 case $ac_cv_c_inline in
5579 inline | yes) ;;
5580 *)
5581 case $ac_cv_c_inline in
5582 no) ac_val=;;
5583 *) ac_val=$ac_cv_c_inline;;
5584 esac
5585 cat >>confdefs.h <<_ACEOF
5586 #ifndef __cplusplus
5587 #define inline $ac_val
5588 #endif
5589 _ACEOF
5590 ;;
5591 esac
5592
5593
5594 # Check whether --enable-largefile was given.
5595 if test "${enable_largefile+set}" = set; then :
5596 enableval=$enable_largefile;
5597 fi
5598
5599 if test "$enable_largefile" != no; then
5600
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5602 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5603 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5604 $as_echo_n "(cached) " >&6
5605 else
5606 ac_cv_sys_largefile_CC=no
5607 if test "$GCC" != yes; then
5608 ac_save_CC=$CC
5609 while :; do
5610 # IRIX 6.2 and later do not support large files by default,
5611 # so use the C compiler's -n32 option if that helps.
5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h. */
5614 #include <sys/types.h>
5615 /* Check that off_t can represent 2**63 - 1 correctly.
5616 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5617 since some C++ compilers masquerading as C compilers
5618 incorrectly reject 9223372036854775807. */
5619 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5620 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5621 && LARGE_OFF_T % 2147483647 == 1)
5622 ? 1 : -1];
5623 int
5624 main ()
5625 {
5626
5627 ;
5628 return 0;
5629 }
5630 _ACEOF
5631 if ac_fn_c_try_compile "$LINENO"; then :
5632 break
5633 fi
5634 rm -f core conftest.err conftest.$ac_objext
5635 CC="$CC -n32"
5636 if ac_fn_c_try_compile "$LINENO"; then :
5637 ac_cv_sys_largefile_CC=' -n32'; break
5638 fi
5639 rm -f core conftest.err conftest.$ac_objext
5640 break
5641 done
5642 CC=$ac_save_CC
5643 rm -f conftest.$ac_ext
5644 fi
5645 fi
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5647 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5648 if test "$ac_cv_sys_largefile_CC" != no; then
5649 CC=$CC$ac_cv_sys_largefile_CC
5650 fi
5651
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5653 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5654 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5655 $as_echo_n "(cached) " >&6
5656 else
5657 while :; do
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5660 #include <sys/types.h>
5661 /* Check that off_t can represent 2**63 - 1 correctly.
5662 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5663 since some C++ compilers masquerading as C compilers
5664 incorrectly reject 9223372036854775807. */
5665 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5666 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5667 && LARGE_OFF_T % 2147483647 == 1)
5668 ? 1 : -1];
5669 int
5670 main ()
5671 {
5672
5673 ;
5674 return 0;
5675 }
5676 _ACEOF
5677 if ac_fn_c_try_compile "$LINENO"; then :
5678 ac_cv_sys_file_offset_bits=no; break
5679 fi
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682 /* end confdefs.h. */
5683 #define _FILE_OFFSET_BITS 64
5684 #include <sys/types.h>
5685 /* Check that off_t can represent 2**63 - 1 correctly.
5686 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5687 since some C++ compilers masquerading as C compilers
5688 incorrectly reject 9223372036854775807. */
5689 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5690 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5691 && LARGE_OFF_T % 2147483647 == 1)
5692 ? 1 : -1];
5693 int
5694 main ()
5695 {
5696
5697 ;
5698 return 0;
5699 }
5700 _ACEOF
5701 if ac_fn_c_try_compile "$LINENO"; then :
5702 ac_cv_sys_file_offset_bits=64; break
5703 fi
5704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5705 ac_cv_sys_file_offset_bits=unknown
5706 break
5707 done
5708 fi
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5710 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5711 case $ac_cv_sys_file_offset_bits in #(
5712 no | unknown) ;;
5713 *)
5714 cat >>confdefs.h <<_ACEOF
5715 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5716 _ACEOF
5717 ;;
5718 esac
5719 rm -rf conftest*
5720 if test $ac_cv_sys_file_offset_bits = unknown; then
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5722 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5723 if test "${ac_cv_sys_large_files+set}" = set; then :
5724 $as_echo_n "(cached) " >&6
5725 else
5726 while :; do
5727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5728 /* end confdefs.h. */
5729 #include <sys/types.h>
5730 /* Check that off_t can represent 2**63 - 1 correctly.
5731 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5732 since some C++ compilers masquerading as C compilers
5733 incorrectly reject 9223372036854775807. */
5734 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5735 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5736 && LARGE_OFF_T % 2147483647 == 1)
5737 ? 1 : -1];
5738 int
5739 main ()
5740 {
5741
5742 ;
5743 return 0;
5744 }
5745 _ACEOF
5746 if ac_fn_c_try_compile "$LINENO"; then :
5747 ac_cv_sys_large_files=no; break
5748 fi
5749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751 /* end confdefs.h. */
5752 #define _LARGE_FILES 1
5753 #include <sys/types.h>
5754 /* Check that off_t can represent 2**63 - 1 correctly.
5755 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5756 since some C++ compilers masquerading as C compilers
5757 incorrectly reject 9223372036854775807. */
5758 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5759 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5760 && LARGE_OFF_T % 2147483647 == 1)
5761 ? 1 : -1];
5762 int
5763 main ()
5764 {
5765
5766 ;
5767 return 0;
5768 }
5769 _ACEOF
5770 if ac_fn_c_try_compile "$LINENO"; then :
5771 ac_cv_sys_large_files=1; break
5772 fi
5773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774 ac_cv_sys_large_files=unknown
5775 break
5776 done
5777 fi
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5779 $as_echo "$ac_cv_sys_large_files" >&6; }
5780 case $ac_cv_sys_large_files in #(
5781 no | unknown) ;;
5782 *)
5783 cat >>confdefs.h <<_ACEOF
5784 #define _LARGE_FILES $ac_cv_sys_large_files
5785 _ACEOF
5786 ;;
5787 esac
5788 rm -rf conftest*
5789 fi
5790 fi
5791
5792
5793 # sizeof(char) is 1 by definition.
5794 # The cast to long int works around a bug in the HP C Compiler
5795 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5796 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5797 # This bug is HP SR number 8606223364.
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5799 $as_echo_n "checking size of void *... " >&6; }
5800 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5801 $as_echo_n "(cached) " >&6
5802 else
5803 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5804
5805 else
5806 if test "$ac_cv_type_void_p" = yes; then
5807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5809 { as_fn_set_status 77
5810 as_fn_error "cannot compute sizeof (void *)
5811 See \`config.log' for more details." "$LINENO" 5; }; }
5812 else
5813 ac_cv_sizeof_void_p=0
5814 fi
5815 fi
5816
5817 fi
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5819 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5820
5821
5822
5823 cat >>confdefs.h <<_ACEOF
5824 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5825 _ACEOF
5826
5827
5828 # The cast to long int works around a bug in the HP C Compiler
5829 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5830 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5831 # This bug is HP SR number 8606223364.
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5833 $as_echo_n "checking size of short... " >&6; }
5834 if test "${ac_cv_sizeof_short+set}" = set; then :
5835 $as_echo_n "(cached) " >&6
5836 else
5837 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5838
5839 else
5840 if test "$ac_cv_type_short" = yes; then
5841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5843 { as_fn_set_status 77
5844 as_fn_error "cannot compute sizeof (short)
5845 See \`config.log' for more details." "$LINENO" 5; }; }
5846 else
5847 ac_cv_sizeof_short=0
5848 fi
5849 fi
5850
5851 fi
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5853 $as_echo "$ac_cv_sizeof_short" >&6; }
5854
5855
5856
5857 cat >>confdefs.h <<_ACEOF
5858 #define SIZEOF_SHORT $ac_cv_sizeof_short
5859 _ACEOF
5860
5861
5862 # The cast to long int works around a bug in the HP C Compiler
5863 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5864 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5865 # This bug is HP SR number 8606223364.
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5867 $as_echo_n "checking size of int... " >&6; }
5868 if test "${ac_cv_sizeof_int+set}" = set; then :
5869 $as_echo_n "(cached) " >&6
5870 else
5871 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5872
5873 else
5874 if test "$ac_cv_type_int" = yes; then
5875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5877 { as_fn_set_status 77
5878 as_fn_error "cannot compute sizeof (int)
5879 See \`config.log' for more details." "$LINENO" 5; }; }
5880 else
5881 ac_cv_sizeof_int=0
5882 fi
5883 fi
5884
5885 fi
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5887 $as_echo "$ac_cv_sizeof_int" >&6; }
5888
5889
5890
5891 cat >>confdefs.h <<_ACEOF
5892 #define SIZEOF_INT $ac_cv_sizeof_int
5893 _ACEOF
5894
5895
5896 # The cast to long int works around a bug in the HP C Compiler
5897 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5898 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5899 # This bug is HP SR number 8606223364.
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5901 $as_echo_n "checking size of long... " >&6; }
5902 if test "${ac_cv_sizeof_long+set}" = set; then :
5903 $as_echo_n "(cached) " >&6
5904 else
5905 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5906
5907 else
5908 if test "$ac_cv_type_long" = yes; then
5909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5911 { as_fn_set_status 77
5912 as_fn_error "cannot compute sizeof (long)
5913 See \`config.log' for more details." "$LINENO" 5; }; }
5914 else
5915 ac_cv_sizeof_long=0
5916 fi
5917 fi
5918
5919 fi
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5921 $as_echo "$ac_cv_sizeof_long" >&6; }
5922
5923
5924
5925 cat >>confdefs.h <<_ACEOF
5926 #define SIZEOF_LONG $ac_cv_sizeof_long
5927 _ACEOF
5928
5929
5930 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5931 if test "x$ac_cv_type_long_long" = x""yes; then :
5932
5933 cat >>confdefs.h <<_ACEOF
5934 #define HAVE_LONG_LONG 1
5935 _ACEOF
5936
5937 # The cast to long int works around a bug in the HP C Compiler
5938 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5939 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5940 # This bug is HP SR number 8606223364.
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5942 $as_echo_n "checking size of long long... " >&6; }
5943 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5944 $as_echo_n "(cached) " >&6
5945 else
5946 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5947
5948 else
5949 if test "$ac_cv_type_long_long" = yes; then
5950 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5952 { as_fn_set_status 77
5953 as_fn_error "cannot compute sizeof (long long)
5954 See \`config.log' for more details." "$LINENO" 5; }; }
5955 else
5956 ac_cv_sizeof_long_long=0
5957 fi
5958 fi
5959
5960 fi
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5962 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5963
5964
5965
5966 cat >>confdefs.h <<_ACEOF
5967 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5968 _ACEOF
5969
5970
5971 fi
5972
5973 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5974 if test "x$ac_cv_type___int64" = x""yes; then :
5975
5976 cat >>confdefs.h <<_ACEOF
5977 #define HAVE___INT64 1
5978 _ACEOF
5979
5980 # The cast to long int works around a bug in the HP C Compiler
5981 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5982 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5983 # This bug is HP SR number 8606223364.
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5985 $as_echo_n "checking size of __int64... " >&6; }
5986 if test "${ac_cv_sizeof___int64+set}" = set; then :
5987 $as_echo_n "(cached) " >&6
5988 else
5989 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5990
5991 else
5992 if test "$ac_cv_type___int64" = yes; then
5993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5995 { as_fn_set_status 77
5996 as_fn_error "cannot compute sizeof (__int64)
5997 See \`config.log' for more details." "$LINENO" 5; }; }
5998 else
5999 ac_cv_sizeof___int64=0
6000 fi
6001 fi
6002
6003 fi
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6005 $as_echo "$ac_cv_sizeof___int64" >&6; }
6006
6007
6008
6009 cat >>confdefs.h <<_ACEOF
6010 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6011 _ACEOF
6012
6013
6014 fi
6015
6016 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6017 case $ac_cv_c_int8_t in #(
6018 no|yes) ;; #(
6019 *)
6020
6021 cat >>confdefs.h <<_ACEOF
6022 #define int8_t $ac_cv_c_int8_t
6023 _ACEOF
6024 ;;
6025 esac
6026
6027 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6028 case $ac_cv_c_int16_t in #(
6029 no|yes) ;; #(
6030 *)
6031
6032 cat >>confdefs.h <<_ACEOF
6033 #define int16_t $ac_cv_c_int16_t
6034 _ACEOF
6035 ;;
6036 esac
6037
6038 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6039 case $ac_cv_c_int32_t in #(
6040 no|yes) ;; #(
6041 *)
6042
6043 cat >>confdefs.h <<_ACEOF
6044 #define int32_t $ac_cv_c_int32_t
6045 _ACEOF
6046 ;;
6047 esac
6048
6049 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6050 case $ac_cv_c_int64_t in #(
6051 no|yes) ;; #(
6052 *)
6053
6054 cat >>confdefs.h <<_ACEOF
6055 #define int64_t $ac_cv_c_int64_t
6056 _ACEOF
6057 ;;
6058 esac
6059
6060
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6062 $as_echo_n "checking for long long int... " >&6; }
6063 if test "${ac_cv_type_long_long_int+set}" = set; then :
6064 $as_echo_n "(cached) " >&6
6065 else
6066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067 /* end confdefs.h. */
6068
6069 /* For now, do not test the preprocessor; as of 2007 there are too many
6070 implementations with broken preprocessors. Perhaps this can
6071 be revisited in 2012. In the meantime, code should not expect
6072 #if to work with literals wider than 32 bits. */
6073 /* Test literals. */
6074 long long int ll = 9223372036854775807ll;
6075 long long int nll = -9223372036854775807LL;
6076 unsigned long long int ull = 18446744073709551615ULL;
6077 /* Test constant expressions. */
6078 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6079 ? 1 : -1)];
6080 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6081 ? 1 : -1)];
6082 int i = 63;
6083 int
6084 main ()
6085 {
6086 /* Test availability of runtime routines for shift and division. */
6087 long long int llmax = 9223372036854775807ll;
6088 unsigned long long int ullmax = 18446744073709551615ull;
6089 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6090 | (llmax / ll) | (llmax % ll)
6091 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6092 | (ullmax / ull) | (ullmax % ull));
6093 ;
6094 return 0;
6095 }
6096
6097 _ACEOF
6098 if ac_fn_c_try_link "$LINENO"; then :
6099 if test "$cross_compiling" = yes; then :
6100 ac_cv_type_long_long_int=yes
6101 else
6102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6103 /* end confdefs.h. */
6104 #include <limits.h>
6105 #ifndef LLONG_MAX
6106 # define HALF \
6107 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6108 # define LLONG_MAX (HALF - 1 + HALF)
6109 #endif
6110 int
6111 main ()
6112 {
6113 long long int n = 1;
6114 int i;
6115 for (i = 0; ; i++)
6116 {
6117 long long int m = n << i;
6118 if (m >> i != n)
6119 return 1;
6120 if (LLONG_MAX / 2 < m)
6121 break;
6122 }
6123 return 0;
6124 ;
6125 return 0;
6126 }
6127 _ACEOF
6128 if ac_fn_c_try_run "$LINENO"; then :
6129 ac_cv_type_long_long_int=yes
6130 else
6131 ac_cv_type_long_long_int=no
6132 fi
6133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6134 conftest.$ac_objext conftest.beam conftest.$ac_ext
6135 fi
6136
6137 else
6138 ac_cv_type_long_long_int=no
6139 fi
6140 rm -f core conftest.err conftest.$ac_objext \
6141 conftest$ac_exeext conftest.$ac_ext
6142 fi
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6144 $as_echo "$ac_cv_type_long_long_int" >&6; }
6145 if test $ac_cv_type_long_long_int = yes; then
6146
6147 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6148
6149 fi
6150
6151
6152
6153 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6154 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6155
6156 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6157
6158 else
6159 test $ac_cv_type_long_long_int = yes \
6160 && ac_type='long long int' \
6161 || ac_type='long int'
6162
6163 cat >>confdefs.h <<_ACEOF
6164 #define intmax_t $ac_type
6165 _ACEOF
6166
6167 fi
6168
6169
6170
6171 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6172 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6173
6174 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6175
6176 else
6177 for ac_type in 'int' 'long int' 'long long int'; do
6178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179 /* end confdefs.h. */
6180 $ac_includes_default
6181 int
6182 main ()
6183 {
6184 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6185 test_array [0] = 0
6186
6187 ;
6188 return 0;
6189 }
6190 _ACEOF
6191 if ac_fn_c_try_compile "$LINENO"; then :
6192
6193 cat >>confdefs.h <<_ACEOF
6194 #define intptr_t $ac_type
6195 _ACEOF
6196
6197 ac_type=
6198 fi
6199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200 test -z "$ac_type" && break
6201 done
6202 fi
6203
6204
6205 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6206 case $ac_cv_c_uint8_t in #(
6207 no|yes) ;; #(
6208 *)
6209
6210 $as_echo "#define _UINT8_T 1" >>confdefs.h
6211
6212
6213 cat >>confdefs.h <<_ACEOF
6214 #define uint8_t $ac_cv_c_uint8_t
6215 _ACEOF
6216 ;;
6217 esac
6218
6219 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6220 case $ac_cv_c_uint16_t in #(
6221 no|yes) ;; #(
6222 *)
6223
6224
6225 cat >>confdefs.h <<_ACEOF
6226 #define uint16_t $ac_cv_c_uint16_t
6227 _ACEOF
6228 ;;
6229 esac
6230
6231 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6232 case $ac_cv_c_uint32_t in #(
6233 no|yes) ;; #(
6234 *)
6235
6236 $as_echo "#define _UINT32_T 1" >>confdefs.h
6237
6238
6239 cat >>confdefs.h <<_ACEOF
6240 #define uint32_t $ac_cv_c_uint32_t
6241 _ACEOF
6242 ;;
6243 esac
6244
6245 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6246 case $ac_cv_c_uint64_t in #(
6247 no|yes) ;; #(
6248 *)
6249
6250 $as_echo "#define _UINT64_T 1" >>confdefs.h
6251
6252
6253 cat >>confdefs.h <<_ACEOF
6254 #define uint64_t $ac_cv_c_uint64_t
6255 _ACEOF
6256 ;;
6257 esac
6258
6259
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6261 $as_echo_n "checking for unsigned long long int... " >&6; }
6262 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6263 $as_echo_n "(cached) " >&6
6264 else
6265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6266 /* end confdefs.h. */
6267
6268 /* For now, do not test the preprocessor; as of 2007 there are too many
6269 implementations with broken preprocessors. Perhaps this can
6270 be revisited in 2012. In the meantime, code should not expect
6271 #if to work with literals wider than 32 bits. */
6272 /* Test literals. */
6273 long long int ll = 9223372036854775807ll;
6274 long long int nll = -9223372036854775807LL;
6275 unsigned long long int ull = 18446744073709551615ULL;
6276 /* Test constant expressions. */
6277 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6278 ? 1 : -1)];
6279 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6280 ? 1 : -1)];
6281 int i = 63;
6282 int
6283 main ()
6284 {
6285 /* Test availability of runtime routines for shift and division. */
6286 long long int llmax = 9223372036854775807ll;
6287 unsigned long long int ullmax = 18446744073709551615ull;
6288 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6289 | (llmax / ll) | (llmax % ll)
6290 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6291 | (ullmax / ull) | (ullmax % ull));
6292 ;
6293 return 0;
6294 }
6295
6296 _ACEOF
6297 if ac_fn_c_try_link "$LINENO"; then :
6298 ac_cv_type_unsigned_long_long_int=yes
6299 else
6300 ac_cv_type_unsigned_long_long_int=no
6301 fi
6302 rm -f core conftest.err conftest.$ac_objext \
6303 conftest$ac_exeext conftest.$ac_ext
6304 fi
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6306 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6307 if test $ac_cv_type_unsigned_long_long_int = yes; then
6308
6309 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6310
6311 fi
6312
6313
6314
6315 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6316 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6317
6318 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6319
6320 else
6321 test $ac_cv_type_unsigned_long_long_int = yes \
6322 && ac_type='unsigned long long int' \
6323 || ac_type='unsigned long int'
6324
6325 cat >>confdefs.h <<_ACEOF
6326 #define uintmax_t $ac_type
6327 _ACEOF
6328
6329 fi
6330
6331
6332
6333 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6334 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6335
6336 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6337
6338 else
6339 for ac_type in 'unsigned int' 'unsigned long int' \
6340 'unsigned long long int'; do
6341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342 /* end confdefs.h. */
6343 $ac_includes_default
6344 int
6345 main ()
6346 {
6347 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6348 test_array [0] = 0
6349
6350 ;
6351 return 0;
6352 }
6353 _ACEOF
6354 if ac_fn_c_try_compile "$LINENO"; then :
6355
6356 cat >>confdefs.h <<_ACEOF
6357 #define uintptr_t $ac_type
6358 _ACEOF
6359
6360 ac_type=
6361 fi
6362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6363 test -z "$ac_type" && break
6364 done
6365 fi
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381 # ---------------------
6382 # Warnings and checking
6383 # ---------------------
6384
6385 # Check $CC warning features (if it's GCC).
6386 # We want to use -pedantic, but we don't want warnings about
6387 # * 'long long'
6388 # * variadic macros
6389 # * overlong strings
6390 # * C++11 narrowing conversions in { }
6391 # So, we only use -pedantic if we can disable those warnings.
6392
6393 loose_warn=
6394 save_CFLAGS="$CFLAGS"
6395 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6396 # Do the check with the no- prefix removed since gcc silently
6397 # accepts any -Wno-* option on purpose
6398 case $real_option in
6399 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6400 *) option=$real_option ;;
6401 esac
6402 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6403
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6405 $as_echo_n "checking whether $CC supports $option... " >&6; }
6406 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6407 $as_echo_n "(cached) " >&6
6408 else
6409 CFLAGS="$option"
6410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6411 /* end confdefs.h. */
6412
6413 int
6414 main ()
6415 {
6416
6417 ;
6418 return 0;
6419 }
6420 _ACEOF
6421 if ac_fn_c_try_compile "$LINENO"; then :
6422 eval "$as_acx_Woption=yes"
6423 else
6424 eval "$as_acx_Woption=no"
6425 fi
6426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6427
6428 fi
6429 eval ac_res=\$$as_acx_Woption
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6431 $as_echo "$ac_res" >&6; }
6432 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6433 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6434 fi
6435 done
6436 CFLAGS="$save_CFLAGS"
6437
6438 c_loose_warn=
6439 save_CFLAGS="$CFLAGS"
6440 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6441 # Do the check with the no- prefix removed since gcc silently
6442 # accepts any -Wno-* option on purpose
6443 case $real_option in
6444 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6445 *) option=$real_option ;;
6446 esac
6447 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6448
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6450 $as_echo_n "checking whether $CC supports $option... " >&6; }
6451 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454 CFLAGS="$option"
6455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6456 /* end confdefs.h. */
6457
6458 int
6459 main ()
6460 {
6461
6462 ;
6463 return 0;
6464 }
6465 _ACEOF
6466 if ac_fn_c_try_compile "$LINENO"; then :
6467 eval "$as_acx_Woption=yes"
6468 else
6469 eval "$as_acx_Woption=no"
6470 fi
6471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6472
6473 fi
6474 eval ac_res=\$$as_acx_Woption
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6476 $as_echo "$ac_res" >&6; }
6477 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6478 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6479 fi
6480 done
6481 CFLAGS="$save_CFLAGS"
6482
6483 strict_warn=
6484 save_CFLAGS="$CFLAGS"
6485 for real_option in -Wmissing-format-attribute; do
6486 # Do the check with the no- prefix removed since gcc silently
6487 # accepts any -Wno-* option on purpose
6488 case $real_option in
6489 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6490 *) option=$real_option ;;
6491 esac
6492 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6493
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6495 $as_echo_n "checking whether $CC supports $option... " >&6; }
6496 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6497 $as_echo_n "(cached) " >&6
6498 else
6499 CFLAGS="$option"
6500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501 /* end confdefs.h. */
6502
6503 int
6504 main ()
6505 {
6506
6507 ;
6508 return 0;
6509 }
6510 _ACEOF
6511 if ac_fn_c_try_compile "$LINENO"; then :
6512 eval "$as_acx_Woption=yes"
6513 else
6514 eval "$as_acx_Woption=no"
6515 fi
6516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6517
6518 fi
6519 eval ac_res=\$$as_acx_Woption
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6521 $as_echo "$ac_res" >&6; }
6522 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6523 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6524 fi
6525 done
6526 CFLAGS="$save_CFLAGS"
6527
6528 c_strict_warn=
6529 save_CFLAGS="$CFLAGS"
6530 for real_option in -Wold-style-definition -Wc++-compat; do
6531 # Do the check with the no- prefix removed since gcc silently
6532 # accepts any -Wno-* option on purpose
6533 case $real_option in
6534 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6535 *) option=$real_option ;;
6536 esac
6537 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6538
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6540 $as_echo_n "checking whether $CC supports $option... " >&6; }
6541 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6542 $as_echo_n "(cached) " >&6
6543 else
6544 CFLAGS="$option"
6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h. */
6547
6548 int
6549 main ()
6550 {
6551
6552 ;
6553 return 0;
6554 }
6555 _ACEOF
6556 if ac_fn_c_try_compile "$LINENO"; then :
6557 eval "$as_acx_Woption=yes"
6558 else
6559 eval "$as_acx_Woption=no"
6560 fi
6561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6562
6563 fi
6564 eval ac_res=\$$as_acx_Woption
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6566 $as_echo "$ac_res" >&6; }
6567 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6568 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6569 fi
6570 done
6571 CFLAGS="$save_CFLAGS"
6572
6573 # Do the check with the no- prefix removed from the warning options
6574 # since gcc silently accepts any -Wno-* option on purpose
6575 if test "$GCC" = yes; then :
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6577 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6578 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6579 $as_echo_n "(cached) " >&6
6580 else
6581 save_CFLAGS="$CFLAGS"
6582 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584 /* end confdefs.h. */
6585
6586 int
6587 main ()
6588 {
6589
6590 ;
6591 return 0;
6592 }
6593 _ACEOF
6594 if ac_fn_c_try_compile "$LINENO"; then :
6595 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6596 else
6597 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6598 fi
6599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600 CFLAGS="$save_CFLAGS"
6601 fi
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6603 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6604 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6605 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6606 fi
6607
6608 fi
6609
6610 # Check whether --enable-werror-always was given.
6611 if test "${enable_werror_always+set}" = set; then :
6612 enableval=$enable_werror_always;
6613 else
6614 enable_werror_always=no
6615 fi
6616
6617 if test $enable_werror_always = yes; then :
6618 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6619 fi
6620
6621
6622
6623 # The above macros do nothing if the compiler is not GCC. However, the
6624 # Makefile has more goo to add other flags, so these variables are used
6625 # to enable warnings only for GCC.
6626 warn_cflags=
6627 warn_cxxflags=
6628 if test "x$GCC" = "xyes"; then
6629 warn_cflags='$(GCC_WARN_CFLAGS)'
6630 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6631 fi
6632
6633
6634
6635 # Disable exceptions and RTTI if building with g++
6636 noexception_flags=
6637 save_CFLAGS="$CFLAGS"
6638 for real_option in -fno-exceptions -fno-rtti; do
6639 # Do the check with the no- prefix removed since gcc silently
6640 # accepts any -Wno-* option on purpose
6641 case $real_option in
6642 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6643 *) option=$real_option ;;
6644 esac
6645 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6646
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6648 $as_echo_n "checking whether $CC supports $option... " >&6; }
6649 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6650 $as_echo_n "(cached) " >&6
6651 else
6652 CFLAGS="$option"
6653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654 /* end confdefs.h. */
6655
6656 int
6657 main ()
6658 {
6659
6660 ;
6661 return 0;
6662 }
6663 _ACEOF
6664 if ac_fn_c_try_compile "$LINENO"; then :
6665 eval "$as_acx_Woption=yes"
6666 else
6667 eval "$as_acx_Woption=no"
6668 fi
6669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6670
6671 fi
6672 eval ac_res=\$$as_acx_Woption
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6674 $as_echo "$ac_res" >&6; }
6675 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6676 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6677 fi
6678 done
6679 CFLAGS="$save_CFLAGS"
6680
6681
6682 # Enable expensive internal checks
6683 is_release=
6684 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6685 is_release=yes
6686 fi
6687
6688 # Check whether --enable-checking was given.
6689 if test "${enable_checking+set}" = set; then :
6690 enableval=$enable_checking; ac_checking_flags="${enableval}"
6691 else
6692
6693 # Determine the default checks.
6694 if test x$is_release = x ; then
6695 ac_checking_flags=yes
6696 else
6697 ac_checking_flags=release
6698 fi
6699 fi
6700
6701 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6702 for check in release $ac_checking_flags
6703 do
6704 case $check in
6705 # these set all the flags to specific states
6706 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6707 ac_fold_checking= ; ac_gc_checking=1 ;
6708 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6709 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6710 ac_tree_checking=1 ; ac_valgrind_checking= ;
6711 ac_types_checking=1 ;;
6712 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6713 ac_fold_checking= ; ac_gc_checking= ;
6714 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6715 ac_rtlflag_checking= ; ac_runtime_checking= ;
6716 ac_tree_checking= ; ac_valgrind_checking= ;
6717 ac_types_checking= ;;
6718 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6719 ac_fold_checking=1 ; ac_gc_checking=1 ;
6720 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6721 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6722 ac_tree_checking=1 ; ac_valgrind_checking= ;
6723 ac_types_checking=1 ;;
6724 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6725 ac_fold_checking= ; ac_gc_checking= ;
6726 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6727 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6728 ac_tree_checking= ; ac_valgrind_checking= ;
6729 ac_types_checking= ;;
6730 # these enable particular checks
6731 assert) ac_assert_checking=1 ;;
6732 df) ac_df_checking=1 ;;
6733 fold) ac_fold_checking=1 ;;
6734 gc) ac_gc_checking=1 ;;
6735 gcac) ac_gc_always_collect=1 ;;
6736 gimple) ac_gimple_checking=1 ;;
6737 misc) ac_checking=1 ;;
6738 rtl) ac_rtl_checking=1 ;;
6739 rtlflag) ac_rtlflag_checking=1 ;;
6740 runtime) ac_runtime_checking=1 ;;
6741 tree) ac_tree_checking=1 ;;
6742 types) ac_types_checking=1 ;;
6743 valgrind) ac_valgrind_checking=1 ;;
6744 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6745 esac
6746 done
6747 IFS="$ac_save_IFS"
6748
6749 nocommon_flag=""
6750 if test x$ac_checking != x ; then
6751
6752 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6753
6754 nocommon_flag=-fno-common
6755 fi
6756
6757 if test x$ac_df_checking != x ; then
6758
6759 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6760
6761 fi
6762 if test x$ac_assert_checking != x ; then
6763
6764 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6765
6766 fi
6767 if test x$ac_gimple_checking != x ; then
6768
6769 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6770
6771 fi
6772
6773 if test x$ac_runtime_checking != x ; then
6774
6775 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6776
6777 fi
6778 if test x$ac_tree_checking != x ; then
6779
6780 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6781
6782 TREEBROWSER=tree-browser.o
6783 fi
6784 if test x$ac_types_checking != x ; then
6785
6786 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6787
6788 fi
6789
6790 if test x$ac_rtl_checking != x ; then
6791
6792 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6793
6794 fi
6795 if test x$ac_rtlflag_checking != x ; then
6796
6797 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6798
6799 fi
6800 if test x$ac_gc_checking != x ; then
6801
6802 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6803
6804 fi
6805 if test x$ac_gc_always_collect != x ; then
6806
6807 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6808
6809 fi
6810 if test x$ac_fold_checking != x ; then
6811
6812 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6813
6814 fi
6815 valgrind_path_defines=
6816 valgrind_command=
6817
6818 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6819 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6820 have_valgrind_h=yes
6821 else
6822 have_valgrind_h=no
6823 fi
6824
6825
6826
6827 if test x$ac_valgrind_checking != x ; then
6828 # It is certainly possible that there's valgrind but no valgrind.h.
6829 # GCC relies on making annotations so we must have both.
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6831 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6834 #include <valgrind/memcheck.h>
6835 #ifndef VALGRIND_DISCARD
6836 #error VALGRIND_DISCARD not defined
6837 #endif
6838 _ACEOF
6839 if ac_fn_c_try_cpp "$LINENO"; then :
6840 gcc_cv_header_valgrind_memcheck_h=yes
6841 else
6842 gcc_cv_header_valgrind_memcheck_h=no
6843 fi
6844 rm -f conftest.err conftest.$ac_ext
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6846 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6848 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6851 #include <memcheck.h>
6852 #ifndef VALGRIND_DISCARD
6853 #error VALGRIND_DISCARD not defined
6854 #endif
6855 _ACEOF
6856 if ac_fn_c_try_cpp "$LINENO"; then :
6857 gcc_cv_header_memcheck_h=yes
6858 else
6859 gcc_cv_header_memcheck_h=no
6860 fi
6861 rm -f conftest.err conftest.$ac_ext
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6863 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6864
6865 # Prepare PATH_SEPARATOR.
6866 # The user is always right.
6867 if test "${PATH_SEPARATOR+set}" != set; then
6868 echo "#! /bin/sh" >conf$$.sh
6869 echo "exit 0" >>conf$$.sh
6870 chmod +x conf$$.sh
6871 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6872 PATH_SEPARATOR=';'
6873 else
6874 PATH_SEPARATOR=:
6875 fi
6876 rm -f conf$$.sh
6877 fi
6878
6879 # Find out how to test for executable files. Don't use a zero-byte file,
6880 # as systems may use methods other than mode bits to determine executability.
6881 cat >conf$$.file <<_ASEOF
6882 #! /bin/sh
6883 exit 0
6884 _ASEOF
6885 chmod +x conf$$.file
6886 if test -x conf$$.file >/dev/null 2>&1; then
6887 ac_executable_p="test -x"
6888 else
6889 ac_executable_p="test -f"
6890 fi
6891 rm -f conf$$.file
6892
6893 # Extract the first word of "valgrind", so it can be a program name with args.
6894 set dummy valgrind; ac_word=$2
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896 $as_echo_n "checking for $ac_word... " >&6; }
6897 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6898 $as_echo_n "(cached) " >&6
6899 else
6900 case "$valgrind_path" in
6901 [\\/]* | ?:[\\/]*)
6902 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6903 ;;
6904 *)
6905 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6906 for ac_dir in $PATH; do
6907 IFS="$ac_save_IFS"
6908 test -z "$ac_dir" && ac_dir=.
6909 for ac_exec_ext in '' $ac_executable_extensions; do
6910 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6911 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6912 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6913 break 2
6914 fi
6915 fi
6916 done
6917 done
6918 IFS="$ac_save_IFS"
6919 ;;
6920 esac
6921 fi
6922 valgrind_path="$ac_cv_path_valgrind_path"
6923 if test -n "$valgrind_path"; then
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6925 $as_echo "$valgrind_path" >&6; }
6926 else
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928 $as_echo "no" >&6; }
6929 fi
6930
6931 if test "x$valgrind_path" = "x" \
6932 || (test $have_valgrind_h = no \
6933 && test $gcc_cv_header_memcheck_h = no \
6934 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6935 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6936 fi
6937 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6938 valgrind_command="$valgrind_path -q"
6939
6940 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6941
6942 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6943
6944 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6945
6946 fi
6947 if test $gcc_cv_header_memcheck_h = yes; then
6948
6949 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6950
6951 fi
6952 fi
6953
6954
6955
6956 # Enable code coverage collection
6957 # Check whether --enable-coverage was given.
6958 if test "${enable_coverage+set}" = set; then :
6959 enableval=$enable_coverage; case "${enableval}" in
6960 yes|noopt)
6961 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6962 ;;
6963 opt)
6964 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6965 ;;
6966 no)
6967 # a.k.a. --disable-coverage
6968 coverage_flags=""
6969 ;;
6970 *)
6971 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6972 ;;
6973 esac
6974 else
6975 coverage_flags=""
6976 fi
6977
6978
6979
6980 # Check whether --enable-gather-detailed-mem-stats was given.
6981 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6982 enableval=$enable_gather_detailed_mem_stats;
6983 else
6984 enable_gather_detailed_mem_stats=no
6985 fi
6986
6987 if test x$enable_gather_detailed_mem_stats = xyes ; then
6988
6989 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6990
6991 fi
6992
6993 # -------------------------------
6994 # Miscenalleous configure options
6995 # -------------------------------
6996
6997 # See if we are building gcc with C++.
6998 # Check whether --enable-build-with-cxx was given.
6999 if test "${enable_build_with_cxx+set}" = set; then :
7000 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
7001 else
7002 ENABLE_BUILD_WITH_CXX=no
7003 fi
7004
7005
7006 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
7007
7008 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
7009
7010 fi
7011
7012 # With stabs
7013
7014 # Check whether --with-stabs was given.
7015 if test "${with_stabs+set}" = set; then :
7016 withval=$with_stabs; stabs="$with_stabs"
7017 else
7018 stabs=no
7019 fi
7020
7021
7022 # Determine whether or not multilibs are enabled.
7023 # Check whether --enable-multilib was given.
7024 if test "${enable_multilib+set}" = set; then :
7025 enableval=$enable_multilib;
7026 else
7027 enable_multilib=yes
7028 fi
7029
7030
7031
7032 # Enable __cxa_atexit for C++.
7033 # Check whether --enable-__cxa_atexit was given.
7034 if test "${enable___cxa_atexit+set}" = set; then :
7035 enableval=$enable___cxa_atexit;
7036 fi
7037
7038
7039 # Enable C extension for decimal float if target supports it.
7040
7041 # Check whether --enable-decimal-float was given.
7042 if test "${enable_decimal_float+set}" = set; then :
7043 enableval=$enable_decimal_float;
7044 case $enable_decimal_float in
7045 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7046 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7047 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7048 esac
7049
7050 else
7051
7052 case $target in
7053 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7054 i?86*-*-mingw* | x86_64*-*-mingw* | \
7055 i?86*-*-cygwin*)
7056 enable_decimal_float=yes
7057 ;;
7058 *)
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7060 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7061 enable_decimal_float=no
7062 ;;
7063 esac
7064
7065 fi
7066
7067
7068 # x86's use BID format instead of DPD
7069 case x$enable_decimal_float in
7070 xyes)
7071 case $target in
7072 i?86*-*-* | x86_64*-*-*)
7073 enable_decimal_float=bid
7074 ;;
7075 *)
7076 enable_decimal_float=dpd
7077 ;;
7078 esac
7079 default_decimal_float=$enable_decimal_float
7080 ;;
7081 xno)
7082 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7083 # dependency on libdecnumber.
7084 default_decimal_float=dpd
7085 ;;
7086 esac
7087
7088
7089
7090
7091 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7092
7093 cat >>confdefs.h <<_ACEOF
7094 #define ENABLE_DECIMAL_FLOAT $dfp
7095 _ACEOF
7096
7097
7098 # Use default_decimal_float for dependency.
7099 enable_decimal_float=$default_decimal_float
7100
7101 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7102
7103 cat >>confdefs.h <<_ACEOF
7104 #define ENABLE_DECIMAL_BID_FORMAT $bid
7105 _ACEOF
7106
7107
7108 # Enable C extension for fixed-point arithmetic.
7109 # Check whether --enable-fixed-point was given.
7110 if test "${enable_fixed_point+set}" = set; then :
7111 enableval=$enable_fixed_point;
7112 else
7113
7114 case $target in
7115 arm*)
7116 enable_fixed_point=yes
7117 ;;
7118
7119 mips*-*-*)
7120 enable_fixed_point=yes
7121 ;;
7122 *)
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7124 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7125 enable_fixed_point=no
7126 ;;
7127 esac
7128
7129 fi
7130
7131
7132
7133 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7134
7135 cat >>confdefs.h <<_ACEOF
7136 #define ENABLE_FIXED_POINT $fixedpoint
7137 _ACEOF
7138
7139
7140 # Enable threads
7141 # Pass with no value to take the default
7142 # Pass with a value to specify a thread package
7143 # Check whether --enable-threads was given.
7144 if test "${enable_threads+set}" = set; then :
7145 enableval=$enable_threads;
7146 else
7147 enable_threads=''
7148 fi
7149
7150
7151 # Check whether --enable-tls was given.
7152 if test "${enable_tls+set}" = set; then :
7153 enableval=$enable_tls;
7154 case $enable_tls in
7155 yes | no) ;;
7156 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7157 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7158 esac
7159
7160 else
7161 enable_tls=''
7162 fi
7163
7164
7165 # Check whether --enable-objc-gc was given.
7166 if test "${enable_objc_gc+set}" = set; then :
7167 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7168 objc_boehm_gc=''
7169 else
7170 objc_boehm_gc=1
7171 fi
7172 else
7173 objc_boehm_gc=''
7174 fi
7175
7176
7177
7178 # Check whether --with-dwarf2 was given.
7179 if test "${with_dwarf2+set}" = set; then :
7180 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7181 else
7182 dwarf2=no
7183 fi
7184
7185
7186 # Check whether --enable-shared was given.
7187 if test "${enable_shared+set}" = set; then :
7188 enableval=$enable_shared;
7189 case $enable_shared in
7190 yes | no) ;;
7191 *)
7192 enable_shared=no
7193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7194 for pkg in $enableval; do
7195 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7196 enable_shared=yes
7197 fi
7198 done
7199 IFS="$ac_save_ifs"
7200 ;;
7201 esac
7202
7203 else
7204 enable_shared=yes
7205 fi
7206
7207
7208
7209
7210 # Check whether --with-native-system-header-dir was given.
7211 if test "${with_native_system_header_dir+set}" = set; then :
7212 withval=$with_native_system_header_dir;
7213 case ${with_native_system_header_dir} in
7214 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7215 /* | [A-Za-z]:[\\/]*) ;;
7216 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7217 esac
7218 configured_native_system_header_dir="${withval}"
7219
7220 else
7221 configured_native_system_header_dir=
7222 fi
7223
7224
7225
7226 # Check whether --with-build-sysroot was given.
7227 if test "${with_build_sysroot+set}" = set; then :
7228 withval=$with_build_sysroot; if test x"$withval" != x ; then
7229 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7230 fi
7231 else
7232 SYSROOT_CFLAGS_FOR_TARGET=
7233 fi
7234
7235
7236
7237
7238 # Check whether --with-sysroot was given.
7239 if test "${with_sysroot+set}" = set; then :
7240 withval=$with_sysroot;
7241 case ${with_sysroot} in
7242 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7243 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7244 esac
7245
7246 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7247 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7248
7249 if test "x$prefix" = xNONE; then
7250 test_prefix=/usr/local
7251 else
7252 test_prefix=$prefix
7253 fi
7254 if test "x$exec_prefix" = xNONE; then
7255 test_exec_prefix=$test_prefix
7256 else
7257 test_exec_prefix=$exec_prefix
7258 fi
7259 case ${TARGET_SYSTEM_ROOT} in
7260 "${test_prefix}"|"${test_prefix}/"*|\
7261 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7262 '${prefix}'|'${prefix}/'*|\
7263 '${exec_prefix}'|'${exec_prefix}/'*)
7264 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7265 TARGET_SYSTEM_ROOT_DEFINE="$t"
7266 ;;
7267 esac
7268
7269 else
7270
7271 TARGET_SYSTEM_ROOT=
7272 TARGET_SYSTEM_ROOT_DEFINE=
7273 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7274
7275 fi
7276
7277
7278
7279
7280
7281
7282 # Check whether --with-specs was given.
7283 if test "${with_specs+set}" = set; then :
7284 withval=$with_specs; CONFIGURE_SPECS=$withval
7285 else
7286 CONFIGURE_SPECS=
7287
7288 fi
7289
7290
7291
7292
7293
7294 # Check whether --with-pkgversion was given.
7295 if test "${with_pkgversion+set}" = set; then :
7296 withval=$with_pkgversion; case "$withval" in
7297 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7298 no) PKGVERSION= ;;
7299 *) PKGVERSION="($withval) " ;;
7300 esac
7301 else
7302 PKGVERSION="(GCC) "
7303
7304 fi
7305
7306
7307
7308
7309
7310 # Check whether --with-bugurl was given.
7311 if test "${with_bugurl+set}" = set; then :
7312 withval=$with_bugurl; case "$withval" in
7313 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7314 no) BUGURL=
7315 ;;
7316 *) BUGURL="$withval"
7317 ;;
7318 esac
7319 else
7320 BUGURL="http://gcc.gnu.org/bugs.html"
7321
7322 fi
7323
7324 case ${BUGURL} in
7325 "")
7326 REPORT_BUGS_TO=
7327 REPORT_BUGS_TEXI=
7328 ;;
7329 *)
7330 REPORT_BUGS_TO="<$BUGURL>"
7331 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7332 ;;
7333 esac;
7334
7335
7336
7337
7338 # Sanity check enable_languages in case someone does not run the toplevel
7339 # configure # script.
7340 # Check whether --enable-languages was given.
7341 if test "${enable_languages+set}" = set; then :
7342 enableval=$enable_languages; case ,${enable_languages}, in
7343 ,,|,yes,)
7344 # go safe -- we cannot be much sure without the toplevel
7345 # configure's
7346 # analysis of which target libs are present and usable
7347 enable_languages=c
7348 ;;
7349 *,all,*)
7350 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7351 ;;
7352 *,c,*)
7353 ;;
7354 *)
7355 enable_languages=c,${enable_languages}
7356 ;;
7357 esac
7358 else
7359 enable_languages=c
7360 fi
7361
7362
7363
7364 # Check whether --with-multilib-list was given.
7365 if test "${with_multilib_list+set}" = set; then :
7366 withval=$with_multilib_list; :
7367 else
7368 with_multilib_list=default
7369 fi
7370
7371
7372 # -------------------------
7373 # Checks for other programs
7374 # -------------------------
7375
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7377 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7378 set x ${MAKE-make}
7379 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7380 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7381 $as_echo_n "(cached) " >&6
7382 else
7383 cat >conftest.make <<\_ACEOF
7384 SHELL = /bin/sh
7385 all:
7386 @echo '@@@%%%=$(MAKE)=@@@%%%'
7387 _ACEOF
7388 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7389 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7390 *@@@%%%=?*=@@@%%%*)
7391 eval ac_cv_prog_make_${ac_make}_set=yes;;
7392 *)
7393 eval ac_cv_prog_make_${ac_make}_set=no;;
7394 esac
7395 rm -f conftest.make
7396 fi
7397 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7399 $as_echo "yes" >&6; }
7400 SET_MAKE=
7401 else
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403 $as_echo "no" >&6; }
7404 SET_MAKE="MAKE=${MAKE-make}"
7405 fi
7406
7407
7408 # Find some useful tools
7409 for ac_prog in gawk mawk nawk awk
7410 do
7411 # Extract the first word of "$ac_prog", so it can be a program name with args.
7412 set dummy $ac_prog; ac_word=$2
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7414 $as_echo_n "checking for $ac_word... " >&6; }
7415 if test "${ac_cv_prog_AWK+set}" = set; then :
7416 $as_echo_n "(cached) " >&6
7417 else
7418 if test -n "$AWK"; then
7419 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7420 else
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 for as_dir in $PATH
7423 do
7424 IFS=$as_save_IFS
7425 test -z "$as_dir" && as_dir=.
7426 for ac_exec_ext in '' $ac_executable_extensions; do
7427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7428 ac_cv_prog_AWK="$ac_prog"
7429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7430 break 2
7431 fi
7432 done
7433 done
7434 IFS=$as_save_IFS
7435
7436 fi
7437 fi
7438 AWK=$ac_cv_prog_AWK
7439 if test -n "$AWK"; then
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7441 $as_echo "$AWK" >&6; }
7442 else
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444 $as_echo "no" >&6; }
7445 fi
7446
7447
7448 test -n "$AWK" && break
7449 done
7450
7451 # We need awk to create options.c and options.h.
7452 # Bail out if it's missing.
7453 case ${AWK} in
7454 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7455 esac
7456
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7458 $as_echo_n "checking whether ln -s works... " >&6; }
7459 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7460 $as_echo_n "(cached) " >&6
7461 else
7462 rm -f conftestdata_t
7463 echo >conftestdata_f
7464 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7465 then
7466 gcc_cv_prog_LN_S="ln -s"
7467 else
7468 if ln conftestdata_f conftestdata_t 2>/dev/null
7469 then
7470 gcc_cv_prog_LN_S=ln
7471 else
7472 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7473 then
7474 gcc_cv_prog_LN_S="cp -p"
7475 else
7476 gcc_cv_prog_LN_S=cp
7477 fi
7478 fi
7479 fi
7480 rm -f conftestdata_f conftestdata_t
7481
7482 fi
7483 LN_S="$gcc_cv_prog_LN_S"
7484 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7486 $as_echo "yes" >&6; }
7487 else
7488 if test "$gcc_cv_prog_LN_S" = "ln"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7490 $as_echo "no, using ln" >&6; }
7491 else
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7493 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7494 fi
7495 fi
7496
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7498 $as_echo_n "checking whether ln works... " >&6; }
7499 if test "${acx_cv_prog_LN+set}" = set; then :
7500 $as_echo_n "(cached) " >&6
7501 else
7502 rm -f conftestdata_t
7503 echo >conftestdata_f
7504 if ln conftestdata_f conftestdata_t 2>/dev/null
7505 then
7506 acx_cv_prog_LN=ln
7507 else
7508 acx_cv_prog_LN=no
7509 fi
7510 rm -f conftestdata_f conftestdata_t
7511
7512 fi
7513 if test $acx_cv_prog_LN = no; then
7514 LN="$LN_S"
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7516 $as_echo "no, using $LN" >&6; }
7517 else
7518 LN="$acx_cv_prog_LN"
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7520 $as_echo "yes" >&6; }
7521 fi
7522
7523 if test -n "$ac_tool_prefix"; then
7524 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7525 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7527 $as_echo_n "checking for $ac_word... " >&6; }
7528 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7529 $as_echo_n "(cached) " >&6
7530 else
7531 if test -n "$RANLIB"; then
7532 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7533 else
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 for as_dir in $PATH
7536 do
7537 IFS=$as_save_IFS
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7541 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 break 2
7544 fi
7545 done
7546 done
7547 IFS=$as_save_IFS
7548
7549 fi
7550 fi
7551 RANLIB=$ac_cv_prog_RANLIB
7552 if test -n "$RANLIB"; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7554 $as_echo "$RANLIB" >&6; }
7555 else
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557 $as_echo "no" >&6; }
7558 fi
7559
7560
7561 fi
7562 if test -z "$ac_cv_prog_RANLIB"; then
7563 ac_ct_RANLIB=$RANLIB
7564 # Extract the first word of "ranlib", so it can be a program name with args.
7565 set dummy ranlib; ac_word=$2
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7567 $as_echo_n "checking for $ac_word... " >&6; }
7568 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7569 $as_echo_n "(cached) " >&6
7570 else
7571 if test -n "$ac_ct_RANLIB"; then
7572 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7573 else
7574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575 for as_dir in $PATH
7576 do
7577 IFS=$as_save_IFS
7578 test -z "$as_dir" && as_dir=.
7579 for ac_exec_ext in '' $ac_executable_extensions; do
7580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7581 ac_cv_prog_ac_ct_RANLIB="ranlib"
7582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7583 break 2
7584 fi
7585 done
7586 done
7587 IFS=$as_save_IFS
7588
7589 fi
7590 fi
7591 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7592 if test -n "$ac_ct_RANLIB"; then
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7594 $as_echo "$ac_ct_RANLIB" >&6; }
7595 else
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7597 $as_echo "no" >&6; }
7598 fi
7599
7600 if test "x$ac_ct_RANLIB" = x; then
7601 RANLIB=":"
7602 else
7603 case $cross_compiling:$ac_tool_warned in
7604 yes:)
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7607 ac_tool_warned=yes ;;
7608 esac
7609 RANLIB=$ac_ct_RANLIB
7610 fi
7611 else
7612 RANLIB="$ac_cv_prog_RANLIB"
7613 fi
7614
7615 ranlib_flags=""
7616
7617
7618 # Find a good install program. We prefer a C program (faster),
7619 # so one script is as good as another. But avoid the broken or
7620 # incompatible versions:
7621 # SysV /etc/install, /usr/sbin/install
7622 # SunOS /usr/etc/install
7623 # IRIX /sbin/install
7624 # AIX /bin/install
7625 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7626 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7627 # ./install, which can be erroneously created by make from ./install.sh.
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7629 $as_echo_n "checking for a BSD compatible install... " >&6; }
7630 if test -z "$INSTALL"; then
7631 if test "${ac_cv_path_install+set}" = set; then :
7632 $as_echo_n "(cached) " >&6
7633 else
7634 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7635 for ac_dir in $PATH; do
7636 # Account for people who put trailing slashes in PATH elements.
7637 case "$ac_dir/" in
7638 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7639 *)
7640 # OSF1 and SCO ODT 3.0 have their own names for install.
7641 for ac_prog in ginstall scoinst install; do
7642 if test -f $ac_dir/$ac_prog; then
7643 if test $ac_prog = install &&
7644 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7645 # AIX install. It has an incompatible calling convention.
7646 # OSF/1 installbsd also uses dspmsg, but is usable.
7647 :
7648 else
7649 ac_cv_path_install="$ac_dir/$ac_prog -c"
7650 break 2
7651 fi
7652 fi
7653 done
7654 ;;
7655 esac
7656 done
7657 IFS="$ac_save_IFS"
7658
7659 fi
7660 if test "${ac_cv_path_install+set}" = set; then
7661 INSTALL="$ac_cv_path_install"
7662 else
7663 # As a last resort, use the slow shell script. We don't cache a
7664 # path for INSTALL within a source directory, because that will
7665 # break other packages using the cache if that directory is
7666 # removed, or if the path is relative.
7667 INSTALL="$ac_install_sh"
7668 fi
7669 fi
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7671 $as_echo "$INSTALL" >&6; }
7672
7673 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7674 # It thinks the first close brace ends the variable substitution.
7675 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7676
7677 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7678
7679
7680 # See if cmp has --ignore-initial.
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7682 $as_echo_n "checking for cmp's capabilities... " >&6; }
7683 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7684 $as_echo_n "(cached) " >&6
7685 else
7686 echo abfoo >t1
7687 echo cdfoo >t2
7688 gcc_cv_prog_cmp_skip=slowcompare
7689 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7690 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7691 :
7692 else
7693 gcc_cv_prog_cmp_skip=gnucompare
7694 fi
7695 fi
7696 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7697 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7698 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7699 :
7700 else
7701 gcc_cv_prog_cmp_skip=fastcompare
7702 fi
7703 fi
7704 fi
7705 rm t1 t2
7706
7707 fi
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7709 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7710 make_compare_target=$gcc_cv_prog_cmp_skip
7711
7712
7713
7714 # See if we have the mktemp command.
7715 # Extract the first word of "mktemp", so it can be a program name with args.
7716 set dummy mktemp; ac_word=$2
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7718 $as_echo_n "checking for $ac_word... " >&6; }
7719 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7720 $as_echo_n "(cached) " >&6
7721 else
7722 if test -n "$have_mktemp_command"; then
7723 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7724 else
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726 for as_dir in $PATH
7727 do
7728 IFS=$as_save_IFS
7729 test -z "$as_dir" && as_dir=.
7730 for ac_exec_ext in '' $ac_executable_extensions; do
7731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7732 ac_cv_prog_have_mktemp_command="yes"
7733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7734 break 2
7735 fi
7736 done
7737 done
7738 IFS=$as_save_IFS
7739
7740 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7741 fi
7742 fi
7743 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7744 if test -n "$have_mktemp_command"; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7746 $as_echo "$have_mktemp_command" >&6; }
7747 else
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749 $as_echo "no" >&6; }
7750 fi
7751
7752
7753
7754 # See if makeinfo has been installed and is modern enough
7755 # that we can use it.
7756
7757 # Extract the first word of "makeinfo", so it can be a program name with args.
7758 set dummy makeinfo; ac_word=$2
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760 $as_echo_n "checking for $ac_word... " >&6; }
7761 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7762 $as_echo_n "(cached) " >&6
7763 else
7764 if test -n "$MAKEINFO"; then
7765 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7766 else
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 for as_dir in $PATH
7769 do
7770 IFS=$as_save_IFS
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7774 ac_cv_prog_MAKEINFO="makeinfo"
7775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 break 2
7777 fi
7778 done
7779 done
7780 IFS=$as_save_IFS
7781
7782 fi
7783 fi
7784 MAKEINFO=$ac_cv_prog_MAKEINFO
7785 if test -n "$MAKEINFO"; then
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7787 $as_echo "$MAKEINFO" >&6; }
7788 else
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7791 fi
7792
7793
7794 if test -n "$MAKEINFO"; then
7795 # Found it, now check the version.
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7797 $as_echo_n "checking for modern makeinfo... " >&6; }
7798 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7799 $as_echo_n "(cached) " >&6
7800 else
7801 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7802 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7803
7804 case $ac_prog_version in
7805 '') gcc_cv_prog_makeinfo_modern=no;;
7806 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7807 *) gcc_cv_prog_makeinfo_modern=no;;
7808 esac
7809
7810 fi
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7812 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7813 else
7814 gcc_cv_prog_makeinfo_modern=no
7815 fi
7816 if test $gcc_cv_prog_makeinfo_modern = no; then
7817 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7818 fi
7819
7820 if test $gcc_cv_prog_makeinfo_modern = no; then
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7822 *** Makeinfo is missing or too old.
7823 *** Info documentation will not be built." >&5
7824 $as_echo "$as_me: WARNING:
7825 *** Makeinfo is missing or too old.
7826 *** Info documentation will not be built." >&2;}
7827 BUILD_INFO=
7828 else
7829 BUILD_INFO=info
7830 fi
7831
7832
7833 # Is pod2man recent enough to regenerate manpages?
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7835 $as_echo_n "checking for recent Pod::Man... " >&6; }
7836 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7838 $as_echo "yes" >&6; }
7839 GENERATED_MANPAGES=generated-manpages
7840 else
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7843 GENERATED_MANPAGES=
7844 fi
7845
7846
7847 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7848
7849 # How about lex?
7850 for ac_prog in flex
7851 do
7852 # Extract the first word of "$ac_prog", so it can be a program name with args.
7853 set dummy $ac_prog; ac_word=$2
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855 $as_echo_n "checking for $ac_word... " >&6; }
7856 if test "${ac_cv_prog_FLEX+set}" = set; then :
7857 $as_echo_n "(cached) " >&6
7858 else
7859 if test -n "$FLEX"; then
7860 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7861 else
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 for as_dir in $PATH
7864 do
7865 IFS=$as_save_IFS
7866 test -z "$as_dir" && as_dir=.
7867 for ac_exec_ext in '' $ac_executable_extensions; do
7868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7869 ac_cv_prog_FLEX="$ac_prog"
7870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7871 break 2
7872 fi
7873 done
7874 done
7875 IFS=$as_save_IFS
7876
7877 fi
7878 fi
7879 FLEX=$ac_cv_prog_FLEX
7880 if test -n "$FLEX"; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7882 $as_echo "$FLEX" >&6; }
7883 else
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7886 fi
7887
7888
7889 test -n "$FLEX" && break
7890 done
7891 test -n "$FLEX" || FLEX="$MISSING flex"
7892
7893
7894 # Bison?
7895 for ac_prog in bison
7896 do
7897 # Extract the first word of "$ac_prog", so it can be a program name with args.
7898 set dummy $ac_prog; ac_word=$2
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900 $as_echo_n "checking for $ac_word... " >&6; }
7901 if test "${ac_cv_prog_BISON+set}" = set; then :
7902 $as_echo_n "(cached) " >&6
7903 else
7904 if test -n "$BISON"; then
7905 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7906 else
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 for as_dir in $PATH
7909 do
7910 IFS=$as_save_IFS
7911 test -z "$as_dir" && as_dir=.
7912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7914 ac_cv_prog_BISON="$ac_prog"
7915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7916 break 2
7917 fi
7918 done
7919 done
7920 IFS=$as_save_IFS
7921
7922 fi
7923 fi
7924 BISON=$ac_cv_prog_BISON
7925 if test -n "$BISON"; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7927 $as_echo "$BISON" >&6; }
7928 else
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930 $as_echo "no" >&6; }
7931 fi
7932
7933
7934 test -n "$BISON" && break
7935 done
7936 test -n "$BISON" || BISON="$MISSING bison"
7937
7938
7939 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7940 # check for build == host before using them.
7941
7942 # NM
7943 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7944 && test -d ../binutils ; then
7945 NM='${objdir}/../binutils/nm-new'
7946 else
7947 # Extract the first word of "nm", so it can be a program name with args.
7948 set dummy nm; ac_word=$2
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7950 $as_echo_n "checking for $ac_word... " >&6; }
7951 if test "${ac_cv_prog_NM+set}" = set; then :
7952 $as_echo_n "(cached) " >&6
7953 else
7954 if test -n "$NM"; then
7955 ac_cv_prog_NM="$NM" # Let the user override the test.
7956 else
7957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958 for as_dir in $PATH
7959 do
7960 IFS=$as_save_IFS
7961 test -z "$as_dir" && as_dir=.
7962 for ac_exec_ext in '' $ac_executable_extensions; do
7963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7964 ac_cv_prog_NM="nm"
7965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7966 break 2
7967 fi
7968 done
7969 done
7970 IFS=$as_save_IFS
7971
7972 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7973 fi
7974 fi
7975 NM=$ac_cv_prog_NM
7976 if test -n "$NM"; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7978 $as_echo "$NM" >&6; }
7979 else
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981 $as_echo "no" >&6; }
7982 fi
7983
7984
7985 fi
7986
7987 # AR
7988 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7989 && test -d ../binutils ; then
7990 AR='${objdir}/../binutils/ar'
7991 else
7992 # Extract the first word of "ar", so it can be a program name with args.
7993 set dummy ar; ac_word=$2
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7995 $as_echo_n "checking for $ac_word... " >&6; }
7996 if test "${ac_cv_prog_AR+set}" = set; then :
7997 $as_echo_n "(cached) " >&6
7998 else
7999 if test -n "$AR"; then
8000 ac_cv_prog_AR="$AR" # Let the user override the test.
8001 else
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 for as_dir in $PATH
8004 do
8005 IFS=$as_save_IFS
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8009 ac_cv_prog_AR="ar"
8010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 break 2
8012 fi
8013 done
8014 done
8015 IFS=$as_save_IFS
8016
8017 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8018 fi
8019 fi
8020 AR=$ac_cv_prog_AR
8021 if test -n "$AR"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8023 $as_echo "$AR" >&6; }
8024 else
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8027 fi
8028
8029
8030 fi
8031
8032
8033 # --------------------
8034 # Checks for C headers
8035 # --------------------
8036
8037 # Need to reject headers which give warnings, so that the -Werror bootstrap
8038 # works later. *sigh* This needs to come before all header checks.
8039
8040 ac_c_preproc_warn_flag=yes
8041
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8043 $as_echo_n "checking for ANSI C header files... " >&6; }
8044 if test "${ac_cv_header_stdc+set}" = set; then :
8045 $as_echo_n "(cached) " >&6
8046 else
8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h. */
8049 #include <stdlib.h>
8050 #include <stdarg.h>
8051 #include <string.h>
8052 #include <float.h>
8053
8054 int
8055 main ()
8056 {
8057
8058 ;
8059 return 0;
8060 }
8061 _ACEOF
8062 if ac_fn_c_try_compile "$LINENO"; then :
8063 ac_cv_header_stdc=yes
8064 else
8065 ac_cv_header_stdc=no
8066 fi
8067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8068
8069 if test $ac_cv_header_stdc = yes; then
8070 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h. */
8073 #include <string.h>
8074
8075 _ACEOF
8076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8077 $EGREP "memchr" >/dev/null 2>&1; then :
8078
8079 else
8080 ac_cv_header_stdc=no
8081 fi
8082 rm -f conftest*
8083
8084 fi
8085
8086 if test $ac_cv_header_stdc = yes; then
8087 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8089 /* end confdefs.h. */
8090 #include <stdlib.h>
8091
8092 _ACEOF
8093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8094 $EGREP "free" >/dev/null 2>&1; then :
8095
8096 else
8097 ac_cv_header_stdc=no
8098 fi
8099 rm -f conftest*
8100
8101 fi
8102
8103 if test $ac_cv_header_stdc = yes; then
8104 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8105 if test "$cross_compiling" = yes; then :
8106 :
8107 else
8108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109 /* end confdefs.h. */
8110 #include <ctype.h>
8111 #include <stdlib.h>
8112 #if ((' ' & 0x0FF) == 0x020)
8113 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8114 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8115 #else
8116 # define ISLOWER(c) \
8117 (('a' <= (c) && (c) <= 'i') \
8118 || ('j' <= (c) && (c) <= 'r') \
8119 || ('s' <= (c) && (c) <= 'z'))
8120 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8121 #endif
8122
8123 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8124 int
8125 main ()
8126 {
8127 int i;
8128 for (i = 0; i < 256; i++)
8129 if (XOR (islower (i), ISLOWER (i))
8130 || toupper (i) != TOUPPER (i))
8131 return 2;
8132 return 0;
8133 }
8134 _ACEOF
8135 if ac_fn_c_try_run "$LINENO"; then :
8136
8137 else
8138 ac_cv_header_stdc=no
8139 fi
8140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8141 conftest.$ac_objext conftest.beam conftest.$ac_ext
8142 fi
8143
8144 fi
8145 fi
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8147 $as_echo "$ac_cv_header_stdc" >&6; }
8148 if test $ac_cv_header_stdc = yes; then
8149
8150 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8151
8152 fi
8153
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8155 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8156 if test "${ac_cv_header_time+set}" = set; then :
8157 $as_echo_n "(cached) " >&6
8158 else
8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h. */
8161 #include <sys/types.h>
8162 #include <sys/time.h>
8163 #include <time.h>
8164
8165 int
8166 main ()
8167 {
8168 if ((struct tm *) 0)
8169 return 0;
8170 ;
8171 return 0;
8172 }
8173 _ACEOF
8174 if ac_fn_c_try_compile "$LINENO"; then :
8175 ac_cv_header_time=yes
8176 else
8177 ac_cv_header_time=no
8178 fi
8179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8180 fi
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8182 $as_echo "$ac_cv_header_time" >&6; }
8183 if test $ac_cv_header_time = yes; then
8184
8185 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8186
8187 fi
8188
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8190 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8191 if test "${gcc_cv_header_string+set}" = set; then :
8192 $as_echo_n "(cached) " >&6
8193 else
8194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195 /* end confdefs.h. */
8196 #include <string.h>
8197 #include <strings.h>
8198 int
8199 main ()
8200 {
8201
8202 ;
8203 return 0;
8204 }
8205 _ACEOF
8206 if ac_fn_c_try_compile "$LINENO"; then :
8207 gcc_cv_header_string=yes
8208 else
8209 gcc_cv_header_string=no
8210 fi
8211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8212 fi
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8214 $as_echo "$gcc_cv_header_string" >&6; }
8215 if test $gcc_cv_header_string = yes; then
8216
8217 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8218
8219 fi
8220
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8222 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8223 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8224 $as_echo_n "(cached) " >&6
8225 else
8226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227 /* end confdefs.h. */
8228 #include <sys/types.h>
8229 #include <sys/wait.h>
8230 #ifndef WEXITSTATUS
8231 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8232 #endif
8233 #ifndef WIFEXITED
8234 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8235 #endif
8236
8237 int
8238 main ()
8239 {
8240 int s;
8241 wait (&s);
8242 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8243 ;
8244 return 0;
8245 }
8246 _ACEOF
8247 if ac_fn_c_try_compile "$LINENO"; then :
8248 ac_cv_header_sys_wait_h=yes
8249 else
8250 ac_cv_header_sys_wait_h=no
8251 fi
8252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8253 fi
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8255 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8256 if test $ac_cv_header_sys_wait_h = yes; then
8257
8258 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8259
8260 fi
8261
8262 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8263 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8264 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8265 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8266 do :
8267 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8268 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8269 eval as_val=\$$as_ac_Header
8270 if test "x$as_val" = x""yes; then :
8271 cat >>confdefs.h <<_ACEOF
8272 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8273 _ACEOF
8274
8275 fi
8276 done
8277
8278
8279 # Check for thread headers.
8280 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8281 if test "x$ac_cv_header_thread_h" = x""yes; then :
8282 have_thread_h=yes
8283 else
8284 have_thread_h=
8285 fi
8286
8287 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8288 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8289 have_pthread_h=yes
8290 else
8291 have_pthread_h=
8292 fi
8293
8294
8295 # These tests can't be done till we know if we have limits.h.
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8297 $as_echo_n "checking for CHAR_BIT... " >&6; }
8298 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8299 $as_echo_n "(cached) " >&6
8300 else
8301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8303 #ifdef HAVE_LIMITS_H
8304 #include <limits.h>
8305 #endif
8306 #ifdef CHAR_BIT
8307 found
8308 #endif
8309 _ACEOF
8310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8311 $EGREP "found" >/dev/null 2>&1; then :
8312 gcc_cv_decl_char_bit=yes
8313 else
8314 gcc_cv_decl_char_bit=no
8315 fi
8316 rm -f conftest*
8317
8318
8319 fi
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8321 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8322 if test $gcc_cv_decl_char_bit = no; then
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8324 $as_echo_n "checking number of bits in a byte... " >&6; }
8325 if test "${gcc_cv_c_nbby+set}" = set; then :
8326 $as_echo_n "(cached) " >&6
8327 else
8328 i=8
8329 gcc_cv_c_nbby=
8330 while test $i -lt 65; do
8331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8332 /* end confdefs.h. */
8333
8334 int
8335 main ()
8336 {
8337 switch(0) {
8338 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8339 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8340 ; }
8341 ;
8342 return 0;
8343 }
8344 _ACEOF
8345 if ac_fn_c_try_compile "$LINENO"; then :
8346 gcc_cv_c_nbby=$i; break
8347 fi
8348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349 i=`expr $i + 1`
8350 done
8351 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8352
8353 fi
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8355 $as_echo "$gcc_cv_c_nbby" >&6; }
8356 if test $gcc_cv_c_nbby = failed; then
8357 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8358 else
8359
8360 cat >>confdefs.h <<_ACEOF
8361 #define CHAR_BIT $gcc_cv_c_nbby
8362 _ACEOF
8363
8364 fi
8365 fi
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8367 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8368 if test "${ac_cv_c_bigendian+set}" = set; then :
8369 $as_echo_n "(cached) " >&6
8370 else
8371 ac_cv_c_bigendian=unknown
8372 # See if we're dealing with a universal compiler.
8373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h. */
8375 #ifndef __APPLE_CC__
8376 not a universal capable compiler
8377 #endif
8378 typedef int dummy;
8379
8380 _ACEOF
8381 if ac_fn_c_try_compile "$LINENO"; then :
8382
8383 # Check for potential -arch flags. It is not universal unless
8384 # there are at least two -arch flags with different values.
8385 ac_arch=
8386 ac_prev=
8387 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8388 if test -n "$ac_prev"; then
8389 case $ac_word in
8390 i?86 | x86_64 | ppc | ppc64)
8391 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8392 ac_arch=$ac_word
8393 else
8394 ac_cv_c_bigendian=universal
8395 break
8396 fi
8397 ;;
8398 esac
8399 ac_prev=
8400 elif test "x$ac_word" = "x-arch"; then
8401 ac_prev=arch
8402 fi
8403 done
8404 fi
8405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8406 if test $ac_cv_c_bigendian = unknown; then
8407 # See if sys/param.h defines the BYTE_ORDER macro.
8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409 /* end confdefs.h. */
8410 #include <sys/types.h>
8411 #include <sys/param.h>
8412
8413 int
8414 main ()
8415 {
8416 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8417 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8418 && LITTLE_ENDIAN)
8419 bogus endian macros
8420 #endif
8421
8422 ;
8423 return 0;
8424 }
8425 _ACEOF
8426 if ac_fn_c_try_compile "$LINENO"; then :
8427 # It does; now see whether it defined to BIG_ENDIAN or not.
8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429 /* end confdefs.h. */
8430 #include <sys/types.h>
8431 #include <sys/param.h>
8432
8433 int
8434 main ()
8435 {
8436 #if BYTE_ORDER != BIG_ENDIAN
8437 not big endian
8438 #endif
8439
8440 ;
8441 return 0;
8442 }
8443 _ACEOF
8444 if ac_fn_c_try_compile "$LINENO"; then :
8445 ac_cv_c_bigendian=yes
8446 else
8447 ac_cv_c_bigendian=no
8448 fi
8449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8450 fi
8451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8452 fi
8453 if test $ac_cv_c_bigendian = unknown; then
8454 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456 /* end confdefs.h. */
8457 #include <limits.h>
8458
8459 int
8460 main ()
8461 {
8462 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8463 bogus endian macros
8464 #endif
8465
8466 ;
8467 return 0;
8468 }
8469 _ACEOF
8470 if ac_fn_c_try_compile "$LINENO"; then :
8471 # It does; now see whether it defined to _BIG_ENDIAN or not.
8472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8473 /* end confdefs.h. */
8474 #include <limits.h>
8475
8476 int
8477 main ()
8478 {
8479 #ifndef _BIG_ENDIAN
8480 not big endian
8481 #endif
8482
8483 ;
8484 return 0;
8485 }
8486 _ACEOF
8487 if ac_fn_c_try_compile "$LINENO"; then :
8488 ac_cv_c_bigendian=yes
8489 else
8490 ac_cv_c_bigendian=no
8491 fi
8492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8493 fi
8494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8495 fi
8496 if test $ac_cv_c_bigendian = unknown; then
8497 # Compile a test program.
8498 if test "$cross_compiling" = yes; then :
8499 # Try to guess by grepping values from an object file.
8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h. */
8502 short int ascii_mm[] =
8503 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8504 short int ascii_ii[] =
8505 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8506 int use_ascii (int i) {
8507 return ascii_mm[i] + ascii_ii[i];
8508 }
8509 short int ebcdic_ii[] =
8510 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8511 short int ebcdic_mm[] =
8512 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8513 int use_ebcdic (int i) {
8514 return ebcdic_mm[i] + ebcdic_ii[i];
8515 }
8516 extern int foo;
8517
8518 int
8519 main ()
8520 {
8521 return use_ascii (foo) == use_ebcdic (foo);
8522 ;
8523 return 0;
8524 }
8525 _ACEOF
8526 if ac_fn_c_try_compile "$LINENO"; then :
8527 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8528 ac_cv_c_bigendian=yes
8529 fi
8530 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8531 if test "$ac_cv_c_bigendian" = unknown; then
8532 ac_cv_c_bigendian=no
8533 else
8534 # finding both strings is unlikely to happen, but who knows?
8535 ac_cv_c_bigendian=unknown
8536 fi
8537 fi
8538 fi
8539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8540 else
8541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542 /* end confdefs.h. */
8543 $ac_includes_default
8544 int
8545 main ()
8546 {
8547
8548 /* Are we little or big endian? From Harbison&Steele. */
8549 union
8550 {
8551 long int l;
8552 char c[sizeof (long int)];
8553 } u;
8554 u.l = 1;
8555 return u.c[sizeof (long int) - 1] == 1;
8556
8557 ;
8558 return 0;
8559 }
8560 _ACEOF
8561 if ac_fn_c_try_run "$LINENO"; then :
8562 ac_cv_c_bigendian=no
8563 else
8564 ac_cv_c_bigendian=yes
8565 fi
8566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8567 conftest.$ac_objext conftest.beam conftest.$ac_ext
8568 fi
8569
8570 fi
8571 fi
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8573 $as_echo "$ac_cv_c_bigendian" >&6; }
8574 case $ac_cv_c_bigendian in #(
8575 yes)
8576 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8577 ;; #(
8578 no)
8579 ;; #(
8580 universal)
8581
8582 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8583
8584 ;; #(
8585 *)
8586 as_fn_error "unknown endianness
8587 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8588 esac
8589
8590
8591 # ----------------------
8592 # Checks for C++ headers
8593 # ----------------------
8594
8595 ac_ext=cpp
8596 ac_cpp='$CXXCPP $CPPFLAGS'
8597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8601 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8602 if test -z "$CXXCPP"; then
8603 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8604 $as_echo_n "(cached) " >&6
8605 else
8606 # Double quotes because CXXCPP needs to be expanded
8607 for CXXCPP in "$CXX -E" "/lib/cpp"
8608 do
8609 ac_preproc_ok=false
8610 for ac_cxx_preproc_warn_flag in '' yes
8611 do
8612 # Use a header file that comes with gcc, so configuring glibc
8613 # with a fresh cross-compiler works.
8614 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8615 # <limits.h> exists even on freestanding compilers.
8616 # On the NeXT, cc -E runs the code through the compiler's parser,
8617 # not just through cpp. "Syntax error" is here to catch this case.
8618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619 /* end confdefs.h. */
8620 #ifdef __STDC__
8621 # include <limits.h>
8622 #else
8623 # include <assert.h>
8624 #endif
8625 Syntax error
8626 _ACEOF
8627 if ac_fn_cxx_try_cpp "$LINENO"; then :
8628
8629 else
8630 # Broken: fails on valid input.
8631 continue
8632 fi
8633 rm -f conftest.err conftest.$ac_ext
8634
8635 # OK, works on sane cases. Now check whether nonexistent headers
8636 # can be detected and how.
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h. */
8639 #include <ac_nonexistent.h>
8640 _ACEOF
8641 if ac_fn_cxx_try_cpp "$LINENO"; then :
8642 # Broken: success on invalid input.
8643 continue
8644 else
8645 # Passes both tests.
8646 ac_preproc_ok=:
8647 break
8648 fi
8649 rm -f conftest.err conftest.$ac_ext
8650
8651 done
8652 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8653 rm -f conftest.err conftest.$ac_ext
8654 if $ac_preproc_ok; then :
8655 break
8656 fi
8657
8658 done
8659 ac_cv_prog_CXXCPP=$CXXCPP
8660
8661 fi
8662 CXXCPP=$ac_cv_prog_CXXCPP
8663 else
8664 ac_cv_prog_CXXCPP=$CXXCPP
8665 fi
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8667 $as_echo "$CXXCPP" >&6; }
8668 ac_preproc_ok=false
8669 for ac_cxx_preproc_warn_flag in '' yes
8670 do
8671 # Use a header file that comes with gcc, so configuring glibc
8672 # with a fresh cross-compiler works.
8673 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8674 # <limits.h> exists even on freestanding compilers.
8675 # On the NeXT, cc -E runs the code through the compiler's parser,
8676 # not just through cpp. "Syntax error" is here to catch this case.
8677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678 /* end confdefs.h. */
8679 #ifdef __STDC__
8680 # include <limits.h>
8681 #else
8682 # include <assert.h>
8683 #endif
8684 Syntax error
8685 _ACEOF
8686 if ac_fn_cxx_try_cpp "$LINENO"; then :
8687
8688 else
8689 # Broken: fails on valid input.
8690 continue
8691 fi
8692 rm -f conftest.err conftest.$ac_ext
8693
8694 # OK, works on sane cases. Now check whether nonexistent headers
8695 # can be detected and how.
8696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8697 /* end confdefs.h. */
8698 #include <ac_nonexistent.h>
8699 _ACEOF
8700 if ac_fn_cxx_try_cpp "$LINENO"; then :
8701 # Broken: success on invalid input.
8702 continue
8703 else
8704 # Passes both tests.
8705 ac_preproc_ok=:
8706 break
8707 fi
8708 rm -f conftest.err conftest.$ac_ext
8709
8710 done
8711 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8712 rm -f conftest.err conftest.$ac_ext
8713 if $ac_preproc_ok; then :
8714
8715 else
8716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8719 See \`config.log' for more details." >&5
8720 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8721 See \`config.log' for more details." >&2;}; }
8722 fi
8723
8724 ac_ext=c
8725 ac_cpp='$CPP $CPPFLAGS'
8726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8729
8730
8731 ac_ext=cpp
8732 ac_cpp='$CXXCPP $CPPFLAGS'
8733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8736
8737
8738
8739
8740 for ac_header in unordered_map
8741 do :
8742 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8743 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8744 cat >>confdefs.h <<_ACEOF
8745 #define HAVE_UNORDERED_MAP 1
8746 _ACEOF
8747
8748 fi
8749 done
8750
8751 for ac_header in tr1/unordered_map
8752 do :
8753 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8754 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8755 cat >>confdefs.h <<_ACEOF
8756 #define HAVE_TR1_UNORDERED_MAP 1
8757 _ACEOF
8758
8759 fi
8760 done
8761
8762 for ac_header in ext/hash_map
8763 do :
8764 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8765 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8766 cat >>confdefs.h <<_ACEOF
8767 #define HAVE_EXT_HASH_MAP 1
8768 _ACEOF
8769
8770 fi
8771 done
8772
8773
8774 ac_ext=c
8775 ac_cpp='$CPP $CPPFLAGS'
8776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8779
8780
8781 # --------
8782 # UNSORTED
8783 # --------
8784
8785
8786 # These libraries may be used by collect2.
8787 # We may need a special search path to get them linked.
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8789 $as_echo_n "checking for collect2 libraries... " >&6; }
8790 if test "${gcc_cv_collect2_libs+set}" = set; then :
8791 $as_echo_n "(cached) " >&6
8792 else
8793 save_LIBS="$LIBS"
8794 for libs in '' -lld -lmld \
8795 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8796 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8797 do
8798 LIBS="$libs"
8799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8800 /* end confdefs.h. */
8801
8802 /* Override any GCC internal prototype to avoid an error.
8803 Use char because int might match the return type of a GCC
8804 builtin and then its argument prototype would still apply. */
8805 #ifdef __cplusplus
8806 extern "C"
8807 #endif
8808 char ldopen ();
8809 int
8810 main ()
8811 {
8812 return ldopen ();
8813 ;
8814 return 0;
8815 }
8816 _ACEOF
8817 if ac_fn_c_try_link "$LINENO"; then :
8818 gcc_cv_collect2_libs="$libs"; break
8819 fi
8820 rm -f core conftest.err conftest.$ac_objext \
8821 conftest$ac_exeext conftest.$ac_ext
8822 done
8823 LIBS="$save_LIBS"
8824 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8825 fi
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8827 $as_echo "$gcc_cv_collect2_libs" >&6; }
8828 case $gcc_cv_collect2_libs in
8829 "none required") ;;
8830 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8831 esac
8832
8833
8834 # When building Ada code on Alpha, we need exc_resume which is usually in
8835 # -lexc. So test for it.
8836 save_LIBS="$LIBS"
8837 LIBS=
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8839 $as_echo_n "checking for library containing exc_resume... " >&6; }
8840 if test "${ac_cv_search_exc_resume+set}" = set; then :
8841 $as_echo_n "(cached) " >&6
8842 else
8843 ac_func_search_save_LIBS=$LIBS
8844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8845 /* end confdefs.h. */
8846
8847 /* Override any GCC internal prototype to avoid an error.
8848 Use char because int might match the return type of a GCC
8849 builtin and then its argument prototype would still apply. */
8850 #ifdef __cplusplus
8851 extern "C"
8852 #endif
8853 char exc_resume ();
8854 int
8855 main ()
8856 {
8857 return exc_resume ();
8858 ;
8859 return 0;
8860 }
8861 _ACEOF
8862 for ac_lib in '' exc; do
8863 if test -z "$ac_lib"; then
8864 ac_res="none required"
8865 else
8866 ac_res=-l$ac_lib
8867 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8868 fi
8869 if ac_fn_c_try_link "$LINENO"; then :
8870 ac_cv_search_exc_resume=$ac_res
8871 fi
8872 rm -f core conftest.err conftest.$ac_objext \
8873 conftest$ac_exeext
8874 if test "${ac_cv_search_exc_resume+set}" = set; then :
8875 break
8876 fi
8877 done
8878 if test "${ac_cv_search_exc_resume+set}" = set; then :
8879
8880 else
8881 ac_cv_search_exc_resume=no
8882 fi
8883 rm conftest.$ac_ext
8884 LIBS=$ac_func_search_save_LIBS
8885 fi
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8887 $as_echo "$ac_cv_search_exc_resume" >&6; }
8888 ac_res=$ac_cv_search_exc_resume
8889 if test "$ac_res" != no; then :
8890 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8891
8892 fi
8893
8894 GNAT_LIBEXC="$LIBS"
8895 LIBS="$save_LIBS"
8896
8897
8898 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8899 save_LIBS="$LIBS"
8900 LIBS=
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8902 $as_echo_n "checking for library containing kstat_open... " >&6; }
8903 if test "${ac_cv_search_kstat_open+set}" = set; then :
8904 $as_echo_n "(cached) " >&6
8905 else
8906 ac_func_search_save_LIBS=$LIBS
8907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908 /* end confdefs.h. */
8909
8910 /* Override any GCC internal prototype to avoid an error.
8911 Use char because int might match the return type of a GCC
8912 builtin and then its argument prototype would still apply. */
8913 #ifdef __cplusplus
8914 extern "C"
8915 #endif
8916 char kstat_open ();
8917 int
8918 main ()
8919 {
8920 return kstat_open ();
8921 ;
8922 return 0;
8923 }
8924 _ACEOF
8925 for ac_lib in '' kstat; do
8926 if test -z "$ac_lib"; then
8927 ac_res="none required"
8928 else
8929 ac_res=-l$ac_lib
8930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8931 fi
8932 if ac_fn_c_try_link "$LINENO"; then :
8933 ac_cv_search_kstat_open=$ac_res
8934 fi
8935 rm -f core conftest.err conftest.$ac_objext \
8936 conftest$ac_exeext
8937 if test "${ac_cv_search_kstat_open+set}" = set; then :
8938 break
8939 fi
8940 done
8941 if test "${ac_cv_search_kstat_open+set}" = set; then :
8942
8943 else
8944 ac_cv_search_kstat_open=no
8945 fi
8946 rm conftest.$ac_ext
8947 LIBS=$ac_func_search_save_LIBS
8948 fi
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8950 $as_echo "$ac_cv_search_kstat_open" >&6; }
8951 ac_res=$ac_cv_search_kstat_open
8952 if test "$ac_res" != no; then :
8953 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8954
8955 fi
8956
8957 EXTRA_GCC_LIBS="$LIBS"
8958 LIBS="$save_LIBS"
8959
8960
8961 # Some systems put ldexp and frexp in libm instead of libc; assume
8962 # they're both in the same place. jcf-dump needs them.
8963 save_LIBS="$LIBS"
8964 LIBS=
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8966 $as_echo_n "checking for library containing ldexp... " >&6; }
8967 if test "${ac_cv_search_ldexp+set}" = set; then :
8968 $as_echo_n "(cached) " >&6
8969 else
8970 ac_func_search_save_LIBS=$LIBS
8971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8972 /* end confdefs.h. */
8973
8974 /* Override any GCC internal prototype to avoid an error.
8975 Use char because int might match the return type of a GCC
8976 builtin and then its argument prototype would still apply. */
8977 #ifdef __cplusplus
8978 extern "C"
8979 #endif
8980 char ldexp ();
8981 int
8982 main ()
8983 {
8984 return ldexp ();
8985 ;
8986 return 0;
8987 }
8988 _ACEOF
8989 for ac_lib in '' m; do
8990 if test -z "$ac_lib"; then
8991 ac_res="none required"
8992 else
8993 ac_res=-l$ac_lib
8994 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8995 fi
8996 if ac_fn_c_try_link "$LINENO"; then :
8997 ac_cv_search_ldexp=$ac_res
8998 fi
8999 rm -f core conftest.err conftest.$ac_objext \
9000 conftest$ac_exeext
9001 if test "${ac_cv_search_ldexp+set}" = set; then :
9002 break
9003 fi
9004 done
9005 if test "${ac_cv_search_ldexp+set}" = set; then :
9006
9007 else
9008 ac_cv_search_ldexp=no
9009 fi
9010 rm conftest.$ac_ext
9011 LIBS=$ac_func_search_save_LIBS
9012 fi
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9014 $as_echo "$ac_cv_search_ldexp" >&6; }
9015 ac_res=$ac_cv_search_ldexp
9016 if test "$ac_res" != no; then :
9017 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9018
9019 fi
9020
9021 LDEXP_LIB="$LIBS"
9022 LIBS="$save_LIBS"
9023
9024
9025 # Use <inttypes.h> only if it exists,
9026 # doesn't clash with <sys/types.h>, and declares intmax_t.
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9028 $as_echo_n "checking for inttypes.h... " >&6; }
9029 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9030 $as_echo_n "(cached) " >&6
9031 else
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h. */
9034 #include <sys/types.h>
9035 #include <inttypes.h>
9036 int
9037 main ()
9038 {
9039 intmax_t i = -1;
9040 ;
9041 return 0;
9042 }
9043 _ACEOF
9044 if ac_fn_c_try_compile "$LINENO"; then :
9045 gcc_cv_header_inttypes_h=yes
9046 else
9047 gcc_cv_header_inttypes_h=no
9048 fi
9049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9050 fi
9051
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9053 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9054 if test $gcc_cv_header_inttypes_h = yes; then
9055
9056 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9057
9058 fi
9059
9060
9061
9062 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9063 sysconf strsignal getrusage nl_langinfo \
9064 gettimeofday mbstowcs wcswidth mmap setlocale \
9065 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
9066 do :
9067 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9068 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9069 eval as_val=\$$as_ac_var
9070 if test "x$as_val" = x""yes; then :
9071 cat >>confdefs.h <<_ACEOF
9072 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9073 _ACEOF
9074
9075 fi
9076 done
9077
9078
9079 if test x$ac_cv_func_mbstowcs = xyes; then
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9081 $as_echo_n "checking whether mbstowcs works... " >&6; }
9082 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9083 $as_echo_n "(cached) " >&6
9084 else
9085 if test "$cross_compiling" = yes; then :
9086 gcc_cv_func_mbstowcs_works=yes
9087 else
9088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089 /* end confdefs.h. */
9090 #include <stdlib.h>
9091 int main()
9092 {
9093 mbstowcs(0, "", 0);
9094 return 0;
9095 }
9096 _ACEOF
9097 if ac_fn_c_try_run "$LINENO"; then :
9098 gcc_cv_func_mbstowcs_works=yes
9099 else
9100 gcc_cv_func_mbstowcs_works=no
9101 fi
9102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9103 conftest.$ac_objext conftest.beam conftest.$ac_ext
9104 fi
9105
9106 fi
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9108 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9109 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9110
9111 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9112
9113 fi
9114 fi
9115
9116 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9117 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9118
9119 else
9120
9121 cat >>confdefs.h <<_ACEOF
9122 #define ssize_t int
9123 _ACEOF
9124
9125 fi
9126
9127 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9128 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9129
9130 else
9131
9132 cat >>confdefs.h <<_ACEOF
9133 #define caddr_t char *
9134 _ACEOF
9135
9136 fi
9137
9138
9139
9140 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9141 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9142 gcc_header_sys_mman_h=yes
9143 else
9144 gcc_header_sys_mman_h=no
9145 fi
9146
9147 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9148 if test "x$ac_cv_func_mmap" = x""yes; then :
9149 gcc_func_mmap=yes
9150 else
9151 gcc_func_mmap=no
9152 fi
9153
9154 if test "$gcc_header_sys_mman_h" != yes \
9155 || test "$gcc_func_mmap" != yes; then
9156 gcc_cv_func_mmap_file=no
9157 gcc_cv_func_mmap_dev_zero=no
9158 gcc_cv_func_mmap_anon=no
9159 else
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9161 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9162 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9163 $as_echo_n "(cached) " >&6
9164 else
9165 # Add a system to this blacklist if
9166 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9167 # memory area containing the same data that you'd get if you applied
9168 # read() to the same fd. The only system known to have a problem here
9169 # is VMS, where text files have record structure.
9170 case "$host_os" in
9171 *vms* | ultrix*)
9172 gcc_cv_func_mmap_file=no ;;
9173 *)
9174 gcc_cv_func_mmap_file=yes;;
9175 esac
9176 fi
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9178 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9180 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9181 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9182 $as_echo_n "(cached) " >&6
9183 else
9184 # Add a system to this blacklist if it has mmap() but /dev/zero
9185 # does not exist, or if mmapping /dev/zero does not give anonymous
9186 # zeroed pages with both the following properties:
9187 # 1. If you map N consecutive pages in with one call, and then
9188 # unmap any subset of those pages, the pages that were not
9189 # explicitly unmapped remain accessible.
9190 # 2. If you map two adjacent blocks of memory and then unmap them
9191 # both at once, they must both go away.
9192 # Systems known to be in this category are Windows (all variants),
9193 # VMS, and Darwin.
9194 case "$host_os" in
9195 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9196 gcc_cv_func_mmap_dev_zero=no ;;
9197 *)
9198 gcc_cv_func_mmap_dev_zero=yes;;
9199 esac
9200 fi
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9202 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9203
9204 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9206 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9207 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9208 $as_echo_n "(cached) " >&6
9209 else
9210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9211 /* end confdefs.h. */
9212 #include <sys/types.h>
9213 #include <sys/mman.h>
9214 #include <unistd.h>
9215
9216 #ifndef MAP_ANONYMOUS
9217 #define MAP_ANONYMOUS MAP_ANON
9218 #endif
9219
9220 int
9221 main ()
9222 {
9223 int n = MAP_ANONYMOUS;
9224 ;
9225 return 0;
9226 }
9227 _ACEOF
9228 if ac_fn_c_try_compile "$LINENO"; then :
9229 gcc_cv_decl_map_anon=yes
9230 else
9231 gcc_cv_decl_map_anon=no
9232 fi
9233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9234 fi
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9236 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9237
9238 if test $gcc_cv_decl_map_anon = no; then
9239 gcc_cv_func_mmap_anon=no
9240 else
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9242 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9243 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9244 $as_echo_n "(cached) " >&6
9245 else
9246 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9247 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9248 # doesn't give anonymous zeroed pages with the same properties listed
9249 # above for use of /dev/zero.
9250 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9251 case "$host_os" in
9252 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9253 gcc_cv_func_mmap_anon=no ;;
9254 *)
9255 gcc_cv_func_mmap_anon=yes;;
9256 esac
9257 fi
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9259 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9260 fi
9261 fi
9262
9263 if test $gcc_cv_func_mmap_file = yes; then
9264
9265 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9266
9267 fi
9268 if test $gcc_cv_func_mmap_dev_zero = yes; then
9269
9270 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9271
9272 fi
9273 if test $gcc_cv_func_mmap_anon = yes; then
9274
9275 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9276
9277 fi
9278
9279
9280 case "${host}" in
9281 *-*-*vms*)
9282 # Under VMS, vfork works very differently than on Unix. The standard test
9283 # won't work, and it isn't easily adaptable. It makes more sense to
9284 # just force it.
9285 ac_cv_func_vfork_works=yes
9286 ;;
9287 esac
9288 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9289 if test "x$ac_cv_type_pid_t" = x""yes; then :
9290
9291 else
9292
9293 cat >>confdefs.h <<_ACEOF
9294 #define pid_t int
9295 _ACEOF
9296
9297 fi
9298
9299 for ac_header in vfork.h
9300 do :
9301 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9302 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9303 cat >>confdefs.h <<_ACEOF
9304 #define HAVE_VFORK_H 1
9305 _ACEOF
9306
9307 fi
9308 done
9309
9310 for ac_func in fork vfork
9311 do :
9312 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9313 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9314 eval as_val=\$$as_ac_var
9315 if test "x$as_val" = x""yes; then :
9316 cat >>confdefs.h <<_ACEOF
9317 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9318 _ACEOF
9319
9320 fi
9321 done
9322
9323 if test "x$ac_cv_func_fork" = xyes; then
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9325 $as_echo_n "checking for working fork... " >&6; }
9326 if test "${ac_cv_func_fork_works+set}" = set; then :
9327 $as_echo_n "(cached) " >&6
9328 else
9329 if test "$cross_compiling" = yes; then :
9330 ac_cv_func_fork_works=cross
9331 else
9332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9333 /* end confdefs.h. */
9334 $ac_includes_default
9335 int
9336 main ()
9337 {
9338
9339 /* By Ruediger Kuhlmann. */
9340 return fork () < 0;
9341
9342 ;
9343 return 0;
9344 }
9345 _ACEOF
9346 if ac_fn_c_try_run "$LINENO"; then :
9347 ac_cv_func_fork_works=yes
9348 else
9349 ac_cv_func_fork_works=no
9350 fi
9351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9352 conftest.$ac_objext conftest.beam conftest.$ac_ext
9353 fi
9354
9355 fi
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9357 $as_echo "$ac_cv_func_fork_works" >&6; }
9358
9359 else
9360 ac_cv_func_fork_works=$ac_cv_func_fork
9361 fi
9362 if test "x$ac_cv_func_fork_works" = xcross; then
9363 case $host in
9364 *-*-amigaos* | *-*-msdosdjgpp*)
9365 # Override, as these systems have only a dummy fork() stub
9366 ac_cv_func_fork_works=no
9367 ;;
9368 *)
9369 ac_cv_func_fork_works=yes
9370 ;;
9371 esac
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9373 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9374 fi
9375 ac_cv_func_vfork_works=$ac_cv_func_vfork
9376 if test "x$ac_cv_func_vfork" = xyes; then
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9378 $as_echo_n "checking for working vfork... " >&6; }
9379 if test "${ac_cv_func_vfork_works+set}" = set; then :
9380 $as_echo_n "(cached) " >&6
9381 else
9382 if test "$cross_compiling" = yes; then :
9383 ac_cv_func_vfork_works=cross
9384 else
9385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9386 /* end confdefs.h. */
9387 /* Thanks to Paul Eggert for this test. */
9388 $ac_includes_default
9389 #include <sys/wait.h>
9390 #ifdef HAVE_VFORK_H
9391 # include <vfork.h>
9392 #endif
9393 /* On some sparc systems, changes by the child to local and incoming
9394 argument registers are propagated back to the parent. The compiler
9395 is told about this with #include <vfork.h>, but some compilers
9396 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9397 static variable whose address is put into a register that is
9398 clobbered by the vfork. */
9399 static void
9400 #ifdef __cplusplus
9401 sparc_address_test (int arg)
9402 # else
9403 sparc_address_test (arg) int arg;
9404 #endif
9405 {
9406 static pid_t child;
9407 if (!child) {
9408 child = vfork ();
9409 if (child < 0) {
9410 perror ("vfork");
9411 _exit(2);
9412 }
9413 if (!child) {
9414 arg = getpid();
9415 write(-1, "", 0);
9416 _exit (arg);
9417 }
9418 }
9419 }
9420
9421 int
9422 main ()
9423 {
9424 pid_t parent = getpid ();
9425 pid_t child;
9426
9427 sparc_address_test (0);
9428
9429 child = vfork ();
9430
9431 if (child == 0) {
9432 /* Here is another test for sparc vfork register problems. This
9433 test uses lots of local variables, at least as many local
9434 variables as main has allocated so far including compiler
9435 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9436 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9437 reuse the register of parent for one of the local variables,
9438 since it will think that parent can't possibly be used any more
9439 in this routine. Assigning to the local variable will thus
9440 munge parent in the parent process. */
9441 pid_t
9442 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9443 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9444 /* Convince the compiler that p..p7 are live; otherwise, it might
9445 use the same hardware register for all 8 local variables. */
9446 if (p != p1 || p != p2 || p != p3 || p != p4
9447 || p != p5 || p != p6 || p != p7)
9448 _exit(1);
9449
9450 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9451 from child file descriptors. If the child closes a descriptor
9452 before it execs or exits, this munges the parent's descriptor
9453 as well. Test for this by closing stdout in the child. */
9454 _exit(close(fileno(stdout)) != 0);
9455 } else {
9456 int status;
9457 struct stat st;
9458
9459 while (wait(&status) != child)
9460 ;
9461 return (
9462 /* Was there some problem with vforking? */
9463 child < 0
9464
9465 /* Did the child fail? (This shouldn't happen.) */
9466 || status
9467
9468 /* Did the vfork/compiler bug occur? */
9469 || parent != getpid()
9470
9471 /* Did the file descriptor bug occur? */
9472 || fstat(fileno(stdout), &st) != 0
9473 );
9474 }
9475 }
9476 _ACEOF
9477 if ac_fn_c_try_run "$LINENO"; then :
9478 ac_cv_func_vfork_works=yes
9479 else
9480 ac_cv_func_vfork_works=no
9481 fi
9482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9483 conftest.$ac_objext conftest.beam conftest.$ac_ext
9484 fi
9485
9486 fi
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9488 $as_echo "$ac_cv_func_vfork_works" >&6; }
9489
9490 fi;
9491 if test "x$ac_cv_func_fork_works" = xcross; then
9492 ac_cv_func_vfork_works=$ac_cv_func_vfork
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9494 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9495 fi
9496
9497 if test "x$ac_cv_func_vfork_works" = xyes; then
9498
9499 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9500
9501 else
9502
9503 $as_echo "#define vfork fork" >>confdefs.h
9504
9505 fi
9506 if test "x$ac_cv_func_fork_works" = xyes; then
9507
9508 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9509
9510 fi
9511
9512
9513 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9514 # iconv() prototype.
9515
9516 if test "X$prefix" = "XNONE"; then
9517 acl_final_prefix="$ac_default_prefix"
9518 else
9519 acl_final_prefix="$prefix"
9520 fi
9521 if test "X$exec_prefix" = "XNONE"; then
9522 acl_final_exec_prefix='${prefix}'
9523 else
9524 acl_final_exec_prefix="$exec_prefix"
9525 fi
9526 acl_save_prefix="$prefix"
9527 prefix="$acl_final_prefix"
9528 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9529 prefix="$acl_save_prefix"
9530
9531
9532 # Check whether --with-gnu-ld was given.
9533 if test "${with_gnu_ld+set}" = set; then :
9534 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9535 else
9536 with_gnu_ld=no
9537 fi
9538
9539 # Prepare PATH_SEPARATOR.
9540 # The user is always right.
9541 if test "${PATH_SEPARATOR+set}" != set; then
9542 echo "#! /bin/sh" >conf$$.sh
9543 echo "exit 0" >>conf$$.sh
9544 chmod +x conf$$.sh
9545 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9546 PATH_SEPARATOR=';'
9547 else
9548 PATH_SEPARATOR=:
9549 fi
9550 rm -f conf$$.sh
9551 fi
9552 ac_prog=ld
9553 if test "$GCC" = yes; then
9554 # Check if gcc -print-prog-name=ld gives a path.
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9556 $as_echo_n "checking for ld used by GCC... " >&6; }
9557 case $host in
9558 *-*-mingw*)
9559 # gcc leaves a trailing carriage return which upsets mingw
9560 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9561 *)
9562 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9563 esac
9564 case $ac_prog in
9565 # Accept absolute paths.
9566 [\\/]* | [A-Za-z]:[\\/]*)
9567 re_direlt='/[^/][^/]*/\.\./'
9568 # Canonicalize the path of ld
9569 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9570 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9571 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9572 done
9573 test -z "$LD" && LD="$ac_prog"
9574 ;;
9575 "")
9576 # If it fails, then pretend we aren't using GCC.
9577 ac_prog=ld
9578 ;;
9579 *)
9580 # If it is relative, then search for the first ld in PATH.
9581 with_gnu_ld=unknown
9582 ;;
9583 esac
9584 elif test "$with_gnu_ld" = yes; then
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9586 $as_echo_n "checking for GNU ld... " >&6; }
9587 else
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9589 $as_echo_n "checking for non-GNU ld... " >&6; }
9590 fi
9591 if test "${acl_cv_path_LD+set}" = set; then :
9592 $as_echo_n "(cached) " >&6
9593 else
9594 if test -z "$LD"; then
9595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9596 for ac_dir in $PATH; do
9597 test -z "$ac_dir" && ac_dir=.
9598 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9599 acl_cv_path_LD="$ac_dir/$ac_prog"
9600 # Check to see if the program is GNU ld. I'd rather use --version,
9601 # but apparently some GNU ld's only accept -v.
9602 # Break only if it was the GNU/non-GNU ld that we prefer.
9603 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9604 test "$with_gnu_ld" != no && break
9605 else
9606 test "$with_gnu_ld" != yes && break
9607 fi
9608 fi
9609 done
9610 IFS="$ac_save_ifs"
9611 else
9612 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9613 fi
9614 fi
9615
9616 LD="$acl_cv_path_LD"
9617 if test -n "$LD"; then
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9619 $as_echo "$LD" >&6; }
9620 else
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9622 $as_echo "no" >&6; }
9623 fi
9624 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9626 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9627 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9628 $as_echo_n "(cached) " >&6
9629 else
9630 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9631 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9632 acl_cv_prog_gnu_ld=yes
9633 else
9634 acl_cv_prog_gnu_ld=no
9635 fi
9636 fi
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9638 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9639 with_gnu_ld=$acl_cv_prog_gnu_ld
9640
9641
9642
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9644 $as_echo_n "checking for shared library run path origin... " >&6; }
9645 if test "${acl_cv_rpath+set}" = set; then :
9646 $as_echo_n "(cached) " >&6
9647 else
9648
9649 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9650 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9651 . ./conftest.sh
9652 rm -f ./conftest.sh
9653 acl_cv_rpath=done
9654
9655 fi
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9657 $as_echo "$acl_cv_rpath" >&6; }
9658 wl="$acl_cv_wl"
9659 libext="$acl_cv_libext"
9660 shlibext="$acl_cv_shlibext"
9661 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9662 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9663 hardcode_direct="$acl_cv_hardcode_direct"
9664 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9665 # Check whether --enable-rpath was given.
9666 if test "${enable_rpath+set}" = set; then :
9667 enableval=$enable_rpath; :
9668 else
9669 enable_rpath=yes
9670 fi
9671
9672
9673
9674
9675
9676
9677
9678
9679 use_additional=yes
9680
9681 acl_save_prefix="$prefix"
9682 prefix="$acl_final_prefix"
9683 acl_save_exec_prefix="$exec_prefix"
9684 exec_prefix="$acl_final_exec_prefix"
9685
9686 eval additional_includedir=\"$includedir\"
9687 eval additional_libdir=\"$libdir\"
9688
9689 exec_prefix="$acl_save_exec_prefix"
9690 prefix="$acl_save_prefix"
9691
9692
9693 # Check whether --with-libiconv-prefix was given.
9694 if test "${with_libiconv_prefix+set}" = set; then :
9695 withval=$with_libiconv_prefix;
9696 if test "X$withval" = "Xno"; then
9697 use_additional=no
9698 else
9699 if test "X$withval" = "X"; then
9700
9701 acl_save_prefix="$prefix"
9702 prefix="$acl_final_prefix"
9703 acl_save_exec_prefix="$exec_prefix"
9704 exec_prefix="$acl_final_exec_prefix"
9705
9706 eval additional_includedir=\"$includedir\"
9707 eval additional_libdir=\"$libdir\"
9708
9709 exec_prefix="$acl_save_exec_prefix"
9710 prefix="$acl_save_prefix"
9711
9712 else
9713 additional_includedir="$withval/include"
9714 additional_libdir="$withval/lib"
9715 fi
9716 fi
9717
9718 fi
9719
9720 LIBICONV=
9721 LTLIBICONV=
9722 INCICONV=
9723 rpathdirs=
9724 ltrpathdirs=
9725 names_already_handled=
9726 names_next_round='iconv '
9727 while test -n "$names_next_round"; do
9728 names_this_round="$names_next_round"
9729 names_next_round=
9730 for name in $names_this_round; do
9731 already_handled=
9732 for n in $names_already_handled; do
9733 if test "$n" = "$name"; then
9734 already_handled=yes
9735 break
9736 fi
9737 done
9738 if test -z "$already_handled"; then
9739 names_already_handled="$names_already_handled $name"
9740 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9741 eval value=\"\$HAVE_LIB$uppername\"
9742 if test -n "$value"; then
9743 if test "$value" = yes; then
9744 eval value=\"\$LIB$uppername\"
9745 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9746 eval value=\"\$LTLIB$uppername\"
9747 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9748 else
9749 :
9750 fi
9751 else
9752 found_dir=
9753 found_la=
9754 found_so=
9755 found_a=
9756 if test $use_additional = yes; then
9757 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9758 found_dir="$additional_libdir"
9759 found_so="$additional_libdir/lib$name.$shlibext"
9760 if test -f "$additional_libdir/lib$name.la"; then
9761 found_la="$additional_libdir/lib$name.la"
9762 fi
9763 else
9764 if test -f "$additional_libdir/lib$name.$libext"; then
9765 found_dir="$additional_libdir"
9766 found_a="$additional_libdir/lib$name.$libext"
9767 if test -f "$additional_libdir/lib$name.la"; then
9768 found_la="$additional_libdir/lib$name.la"
9769 fi
9770 fi
9771 fi
9772 fi
9773 if test "X$found_dir" = "X"; then
9774 for x in $LDFLAGS $LTLIBICONV; do
9775
9776 acl_save_prefix="$prefix"
9777 prefix="$acl_final_prefix"
9778 acl_save_exec_prefix="$exec_prefix"
9779 exec_prefix="$acl_final_exec_prefix"
9780 eval x=\"$x\"
9781 exec_prefix="$acl_save_exec_prefix"
9782 prefix="$acl_save_prefix"
9783
9784 case "$x" in
9785 -L*)
9786 dir=`echo "X$x" | sed -e 's/^X-L//'`
9787 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9788 found_dir="$dir"
9789 found_so="$dir/lib$name.$shlibext"
9790 if test -f "$dir/lib$name.la"; then
9791 found_la="$dir/lib$name.la"
9792 fi
9793 else
9794 if test -f "$dir/lib$name.$libext"; then
9795 found_dir="$dir"
9796 found_a="$dir/lib$name.$libext"
9797 if test -f "$dir/lib$name.la"; then
9798 found_la="$dir/lib$name.la"
9799 fi
9800 fi
9801 fi
9802 ;;
9803 esac
9804 if test "X$found_dir" != "X"; then
9805 break
9806 fi
9807 done
9808 fi
9809 if test "X$found_dir" != "X"; then
9810 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9811 if test "X$found_so" != "X"; then
9812 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9813 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9814 else
9815 haveit=
9816 for x in $ltrpathdirs; do
9817 if test "X$x" = "X$found_dir"; then
9818 haveit=yes
9819 break
9820 fi
9821 done
9822 if test -z "$haveit"; then
9823 ltrpathdirs="$ltrpathdirs $found_dir"
9824 fi
9825 if test "$hardcode_direct" = yes; then
9826 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9827 else
9828 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9829 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9830 haveit=
9831 for x in $rpathdirs; do
9832 if test "X$x" = "X$found_dir"; then
9833 haveit=yes
9834 break
9835 fi
9836 done
9837 if test -z "$haveit"; then
9838 rpathdirs="$rpathdirs $found_dir"
9839 fi
9840 else
9841 haveit=
9842 for x in $LDFLAGS $LIBICONV; do
9843
9844 acl_save_prefix="$prefix"
9845 prefix="$acl_final_prefix"
9846 acl_save_exec_prefix="$exec_prefix"
9847 exec_prefix="$acl_final_exec_prefix"
9848 eval x=\"$x\"
9849 exec_prefix="$acl_save_exec_prefix"
9850 prefix="$acl_save_prefix"
9851
9852 if test "X$x" = "X-L$found_dir"; then
9853 haveit=yes
9854 break
9855 fi
9856 done
9857 if test -z "$haveit"; then
9858 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9859 fi
9860 if test "$hardcode_minus_L" != no; then
9861 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9862 else
9863 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9864 fi
9865 fi
9866 fi
9867 fi
9868 else
9869 if test "X$found_a" != "X"; then
9870 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9871 else
9872 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9873 fi
9874 fi
9875 additional_includedir=
9876 case "$found_dir" in
9877 */lib | */lib/)
9878 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9879 additional_includedir="$basedir/include"
9880 ;;
9881 esac
9882 if test "X$additional_includedir" != "X"; then
9883 if test "X$additional_includedir" != "X/usr/include"; then
9884 haveit=
9885 if test "X$additional_includedir" = "X/usr/local/include"; then
9886 if test -n "$GCC"; then
9887 case $host_os in
9888 linux*) haveit=yes;;
9889 esac
9890 fi
9891 fi
9892 if test -z "$haveit"; then
9893 for x in $CPPFLAGS $INCICONV; do
9894
9895 acl_save_prefix="$prefix"
9896 prefix="$acl_final_prefix"
9897 acl_save_exec_prefix="$exec_prefix"
9898 exec_prefix="$acl_final_exec_prefix"
9899 eval x=\"$x\"
9900 exec_prefix="$acl_save_exec_prefix"
9901 prefix="$acl_save_prefix"
9902
9903 if test "X$x" = "X-I$additional_includedir"; then
9904 haveit=yes
9905 break
9906 fi
9907 done
9908 if test -z "$haveit"; then
9909 if test -d "$additional_includedir"; then
9910 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9911 fi
9912 fi
9913 fi
9914 fi
9915 fi
9916 if test -n "$found_la"; then
9917 save_libdir="$libdir"
9918 case "$found_la" in
9919 */* | *\\*) . "$found_la" ;;
9920 *) . "./$found_la" ;;
9921 esac
9922 libdir="$save_libdir"
9923 for dep in $dependency_libs; do
9924 case "$dep" in
9925 -L*)
9926 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9927 if test "X$additional_libdir" != "X/usr/lib"; then
9928 haveit=
9929 if test "X$additional_libdir" = "X/usr/local/lib"; then
9930 if test -n "$GCC"; then
9931 case $host_os in
9932 linux*) haveit=yes;;
9933 esac
9934 fi
9935 fi
9936 if test -z "$haveit"; then
9937 haveit=
9938 for x in $LDFLAGS $LIBICONV; do
9939
9940 acl_save_prefix="$prefix"
9941 prefix="$acl_final_prefix"
9942 acl_save_exec_prefix="$exec_prefix"
9943 exec_prefix="$acl_final_exec_prefix"
9944 eval x=\"$x\"
9945 exec_prefix="$acl_save_exec_prefix"
9946 prefix="$acl_save_prefix"
9947
9948 if test "X$x" = "X-L$additional_libdir"; then
9949 haveit=yes
9950 break
9951 fi
9952 done
9953 if test -z "$haveit"; then
9954 if test -d "$additional_libdir"; then
9955 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9956 fi
9957 fi
9958 haveit=
9959 for x in $LDFLAGS $LTLIBICONV; do
9960
9961 acl_save_prefix="$prefix"
9962 prefix="$acl_final_prefix"
9963 acl_save_exec_prefix="$exec_prefix"
9964 exec_prefix="$acl_final_exec_prefix"
9965 eval x=\"$x\"
9966 exec_prefix="$acl_save_exec_prefix"
9967 prefix="$acl_save_prefix"
9968
9969 if test "X$x" = "X-L$additional_libdir"; then
9970 haveit=yes
9971 break
9972 fi
9973 done
9974 if test -z "$haveit"; then
9975 if test -d "$additional_libdir"; then
9976 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9977 fi
9978 fi
9979 fi
9980 fi
9981 ;;
9982 -R*)
9983 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9984 if test "$enable_rpath" != no; then
9985 haveit=
9986 for x in $rpathdirs; do
9987 if test "X$x" = "X$dir"; then
9988 haveit=yes
9989 break
9990 fi
9991 done
9992 if test -z "$haveit"; then
9993 rpathdirs="$rpathdirs $dir"
9994 fi
9995 haveit=
9996 for x in $ltrpathdirs; do
9997 if test "X$x" = "X$dir"; then
9998 haveit=yes
9999 break
10000 fi
10001 done
10002 if test -z "$haveit"; then
10003 ltrpathdirs="$ltrpathdirs $dir"
10004 fi
10005 fi
10006 ;;
10007 -l*)
10008 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10009 ;;
10010 *.la)
10011 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10012 ;;
10013 *)
10014 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10015 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10016 ;;
10017 esac
10018 done
10019 fi
10020 else
10021 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10022 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10023 fi
10024 fi
10025 fi
10026 done
10027 done
10028 if test "X$rpathdirs" != "X"; then
10029 if test -n "$hardcode_libdir_separator"; then
10030 alldirs=
10031 for found_dir in $rpathdirs; do
10032 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10033 done
10034 acl_save_libdir="$libdir"
10035 libdir="$alldirs"
10036 eval flag=\"$hardcode_libdir_flag_spec\"
10037 libdir="$acl_save_libdir"
10038 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10039 else
10040 for found_dir in $rpathdirs; do
10041 acl_save_libdir="$libdir"
10042 libdir="$found_dir"
10043 eval flag=\"$hardcode_libdir_flag_spec\"
10044 libdir="$acl_save_libdir"
10045 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10046 done
10047 fi
10048 fi
10049 if test "X$ltrpathdirs" != "X"; then
10050 for found_dir in $ltrpathdirs; do
10051 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10052 done
10053 fi
10054
10055
10056 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10057 ac_ext=cpp
10058 ac_cpp='$CXXCPP $CPPFLAGS'
10059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10062
10063
10064
10065
10066
10067
10068 am_save_CPPFLAGS="$CPPFLAGS"
10069
10070 for element in $INCICONV; do
10071 haveit=
10072 for x in $CPPFLAGS; do
10073
10074 acl_save_prefix="$prefix"
10075 prefix="$acl_final_prefix"
10076 acl_save_exec_prefix="$exec_prefix"
10077 exec_prefix="$acl_final_exec_prefix"
10078 eval x=\"$x\"
10079 exec_prefix="$acl_save_exec_prefix"
10080 prefix="$acl_save_prefix"
10081
10082 if test "X$x" = "X$element"; then
10083 haveit=yes
10084 break
10085 fi
10086 done
10087 if test -z "$haveit"; then
10088 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10089 fi
10090 done
10091
10092
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10094 $as_echo_n "checking for iconv... " >&6; }
10095 if test "${am_cv_func_iconv+set}" = set; then :
10096 $as_echo_n "(cached) " >&6
10097 else
10098
10099 am_cv_func_iconv="no, consider installing GNU libiconv"
10100 am_cv_lib_iconv=no
10101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10102 /* end confdefs.h. */
10103 #include <stdlib.h>
10104 #include <iconv.h>
10105 int
10106 main ()
10107 {
10108 iconv_t cd = iconv_open("","");
10109 iconv(cd,NULL,NULL,NULL,NULL);
10110 iconv_close(cd);
10111 ;
10112 return 0;
10113 }
10114 _ACEOF
10115 if ac_fn_cxx_try_link "$LINENO"; then :
10116 am_cv_func_iconv=yes
10117 fi
10118 rm -f core conftest.err conftest.$ac_objext \
10119 conftest$ac_exeext conftest.$ac_ext
10120 if test "$am_cv_func_iconv" != yes; then
10121 am_save_LIBS="$LIBS"
10122 LIBS="$LIBS $LIBICONV"
10123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124 /* end confdefs.h. */
10125 #include <stdlib.h>
10126 #include <iconv.h>
10127 int
10128 main ()
10129 {
10130 iconv_t cd = iconv_open("","");
10131 iconv(cd,NULL,NULL,NULL,NULL);
10132 iconv_close(cd);
10133 ;
10134 return 0;
10135 }
10136 _ACEOF
10137 if ac_fn_cxx_try_link "$LINENO"; then :
10138 am_cv_lib_iconv=yes
10139 am_cv_func_iconv=yes
10140 fi
10141 rm -f core conftest.err conftest.$ac_objext \
10142 conftest$ac_exeext conftest.$ac_ext
10143 LIBS="$am_save_LIBS"
10144 fi
10145
10146 fi
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10148 $as_echo "$am_cv_func_iconv" >&6; }
10149 if test "$am_cv_func_iconv" = yes; then
10150
10151 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10152
10153 fi
10154 if test "$am_cv_lib_iconv" = yes; then
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10156 $as_echo_n "checking how to link with libiconv... " >&6; }
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10158 $as_echo "$LIBICONV" >&6; }
10159 else
10160 CPPFLAGS="$am_save_CPPFLAGS"
10161 LIBICONV=
10162 LTLIBICONV=
10163 fi
10164
10165
10166
10167 if test "$am_cv_func_iconv" = yes; then
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10169 $as_echo_n "checking for iconv declaration... " >&6; }
10170 if test "${am_cv_proto_iconv+set}" = set; then :
10171 $as_echo_n "(cached) " >&6
10172 else
10173
10174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175 /* end confdefs.h. */
10176
10177 #include <stdlib.h>
10178 #include <iconv.h>
10179 extern
10180 #ifdef __cplusplus
10181 "C"
10182 #endif
10183 #if defined(__STDC__) || defined(__cplusplus)
10184 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10185 #else
10186 size_t iconv();
10187 #endif
10188
10189 int
10190 main ()
10191 {
10192
10193 ;
10194 return 0;
10195 }
10196 _ACEOF
10197 if ac_fn_cxx_try_compile "$LINENO"; then :
10198 am_cv_proto_iconv_arg1=""
10199 else
10200 am_cv_proto_iconv_arg1="const"
10201 fi
10202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10203 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);"
10204 fi
10205
10206 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10208 }$am_cv_proto_iconv" >&5
10209 $as_echo "${ac_t:-
10210 }$am_cv_proto_iconv" >&6; }
10211
10212 cat >>confdefs.h <<_ACEOF
10213 #define ICONV_CONST $am_cv_proto_iconv_arg1
10214 _ACEOF
10215
10216 fi
10217
10218 ac_ext=c
10219 ac_cpp='$CPP $CPPFLAGS'
10220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10223
10224 else
10225
10226
10227
10228
10229
10230 am_save_CPPFLAGS="$CPPFLAGS"
10231
10232 for element in $INCICONV; do
10233 haveit=
10234 for x in $CPPFLAGS; do
10235
10236 acl_save_prefix="$prefix"
10237 prefix="$acl_final_prefix"
10238 acl_save_exec_prefix="$exec_prefix"
10239 exec_prefix="$acl_final_exec_prefix"
10240 eval x=\"$x\"
10241 exec_prefix="$acl_save_exec_prefix"
10242 prefix="$acl_save_prefix"
10243
10244 if test "X$x" = "X$element"; then
10245 haveit=yes
10246 break
10247 fi
10248 done
10249 if test -z "$haveit"; then
10250 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10251 fi
10252 done
10253
10254
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10256 $as_echo_n "checking for iconv... " >&6; }
10257 if test "${am_cv_func_iconv+set}" = set; then :
10258 $as_echo_n "(cached) " >&6
10259 else
10260
10261 am_cv_func_iconv="no, consider installing GNU libiconv"
10262 am_cv_lib_iconv=no
10263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10264 /* end confdefs.h. */
10265 #include <stdlib.h>
10266 #include <iconv.h>
10267 int
10268 main ()
10269 {
10270 iconv_t cd = iconv_open("","");
10271 iconv(cd,NULL,NULL,NULL,NULL);
10272 iconv_close(cd);
10273 ;
10274 return 0;
10275 }
10276 _ACEOF
10277 if ac_fn_c_try_link "$LINENO"; then :
10278 am_cv_func_iconv=yes
10279 fi
10280 rm -f core conftest.err conftest.$ac_objext \
10281 conftest$ac_exeext conftest.$ac_ext
10282 if test "$am_cv_func_iconv" != yes; then
10283 am_save_LIBS="$LIBS"
10284 LIBS="$LIBS $LIBICONV"
10285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10286 /* end confdefs.h. */
10287 #include <stdlib.h>
10288 #include <iconv.h>
10289 int
10290 main ()
10291 {
10292 iconv_t cd = iconv_open("","");
10293 iconv(cd,NULL,NULL,NULL,NULL);
10294 iconv_close(cd);
10295 ;
10296 return 0;
10297 }
10298 _ACEOF
10299 if ac_fn_c_try_link "$LINENO"; then :
10300 am_cv_lib_iconv=yes
10301 am_cv_func_iconv=yes
10302 fi
10303 rm -f core conftest.err conftest.$ac_objext \
10304 conftest$ac_exeext conftest.$ac_ext
10305 LIBS="$am_save_LIBS"
10306 fi
10307
10308 fi
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10310 $as_echo "$am_cv_func_iconv" >&6; }
10311 if test "$am_cv_func_iconv" = yes; then
10312
10313 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10314
10315 fi
10316 if test "$am_cv_lib_iconv" = yes; then
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10318 $as_echo_n "checking how to link with libiconv... " >&6; }
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10320 $as_echo "$LIBICONV" >&6; }
10321 else
10322 CPPFLAGS="$am_save_CPPFLAGS"
10323 LIBICONV=
10324 LTLIBICONV=
10325 fi
10326
10327
10328
10329 if test "$am_cv_func_iconv" = yes; then
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10331 $as_echo_n "checking for iconv declaration... " >&6; }
10332 if test "${am_cv_proto_iconv+set}" = set; then :
10333 $as_echo_n "(cached) " >&6
10334 else
10335
10336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10337 /* end confdefs.h. */
10338
10339 #include <stdlib.h>
10340 #include <iconv.h>
10341 extern
10342 #ifdef __cplusplus
10343 "C"
10344 #endif
10345 #if defined(__STDC__) || defined(__cplusplus)
10346 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10347 #else
10348 size_t iconv();
10349 #endif
10350
10351 int
10352 main ()
10353 {
10354
10355 ;
10356 return 0;
10357 }
10358 _ACEOF
10359 if ac_fn_c_try_compile "$LINENO"; then :
10360 am_cv_proto_iconv_arg1=""
10361 else
10362 am_cv_proto_iconv_arg1="const"
10363 fi
10364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10365 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);"
10366 fi
10367
10368 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10370 }$am_cv_proto_iconv" >&5
10371 $as_echo "${ac_t:-
10372 }$am_cv_proto_iconv" >&6; }
10373
10374 cat >>confdefs.h <<_ACEOF
10375 #define ICONV_CONST $am_cv_proto_iconv_arg1
10376 _ACEOF
10377
10378 fi
10379
10380 fi
10381
10382 # Until we have in-tree GNU iconv:
10383 LIBICONV_DEP=
10384
10385
10386
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10388 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10389 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10390 $as_echo_n "(cached) " >&6
10391 else
10392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393 /* end confdefs.h. */
10394 #include <locale.h>
10395 int
10396 main ()
10397 {
10398 return LC_MESSAGES
10399 ;
10400 return 0;
10401 }
10402 _ACEOF
10403 if ac_fn_c_try_link "$LINENO"; then :
10404 am_cv_val_LC_MESSAGES=yes
10405 else
10406 am_cv_val_LC_MESSAGES=no
10407 fi
10408 rm -f core conftest.err conftest.$ac_objext \
10409 conftest$ac_exeext conftest.$ac_ext
10410 fi
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10412 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10413 if test $am_cv_val_LC_MESSAGES = yes; then
10414
10415 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10416
10417 fi
10418
10419
10420
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10422 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10423 if test "${am_cv_langinfo_codeset+set}" = set; then :
10424 $as_echo_n "(cached) " >&6
10425 else
10426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427 /* end confdefs.h. */
10428 #include <langinfo.h>
10429 int
10430 main ()
10431 {
10432 char* cs = nl_langinfo(CODESET);
10433 ;
10434 return 0;
10435 }
10436 _ACEOF
10437 if ac_fn_c_try_link "$LINENO"; then :
10438 am_cv_langinfo_codeset=yes
10439 else
10440 am_cv_langinfo_codeset=no
10441 fi
10442 rm -f core conftest.err conftest.$ac_objext \
10443 conftest$ac_exeext conftest.$ac_ext
10444
10445 fi
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10447 $as_echo "$am_cv_langinfo_codeset" >&6; }
10448 if test $am_cv_langinfo_codeset = yes; then
10449
10450 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10451
10452 fi
10453
10454
10455 # We will need to find libiberty.h and ansidecl.h
10456 saved_CFLAGS="$CFLAGS"
10457 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10458 saved_CXXFLAGS="$CXXFLAGS"
10459 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10460 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10461 strsignal strstr stpcpy strverscmp \
10462 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10463 free basename getopt clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
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
10479 int
10480 main ()
10481 {
10482 #ifndef $ac_func
10483 char *(*pfn) = (char *(*)) $ac_func ;
10484 #endif
10485 ;
10486 return 0;
10487 }
10488 _ACEOF
10489 if ac_fn_c_try_compile "$LINENO"; then :
10490 eval "gcc_cv_have_decl_$ac_func=yes"
10491 else
10492 eval "gcc_cv_have_decl_$ac_func=no"
10493 fi
10494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10495 fi
10496
10497 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10499 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10500 #define $ac_tr_decl 1
10501 _ACEOF
10502
10503 else
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10506 #define $ac_tr_decl 0
10507 _ACEOF
10508
10509 fi
10510
10511 done
10512
10513
10514 for ac_func in getrlimit setrlimit getrusage
10515 do
10516 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10518 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10519 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10520 $as_echo_n "(cached) " >&6
10521 else
10522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10523 /* end confdefs.h. */
10524 #undef $ac_tr_decl
10525 #define $ac_tr_decl 1
10526
10527 #include "ansidecl.h"
10528 #include "system.h"
10529 #ifdef HAVE_SYS_RESOURCE_H
10530 #include <sys/resource.h>
10531 #endif
10532
10533
10534 int
10535 main ()
10536 {
10537 #ifndef $ac_func
10538 char *(*pfn) = (char *(*)) $ac_func ;
10539 #endif
10540 ;
10541 return 0;
10542 }
10543 _ACEOF
10544 if ac_fn_c_try_compile "$LINENO"; then :
10545 eval "gcc_cv_have_decl_$ac_func=yes"
10546 else
10547 eval "gcc_cv_have_decl_$ac_func=no"
10548 fi
10549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10550 fi
10551
10552 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10554 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10555 #define $ac_tr_decl 1
10556 _ACEOF
10557
10558 else
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10560 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10561 #define $ac_tr_decl 0
10562 _ACEOF
10563
10564 fi
10565
10566 done
10567
10568
10569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10570 /* end confdefs.h. */
10571
10572 #include "ansidecl.h"
10573 #include "system.h"
10574 #ifdef HAVE_SYS_RESOURCE_H
10575 #include <sys/resource.h>
10576 #endif
10577
10578 int
10579 main ()
10580 {
10581 rlim_t l = 0;
10582 ;
10583 return 0;
10584 }
10585 _ACEOF
10586 if ac_fn_c_try_compile "$LINENO"; then :
10587
10588 else
10589
10590 $as_echo "#define rlim_t long" >>confdefs.h
10591
10592 fi
10593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10594
10595 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10596 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10597 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10598 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10599 for ac_func in ldgetname
10600 do
10601 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10603 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10604 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10605 $as_echo_n "(cached) " >&6
10606 else
10607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608 /* end confdefs.h. */
10609 #undef $ac_tr_decl
10610 #define $ac_tr_decl 1
10611
10612 #include "ansidecl.h"
10613 #include "system.h"
10614 #ifdef HAVE_LDFCN_H
10615 #undef FREAD
10616 #undef FWRITE
10617 #include <ldfcn.h>
10618 #endif
10619
10620
10621 int
10622 main ()
10623 {
10624 #ifndef $ac_func
10625 char *(*pfn) = (char *(*)) $ac_func ;
10626 #endif
10627 ;
10628 return 0;
10629 }
10630 _ACEOF
10631 if ac_fn_c_try_compile "$LINENO"; then :
10632 eval "gcc_cv_have_decl_$ac_func=yes"
10633 else
10634 eval "gcc_cv_have_decl_$ac_func=no"
10635 fi
10636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10637 fi
10638
10639 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10641 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10642 #define $ac_tr_decl 1
10643 _ACEOF
10644
10645 else
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10647 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10648 #define $ac_tr_decl 0
10649 _ACEOF
10650
10651 fi
10652
10653 done
10654
10655
10656 for ac_func in times
10657 do
10658 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10660 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10661 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10662 $as_echo_n "(cached) " >&6
10663 else
10664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10665 /* end confdefs.h. */
10666 #undef $ac_tr_decl
10667 #define $ac_tr_decl 1
10668
10669 #include "ansidecl.h"
10670 #include "system.h"
10671 #ifdef HAVE_SYS_TIMES_H
10672 #include <sys/times.h>
10673 #endif
10674
10675
10676 int
10677 main ()
10678 {
10679 #ifndef $ac_func
10680 char *(*pfn) = (char *(*)) $ac_func ;
10681 #endif
10682 ;
10683 return 0;
10684 }
10685 _ACEOF
10686 if ac_fn_c_try_compile "$LINENO"; then :
10687 eval "gcc_cv_have_decl_$ac_func=yes"
10688 else
10689 eval "gcc_cv_have_decl_$ac_func=no"
10690 fi
10691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10692 fi
10693
10694 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10696 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10697 #define $ac_tr_decl 1
10698 _ACEOF
10699
10700 else
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10702 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10703 #define $ac_tr_decl 0
10704 _ACEOF
10705
10706 fi
10707
10708 done
10709
10710
10711 for ac_func in sigaltstack
10712 do
10713 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10715 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10716 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10717 $as_echo_n "(cached) " >&6
10718 else
10719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720 /* end confdefs.h. */
10721 #undef $ac_tr_decl
10722 #define $ac_tr_decl 1
10723
10724 #include "ansidecl.h"
10725 #include "system.h"
10726 #include <signal.h>
10727
10728
10729 int
10730 main ()
10731 {
10732 #ifndef $ac_func
10733 char *(*pfn) = (char *(*)) $ac_func ;
10734 #endif
10735 ;
10736 return 0;
10737 }
10738 _ACEOF
10739 if ac_fn_c_try_compile "$LINENO"; then :
10740 eval "gcc_cv_have_decl_$ac_func=yes"
10741 else
10742 eval "gcc_cv_have_decl_$ac_func=no"
10743 fi
10744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10745 fi
10746
10747 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10749 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10750 #define $ac_tr_decl 1
10751 _ACEOF
10752
10753 else
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10755 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10756 #define $ac_tr_decl 0
10757 _ACEOF
10758
10759 fi
10760
10761 done
10762
10763
10764 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10765 # prototype.
10766 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10767 ac_ext=cpp
10768 ac_cpp='$CXXCPP $CPPFLAGS'
10769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10772
10773 for ac_func in madvise
10774 do
10775 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10777 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10778 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10779 $as_echo_n "(cached) " >&6
10780 else
10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h. */
10783 #undef $ac_tr_decl
10784 #define $ac_tr_decl 1
10785
10786 #include "ansidecl.h"
10787 #include "system.h"
10788
10789
10790 int
10791 main ()
10792 {
10793 #ifndef $ac_func
10794 char *(*pfn) = (char *(*)) $ac_func ;
10795 #endif
10796 ;
10797 return 0;
10798 }
10799 _ACEOF
10800 if ac_fn_cxx_try_compile "$LINENO"; then :
10801 eval "gcc_cv_have_decl_$ac_func=yes"
10802 else
10803 eval "gcc_cv_have_decl_$ac_func=no"
10804 fi
10805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10806 fi
10807
10808 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10810 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10811 #define $ac_tr_decl 1
10812 _ACEOF
10813
10814 else
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10816 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10817 #define $ac_tr_decl 0
10818 _ACEOF
10819
10820 fi
10821
10822 done
10823
10824 ac_ext=c
10825 ac_cpp='$CPP $CPPFLAGS'
10826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10829
10830 else
10831 for ac_func in madvise
10832 do
10833 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10835 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10836 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10837 $as_echo_n "(cached) " >&6
10838 else
10839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10840 /* end confdefs.h. */
10841 #undef $ac_tr_decl
10842 #define $ac_tr_decl 1
10843
10844 #include "ansidecl.h"
10845 #include "system.h"
10846
10847
10848 int
10849 main ()
10850 {
10851 #ifndef $ac_func
10852 char *(*pfn) = (char *(*)) $ac_func ;
10853 #endif
10854 ;
10855 return 0;
10856 }
10857 _ACEOF
10858 if ac_fn_c_try_compile "$LINENO"; then :
10859 eval "gcc_cv_have_decl_$ac_func=yes"
10860 else
10861 eval "gcc_cv_have_decl_$ac_func=no"
10862 fi
10863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10864 fi
10865
10866 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10868 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10869 #define $ac_tr_decl 1
10870 _ACEOF
10871
10872 else
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10874 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10875 #define $ac_tr_decl 0
10876 _ACEOF
10877
10878 fi
10879
10880 done
10881
10882
10883 fi
10884
10885 # More time-related stuff.
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10887 $as_echo_n "checking for struct tms... " >&6; }
10888 if test "${ac_cv_struct_tms+set}" = set; then :
10889 $as_echo_n "(cached) " >&6
10890 else
10891
10892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893 /* end confdefs.h. */
10894
10895 #include "ansidecl.h"
10896 #include "system.h"
10897 #ifdef HAVE_SYS_TIMES_H
10898 #include <sys/times.h>
10899 #endif
10900
10901 int
10902 main ()
10903 {
10904 struct tms tms;
10905 ;
10906 return 0;
10907 }
10908 _ACEOF
10909 if ac_fn_c_try_compile "$LINENO"; then :
10910 ac_cv_struct_tms=yes
10911 else
10912 ac_cv_struct_tms=no
10913 fi
10914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10915 fi
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10917 $as_echo "$ac_cv_struct_tms" >&6; }
10918 if test $ac_cv_struct_tms = yes; then
10919
10920 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10921
10922 fi
10923
10924 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10925 # revisit after autoconf 2.50.
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10927 $as_echo_n "checking for clock_t... " >&6; }
10928 if test "${gcc_cv_type_clock_t+set}" = set; then :
10929 $as_echo_n "(cached) " >&6
10930 else
10931
10932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10933 /* end confdefs.h. */
10934
10935 #include "ansidecl.h"
10936 #include "system.h"
10937
10938 int
10939 main ()
10940 {
10941 clock_t x;
10942 ;
10943 return 0;
10944 }
10945 _ACEOF
10946 if ac_fn_c_try_compile "$LINENO"; then :
10947 gcc_cv_type_clock_t=yes
10948 else
10949 gcc_cv_type_clock_t=no
10950 fi
10951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10952 fi
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10954 $as_echo "$gcc_cv_type_clock_t" >&6; }
10955 if test $gcc_cv_type_clock_t = yes; then
10956
10957 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10958
10959 fi
10960
10961 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10962 CFLAGS="$saved_CFLAGS"
10963 CXXFLAGS="$saved_CXXFLAGS"
10964
10965 # mkdir takes a single argument on some systems.
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10967 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10968 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10969 $as_echo_n "(cached) " >&6
10970 else
10971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10972 /* end confdefs.h. */
10973
10974 #include <sys/types.h>
10975 #ifdef HAVE_SYS_STAT_H
10976 # include <sys/stat.h>
10977 #endif
10978 #ifdef HAVE_UNISTD_H
10979 # include <unistd.h>
10980 #endif
10981 #ifdef HAVE_DIRECT_H
10982 # include <direct.h>
10983 #endif
10984 int
10985 main ()
10986 {
10987 mkdir ("foo", 0);
10988 ;
10989 return 0;
10990 }
10991 _ACEOF
10992 if ac_fn_c_try_compile "$LINENO"; then :
10993 gcc_cv_mkdir_takes_one_arg=no
10994 else
10995 gcc_cv_mkdir_takes_one_arg=yes
10996 fi
10997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10998 fi
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11000 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11001 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11002
11003 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11004
11005 fi
11006
11007
11008 # File extensions
11009 manext='.1'
11010 objext='.o'
11011
11012
11013
11014 # With Setjmp/Longjmp based exception handling.
11015 # Check whether --enable-sjlj-exceptions was given.
11016 if test "${enable_sjlj_exceptions+set}" = set; then :
11017 enableval=$enable_sjlj_exceptions; case $target in
11018 *-*-hpux10*)
11019 if test $enableval != yes; then
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11021 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11022 enableval=yes
11023 fi
11024 ;;
11025 esac
11026 force_sjlj_exceptions=yes
11027 else
11028 case $target in
11029 *-*-hpux10*)
11030 force_sjlj_exceptions=yes
11031 enableval=yes
11032 ;;
11033 *)
11034 force_sjlj_exceptions=no
11035 ;;
11036 esac
11037 fi
11038
11039 if test $force_sjlj_exceptions = yes; then
11040 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11041
11042 cat >>confdefs.h <<_ACEOF
11043 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11044 _ACEOF
11045
11046 fi
11047
11048 # --------------------------------------------------------
11049 # Build, host, and target specific configuration fragments
11050 # --------------------------------------------------------
11051
11052 # Collect build-machine-specific information.
11053 . ${srcdir}/config.build
11054
11055 # Collect host-machine-specific information.
11056 . ${srcdir}/config.host
11057
11058 target_gtfiles=
11059
11060 # Collect target-machine-specific information.
11061 . ${srcdir}/config.gcc
11062
11063 extra_objs="${host_extra_objs} ${extra_objs}"
11064 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11065
11066 # Default the target-machine variables that were not explicitly set.
11067 if test x"$tm_file" = x
11068 then tm_file=$cpu_type/$cpu_type.h; fi
11069
11070 if test x"$extra_headers" = x
11071 then extra_headers=; fi
11072
11073 if test x$md_file = x
11074 then md_file=$cpu_type/$cpu_type.md; fi
11075
11076 if test x$out_file = x
11077 then out_file=$cpu_type/$cpu_type.c; fi
11078
11079 if test x"$tmake_file" = x
11080 then tmake_file=$cpu_type/t-$cpu_type
11081 fi
11082
11083 # Support --enable-initfini-array.
11084 if test x$enable_initfini_array != xno; then
11085 tm_file="${tm_file} initfini-array.h"
11086 fi
11087
11088 if test x"$dwarf2" = xyes
11089 then tm_file="$tm_file tm-dwarf2.h"
11090 fi
11091
11092 # Say what files are being used for the output code and MD file.
11093 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11094 echo "Using \`$srcdir/config/$md_file' as machine description file."
11095
11096 # If any of the xm_file variables contain nonexistent files, warn
11097 # about them and drop them.
11098
11099 bx=
11100 for x in $build_xm_file; do
11101 if test -f $srcdir/config/$x
11102 then bx="$bx $x"
11103 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11104 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11105 fi
11106 done
11107 build_xm_file="$bx"
11108
11109 hx=
11110 for x in $host_xm_file; do
11111 if test -f $srcdir/config/$x
11112 then hx="$hx $x"
11113 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11114 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11115 fi
11116 done
11117 host_xm_file="$hx"
11118
11119 tx=
11120 for x in $xm_file; do
11121 if test -f $srcdir/config/$x
11122 then tx="$tx $x"
11123 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11124 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11125 fi
11126 done
11127 xm_file="$tx"
11128
11129 count=a
11130 for f in $tm_file; do
11131 count=${count}x
11132 done
11133 if test $count = ax; then
11134 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11135 else
11136 echo "Using the following target machine macro files:"
11137 for f in $tm_file; do
11138 echo " $srcdir/config/$f"
11139 done
11140 fi
11141
11142 if test x$need_64bit_hwint = xyes; then
11143
11144 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11145
11146 fi
11147
11148 if test x$use_long_long_for_widest_fast_int = xyes; then
11149
11150 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11151
11152 fi
11153
11154 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11155
11156 cat >>confdefs.h <<_ACEOF
11157 #define HAVE_GNU_LD $gnu_ld_bool
11158 _ACEOF
11159
11160
11161 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11162
11163 cat >>confdefs.h <<_ACEOF
11164 #define HAVE_GNU_AS $gnu_as_bool
11165 _ACEOF
11166
11167
11168 count=a
11169 for f in $host_xm_file; do
11170 count=${count}x
11171 done
11172 if test $count = a; then
11173 :
11174 elif test $count = ax; then
11175 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11176 else
11177 echo "Using the following host machine macro files:"
11178 for f in $host_xm_file; do
11179 echo " $srcdir/config/$f"
11180 done
11181 fi
11182 echo "Using ${out_host_hook_obj} for host machine hooks."
11183
11184 if test "$host_xm_file" != "$build_xm_file"; then
11185 count=a
11186 for f in $build_xm_file; do
11187 count=${count}x
11188 done
11189 if test $count = a; then
11190 :
11191 elif test $count = ax; then
11192 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11193 else
11194 echo "Using the following build machine macro files:"
11195 for f in $build_xm_file; do
11196 echo " $srcdir/config/$f"
11197 done
11198 fi
11199 fi
11200
11201 if test -n "$configured_native_system_header_dir"; then
11202 native_system_header_dir=$configured_native_system_header_dir
11203 fi
11204 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11205
11206
11207 case ${host} in
11208 powerpc*-*-darwin*)
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11210 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11211 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11212 $as_echo_n "(cached) " >&6
11213 else
11214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11215 /* end confdefs.h. */
11216
11217 #include <sys/cdefs.h>
11218 #include <sys/signal.h>
11219 #include <ucontext.h>
11220 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11221
11222 _ACEOF
11223 if ac_fn_c_try_compile "$LINENO"; then :
11224 gcc_cv_mcontext_underscores=no
11225 else
11226 gcc_cv_mcontext_underscores=yes
11227 fi
11228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11229 fi
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11231 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11232 if test $gcc_cv_mcontext_underscores = yes; then
11233
11234 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11235
11236 fi
11237 ;;
11238 esac
11239
11240 # ---------
11241 # Threading
11242 # ---------
11243
11244 # Check if a valid thread package
11245 case ${enable_threads} in
11246 "" | no)
11247 # No threads
11248 target_thread_file='single'
11249 ;;
11250 yes)
11251 # default
11252 target_thread_file='single'
11253 ;;
11254 aix | dce | lynx | mipssde | posix | rtems | \
11255 single | tpf | vxworks | win32)
11256 target_thread_file=${enable_threads}
11257 ;;
11258 *)
11259 echo "${enable_threads} is an unknown thread package" 1>&2
11260 exit 1
11261 ;;
11262 esac
11263
11264 if test x${thread_file} = x; then
11265 # No thread file set by target-specific clauses in config.gcc,
11266 # so use file chosen by default logic above
11267 thread_file=${target_thread_file}
11268 fi
11269
11270 # --------
11271 # UNSORTED
11272 # --------
11273
11274 use_cxa_atexit=no
11275 if test x$enable___cxa_atexit = xyes || \
11276 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11277 if test x$host = x$target; then
11278 case $host in
11279 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11280 # keyed to flag_use_cxa_atexit
11281 *-*-mingw32*)
11282 use_cxa_atexit=yes
11283 ;;
11284 *)
11285 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11286 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11287 use_cxa_atexit=yes
11288 else
11289 echo "__cxa_atexit can't be enabled on this target"
11290 fi
11291
11292 ;;
11293 esac
11294 else
11295 # We can't check for __cxa_atexit when building a cross, so assume
11296 # it is available
11297 use_cxa_atexit=yes
11298 fi
11299 if test x$use_cxa_atexit = xyes; then
11300
11301 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11302
11303 fi
11304 fi
11305
11306 # Look for a file containing extra machine modes.
11307 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11308 extra_modes_file='$(srcdir)'/config/${extra_modes}
11309
11310
11311 cat >>confdefs.h <<_ACEOF
11312 #define EXTRA_MODES_FILE "config/$extra_modes"
11313 _ACEOF
11314
11315 fi
11316
11317 # Convert extra_options into a form suitable for Makefile use.
11318 extra_opt_files=
11319 all_opt_files=
11320 for f in $extra_options; do
11321 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11322 all_opt_files="$all_opt_files $srcdir/config/$f"
11323 done
11324
11325
11326 # auto-host.h is the file containing items generated by autoconf and is
11327 # the first file included by config.h.
11328 # If host=build, it is correct to have bconfig include auto-host.h
11329 # as well. If host!=build, we are in error and need to do more
11330 # work to find out the build config parameters.
11331 if test x$host = x$build
11332 then
11333 build_auto=auto-host.h
11334 else
11335 # We create a subdir, then run autoconf in the subdir.
11336 # To prevent recursion we set host and build for the new
11337 # invocation of configure to the build for this invocation
11338 # of configure.
11339 tempdir=build.$$
11340 rm -rf $tempdir
11341 mkdir $tempdir
11342 cd $tempdir
11343 case ${srcdir} in
11344 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11345 *) realsrcdir=../${srcdir};;
11346 esac
11347 saved_CFLAGS="${CFLAGS}"
11348 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11349 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11350 ${realsrcdir}/configure \
11351 --enable-languages=${enable_languages-all} \
11352 --target=$target_alias --host=$build_alias --build=$build_alias
11353 CFLAGS="${saved_CFLAGS}"
11354
11355 # We just finished tests for the build machine, so rename
11356 # the file auto-build.h in the gcc directory.
11357 mv auto-host.h ../auto-build.h
11358 cd ..
11359 rm -rf $tempdir
11360 build_auto=auto-build.h
11361 fi
11362
11363
11364 tm_file="${tm_file} defaults.h"
11365 tm_p_file="${tm_p_file} tm-preds.h"
11366 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11367 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11368 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11369 # put this back in temporarily.
11370 xm_file="auto-host.h ansidecl.h ${xm_file}"
11371
11372 # --------
11373 # UNSORTED
11374 # --------
11375
11376 # Compile in configure arguments.
11377 if test -f configargs.h ; then
11378 # Being re-configured.
11379 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11380 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11381 else
11382 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11383 fi
11384
11385 # Double all backslashes and backslash all quotes to turn
11386 # gcc_config_arguments into a C string.
11387 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11388 $gcc_config_arguments
11389 EOF
11390 gcc_config_arguments_str=`cat conftest.out`
11391 rm -f conftest.out
11392
11393 cat > configargs.h <<EOF
11394 /* Generated automatically. */
11395 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11396 static const char thread_model[] = "$thread_file";
11397
11398 static const struct {
11399 const char *name, *value;
11400 } configure_default_options[] = $configure_default_options;
11401 EOF
11402
11403 gcc_BASEVER=`cat $srcdir/BASE-VER`
11404 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11405 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11406 if test -f $srcdir/REVISION ; then
11407 gcc_REVISION=`cat $srcdir/REVISION`
11408 else
11409 gcc_REVISION=""
11410 fi
11411 cat > plugin-version.h <<EOF
11412 #include "configargs.h"
11413
11414 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11415 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11416 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11417 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11418
11419 static char basever[] = "$gcc_BASEVER";
11420 static char datestamp[] = "$gcc_DATESTAMP";
11421 static char devphase[] = "$gcc_DEVPHASE";
11422 static char revision[] = "$gcc_REVISION";
11423
11424 /* FIXME plugins: We should make the version information more precise.
11425 One way to do is to add a checksum. */
11426
11427 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11428 devphase, revision,
11429 configuration_arguments};
11430 EOF
11431
11432 # Internationalization
11433 # If we haven't got the data from the intl directory,
11434 # assume NLS is disabled.
11435 USE_NLS=no
11436 LIBINTL=
11437 LIBINTL_DEP=
11438 INCINTL=
11439 XGETTEXT=
11440 GMSGFMT=
11441 POSUB=
11442
11443 if test -f ../intl/config.intl; then
11444 . ../intl/config.intl
11445 fi
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11447 $as_echo_n "checking whether NLS is requested... " >&6; }
11448 if test x"$USE_NLS" != xyes; then
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11450 $as_echo "no" >&6; }
11451 else
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11453 $as_echo "yes" >&6; }
11454
11455 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11456
11457
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11459 $as_echo_n "checking for catalogs to be installed... " >&6; }
11460 # Look for .po and .gmo files in the source directory.
11461 CATALOGS=
11462 XLINGUAS=
11463 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11464 # If there aren't any .gmo files the shell will give us the
11465 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11466 # weeded out.
11467 case "$cat" in *\**)
11468 continue;;
11469 esac
11470 # The quadruple backslash is collapsed to a double backslash
11471 # by the backticks, then collapsed again by the double quotes,
11472 # leaving us with one backslash in the sed expression (right
11473 # before the dot that mustn't act as a wildcard).
11474 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11475 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11476 # The user is allowed to set LINGUAS to a list of languages to
11477 # install catalogs for. If it's empty that means "all of them."
11478 if test "x$LINGUAS" = x; then
11479 CATALOGS="$CATALOGS $cat"
11480 XLINGUAS="$XLINGUAS $lang"
11481 else
11482 case "$LINGUAS" in *$lang*)
11483 CATALOGS="$CATALOGS $cat"
11484 XLINGUAS="$XLINGUAS $lang"
11485 ;;
11486 esac
11487 fi
11488 done
11489 LINGUAS="$XLINGUAS"
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11491 $as_echo "$LINGUAS" >&6; }
11492
11493
11494 DATADIRNAME=share
11495
11496 INSTOBJEXT=.mo
11497
11498 GENCAT=gencat
11499
11500 CATOBJEXT=.gmo
11501
11502 fi
11503
11504 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11505 # -liconv on the link line twice.
11506 case "$LIBINTL" in *$LIBICONV*)
11507 LIBICONV= ;;
11508 esac
11509
11510 # Check whether --enable-secureplt was given.
11511 if test "${enable_secureplt+set}" = set; then :
11512 enableval=$enable_secureplt;
11513 fi
11514
11515
11516 # Check whether --enable-leading-mingw64-underscores was given.
11517 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11518 enableval=$enable_leading_mingw64_underscores;
11519 fi
11520
11521 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11522
11523 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11524
11525 fi
11526
11527 # Check whether --enable-cld was given.
11528 if test "${enable_cld+set}" = set; then :
11529 enableval=$enable_cld;
11530 else
11531 enable_cld=no
11532 fi
11533
11534
11535 # Check whether --enable-frame-pointer was given.
11536 if test "${enable_frame_pointer+set}" = set; then :
11537 enableval=$enable_frame_pointer;
11538 else
11539
11540 case $target_os in
11541 linux* | darwin[8912]*)
11542 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11543 # DWARF2.
11544 enable_frame_pointer=no
11545 ;;
11546 *)
11547 enable_frame_pointer=yes
11548 ;;
11549 esac
11550
11551 fi
11552
11553
11554 # Windows32 Registry support for specifying GCC installation paths.
11555 # Check whether --enable-win32-registry was given.
11556 if test "${enable_win32_registry+set}" = set; then :
11557 enableval=$enable_win32_registry;
11558 fi
11559
11560
11561 case $host_os in
11562 win32 | pe | cygwin* | mingw32* | uwin*)
11563 if test "x$enable_win32_registry" != xno; then
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11565 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11566 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11567 $as_echo_n "(cached) " >&6
11568 else
11569 ac_func_search_save_LIBS=$LIBS
11570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11571 /* end confdefs.h. */
11572
11573 /* Override any GCC internal prototype to avoid an error.
11574 Use char because int might match the return type of a GCC
11575 builtin and then its argument prototype would still apply. */
11576 #ifdef __cplusplus
11577 extern "C"
11578 #endif
11579 char RegOpenKeyExA ();
11580 int
11581 main ()
11582 {
11583 return RegOpenKeyExA ();
11584 ;
11585 return 0;
11586 }
11587 _ACEOF
11588 for ac_lib in '' advapi32; do
11589 if test -z "$ac_lib"; then
11590 ac_res="none required"
11591 else
11592 ac_res=-l$ac_lib
11593 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11594 fi
11595 if ac_fn_c_try_link "$LINENO"; then :
11596 ac_cv_search_RegOpenKeyExA=$ac_res
11597 fi
11598 rm -f core conftest.err conftest.$ac_objext \
11599 conftest$ac_exeext
11600 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11601 break
11602 fi
11603 done
11604 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11605
11606 else
11607 ac_cv_search_RegOpenKeyExA=no
11608 fi
11609 rm conftest.$ac_ext
11610 LIBS=$ac_func_search_save_LIBS
11611 fi
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11613 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11614 ac_res=$ac_cv_search_RegOpenKeyExA
11615 if test "$ac_res" != no; then :
11616 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11617
11618 else
11619 enable_win32_registry=no
11620 fi
11621
11622 fi
11623
11624 if test "x$enable_win32_registry" != xno; then
11625
11626 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11627
11628
11629 if test "x$enable_win32_registry" != xyes \
11630 && test "x$enable_win32_registry" != x; then
11631
11632 cat >>confdefs.h <<_ACEOF
11633 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11634 _ACEOF
11635
11636 fi
11637 fi
11638 ;;
11639 esac
11640
11641 # Get an absolute path to the GCC top-level source directory
11642 holddir=`${PWDCMD-pwd}`
11643 cd $srcdir
11644 topdir=`${PWDCMD-pwd}`
11645 cd $holddir
11646
11647 # Conditionalize the makefile for this host machine.
11648 xmake_file=
11649 for f in ${host_xmake_file}
11650 do
11651 if test -f ${srcdir}/config/$f
11652 then
11653 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11654 fi
11655 done
11656
11657 # Conditionalize the makefile for this target machine.
11658 tmake_file_=
11659 for f in ${tmake_file}
11660 do
11661 if test -f ${srcdir}/config/$f
11662 then
11663 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11664 fi
11665 done
11666 tmake_file="${tmake_file_}"
11667
11668 out_object_file=`basename $out_file .c`.o
11669 common_out_object_file=`basename $common_out_file .c`.o
11670
11671 tm_file_list="options.h"
11672 tm_include_list="options.h insn-constants.h"
11673 for f in $tm_file; do
11674 case $f in
11675 ./* )
11676 f=`echo $f | sed 's/^..//'`
11677 tm_file_list="${tm_file_list} $f"
11678 tm_include_list="${tm_include_list} $f"
11679 ;;
11680 defaults.h )
11681 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11682 tm_include_list="${tm_include_list} $f"
11683 ;;
11684 * )
11685 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11686 tm_include_list="${tm_include_list} config/$f"
11687 ;;
11688 esac
11689 done
11690
11691 tm_p_file_list=
11692 tm_p_include_list=
11693 for f in $tm_p_file; do
11694 case $f in
11695 tm-preds.h )
11696 tm_p_file_list="${tm_p_file_list} $f"
11697 tm_p_include_list="${tm_p_include_list} $f"
11698 ;;
11699 * )
11700 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11701 tm_p_include_list="${tm_p_include_list} config/$f"
11702 esac
11703 done
11704
11705 xm_file_list=
11706 xm_include_list=
11707 for f in $xm_file; do
11708 case $f in
11709 ansidecl.h )
11710 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11711 xm_include_list="${xm_include_list} $f"
11712 ;;
11713 auto-host.h )
11714 xm_file_list="${xm_file_list} $f"
11715 xm_include_list="${xm_include_list} $f"
11716 ;;
11717 * )
11718 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11719 xm_include_list="${xm_include_list} config/$f"
11720 ;;
11721 esac
11722 done
11723
11724 host_xm_file_list=
11725 host_xm_include_list=
11726 for f in $host_xm_file; do
11727 case $f in
11728 ansidecl.h )
11729 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11730 host_xm_include_list="${host_xm_include_list} $f"
11731 ;;
11732 auto-host.h )
11733 host_xm_file_list="${host_xm_file_list} $f"
11734 host_xm_include_list="${host_xm_include_list} $f"
11735 ;;
11736 * )
11737 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11738 host_xm_include_list="${host_xm_include_list} config/$f"
11739 ;;
11740 esac
11741 done
11742
11743 build_xm_file_list=
11744 for f in $build_xm_file; do
11745 case $f in
11746 ansidecl.h )
11747 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11748 build_xm_include_list="${build_xm_include_list} $f"
11749 ;;
11750 auto-build.h | auto-host.h )
11751 build_xm_file_list="${build_xm_file_list} $f"
11752 build_xm_include_list="${build_xm_include_list} $f"
11753 ;;
11754 * )
11755 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11756 build_xm_include_list="${build_xm_include_list} config/$f"
11757 ;;
11758 esac
11759 done
11760
11761 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11762 # cross-compiler which does not use the native headers and libraries.
11763 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11764 CROSS=
11765 ALL=all.internal
11766 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11767
11768 if test "x$with_build_sysroot" != x; then
11769 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11770 else
11771 # This value is used, even on a native system, because
11772 # CROSS_SYSTEM_HEADER_DIR is just
11773 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11774 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11775 fi
11776
11777 if test x$host != x$target
11778 then
11779 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11780 ALL=all.cross
11781 SYSTEM_HEADER_DIR=$build_system_header_dir
11782 case "$host","$target" in
11783 # Darwin crosses can use the host system's libraries and headers,
11784 # because of the fat library support. Of course, it must be the
11785 # same version of Darwin on both sides. Allow the user to
11786 # just say --target=foo-darwin without a version number to mean
11787 # "the version on this system".
11788 *-*-darwin*,*-*-darwin*)
11789 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11790 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11791 if test $hostos = $targetos -o $targetos = darwin ; then
11792 CROSS=
11793 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11794 with_headers=yes
11795 fi
11796 ;;
11797
11798 i?86-*-*,x86_64-*-* \
11799 | powerpc*-*-*,powerpc64*-*-*)
11800 CROSS="$CROSS -DNATIVE_CROSS" ;;
11801 esac
11802
11803 case $target in
11804 *-*-mingw*)
11805 if test "x$with_headers" = x; then
11806 with_headers=yes
11807 fi
11808 ;;
11809 *)
11810 ;;
11811 esac
11812 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11813 SYSTEM_HEADER_DIR=$build_system_header_dir
11814 fi
11815
11816 # If this is a cross-compiler that does not
11817 # have its own set of headers then define
11818 # inhibit_libc
11819
11820 # If this is using newlib, without having the headers available now,
11821 # then define inhibit_libc in LIBGCC2_CFLAGS.
11822 # This prevents libgcc2 from containing any code which requires libc
11823 # support.
11824 : ${inhibit_libc=false}
11825 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11826 test x$with_newlib = xyes ; } &&
11827 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11828 inhibit_libc=true
11829 fi
11830
11831
11832 # When building gcc with a cross-compiler, we need to adjust things so
11833 # that the generator programs are still built with the native compiler.
11834 # Also, we cannot run fixincludes.
11835
11836 # These are the normal (build=host) settings:
11837 CC_FOR_BUILD='$(CC)'
11838 BUILD_CFLAGS='$(ALL_CFLAGS)'
11839 BUILD_LDFLAGS='$(LDFLAGS)'
11840 STMP_FIXINC=stmp-fixinc
11841
11842 # And these apply if build != host, or we are generating coverage data
11843 if test x$build != x$host || test "x$coverage_flags" != x
11844 then
11845 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11846 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11847 fi
11848
11849 # Expand extra_headers to include complete path.
11850 # This substitutes for lots of t-* files.
11851 extra_headers_list=
11852 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11853 for file in ${extra_headers} ; do
11854 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11855 done
11856
11857 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11858 if test x"$use_gcc_tgmath" = xyes
11859 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11860 fi
11861
11862 # Define collect2 in Makefile.
11863 case $host_can_use_collect2 in
11864 no) collect2= ;;
11865 *) collect2='collect2$(exeext)' ;;
11866 esac
11867
11868
11869 # Add a definition of USE_COLLECT2 if system wants one.
11870 case $use_collect2 in
11871 no) use_collect2= ;;
11872 "") ;;
11873 *)
11874 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11875 xm_defines="${xm_defines} USE_COLLECT2"
11876 case $host_can_use_collect2 in
11877 no)
11878 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11879 ;;
11880 esac
11881 ;;
11882 esac
11883
11884
11885 cat >>confdefs.h <<_ACEOF
11886 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11887 _ACEOF
11888
11889
11890 # ---------------------------
11891 # Assembler & linker features
11892 # ---------------------------
11893
11894 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11895 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11896 # However when ld-new is first executed from the build tree, libtool will
11897 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11898 # to the build tree. While doing this we need to use the previous-stage
11899 # linker, or we have an infinite loop. The presence of a shell script as
11900 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11901 # the gcc/collect-ld script. So we need to know how libtool works, or
11902 # exec-tool will fail.
11903
11904
11905 case `pwd` in
11906 *\ * | *\ *)
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11908 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11909 esac
11910
11911
11912
11913 macro_version='2.2.7a'
11914 macro_revision='1.3134'
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928 ltmain="$ac_aux_dir/ltmain.sh"
11929
11930 # Backslashify metacharacters that are still active within
11931 # double-quoted strings.
11932 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11933
11934 # Same as above, but do not quote variable references.
11935 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11936
11937 # Sed substitution to delay expansion of an escaped shell variable in a
11938 # double_quote_subst'ed string.
11939 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11940
11941 # Sed substitution to delay expansion of an escaped single quote.
11942 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11943
11944 # Sed substitution to avoid accidental globbing in evaled expressions
11945 no_glob_subst='s/\*/\\\*/g'
11946
11947 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11948 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11949 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11950
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11952 $as_echo_n "checking how to print strings... " >&6; }
11953 # Test print first, because it will be a builtin if present.
11954 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11955 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11956 ECHO='print -r --'
11957 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11958 ECHO='printf %s\n'
11959 else
11960 # Use this function as a fallback that always works.
11961 func_fallback_echo ()
11962 {
11963 eval 'cat <<_LTECHO_EOF
11964 $1
11965 _LTECHO_EOF'
11966 }
11967 ECHO='func_fallback_echo'
11968 fi
11969
11970 # func_echo_all arg...
11971 # Invoke $ECHO with all args, space-separated.
11972 func_echo_all ()
11973 {
11974 $ECHO ""
11975 }
11976
11977 case "$ECHO" in
11978 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11979 $as_echo "printf" >&6; } ;;
11980 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11981 $as_echo "print -r" >&6; } ;;
11982 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11983 $as_echo "cat" >&6; } ;;
11984 esac
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12000 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12001 if test "${ac_cv_path_SED+set}" = set; then :
12002 $as_echo_n "(cached) " >&6
12003 else
12004 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12005 for ac_i in 1 2 3 4 5 6 7; do
12006 ac_script="$ac_script$as_nl$ac_script"
12007 done
12008 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12009 { ac_script=; unset ac_script;}
12010 if test -z "$SED"; then
12011 ac_path_SED_found=false
12012 # Loop through the user's path and test for each of PROGNAME-LIST
12013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12014 for as_dir in $PATH
12015 do
12016 IFS=$as_save_IFS
12017 test -z "$as_dir" && as_dir=.
12018 for ac_prog in sed gsed; do
12019 for ac_exec_ext in '' $ac_executable_extensions; do
12020 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12021 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12022 # Check for GNU ac_path_SED and select it if it is found.
12023 # Check for GNU $ac_path_SED
12024 case `"$ac_path_SED" --version 2>&1` in
12025 *GNU*)
12026 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12027 *)
12028 ac_count=0
12029 $as_echo_n 0123456789 >"conftest.in"
12030 while :
12031 do
12032 cat "conftest.in" "conftest.in" >"conftest.tmp"
12033 mv "conftest.tmp" "conftest.in"
12034 cp "conftest.in" "conftest.nl"
12035 $as_echo '' >> "conftest.nl"
12036 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12037 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12038 as_fn_arith $ac_count + 1 && ac_count=$as_val
12039 if test $ac_count -gt ${ac_path_SED_max-0}; then
12040 # Best one so far, save it but keep looking for a better one
12041 ac_cv_path_SED="$ac_path_SED"
12042 ac_path_SED_max=$ac_count
12043 fi
12044 # 10*(2^10) chars as input seems more than enough
12045 test $ac_count -gt 10 && break
12046 done
12047 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12048 esac
12049
12050 $ac_path_SED_found && break 3
12051 done
12052 done
12053 done
12054 IFS=$as_save_IFS
12055 if test -z "$ac_cv_path_SED"; then
12056 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12057 fi
12058 else
12059 ac_cv_path_SED=$SED
12060 fi
12061
12062 fi
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12064 $as_echo "$ac_cv_path_SED" >&6; }
12065 SED="$ac_cv_path_SED"
12066 rm -f conftest.sed
12067
12068 test -z "$SED" && SED=sed
12069 Xsed="$SED -e 1s/^X//"
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12082 $as_echo_n "checking for fgrep... " >&6; }
12083 if test "${ac_cv_path_FGREP+set}" = set; then :
12084 $as_echo_n "(cached) " >&6
12085 else
12086 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12087 then ac_cv_path_FGREP="$GREP -F"
12088 else
12089 if test -z "$FGREP"; then
12090 ac_path_FGREP_found=false
12091 # Loop through the user's path and test for each of PROGNAME-LIST
12092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12094 do
12095 IFS=$as_save_IFS
12096 test -z "$as_dir" && as_dir=.
12097 for ac_prog in fgrep; do
12098 for ac_exec_ext in '' $ac_executable_extensions; do
12099 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12100 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12101 # Check for GNU ac_path_FGREP and select it if it is found.
12102 # Check for GNU $ac_path_FGREP
12103 case `"$ac_path_FGREP" --version 2>&1` in
12104 *GNU*)
12105 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12106 *)
12107 ac_count=0
12108 $as_echo_n 0123456789 >"conftest.in"
12109 while :
12110 do
12111 cat "conftest.in" "conftest.in" >"conftest.tmp"
12112 mv "conftest.tmp" "conftest.in"
12113 cp "conftest.in" "conftest.nl"
12114 $as_echo 'FGREP' >> "conftest.nl"
12115 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12117 as_fn_arith $ac_count + 1 && ac_count=$as_val
12118 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12119 # Best one so far, save it but keep looking for a better one
12120 ac_cv_path_FGREP="$ac_path_FGREP"
12121 ac_path_FGREP_max=$ac_count
12122 fi
12123 # 10*(2^10) chars as input seems more than enough
12124 test $ac_count -gt 10 && break
12125 done
12126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12127 esac
12128
12129 $ac_path_FGREP_found && break 3
12130 done
12131 done
12132 done
12133 IFS=$as_save_IFS
12134 if test -z "$ac_cv_path_FGREP"; then
12135 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12136 fi
12137 else
12138 ac_cv_path_FGREP=$FGREP
12139 fi
12140
12141 fi
12142 fi
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12144 $as_echo "$ac_cv_path_FGREP" >&6; }
12145 FGREP="$ac_cv_path_FGREP"
12146
12147
12148 test -z "$GREP" && GREP=grep
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168 # Check whether --with-gnu-ld was given.
12169 if test "${with_gnu_ld+set}" = set; then :
12170 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12171 else
12172 with_gnu_ld=no
12173 fi
12174
12175 ac_prog=ld
12176 if test "$GCC" = yes; then
12177 # Check if gcc -print-prog-name=ld gives a path.
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12179 $as_echo_n "checking for ld used by $CC... " >&6; }
12180 case $host in
12181 *-*-mingw*)
12182 # gcc leaves a trailing carriage return which upsets mingw
12183 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12184 *)
12185 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12186 esac
12187 case $ac_prog in
12188 # Accept absolute paths.
12189 [\\/]* | ?:[\\/]*)
12190 re_direlt='/[^/][^/]*/\.\./'
12191 # Canonicalize the pathname of ld
12192 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12193 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12194 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12195 done
12196 test -z "$LD" && LD="$ac_prog"
12197 ;;
12198 "")
12199 # If it fails, then pretend we aren't using GCC.
12200 ac_prog=ld
12201 ;;
12202 *)
12203 # If it is relative, then search for the first ld in PATH.
12204 with_gnu_ld=unknown
12205 ;;
12206 esac
12207 elif test "$with_gnu_ld" = yes; then
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12209 $as_echo_n "checking for GNU ld... " >&6; }
12210 else
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12212 $as_echo_n "checking for non-GNU ld... " >&6; }
12213 fi
12214 if test "${lt_cv_path_LD+set}" = set; then :
12215 $as_echo_n "(cached) " >&6
12216 else
12217 if test -z "$LD"; then
12218 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12219 for ac_dir in $PATH; do
12220 IFS="$lt_save_ifs"
12221 test -z "$ac_dir" && ac_dir=.
12222 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12223 lt_cv_path_LD="$ac_dir/$ac_prog"
12224 # Check to see if the program is GNU ld. I'd rather use --version,
12225 # but apparently some variants of GNU ld only accept -v.
12226 # Break only if it was the GNU/non-GNU ld that we prefer.
12227 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12228 *GNU* | *'with BFD'*)
12229 test "$with_gnu_ld" != no && break
12230 ;;
12231 *)
12232 test "$with_gnu_ld" != yes && break
12233 ;;
12234 esac
12235 fi
12236 done
12237 IFS="$lt_save_ifs"
12238 else
12239 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12240 fi
12241 fi
12242
12243 LD="$lt_cv_path_LD"
12244 if test -n "$LD"; then
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12246 $as_echo "$LD" >&6; }
12247 else
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12249 $as_echo "no" >&6; }
12250 fi
12251 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12253 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12254 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12255 $as_echo_n "(cached) " >&6
12256 else
12257 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12258 case `$LD -v 2>&1 </dev/null` in
12259 *GNU* | *'with BFD'*)
12260 lt_cv_prog_gnu_ld=yes
12261 ;;
12262 *)
12263 lt_cv_prog_gnu_ld=no
12264 ;;
12265 esac
12266 fi
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12268 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12269 with_gnu_ld=$lt_cv_prog_gnu_ld
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12280 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12281 if test "${lt_cv_path_NM+set}" = set; then :
12282 $as_echo_n "(cached) " >&6
12283 else
12284 if test -n "$NM"; then
12285 # Let the user override the test.
12286 lt_cv_path_NM="$NM"
12287 else
12288 lt_nm_to_check="${ac_tool_prefix}nm"
12289 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12290 lt_nm_to_check="$lt_nm_to_check nm"
12291 fi
12292 for lt_tmp_nm in $lt_nm_to_check; do
12293 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12294 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12295 IFS="$lt_save_ifs"
12296 test -z "$ac_dir" && ac_dir=.
12297 tmp_nm="$ac_dir/$lt_tmp_nm"
12298 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12299 # Check to see if the nm accepts a BSD-compat flag.
12300 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12301 # nm: unknown option "B" ignored
12302 # Tru64's nm complains that /dev/null is an invalid object file
12303 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12304 */dev/null* | *'Invalid file or object type'*)
12305 lt_cv_path_NM="$tmp_nm -B"
12306 break
12307 ;;
12308 *)
12309 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12310 */dev/null*)
12311 lt_cv_path_NM="$tmp_nm -p"
12312 break
12313 ;;
12314 *)
12315 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12316 continue # so that we can try to find one that supports BSD flags
12317 ;;
12318 esac
12319 ;;
12320 esac
12321 fi
12322 done
12323 IFS="$lt_save_ifs"
12324 done
12325 : ${lt_cv_path_NM=no}
12326 fi
12327 fi
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12329 $as_echo "$lt_cv_path_NM" >&6; }
12330 if test "$lt_cv_path_NM" != "no"; then
12331 NM="$lt_cv_path_NM"
12332 else
12333 # Didn't find any BSD compatible name lister, look for dumpbin.
12334 if test -n "$DUMPBIN"; then :
12335 # Let the user override the test.
12336 else
12337 if test -n "$ac_tool_prefix"; then
12338 for ac_prog in dumpbin "link -dump"
12339 do
12340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12341 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12343 $as_echo_n "checking for $ac_word... " >&6; }
12344 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12345 $as_echo_n "(cached) " >&6
12346 else
12347 if test -n "$DUMPBIN"; then
12348 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12349 else
12350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351 for as_dir in $PATH
12352 do
12353 IFS=$as_save_IFS
12354 test -z "$as_dir" && as_dir=.
12355 for ac_exec_ext in '' $ac_executable_extensions; do
12356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12357 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12359 break 2
12360 fi
12361 done
12362 done
12363 IFS=$as_save_IFS
12364
12365 fi
12366 fi
12367 DUMPBIN=$ac_cv_prog_DUMPBIN
12368 if test -n "$DUMPBIN"; then
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12370 $as_echo "$DUMPBIN" >&6; }
12371 else
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373 $as_echo "no" >&6; }
12374 fi
12375
12376
12377 test -n "$DUMPBIN" && break
12378 done
12379 fi
12380 if test -z "$DUMPBIN"; then
12381 ac_ct_DUMPBIN=$DUMPBIN
12382 for ac_prog in dumpbin "link -dump"
12383 do
12384 # Extract the first word of "$ac_prog", so it can be a program name with args.
12385 set dummy $ac_prog; ac_word=$2
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12387 $as_echo_n "checking for $ac_word... " >&6; }
12388 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12389 $as_echo_n "(cached) " >&6
12390 else
12391 if test -n "$ac_ct_DUMPBIN"; then
12392 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12393 else
12394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12395 for as_dir in $PATH
12396 do
12397 IFS=$as_save_IFS
12398 test -z "$as_dir" && as_dir=.
12399 for ac_exec_ext in '' $ac_executable_extensions; do
12400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12401 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12403 break 2
12404 fi
12405 done
12406 done
12407 IFS=$as_save_IFS
12408
12409 fi
12410 fi
12411 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12412 if test -n "$ac_ct_DUMPBIN"; then
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12414 $as_echo "$ac_ct_DUMPBIN" >&6; }
12415 else
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12417 $as_echo "no" >&6; }
12418 fi
12419
12420
12421 test -n "$ac_ct_DUMPBIN" && break
12422 done
12423
12424 if test "x$ac_ct_DUMPBIN" = x; then
12425 DUMPBIN=":"
12426 else
12427 case $cross_compiling:$ac_tool_warned in
12428 yes:)
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12431 ac_tool_warned=yes ;;
12432 esac
12433 DUMPBIN=$ac_ct_DUMPBIN
12434 fi
12435 fi
12436
12437 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12438 *COFF*)
12439 DUMPBIN="$DUMPBIN -symbols"
12440 ;;
12441 *)
12442 DUMPBIN=:
12443 ;;
12444 esac
12445 fi
12446
12447 if test "$DUMPBIN" != ":"; then
12448 NM="$DUMPBIN"
12449 fi
12450 fi
12451 test -z "$NM" && NM=nm
12452
12453
12454
12455
12456
12457
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12459 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12460 if test "${lt_cv_nm_interface+set}" = set; then :
12461 $as_echo_n "(cached) " >&6
12462 else
12463 lt_cv_nm_interface="BSD nm"
12464 echo "int some_variable = 0;" > conftest.$ac_ext
12465 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12466 (eval "$ac_compile" 2>conftest.err)
12467 cat conftest.err >&5
12468 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12469 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12470 cat conftest.err >&5
12471 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12472 cat conftest.out >&5
12473 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12474 lt_cv_nm_interface="MS dumpbin"
12475 fi
12476 rm -f conftest*
12477 fi
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12479 $as_echo "$lt_cv_nm_interface" >&6; }
12480
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12482 $as_echo_n "checking whether ln -s works... " >&6; }
12483 LN_S=$as_ln_s
12484 if test "$LN_S" = "ln -s"; then
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12486 $as_echo "yes" >&6; }
12487 else
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12489 $as_echo "no, using $LN_S" >&6; }
12490 fi
12491
12492 # find the maximum length of command line arguments
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12494 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12495 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12496 $as_echo_n "(cached) " >&6
12497 else
12498 i=0
12499 teststring="ABCD"
12500
12501 case $build_os in
12502 msdosdjgpp*)
12503 # On DJGPP, this test can blow up pretty badly due to problems in libc
12504 # (any single argument exceeding 2000 bytes causes a buffer overrun
12505 # during glob expansion). Even if it were fixed, the result of this
12506 # check would be larger than it should be.
12507 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12508 ;;
12509
12510 gnu*)
12511 # Under GNU Hurd, this test is not required because there is
12512 # no limit to the length of command line arguments.
12513 # Libtool will interpret -1 as no limit whatsoever
12514 lt_cv_sys_max_cmd_len=-1;
12515 ;;
12516
12517 cygwin* | mingw* | cegcc*)
12518 # On Win9x/ME, this test blows up -- it succeeds, but takes
12519 # about 5 minutes as the teststring grows exponentially.
12520 # Worse, since 9x/ME are not pre-emptively multitasking,
12521 # you end up with a "frozen" computer, even though with patience
12522 # the test eventually succeeds (with a max line length of 256k).
12523 # Instead, let's just punt: use the minimum linelength reported by
12524 # all of the supported platforms: 8192 (on NT/2K/XP).
12525 lt_cv_sys_max_cmd_len=8192;
12526 ;;
12527
12528 mint*)
12529 # On MiNT this can take a long time and run out of memory.
12530 lt_cv_sys_max_cmd_len=8192;
12531 ;;
12532
12533 amigaos*)
12534 # On AmigaOS with pdksh, this test takes hours, literally.
12535 # So we just punt and use a minimum line length of 8192.
12536 lt_cv_sys_max_cmd_len=8192;
12537 ;;
12538
12539 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12540 # This has been around since 386BSD, at least. Likely further.
12541 if test -x /sbin/sysctl; then
12542 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12543 elif test -x /usr/sbin/sysctl; then
12544 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12545 else
12546 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12547 fi
12548 # And add a safety zone
12549 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12550 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12551 ;;
12552
12553 interix*)
12554 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12555 lt_cv_sys_max_cmd_len=196608
12556 ;;
12557
12558 osf*)
12559 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12560 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12561 # nice to cause kernel panics so lets avoid the loop below.
12562 # First set a reasonable default.
12563 lt_cv_sys_max_cmd_len=16384
12564 #
12565 if test -x /sbin/sysconfig; then
12566 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12567 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12568 esac
12569 fi
12570 ;;
12571 sco3.2v5*)
12572 lt_cv_sys_max_cmd_len=102400
12573 ;;
12574 sysv5* | sco5v6* | sysv4.2uw2*)
12575 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12576 if test -n "$kargmax"; then
12577 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12578 else
12579 lt_cv_sys_max_cmd_len=32768
12580 fi
12581 ;;
12582 *)
12583 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12584 if test -n "$lt_cv_sys_max_cmd_len"; then
12585 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12586 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12587 else
12588 # Make teststring a little bigger before we do anything with it.
12589 # a 1K string should be a reasonable start.
12590 for i in 1 2 3 4 5 6 7 8 ; do
12591 teststring=$teststring$teststring
12592 done
12593 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12594 # If test is not a shell built-in, we'll probably end up computing a
12595 # maximum length that is only half of the actual maximum length, but
12596 # we can't tell.
12597 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12598 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12599 test $i != 17 # 1/2 MB should be enough
12600 do
12601 i=`expr $i + 1`
12602 teststring=$teststring$teststring
12603 done
12604 # Only check the string length outside the loop.
12605 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12606 teststring=
12607 # Add a significant safety factor because C++ compilers can tack on
12608 # massive amounts of additional arguments before passing them to the
12609 # linker. It appears as though 1/2 is a usable value.
12610 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12611 fi
12612 ;;
12613 esac
12614
12615 fi
12616
12617 if test -n $lt_cv_sys_max_cmd_len ; then
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12619 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12620 else
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12622 $as_echo "none" >&6; }
12623 fi
12624 max_cmd_len=$lt_cv_sys_max_cmd_len
12625
12626
12627
12628
12629
12630
12631 : ${CP="cp -f"}
12632 : ${MV="mv -f"}
12633 : ${RM="rm -f"}
12634
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12636 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12637 # Try some XSI features
12638 xsi_shell=no
12639 ( _lt_dummy="a/b/c"
12640 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12641 = c,a/b,, \
12642 && eval 'test $(( 1 + 1 )) -eq 2 \
12643 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12644 && xsi_shell=yes
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12646 $as_echo "$xsi_shell" >&6; }
12647
12648
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12650 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12651 lt_shell_append=no
12652 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12653 >/dev/null 2>&1 \
12654 && lt_shell_append=yes
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12656 $as_echo "$lt_shell_append" >&6; }
12657
12658
12659 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12660 lt_unset=unset
12661 else
12662 lt_unset=false
12663 fi
12664
12665
12666
12667
12668
12669 # test EBCDIC or ASCII
12670 case `echo X|tr X '\101'` in
12671 A) # ASCII based system
12672 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12673 lt_SP2NL='tr \040 \012'
12674 lt_NL2SP='tr \015\012 \040\040'
12675 ;;
12676 *) # EBCDIC based system
12677 lt_SP2NL='tr \100 \n'
12678 lt_NL2SP='tr \r\n \100\100'
12679 ;;
12680 esac
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12691 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12692 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12693 $as_echo_n "(cached) " >&6
12694 else
12695 lt_cv_ld_reload_flag='-r'
12696 fi
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12698 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12699 reload_flag=$lt_cv_ld_reload_flag
12700 case $reload_flag in
12701 "" | " "*) ;;
12702 *) reload_flag=" $reload_flag" ;;
12703 esac
12704 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12705 case $host_os in
12706 darwin*)
12707 if test "$GCC" = yes; then
12708 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12709 else
12710 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12711 fi
12712 ;;
12713 esac
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723 if test -n "$ac_tool_prefix"; then
12724 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12725 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12727 $as_echo_n "checking for $ac_word... " >&6; }
12728 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12729 $as_echo_n "(cached) " >&6
12730 else
12731 if test -n "$OBJDUMP"; then
12732 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12733 else
12734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12735 for as_dir in $PATH
12736 do
12737 IFS=$as_save_IFS
12738 test -z "$as_dir" && as_dir=.
12739 for ac_exec_ext in '' $ac_executable_extensions; do
12740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12741 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12743 break 2
12744 fi
12745 done
12746 done
12747 IFS=$as_save_IFS
12748
12749 fi
12750 fi
12751 OBJDUMP=$ac_cv_prog_OBJDUMP
12752 if test -n "$OBJDUMP"; then
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12754 $as_echo "$OBJDUMP" >&6; }
12755 else
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12757 $as_echo "no" >&6; }
12758 fi
12759
12760
12761 fi
12762 if test -z "$ac_cv_prog_OBJDUMP"; then
12763 ac_ct_OBJDUMP=$OBJDUMP
12764 # Extract the first word of "objdump", so it can be a program name with args.
12765 set dummy objdump; ac_word=$2
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12767 $as_echo_n "checking for $ac_word... " >&6; }
12768 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12769 $as_echo_n "(cached) " >&6
12770 else
12771 if test -n "$ac_ct_OBJDUMP"; then
12772 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12773 else
12774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12775 for as_dir in $PATH
12776 do
12777 IFS=$as_save_IFS
12778 test -z "$as_dir" && as_dir=.
12779 for ac_exec_ext in '' $ac_executable_extensions; do
12780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12781 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12783 break 2
12784 fi
12785 done
12786 done
12787 IFS=$as_save_IFS
12788
12789 fi
12790 fi
12791 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12792 if test -n "$ac_ct_OBJDUMP"; then
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12794 $as_echo "$ac_ct_OBJDUMP" >&6; }
12795 else
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12797 $as_echo "no" >&6; }
12798 fi
12799
12800 if test "x$ac_ct_OBJDUMP" = x; then
12801 OBJDUMP="false"
12802 else
12803 case $cross_compiling:$ac_tool_warned in
12804 yes:)
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12807 ac_tool_warned=yes ;;
12808 esac
12809 OBJDUMP=$ac_ct_OBJDUMP
12810 fi
12811 else
12812 OBJDUMP="$ac_cv_prog_OBJDUMP"
12813 fi
12814
12815 test -z "$OBJDUMP" && OBJDUMP=objdump
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12826 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12827 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12828 $as_echo_n "(cached) " >&6
12829 else
12830 lt_cv_file_magic_cmd='$MAGIC_CMD'
12831 lt_cv_file_magic_test_file=
12832 lt_cv_deplibs_check_method='unknown'
12833 # Need to set the preceding variable on all platforms that support
12834 # interlibrary dependencies.
12835 # 'none' -- dependencies not supported.
12836 # `unknown' -- same as none, but documents that we really don't know.
12837 # 'pass_all' -- all dependencies passed with no checks.
12838 # 'test_compile' -- check by making test program.
12839 # 'file_magic [[regex]]' -- check by looking for files in library path
12840 # which responds to the $file_magic_cmd with a given extended regex.
12841 # If you have `file' or equivalent on your system and you're not sure
12842 # whether `pass_all' will *always* work, you probably want this one.
12843
12844 case $host_os in
12845 aix[4-9]*)
12846 lt_cv_deplibs_check_method=pass_all
12847 ;;
12848
12849 beos*)
12850 lt_cv_deplibs_check_method=pass_all
12851 ;;
12852
12853 bsdi[45]*)
12854 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12855 lt_cv_file_magic_cmd='/usr/bin/file -L'
12856 lt_cv_file_magic_test_file=/shlib/libc.so
12857 ;;
12858
12859 cygwin*)
12860 # func_win32_libid is a shell function defined in ltmain.sh
12861 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12862 lt_cv_file_magic_cmd='func_win32_libid'
12863 ;;
12864
12865 mingw* | pw32*)
12866 # Base MSYS/MinGW do not provide the 'file' command needed by
12867 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12868 # unless we find 'file', for example because we are cross-compiling.
12869 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12870 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12871 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12872 lt_cv_file_magic_cmd='func_win32_libid'
12873 else
12874 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12875 lt_cv_file_magic_cmd='$OBJDUMP -f'
12876 fi
12877 ;;
12878
12879 cegcc*)
12880 # use the weaker test based on 'objdump'. See mingw*.
12881 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12882 lt_cv_file_magic_cmd='$OBJDUMP -f'
12883 ;;
12884
12885 darwin* | rhapsody*)
12886 lt_cv_deplibs_check_method=pass_all
12887 ;;
12888
12889 freebsd* | dragonfly*)
12890 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12891 case $host_cpu in
12892 i*86 )
12893 # Not sure whether the presence of OpenBSD here was a mistake.
12894 # Let's accept both of them until this is cleared up.
12895 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12896 lt_cv_file_magic_cmd=/usr/bin/file
12897 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12898 ;;
12899 esac
12900 else
12901 lt_cv_deplibs_check_method=pass_all
12902 fi
12903 ;;
12904
12905 gnu*)
12906 lt_cv_deplibs_check_method=pass_all
12907 ;;
12908
12909 haiku*)
12910 lt_cv_deplibs_check_method=pass_all
12911 ;;
12912
12913 hpux10.20* | hpux11*)
12914 lt_cv_file_magic_cmd=/usr/bin/file
12915 case $host_cpu in
12916 ia64*)
12917 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12918 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12919 ;;
12920 hppa*64*)
12921 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]'
12922 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12923 ;;
12924 *)
12925 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12926 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12927 ;;
12928 esac
12929 ;;
12930
12931 interix[3-9]*)
12932 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12933 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12934 ;;
12935
12936 irix5* | irix6* | nonstopux*)
12937 case $LD in
12938 *-32|*"-32 ") libmagic=32-bit;;
12939 *-n32|*"-n32 ") libmagic=N32;;
12940 *-64|*"-64 ") libmagic=64-bit;;
12941 *) libmagic=never-match;;
12942 esac
12943 lt_cv_deplibs_check_method=pass_all
12944 ;;
12945
12946 # This must be Linux ELF.
12947 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12948 lt_cv_deplibs_check_method=pass_all
12949 ;;
12950
12951 netbsd*)
12952 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12953 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12954 else
12955 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12956 fi
12957 ;;
12958
12959 newos6*)
12960 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12961 lt_cv_file_magic_cmd=/usr/bin/file
12962 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12963 ;;
12964
12965 *nto* | *qnx*)
12966 lt_cv_deplibs_check_method=pass_all
12967 ;;
12968
12969 openbsd*)
12970 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12971 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12972 else
12973 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12974 fi
12975 ;;
12976
12977 osf3* | osf4* | osf5*)
12978 lt_cv_deplibs_check_method=pass_all
12979 ;;
12980
12981 rdos*)
12982 lt_cv_deplibs_check_method=pass_all
12983 ;;
12984
12985 solaris*)
12986 lt_cv_deplibs_check_method=pass_all
12987 ;;
12988
12989 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12990 lt_cv_deplibs_check_method=pass_all
12991 ;;
12992
12993 sysv4 | sysv4.3*)
12994 case $host_vendor in
12995 motorola)
12996 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]'
12997 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12998 ;;
12999 ncr)
13000 lt_cv_deplibs_check_method=pass_all
13001 ;;
13002 sequent)
13003 lt_cv_file_magic_cmd='/bin/file'
13004 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13005 ;;
13006 sni)
13007 lt_cv_file_magic_cmd='/bin/file'
13008 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13009 lt_cv_file_magic_test_file=/lib/libc.so
13010 ;;
13011 siemens)
13012 lt_cv_deplibs_check_method=pass_all
13013 ;;
13014 pc)
13015 lt_cv_deplibs_check_method=pass_all
13016 ;;
13017 esac
13018 ;;
13019
13020 tpf*)
13021 lt_cv_deplibs_check_method=pass_all
13022 ;;
13023 esac
13024
13025 fi
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13027 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13028 file_magic_cmd=$lt_cv_file_magic_cmd
13029 deplibs_check_method=$lt_cv_deplibs_check_method
13030 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043 if test -n "$ac_tool_prefix"; then
13044 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13045 set dummy ${ac_tool_prefix}ar; ac_word=$2
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13047 $as_echo_n "checking for $ac_word... " >&6; }
13048 if test "${ac_cv_prog_AR+set}" = set; then :
13049 $as_echo_n "(cached) " >&6
13050 else
13051 if test -n "$AR"; then
13052 ac_cv_prog_AR="$AR" # Let the user override the test.
13053 else
13054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13055 for as_dir in $PATH
13056 do
13057 IFS=$as_save_IFS
13058 test -z "$as_dir" && as_dir=.
13059 for ac_exec_ext in '' $ac_executable_extensions; do
13060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13061 ac_cv_prog_AR="${ac_tool_prefix}ar"
13062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13063 break 2
13064 fi
13065 done
13066 done
13067 IFS=$as_save_IFS
13068
13069 fi
13070 fi
13071 AR=$ac_cv_prog_AR
13072 if test -n "$AR"; then
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13074 $as_echo "$AR" >&6; }
13075 else
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13077 $as_echo "no" >&6; }
13078 fi
13079
13080
13081 fi
13082 if test -z "$ac_cv_prog_AR"; then
13083 ac_ct_AR=$AR
13084 # Extract the first word of "ar", so it can be a program name with args.
13085 set dummy ar; ac_word=$2
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13087 $as_echo_n "checking for $ac_word... " >&6; }
13088 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13089 $as_echo_n "(cached) " >&6
13090 else
13091 if test -n "$ac_ct_AR"; then
13092 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13093 else
13094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13095 for as_dir in $PATH
13096 do
13097 IFS=$as_save_IFS
13098 test -z "$as_dir" && as_dir=.
13099 for ac_exec_ext in '' $ac_executable_extensions; do
13100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13101 ac_cv_prog_ac_ct_AR="ar"
13102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13103 break 2
13104 fi
13105 done
13106 done
13107 IFS=$as_save_IFS
13108
13109 fi
13110 fi
13111 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13112 if test -n "$ac_ct_AR"; then
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13114 $as_echo "$ac_ct_AR" >&6; }
13115 else
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13117 $as_echo "no" >&6; }
13118 fi
13119
13120 if test "x$ac_ct_AR" = x; then
13121 AR="false"
13122 else
13123 case $cross_compiling:$ac_tool_warned in
13124 yes:)
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13127 ac_tool_warned=yes ;;
13128 esac
13129 AR=$ac_ct_AR
13130 fi
13131 else
13132 AR="$ac_cv_prog_AR"
13133 fi
13134
13135 test -z "$AR" && AR=ar
13136 test -z "$AR_FLAGS" && AR_FLAGS=cru
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148 if test -n "$ac_tool_prefix"; then
13149 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13150 set dummy ${ac_tool_prefix}strip; ac_word=$2
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13152 $as_echo_n "checking for $ac_word... " >&6; }
13153 if test "${ac_cv_prog_STRIP+set}" = set; then :
13154 $as_echo_n "(cached) " >&6
13155 else
13156 if test -n "$STRIP"; then
13157 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13158 else
13159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13160 for as_dir in $PATH
13161 do
13162 IFS=$as_save_IFS
13163 test -z "$as_dir" && as_dir=.
13164 for ac_exec_ext in '' $ac_executable_extensions; do
13165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13166 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13168 break 2
13169 fi
13170 done
13171 done
13172 IFS=$as_save_IFS
13173
13174 fi
13175 fi
13176 STRIP=$ac_cv_prog_STRIP
13177 if test -n "$STRIP"; then
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13179 $as_echo "$STRIP" >&6; }
13180 else
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13182 $as_echo "no" >&6; }
13183 fi
13184
13185
13186 fi
13187 if test -z "$ac_cv_prog_STRIP"; then
13188 ac_ct_STRIP=$STRIP
13189 # Extract the first word of "strip", so it can be a program name with args.
13190 set dummy strip; ac_word=$2
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13192 $as_echo_n "checking for $ac_word... " >&6; }
13193 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13194 $as_echo_n "(cached) " >&6
13195 else
13196 if test -n "$ac_ct_STRIP"; then
13197 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13198 else
13199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13200 for as_dir in $PATH
13201 do
13202 IFS=$as_save_IFS
13203 test -z "$as_dir" && as_dir=.
13204 for ac_exec_ext in '' $ac_executable_extensions; do
13205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13206 ac_cv_prog_ac_ct_STRIP="strip"
13207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13208 break 2
13209 fi
13210 done
13211 done
13212 IFS=$as_save_IFS
13213
13214 fi
13215 fi
13216 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13217 if test -n "$ac_ct_STRIP"; then
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13219 $as_echo "$ac_ct_STRIP" >&6; }
13220 else
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13222 $as_echo "no" >&6; }
13223 fi
13224
13225 if test "x$ac_ct_STRIP" = x; then
13226 STRIP=":"
13227 else
13228 case $cross_compiling:$ac_tool_warned in
13229 yes:)
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13232 ac_tool_warned=yes ;;
13233 esac
13234 STRIP=$ac_ct_STRIP
13235 fi
13236 else
13237 STRIP="$ac_cv_prog_STRIP"
13238 fi
13239
13240 test -z "$STRIP" && STRIP=:
13241
13242
13243
13244
13245
13246
13247 if test -n "$ac_tool_prefix"; then
13248 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13249 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13251 $as_echo_n "checking for $ac_word... " >&6; }
13252 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13253 $as_echo_n "(cached) " >&6
13254 else
13255 if test -n "$RANLIB"; then
13256 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13257 else
13258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13259 for as_dir in $PATH
13260 do
13261 IFS=$as_save_IFS
13262 test -z "$as_dir" && as_dir=.
13263 for ac_exec_ext in '' $ac_executable_extensions; do
13264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13265 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13267 break 2
13268 fi
13269 done
13270 done
13271 IFS=$as_save_IFS
13272
13273 fi
13274 fi
13275 RANLIB=$ac_cv_prog_RANLIB
13276 if test -n "$RANLIB"; then
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13278 $as_echo "$RANLIB" >&6; }
13279 else
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13281 $as_echo "no" >&6; }
13282 fi
13283
13284
13285 fi
13286 if test -z "$ac_cv_prog_RANLIB"; then
13287 ac_ct_RANLIB=$RANLIB
13288 # Extract the first word of "ranlib", so it can be a program name with args.
13289 set dummy ranlib; ac_word=$2
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13291 $as_echo_n "checking for $ac_word... " >&6; }
13292 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13293 $as_echo_n "(cached) " >&6
13294 else
13295 if test -n "$ac_ct_RANLIB"; then
13296 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13297 else
13298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13299 for as_dir in $PATH
13300 do
13301 IFS=$as_save_IFS
13302 test -z "$as_dir" && as_dir=.
13303 for ac_exec_ext in '' $ac_executable_extensions; do
13304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13305 ac_cv_prog_ac_ct_RANLIB="ranlib"
13306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13307 break 2
13308 fi
13309 done
13310 done
13311 IFS=$as_save_IFS
13312
13313 fi
13314 fi
13315 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13316 if test -n "$ac_ct_RANLIB"; then
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13318 $as_echo "$ac_ct_RANLIB" >&6; }
13319 else
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13321 $as_echo "no" >&6; }
13322 fi
13323
13324 if test "x$ac_ct_RANLIB" = x; then
13325 RANLIB=":"
13326 else
13327 case $cross_compiling:$ac_tool_warned in
13328 yes:)
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13331 ac_tool_warned=yes ;;
13332 esac
13333 RANLIB=$ac_ct_RANLIB
13334 fi
13335 else
13336 RANLIB="$ac_cv_prog_RANLIB"
13337 fi
13338
13339 test -z "$RANLIB" && RANLIB=:
13340
13341
13342
13343
13344
13345
13346 # Determine commands to create old-style static archives.
13347 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13348 old_postinstall_cmds='chmod 644 $oldlib'
13349 old_postuninstall_cmds=
13350
13351 if test -n "$RANLIB"; then
13352 case $host_os in
13353 openbsd*)
13354 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13355 ;;
13356 *)
13357 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13358 ;;
13359 esac
13360 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13361 fi
13362
13363 case $host_os in
13364 darwin*)
13365 lock_old_archive_extraction=yes ;;
13366 *)
13367 lock_old_archive_extraction=no ;;
13368 esac
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408 # If no C compiler was specified, use CC.
13409 LTCC=${LTCC-"$CC"}
13410
13411 # If no C compiler flags were specified, use CFLAGS.
13412 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13413
13414 # Allow CC to be a program name with arguments.
13415 compiler=$CC
13416
13417
13418 # Check for command to grab the raw symbol name followed by C symbol from nm.
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13420 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13421 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13422 $as_echo_n "(cached) " >&6
13423 else
13424
13425 # These are sane defaults that work on at least a few old systems.
13426 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13427
13428 # Character class describing NM global symbol codes.
13429 symcode='[BCDEGRST]'
13430
13431 # Regexp to match symbols that can be accessed directly from C.
13432 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13433
13434 # Define system-specific variables.
13435 case $host_os in
13436 aix*)
13437 symcode='[BCDT]'
13438 ;;
13439 cygwin* | mingw* | pw32* | cegcc*)
13440 symcode='[ABCDGISTW]'
13441 ;;
13442 hpux*)
13443 if test "$host_cpu" = ia64; then
13444 symcode='[ABCDEGRST]'
13445 fi
13446 ;;
13447 irix* | nonstopux*)
13448 symcode='[BCDEGRST]'
13449 ;;
13450 osf*)
13451 symcode='[BCDEGQRST]'
13452 ;;
13453 solaris*)
13454 symcode='[BDRT]'
13455 ;;
13456 sco3.2v5*)
13457 symcode='[DT]'
13458 ;;
13459 sysv4.2uw2*)
13460 symcode='[DT]'
13461 ;;
13462 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13463 symcode='[ABDT]'
13464 ;;
13465 sysv4)
13466 symcode='[DFNSTU]'
13467 ;;
13468 esac
13469
13470 # If we're using GNU nm, then use its standard symbol codes.
13471 case `$NM -V 2>&1` in
13472 *GNU* | *'with BFD'*)
13473 symcode='[ABCDGIRSTW]' ;;
13474 esac
13475
13476 # Transform an extracted symbol line into a proper C declaration.
13477 # Some systems (esp. on ia64) link data and code symbols differently,
13478 # so use this general approach.
13479 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13480
13481 # Transform an extracted symbol line into symbol name and symbol address
13482 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13483 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'"
13484
13485 # Handle CRLF in mingw tool chain
13486 opt_cr=
13487 case $build_os in
13488 mingw*)
13489 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13490 ;;
13491 esac
13492
13493 # Try without a prefix underscore, then with it.
13494 for ac_symprfx in "" "_"; do
13495
13496 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13497 symxfrm="\\1 $ac_symprfx\\2 \\2"
13498
13499 # Write the raw and C identifiers.
13500 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13501 # Fake it for dumpbin and say T for any non-static function
13502 # and D for any global variable.
13503 # Also find C++ and __fastcall symbols from MSVC++,
13504 # which start with @ or ?.
13505 lt_cv_sys_global_symbol_pipe="$AWK '"\
13506 " {last_section=section; section=\$ 3};"\
13507 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13508 " \$ 0!~/External *\|/{next};"\
13509 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13510 " {if(hide[section]) next};"\
13511 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13512 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13513 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13514 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13515 " ' prfx=^$ac_symprfx"
13516 else
13517 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13518 fi
13519
13520 # Check to see that the pipe works correctly.
13521 pipe_works=no
13522
13523 rm -f conftest*
13524 cat > conftest.$ac_ext <<_LT_EOF
13525 #ifdef __cplusplus
13526 extern "C" {
13527 #endif
13528 char nm_test_var;
13529 void nm_test_func(void);
13530 void nm_test_func(void){}
13531 #ifdef __cplusplus
13532 }
13533 #endif
13534 int main(){nm_test_var='a';nm_test_func();return(0);}
13535 _LT_EOF
13536
13537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13538 (eval $ac_compile) 2>&5
13539 ac_status=$?
13540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13541 test $ac_status = 0; }; then
13542 # Now try to grab the symbols.
13543 nlist=conftest.nm
13544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13545 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13546 ac_status=$?
13547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13548 test $ac_status = 0; } && test -s "$nlist"; then
13549 # Try sorting and uniquifying the output.
13550 if sort "$nlist" | uniq > "$nlist"T; then
13551 mv -f "$nlist"T "$nlist"
13552 else
13553 rm -f "$nlist"T
13554 fi
13555
13556 # Make sure that we snagged all the symbols we need.
13557 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13558 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13559 cat <<_LT_EOF > conftest.$ac_ext
13560 #ifdef __cplusplus
13561 extern "C" {
13562 #endif
13563
13564 _LT_EOF
13565 # Now generate the symbol file.
13566 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13567
13568 cat <<_LT_EOF >> conftest.$ac_ext
13569
13570 /* The mapping between symbol names and symbols. */
13571 const struct {
13572 const char *name;
13573 void *address;
13574 }
13575 lt__PROGRAM__LTX_preloaded_symbols[] =
13576 {
13577 { "@PROGRAM@", (void *) 0 },
13578 _LT_EOF
13579 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13580 cat <<\_LT_EOF >> conftest.$ac_ext
13581 {0, (void *) 0}
13582 };
13583
13584 /* This works around a problem in FreeBSD linker */
13585 #ifdef FREEBSD_WORKAROUND
13586 static const void *lt_preloaded_setup() {
13587 return lt__PROGRAM__LTX_preloaded_symbols;
13588 }
13589 #endif
13590
13591 #ifdef __cplusplus
13592 }
13593 #endif
13594 _LT_EOF
13595 # Now try linking the two files.
13596 mv conftest.$ac_objext conftstm.$ac_objext
13597 lt_save_LIBS="$LIBS"
13598 lt_save_CFLAGS="$CFLAGS"
13599 LIBS="conftstm.$ac_objext"
13600 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13602 (eval $ac_link) 2>&5
13603 ac_status=$?
13604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13605 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13606 pipe_works=yes
13607 fi
13608 LIBS="$lt_save_LIBS"
13609 CFLAGS="$lt_save_CFLAGS"
13610 else
13611 echo "cannot find nm_test_func in $nlist" >&5
13612 fi
13613 else
13614 echo "cannot find nm_test_var in $nlist" >&5
13615 fi
13616 else
13617 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13618 fi
13619 else
13620 echo "$progname: failed program was:" >&5
13621 cat conftest.$ac_ext >&5
13622 fi
13623 rm -rf conftest* conftst*
13624
13625 # Do not use the global_symbol_pipe unless it works.
13626 if test "$pipe_works" = yes; then
13627 break
13628 else
13629 lt_cv_sys_global_symbol_pipe=
13630 fi
13631 done
13632
13633 fi
13634
13635 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13636 lt_cv_sys_global_symbol_to_cdecl=
13637 fi
13638 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13640 $as_echo "failed" >&6; }
13641 else
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13643 $as_echo "ok" >&6; }
13644 fi
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667 # Check whether --enable-libtool-lock was given.
13668 if test "${enable_libtool_lock+set}" = set; then :
13669 enableval=$enable_libtool_lock;
13670 fi
13671
13672 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13673
13674 # Some flags need to be propagated to the compiler or linker for good
13675 # libtool support.
13676 case $host in
13677 ia64-*-hpux*)
13678 # Find out which ABI we are using.
13679 echo 'int i;' > conftest.$ac_ext
13680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13681 (eval $ac_compile) 2>&5
13682 ac_status=$?
13683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13684 test $ac_status = 0; }; then
13685 case `/usr/bin/file conftest.$ac_objext` in
13686 *ELF-32*)
13687 HPUX_IA64_MODE="32"
13688 ;;
13689 *ELF-64*)
13690 HPUX_IA64_MODE="64"
13691 ;;
13692 esac
13693 fi
13694 rm -rf conftest*
13695 ;;
13696 *-*-irix6*)
13697 # Find out which ABI we are using.
13698 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13700 (eval $ac_compile) 2>&5
13701 ac_status=$?
13702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13703 test $ac_status = 0; }; then
13704 if test "$lt_cv_prog_gnu_ld" = yes; then
13705 case `/usr/bin/file conftest.$ac_objext` in
13706 *32-bit*)
13707 LD="${LD-ld} -melf32bsmip"
13708 ;;
13709 *N32*)
13710 LD="${LD-ld} -melf32bmipn32"
13711 ;;
13712 *64-bit*)
13713 LD="${LD-ld} -melf64bmip"
13714 ;;
13715 esac
13716 else
13717 case `/usr/bin/file conftest.$ac_objext` in
13718 *32-bit*)
13719 LD="${LD-ld} -32"
13720 ;;
13721 *N32*)
13722 LD="${LD-ld} -n32"
13723 ;;
13724 *64-bit*)
13725 LD="${LD-ld} -64"
13726 ;;
13727 esac
13728 fi
13729 fi
13730 rm -rf conftest*
13731 ;;
13732
13733 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13734 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13735 # Find out which ABI we are using.
13736 echo 'int i;' > conftest.$ac_ext
13737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13738 (eval $ac_compile) 2>&5
13739 ac_status=$?
13740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13741 test $ac_status = 0; }; then
13742 case `/usr/bin/file conftest.o` in
13743 *32-bit*)
13744 case $host in
13745 x86_64-*kfreebsd*-gnu)
13746 LD="${LD-ld} -m elf_i386_fbsd"
13747 ;;
13748 x86_64-*linux*)
13749 case `/usr/bin/file conftest.o` in
13750 *x86-64*)
13751 LD="${LD-ld} -m elf32_x86_64"
13752 ;;
13753 *)
13754 LD="${LD-ld} -m elf_i386"
13755 ;;
13756 esac
13757 ;;
13758 ppc64-*linux*|powerpc64-*linux*)
13759 LD="${LD-ld} -m elf32ppclinux"
13760 ;;
13761 s390x-*linux*)
13762 LD="${LD-ld} -m elf_s390"
13763 ;;
13764 sparc64-*linux*)
13765 LD="${LD-ld} -m elf32_sparc"
13766 ;;
13767 esac
13768 ;;
13769 *64-bit*)
13770 case $host in
13771 x86_64-*kfreebsd*-gnu)
13772 LD="${LD-ld} -m elf_x86_64_fbsd"
13773 ;;
13774 x86_64-*linux*)
13775 LD="${LD-ld} -m elf_x86_64"
13776 ;;
13777 ppc*-*linux*|powerpc*-*linux*)
13778 LD="${LD-ld} -m elf64ppc"
13779 ;;
13780 s390*-*linux*|s390*-*tpf*)
13781 LD="${LD-ld} -m elf64_s390"
13782 ;;
13783 sparc*-*linux*)
13784 LD="${LD-ld} -m elf64_sparc"
13785 ;;
13786 esac
13787 ;;
13788 esac
13789 fi
13790 rm -rf conftest*
13791 ;;
13792
13793 *-*-sco3.2v5*)
13794 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13795 SAVE_CFLAGS="$CFLAGS"
13796 CFLAGS="$CFLAGS -belf"
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13798 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13799 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13800 $as_echo_n "(cached) " >&6
13801 else
13802 ac_ext=c
13803 ac_cpp='$CPP $CPPFLAGS'
13804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13807
13808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13809 /* end confdefs.h. */
13810
13811 int
13812 main ()
13813 {
13814
13815 ;
13816 return 0;
13817 }
13818 _ACEOF
13819 if ac_fn_c_try_link "$LINENO"; then :
13820 lt_cv_cc_needs_belf=yes
13821 else
13822 lt_cv_cc_needs_belf=no
13823 fi
13824 rm -f core conftest.err conftest.$ac_objext \
13825 conftest$ac_exeext conftest.$ac_ext
13826 ac_ext=c
13827 ac_cpp='$CPP $CPPFLAGS'
13828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13831
13832 fi
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13834 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13835 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13836 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13837 CFLAGS="$SAVE_CFLAGS"
13838 fi
13839 ;;
13840 sparc*-*solaris*)
13841 # Find out which ABI we are using.
13842 echo 'int i;' > conftest.$ac_ext
13843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13844 (eval $ac_compile) 2>&5
13845 ac_status=$?
13846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13847 test $ac_status = 0; }; then
13848 case `/usr/bin/file conftest.o` in
13849 *64-bit*)
13850 case $lt_cv_prog_gnu_ld in
13851 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13852 *)
13853 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13854 LD="${LD-ld} -64"
13855 fi
13856 ;;
13857 esac
13858 ;;
13859 esac
13860 fi
13861 rm -rf conftest*
13862 ;;
13863 esac
13864
13865 need_locks="$enable_libtool_lock"
13866
13867
13868 case $host_os in
13869 rhapsody* | darwin*)
13870 if test -n "$ac_tool_prefix"; then
13871 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13872 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13874 $as_echo_n "checking for $ac_word... " >&6; }
13875 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13876 $as_echo_n "(cached) " >&6
13877 else
13878 if test -n "$DSYMUTIL"; then
13879 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13880 else
13881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13882 for as_dir in $PATH
13883 do
13884 IFS=$as_save_IFS
13885 test -z "$as_dir" && as_dir=.
13886 for ac_exec_ext in '' $ac_executable_extensions; do
13887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13888 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13890 break 2
13891 fi
13892 done
13893 done
13894 IFS=$as_save_IFS
13895
13896 fi
13897 fi
13898 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13899 if test -n "$DSYMUTIL"; then
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13901 $as_echo "$DSYMUTIL" >&6; }
13902 else
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13904 $as_echo "no" >&6; }
13905 fi
13906
13907
13908 fi
13909 if test -z "$ac_cv_prog_DSYMUTIL"; then
13910 ac_ct_DSYMUTIL=$DSYMUTIL
13911 # Extract the first word of "dsymutil", so it can be a program name with args.
13912 set dummy dsymutil; ac_word=$2
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13914 $as_echo_n "checking for $ac_word... " >&6; }
13915 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13916 $as_echo_n "(cached) " >&6
13917 else
13918 if test -n "$ac_ct_DSYMUTIL"; then
13919 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13920 else
13921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13922 for as_dir in $PATH
13923 do
13924 IFS=$as_save_IFS
13925 test -z "$as_dir" && as_dir=.
13926 for ac_exec_ext in '' $ac_executable_extensions; do
13927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13928 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13930 break 2
13931 fi
13932 done
13933 done
13934 IFS=$as_save_IFS
13935
13936 fi
13937 fi
13938 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13939 if test -n "$ac_ct_DSYMUTIL"; then
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13941 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13942 else
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13944 $as_echo "no" >&6; }
13945 fi
13946
13947 if test "x$ac_ct_DSYMUTIL" = x; then
13948 DSYMUTIL=":"
13949 else
13950 case $cross_compiling:$ac_tool_warned in
13951 yes:)
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13954 ac_tool_warned=yes ;;
13955 esac
13956 DSYMUTIL=$ac_ct_DSYMUTIL
13957 fi
13958 else
13959 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13960 fi
13961
13962 if test -n "$ac_tool_prefix"; then
13963 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13964 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13966 $as_echo_n "checking for $ac_word... " >&6; }
13967 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13968 $as_echo_n "(cached) " >&6
13969 else
13970 if test -n "$NMEDIT"; then
13971 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13972 else
13973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13974 for as_dir in $PATH
13975 do
13976 IFS=$as_save_IFS
13977 test -z "$as_dir" && as_dir=.
13978 for ac_exec_ext in '' $ac_executable_extensions; do
13979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13980 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13982 break 2
13983 fi
13984 done
13985 done
13986 IFS=$as_save_IFS
13987
13988 fi
13989 fi
13990 NMEDIT=$ac_cv_prog_NMEDIT
13991 if test -n "$NMEDIT"; then
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13993 $as_echo "$NMEDIT" >&6; }
13994 else
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13996 $as_echo "no" >&6; }
13997 fi
13998
13999
14000 fi
14001 if test -z "$ac_cv_prog_NMEDIT"; then
14002 ac_ct_NMEDIT=$NMEDIT
14003 # Extract the first word of "nmedit", so it can be a program name with args.
14004 set dummy nmedit; ac_word=$2
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14006 $as_echo_n "checking for $ac_word... " >&6; }
14007 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14008 $as_echo_n "(cached) " >&6
14009 else
14010 if test -n "$ac_ct_NMEDIT"; then
14011 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14012 else
14013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14014 for as_dir in $PATH
14015 do
14016 IFS=$as_save_IFS
14017 test -z "$as_dir" && as_dir=.
14018 for ac_exec_ext in '' $ac_executable_extensions; do
14019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14020 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14022 break 2
14023 fi
14024 done
14025 done
14026 IFS=$as_save_IFS
14027
14028 fi
14029 fi
14030 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14031 if test -n "$ac_ct_NMEDIT"; then
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14033 $as_echo "$ac_ct_NMEDIT" >&6; }
14034 else
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14036 $as_echo "no" >&6; }
14037 fi
14038
14039 if test "x$ac_ct_NMEDIT" = x; then
14040 NMEDIT=":"
14041 else
14042 case $cross_compiling:$ac_tool_warned in
14043 yes:)
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14046 ac_tool_warned=yes ;;
14047 esac
14048 NMEDIT=$ac_ct_NMEDIT
14049 fi
14050 else
14051 NMEDIT="$ac_cv_prog_NMEDIT"
14052 fi
14053
14054 if test -n "$ac_tool_prefix"; then
14055 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14056 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14058 $as_echo_n "checking for $ac_word... " >&6; }
14059 if test "${ac_cv_prog_LIPO+set}" = set; then :
14060 $as_echo_n "(cached) " >&6
14061 else
14062 if test -n "$LIPO"; then
14063 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14064 else
14065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14066 for as_dir in $PATH
14067 do
14068 IFS=$as_save_IFS
14069 test -z "$as_dir" && as_dir=.
14070 for ac_exec_ext in '' $ac_executable_extensions; do
14071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14072 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14074 break 2
14075 fi
14076 done
14077 done
14078 IFS=$as_save_IFS
14079
14080 fi
14081 fi
14082 LIPO=$ac_cv_prog_LIPO
14083 if test -n "$LIPO"; then
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14085 $as_echo "$LIPO" >&6; }
14086 else
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14088 $as_echo "no" >&6; }
14089 fi
14090
14091
14092 fi
14093 if test -z "$ac_cv_prog_LIPO"; then
14094 ac_ct_LIPO=$LIPO
14095 # Extract the first word of "lipo", so it can be a program name with args.
14096 set dummy lipo; ac_word=$2
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14098 $as_echo_n "checking for $ac_word... " >&6; }
14099 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14100 $as_echo_n "(cached) " >&6
14101 else
14102 if test -n "$ac_ct_LIPO"; then
14103 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14104 else
14105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14106 for as_dir in $PATH
14107 do
14108 IFS=$as_save_IFS
14109 test -z "$as_dir" && as_dir=.
14110 for ac_exec_ext in '' $ac_executable_extensions; do
14111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14112 ac_cv_prog_ac_ct_LIPO="lipo"
14113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14114 break 2
14115 fi
14116 done
14117 done
14118 IFS=$as_save_IFS
14119
14120 fi
14121 fi
14122 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14123 if test -n "$ac_ct_LIPO"; then
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14125 $as_echo "$ac_ct_LIPO" >&6; }
14126 else
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14128 $as_echo "no" >&6; }
14129 fi
14130
14131 if test "x$ac_ct_LIPO" = x; then
14132 LIPO=":"
14133 else
14134 case $cross_compiling:$ac_tool_warned in
14135 yes:)
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14138 ac_tool_warned=yes ;;
14139 esac
14140 LIPO=$ac_ct_LIPO
14141 fi
14142 else
14143 LIPO="$ac_cv_prog_LIPO"
14144 fi
14145
14146 if test -n "$ac_tool_prefix"; then
14147 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14148 set dummy ${ac_tool_prefix}otool; ac_word=$2
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14150 $as_echo_n "checking for $ac_word... " >&6; }
14151 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14152 $as_echo_n "(cached) " >&6
14153 else
14154 if test -n "$OTOOL"; then
14155 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14156 else
14157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14158 for as_dir in $PATH
14159 do
14160 IFS=$as_save_IFS
14161 test -z "$as_dir" && as_dir=.
14162 for ac_exec_ext in '' $ac_executable_extensions; do
14163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14164 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14166 break 2
14167 fi
14168 done
14169 done
14170 IFS=$as_save_IFS
14171
14172 fi
14173 fi
14174 OTOOL=$ac_cv_prog_OTOOL
14175 if test -n "$OTOOL"; then
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14177 $as_echo "$OTOOL" >&6; }
14178 else
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14180 $as_echo "no" >&6; }
14181 fi
14182
14183
14184 fi
14185 if test -z "$ac_cv_prog_OTOOL"; then
14186 ac_ct_OTOOL=$OTOOL
14187 # Extract the first word of "otool", so it can be a program name with args.
14188 set dummy otool; ac_word=$2
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14190 $as_echo_n "checking for $ac_word... " >&6; }
14191 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14192 $as_echo_n "(cached) " >&6
14193 else
14194 if test -n "$ac_ct_OTOOL"; then
14195 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14196 else
14197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14198 for as_dir in $PATH
14199 do
14200 IFS=$as_save_IFS
14201 test -z "$as_dir" && as_dir=.
14202 for ac_exec_ext in '' $ac_executable_extensions; do
14203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14204 ac_cv_prog_ac_ct_OTOOL="otool"
14205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14206 break 2
14207 fi
14208 done
14209 done
14210 IFS=$as_save_IFS
14211
14212 fi
14213 fi
14214 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14215 if test -n "$ac_ct_OTOOL"; then
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14217 $as_echo "$ac_ct_OTOOL" >&6; }
14218 else
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14220 $as_echo "no" >&6; }
14221 fi
14222
14223 if test "x$ac_ct_OTOOL" = x; then
14224 OTOOL=":"
14225 else
14226 case $cross_compiling:$ac_tool_warned in
14227 yes:)
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14230 ac_tool_warned=yes ;;
14231 esac
14232 OTOOL=$ac_ct_OTOOL
14233 fi
14234 else
14235 OTOOL="$ac_cv_prog_OTOOL"
14236 fi
14237
14238 if test -n "$ac_tool_prefix"; then
14239 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14240 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14242 $as_echo_n "checking for $ac_word... " >&6; }
14243 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14244 $as_echo_n "(cached) " >&6
14245 else
14246 if test -n "$OTOOL64"; then
14247 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14248 else
14249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250 for as_dir in $PATH
14251 do
14252 IFS=$as_save_IFS
14253 test -z "$as_dir" && as_dir=.
14254 for ac_exec_ext in '' $ac_executable_extensions; do
14255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14256 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14258 break 2
14259 fi
14260 done
14261 done
14262 IFS=$as_save_IFS
14263
14264 fi
14265 fi
14266 OTOOL64=$ac_cv_prog_OTOOL64
14267 if test -n "$OTOOL64"; then
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14269 $as_echo "$OTOOL64" >&6; }
14270 else
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14272 $as_echo "no" >&6; }
14273 fi
14274
14275
14276 fi
14277 if test -z "$ac_cv_prog_OTOOL64"; then
14278 ac_ct_OTOOL64=$OTOOL64
14279 # Extract the first word of "otool64", so it can be a program name with args.
14280 set dummy otool64; ac_word=$2
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14282 $as_echo_n "checking for $ac_word... " >&6; }
14283 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14284 $as_echo_n "(cached) " >&6
14285 else
14286 if test -n "$ac_ct_OTOOL64"; then
14287 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14288 else
14289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14290 for as_dir in $PATH
14291 do
14292 IFS=$as_save_IFS
14293 test -z "$as_dir" && as_dir=.
14294 for ac_exec_ext in '' $ac_executable_extensions; do
14295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14296 ac_cv_prog_ac_ct_OTOOL64="otool64"
14297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14298 break 2
14299 fi
14300 done
14301 done
14302 IFS=$as_save_IFS
14303
14304 fi
14305 fi
14306 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14307 if test -n "$ac_ct_OTOOL64"; then
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14309 $as_echo "$ac_ct_OTOOL64" >&6; }
14310 else
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14312 $as_echo "no" >&6; }
14313 fi
14314
14315 if test "x$ac_ct_OTOOL64" = x; then
14316 OTOOL64=":"
14317 else
14318 case $cross_compiling:$ac_tool_warned in
14319 yes:)
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14322 ac_tool_warned=yes ;;
14323 esac
14324 OTOOL64=$ac_ct_OTOOL64
14325 fi
14326 else
14327 OTOOL64="$ac_cv_prog_OTOOL64"
14328 fi
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14357 $as_echo_n "checking for -single_module linker flag... " >&6; }
14358 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14359 $as_echo_n "(cached) " >&6
14360 else
14361 lt_cv_apple_cc_single_mod=no
14362 if test -z "${LT_MULTI_MODULE}"; then
14363 # By default we will add the -single_module flag. You can override
14364 # by either setting the environment variable LT_MULTI_MODULE
14365 # non-empty at configure time, or by adding -multi_module to the
14366 # link flags.
14367 rm -rf libconftest.dylib*
14368 echo "int foo(void){return 1;}" > conftest.c
14369 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14370 -dynamiclib -Wl,-single_module conftest.c" >&5
14371 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14372 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14373 _lt_result=$?
14374 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14375 lt_cv_apple_cc_single_mod=yes
14376 else
14377 cat conftest.err >&5
14378 fi
14379 rm -rf libconftest.dylib*
14380 rm -f conftest.*
14381 fi
14382 fi
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14384 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14386 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14387 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14388 $as_echo_n "(cached) " >&6
14389 else
14390 lt_cv_ld_exported_symbols_list=no
14391 save_LDFLAGS=$LDFLAGS
14392 echo "_main" > conftest.sym
14393 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14395 /* end confdefs.h. */
14396
14397 int
14398 main ()
14399 {
14400
14401 ;
14402 return 0;
14403 }
14404 _ACEOF
14405 if ac_fn_c_try_link "$LINENO"; then :
14406 lt_cv_ld_exported_symbols_list=yes
14407 else
14408 lt_cv_ld_exported_symbols_list=no
14409 fi
14410 rm -f core conftest.err conftest.$ac_objext \
14411 conftest$ac_exeext conftest.$ac_ext
14412 LDFLAGS="$save_LDFLAGS"
14413
14414 fi
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14416 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14418 $as_echo_n "checking for -force_load linker flag... " >&6; }
14419 if test "${lt_cv_ld_force_load+set}" = set; then :
14420 $as_echo_n "(cached) " >&6
14421 else
14422 lt_cv_ld_force_load=no
14423 cat > conftest.c << _LT_EOF
14424 int forced_loaded() { return 2;}
14425 _LT_EOF
14426 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14427 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14428 echo "$AR cru libconftest.a conftest.o" >&5
14429 $AR cru libconftest.a conftest.o 2>&5
14430 cat > conftest.c << _LT_EOF
14431 int main() { return 0;}
14432 _LT_EOF
14433 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14434 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14435 _lt_result=$?
14436 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14437 lt_cv_ld_force_load=yes
14438 else
14439 cat conftest.err >&5
14440 fi
14441 rm -f conftest.err libconftest.a conftest conftest.c
14442 rm -rf conftest.dSYM
14443
14444 fi
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14446 $as_echo "$lt_cv_ld_force_load" >&6; }
14447 case $host_os in
14448 rhapsody* | darwin1.[012])
14449 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14450 darwin1.*)
14451 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14452 darwin*) # darwin 5.x on
14453 # if running on 10.5 or later, the deployment target defaults
14454 # to the OS version, if on x86, and 10.4, the deployment
14455 # target defaults to 10.4. Don't you love it?
14456 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14457 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14458 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14459 10.[012]*)
14460 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14461 10.*)
14462 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14463 esac
14464 ;;
14465 esac
14466 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14467 _lt_dar_single_mod='$single_module'
14468 fi
14469 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14470 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14471 else
14472 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14473 fi
14474 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14475 _lt_dsymutil='~$DSYMUTIL $lib || :'
14476 else
14477 _lt_dsymutil=
14478 fi
14479 ;;
14480 esac
14481
14482 for ac_header in dlfcn.h
14483 do :
14484 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14485 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14486 cat >>confdefs.h <<_ACEOF
14487 #define HAVE_DLFCN_H 1
14488 _ACEOF
14489
14490 fi
14491 done
14492
14493
14494
14495
14496
14497 # Set options
14498
14499
14500
14501 enable_dlopen=no
14502
14503
14504 enable_win32_dll=no
14505
14506
14507 # Check whether --enable-shared was given.
14508 if test "${enable_shared+set}" = set; then :
14509 enableval=$enable_shared; p=${PACKAGE-default}
14510 case $enableval in
14511 yes) enable_shared=yes ;;
14512 no) enable_shared=no ;;
14513 *)
14514 enable_shared=no
14515 # Look at the argument we got. We use all the common list separators.
14516 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14517 for pkg in $enableval; do
14518 IFS="$lt_save_ifs"
14519 if test "X$pkg" = "X$p"; then
14520 enable_shared=yes
14521 fi
14522 done
14523 IFS="$lt_save_ifs"
14524 ;;
14525 esac
14526 else
14527 enable_shared=yes
14528 fi
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538 # Check whether --enable-static was given.
14539 if test "${enable_static+set}" = set; then :
14540 enableval=$enable_static; p=${PACKAGE-default}
14541 case $enableval in
14542 yes) enable_static=yes ;;
14543 no) enable_static=no ;;
14544 *)
14545 enable_static=no
14546 # Look at the argument we got. We use all the common list separators.
14547 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14548 for pkg in $enableval; do
14549 IFS="$lt_save_ifs"
14550 if test "X$pkg" = "X$p"; then
14551 enable_static=yes
14552 fi
14553 done
14554 IFS="$lt_save_ifs"
14555 ;;
14556 esac
14557 else
14558 enable_static=yes
14559 fi
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570 # Check whether --with-pic was given.
14571 if test "${with_pic+set}" = set; then :
14572 withval=$with_pic; pic_mode="$withval"
14573 else
14574 pic_mode=default
14575 fi
14576
14577
14578 test -z "$pic_mode" && pic_mode=default
14579
14580
14581
14582
14583
14584
14585
14586 # Check whether --enable-fast-install was given.
14587 if test "${enable_fast_install+set}" = set; then :
14588 enableval=$enable_fast_install; p=${PACKAGE-default}
14589 case $enableval in
14590 yes) enable_fast_install=yes ;;
14591 no) enable_fast_install=no ;;
14592 *)
14593 enable_fast_install=no
14594 # Look at the argument we got. We use all the common list separators.
14595 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14596 for pkg in $enableval; do
14597 IFS="$lt_save_ifs"
14598 if test "X$pkg" = "X$p"; then
14599 enable_fast_install=yes
14600 fi
14601 done
14602 IFS="$lt_save_ifs"
14603 ;;
14604 esac
14605 else
14606 enable_fast_install=yes
14607 fi
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619 # This can be used to rebuild libtool when needed
14620 LIBTOOL_DEPS="$ltmain"
14621
14622 # Always use our own libtool.
14623 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650 test -z "$LN_S" && LN_S="ln -s"
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665 if test -n "${ZSH_VERSION+set}" ; then
14666 setopt NO_GLOB_SUBST
14667 fi
14668
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14670 $as_echo_n "checking for objdir... " >&6; }
14671 if test "${lt_cv_objdir+set}" = set; then :
14672 $as_echo_n "(cached) " >&6
14673 else
14674 rm -f .libs 2>/dev/null
14675 mkdir .libs 2>/dev/null
14676 if test -d .libs; then
14677 lt_cv_objdir=.libs
14678 else
14679 # MS-DOS does not allow filenames that begin with a dot.
14680 lt_cv_objdir=_libs
14681 fi
14682 rmdir .libs 2>/dev/null
14683 fi
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14685 $as_echo "$lt_cv_objdir" >&6; }
14686 objdir=$lt_cv_objdir
14687
14688
14689
14690
14691
14692 cat >>confdefs.h <<_ACEOF
14693 #define LT_OBJDIR "$lt_cv_objdir/"
14694 _ACEOF
14695
14696
14697
14698
14699 case $host_os in
14700 aix3*)
14701 # AIX sometimes has problems with the GCC collect2 program. For some
14702 # reason, if we set the COLLECT_NAMES environment variable, the problems
14703 # vanish in a puff of smoke.
14704 if test "X${COLLECT_NAMES+set}" != Xset; then
14705 COLLECT_NAMES=
14706 export COLLECT_NAMES
14707 fi
14708 ;;
14709 esac
14710
14711 # Global variables:
14712 ofile=libtool
14713 can_build_shared=yes
14714
14715 # All known linkers require a `.a' archive for static linking (except MSVC,
14716 # which needs '.lib').
14717 libext=a
14718
14719 with_gnu_ld="$lt_cv_prog_gnu_ld"
14720
14721 old_CC="$CC"
14722 old_CFLAGS="$CFLAGS"
14723
14724 # Set sane defaults for various variables
14725 test -z "$CC" && CC=cc
14726 test -z "$LTCC" && LTCC=$CC
14727 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14728 test -z "$LD" && LD=ld
14729 test -z "$ac_objext" && ac_objext=o
14730
14731 for cc_temp in $compiler""; do
14732 case $cc_temp in
14733 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14734 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14735 \-*) ;;
14736 *) break;;
14737 esac
14738 done
14739 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14740
14741
14742 # Only perform the check for file, if the check method requires it
14743 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14744 case $deplibs_check_method in
14745 file_magic*)
14746 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14748 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14749 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14750 $as_echo_n "(cached) " >&6
14751 else
14752 case $MAGIC_CMD in
14753 [\\/*] | ?:[\\/]*)
14754 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14755 ;;
14756 *)
14757 lt_save_MAGIC_CMD="$MAGIC_CMD"
14758 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14759 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14760 for ac_dir in $ac_dummy; do
14761 IFS="$lt_save_ifs"
14762 test -z "$ac_dir" && ac_dir=.
14763 if test -f $ac_dir/${ac_tool_prefix}file; then
14764 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14765 if test -n "$file_magic_test_file"; then
14766 case $deplibs_check_method in
14767 "file_magic "*)
14768 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14769 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14770 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14771 $EGREP "$file_magic_regex" > /dev/null; then
14772 :
14773 else
14774 cat <<_LT_EOF 1>&2
14775
14776 *** Warning: the command libtool uses to detect shared libraries,
14777 *** $file_magic_cmd, produces output that libtool cannot recognize.
14778 *** The result is that libtool may fail to recognize shared libraries
14779 *** as such. This will affect the creation of libtool libraries that
14780 *** depend on shared libraries, but programs linked with such libtool
14781 *** libraries will work regardless of this problem. Nevertheless, you
14782 *** may want to report the problem to your system manager and/or to
14783 *** bug-libtool@gnu.org
14784
14785 _LT_EOF
14786 fi ;;
14787 esac
14788 fi
14789 break
14790 fi
14791 done
14792 IFS="$lt_save_ifs"
14793 MAGIC_CMD="$lt_save_MAGIC_CMD"
14794 ;;
14795 esac
14796 fi
14797
14798 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14799 if test -n "$MAGIC_CMD"; then
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14801 $as_echo "$MAGIC_CMD" >&6; }
14802 else
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14804 $as_echo "no" >&6; }
14805 fi
14806
14807
14808
14809
14810
14811 if test -z "$lt_cv_path_MAGIC_CMD"; then
14812 if test -n "$ac_tool_prefix"; then
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14814 $as_echo_n "checking for file... " >&6; }
14815 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14816 $as_echo_n "(cached) " >&6
14817 else
14818 case $MAGIC_CMD in
14819 [\\/*] | ?:[\\/]*)
14820 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14821 ;;
14822 *)
14823 lt_save_MAGIC_CMD="$MAGIC_CMD"
14824 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14825 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14826 for ac_dir in $ac_dummy; do
14827 IFS="$lt_save_ifs"
14828 test -z "$ac_dir" && ac_dir=.
14829 if test -f $ac_dir/file; then
14830 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14831 if test -n "$file_magic_test_file"; then
14832 case $deplibs_check_method in
14833 "file_magic "*)
14834 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14835 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14836 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14837 $EGREP "$file_magic_regex" > /dev/null; then
14838 :
14839 else
14840 cat <<_LT_EOF 1>&2
14841
14842 *** Warning: the command libtool uses to detect shared libraries,
14843 *** $file_magic_cmd, produces output that libtool cannot recognize.
14844 *** The result is that libtool may fail to recognize shared libraries
14845 *** as such. This will affect the creation of libtool libraries that
14846 *** depend on shared libraries, but programs linked with such libtool
14847 *** libraries will work regardless of this problem. Nevertheless, you
14848 *** may want to report the problem to your system manager and/or to
14849 *** bug-libtool@gnu.org
14850
14851 _LT_EOF
14852 fi ;;
14853 esac
14854 fi
14855 break
14856 fi
14857 done
14858 IFS="$lt_save_ifs"
14859 MAGIC_CMD="$lt_save_MAGIC_CMD"
14860 ;;
14861 esac
14862 fi
14863
14864 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14865 if test -n "$MAGIC_CMD"; then
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14867 $as_echo "$MAGIC_CMD" >&6; }
14868 else
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14870 $as_echo "no" >&6; }
14871 fi
14872
14873
14874 else
14875 MAGIC_CMD=:
14876 fi
14877 fi
14878
14879 fi
14880 ;;
14881 esac
14882
14883 # Use C for the default configuration in the libtool script
14884
14885 lt_save_CC="$CC"
14886 ac_ext=c
14887 ac_cpp='$CPP $CPPFLAGS'
14888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14891
14892
14893 # Source file extension for C test sources.
14894 ac_ext=c
14895
14896 # Object file extension for compiled C test sources.
14897 objext=o
14898 objext=$objext
14899
14900 # Code to be used in simple compile tests
14901 lt_simple_compile_test_code="int some_variable = 0;"
14902
14903 # Code to be used in simple link tests
14904 lt_simple_link_test_code='int main(){return(0);}'
14905
14906
14907
14908
14909
14910
14911
14912 # If no C compiler was specified, use CC.
14913 LTCC=${LTCC-"$CC"}
14914
14915 # If no C compiler flags were specified, use CFLAGS.
14916 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14917
14918 # Allow CC to be a program name with arguments.
14919 compiler=$CC
14920
14921 # Save the default compiler, since it gets overwritten when the other
14922 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14923 compiler_DEFAULT=$CC
14924
14925 # save warnings/boilerplate of simple test code
14926 ac_outfile=conftest.$ac_objext
14927 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14928 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14929 _lt_compiler_boilerplate=`cat conftest.err`
14930 $RM conftest*
14931
14932 ac_outfile=conftest.$ac_objext
14933 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14934 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14935 _lt_linker_boilerplate=`cat conftest.err`
14936 $RM -r conftest*
14937
14938
14939 ## CAVEAT EMPTOR:
14940 ## There is no encapsulation within the following macros, do not change
14941 ## the running order or otherwise move them around unless you know exactly
14942 ## what you are doing...
14943 if test -n "$compiler"; then
14944
14945 lt_prog_compiler_no_builtin_flag=
14946
14947 if test "$GCC" = yes; then
14948 case $cc_basename in
14949 nvcc*)
14950 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14951 *)
14952 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14953 esac
14954
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14956 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14957 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14958 $as_echo_n "(cached) " >&6
14959 else
14960 lt_cv_prog_compiler_rtti_exceptions=no
14961 ac_outfile=conftest.$ac_objext
14962 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14963 lt_compiler_flag="-fno-rtti -fno-exceptions"
14964 # Insert the option either (1) after the last *FLAGS variable, or
14965 # (2) before a word containing "conftest.", or (3) at the end.
14966 # Note that $ac_compile itself does not contain backslashes and begins
14967 # with a dollar sign (not a hyphen), so the echo should work correctly.
14968 # The option is referenced via a variable to avoid confusing sed.
14969 lt_compile=`echo "$ac_compile" | $SED \
14970 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14971 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14972 -e 's:$: $lt_compiler_flag:'`
14973 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14974 (eval "$lt_compile" 2>conftest.err)
14975 ac_status=$?
14976 cat conftest.err >&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 if (exit $ac_status) && test -s "$ac_outfile"; then
14979 # The compiler can only warn and ignore the option if not recognized
14980 # So say no if there are warnings other than the usual output.
14981 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14982 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14983 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14984 lt_cv_prog_compiler_rtti_exceptions=yes
14985 fi
14986 fi
14987 $RM conftest*
14988
14989 fi
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14991 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14992
14993 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14994 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14995 else
14996 :
14997 fi
14998
14999 fi
15000
15001
15002
15003
15004
15005
15006 lt_prog_compiler_wl=
15007 lt_prog_compiler_pic=
15008 lt_prog_compiler_static=
15009
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15011 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15012
15013 if test "$GCC" = yes; then
15014 lt_prog_compiler_wl='-Wl,'
15015 lt_prog_compiler_static='-static'
15016
15017 case $host_os in
15018 aix*)
15019 # All AIX code is PIC.
15020 if test "$host_cpu" = ia64; then
15021 # AIX 5 now supports IA64 processor
15022 lt_prog_compiler_static='-Bstatic'
15023 fi
15024 ;;
15025
15026 amigaos*)
15027 case $host_cpu in
15028 powerpc)
15029 # see comment about AmigaOS4 .so support
15030 lt_prog_compiler_pic='-fPIC'
15031 ;;
15032 m68k)
15033 # FIXME: we need at least 68020 code to build shared libraries, but
15034 # adding the `-m68020' flag to GCC prevents building anything better,
15035 # like `-m68040'.
15036 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15037 ;;
15038 esac
15039 ;;
15040
15041 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15042 # PIC is the default for these OSes.
15043 ;;
15044
15045 mingw* | cygwin* | pw32* | os2* | cegcc*)
15046 # This hack is so that the source file can tell whether it is being
15047 # built for inclusion in a dll (and should export symbols for example).
15048 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15049 # (--disable-auto-import) libraries
15050 lt_prog_compiler_pic='-DDLL_EXPORT'
15051 ;;
15052
15053 darwin* | rhapsody*)
15054 # PIC is the default on this platform
15055 # Common symbols not allowed in MH_DYLIB files
15056 lt_prog_compiler_pic='-fno-common'
15057 ;;
15058
15059 haiku*)
15060 # PIC is the default for Haiku.
15061 # The "-static" flag exists, but is broken.
15062 lt_prog_compiler_static=
15063 ;;
15064
15065 hpux*)
15066 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15067 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15068 # sets the default TLS model and affects inlining.
15069 case $host_cpu in
15070 hppa*64*)
15071 # +Z the default
15072 ;;
15073 *)
15074 lt_prog_compiler_pic='-fPIC'
15075 ;;
15076 esac
15077 ;;
15078
15079 interix[3-9]*)
15080 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15081 # Instead, we relocate shared libraries at runtime.
15082 ;;
15083
15084 msdosdjgpp*)
15085 # Just because we use GCC doesn't mean we suddenly get shared libraries
15086 # on systems that don't support them.
15087 lt_prog_compiler_can_build_shared=no
15088 enable_shared=no
15089 ;;
15090
15091 *nto* | *qnx*)
15092 # QNX uses GNU C++, but need to define -shared option too, otherwise
15093 # it will coredump.
15094 lt_prog_compiler_pic='-fPIC -shared'
15095 ;;
15096
15097 sysv4*MP*)
15098 if test -d /usr/nec; then
15099 lt_prog_compiler_pic=-Kconform_pic
15100 fi
15101 ;;
15102
15103 *)
15104 lt_prog_compiler_pic='-fPIC'
15105 ;;
15106 esac
15107
15108 case $cc_basename in
15109 nvcc*) # Cuda Compiler Driver 2.2
15110 lt_prog_compiler_wl='-Xlinker '
15111 lt_prog_compiler_pic='-Xcompiler -fPIC'
15112 ;;
15113 esac
15114 else
15115 # PORTME Check for flag to pass linker flags through the system compiler.
15116 case $host_os in
15117 aix*)
15118 lt_prog_compiler_wl='-Wl,'
15119 if test "$host_cpu" = ia64; then
15120 # AIX 5 now supports IA64 processor
15121 lt_prog_compiler_static='-Bstatic'
15122 else
15123 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15124 fi
15125 ;;
15126
15127 mingw* | cygwin* | pw32* | os2* | cegcc*)
15128 # This hack is so that the source file can tell whether it is being
15129 # built for inclusion in a dll (and should export symbols for example).
15130 lt_prog_compiler_pic='-DDLL_EXPORT'
15131 ;;
15132
15133 hpux9* | hpux10* | hpux11*)
15134 lt_prog_compiler_wl='-Wl,'
15135 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15136 # not for PA HP-UX.
15137 case $host_cpu in
15138 hppa*64*|ia64*)
15139 # +Z the default
15140 ;;
15141 *)
15142 lt_prog_compiler_pic='+Z'
15143 ;;
15144 esac
15145 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15146 lt_prog_compiler_static='${wl}-a ${wl}archive'
15147 ;;
15148
15149 irix5* | irix6* | nonstopux*)
15150 lt_prog_compiler_wl='-Wl,'
15151 # PIC (with -KPIC) is the default.
15152 lt_prog_compiler_static='-non_shared'
15153 ;;
15154
15155 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15156 case $cc_basename in
15157 # old Intel for x86_64 which still supported -KPIC.
15158 ecc*)
15159 lt_prog_compiler_wl='-Wl,'
15160 lt_prog_compiler_pic='-KPIC'
15161 lt_prog_compiler_static='-static'
15162 ;;
15163 # icc used to be incompatible with GCC.
15164 # ICC 10 doesn't accept -KPIC any more.
15165 icc* | ifort*)
15166 lt_prog_compiler_wl='-Wl,'
15167 lt_prog_compiler_pic='-fPIC'
15168 lt_prog_compiler_static='-static'
15169 ;;
15170 # Lahey Fortran 8.1.
15171 lf95*)
15172 lt_prog_compiler_wl='-Wl,'
15173 lt_prog_compiler_pic='--shared'
15174 lt_prog_compiler_static='--static'
15175 ;;
15176 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15177 # Portland Group compilers (*not* the Pentium gcc compiler,
15178 # which looks to be a dead project)
15179 lt_prog_compiler_wl='-Wl,'
15180 lt_prog_compiler_pic='-fpic'
15181 lt_prog_compiler_static='-Bstatic'
15182 ;;
15183 ccc*)
15184 lt_prog_compiler_wl='-Wl,'
15185 # All Alpha code is PIC.
15186 lt_prog_compiler_static='-non_shared'
15187 ;;
15188 xl* | bgxl* | bgf* | mpixl*)
15189 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15190 lt_prog_compiler_wl='-Wl,'
15191 lt_prog_compiler_pic='-qpic'
15192 lt_prog_compiler_static='-qstaticlink'
15193 ;;
15194 *)
15195 case `$CC -V 2>&1 | sed 5q` in
15196 *Sun\ F* | *Sun*Fortran*)
15197 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15198 lt_prog_compiler_pic='-KPIC'
15199 lt_prog_compiler_static='-Bstatic'
15200 lt_prog_compiler_wl=''
15201 ;;
15202 *Sun\ C*)
15203 # Sun C 5.9
15204 lt_prog_compiler_pic='-KPIC'
15205 lt_prog_compiler_static='-Bstatic'
15206 lt_prog_compiler_wl='-Wl,'
15207 ;;
15208 esac
15209 ;;
15210 esac
15211 ;;
15212
15213 newsos6)
15214 lt_prog_compiler_pic='-KPIC'
15215 lt_prog_compiler_static='-Bstatic'
15216 ;;
15217
15218 *nto* | *qnx*)
15219 # QNX uses GNU C++, but need to define -shared option too, otherwise
15220 # it will coredump.
15221 lt_prog_compiler_pic='-fPIC -shared'
15222 ;;
15223
15224 osf3* | osf4* | osf5*)
15225 lt_prog_compiler_wl='-Wl,'
15226 # All OSF/1 code is PIC.
15227 lt_prog_compiler_static='-non_shared'
15228 ;;
15229
15230 rdos*)
15231 lt_prog_compiler_static='-non_shared'
15232 ;;
15233
15234 solaris*)
15235 lt_prog_compiler_pic='-KPIC'
15236 lt_prog_compiler_static='-Bstatic'
15237 case $cc_basename in
15238 f77* | f90* | f95*)
15239 lt_prog_compiler_wl='-Qoption ld ';;
15240 *)
15241 lt_prog_compiler_wl='-Wl,';;
15242 esac
15243 ;;
15244
15245 sunos4*)
15246 lt_prog_compiler_wl='-Qoption ld '
15247 lt_prog_compiler_pic='-PIC'
15248 lt_prog_compiler_static='-Bstatic'
15249 ;;
15250
15251 sysv4 | sysv4.2uw2* | sysv4.3*)
15252 lt_prog_compiler_wl='-Wl,'
15253 lt_prog_compiler_pic='-KPIC'
15254 lt_prog_compiler_static='-Bstatic'
15255 ;;
15256
15257 sysv4*MP*)
15258 if test -d /usr/nec ;then
15259 lt_prog_compiler_pic='-Kconform_pic'
15260 lt_prog_compiler_static='-Bstatic'
15261 fi
15262 ;;
15263
15264 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15265 lt_prog_compiler_wl='-Wl,'
15266 lt_prog_compiler_pic='-KPIC'
15267 lt_prog_compiler_static='-Bstatic'
15268 ;;
15269
15270 unicos*)
15271 lt_prog_compiler_wl='-Wl,'
15272 lt_prog_compiler_can_build_shared=no
15273 ;;
15274
15275 uts4*)
15276 lt_prog_compiler_pic='-pic'
15277 lt_prog_compiler_static='-Bstatic'
15278 ;;
15279
15280 *)
15281 lt_prog_compiler_can_build_shared=no
15282 ;;
15283 esac
15284 fi
15285
15286 case $host_os in
15287 # For platforms which do not support PIC, -DPIC is meaningless:
15288 *djgpp*)
15289 lt_prog_compiler_pic=
15290 ;;
15291 *)
15292 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15293 ;;
15294 esac
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15296 $as_echo "$lt_prog_compiler_pic" >&6; }
15297
15298
15299
15300
15301
15302
15303 #
15304 # Check to make sure the PIC flag actually works.
15305 #
15306 if test -n "$lt_prog_compiler_pic"; then
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15308 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15309 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15310 $as_echo_n "(cached) " >&6
15311 else
15312 lt_cv_prog_compiler_pic_works=no
15313 ac_outfile=conftest.$ac_objext
15314 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15315 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15316 # Insert the option either (1) after the last *FLAGS variable, or
15317 # (2) before a word containing "conftest.", or (3) at the end.
15318 # Note that $ac_compile itself does not contain backslashes and begins
15319 # with a dollar sign (not a hyphen), so the echo should work correctly.
15320 # The option is referenced via a variable to avoid confusing sed.
15321 lt_compile=`echo "$ac_compile" | $SED \
15322 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15324 -e 's:$: $lt_compiler_flag:'`
15325 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15326 (eval "$lt_compile" 2>conftest.err)
15327 ac_status=$?
15328 cat conftest.err >&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 if (exit $ac_status) && test -s "$ac_outfile"; then
15331 # The compiler can only warn and ignore the option if not recognized
15332 # So say no if there are warnings other than the usual output.
15333 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15334 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15335 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15336 lt_cv_prog_compiler_pic_works=yes
15337 fi
15338 fi
15339 $RM conftest*
15340
15341 fi
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15343 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15344
15345 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15346 case $lt_prog_compiler_pic in
15347 "" | " "*) ;;
15348 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15349 esac
15350 else
15351 lt_prog_compiler_pic=
15352 lt_prog_compiler_can_build_shared=no
15353 fi
15354
15355 fi
15356
15357
15358
15359
15360
15361
15362 #
15363 # Check to make sure the static flag actually works.
15364 #
15365 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15367 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15368 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15369 $as_echo_n "(cached) " >&6
15370 else
15371 lt_cv_prog_compiler_static_works=no
15372 save_LDFLAGS="$LDFLAGS"
15373 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15374 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15375 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15376 # The linker can only warn and ignore the option if not recognized
15377 # So say no if there are warnings
15378 if test -s conftest.err; then
15379 # Append any errors to the config.log.
15380 cat conftest.err 1>&5
15381 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15382 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15383 if diff conftest.exp conftest.er2 >/dev/null; then
15384 lt_cv_prog_compiler_static_works=yes
15385 fi
15386 else
15387 lt_cv_prog_compiler_static_works=yes
15388 fi
15389 fi
15390 $RM -r conftest*
15391 LDFLAGS="$save_LDFLAGS"
15392
15393 fi
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15395 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15396
15397 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15398 :
15399 else
15400 lt_prog_compiler_static=
15401 fi
15402
15403
15404
15405
15406
15407
15408
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15410 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15411 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15412 $as_echo_n "(cached) " >&6
15413 else
15414 lt_cv_prog_compiler_c_o=no
15415 $RM -r conftest 2>/dev/null
15416 mkdir conftest
15417 cd conftest
15418 mkdir out
15419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15420
15421 lt_compiler_flag="-o out/conftest2.$ac_objext"
15422 # Insert the option either (1) after the last *FLAGS variable, or
15423 # (2) before a word containing "conftest.", or (3) at the end.
15424 # Note that $ac_compile itself does not contain backslashes and begins
15425 # with a dollar sign (not a hyphen), so the echo should work correctly.
15426 lt_compile=`echo "$ac_compile" | $SED \
15427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15429 -e 's:$: $lt_compiler_flag:'`
15430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15431 (eval "$lt_compile" 2>out/conftest.err)
15432 ac_status=$?
15433 cat out/conftest.err >&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15436 then
15437 # The compiler can only warn and ignore the option if not recognized
15438 # So say no if there are warnings
15439 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15440 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15441 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15442 lt_cv_prog_compiler_c_o=yes
15443 fi
15444 fi
15445 chmod u+w . 2>&5
15446 $RM conftest*
15447 # SGI C++ compiler will create directory out/ii_files/ for
15448 # template instantiation
15449 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15450 $RM out/* && rmdir out
15451 cd ..
15452 $RM -r conftest
15453 $RM conftest*
15454
15455 fi
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15457 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15458
15459
15460
15461
15462
15463
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15465 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15466 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15467 $as_echo_n "(cached) " >&6
15468 else
15469 lt_cv_prog_compiler_c_o=no
15470 $RM -r conftest 2>/dev/null
15471 mkdir conftest
15472 cd conftest
15473 mkdir out
15474 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15475
15476 lt_compiler_flag="-o out/conftest2.$ac_objext"
15477 # Insert the option either (1) after the last *FLAGS variable, or
15478 # (2) before a word containing "conftest.", or (3) at the end.
15479 # Note that $ac_compile itself does not contain backslashes and begins
15480 # with a dollar sign (not a hyphen), so the echo should work correctly.
15481 lt_compile=`echo "$ac_compile" | $SED \
15482 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15483 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15484 -e 's:$: $lt_compiler_flag:'`
15485 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15486 (eval "$lt_compile" 2>out/conftest.err)
15487 ac_status=$?
15488 cat out/conftest.err >&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15491 then
15492 # The compiler can only warn and ignore the option if not recognized
15493 # So say no if there are warnings
15494 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15495 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15496 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15497 lt_cv_prog_compiler_c_o=yes
15498 fi
15499 fi
15500 chmod u+w . 2>&5
15501 $RM conftest*
15502 # SGI C++ compiler will create directory out/ii_files/ for
15503 # template instantiation
15504 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15505 $RM out/* && rmdir out
15506 cd ..
15507 $RM -r conftest
15508 $RM conftest*
15509
15510 fi
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15512 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15513
15514
15515
15516
15517 hard_links="nottested"
15518 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15519 # do not overwrite the value of need_locks provided by the user
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15521 $as_echo_n "checking if we can lock with hard links... " >&6; }
15522 hard_links=yes
15523 $RM conftest*
15524 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15525 touch conftest.a
15526 ln conftest.a conftest.b 2>&5 || hard_links=no
15527 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15529 $as_echo "$hard_links" >&6; }
15530 if test "$hard_links" = no; then
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15532 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15533 need_locks=warn
15534 fi
15535 else
15536 need_locks=no
15537 fi
15538
15539
15540
15541
15542
15543
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15545 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15546
15547 runpath_var=
15548 allow_undefined_flag=
15549 always_export_symbols=no
15550 archive_cmds=
15551 archive_expsym_cmds=
15552 compiler_needs_object=no
15553 enable_shared_with_static_runtimes=no
15554 export_dynamic_flag_spec=
15555 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15556 hardcode_automatic=no
15557 hardcode_direct=no
15558 hardcode_direct_absolute=no
15559 hardcode_libdir_flag_spec=
15560 hardcode_libdir_flag_spec_ld=
15561 hardcode_libdir_separator=
15562 hardcode_minus_L=no
15563 hardcode_shlibpath_var=unsupported
15564 inherit_rpath=no
15565 link_all_deplibs=unknown
15566 module_cmds=
15567 module_expsym_cmds=
15568 old_archive_from_new_cmds=
15569 old_archive_from_expsyms_cmds=
15570 thread_safe_flag_spec=
15571 whole_archive_flag_spec=
15572 # include_expsyms should be a list of space-separated symbols to be *always*
15573 # included in the symbol list
15574 include_expsyms=
15575 # exclude_expsyms can be an extended regexp of symbols to exclude
15576 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15577 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15578 # as well as any symbol that contains `d'.
15579 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15580 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15581 # platforms (ab)use it in PIC code, but their linkers get confused if
15582 # the symbol is explicitly referenced. Since portable code cannot
15583 # rely on this symbol name, it's probably fine to never include it in
15584 # preloaded symbol tables.
15585 # Exclude shared library initialization/finalization symbols.
15586 extract_expsyms_cmds=
15587
15588 case $host_os in
15589 cygwin* | mingw* | pw32* | cegcc*)
15590 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15591 # When not using gcc, we currently assume that we are using
15592 # Microsoft Visual C++.
15593 if test "$GCC" != yes; then
15594 with_gnu_ld=no
15595 fi
15596 ;;
15597 interix*)
15598 # we just hope/assume this is gcc and not c89 (= MSVC++)
15599 with_gnu_ld=yes
15600 ;;
15601 openbsd*)
15602 with_gnu_ld=no
15603 ;;
15604 esac
15605
15606 ld_shlibs=yes
15607
15608 # On some targets, GNU ld is compatible enough with the native linker
15609 # that we're better off using the native interface for both.
15610 lt_use_gnu_ld_interface=no
15611 if test "$with_gnu_ld" = yes; then
15612 case $host_os in
15613 aix*)
15614 # The AIX port of GNU ld has always aspired to compatibility
15615 # with the native linker. However, as the warning in the GNU ld
15616 # block says, versions before 2.19.5* couldn't really create working
15617 # shared libraries, regardless of the interface used.
15618 case `$LD -v 2>&1` in
15619 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15620 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15621 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15622 *)
15623 lt_use_gnu_ld_interface=yes
15624 ;;
15625 esac
15626 ;;
15627 *)
15628 lt_use_gnu_ld_interface=yes
15629 ;;
15630 esac
15631 fi
15632
15633 if test "$lt_use_gnu_ld_interface" = yes; then
15634 # If archive_cmds runs LD, not CC, wlarc should be empty
15635 wlarc='${wl}'
15636
15637 # Set some defaults for GNU ld with shared library support. These
15638 # are reset later if shared libraries are not supported. Putting them
15639 # here allows them to be overridden if necessary.
15640 runpath_var=LD_RUN_PATH
15641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15642 export_dynamic_flag_spec='${wl}--export-dynamic'
15643 # ancient GNU ld didn't support --whole-archive et. al.
15644 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15645 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15646 else
15647 whole_archive_flag_spec=
15648 fi
15649 supports_anon_versioning=no
15650 case `$LD -v 2>&1` in
15651 *GNU\ gold*) supports_anon_versioning=yes ;;
15652 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15653 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15654 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15655 *\ 2.11.*) ;; # other 2.11 versions
15656 *) supports_anon_versioning=yes ;;
15657 esac
15658
15659 # See if GNU ld supports shared libraries.
15660 case $host_os in
15661 aix[3-9]*)
15662 # On AIX/PPC, the GNU linker is very broken
15663 if test "$host_cpu" != ia64; then
15664 ld_shlibs=no
15665 cat <<_LT_EOF 1>&2
15666
15667 *** Warning: the GNU linker, at least up to release 2.19, is reported
15668 *** to be unable to reliably create shared libraries on AIX.
15669 *** Therefore, libtool is disabling shared libraries support. If you
15670 *** really care for shared libraries, you may want to install binutils
15671 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15672 *** You will then need to restart the configuration process.
15673
15674 _LT_EOF
15675 fi
15676 ;;
15677
15678 amigaos*)
15679 case $host_cpu in
15680 powerpc)
15681 # see comment about AmigaOS4 .so support
15682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15683 archive_expsym_cmds=''
15684 ;;
15685 m68k)
15686 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)'
15687 hardcode_libdir_flag_spec='-L$libdir'
15688 hardcode_minus_L=yes
15689 ;;
15690 esac
15691 ;;
15692
15693 beos*)
15694 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15695 allow_undefined_flag=unsupported
15696 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15697 # support --undefined. This deserves some investigation. FIXME
15698 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15699 else
15700 ld_shlibs=no
15701 fi
15702 ;;
15703
15704 cygwin* | mingw* | pw32* | cegcc*)
15705 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15706 # as there is no search path for DLLs.
15707 hardcode_libdir_flag_spec='-L$libdir'
15708 export_dynamic_flag_spec='${wl}--export-all-symbols'
15709 allow_undefined_flag=unsupported
15710 always_export_symbols=no
15711 enable_shared_with_static_runtimes=yes
15712 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15713
15714 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15715 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15716 # If the export-symbols file already is a .def file (1st line
15717 # is EXPORTS), use it as is; otherwise, prepend...
15718 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15719 cp $export_symbols $output_objdir/$soname.def;
15720 else
15721 echo EXPORTS > $output_objdir/$soname.def;
15722 cat $export_symbols >> $output_objdir/$soname.def;
15723 fi~
15724 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15725 else
15726 ld_shlibs=no
15727 fi
15728 ;;
15729
15730 haiku*)
15731 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15732 link_all_deplibs=yes
15733 ;;
15734
15735 interix[3-9]*)
15736 hardcode_direct=no
15737 hardcode_shlibpath_var=no
15738 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15739 export_dynamic_flag_spec='${wl}-E'
15740 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15741 # Instead, shared libraries are loaded at an image base (0x10000000 by
15742 # default) and relocated if they conflict, which is a slow very memory
15743 # consuming and fragmenting process. To avoid this, we pick a random,
15744 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15745 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15746 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15747 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'
15748 ;;
15749
15750 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15751 tmp_diet=no
15752 if test "$host_os" = linux-dietlibc; then
15753 case $cc_basename in
15754 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15755 esac
15756 fi
15757 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15758 && test "$tmp_diet" = no
15759 then
15760 tmp_addflag=
15761 tmp_sharedflag='-shared'
15762 case $cc_basename,$host_cpu in
15763 pgcc*) # Portland Group C compiler
15764 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'
15765 tmp_addflag=' $pic_flag'
15766 ;;
15767 pgf77* | pgf90* | pgf95* | pgfortran*)
15768 # Portland Group f77 and f90 compilers
15769 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'
15770 tmp_addflag=' $pic_flag -Mnomain' ;;
15771 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15772 tmp_addflag=' -i_dynamic' ;;
15773 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15774 tmp_addflag=' -i_dynamic -nofor_main' ;;
15775 ifc* | ifort*) # Intel Fortran compiler
15776 tmp_addflag=' -nofor_main' ;;
15777 lf95*) # Lahey Fortran 8.1
15778 whole_archive_flag_spec=
15779 tmp_sharedflag='--shared' ;;
15780 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15781 tmp_sharedflag='-qmkshrobj'
15782 tmp_addflag= ;;
15783 nvcc*) # Cuda Compiler Driver 2.2
15784 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'
15785 compiler_needs_object=yes
15786 ;;
15787 esac
15788 case `$CC -V 2>&1 | sed 5q` in
15789 *Sun\ C*) # Sun C 5.9
15790 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'
15791 compiler_needs_object=yes
15792 tmp_sharedflag='-G' ;;
15793 *Sun\ F*) # Sun Fortran 8.3
15794 tmp_sharedflag='-G' ;;
15795 esac
15796 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15797
15798 if test "x$supports_anon_versioning" = xyes; then
15799 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15800 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15801 echo "local: *; };" >> $output_objdir/$libname.ver~
15802 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15803 fi
15804
15805 case $cc_basename in
15806 xlf* | bgf* | bgxlf* | mpixlf*)
15807 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15808 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15809 hardcode_libdir_flag_spec=
15810 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15811 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15812 if test "x$supports_anon_versioning" = xyes; then
15813 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15814 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15815 echo "local: *; };" >> $output_objdir/$libname.ver~
15816 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15817 fi
15818 ;;
15819 esac
15820 else
15821 ld_shlibs=no
15822 fi
15823 ;;
15824
15825 netbsd*)
15826 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15827 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15828 wlarc=
15829 else
15830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15831 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15832 fi
15833 ;;
15834
15835 solaris*)
15836 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15837 ld_shlibs=no
15838 cat <<_LT_EOF 1>&2
15839
15840 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15841 *** create shared libraries on Solaris systems. Therefore, libtool
15842 *** is disabling shared libraries support. We urge you to upgrade GNU
15843 *** binutils to release 2.9.1 or newer. Another option is to modify
15844 *** your PATH or compiler configuration so that the native linker is
15845 *** used, and then restart.
15846
15847 _LT_EOF
15848 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15849 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15850 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15851 else
15852 ld_shlibs=no
15853 fi
15854 ;;
15855
15856 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15857 case `$LD -v 2>&1` in
15858 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15859 ld_shlibs=no
15860 cat <<_LT_EOF 1>&2
15861
15862 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15863 *** reliably create shared libraries on SCO systems. Therefore, libtool
15864 *** is disabling shared libraries support. We urge you to upgrade GNU
15865 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15866 *** your PATH or compiler configuration so that the native linker is
15867 *** used, and then restart.
15868
15869 _LT_EOF
15870 ;;
15871 *)
15872 # For security reasons, it is highly recommended that you always
15873 # use absolute paths for naming shared libraries, and exclude the
15874 # DT_RUNPATH tag from executables and libraries. But doing so
15875 # requires that you compile everything twice, which is a pain.
15876 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15877 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15878 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15879 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15880 else
15881 ld_shlibs=no
15882 fi
15883 ;;
15884 esac
15885 ;;
15886
15887 sunos4*)
15888 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15889 wlarc=
15890 hardcode_direct=yes
15891 hardcode_shlibpath_var=no
15892 ;;
15893
15894 *)
15895 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15896 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15897 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15898 else
15899 ld_shlibs=no
15900 fi
15901 ;;
15902 esac
15903
15904 if test "$ld_shlibs" = no; then
15905 runpath_var=
15906 hardcode_libdir_flag_spec=
15907 export_dynamic_flag_spec=
15908 whole_archive_flag_spec=
15909 fi
15910 else
15911 # PORTME fill in a description of your system's linker (not GNU ld)
15912 case $host_os in
15913 aix3*)
15914 allow_undefined_flag=unsupported
15915 always_export_symbols=yes
15916 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'
15917 # Note: this linker hardcodes the directories in LIBPATH if there
15918 # are no directories specified by -L.
15919 hardcode_minus_L=yes
15920 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15921 # Neither direct hardcoding nor static linking is supported with a
15922 # broken collect2.
15923 hardcode_direct=unsupported
15924 fi
15925 ;;
15926
15927 aix[4-9]*)
15928 if test "$host_cpu" = ia64; then
15929 # On IA64, the linker does run time linking by default, so we don't
15930 # have to do anything special.
15931 aix_use_runtimelinking=no
15932 exp_sym_flag='-Bexport'
15933 no_entry_flag=""
15934 else
15935 # If we're using GNU nm, then we don't want the "-C" option.
15936 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15937 # Also, AIX nm treats weak defined symbols like other global
15938 # defined symbols, whereas GNU nm marks them as "W".
15939 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15940 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'
15941 else
15942 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'
15943 fi
15944 aix_use_runtimelinking=no
15945
15946 # Test if we are trying to use run time linking or normal
15947 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15948 # need to do runtime linking.
15949 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15950 for ld_flag in $LDFLAGS; do
15951 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15952 aix_use_runtimelinking=yes
15953 break
15954 fi
15955 done
15956 ;;
15957 esac
15958
15959 exp_sym_flag='-bexport'
15960 no_entry_flag='-bnoentry'
15961 fi
15962
15963 # When large executables or shared objects are built, AIX ld can
15964 # have problems creating the table of contents. If linking a library
15965 # or program results in "error TOC overflow" add -mminimal-toc to
15966 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15967 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15968
15969 archive_cmds=''
15970 hardcode_direct=yes
15971 hardcode_direct_absolute=yes
15972 hardcode_libdir_separator=':'
15973 link_all_deplibs=yes
15974 file_list_spec='${wl}-f,'
15975
15976 if test "$GCC" = yes; then
15977 case $host_os in aix4.[012]|aix4.[012].*)
15978 # We only want to do this on AIX 4.2 and lower, the check
15979 # below for broken collect2 doesn't work under 4.3+
15980 collect2name=`${CC} -print-prog-name=collect2`
15981 if test -f "$collect2name" &&
15982 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15983 then
15984 # We have reworked collect2
15985 :
15986 else
15987 # We have old collect2
15988 hardcode_direct=unsupported
15989 # It fails to find uninstalled libraries when the uninstalled
15990 # path is not listed in the libpath. Setting hardcode_minus_L
15991 # to unsupported forces relinking
15992 hardcode_minus_L=yes
15993 hardcode_libdir_flag_spec='-L$libdir'
15994 hardcode_libdir_separator=
15995 fi
15996 ;;
15997 esac
15998 shared_flag='-shared'
15999 if test "$aix_use_runtimelinking" = yes; then
16000 shared_flag="$shared_flag "'${wl}-G'
16001 fi
16002 else
16003 # not using gcc
16004 if test "$host_cpu" = ia64; then
16005 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16006 # chokes on -Wl,-G. The following line is correct:
16007 shared_flag='-G'
16008 else
16009 if test "$aix_use_runtimelinking" = yes; then
16010 shared_flag='${wl}-G'
16011 else
16012 shared_flag='${wl}-bM:SRE'
16013 fi
16014 fi
16015 fi
16016
16017 export_dynamic_flag_spec='${wl}-bexpall'
16018 # It seems that -bexpall does not export symbols beginning with
16019 # underscore (_), so it is better to generate a list of symbols to export.
16020 always_export_symbols=yes
16021 if test "$aix_use_runtimelinking" = yes; then
16022 # Warning - without using the other runtime loading flags (-brtl),
16023 # -berok will link without error, but may produce a broken library.
16024 allow_undefined_flag='-berok'
16025 # Determine the default libpath from the value encoded in an
16026 # empty executable.
16027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16028 /* end confdefs.h. */
16029
16030 int
16031 main ()
16032 {
16033
16034 ;
16035 return 0;
16036 }
16037 _ACEOF
16038 if ac_fn_c_try_link "$LINENO"; then :
16039
16040 lt_aix_libpath_sed='
16041 /Import File Strings/,/^$/ {
16042 /^0/ {
16043 s/^0 *\(.*\)$/\1/
16044 p
16045 }
16046 }'
16047 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16048 # Check for a 64-bit object if we didn't find anything.
16049 if test -z "$aix_libpath"; then
16050 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16051 fi
16052 fi
16053 rm -f core conftest.err conftest.$ac_objext \
16054 conftest$ac_exeext conftest.$ac_ext
16055 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16056
16057 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16058 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"
16059 else
16060 if test "$host_cpu" = ia64; then
16061 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16062 allow_undefined_flag="-z nodefs"
16063 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"
16064 else
16065 # Determine the default libpath from the value encoded in an
16066 # empty executable.
16067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16068 /* end confdefs.h. */
16069
16070 int
16071 main ()
16072 {
16073
16074 ;
16075 return 0;
16076 }
16077 _ACEOF
16078 if ac_fn_c_try_link "$LINENO"; then :
16079
16080 lt_aix_libpath_sed='
16081 /Import File Strings/,/^$/ {
16082 /^0/ {
16083 s/^0 *\(.*\)$/\1/
16084 p
16085 }
16086 }'
16087 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16088 # Check for a 64-bit object if we didn't find anything.
16089 if test -z "$aix_libpath"; then
16090 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16091 fi
16092 fi
16093 rm -f core conftest.err conftest.$ac_objext \
16094 conftest$ac_exeext conftest.$ac_ext
16095 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16096
16097 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16098 # Warning - without using the other run time loading flags,
16099 # -berok will link without error, but may produce a broken library.
16100 no_undefined_flag=' ${wl}-bernotok'
16101 allow_undefined_flag=' ${wl}-berok'
16102 if test "$with_gnu_ld" = yes; then
16103 # We only use this code for GNU lds that support --whole-archive.
16104 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16105 else
16106 # Exported symbols can be pulled into shared objects from archives
16107 whole_archive_flag_spec='$convenience'
16108 fi
16109 archive_cmds_need_lc=yes
16110 # This is similar to how AIX traditionally builds its shared libraries.
16111 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'
16112 fi
16113 fi
16114 ;;
16115
16116 amigaos*)
16117 case $host_cpu in
16118 powerpc)
16119 # see comment about AmigaOS4 .so support
16120 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16121 archive_expsym_cmds=''
16122 ;;
16123 m68k)
16124 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)'
16125 hardcode_libdir_flag_spec='-L$libdir'
16126 hardcode_minus_L=yes
16127 ;;
16128 esac
16129 ;;
16130
16131 bsdi[45]*)
16132 export_dynamic_flag_spec=-rdynamic
16133 ;;
16134
16135 cygwin* | mingw* | pw32* | cegcc*)
16136 # When not using gcc, we currently assume that we are using
16137 # Microsoft Visual C++.
16138 # hardcode_libdir_flag_spec is actually meaningless, as there is
16139 # no search path for DLLs.
16140 hardcode_libdir_flag_spec=' '
16141 allow_undefined_flag=unsupported
16142 # Tell ltmain to make .lib files, not .a files.
16143 libext=lib
16144 # Tell ltmain to make .dll files, not .so files.
16145 shrext_cmds=".dll"
16146 # FIXME: Setting linknames here is a bad hack.
16147 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16148 # The linker will automatically build a .lib file if we build a DLL.
16149 old_archive_from_new_cmds='true'
16150 # FIXME: Should let the user specify the lib program.
16151 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16152 fix_srcfile_path='`cygpath -w "$srcfile"`'
16153 enable_shared_with_static_runtimes=yes
16154 ;;
16155
16156 darwin* | rhapsody*)
16157
16158
16159 archive_cmds_need_lc=no
16160 hardcode_direct=no
16161 hardcode_automatic=yes
16162 hardcode_shlibpath_var=unsupported
16163 if test "$lt_cv_ld_force_load" = "yes"; then
16164 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\"`'
16165 else
16166 whole_archive_flag_spec=''
16167 fi
16168 link_all_deplibs=yes
16169 allow_undefined_flag="$_lt_dar_allow_undefined"
16170 case $cc_basename in
16171 ifort*) _lt_dar_can_shared=yes ;;
16172 *) _lt_dar_can_shared=$GCC ;;
16173 esac
16174 if test "$_lt_dar_can_shared" = "yes"; then
16175 output_verbose_link_cmd=func_echo_all
16176 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16177 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16178 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}"
16179 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}"
16180
16181 else
16182 ld_shlibs=no
16183 fi
16184
16185 ;;
16186
16187 dgux*)
16188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16189 hardcode_libdir_flag_spec='-L$libdir'
16190 hardcode_shlibpath_var=no
16191 ;;
16192
16193 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16194 # support. Future versions do this automatically, but an explicit c++rt0.o
16195 # does not break anything, and helps significantly (at the cost of a little
16196 # extra space).
16197 freebsd2.2*)
16198 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16199 hardcode_libdir_flag_spec='-R$libdir'
16200 hardcode_direct=yes
16201 hardcode_shlibpath_var=no
16202 ;;
16203
16204 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16205 freebsd2.*)
16206 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16207 hardcode_direct=yes
16208 hardcode_minus_L=yes
16209 hardcode_shlibpath_var=no
16210 ;;
16211
16212 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16213 freebsd* | dragonfly*)
16214 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16215 hardcode_libdir_flag_spec='-R$libdir'
16216 hardcode_direct=yes
16217 hardcode_shlibpath_var=no
16218 ;;
16219
16220 hpux9*)
16221 if test "$GCC" = yes; then
16222 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'
16223 else
16224 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'
16225 fi
16226 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16227 hardcode_libdir_separator=:
16228 hardcode_direct=yes
16229
16230 # hardcode_minus_L: Not really in the search PATH,
16231 # but as the default location of the library.
16232 hardcode_minus_L=yes
16233 export_dynamic_flag_spec='${wl}-E'
16234 ;;
16235
16236 hpux10*)
16237 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16238 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16239 else
16240 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16241 fi
16242 if test "$with_gnu_ld" = no; then
16243 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16244 hardcode_libdir_flag_spec_ld='+b $libdir'
16245 hardcode_libdir_separator=:
16246 hardcode_direct=yes
16247 hardcode_direct_absolute=yes
16248 export_dynamic_flag_spec='${wl}-E'
16249 # hardcode_minus_L: Not really in the search PATH,
16250 # but as the default location of the library.
16251 hardcode_minus_L=yes
16252 fi
16253 ;;
16254
16255 hpux11*)
16256 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16257 case $host_cpu in
16258 hppa*64*)
16259 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16260 ;;
16261 ia64*)
16262 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16263 ;;
16264 *)
16265 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16266 ;;
16267 esac
16268 else
16269 case $host_cpu in
16270 hppa*64*)
16271 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16272 ;;
16273 ia64*)
16274 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16275 ;;
16276 *)
16277
16278 # Older versions of the 11.00 compiler do not understand -b yet
16279 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16281 $as_echo_n "checking if $CC understands -b... " >&6; }
16282 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16283 $as_echo_n "(cached) " >&6
16284 else
16285 lt_cv_prog_compiler__b=no
16286 save_LDFLAGS="$LDFLAGS"
16287 LDFLAGS="$LDFLAGS -b"
16288 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16289 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16290 # The linker can only warn and ignore the option if not recognized
16291 # So say no if there are warnings
16292 if test -s conftest.err; then
16293 # Append any errors to the config.log.
16294 cat conftest.err 1>&5
16295 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16296 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16297 if diff conftest.exp conftest.er2 >/dev/null; then
16298 lt_cv_prog_compiler__b=yes
16299 fi
16300 else
16301 lt_cv_prog_compiler__b=yes
16302 fi
16303 fi
16304 $RM -r conftest*
16305 LDFLAGS="$save_LDFLAGS"
16306
16307 fi
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16309 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16310
16311 if test x"$lt_cv_prog_compiler__b" = xyes; then
16312 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16313 else
16314 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16315 fi
16316
16317 ;;
16318 esac
16319 fi
16320 if test "$with_gnu_ld" = no; then
16321 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16322 hardcode_libdir_separator=:
16323
16324 case $host_cpu in
16325 hppa*64*|ia64*)
16326 hardcode_direct=no
16327 hardcode_shlibpath_var=no
16328 ;;
16329 *)
16330 hardcode_direct=yes
16331 hardcode_direct_absolute=yes
16332 export_dynamic_flag_spec='${wl}-E'
16333
16334 # hardcode_minus_L: Not really in the search PATH,
16335 # but as the default location of the library.
16336 hardcode_minus_L=yes
16337 ;;
16338 esac
16339 fi
16340 ;;
16341
16342 irix5* | irix6* | nonstopux*)
16343 if test "$GCC" = yes; then
16344 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'
16345 # Try to use the -exported_symbol ld option, if it does not
16346 # work, assume that -exports_file does not work either and
16347 # implicitly export all symbols.
16348 save_LDFLAGS="$LDFLAGS"
16349 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16351 /* end confdefs.h. */
16352 int foo(void) {}
16353 _ACEOF
16354 if ac_fn_c_try_link "$LINENO"; then :
16355 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'
16356
16357 fi
16358 rm -f core conftest.err conftest.$ac_objext \
16359 conftest$ac_exeext conftest.$ac_ext
16360 LDFLAGS="$save_LDFLAGS"
16361 else
16362 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'
16363 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'
16364 fi
16365 archive_cmds_need_lc='no'
16366 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16367 hardcode_libdir_separator=:
16368 inherit_rpath=yes
16369 link_all_deplibs=yes
16370 ;;
16371
16372 netbsd*)
16373 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16374 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16375 else
16376 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16377 fi
16378 hardcode_libdir_flag_spec='-R$libdir'
16379 hardcode_direct=yes
16380 hardcode_shlibpath_var=no
16381 ;;
16382
16383 newsos6)
16384 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16385 hardcode_direct=yes
16386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16387 hardcode_libdir_separator=:
16388 hardcode_shlibpath_var=no
16389 ;;
16390
16391 *nto* | *qnx*)
16392 ;;
16393
16394 openbsd*)
16395 if test -f /usr/libexec/ld.so; then
16396 hardcode_direct=yes
16397 hardcode_shlibpath_var=no
16398 hardcode_direct_absolute=yes
16399 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16400 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16401 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16402 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16403 export_dynamic_flag_spec='${wl}-E'
16404 else
16405 case $host_os in
16406 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16407 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16408 hardcode_libdir_flag_spec='-R$libdir'
16409 ;;
16410 *)
16411 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16412 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16413 ;;
16414 esac
16415 fi
16416 else
16417 ld_shlibs=no
16418 fi
16419 ;;
16420
16421 os2*)
16422 hardcode_libdir_flag_spec='-L$libdir'
16423 hardcode_minus_L=yes
16424 allow_undefined_flag=unsupported
16425 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'
16426 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16427 ;;
16428
16429 osf3*)
16430 if test "$GCC" = yes; then
16431 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16432 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'
16433 else
16434 allow_undefined_flag=' -expect_unresolved \*'
16435 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'
16436 fi
16437 archive_cmds_need_lc='no'
16438 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16439 hardcode_libdir_separator=:
16440 ;;
16441
16442 osf4* | osf5*) # as osf3* with the addition of -msym flag
16443 if test "$GCC" = yes; then
16444 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16445 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'
16446 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16447 else
16448 allow_undefined_flag=' -expect_unresolved \*'
16449 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'
16450 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~
16451 $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'
16452
16453 # Both c and cxx compiler support -rpath directly
16454 hardcode_libdir_flag_spec='-rpath $libdir'
16455 fi
16456 archive_cmds_need_lc='no'
16457 hardcode_libdir_separator=:
16458 ;;
16459
16460 solaris*)
16461 no_undefined_flag=' -z defs'
16462 if test "$GCC" = yes; then
16463 wlarc='${wl}'
16464 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16465 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16466 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16467 else
16468 case `$CC -V 2>&1` in
16469 *"Compilers 5.0"*)
16470 wlarc=''
16471 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16472 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16473 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16474 ;;
16475 *)
16476 wlarc='${wl}'
16477 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16478 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16479 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16480 ;;
16481 esac
16482 fi
16483 hardcode_libdir_flag_spec='-R$libdir'
16484 hardcode_shlibpath_var=no
16485 case $host_os in
16486 solaris2.[0-5] | solaris2.[0-5].*) ;;
16487 *)
16488 # The compiler driver will combine and reorder linker options,
16489 # but understands `-z linker_flag'. GCC discards it without `$wl',
16490 # but is careful enough not to reorder.
16491 # Supported since Solaris 2.6 (maybe 2.5.1?)
16492 if test "$GCC" = yes; then
16493 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16494 else
16495 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16496 fi
16497 ;;
16498 esac
16499 link_all_deplibs=yes
16500 ;;
16501
16502 sunos4*)
16503 if test "x$host_vendor" = xsequent; then
16504 # Use $CC to link under sequent, because it throws in some extra .o
16505 # files that make .init and .fini sections work.
16506 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16507 else
16508 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16509 fi
16510 hardcode_libdir_flag_spec='-L$libdir'
16511 hardcode_direct=yes
16512 hardcode_minus_L=yes
16513 hardcode_shlibpath_var=no
16514 ;;
16515
16516 sysv4)
16517 case $host_vendor in
16518 sni)
16519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16520 hardcode_direct=yes # is this really true???
16521 ;;
16522 siemens)
16523 ## LD is ld it makes a PLAMLIB
16524 ## CC just makes a GrossModule.
16525 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16526 reload_cmds='$CC -r -o $output$reload_objs'
16527 hardcode_direct=no
16528 ;;
16529 motorola)
16530 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16531 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16532 ;;
16533 esac
16534 runpath_var='LD_RUN_PATH'
16535 hardcode_shlibpath_var=no
16536 ;;
16537
16538 sysv4.3*)
16539 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16540 hardcode_shlibpath_var=no
16541 export_dynamic_flag_spec='-Bexport'
16542 ;;
16543
16544 sysv4*MP*)
16545 if test -d /usr/nec; then
16546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16547 hardcode_shlibpath_var=no
16548 runpath_var=LD_RUN_PATH
16549 hardcode_runpath_var=yes
16550 ld_shlibs=yes
16551 fi
16552 ;;
16553
16554 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16555 no_undefined_flag='${wl}-z,text'
16556 archive_cmds_need_lc=no
16557 hardcode_shlibpath_var=no
16558 runpath_var='LD_RUN_PATH'
16559
16560 if test "$GCC" = yes; then
16561 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16562 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16563 else
16564 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16565 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16566 fi
16567 ;;
16568
16569 sysv5* | sco3.2v5* | sco5v6*)
16570 # Note: We can NOT use -z defs as we might desire, because we do not
16571 # link with -lc, and that would cause any symbols used from libc to
16572 # always be unresolved, which means just about no library would
16573 # ever link correctly. If we're not using GNU ld we use -z text
16574 # though, which does catch some bad symbols but isn't as heavy-handed
16575 # as -z defs.
16576 no_undefined_flag='${wl}-z,text'
16577 allow_undefined_flag='${wl}-z,nodefs'
16578 archive_cmds_need_lc=no
16579 hardcode_shlibpath_var=no
16580 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16581 hardcode_libdir_separator=':'
16582 link_all_deplibs=yes
16583 export_dynamic_flag_spec='${wl}-Bexport'
16584 runpath_var='LD_RUN_PATH'
16585
16586 if test "$GCC" = yes; then
16587 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16588 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16589 else
16590 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16591 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16592 fi
16593 ;;
16594
16595 uts4*)
16596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16597 hardcode_libdir_flag_spec='-L$libdir'
16598 hardcode_shlibpath_var=no
16599 ;;
16600
16601 *)
16602 ld_shlibs=no
16603 ;;
16604 esac
16605
16606 if test x$host_vendor = xsni; then
16607 case $host in
16608 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16609 export_dynamic_flag_spec='${wl}-Blargedynsym'
16610 ;;
16611 esac
16612 fi
16613 fi
16614
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16616 $as_echo "$ld_shlibs" >&6; }
16617 test "$ld_shlibs" = no && can_build_shared=no
16618
16619 with_gnu_ld=$with_gnu_ld
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635 #
16636 # Do we need to explicitly link libc?
16637 #
16638 case "x$archive_cmds_need_lc" in
16639 x|xyes)
16640 # Assume -lc should be added
16641 archive_cmds_need_lc=yes
16642
16643 if test "$enable_shared" = yes && test "$GCC" = yes; then
16644 case $archive_cmds in
16645 *'~'*)
16646 # FIXME: we may have to deal with multi-command sequences.
16647 ;;
16648 '$CC '*)
16649 # Test whether the compiler implicitly links with -lc since on some
16650 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16651 # to ld, don't add -lc before -lgcc.
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16653 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16654 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16655 $as_echo_n "(cached) " >&6
16656 else
16657 $RM conftest*
16658 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16659
16660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16661 (eval $ac_compile) 2>&5
16662 ac_status=$?
16663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16664 test $ac_status = 0; } 2>conftest.err; then
16665 soname=conftest
16666 lib=conftest
16667 libobjs=conftest.$ac_objext
16668 deplibs=
16669 wl=$lt_prog_compiler_wl
16670 pic_flag=$lt_prog_compiler_pic
16671 compiler_flags=-v
16672 linker_flags=-v
16673 verstring=
16674 output_objdir=.
16675 libname=conftest
16676 lt_save_allow_undefined_flag=$allow_undefined_flag
16677 allow_undefined_flag=
16678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16679 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16680 ac_status=$?
16681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16682 test $ac_status = 0; }
16683 then
16684 lt_cv_archive_cmds_need_lc=no
16685 else
16686 lt_cv_archive_cmds_need_lc=yes
16687 fi
16688 allow_undefined_flag=$lt_save_allow_undefined_flag
16689 else
16690 cat conftest.err 1>&5
16691 fi
16692 $RM conftest*
16693
16694 fi
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16696 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16697 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16698 ;;
16699 esac
16700 fi
16701 ;;
16702 esac
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16861 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16862
16863 if test "$GCC" = yes; then
16864 case $host_os in
16865 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16866 *) lt_awk_arg="/^libraries:/" ;;
16867 esac
16868 case $host_os in
16869 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16870 *) lt_sed_strip_eq="s,=/,/,g" ;;
16871 esac
16872 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16873 case $lt_search_path_spec in
16874 *\;*)
16875 # if the path contains ";" then we assume it to be the separator
16876 # otherwise default to the standard path separator (i.e. ":") - it is
16877 # assumed that no part of a normal pathname contains ";" but that should
16878 # okay in the real world where ";" in dirpaths is itself problematic.
16879 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16880 ;;
16881 *)
16882 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16883 ;;
16884 esac
16885 # Ok, now we have the path, separated by spaces, we can step through it
16886 # and add multilib dir if necessary.
16887 lt_tmp_lt_search_path_spec=
16888 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16889 for lt_sys_path in $lt_search_path_spec; do
16890 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16891 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16892 else
16893 test -d "$lt_sys_path" && \
16894 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16895 fi
16896 done
16897 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16898 BEGIN {RS=" "; FS="/|\n";} {
16899 lt_foo="";
16900 lt_count=0;
16901 for (lt_i = NF; lt_i > 0; lt_i--) {
16902 if ($lt_i != "" && $lt_i != ".") {
16903 if ($lt_i == "..") {
16904 lt_count++;
16905 } else {
16906 if (lt_count == 0) {
16907 lt_foo="/" $lt_i lt_foo;
16908 } else {
16909 lt_count--;
16910 }
16911 }
16912 }
16913 }
16914 if (lt_foo != "") { lt_freq[lt_foo]++; }
16915 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16916 }'`
16917 # AWK program above erroneously prepends '/' to C:/dos/paths
16918 # for these hosts.
16919 case $host_os in
16920 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16921 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16922 esac
16923 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16924 else
16925 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16926 fi
16927 library_names_spec=
16928 libname_spec='lib$name'
16929 soname_spec=
16930 shrext_cmds=".so"
16931 postinstall_cmds=
16932 postuninstall_cmds=
16933 finish_cmds=
16934 finish_eval=
16935 shlibpath_var=
16936 shlibpath_overrides_runpath=unknown
16937 version_type=none
16938 dynamic_linker="$host_os ld.so"
16939 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16940 need_lib_prefix=unknown
16941 hardcode_into_libs=no
16942
16943 # when you set need_version to no, make sure it does not cause -set_version
16944 # flags to be left without arguments
16945 need_version=unknown
16946
16947 case $host_os in
16948 aix3*)
16949 version_type=linux
16950 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16951 shlibpath_var=LIBPATH
16952
16953 # AIX 3 has no versioning support, so we append a major version to the name.
16954 soname_spec='${libname}${release}${shared_ext}$major'
16955 ;;
16956
16957 aix[4-9]*)
16958 version_type=linux
16959 need_lib_prefix=no
16960 need_version=no
16961 hardcode_into_libs=yes
16962 if test "$host_cpu" = ia64; then
16963 # AIX 5 supports IA64
16964 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16965 shlibpath_var=LD_LIBRARY_PATH
16966 else
16967 # With GCC up to 2.95.x, collect2 would create an import file
16968 # for dependence libraries. The import file would start with
16969 # the line `#! .'. This would cause the generated library to
16970 # depend on `.', always an invalid library. This was fixed in
16971 # development snapshots of GCC prior to 3.0.
16972 case $host_os in
16973 aix4 | aix4.[01] | aix4.[01].*)
16974 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16975 echo ' yes '
16976 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16977 :
16978 else
16979 can_build_shared=no
16980 fi
16981 ;;
16982 esac
16983 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16984 # soname into executable. Probably we can add versioning support to
16985 # collect2, so additional links can be useful in future.
16986 if test "$aix_use_runtimelinking" = yes; then
16987 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16988 # instead of lib<name>.a to let people know that these are not
16989 # typical AIX shared libraries.
16990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16991 else
16992 # We preserve .a as extension for shared libraries through AIX4.2
16993 # and later when we are not doing run time linking.
16994 library_names_spec='${libname}${release}.a $libname.a'
16995 soname_spec='${libname}${release}${shared_ext}$major'
16996 fi
16997 shlibpath_var=LIBPATH
16998 fi
16999 ;;
17000
17001 amigaos*)
17002 case $host_cpu in
17003 powerpc)
17004 # Since July 2007 AmigaOS4 officially supports .so libraries.
17005 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17007 ;;
17008 m68k)
17009 library_names_spec='$libname.ixlibrary $libname.a'
17010 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17011 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'
17012 ;;
17013 esac
17014 ;;
17015
17016 beos*)
17017 library_names_spec='${libname}${shared_ext}'
17018 dynamic_linker="$host_os ld.so"
17019 shlibpath_var=LIBRARY_PATH
17020 ;;
17021
17022 bsdi[45]*)
17023 version_type=linux
17024 need_version=no
17025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17026 soname_spec='${libname}${release}${shared_ext}$major'
17027 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17028 shlibpath_var=LD_LIBRARY_PATH
17029 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17030 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17031 # the default ld.so.conf also contains /usr/contrib/lib and
17032 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17033 # libtool to hard-code these into programs
17034 ;;
17035
17036 cygwin* | mingw* | pw32* | cegcc*)
17037 version_type=windows
17038 shrext_cmds=".dll"
17039 need_version=no
17040 need_lib_prefix=no
17041
17042 case $GCC,$host_os in
17043 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17044 library_names_spec='$libname.dll.a'
17045 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17046 postinstall_cmds='base_file=`basename \${file}`~
17047 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17048 dldir=$destdir/`dirname \$dlpath`~
17049 test -d \$dldir || mkdir -p \$dldir~
17050 $install_prog $dir/$dlname \$dldir/$dlname~
17051 chmod a+x \$dldir/$dlname~
17052 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17053 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17054 fi'
17055 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17056 dlpath=$dir/\$dldll~
17057 $RM \$dlpath'
17058 shlibpath_overrides_runpath=yes
17059
17060 case $host_os in
17061 cygwin*)
17062 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17063 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17064
17065 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17066 ;;
17067 mingw* | cegcc*)
17068 # MinGW DLLs use traditional 'lib' prefix
17069 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17070 ;;
17071 pw32*)
17072 # pw32 DLLs use 'pw' prefix rather than 'lib'
17073 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17074 ;;
17075 esac
17076 ;;
17077
17078 *)
17079 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17080 ;;
17081 esac
17082 dynamic_linker='Win32 ld.exe'
17083 # FIXME: first we should search . and the directory the executable is in
17084 shlibpath_var=PATH
17085 ;;
17086
17087 darwin* | rhapsody*)
17088 dynamic_linker="$host_os dyld"
17089 version_type=darwin
17090 need_lib_prefix=no
17091 need_version=no
17092 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17093 soname_spec='${libname}${release}${major}$shared_ext'
17094 shlibpath_overrides_runpath=yes
17095 shlibpath_var=DYLD_LIBRARY_PATH
17096 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17097
17098 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17099 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17100 ;;
17101
17102 dgux*)
17103 version_type=linux
17104 need_lib_prefix=no
17105 need_version=no
17106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17107 soname_spec='${libname}${release}${shared_ext}$major'
17108 shlibpath_var=LD_LIBRARY_PATH
17109 ;;
17110
17111 freebsd* | dragonfly*)
17112 # DragonFly does not have aout. When/if they implement a new
17113 # versioning mechanism, adjust this.
17114 if test -x /usr/bin/objformat; then
17115 objformat=`/usr/bin/objformat`
17116 else
17117 case $host_os in
17118 freebsd[23].*) objformat=aout ;;
17119 *) objformat=elf ;;
17120 esac
17121 fi
17122 version_type=freebsd-$objformat
17123 case $version_type in
17124 freebsd-elf*)
17125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17126 need_version=no
17127 need_lib_prefix=no
17128 ;;
17129 freebsd-*)
17130 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17131 need_version=yes
17132 ;;
17133 esac
17134 shlibpath_var=LD_LIBRARY_PATH
17135 case $host_os in
17136 freebsd2.*)
17137 shlibpath_overrides_runpath=yes
17138 ;;
17139 freebsd3.[01]* | freebsdelf3.[01]*)
17140 shlibpath_overrides_runpath=yes
17141 hardcode_into_libs=yes
17142 ;;
17143 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17144 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17145 shlibpath_overrides_runpath=no
17146 hardcode_into_libs=yes
17147 ;;
17148 *) # from 4.6 on, and DragonFly
17149 shlibpath_overrides_runpath=yes
17150 hardcode_into_libs=yes
17151 ;;
17152 esac
17153 ;;
17154
17155 gnu*)
17156 version_type=linux
17157 need_lib_prefix=no
17158 need_version=no
17159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17160 soname_spec='${libname}${release}${shared_ext}$major'
17161 shlibpath_var=LD_LIBRARY_PATH
17162 hardcode_into_libs=yes
17163 ;;
17164
17165 haiku*)
17166 version_type=linux
17167 need_lib_prefix=no
17168 need_version=no
17169 dynamic_linker="$host_os runtime_loader"
17170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17171 soname_spec='${libname}${release}${shared_ext}$major'
17172 shlibpath_var=LIBRARY_PATH
17173 shlibpath_overrides_runpath=yes
17174 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17175 hardcode_into_libs=yes
17176 ;;
17177
17178 hpux9* | hpux10* | hpux11*)
17179 # Give a soname corresponding to the major version so that dld.sl refuses to
17180 # link against other versions.
17181 version_type=sunos
17182 need_lib_prefix=no
17183 need_version=no
17184 case $host_cpu in
17185 ia64*)
17186 shrext_cmds='.so'
17187 hardcode_into_libs=yes
17188 dynamic_linker="$host_os dld.so"
17189 shlibpath_var=LD_LIBRARY_PATH
17190 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17192 soname_spec='${libname}${release}${shared_ext}$major'
17193 if test "X$HPUX_IA64_MODE" = X32; then
17194 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17195 else
17196 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17197 fi
17198 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17199 ;;
17200 hppa*64*)
17201 shrext_cmds='.sl'
17202 hardcode_into_libs=yes
17203 dynamic_linker="$host_os dld.sl"
17204 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17205 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17209 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17210 ;;
17211 *)
17212 shrext_cmds='.sl'
17213 dynamic_linker="$host_os dld.sl"
17214 shlibpath_var=SHLIB_PATH
17215 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17217 soname_spec='${libname}${release}${shared_ext}$major'
17218 ;;
17219 esac
17220 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17221 postinstall_cmds='chmod 555 $lib'
17222 # or fails outright, so override atomically:
17223 install_override_mode=555
17224 ;;
17225
17226 interix[3-9]*)
17227 version_type=linux
17228 need_lib_prefix=no
17229 need_version=no
17230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17231 soname_spec='${libname}${release}${shared_ext}$major'
17232 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17233 shlibpath_var=LD_LIBRARY_PATH
17234 shlibpath_overrides_runpath=no
17235 hardcode_into_libs=yes
17236 ;;
17237
17238 irix5* | irix6* | nonstopux*)
17239 case $host_os in
17240 nonstopux*) version_type=nonstopux ;;
17241 *)
17242 if test "$lt_cv_prog_gnu_ld" = yes; then
17243 version_type=linux
17244 else
17245 version_type=irix
17246 fi ;;
17247 esac
17248 need_lib_prefix=no
17249 need_version=no
17250 soname_spec='${libname}${release}${shared_ext}$major'
17251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17252 case $host_os in
17253 irix5* | nonstopux*)
17254 libsuff= shlibsuff=
17255 ;;
17256 *)
17257 case $LD in # libtool.m4 will add one of these switches to LD
17258 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17259 libsuff= shlibsuff= libmagic=32-bit;;
17260 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17261 libsuff=32 shlibsuff=N32 libmagic=N32;;
17262 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17263 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17264 *) libsuff= shlibsuff= libmagic=never-match;;
17265 esac
17266 ;;
17267 esac
17268 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17269 shlibpath_overrides_runpath=no
17270 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17271 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17272 hardcode_into_libs=yes
17273 ;;
17274
17275 # No shared lib support for Linux oldld, aout, or coff.
17276 linux*oldld* | linux*aout* | linux*coff*)
17277 dynamic_linker=no
17278 ;;
17279
17280 # This must be Linux ELF.
17281 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17282 version_type=linux
17283 need_lib_prefix=no
17284 need_version=no
17285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17286 soname_spec='${libname}${release}${shared_ext}$major'
17287 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17288 shlibpath_var=LD_LIBRARY_PATH
17289 shlibpath_overrides_runpath=no
17290
17291 # Some binutils ld are patched to set DT_RUNPATH
17292 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17293 $as_echo_n "(cached) " >&6
17294 else
17295 lt_cv_shlibpath_overrides_runpath=no
17296 save_LDFLAGS=$LDFLAGS
17297 save_libdir=$libdir
17298 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17299 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17301 /* end confdefs.h. */
17302
17303 int
17304 main ()
17305 {
17306
17307 ;
17308 return 0;
17309 }
17310 _ACEOF
17311 if ac_fn_c_try_link "$LINENO"; then :
17312 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17313 lt_cv_shlibpath_overrides_runpath=yes
17314 fi
17315 fi
17316 rm -f core conftest.err conftest.$ac_objext \
17317 conftest$ac_exeext conftest.$ac_ext
17318 LDFLAGS=$save_LDFLAGS
17319 libdir=$save_libdir
17320
17321 fi
17322
17323 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17324
17325 # This implies no fast_install, which is unacceptable.
17326 # Some rework will be needed to allow for fast_install
17327 # before this can be enabled.
17328 hardcode_into_libs=yes
17329
17330 # Append ld.so.conf contents to the search path
17331 if test -f /etc/ld.so.conf; then
17332 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' ' '`
17333 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17334 fi
17335
17336 # We used to test for /lib/ld.so.1 and disable shared libraries on
17337 # powerpc, because MkLinux only supported shared libraries with the
17338 # GNU dynamic linker. Since this was broken with cross compilers,
17339 # most powerpc-linux boxes support dynamic linking these days and
17340 # people can always --disable-shared, the test was removed, and we
17341 # assume the GNU/Linux dynamic linker is in use.
17342 dynamic_linker='GNU/Linux ld.so'
17343 ;;
17344
17345 netbsd*)
17346 version_type=sunos
17347 need_lib_prefix=no
17348 need_version=no
17349 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17352 dynamic_linker='NetBSD (a.out) ld.so'
17353 else
17354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17355 soname_spec='${libname}${release}${shared_ext}$major'
17356 dynamic_linker='NetBSD ld.elf_so'
17357 fi
17358 shlibpath_var=LD_LIBRARY_PATH
17359 shlibpath_overrides_runpath=yes
17360 hardcode_into_libs=yes
17361 ;;
17362
17363 newsos6)
17364 version_type=linux
17365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17366 shlibpath_var=LD_LIBRARY_PATH
17367 shlibpath_overrides_runpath=yes
17368 ;;
17369
17370 *nto* | *qnx*)
17371 version_type=qnx
17372 need_lib_prefix=no
17373 need_version=no
17374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17375 soname_spec='${libname}${release}${shared_ext}$major'
17376 shlibpath_var=LD_LIBRARY_PATH
17377 shlibpath_overrides_runpath=no
17378 hardcode_into_libs=yes
17379 dynamic_linker='ldqnx.so'
17380 ;;
17381
17382 openbsd*)
17383 version_type=sunos
17384 sys_lib_dlsearch_path_spec="/usr/lib"
17385 need_lib_prefix=no
17386 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17387 case $host_os in
17388 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17389 *) need_version=no ;;
17390 esac
17391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17392 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17393 shlibpath_var=LD_LIBRARY_PATH
17394 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17395 case $host_os in
17396 openbsd2.[89] | openbsd2.[89].*)
17397 shlibpath_overrides_runpath=no
17398 ;;
17399 *)
17400 shlibpath_overrides_runpath=yes
17401 ;;
17402 esac
17403 else
17404 shlibpath_overrides_runpath=yes
17405 fi
17406 ;;
17407
17408 os2*)
17409 libname_spec='$name'
17410 shrext_cmds=".dll"
17411 need_lib_prefix=no
17412 library_names_spec='$libname${shared_ext} $libname.a'
17413 dynamic_linker='OS/2 ld.exe'
17414 shlibpath_var=LIBPATH
17415 ;;
17416
17417 osf3* | osf4* | osf5*)
17418 version_type=osf
17419 need_lib_prefix=no
17420 need_version=no
17421 soname_spec='${libname}${release}${shared_ext}$major'
17422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17423 shlibpath_var=LD_LIBRARY_PATH
17424 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17425 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17426 ;;
17427
17428 rdos*)
17429 dynamic_linker=no
17430 ;;
17431
17432 solaris*)
17433 version_type=linux
17434 need_lib_prefix=no
17435 need_version=no
17436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17437 soname_spec='${libname}${release}${shared_ext}$major'
17438 shlibpath_var=LD_LIBRARY_PATH
17439 shlibpath_overrides_runpath=yes
17440 hardcode_into_libs=yes
17441 # ldd complains unless libraries are executable
17442 postinstall_cmds='chmod +x $lib'
17443 ;;
17444
17445 sunos4*)
17446 version_type=sunos
17447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17448 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17449 shlibpath_var=LD_LIBRARY_PATH
17450 shlibpath_overrides_runpath=yes
17451 if test "$with_gnu_ld" = yes; then
17452 need_lib_prefix=no
17453 fi
17454 need_version=yes
17455 ;;
17456
17457 sysv4 | sysv4.3*)
17458 version_type=linux
17459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17460 soname_spec='${libname}${release}${shared_ext}$major'
17461 shlibpath_var=LD_LIBRARY_PATH
17462 case $host_vendor in
17463 sni)
17464 shlibpath_overrides_runpath=no
17465 need_lib_prefix=no
17466 runpath_var=LD_RUN_PATH
17467 ;;
17468 siemens)
17469 need_lib_prefix=no
17470 ;;
17471 motorola)
17472 need_lib_prefix=no
17473 need_version=no
17474 shlibpath_overrides_runpath=no
17475 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17476 ;;
17477 esac
17478 ;;
17479
17480 sysv4*MP*)
17481 if test -d /usr/nec ;then
17482 version_type=linux
17483 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17484 soname_spec='$libname${shared_ext}.$major'
17485 shlibpath_var=LD_LIBRARY_PATH
17486 fi
17487 ;;
17488
17489 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17490 version_type=freebsd-elf
17491 need_lib_prefix=no
17492 need_version=no
17493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17494 soname_spec='${libname}${release}${shared_ext}$major'
17495 shlibpath_var=LD_LIBRARY_PATH
17496 shlibpath_overrides_runpath=yes
17497 hardcode_into_libs=yes
17498 if test "$with_gnu_ld" = yes; then
17499 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17500 else
17501 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17502 case $host_os in
17503 sco3.2v5*)
17504 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17505 ;;
17506 esac
17507 fi
17508 sys_lib_dlsearch_path_spec='/usr/lib'
17509 ;;
17510
17511 tpf*)
17512 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17513 version_type=linux
17514 need_lib_prefix=no
17515 need_version=no
17516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17517 shlibpath_var=LD_LIBRARY_PATH
17518 shlibpath_overrides_runpath=no
17519 hardcode_into_libs=yes
17520 ;;
17521
17522 uts4*)
17523 version_type=linux
17524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17525 soname_spec='${libname}${release}${shared_ext}$major'
17526 shlibpath_var=LD_LIBRARY_PATH
17527 ;;
17528
17529 *)
17530 dynamic_linker=no
17531 ;;
17532 esac
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17534 $as_echo "$dynamic_linker" >&6; }
17535 test "$dynamic_linker" = no && can_build_shared=no
17536
17537 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17538 if test "$GCC" = yes; then
17539 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17540 fi
17541
17542 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17543 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17544 fi
17545 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17546 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17547 fi
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17641 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17642 hardcode_action=
17643 if test -n "$hardcode_libdir_flag_spec" ||
17644 test -n "$runpath_var" ||
17645 test "X$hardcode_automatic" = "Xyes" ; then
17646
17647 # We can hardcode non-existent directories.
17648 if test "$hardcode_direct" != no &&
17649 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17650 # have to relink, otherwise we might link with an installed library
17651 # when we should be linking with a yet-to-be-installed one
17652 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17653 test "$hardcode_minus_L" != no; then
17654 # Linking always hardcodes the temporary library directory.
17655 hardcode_action=relink
17656 else
17657 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17658 hardcode_action=immediate
17659 fi
17660 else
17661 # We cannot hardcode anything, or else we can only hardcode existing
17662 # directories.
17663 hardcode_action=unsupported
17664 fi
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17666 $as_echo "$hardcode_action" >&6; }
17667
17668 if test "$hardcode_action" = relink ||
17669 test "$inherit_rpath" = yes; then
17670 # Fast installation is not supported
17671 enable_fast_install=no
17672 elif test "$shlibpath_overrides_runpath" = yes ||
17673 test "$enable_shared" = no; then
17674 # Fast installation is not necessary
17675 enable_fast_install=needless
17676 fi
17677
17678
17679
17680
17681
17682
17683 if test "x$enable_dlopen" != xyes; then
17684 enable_dlopen=unknown
17685 enable_dlopen_self=unknown
17686 enable_dlopen_self_static=unknown
17687 else
17688 lt_cv_dlopen=no
17689 lt_cv_dlopen_libs=
17690
17691 case $host_os in
17692 beos*)
17693 lt_cv_dlopen="load_add_on"
17694 lt_cv_dlopen_libs=
17695 lt_cv_dlopen_self=yes
17696 ;;
17697
17698 mingw* | pw32* | cegcc*)
17699 lt_cv_dlopen="LoadLibrary"
17700 lt_cv_dlopen_libs=
17701 ;;
17702
17703 cygwin*)
17704 lt_cv_dlopen="dlopen"
17705 lt_cv_dlopen_libs=
17706 ;;
17707
17708 darwin*)
17709 # if libdl is installed we need to link against it
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17711 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17712 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17713 $as_echo_n "(cached) " >&6
17714 else
17715 ac_check_lib_save_LIBS=$LIBS
17716 LIBS="-ldl $LIBS"
17717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17718 /* end confdefs.h. */
17719
17720 /* Override any GCC internal prototype to avoid an error.
17721 Use char because int might match the return type of a GCC
17722 builtin and then its argument prototype would still apply. */
17723 #ifdef __cplusplus
17724 extern "C"
17725 #endif
17726 char dlopen ();
17727 int
17728 main ()
17729 {
17730 return dlopen ();
17731 ;
17732 return 0;
17733 }
17734 _ACEOF
17735 if ac_fn_c_try_link "$LINENO"; then :
17736 ac_cv_lib_dl_dlopen=yes
17737 else
17738 ac_cv_lib_dl_dlopen=no
17739 fi
17740 rm -f core conftest.err conftest.$ac_objext \
17741 conftest$ac_exeext conftest.$ac_ext
17742 LIBS=$ac_check_lib_save_LIBS
17743 fi
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17745 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17746 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17747 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17748 else
17749
17750 lt_cv_dlopen="dyld"
17751 lt_cv_dlopen_libs=
17752 lt_cv_dlopen_self=yes
17753
17754 fi
17755
17756 ;;
17757
17758 *)
17759 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17760 if test "x$ac_cv_func_shl_load" = x""yes; then :
17761 lt_cv_dlopen="shl_load"
17762 else
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17764 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17765 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17766 $as_echo_n "(cached) " >&6
17767 else
17768 ac_check_lib_save_LIBS=$LIBS
17769 LIBS="-ldld $LIBS"
17770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17771 /* end confdefs.h. */
17772
17773 /* Override any GCC internal prototype to avoid an error.
17774 Use char because int might match the return type of a GCC
17775 builtin and then its argument prototype would still apply. */
17776 #ifdef __cplusplus
17777 extern "C"
17778 #endif
17779 char shl_load ();
17780 int
17781 main ()
17782 {
17783 return shl_load ();
17784 ;
17785 return 0;
17786 }
17787 _ACEOF
17788 if ac_fn_c_try_link "$LINENO"; then :
17789 ac_cv_lib_dld_shl_load=yes
17790 else
17791 ac_cv_lib_dld_shl_load=no
17792 fi
17793 rm -f core conftest.err conftest.$ac_objext \
17794 conftest$ac_exeext conftest.$ac_ext
17795 LIBS=$ac_check_lib_save_LIBS
17796 fi
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17798 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17799 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17800 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17801 else
17802 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17803 if test "x$ac_cv_func_dlopen" = x""yes; then :
17804 lt_cv_dlopen="dlopen"
17805 else
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17807 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17808 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17809 $as_echo_n "(cached) " >&6
17810 else
17811 ac_check_lib_save_LIBS=$LIBS
17812 LIBS="-ldl $LIBS"
17813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17814 /* end confdefs.h. */
17815
17816 /* Override any GCC internal prototype to avoid an error.
17817 Use char because int might match the return type of a GCC
17818 builtin and then its argument prototype would still apply. */
17819 #ifdef __cplusplus
17820 extern "C"
17821 #endif
17822 char dlopen ();
17823 int
17824 main ()
17825 {
17826 return dlopen ();
17827 ;
17828 return 0;
17829 }
17830 _ACEOF
17831 if ac_fn_c_try_link "$LINENO"; then :
17832 ac_cv_lib_dl_dlopen=yes
17833 else
17834 ac_cv_lib_dl_dlopen=no
17835 fi
17836 rm -f core conftest.err conftest.$ac_objext \
17837 conftest$ac_exeext conftest.$ac_ext
17838 LIBS=$ac_check_lib_save_LIBS
17839 fi
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17841 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17842 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17843 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17844 else
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17846 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17847 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17848 $as_echo_n "(cached) " >&6
17849 else
17850 ac_check_lib_save_LIBS=$LIBS
17851 LIBS="-lsvld $LIBS"
17852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17853 /* end confdefs.h. */
17854
17855 /* Override any GCC internal prototype to avoid an error.
17856 Use char because int might match the return type of a GCC
17857 builtin and then its argument prototype would still apply. */
17858 #ifdef __cplusplus
17859 extern "C"
17860 #endif
17861 char dlopen ();
17862 int
17863 main ()
17864 {
17865 return dlopen ();
17866 ;
17867 return 0;
17868 }
17869 _ACEOF
17870 if ac_fn_c_try_link "$LINENO"; then :
17871 ac_cv_lib_svld_dlopen=yes
17872 else
17873 ac_cv_lib_svld_dlopen=no
17874 fi
17875 rm -f core conftest.err conftest.$ac_objext \
17876 conftest$ac_exeext conftest.$ac_ext
17877 LIBS=$ac_check_lib_save_LIBS
17878 fi
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17880 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17881 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17882 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17883 else
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17885 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17886 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17887 $as_echo_n "(cached) " >&6
17888 else
17889 ac_check_lib_save_LIBS=$LIBS
17890 LIBS="-ldld $LIBS"
17891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17892 /* end confdefs.h. */
17893
17894 /* Override any GCC internal prototype to avoid an error.
17895 Use char because int might match the return type of a GCC
17896 builtin and then its argument prototype would still apply. */
17897 #ifdef __cplusplus
17898 extern "C"
17899 #endif
17900 char dld_link ();
17901 int
17902 main ()
17903 {
17904 return dld_link ();
17905 ;
17906 return 0;
17907 }
17908 _ACEOF
17909 if ac_fn_c_try_link "$LINENO"; then :
17910 ac_cv_lib_dld_dld_link=yes
17911 else
17912 ac_cv_lib_dld_dld_link=no
17913 fi
17914 rm -f core conftest.err conftest.$ac_objext \
17915 conftest$ac_exeext conftest.$ac_ext
17916 LIBS=$ac_check_lib_save_LIBS
17917 fi
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17919 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17920 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17921 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17922 fi
17923
17924
17925 fi
17926
17927
17928 fi
17929
17930
17931 fi
17932
17933
17934 fi
17935
17936
17937 fi
17938
17939 ;;
17940 esac
17941
17942 if test "x$lt_cv_dlopen" != xno; then
17943 enable_dlopen=yes
17944 else
17945 enable_dlopen=no
17946 fi
17947
17948 case $lt_cv_dlopen in
17949 dlopen)
17950 save_CPPFLAGS="$CPPFLAGS"
17951 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17952
17953 save_LDFLAGS="$LDFLAGS"
17954 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17955
17956 save_LIBS="$LIBS"
17957 LIBS="$lt_cv_dlopen_libs $LIBS"
17958
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17960 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17961 if test "${lt_cv_dlopen_self+set}" = set; then :
17962 $as_echo_n "(cached) " >&6
17963 else
17964 if test "$cross_compiling" = yes; then :
17965 lt_cv_dlopen_self=cross
17966 else
17967 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17968 lt_status=$lt_dlunknown
17969 cat > conftest.$ac_ext <<_LT_EOF
17970 #line 17970 "configure"
17971 #include "confdefs.h"
17972
17973 #if HAVE_DLFCN_H
17974 #include <dlfcn.h>
17975 #endif
17976
17977 #include <stdio.h>
17978
17979 #ifdef RTLD_GLOBAL
17980 # define LT_DLGLOBAL RTLD_GLOBAL
17981 #else
17982 # ifdef DL_GLOBAL
17983 # define LT_DLGLOBAL DL_GLOBAL
17984 # else
17985 # define LT_DLGLOBAL 0
17986 # endif
17987 #endif
17988
17989 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17990 find out it does not work in some platform. */
17991 #ifndef LT_DLLAZY_OR_NOW
17992 # ifdef RTLD_LAZY
17993 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17994 # else
17995 # ifdef DL_LAZY
17996 # define LT_DLLAZY_OR_NOW DL_LAZY
17997 # else
17998 # ifdef RTLD_NOW
17999 # define LT_DLLAZY_OR_NOW RTLD_NOW
18000 # else
18001 # ifdef DL_NOW
18002 # define LT_DLLAZY_OR_NOW DL_NOW
18003 # else
18004 # define LT_DLLAZY_OR_NOW 0
18005 # endif
18006 # endif
18007 # endif
18008 # endif
18009 #endif
18010
18011 /* When -fvisbility=hidden is used, assume the code has been annotated
18012 correspondingly for the symbols needed. */
18013 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18014 void fnord () __attribute__((visibility("default")));
18015 #endif
18016
18017 void fnord () { int i=42; }
18018 int main ()
18019 {
18020 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18021 int status = $lt_dlunknown;
18022
18023 if (self)
18024 {
18025 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18026 else
18027 {
18028 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18029 else puts (dlerror ());
18030 }
18031 /* dlclose (self); */
18032 }
18033 else
18034 puts (dlerror ());
18035
18036 return status;
18037 }
18038 _LT_EOF
18039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18040 (eval $ac_link) 2>&5
18041 ac_status=$?
18042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18043 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18044 (./conftest; exit; ) >&5 2>/dev/null
18045 lt_status=$?
18046 case x$lt_status in
18047 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18048 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18049 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18050 esac
18051 else :
18052 # compilation failed
18053 lt_cv_dlopen_self=no
18054 fi
18055 fi
18056 rm -fr conftest*
18057
18058
18059 fi
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18061 $as_echo "$lt_cv_dlopen_self" >&6; }
18062
18063 if test "x$lt_cv_dlopen_self" = xyes; then
18064 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18066 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18067 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18068 $as_echo_n "(cached) " >&6
18069 else
18070 if test "$cross_compiling" = yes; then :
18071 lt_cv_dlopen_self_static=cross
18072 else
18073 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18074 lt_status=$lt_dlunknown
18075 cat > conftest.$ac_ext <<_LT_EOF
18076 #line 18076 "configure"
18077 #include "confdefs.h"
18078
18079 #if HAVE_DLFCN_H
18080 #include <dlfcn.h>
18081 #endif
18082
18083 #include <stdio.h>
18084
18085 #ifdef RTLD_GLOBAL
18086 # define LT_DLGLOBAL RTLD_GLOBAL
18087 #else
18088 # ifdef DL_GLOBAL
18089 # define LT_DLGLOBAL DL_GLOBAL
18090 # else
18091 # define LT_DLGLOBAL 0
18092 # endif
18093 #endif
18094
18095 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18096 find out it does not work in some platform. */
18097 #ifndef LT_DLLAZY_OR_NOW
18098 # ifdef RTLD_LAZY
18099 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18100 # else
18101 # ifdef DL_LAZY
18102 # define LT_DLLAZY_OR_NOW DL_LAZY
18103 # else
18104 # ifdef RTLD_NOW
18105 # define LT_DLLAZY_OR_NOW RTLD_NOW
18106 # else
18107 # ifdef DL_NOW
18108 # define LT_DLLAZY_OR_NOW DL_NOW
18109 # else
18110 # define LT_DLLAZY_OR_NOW 0
18111 # endif
18112 # endif
18113 # endif
18114 # endif
18115 #endif
18116
18117 /* When -fvisbility=hidden is used, assume the code has been annotated
18118 correspondingly for the symbols needed. */
18119 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18120 void fnord () __attribute__((visibility("default")));
18121 #endif
18122
18123 void fnord () { int i=42; }
18124 int main ()
18125 {
18126 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18127 int status = $lt_dlunknown;
18128
18129 if (self)
18130 {
18131 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18132 else
18133 {
18134 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18135 else puts (dlerror ());
18136 }
18137 /* dlclose (self); */
18138 }
18139 else
18140 puts (dlerror ());
18141
18142 return status;
18143 }
18144 _LT_EOF
18145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18146 (eval $ac_link) 2>&5
18147 ac_status=$?
18148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18149 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18150 (./conftest; exit; ) >&5 2>/dev/null
18151 lt_status=$?
18152 case x$lt_status in
18153 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18154 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18155 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18156 esac
18157 else :
18158 # compilation failed
18159 lt_cv_dlopen_self_static=no
18160 fi
18161 fi
18162 rm -fr conftest*
18163
18164
18165 fi
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18167 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18168 fi
18169
18170 CPPFLAGS="$save_CPPFLAGS"
18171 LDFLAGS="$save_LDFLAGS"
18172 LIBS="$save_LIBS"
18173 ;;
18174 esac
18175
18176 case $lt_cv_dlopen_self in
18177 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18178 *) enable_dlopen_self=unknown ;;
18179 esac
18180
18181 case $lt_cv_dlopen_self_static in
18182 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18183 *) enable_dlopen_self_static=unknown ;;
18184 esac
18185 fi
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203 striplib=
18204 old_striplib=
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18206 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18207 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18208 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18209 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18211 $as_echo "yes" >&6; }
18212 else
18213 # FIXME - insert some real tests, host_os isn't really good enough
18214 case $host_os in
18215 darwin*)
18216 if test -n "$STRIP" ; then
18217 striplib="$STRIP -x"
18218 old_striplib="$STRIP -S"
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18220 $as_echo "yes" >&6; }
18221 else
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18223 $as_echo "no" >&6; }
18224 fi
18225 ;;
18226 *)
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18228 $as_echo "no" >&6; }
18229 ;;
18230 esac
18231 fi
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244 # Report which library types will actually be built
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18246 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18248 $as_echo "$can_build_shared" >&6; }
18249
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18251 $as_echo_n "checking whether to build shared libraries... " >&6; }
18252 test "$can_build_shared" = "no" && enable_shared=no
18253
18254 # On AIX, shared libraries and static libraries use the same namespace, and
18255 # are all built from PIC.
18256 case $host_os in
18257 aix3*)
18258 test "$enable_shared" = yes && enable_static=no
18259 if test -n "$RANLIB"; then
18260 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18261 postinstall_cmds='$RANLIB $lib'
18262 fi
18263 ;;
18264
18265 aix[4-9]*)
18266 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18267 test "$enable_shared" = yes && enable_static=no
18268 fi
18269 ;;
18270 esac
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18272 $as_echo "$enable_shared" >&6; }
18273
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18275 $as_echo_n "checking whether to build static libraries... " >&6; }
18276 # Make sure either enable_shared or enable_static is yes.
18277 test "$enable_shared" = yes || enable_static=yes
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18279 $as_echo "$enable_static" >&6; }
18280
18281
18282
18283
18284 fi
18285 ac_ext=c
18286 ac_cpp='$CPP $CPPFLAGS'
18287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18290
18291 CC="$lt_save_CC"
18292
18293 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18294 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18295 (test "X$CXX" != "Xg++"))) ; then
18296 ac_ext=cpp
18297 ac_cpp='$CXXCPP $CPPFLAGS'
18298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18302 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18303 if test -z "$CXXCPP"; then
18304 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18305 $as_echo_n "(cached) " >&6
18306 else
18307 # Double quotes because CXXCPP needs to be expanded
18308 for CXXCPP in "$CXX -E" "/lib/cpp"
18309 do
18310 ac_preproc_ok=false
18311 for ac_cxx_preproc_warn_flag in '' yes
18312 do
18313 # Use a header file that comes with gcc, so configuring glibc
18314 # with a fresh cross-compiler works.
18315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18316 # <limits.h> exists even on freestanding compilers.
18317 # On the NeXT, cc -E runs the code through the compiler's parser,
18318 # not just through cpp. "Syntax error" is here to catch this case.
18319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18320 /* end confdefs.h. */
18321 #ifdef __STDC__
18322 # include <limits.h>
18323 #else
18324 # include <assert.h>
18325 #endif
18326 Syntax error
18327 _ACEOF
18328 if ac_fn_cxx_try_cpp "$LINENO"; then :
18329
18330 else
18331 # Broken: fails on valid input.
18332 continue
18333 fi
18334 rm -f conftest.err conftest.$ac_ext
18335
18336 # OK, works on sane cases. Now check whether nonexistent headers
18337 # can be detected and how.
18338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18339 /* end confdefs.h. */
18340 #include <ac_nonexistent.h>
18341 _ACEOF
18342 if ac_fn_cxx_try_cpp "$LINENO"; then :
18343 # Broken: success on invalid input.
18344 continue
18345 else
18346 # Passes both tests.
18347 ac_preproc_ok=:
18348 break
18349 fi
18350 rm -f conftest.err conftest.$ac_ext
18351
18352 done
18353 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18354 rm -f conftest.err conftest.$ac_ext
18355 if $ac_preproc_ok; then :
18356 break
18357 fi
18358
18359 done
18360 ac_cv_prog_CXXCPP=$CXXCPP
18361
18362 fi
18363 CXXCPP=$ac_cv_prog_CXXCPP
18364 else
18365 ac_cv_prog_CXXCPP=$CXXCPP
18366 fi
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18368 $as_echo "$CXXCPP" >&6; }
18369 ac_preproc_ok=false
18370 for ac_cxx_preproc_warn_flag in '' yes
18371 do
18372 # Use a header file that comes with gcc, so configuring glibc
18373 # with a fresh cross-compiler works.
18374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18375 # <limits.h> exists even on freestanding compilers.
18376 # On the NeXT, cc -E runs the code through the compiler's parser,
18377 # not just through cpp. "Syntax error" is here to catch this case.
18378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18379 /* end confdefs.h. */
18380 #ifdef __STDC__
18381 # include <limits.h>
18382 #else
18383 # include <assert.h>
18384 #endif
18385 Syntax error
18386 _ACEOF
18387 if ac_fn_cxx_try_cpp "$LINENO"; then :
18388
18389 else
18390 # Broken: fails on valid input.
18391 continue
18392 fi
18393 rm -f conftest.err conftest.$ac_ext
18394
18395 # OK, works on sane cases. Now check whether nonexistent headers
18396 # can be detected and how.
18397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18398 /* end confdefs.h. */
18399 #include <ac_nonexistent.h>
18400 _ACEOF
18401 if ac_fn_cxx_try_cpp "$LINENO"; then :
18402 # Broken: success on invalid input.
18403 continue
18404 else
18405 # Passes both tests.
18406 ac_preproc_ok=:
18407 break
18408 fi
18409 rm -f conftest.err conftest.$ac_ext
18410
18411 done
18412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18413 rm -f conftest.err conftest.$ac_ext
18414 if $ac_preproc_ok; then :
18415
18416 else
18417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18419 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18420 See \`config.log' for more details." "$LINENO" 5; }
18421 fi
18422
18423 ac_ext=c
18424 ac_cpp='$CPP $CPPFLAGS'
18425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18428
18429 else
18430 _lt_caught_CXX_error=yes
18431 fi
18432
18433 ac_ext=cpp
18434 ac_cpp='$CXXCPP $CPPFLAGS'
18435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18438
18439 archive_cmds_need_lc_CXX=no
18440 allow_undefined_flag_CXX=
18441 always_export_symbols_CXX=no
18442 archive_expsym_cmds_CXX=
18443 compiler_needs_object_CXX=no
18444 export_dynamic_flag_spec_CXX=
18445 hardcode_direct_CXX=no
18446 hardcode_direct_absolute_CXX=no
18447 hardcode_libdir_flag_spec_CXX=
18448 hardcode_libdir_flag_spec_ld_CXX=
18449 hardcode_libdir_separator_CXX=
18450 hardcode_minus_L_CXX=no
18451 hardcode_shlibpath_var_CXX=unsupported
18452 hardcode_automatic_CXX=no
18453 inherit_rpath_CXX=no
18454 module_cmds_CXX=
18455 module_expsym_cmds_CXX=
18456 link_all_deplibs_CXX=unknown
18457 old_archive_cmds_CXX=$old_archive_cmds
18458 reload_flag_CXX=$reload_flag
18459 reload_cmds_CXX=$reload_cmds
18460 no_undefined_flag_CXX=
18461 whole_archive_flag_spec_CXX=
18462 enable_shared_with_static_runtimes_CXX=no
18463
18464 # Source file extension for C++ test sources.
18465 ac_ext=cpp
18466
18467 # Object file extension for compiled C++ test sources.
18468 objext=o
18469 objext_CXX=$objext
18470
18471 # No sense in running all these tests if we already determined that
18472 # the CXX compiler isn't working. Some variables (like enable_shared)
18473 # are currently assumed to apply to all compilers on this platform,
18474 # and will be corrupted by setting them based on a non-working compiler.
18475 if test "$_lt_caught_CXX_error" != yes; then
18476 # Code to be used in simple compile tests
18477 lt_simple_compile_test_code="int some_variable = 0;"
18478
18479 # Code to be used in simple link tests
18480 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18481
18482 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18483
18484
18485
18486
18487
18488
18489 # If no C compiler was specified, use CC.
18490 LTCC=${LTCC-"$CC"}
18491
18492 # If no C compiler flags were specified, use CFLAGS.
18493 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18494
18495 # Allow CC to be a program name with arguments.
18496 compiler=$CC
18497
18498
18499 # save warnings/boilerplate of simple test code
18500 ac_outfile=conftest.$ac_objext
18501 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18502 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18503 _lt_compiler_boilerplate=`cat conftest.err`
18504 $RM conftest*
18505
18506 ac_outfile=conftest.$ac_objext
18507 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18508 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18509 _lt_linker_boilerplate=`cat conftest.err`
18510 $RM -r conftest*
18511
18512
18513 # Allow CC to be a program name with arguments.
18514 lt_save_CC=$CC
18515 lt_save_LD=$LD
18516 lt_save_GCC=$GCC
18517 GCC=$GXX
18518 lt_save_with_gnu_ld=$with_gnu_ld
18519 lt_save_path_LD=$lt_cv_path_LD
18520 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18521 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18522 else
18523 $as_unset lt_cv_prog_gnu_ld
18524 fi
18525 if test -n "${lt_cv_path_LDCXX+set}"; then
18526 lt_cv_path_LD=$lt_cv_path_LDCXX
18527 else
18528 $as_unset lt_cv_path_LD
18529 fi
18530 test -z "${LDCXX+set}" || LD=$LDCXX
18531 CC=${CXX-"c++"}
18532 compiler=$CC
18533 compiler_CXX=$CC
18534 for cc_temp in $compiler""; do
18535 case $cc_temp in
18536 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18537 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18538 \-*) ;;
18539 *) break;;
18540 esac
18541 done
18542 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18543
18544
18545 if test -n "$compiler"; then
18546 # We don't want -fno-exception when compiling C++ code, so set the
18547 # no_builtin_flag separately
18548 if test "$GXX" = yes; then
18549 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18550 else
18551 lt_prog_compiler_no_builtin_flag_CXX=
18552 fi
18553
18554 if test "$GXX" = yes; then
18555 # Set up default GNU C++ configuration
18556
18557
18558
18559 # Check whether --with-gnu-ld was given.
18560 if test "${with_gnu_ld+set}" = set; then :
18561 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18562 else
18563 with_gnu_ld=no
18564 fi
18565
18566 ac_prog=ld
18567 if test "$GCC" = yes; then
18568 # Check if gcc -print-prog-name=ld gives a path.
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18570 $as_echo_n "checking for ld used by $CC... " >&6; }
18571 case $host in
18572 *-*-mingw*)
18573 # gcc leaves a trailing carriage return which upsets mingw
18574 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18575 *)
18576 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18577 esac
18578 case $ac_prog in
18579 # Accept absolute paths.
18580 [\\/]* | ?:[\\/]*)
18581 re_direlt='/[^/][^/]*/\.\./'
18582 # Canonicalize the pathname of ld
18583 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18584 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18585 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18586 done
18587 test -z "$LD" && LD="$ac_prog"
18588 ;;
18589 "")
18590 # If it fails, then pretend we aren't using GCC.
18591 ac_prog=ld
18592 ;;
18593 *)
18594 # If it is relative, then search for the first ld in PATH.
18595 with_gnu_ld=unknown
18596 ;;
18597 esac
18598 elif test "$with_gnu_ld" = yes; then
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18600 $as_echo_n "checking for GNU ld... " >&6; }
18601 else
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18603 $as_echo_n "checking for non-GNU ld... " >&6; }
18604 fi
18605 if test "${lt_cv_path_LD+set}" = set; then :
18606 $as_echo_n "(cached) " >&6
18607 else
18608 if test -z "$LD"; then
18609 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18610 for ac_dir in $PATH; do
18611 IFS="$lt_save_ifs"
18612 test -z "$ac_dir" && ac_dir=.
18613 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18614 lt_cv_path_LD="$ac_dir/$ac_prog"
18615 # Check to see if the program is GNU ld. I'd rather use --version,
18616 # but apparently some variants of GNU ld only accept -v.
18617 # Break only if it was the GNU/non-GNU ld that we prefer.
18618 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18619 *GNU* | *'with BFD'*)
18620 test "$with_gnu_ld" != no && break
18621 ;;
18622 *)
18623 test "$with_gnu_ld" != yes && break
18624 ;;
18625 esac
18626 fi
18627 done
18628 IFS="$lt_save_ifs"
18629 else
18630 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18631 fi
18632 fi
18633
18634 LD="$lt_cv_path_LD"
18635 if test -n "$LD"; then
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18637 $as_echo "$LD" >&6; }
18638 else
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18640 $as_echo "no" >&6; }
18641 fi
18642 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18644 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18645 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18646 $as_echo_n "(cached) " >&6
18647 else
18648 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18649 case `$LD -v 2>&1 </dev/null` in
18650 *GNU* | *'with BFD'*)
18651 lt_cv_prog_gnu_ld=yes
18652 ;;
18653 *)
18654 lt_cv_prog_gnu_ld=no
18655 ;;
18656 esac
18657 fi
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18659 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18660 with_gnu_ld=$lt_cv_prog_gnu_ld
18661
18662
18663
18664
18665
18666
18667
18668 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18669 # archiving commands below assume that GNU ld is being used.
18670 if test "$with_gnu_ld" = yes; then
18671 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18672 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'
18673
18674 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18675 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18676
18677 # If archive_cmds runs LD, not CC, wlarc should be empty
18678 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18679 # investigate it a little bit more. (MM)
18680 wlarc='${wl}'
18681
18682 # ancient GNU ld didn't support --whole-archive et. al.
18683 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18684 $GREP 'no-whole-archive' > /dev/null; then
18685 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18686 else
18687 whole_archive_flag_spec_CXX=
18688 fi
18689 else
18690 with_gnu_ld=no
18691 wlarc=
18692
18693 # A generic and very simple default shared library creation
18694 # command for GNU C++ for the case where it uses the native
18695 # linker, instead of GNU ld. If possible, this setting should
18696 # overridden to take advantage of the native linker features on
18697 # the platform it is being used on.
18698 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18699 fi
18700
18701 # Commands to make compiler produce verbose output that lists
18702 # what "hidden" libraries, object files and flags are used when
18703 # linking a shared library.
18704 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18705
18706 else
18707 GXX=no
18708 with_gnu_ld=no
18709 wlarc=
18710 fi
18711
18712 # PORTME: fill in a description of your system's C++ link characteristics
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18714 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18715 ld_shlibs_CXX=yes
18716 case $host_os in
18717 aix3*)
18718 # FIXME: insert proper C++ library support
18719 ld_shlibs_CXX=no
18720 ;;
18721 aix[4-9]*)
18722 if test "$host_cpu" = ia64; then
18723 # On IA64, the linker does run time linking by default, so we don't
18724 # have to do anything special.
18725 aix_use_runtimelinking=no
18726 exp_sym_flag='-Bexport'
18727 no_entry_flag=""
18728 else
18729 aix_use_runtimelinking=no
18730
18731 # Test if we are trying to use run time linking or normal
18732 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18733 # need to do runtime linking.
18734 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18735 for ld_flag in $LDFLAGS; do
18736 case $ld_flag in
18737 *-brtl*)
18738 aix_use_runtimelinking=yes
18739 break
18740 ;;
18741 esac
18742 done
18743 ;;
18744 esac
18745
18746 exp_sym_flag='-bexport'
18747 no_entry_flag='-bnoentry'
18748 fi
18749
18750 # When large executables or shared objects are built, AIX ld can
18751 # have problems creating the table of contents. If linking a library
18752 # or program results in "error TOC overflow" add -mminimal-toc to
18753 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18754 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18755
18756 archive_cmds_CXX=''
18757 hardcode_direct_CXX=yes
18758 hardcode_direct_absolute_CXX=yes
18759 hardcode_libdir_separator_CXX=':'
18760 link_all_deplibs_CXX=yes
18761 file_list_spec_CXX='${wl}-f,'
18762
18763 if test "$GXX" = yes; then
18764 case $host_os in aix4.[012]|aix4.[012].*)
18765 # We only want to do this on AIX 4.2 and lower, the check
18766 # below for broken collect2 doesn't work under 4.3+
18767 collect2name=`${CC} -print-prog-name=collect2`
18768 if test -f "$collect2name" &&
18769 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18770 then
18771 # We have reworked collect2
18772 :
18773 else
18774 # We have old collect2
18775 hardcode_direct_CXX=unsupported
18776 # It fails to find uninstalled libraries when the uninstalled
18777 # path is not listed in the libpath. Setting hardcode_minus_L
18778 # to unsupported forces relinking
18779 hardcode_minus_L_CXX=yes
18780 hardcode_libdir_flag_spec_CXX='-L$libdir'
18781 hardcode_libdir_separator_CXX=
18782 fi
18783 esac
18784 shared_flag='-shared'
18785 if test "$aix_use_runtimelinking" = yes; then
18786 shared_flag="$shared_flag "'${wl}-G'
18787 fi
18788 else
18789 # not using gcc
18790 if test "$host_cpu" = ia64; then
18791 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18792 # chokes on -Wl,-G. The following line is correct:
18793 shared_flag='-G'
18794 else
18795 if test "$aix_use_runtimelinking" = yes; then
18796 shared_flag='${wl}-G'
18797 else
18798 shared_flag='${wl}-bM:SRE'
18799 fi
18800 fi
18801 fi
18802
18803 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18804 # It seems that -bexpall does not export symbols beginning with
18805 # underscore (_), so it is better to generate a list of symbols to
18806 # export.
18807 always_export_symbols_CXX=yes
18808 if test "$aix_use_runtimelinking" = yes; then
18809 # Warning - without using the other runtime loading flags (-brtl),
18810 # -berok will link without error, but may produce a broken library.
18811 allow_undefined_flag_CXX='-berok'
18812 # Determine the default libpath from the value encoded in an empty
18813 # executable.
18814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18815 /* end confdefs.h. */
18816
18817 int
18818 main ()
18819 {
18820
18821 ;
18822 return 0;
18823 }
18824 _ACEOF
18825 if ac_fn_cxx_try_link "$LINENO"; then :
18826
18827 lt_aix_libpath_sed='
18828 /Import File Strings/,/^$/ {
18829 /^0/ {
18830 s/^0 *\(.*\)$/\1/
18831 p
18832 }
18833 }'
18834 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18835 # Check for a 64-bit object if we didn't find anything.
18836 if test -z "$aix_libpath"; then
18837 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18838 fi
18839 fi
18840 rm -f core conftest.err conftest.$ac_objext \
18841 conftest$ac_exeext conftest.$ac_ext
18842 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18843
18844 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18845
18846 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"
18847 else
18848 if test "$host_cpu" = ia64; then
18849 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18850 allow_undefined_flag_CXX="-z nodefs"
18851 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"
18852 else
18853 # Determine the default libpath from the value encoded in an
18854 # empty executable.
18855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18856 /* end confdefs.h. */
18857
18858 int
18859 main ()
18860 {
18861
18862 ;
18863 return 0;
18864 }
18865 _ACEOF
18866 if ac_fn_cxx_try_link "$LINENO"; then :
18867
18868 lt_aix_libpath_sed='
18869 /Import File Strings/,/^$/ {
18870 /^0/ {
18871 s/^0 *\(.*\)$/\1/
18872 p
18873 }
18874 }'
18875 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18876 # Check for a 64-bit object if we didn't find anything.
18877 if test -z "$aix_libpath"; then
18878 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18879 fi
18880 fi
18881 rm -f core conftest.err conftest.$ac_objext \
18882 conftest$ac_exeext conftest.$ac_ext
18883 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18884
18885 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18886 # Warning - without using the other run time loading flags,
18887 # -berok will link without error, but may produce a broken library.
18888 no_undefined_flag_CXX=' ${wl}-bernotok'
18889 allow_undefined_flag_CXX=' ${wl}-berok'
18890 if test "$with_gnu_ld" = yes; then
18891 # We only use this code for GNU lds that support --whole-archive.
18892 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18893 else
18894 # Exported symbols can be pulled into shared objects from archives
18895 whole_archive_flag_spec_CXX='$convenience'
18896 fi
18897 archive_cmds_need_lc_CXX=yes
18898 # This is similar to how AIX traditionally builds its shared
18899 # libraries.
18900 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'
18901 fi
18902 fi
18903 ;;
18904
18905 beos*)
18906 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18907 allow_undefined_flag_CXX=unsupported
18908 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18909 # support --undefined. This deserves some investigation. FIXME
18910 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18911 else
18912 ld_shlibs_CXX=no
18913 fi
18914 ;;
18915
18916 chorus*)
18917 case $cc_basename in
18918 *)
18919 # FIXME: insert proper C++ library support
18920 ld_shlibs_CXX=no
18921 ;;
18922 esac
18923 ;;
18924
18925 cygwin* | mingw* | pw32* | cegcc*)
18926 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18927 # as there is no search path for DLLs.
18928 hardcode_libdir_flag_spec_CXX='-L$libdir'
18929 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18930 allow_undefined_flag_CXX=unsupported
18931 always_export_symbols_CXX=no
18932 enable_shared_with_static_runtimes_CXX=yes
18933
18934 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18935 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'
18936 # If the export-symbols file already is a .def file (1st line
18937 # is EXPORTS), use it as is; otherwise, prepend...
18938 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18939 cp $export_symbols $output_objdir/$soname.def;
18940 else
18941 echo EXPORTS > $output_objdir/$soname.def;
18942 cat $export_symbols >> $output_objdir/$soname.def;
18943 fi~
18944 $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'
18945 else
18946 ld_shlibs_CXX=no
18947 fi
18948 ;;
18949 darwin* | rhapsody*)
18950
18951
18952 archive_cmds_need_lc_CXX=no
18953 hardcode_direct_CXX=no
18954 hardcode_automatic_CXX=yes
18955 hardcode_shlibpath_var_CXX=unsupported
18956 if test "$lt_cv_ld_force_load" = "yes"; then
18957 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\"`'
18958 else
18959 whole_archive_flag_spec_CXX=''
18960 fi
18961 link_all_deplibs_CXX=yes
18962 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18963 case $cc_basename in
18964 ifort*) _lt_dar_can_shared=yes ;;
18965 *) _lt_dar_can_shared=$GCC ;;
18966 esac
18967 if test "$_lt_dar_can_shared" = "yes"; then
18968 output_verbose_link_cmd=func_echo_all
18969 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}"
18970 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18971 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}"
18972 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}"
18973 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18974 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}"
18975 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}"
18976 fi
18977
18978 else
18979 ld_shlibs_CXX=no
18980 fi
18981
18982 ;;
18983
18984 dgux*)
18985 case $cc_basename in
18986 ec++*)
18987 # FIXME: insert proper C++ library support
18988 ld_shlibs_CXX=no
18989 ;;
18990 ghcx*)
18991 # Green Hills C++ Compiler
18992 # FIXME: insert proper C++ library support
18993 ld_shlibs_CXX=no
18994 ;;
18995 *)
18996 # FIXME: insert proper C++ library support
18997 ld_shlibs_CXX=no
18998 ;;
18999 esac
19000 ;;
19001
19002 freebsd2.*)
19003 # C++ shared libraries reported to be fairly broken before
19004 # switch to ELF
19005 ld_shlibs_CXX=no
19006 ;;
19007
19008 freebsd-elf*)
19009 archive_cmds_need_lc_CXX=no
19010 ;;
19011
19012 freebsd* | dragonfly*)
19013 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19014 # conventions
19015 ld_shlibs_CXX=yes
19016 ;;
19017
19018 gnu*)
19019 ;;
19020
19021 haiku*)
19022 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19023 link_all_deplibs_CXX=yes
19024 ;;
19025
19026 hpux9*)
19027 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19028 hardcode_libdir_separator_CXX=:
19029 export_dynamic_flag_spec_CXX='${wl}-E'
19030 hardcode_direct_CXX=yes
19031 hardcode_minus_L_CXX=yes # Not in the search PATH,
19032 # but as the default
19033 # location of the library.
19034
19035 case $cc_basename in
19036 CC*)
19037 # FIXME: insert proper C++ library support
19038 ld_shlibs_CXX=no
19039 ;;
19040 aCC*)
19041 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'
19042 # Commands to make compiler produce verbose output that lists
19043 # what "hidden" libraries, object files and flags are used when
19044 # linking a shared library.
19045 #
19046 # There doesn't appear to be a way to prevent this compiler from
19047 # explicitly linking system object files so we need to strip them
19048 # from the output so that they don't get included in the library
19049 # dependencies.
19050 output_verbose_link_cmd='templist=`($CC -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"'
19051 ;;
19052 *)
19053 if test "$GXX" = yes; then
19054 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'
19055 else
19056 # FIXME: insert proper C++ library support
19057 ld_shlibs_CXX=no
19058 fi
19059 ;;
19060 esac
19061 ;;
19062
19063 hpux10*|hpux11*)
19064 if test $with_gnu_ld = no; then
19065 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19066 hardcode_libdir_separator_CXX=:
19067
19068 case $host_cpu in
19069 hppa*64*|ia64*)
19070 ;;
19071 *)
19072 export_dynamic_flag_spec_CXX='${wl}-E'
19073 ;;
19074 esac
19075 fi
19076 case $host_cpu in
19077 hppa*64*|ia64*)
19078 hardcode_direct_CXX=no
19079 hardcode_shlibpath_var_CXX=no
19080 ;;
19081 *)
19082 hardcode_direct_CXX=yes
19083 hardcode_direct_absolute_CXX=yes
19084 hardcode_minus_L_CXX=yes # Not in the search PATH,
19085 # but as the default
19086 # location of the library.
19087 ;;
19088 esac
19089
19090 case $cc_basename in
19091 CC*)
19092 # FIXME: insert proper C++ library support
19093 ld_shlibs_CXX=no
19094 ;;
19095 aCC*)
19096 case $host_cpu in
19097 hppa*64*)
19098 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19099 ;;
19100 ia64*)
19101 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19102 ;;
19103 *)
19104 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19105 ;;
19106 esac
19107 # Commands to make compiler produce verbose output that lists
19108 # what "hidden" libraries, object files and flags are used when
19109 # linking a shared library.
19110 #
19111 # There doesn't appear to be a way to prevent this compiler from
19112 # explicitly linking system object files so we need to strip them
19113 # from the output so that they don't get included in the library
19114 # dependencies.
19115 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"'
19116 ;;
19117 *)
19118 if test "$GXX" = yes; then
19119 if test $with_gnu_ld = no; then
19120 case $host_cpu in
19121 hppa*64*)
19122 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19123 ;;
19124 ia64*)
19125 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19126 ;;
19127 *)
19128 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'
19129 ;;
19130 esac
19131 fi
19132 else
19133 # FIXME: insert proper C++ library support
19134 ld_shlibs_CXX=no
19135 fi
19136 ;;
19137 esac
19138 ;;
19139
19140 interix[3-9]*)
19141 hardcode_direct_CXX=no
19142 hardcode_shlibpath_var_CXX=no
19143 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19144 export_dynamic_flag_spec_CXX='${wl}-E'
19145 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19146 # Instead, shared libraries are loaded at an image base (0x10000000 by
19147 # default) and relocated if they conflict, which is a slow very memory
19148 # consuming and fragmenting process. To avoid this, we pick a random,
19149 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19150 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19151 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'
19152 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'
19153 ;;
19154 irix5* | irix6*)
19155 case $cc_basename in
19156 CC*)
19157 # SGI C++
19158 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'
19159
19160 # Archives containing C++ object files must be created using
19161 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19162 # necessary to make sure instantiated templates are included
19163 # in the archive.
19164 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19165 ;;
19166 *)
19167 if test "$GXX" = yes; then
19168 if test "$with_gnu_ld" = no; then
19169 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'
19170 else
19171 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'
19172 fi
19173 fi
19174 link_all_deplibs_CXX=yes
19175 ;;
19176 esac
19177 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19178 hardcode_libdir_separator_CXX=:
19179 inherit_rpath_CXX=yes
19180 ;;
19181
19182 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19183 case $cc_basename in
19184 KCC*)
19185 # Kuck and Associates, Inc. (KAI) C++ Compiler
19186
19187 # KCC will only create a shared library if the output file
19188 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19189 # to its proper name (with version) after linking.
19190 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'
19191 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'
19192 # Commands to make compiler produce verbose output that lists
19193 # what "hidden" libraries, object files and flags are used when
19194 # linking a shared library.
19195 #
19196 # There doesn't appear to be a way to prevent this compiler from
19197 # explicitly linking system object files so we need to strip them
19198 # from the output so that they don't get included in the library
19199 # dependencies.
19200 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"'
19201
19202 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19203 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19204
19205 # Archives containing C++ object files must be created using
19206 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19207 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19208 ;;
19209 icpc* | ecpc* )
19210 # Intel C++
19211 with_gnu_ld=yes
19212 # version 8.0 and above of icpc choke on multiply defined symbols
19213 # if we add $predep_objects and $postdep_objects, however 7.1 and
19214 # earlier do not add the objects themselves.
19215 case `$CC -V 2>&1` in
19216 *"Version 7."*)
19217 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19218 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'
19219 ;;
19220 *) # Version 8.0 or newer
19221 tmp_idyn=
19222 case $host_cpu in
19223 ia64*) tmp_idyn=' -i_dynamic';;
19224 esac
19225 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19226 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'
19227 ;;
19228 esac
19229 archive_cmds_need_lc_CXX=no
19230 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19231 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19232 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19233 ;;
19234 pgCC* | pgcpp*)
19235 # Portland Group C++ compiler
19236 case `$CC -V` in
19237 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19238 prelink_cmds_CXX='tpldir=Template.dir~
19239 rm -rf $tpldir~
19240 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19241 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19242 old_archive_cmds_CXX='tpldir=Template.dir~
19243 rm -rf $tpldir~
19244 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19245 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19246 $RANLIB $oldlib'
19247 archive_cmds_CXX='tpldir=Template.dir~
19248 rm -rf $tpldir~
19249 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19250 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19251 archive_expsym_cmds_CXX='tpldir=Template.dir~
19252 rm -rf $tpldir~
19253 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19254 $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'
19255 ;;
19256 *) # Version 6 and above use weak symbols
19257 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19258 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'
19259 ;;
19260 esac
19261
19262 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19263 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19264 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'
19265 ;;
19266 cxx*)
19267 # Compaq C++
19268 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19269 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'
19270
19271 runpath_var=LD_RUN_PATH
19272 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19273 hardcode_libdir_separator_CXX=:
19274
19275 # Commands to make compiler produce verbose output that lists
19276 # what "hidden" libraries, object files and flags are used when
19277 # linking a shared library.
19278 #
19279 # There doesn't appear to be a way to prevent this compiler from
19280 # explicitly linking system object files so we need to strip them
19281 # from the output so that they don't get included in the library
19282 # dependencies.
19283 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'
19284 ;;
19285 xl* | mpixl* | bgxl*)
19286 # IBM XL 8.0 on PPC, with GNU ld
19287 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19288 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19289 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19290 if test "x$supports_anon_versioning" = xyes; then
19291 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19292 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19293 echo "local: *; };" >> $output_objdir/$libname.ver~
19294 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19295 fi
19296 ;;
19297 *)
19298 case `$CC -V 2>&1 | sed 5q` in
19299 *Sun\ C*)
19300 # Sun C++ 5.9
19301 no_undefined_flag_CXX=' -zdefs'
19302 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19303 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'
19304 hardcode_libdir_flag_spec_CXX='-R$libdir'
19305 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'
19306 compiler_needs_object_CXX=yes
19307
19308 # Not sure whether something based on
19309 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19310 # would be better.
19311 output_verbose_link_cmd='func_echo_all'
19312
19313 # Archives containing C++ object files must be created using
19314 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19315 # necessary to make sure instantiated templates are included
19316 # in the archive.
19317 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19318 ;;
19319 esac
19320 ;;
19321 esac
19322 ;;
19323
19324 lynxos*)
19325 # FIXME: insert proper C++ library support
19326 ld_shlibs_CXX=no
19327 ;;
19328
19329 m88k*)
19330 # FIXME: insert proper C++ library support
19331 ld_shlibs_CXX=no
19332 ;;
19333
19334 mvs*)
19335 case $cc_basename in
19336 cxx*)
19337 # FIXME: insert proper C++ library support
19338 ld_shlibs_CXX=no
19339 ;;
19340 *)
19341 # FIXME: insert proper C++ library support
19342 ld_shlibs_CXX=no
19343 ;;
19344 esac
19345 ;;
19346
19347 netbsd*)
19348 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19349 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19350 wlarc=
19351 hardcode_libdir_flag_spec_CXX='-R$libdir'
19352 hardcode_direct_CXX=yes
19353 hardcode_shlibpath_var_CXX=no
19354 fi
19355 # Workaround some broken pre-1.5 toolchains
19356 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19357 ;;
19358
19359 *nto* | *qnx*)
19360 ld_shlibs_CXX=yes
19361 ;;
19362
19363 openbsd2*)
19364 # C++ shared libraries are fairly broken
19365 ld_shlibs_CXX=no
19366 ;;
19367
19368 openbsd*)
19369 if test -f /usr/libexec/ld.so; then
19370 hardcode_direct_CXX=yes
19371 hardcode_shlibpath_var_CXX=no
19372 hardcode_direct_absolute_CXX=yes
19373 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19374 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19375 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19376 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19377 export_dynamic_flag_spec_CXX='${wl}-E'
19378 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19379 fi
19380 output_verbose_link_cmd=func_echo_all
19381 else
19382 ld_shlibs_CXX=no
19383 fi
19384 ;;
19385
19386 osf3* | osf4* | osf5*)
19387 case $cc_basename in
19388 KCC*)
19389 # Kuck and Associates, Inc. (KAI) C++ Compiler
19390
19391 # KCC will only create a shared library if the output file
19392 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19393 # to its proper name (with version) after linking.
19394 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'
19395
19396 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19397 hardcode_libdir_separator_CXX=:
19398
19399 # Archives containing C++ object files must be created using
19400 # the KAI C++ compiler.
19401 case $host in
19402 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19403 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19404 esac
19405 ;;
19406 RCC*)
19407 # Rational C++ 2.4.1
19408 # FIXME: insert proper C++ library support
19409 ld_shlibs_CXX=no
19410 ;;
19411 cxx*)
19412 case $host in
19413 osf3*)
19414 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19415 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'
19416 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19417 ;;
19418 *)
19419 allow_undefined_flag_CXX=' -expect_unresolved \*'
19420 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'
19421 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19422 echo "-hidden">> $lib.exp~
19423 $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~
19424 $RM $lib.exp'
19425 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19426 ;;
19427 esac
19428
19429 hardcode_libdir_separator_CXX=:
19430
19431 # Commands to make compiler produce verbose output that lists
19432 # what "hidden" libraries, object files and flags are used when
19433 # linking a shared library.
19434 #
19435 # There doesn't appear to be a way to prevent this compiler from
19436 # explicitly linking system object files so we need to strip them
19437 # from the output so that they don't get included in the library
19438 # dependencies.
19439 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"'
19440 ;;
19441 *)
19442 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19443 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19444 case $host in
19445 osf3*)
19446 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'
19447 ;;
19448 *)
19449 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'
19450 ;;
19451 esac
19452
19453 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19454 hardcode_libdir_separator_CXX=:
19455
19456 # Commands to make compiler produce verbose output that lists
19457 # what "hidden" libraries, object files and flags are used when
19458 # linking a shared library.
19459 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19460
19461 else
19462 # FIXME: insert proper C++ library support
19463 ld_shlibs_CXX=no
19464 fi
19465 ;;
19466 esac
19467 ;;
19468
19469 psos*)
19470 # FIXME: insert proper C++ library support
19471 ld_shlibs_CXX=no
19472 ;;
19473
19474 sunos4*)
19475 case $cc_basename in
19476 CC*)
19477 # Sun C++ 4.x
19478 # FIXME: insert proper C++ library support
19479 ld_shlibs_CXX=no
19480 ;;
19481 lcc*)
19482 # Lucid
19483 # FIXME: insert proper C++ library support
19484 ld_shlibs_CXX=no
19485 ;;
19486 *)
19487 # FIXME: insert proper C++ library support
19488 ld_shlibs_CXX=no
19489 ;;
19490 esac
19491 ;;
19492
19493 solaris*)
19494 case $cc_basename in
19495 CC*)
19496 # Sun C++ 4.2, 5.x and Centerline C++
19497 archive_cmds_need_lc_CXX=yes
19498 no_undefined_flag_CXX=' -zdefs'
19499 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19500 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19501 $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'
19502
19503 hardcode_libdir_flag_spec_CXX='-R$libdir'
19504 hardcode_shlibpath_var_CXX=no
19505 case $host_os in
19506 solaris2.[0-5] | solaris2.[0-5].*) ;;
19507 *)
19508 # The compiler driver will combine and reorder linker options,
19509 # but understands `-z linker_flag'.
19510 # Supported since Solaris 2.6 (maybe 2.5.1?)
19511 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19512 ;;
19513 esac
19514 link_all_deplibs_CXX=yes
19515
19516 output_verbose_link_cmd='func_echo_all'
19517
19518 # Archives containing C++ object files must be created using
19519 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19520 # necessary to make sure instantiated templates are included
19521 # in the archive.
19522 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19523 ;;
19524 gcx*)
19525 # Green Hills C++ Compiler
19526 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19527
19528 # The C++ compiler must be used to create the archive.
19529 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19530 ;;
19531 *)
19532 # GNU C++ compiler with Solaris linker
19533 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19534 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19535 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19536 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19537 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19538 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19539
19540 # Commands to make compiler produce verbose output that lists
19541 # what "hidden" libraries, object files and flags are used when
19542 # linking a shared library.
19543 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19544 else
19545 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19546 # platform.
19547 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19548 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19549 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19550
19551 # Commands to make compiler produce verbose output that lists
19552 # what "hidden" libraries, object files and flags are used when
19553 # linking a shared library.
19554 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19555 fi
19556
19557 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19558 case $host_os in
19559 solaris2.[0-5] | solaris2.[0-5].*) ;;
19560 *)
19561 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19562 ;;
19563 esac
19564 fi
19565 ;;
19566 esac
19567 ;;
19568
19569 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19570 no_undefined_flag_CXX='${wl}-z,text'
19571 archive_cmds_need_lc_CXX=no
19572 hardcode_shlibpath_var_CXX=no
19573 runpath_var='LD_RUN_PATH'
19574
19575 case $cc_basename in
19576 CC*)
19577 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19578 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19579 ;;
19580 *)
19581 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19582 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19583 ;;
19584 esac
19585 ;;
19586
19587 sysv5* | sco3.2v5* | sco5v6*)
19588 # Note: We can NOT use -z defs as we might desire, because we do not
19589 # link with -lc, and that would cause any symbols used from libc to
19590 # always be unresolved, which means just about no library would
19591 # ever link correctly. If we're not using GNU ld we use -z text
19592 # though, which does catch some bad symbols but isn't as heavy-handed
19593 # as -z defs.
19594 no_undefined_flag_CXX='${wl}-z,text'
19595 allow_undefined_flag_CXX='${wl}-z,nodefs'
19596 archive_cmds_need_lc_CXX=no
19597 hardcode_shlibpath_var_CXX=no
19598 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19599 hardcode_libdir_separator_CXX=':'
19600 link_all_deplibs_CXX=yes
19601 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19602 runpath_var='LD_RUN_PATH'
19603
19604 case $cc_basename in
19605 CC*)
19606 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19607 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19608 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19609 '"$old_archive_cmds_CXX"
19610 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19611 '"$reload_cmds_CXX"
19612 ;;
19613 *)
19614 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19615 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19616 ;;
19617 esac
19618 ;;
19619
19620 tandem*)
19621 case $cc_basename in
19622 NCC*)
19623 # NonStop-UX NCC 3.20
19624 # FIXME: insert proper C++ library support
19625 ld_shlibs_CXX=no
19626 ;;
19627 *)
19628 # FIXME: insert proper C++ library support
19629 ld_shlibs_CXX=no
19630 ;;
19631 esac
19632 ;;
19633
19634 vxworks*)
19635 # FIXME: insert proper C++ library support
19636 ld_shlibs_CXX=no
19637 ;;
19638
19639 *)
19640 # FIXME: insert proper C++ library support
19641 ld_shlibs_CXX=no
19642 ;;
19643 esac
19644
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19646 $as_echo "$ld_shlibs_CXX" >&6; }
19647 test "$ld_shlibs_CXX" = no && can_build_shared=no
19648
19649 GCC_CXX="$GXX"
19650 LD_CXX="$LD"
19651
19652 ## CAVEAT EMPTOR:
19653 ## There is no encapsulation within the following macros, do not change
19654 ## the running order or otherwise move them around unless you know exactly
19655 ## what you are doing...
19656 # Dependencies to place before and after the object being linked:
19657 predep_objects_CXX=
19658 postdep_objects_CXX=
19659 predeps_CXX=
19660 postdeps_CXX=
19661 compiler_lib_search_path_CXX=
19662
19663 cat > conftest.$ac_ext <<_LT_EOF
19664 class Foo
19665 {
19666 public:
19667 Foo (void) { a = 0; }
19668 private:
19669 int a;
19670 };
19671 _LT_EOF
19672
19673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19674 (eval $ac_compile) 2>&5
19675 ac_status=$?
19676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19677 test $ac_status = 0; }; then
19678 # Parse the compiler output and extract the necessary
19679 # objects, libraries and library flags.
19680
19681 # Sentinel used to keep track of whether or not we are before
19682 # the conftest object file.
19683 pre_test_object_deps_done=no
19684
19685 for p in `eval "$output_verbose_link_cmd"`; do
19686 case $p in
19687
19688 -L* | -R* | -l*)
19689 # Some compilers place space between "-{L,R}" and the path.
19690 # Remove the space.
19691 if test $p = "-L" ||
19692 test $p = "-R"; then
19693 prev=$p
19694 continue
19695 else
19696 prev=
19697 fi
19698
19699 if test "$pre_test_object_deps_done" = no; then
19700 case $p in
19701 -L* | -R*)
19702 # Internal compiler library paths should come after those
19703 # provided the user. The postdeps already come after the
19704 # user supplied libs so there is no need to process them.
19705 if test -z "$compiler_lib_search_path_CXX"; then
19706 compiler_lib_search_path_CXX="${prev}${p}"
19707 else
19708 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19709 fi
19710 ;;
19711 # The "-l" case would never come before the object being
19712 # linked, so don't bother handling this case.
19713 esac
19714 else
19715 if test -z "$postdeps_CXX"; then
19716 postdeps_CXX="${prev}${p}"
19717 else
19718 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19719 fi
19720 fi
19721 ;;
19722
19723 *.$objext)
19724 # This assumes that the test object file only shows up
19725 # once in the compiler output.
19726 if test "$p" = "conftest.$objext"; then
19727 pre_test_object_deps_done=yes
19728 continue
19729 fi
19730
19731 if test "$pre_test_object_deps_done" = no; then
19732 if test -z "$predep_objects_CXX"; then
19733 predep_objects_CXX="$p"
19734 else
19735 predep_objects_CXX="$predep_objects_CXX $p"
19736 fi
19737 else
19738 if test -z "$postdep_objects_CXX"; then
19739 postdep_objects_CXX="$p"
19740 else
19741 postdep_objects_CXX="$postdep_objects_CXX $p"
19742 fi
19743 fi
19744 ;;
19745
19746 *) ;; # Ignore the rest.
19747
19748 esac
19749 done
19750
19751 # Clean up.
19752 rm -f a.out a.exe
19753 else
19754 echo "libtool.m4: error: problem compiling CXX test program"
19755 fi
19756
19757 $RM -f confest.$objext
19758
19759 # PORTME: override above test on systems where it is broken
19760 case $host_os in
19761 interix[3-9]*)
19762 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19763 # hack all around it, let's just trust "g++" to DTRT.
19764 predep_objects_CXX=
19765 postdep_objects_CXX=
19766 postdeps_CXX=
19767 ;;
19768
19769 linux*)
19770 case `$CC -V 2>&1 | sed 5q` in
19771 *Sun\ C*)
19772 # Sun C++ 5.9
19773
19774 # The more standards-conforming stlport4 library is
19775 # incompatible with the Cstd library. Avoid specifying
19776 # it if it's in CXXFLAGS. Ignore libCrun as
19777 # -library=stlport4 depends on it.
19778 case " $CXX $CXXFLAGS " in
19779 *" -library=stlport4 "*)
19780 solaris_use_stlport4=yes
19781 ;;
19782 esac
19783
19784 if test "$solaris_use_stlport4" != yes; then
19785 postdeps_CXX='-library=Cstd -library=Crun'
19786 fi
19787 ;;
19788 esac
19789 ;;
19790
19791 solaris*)
19792 case $cc_basename in
19793 CC*)
19794 # The more standards-conforming stlport4 library is
19795 # incompatible with the Cstd library. Avoid specifying
19796 # it if it's in CXXFLAGS. Ignore libCrun as
19797 # -library=stlport4 depends on it.
19798 case " $CXX $CXXFLAGS " in
19799 *" -library=stlport4 "*)
19800 solaris_use_stlport4=yes
19801 ;;
19802 esac
19803
19804 # Adding this requires a known-good setup of shared libraries for
19805 # Sun compiler versions before 5.6, else PIC objects from an old
19806 # archive will be linked into the output, leading to subtle bugs.
19807 if test "$solaris_use_stlport4" != yes; then
19808 postdeps_CXX='-library=Cstd -library=Crun'
19809 fi
19810 ;;
19811 esac
19812 ;;
19813 esac
19814
19815
19816 case " $postdeps_CXX " in
19817 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19818 esac
19819 compiler_lib_search_dirs_CXX=
19820 if test -n "${compiler_lib_search_path_CXX}"; then
19821 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19822 fi
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854 lt_prog_compiler_wl_CXX=
19855 lt_prog_compiler_pic_CXX=
19856 lt_prog_compiler_static_CXX=
19857
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19859 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19860
19861 # C++ specific cases for pic, static, wl, etc.
19862 if test "$GXX" = yes; then
19863 lt_prog_compiler_wl_CXX='-Wl,'
19864 lt_prog_compiler_static_CXX='-static'
19865
19866 case $host_os in
19867 aix*)
19868 # All AIX code is PIC.
19869 if test "$host_cpu" = ia64; then
19870 # AIX 5 now supports IA64 processor
19871 lt_prog_compiler_static_CXX='-Bstatic'
19872 fi
19873 ;;
19874
19875 amigaos*)
19876 case $host_cpu in
19877 powerpc)
19878 # see comment about AmigaOS4 .so support
19879 lt_prog_compiler_pic_CXX='-fPIC'
19880 ;;
19881 m68k)
19882 # FIXME: we need at least 68020 code to build shared libraries, but
19883 # adding the `-m68020' flag to GCC prevents building anything better,
19884 # like `-m68040'.
19885 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19886 ;;
19887 esac
19888 ;;
19889
19890 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19891 # PIC is the default for these OSes.
19892 ;;
19893 mingw* | cygwin* | os2* | pw32* | cegcc*)
19894 # This hack is so that the source file can tell whether it is being
19895 # built for inclusion in a dll (and should export symbols for example).
19896 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19897 # (--disable-auto-import) libraries
19898 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19899 ;;
19900 darwin* | rhapsody*)
19901 # PIC is the default on this platform
19902 # Common symbols not allowed in MH_DYLIB files
19903 lt_prog_compiler_pic_CXX='-fno-common'
19904 ;;
19905 *djgpp*)
19906 # DJGPP does not support shared libraries at all
19907 lt_prog_compiler_pic_CXX=
19908 ;;
19909 haiku*)
19910 # PIC is the default for Haiku.
19911 # The "-static" flag exists, but is broken.
19912 lt_prog_compiler_static_CXX=
19913 ;;
19914 interix[3-9]*)
19915 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19916 # Instead, we relocate shared libraries at runtime.
19917 ;;
19918 sysv4*MP*)
19919 if test -d /usr/nec; then
19920 lt_prog_compiler_pic_CXX=-Kconform_pic
19921 fi
19922 ;;
19923 hpux*)
19924 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19925 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19926 # sets the default TLS model and affects inlining.
19927 case $host_cpu in
19928 hppa*64*)
19929 ;;
19930 *)
19931 lt_prog_compiler_pic_CXX='-fPIC'
19932 ;;
19933 esac
19934 ;;
19935 *qnx* | *nto*)
19936 # QNX uses GNU C++, but need to define -shared option too, otherwise
19937 # it will coredump.
19938 lt_prog_compiler_pic_CXX='-fPIC -shared'
19939 ;;
19940 *)
19941 lt_prog_compiler_pic_CXX='-fPIC'
19942 ;;
19943 esac
19944 else
19945 case $host_os in
19946 aix[4-9]*)
19947 # All AIX code is PIC.
19948 if test "$host_cpu" = ia64; then
19949 # AIX 5 now supports IA64 processor
19950 lt_prog_compiler_static_CXX='-Bstatic'
19951 else
19952 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19953 fi
19954 ;;
19955 chorus*)
19956 case $cc_basename in
19957 cxch68*)
19958 # Green Hills C++ Compiler
19959 # _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"
19960 ;;
19961 esac
19962 ;;
19963 dgux*)
19964 case $cc_basename in
19965 ec++*)
19966 lt_prog_compiler_pic_CXX='-KPIC'
19967 ;;
19968 ghcx*)
19969 # Green Hills C++ Compiler
19970 lt_prog_compiler_pic_CXX='-pic'
19971 ;;
19972 *)
19973 ;;
19974 esac
19975 ;;
19976 freebsd* | dragonfly*)
19977 # FreeBSD uses GNU C++
19978 ;;
19979 hpux9* | hpux10* | hpux11*)
19980 case $cc_basename in
19981 CC*)
19982 lt_prog_compiler_wl_CXX='-Wl,'
19983 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19984 if test "$host_cpu" != ia64; then
19985 lt_prog_compiler_pic_CXX='+Z'
19986 fi
19987 ;;
19988 aCC*)
19989 lt_prog_compiler_wl_CXX='-Wl,'
19990 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19991 case $host_cpu in
19992 hppa*64*|ia64*)
19993 # +Z the default
19994 ;;
19995 *)
19996 lt_prog_compiler_pic_CXX='+Z'
19997 ;;
19998 esac
19999 ;;
20000 *)
20001 ;;
20002 esac
20003 ;;
20004 interix*)
20005 # This is c89, which is MS Visual C++ (no shared libs)
20006 # Anyone wants to do a port?
20007 ;;
20008 irix5* | irix6* | nonstopux*)
20009 case $cc_basename in
20010 CC*)
20011 lt_prog_compiler_wl_CXX='-Wl,'
20012 lt_prog_compiler_static_CXX='-non_shared'
20013 # CC pic flag -KPIC is the default.
20014 ;;
20015 *)
20016 ;;
20017 esac
20018 ;;
20019 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20020 case $cc_basename in
20021 KCC*)
20022 # KAI C++ Compiler
20023 lt_prog_compiler_wl_CXX='--backend -Wl,'
20024 lt_prog_compiler_pic_CXX='-fPIC'
20025 ;;
20026 ecpc* )
20027 # old Intel C++ for x86_64 which still supported -KPIC.
20028 lt_prog_compiler_wl_CXX='-Wl,'
20029 lt_prog_compiler_pic_CXX='-KPIC'
20030 lt_prog_compiler_static_CXX='-static'
20031 ;;
20032 icpc* )
20033 # Intel C++, used to be incompatible with GCC.
20034 # ICC 10 doesn't accept -KPIC any more.
20035 lt_prog_compiler_wl_CXX='-Wl,'
20036 lt_prog_compiler_pic_CXX='-fPIC'
20037 lt_prog_compiler_static_CXX='-static'
20038 ;;
20039 pgCC* | pgcpp*)
20040 # Portland Group C++ compiler
20041 lt_prog_compiler_wl_CXX='-Wl,'
20042 lt_prog_compiler_pic_CXX='-fpic'
20043 lt_prog_compiler_static_CXX='-Bstatic'
20044 ;;
20045 cxx*)
20046 # Compaq C++
20047 # Make sure the PIC flag is empty. It appears that all Alpha
20048 # Linux and Compaq Tru64 Unix objects are PIC.
20049 lt_prog_compiler_pic_CXX=
20050 lt_prog_compiler_static_CXX='-non_shared'
20051 ;;
20052 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20053 # IBM XL 8.0, 9.0 on PPC and BlueGene
20054 lt_prog_compiler_wl_CXX='-Wl,'
20055 lt_prog_compiler_pic_CXX='-qpic'
20056 lt_prog_compiler_static_CXX='-qstaticlink'
20057 ;;
20058 *)
20059 case `$CC -V 2>&1 | sed 5q` in
20060 *Sun\ C*)
20061 # Sun C++ 5.9
20062 lt_prog_compiler_pic_CXX='-KPIC'
20063 lt_prog_compiler_static_CXX='-Bstatic'
20064 lt_prog_compiler_wl_CXX='-Qoption ld '
20065 ;;
20066 esac
20067 ;;
20068 esac
20069 ;;
20070 lynxos*)
20071 ;;
20072 m88k*)
20073 ;;
20074 mvs*)
20075 case $cc_basename in
20076 cxx*)
20077 lt_prog_compiler_pic_CXX='-W c,exportall'
20078 ;;
20079 *)
20080 ;;
20081 esac
20082 ;;
20083 netbsd*)
20084 ;;
20085 *qnx* | *nto*)
20086 # QNX uses GNU C++, but need to define -shared option too, otherwise
20087 # it will coredump.
20088 lt_prog_compiler_pic_CXX='-fPIC -shared'
20089 ;;
20090 osf3* | osf4* | osf5*)
20091 case $cc_basename in
20092 KCC*)
20093 lt_prog_compiler_wl_CXX='--backend -Wl,'
20094 ;;
20095 RCC*)
20096 # Rational C++ 2.4.1
20097 lt_prog_compiler_pic_CXX='-pic'
20098 ;;
20099 cxx*)
20100 # Digital/Compaq C++
20101 lt_prog_compiler_wl_CXX='-Wl,'
20102 # Make sure the PIC flag is empty. It appears that all Alpha
20103 # Linux and Compaq Tru64 Unix objects are PIC.
20104 lt_prog_compiler_pic_CXX=
20105 lt_prog_compiler_static_CXX='-non_shared'
20106 ;;
20107 *)
20108 ;;
20109 esac
20110 ;;
20111 psos*)
20112 ;;
20113 solaris*)
20114 case $cc_basename in
20115 CC*)
20116 # Sun C++ 4.2, 5.x and Centerline C++
20117 lt_prog_compiler_pic_CXX='-KPIC'
20118 lt_prog_compiler_static_CXX='-Bstatic'
20119 lt_prog_compiler_wl_CXX='-Qoption ld '
20120 ;;
20121 gcx*)
20122 # Green Hills C++ Compiler
20123 lt_prog_compiler_pic_CXX='-PIC'
20124 ;;
20125 *)
20126 ;;
20127 esac
20128 ;;
20129 sunos4*)
20130 case $cc_basename in
20131 CC*)
20132 # Sun C++ 4.x
20133 lt_prog_compiler_pic_CXX='-pic'
20134 lt_prog_compiler_static_CXX='-Bstatic'
20135 ;;
20136 lcc*)
20137 # Lucid
20138 lt_prog_compiler_pic_CXX='-pic'
20139 ;;
20140 *)
20141 ;;
20142 esac
20143 ;;
20144 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20145 case $cc_basename in
20146 CC*)
20147 lt_prog_compiler_wl_CXX='-Wl,'
20148 lt_prog_compiler_pic_CXX='-KPIC'
20149 lt_prog_compiler_static_CXX='-Bstatic'
20150 ;;
20151 esac
20152 ;;
20153 tandem*)
20154 case $cc_basename in
20155 NCC*)
20156 # NonStop-UX NCC 3.20
20157 lt_prog_compiler_pic_CXX='-KPIC'
20158 ;;
20159 *)
20160 ;;
20161 esac
20162 ;;
20163 vxworks*)
20164 ;;
20165 *)
20166 lt_prog_compiler_can_build_shared_CXX=no
20167 ;;
20168 esac
20169 fi
20170
20171 case $host_os in
20172 # For platforms which do not support PIC, -DPIC is meaningless:
20173 *djgpp*)
20174 lt_prog_compiler_pic_CXX=
20175 ;;
20176 *)
20177 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20178 ;;
20179 esac
20180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20181 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20182
20183
20184
20185 #
20186 # Check to make sure the PIC flag actually works.
20187 #
20188 if test -n "$lt_prog_compiler_pic_CXX"; then
20189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20190 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20191 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20192 $as_echo_n "(cached) " >&6
20193 else
20194 lt_cv_prog_compiler_pic_works_CXX=no
20195 ac_outfile=conftest.$ac_objext
20196 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20197 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20198 # Insert the option either (1) after the last *FLAGS variable, or
20199 # (2) before a word containing "conftest.", or (3) at the end.
20200 # Note that $ac_compile itself does not contain backslashes and begins
20201 # with a dollar sign (not a hyphen), so the echo should work correctly.
20202 # The option is referenced via a variable to avoid confusing sed.
20203 lt_compile=`echo "$ac_compile" | $SED \
20204 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20205 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20206 -e 's:$: $lt_compiler_flag:'`
20207 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20208 (eval "$lt_compile" 2>conftest.err)
20209 ac_status=$?
20210 cat conftest.err >&5
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 if (exit $ac_status) && test -s "$ac_outfile"; then
20213 # The compiler can only warn and ignore the option if not recognized
20214 # So say no if there are warnings other than the usual output.
20215 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20216 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20217 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20218 lt_cv_prog_compiler_pic_works_CXX=yes
20219 fi
20220 fi
20221 $RM conftest*
20222
20223 fi
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20225 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20226
20227 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20228 case $lt_prog_compiler_pic_CXX in
20229 "" | " "*) ;;
20230 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20231 esac
20232 else
20233 lt_prog_compiler_pic_CXX=
20234 lt_prog_compiler_can_build_shared_CXX=no
20235 fi
20236
20237 fi
20238
20239
20240
20241 #
20242 # Check to make sure the static flag actually works.
20243 #
20244 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20246 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20247 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20248 $as_echo_n "(cached) " >&6
20249 else
20250 lt_cv_prog_compiler_static_works_CXX=no
20251 save_LDFLAGS="$LDFLAGS"
20252 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20253 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20254 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20255 # The linker can only warn and ignore the option if not recognized
20256 # So say no if there are warnings
20257 if test -s conftest.err; then
20258 # Append any errors to the config.log.
20259 cat conftest.err 1>&5
20260 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20261 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20262 if diff conftest.exp conftest.er2 >/dev/null; then
20263 lt_cv_prog_compiler_static_works_CXX=yes
20264 fi
20265 else
20266 lt_cv_prog_compiler_static_works_CXX=yes
20267 fi
20268 fi
20269 $RM -r conftest*
20270 LDFLAGS="$save_LDFLAGS"
20271
20272 fi
20273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20274 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20275
20276 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20277 :
20278 else
20279 lt_prog_compiler_static_CXX=
20280 fi
20281
20282
20283
20284
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20286 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20287 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20288 $as_echo_n "(cached) " >&6
20289 else
20290 lt_cv_prog_compiler_c_o_CXX=no
20291 $RM -r conftest 2>/dev/null
20292 mkdir conftest
20293 cd conftest
20294 mkdir out
20295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20296
20297 lt_compiler_flag="-o out/conftest2.$ac_objext"
20298 # Insert the option either (1) after the last *FLAGS variable, or
20299 # (2) before a word containing "conftest.", or (3) at the end.
20300 # Note that $ac_compile itself does not contain backslashes and begins
20301 # with a dollar sign (not a hyphen), so the echo should work correctly.
20302 lt_compile=`echo "$ac_compile" | $SED \
20303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20305 -e 's:$: $lt_compiler_flag:'`
20306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20307 (eval "$lt_compile" 2>out/conftest.err)
20308 ac_status=$?
20309 cat out/conftest.err >&5
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20312 then
20313 # The compiler can only warn and ignore the option if not recognized
20314 # So say no if there are warnings
20315 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20316 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20317 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20318 lt_cv_prog_compiler_c_o_CXX=yes
20319 fi
20320 fi
20321 chmod u+w . 2>&5
20322 $RM conftest*
20323 # SGI C++ compiler will create directory out/ii_files/ for
20324 # template instantiation
20325 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20326 $RM out/* && rmdir out
20327 cd ..
20328 $RM -r conftest
20329 $RM conftest*
20330
20331 fi
20332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20333 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20334
20335
20336
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20338 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20339 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20340 $as_echo_n "(cached) " >&6
20341 else
20342 lt_cv_prog_compiler_c_o_CXX=no
20343 $RM -r conftest 2>/dev/null
20344 mkdir conftest
20345 cd conftest
20346 mkdir out
20347 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20348
20349 lt_compiler_flag="-o out/conftest2.$ac_objext"
20350 # Insert the option either (1) after the last *FLAGS variable, or
20351 # (2) before a word containing "conftest.", or (3) at the end.
20352 # Note that $ac_compile itself does not contain backslashes and begins
20353 # with a dollar sign (not a hyphen), so the echo should work correctly.
20354 lt_compile=`echo "$ac_compile" | $SED \
20355 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20357 -e 's:$: $lt_compiler_flag:'`
20358 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20359 (eval "$lt_compile" 2>out/conftest.err)
20360 ac_status=$?
20361 cat out/conftest.err >&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20364 then
20365 # The compiler can only warn and ignore the option if not recognized
20366 # So say no if there are warnings
20367 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20368 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20369 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20370 lt_cv_prog_compiler_c_o_CXX=yes
20371 fi
20372 fi
20373 chmod u+w . 2>&5
20374 $RM conftest*
20375 # SGI C++ compiler will create directory out/ii_files/ for
20376 # template instantiation
20377 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20378 $RM out/* && rmdir out
20379 cd ..
20380 $RM -r conftest
20381 $RM conftest*
20382
20383 fi
20384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20385 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20386
20387
20388
20389
20390 hard_links="nottested"
20391 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20392 # do not overwrite the value of need_locks provided by the user
20393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20394 $as_echo_n "checking if we can lock with hard links... " >&6; }
20395 hard_links=yes
20396 $RM conftest*
20397 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20398 touch conftest.a
20399 ln conftest.a conftest.b 2>&5 || hard_links=no
20400 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20402 $as_echo "$hard_links" >&6; }
20403 if test "$hard_links" = no; then
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20405 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20406 need_locks=warn
20407 fi
20408 else
20409 need_locks=no
20410 fi
20411
20412
20413
20414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20415 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20416
20417 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20418 case $host_os in
20419 aix[4-9]*)
20420 # If we're using GNU nm, then we don't want the "-C" option.
20421 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20422 # Also, AIX nm treats weak defined symbols like other global defined
20423 # symbols, whereas GNU nm marks them as "W".
20424 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20425 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'
20426 else
20427 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'
20428 fi
20429 ;;
20430 pw32*)
20431 export_symbols_cmds_CXX="$ltdll_cmds"
20432 ;;
20433 cygwin* | mingw* | cegcc*)
20434 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'
20435 ;;
20436 *)
20437 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20438 ;;
20439 esac
20440 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20441
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20443 $as_echo "$ld_shlibs_CXX" >&6; }
20444 test "$ld_shlibs_CXX" = no && can_build_shared=no
20445
20446 with_gnu_ld_CXX=$with_gnu_ld
20447
20448
20449
20450
20451
20452
20453 #
20454 # Do we need to explicitly link libc?
20455 #
20456 case "x$archive_cmds_need_lc_CXX" in
20457 x|xyes)
20458 # Assume -lc should be added
20459 archive_cmds_need_lc_CXX=yes
20460
20461 if test "$enable_shared" = yes && test "$GCC" = yes; then
20462 case $archive_cmds_CXX in
20463 *'~'*)
20464 # FIXME: we may have to deal with multi-command sequences.
20465 ;;
20466 '$CC '*)
20467 # Test whether the compiler implicitly links with -lc since on some
20468 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20469 # to ld, don't add -lc before -lgcc.
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20471 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20472 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20473 $as_echo_n "(cached) " >&6
20474 else
20475 $RM conftest*
20476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20477
20478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20479 (eval $ac_compile) 2>&5
20480 ac_status=$?
20481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20482 test $ac_status = 0; } 2>conftest.err; then
20483 soname=conftest
20484 lib=conftest
20485 libobjs=conftest.$ac_objext
20486 deplibs=
20487 wl=$lt_prog_compiler_wl_CXX
20488 pic_flag=$lt_prog_compiler_pic_CXX
20489 compiler_flags=-v
20490 linker_flags=-v
20491 verstring=
20492 output_objdir=.
20493 libname=conftest
20494 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20495 allow_undefined_flag_CXX=
20496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20497 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20498 ac_status=$?
20499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20500 test $ac_status = 0; }
20501 then
20502 lt_cv_archive_cmds_need_lc_CXX=no
20503 else
20504 lt_cv_archive_cmds_need_lc_CXX=yes
20505 fi
20506 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20507 else
20508 cat conftest.err 1>&5
20509 fi
20510 $RM conftest*
20511
20512 fi
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20514 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20515 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20516 ;;
20517 esac
20518 fi
20519 ;;
20520 esac
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20586 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20587
20588 library_names_spec=
20589 libname_spec='lib$name'
20590 soname_spec=
20591 shrext_cmds=".so"
20592 postinstall_cmds=
20593 postuninstall_cmds=
20594 finish_cmds=
20595 finish_eval=
20596 shlibpath_var=
20597 shlibpath_overrides_runpath=unknown
20598 version_type=none
20599 dynamic_linker="$host_os ld.so"
20600 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20601 need_lib_prefix=unknown
20602 hardcode_into_libs=no
20603
20604 # when you set need_version to no, make sure it does not cause -set_version
20605 # flags to be left without arguments
20606 need_version=unknown
20607
20608 case $host_os in
20609 aix3*)
20610 version_type=linux
20611 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20612 shlibpath_var=LIBPATH
20613
20614 # AIX 3 has no versioning support, so we append a major version to the name.
20615 soname_spec='${libname}${release}${shared_ext}$major'
20616 ;;
20617
20618 aix[4-9]*)
20619 version_type=linux
20620 need_lib_prefix=no
20621 need_version=no
20622 hardcode_into_libs=yes
20623 if test "$host_cpu" = ia64; then
20624 # AIX 5 supports IA64
20625 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20626 shlibpath_var=LD_LIBRARY_PATH
20627 else
20628 # With GCC up to 2.95.x, collect2 would create an import file
20629 # for dependence libraries. The import file would start with
20630 # the line `#! .'. This would cause the generated library to
20631 # depend on `.', always an invalid library. This was fixed in
20632 # development snapshots of GCC prior to 3.0.
20633 case $host_os in
20634 aix4 | aix4.[01] | aix4.[01].*)
20635 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20636 echo ' yes '
20637 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20638 :
20639 else
20640 can_build_shared=no
20641 fi
20642 ;;
20643 esac
20644 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20645 # soname into executable. Probably we can add versioning support to
20646 # collect2, so additional links can be useful in future.
20647 if test "$aix_use_runtimelinking" = yes; then
20648 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20649 # instead of lib<name>.a to let people know that these are not
20650 # typical AIX shared libraries.
20651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20652 else
20653 # We preserve .a as extension for shared libraries through AIX4.2
20654 # and later when we are not doing run time linking.
20655 library_names_spec='${libname}${release}.a $libname.a'
20656 soname_spec='${libname}${release}${shared_ext}$major'
20657 fi
20658 shlibpath_var=LIBPATH
20659 fi
20660 ;;
20661
20662 amigaos*)
20663 case $host_cpu in
20664 powerpc)
20665 # Since July 2007 AmigaOS4 officially supports .so libraries.
20666 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20668 ;;
20669 m68k)
20670 library_names_spec='$libname.ixlibrary $libname.a'
20671 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20672 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'
20673 ;;
20674 esac
20675 ;;
20676
20677 beos*)
20678 library_names_spec='${libname}${shared_ext}'
20679 dynamic_linker="$host_os ld.so"
20680 shlibpath_var=LIBRARY_PATH
20681 ;;
20682
20683 bsdi[45]*)
20684 version_type=linux
20685 need_version=no
20686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20687 soname_spec='${libname}${release}${shared_ext}$major'
20688 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20689 shlibpath_var=LD_LIBRARY_PATH
20690 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20691 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20692 # the default ld.so.conf also contains /usr/contrib/lib and
20693 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20694 # libtool to hard-code these into programs
20695 ;;
20696
20697 cygwin* | mingw* | pw32* | cegcc*)
20698 version_type=windows
20699 shrext_cmds=".dll"
20700 need_version=no
20701 need_lib_prefix=no
20702
20703 case $GCC,$host_os in
20704 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20705 library_names_spec='$libname.dll.a'
20706 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20707 postinstall_cmds='base_file=`basename \${file}`~
20708 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20709 dldir=$destdir/`dirname \$dlpath`~
20710 test -d \$dldir || mkdir -p \$dldir~
20711 $install_prog $dir/$dlname \$dldir/$dlname~
20712 chmod a+x \$dldir/$dlname~
20713 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20714 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20715 fi'
20716 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20717 dlpath=$dir/\$dldll~
20718 $RM \$dlpath'
20719 shlibpath_overrides_runpath=yes
20720
20721 case $host_os in
20722 cygwin*)
20723 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20724 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20725
20726 ;;
20727 mingw* | cegcc*)
20728 # MinGW DLLs use traditional 'lib' prefix
20729 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20730 ;;
20731 pw32*)
20732 # pw32 DLLs use 'pw' prefix rather than 'lib'
20733 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20734 ;;
20735 esac
20736 ;;
20737
20738 *)
20739 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20740 ;;
20741 esac
20742 dynamic_linker='Win32 ld.exe'
20743 # FIXME: first we should search . and the directory the executable is in
20744 shlibpath_var=PATH
20745 ;;
20746
20747 darwin* | rhapsody*)
20748 dynamic_linker="$host_os dyld"
20749 version_type=darwin
20750 need_lib_prefix=no
20751 need_version=no
20752 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20753 soname_spec='${libname}${release}${major}$shared_ext'
20754 shlibpath_overrides_runpath=yes
20755 shlibpath_var=DYLD_LIBRARY_PATH
20756 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20757
20758 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20759 ;;
20760
20761 dgux*)
20762 version_type=linux
20763 need_lib_prefix=no
20764 need_version=no
20765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20766 soname_spec='${libname}${release}${shared_ext}$major'
20767 shlibpath_var=LD_LIBRARY_PATH
20768 ;;
20769
20770 freebsd* | dragonfly*)
20771 # DragonFly does not have aout. When/if they implement a new
20772 # versioning mechanism, adjust this.
20773 if test -x /usr/bin/objformat; then
20774 objformat=`/usr/bin/objformat`
20775 else
20776 case $host_os in
20777 freebsd[23].*) objformat=aout ;;
20778 *) objformat=elf ;;
20779 esac
20780 fi
20781 version_type=freebsd-$objformat
20782 case $version_type in
20783 freebsd-elf*)
20784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20785 need_version=no
20786 need_lib_prefix=no
20787 ;;
20788 freebsd-*)
20789 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20790 need_version=yes
20791 ;;
20792 esac
20793 shlibpath_var=LD_LIBRARY_PATH
20794 case $host_os in
20795 freebsd2.*)
20796 shlibpath_overrides_runpath=yes
20797 ;;
20798 freebsd3.[01]* | freebsdelf3.[01]*)
20799 shlibpath_overrides_runpath=yes
20800 hardcode_into_libs=yes
20801 ;;
20802 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20803 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20804 shlibpath_overrides_runpath=no
20805 hardcode_into_libs=yes
20806 ;;
20807 *) # from 4.6 on, and DragonFly
20808 shlibpath_overrides_runpath=yes
20809 hardcode_into_libs=yes
20810 ;;
20811 esac
20812 ;;
20813
20814 gnu*)
20815 version_type=linux
20816 need_lib_prefix=no
20817 need_version=no
20818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20819 soname_spec='${libname}${release}${shared_ext}$major'
20820 shlibpath_var=LD_LIBRARY_PATH
20821 hardcode_into_libs=yes
20822 ;;
20823
20824 haiku*)
20825 version_type=linux
20826 need_lib_prefix=no
20827 need_version=no
20828 dynamic_linker="$host_os runtime_loader"
20829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20830 soname_spec='${libname}${release}${shared_ext}$major'
20831 shlibpath_var=LIBRARY_PATH
20832 shlibpath_overrides_runpath=yes
20833 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20834 hardcode_into_libs=yes
20835 ;;
20836
20837 hpux9* | hpux10* | hpux11*)
20838 # Give a soname corresponding to the major version so that dld.sl refuses to
20839 # link against other versions.
20840 version_type=sunos
20841 need_lib_prefix=no
20842 need_version=no
20843 case $host_cpu in
20844 ia64*)
20845 shrext_cmds='.so'
20846 hardcode_into_libs=yes
20847 dynamic_linker="$host_os dld.so"
20848 shlibpath_var=LD_LIBRARY_PATH
20849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20851 soname_spec='${libname}${release}${shared_ext}$major'
20852 if test "X$HPUX_IA64_MODE" = X32; then
20853 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20854 else
20855 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20856 fi
20857 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20858 ;;
20859 hppa*64*)
20860 shrext_cmds='.sl'
20861 hardcode_into_libs=yes
20862 dynamic_linker="$host_os dld.sl"
20863 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20864 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20866 soname_spec='${libname}${release}${shared_ext}$major'
20867 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20868 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20869 ;;
20870 *)
20871 shrext_cmds='.sl'
20872 dynamic_linker="$host_os dld.sl"
20873 shlibpath_var=SHLIB_PATH
20874 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20876 soname_spec='${libname}${release}${shared_ext}$major'
20877 ;;
20878 esac
20879 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20880 postinstall_cmds='chmod 555 $lib'
20881 # or fails outright, so override atomically:
20882 install_override_mode=555
20883 ;;
20884
20885 interix[3-9]*)
20886 version_type=linux
20887 need_lib_prefix=no
20888 need_version=no
20889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20890 soname_spec='${libname}${release}${shared_ext}$major'
20891 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20892 shlibpath_var=LD_LIBRARY_PATH
20893 shlibpath_overrides_runpath=no
20894 hardcode_into_libs=yes
20895 ;;
20896
20897 irix5* | irix6* | nonstopux*)
20898 case $host_os in
20899 nonstopux*) version_type=nonstopux ;;
20900 *)
20901 if test "$lt_cv_prog_gnu_ld" = yes; then
20902 version_type=linux
20903 else
20904 version_type=irix
20905 fi ;;
20906 esac
20907 need_lib_prefix=no
20908 need_version=no
20909 soname_spec='${libname}${release}${shared_ext}$major'
20910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20911 case $host_os in
20912 irix5* | nonstopux*)
20913 libsuff= shlibsuff=
20914 ;;
20915 *)
20916 case $LD in # libtool.m4 will add one of these switches to LD
20917 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20918 libsuff= shlibsuff= libmagic=32-bit;;
20919 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20920 libsuff=32 shlibsuff=N32 libmagic=N32;;
20921 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20922 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20923 *) libsuff= shlibsuff= libmagic=never-match;;
20924 esac
20925 ;;
20926 esac
20927 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20928 shlibpath_overrides_runpath=no
20929 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20930 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20931 hardcode_into_libs=yes
20932 ;;
20933
20934 # No shared lib support for Linux oldld, aout, or coff.
20935 linux*oldld* | linux*aout* | linux*coff*)
20936 dynamic_linker=no
20937 ;;
20938
20939 # This must be Linux ELF.
20940 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20941 version_type=linux
20942 need_lib_prefix=no
20943 need_version=no
20944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20945 soname_spec='${libname}${release}${shared_ext}$major'
20946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20947 shlibpath_var=LD_LIBRARY_PATH
20948 shlibpath_overrides_runpath=no
20949
20950 # Some binutils ld are patched to set DT_RUNPATH
20951 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20952 $as_echo_n "(cached) " >&6
20953 else
20954 lt_cv_shlibpath_overrides_runpath=no
20955 save_LDFLAGS=$LDFLAGS
20956 save_libdir=$libdir
20957 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20958 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20960 /* end confdefs.h. */
20961
20962 int
20963 main ()
20964 {
20965
20966 ;
20967 return 0;
20968 }
20969 _ACEOF
20970 if ac_fn_cxx_try_link "$LINENO"; then :
20971 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20972 lt_cv_shlibpath_overrides_runpath=yes
20973 fi
20974 fi
20975 rm -f core conftest.err conftest.$ac_objext \
20976 conftest$ac_exeext conftest.$ac_ext
20977 LDFLAGS=$save_LDFLAGS
20978 libdir=$save_libdir
20979
20980 fi
20981
20982 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20983
20984 # This implies no fast_install, which is unacceptable.
20985 # Some rework will be needed to allow for fast_install
20986 # before this can be enabled.
20987 hardcode_into_libs=yes
20988
20989 # Append ld.so.conf contents to the search path
20990 if test -f /etc/ld.so.conf; then
20991 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' ' '`
20992 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20993 fi
20994
20995 # We used to test for /lib/ld.so.1 and disable shared libraries on
20996 # powerpc, because MkLinux only supported shared libraries with the
20997 # GNU dynamic linker. Since this was broken with cross compilers,
20998 # most powerpc-linux boxes support dynamic linking these days and
20999 # people can always --disable-shared, the test was removed, and we
21000 # assume the GNU/Linux dynamic linker is in use.
21001 dynamic_linker='GNU/Linux ld.so'
21002 ;;
21003
21004 netbsd*)
21005 version_type=sunos
21006 need_lib_prefix=no
21007 need_version=no
21008 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21010 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21011 dynamic_linker='NetBSD (a.out) ld.so'
21012 else
21013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21014 soname_spec='${libname}${release}${shared_ext}$major'
21015 dynamic_linker='NetBSD ld.elf_so'
21016 fi
21017 shlibpath_var=LD_LIBRARY_PATH
21018 shlibpath_overrides_runpath=yes
21019 hardcode_into_libs=yes
21020 ;;
21021
21022 newsos6)
21023 version_type=linux
21024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21025 shlibpath_var=LD_LIBRARY_PATH
21026 shlibpath_overrides_runpath=yes
21027 ;;
21028
21029 *nto* | *qnx*)
21030 version_type=qnx
21031 need_lib_prefix=no
21032 need_version=no
21033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21034 soname_spec='${libname}${release}${shared_ext}$major'
21035 shlibpath_var=LD_LIBRARY_PATH
21036 shlibpath_overrides_runpath=no
21037 hardcode_into_libs=yes
21038 dynamic_linker='ldqnx.so'
21039 ;;
21040
21041 openbsd*)
21042 version_type=sunos
21043 sys_lib_dlsearch_path_spec="/usr/lib"
21044 need_lib_prefix=no
21045 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21046 case $host_os in
21047 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21048 *) need_version=no ;;
21049 esac
21050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21052 shlibpath_var=LD_LIBRARY_PATH
21053 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21054 case $host_os in
21055 openbsd2.[89] | openbsd2.[89].*)
21056 shlibpath_overrides_runpath=no
21057 ;;
21058 *)
21059 shlibpath_overrides_runpath=yes
21060 ;;
21061 esac
21062 else
21063 shlibpath_overrides_runpath=yes
21064 fi
21065 ;;
21066
21067 os2*)
21068 libname_spec='$name'
21069 shrext_cmds=".dll"
21070 need_lib_prefix=no
21071 library_names_spec='$libname${shared_ext} $libname.a'
21072 dynamic_linker='OS/2 ld.exe'
21073 shlibpath_var=LIBPATH
21074 ;;
21075
21076 osf3* | osf4* | osf5*)
21077 version_type=osf
21078 need_lib_prefix=no
21079 need_version=no
21080 soname_spec='${libname}${release}${shared_ext}$major'
21081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21082 shlibpath_var=LD_LIBRARY_PATH
21083 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21084 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21085 ;;
21086
21087 rdos*)
21088 dynamic_linker=no
21089 ;;
21090
21091 solaris*)
21092 version_type=linux
21093 need_lib_prefix=no
21094 need_version=no
21095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21096 soname_spec='${libname}${release}${shared_ext}$major'
21097 shlibpath_var=LD_LIBRARY_PATH
21098 shlibpath_overrides_runpath=yes
21099 hardcode_into_libs=yes
21100 # ldd complains unless libraries are executable
21101 postinstall_cmds='chmod +x $lib'
21102 ;;
21103
21104 sunos4*)
21105 version_type=sunos
21106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21107 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21108 shlibpath_var=LD_LIBRARY_PATH
21109 shlibpath_overrides_runpath=yes
21110 if test "$with_gnu_ld" = yes; then
21111 need_lib_prefix=no
21112 fi
21113 need_version=yes
21114 ;;
21115
21116 sysv4 | sysv4.3*)
21117 version_type=linux
21118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21119 soname_spec='${libname}${release}${shared_ext}$major'
21120 shlibpath_var=LD_LIBRARY_PATH
21121 case $host_vendor in
21122 sni)
21123 shlibpath_overrides_runpath=no
21124 need_lib_prefix=no
21125 runpath_var=LD_RUN_PATH
21126 ;;
21127 siemens)
21128 need_lib_prefix=no
21129 ;;
21130 motorola)
21131 need_lib_prefix=no
21132 need_version=no
21133 shlibpath_overrides_runpath=no
21134 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21135 ;;
21136 esac
21137 ;;
21138
21139 sysv4*MP*)
21140 if test -d /usr/nec ;then
21141 version_type=linux
21142 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21143 soname_spec='$libname${shared_ext}.$major'
21144 shlibpath_var=LD_LIBRARY_PATH
21145 fi
21146 ;;
21147
21148 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21149 version_type=freebsd-elf
21150 need_lib_prefix=no
21151 need_version=no
21152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21153 soname_spec='${libname}${release}${shared_ext}$major'
21154 shlibpath_var=LD_LIBRARY_PATH
21155 shlibpath_overrides_runpath=yes
21156 hardcode_into_libs=yes
21157 if test "$with_gnu_ld" = yes; then
21158 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21159 else
21160 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21161 case $host_os in
21162 sco3.2v5*)
21163 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21164 ;;
21165 esac
21166 fi
21167 sys_lib_dlsearch_path_spec='/usr/lib'
21168 ;;
21169
21170 tpf*)
21171 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21172 version_type=linux
21173 need_lib_prefix=no
21174 need_version=no
21175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21176 shlibpath_var=LD_LIBRARY_PATH
21177 shlibpath_overrides_runpath=no
21178 hardcode_into_libs=yes
21179 ;;
21180
21181 uts4*)
21182 version_type=linux
21183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21184 soname_spec='${libname}${release}${shared_ext}$major'
21185 shlibpath_var=LD_LIBRARY_PATH
21186 ;;
21187
21188 *)
21189 dynamic_linker=no
21190 ;;
21191 esac
21192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21193 $as_echo "$dynamic_linker" >&6; }
21194 test "$dynamic_linker" = no && can_build_shared=no
21195
21196 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21197 if test "$GCC" = yes; then
21198 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21199 fi
21200
21201 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21202 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21203 fi
21204 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21205 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21206 fi
21207
21208
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21246 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21247 hardcode_action_CXX=
21248 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21249 test -n "$runpath_var_CXX" ||
21250 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21251
21252 # We can hardcode non-existent directories.
21253 if test "$hardcode_direct_CXX" != no &&
21254 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21255 # have to relink, otherwise we might link with an installed library
21256 # when we should be linking with a yet-to-be-installed one
21257 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21258 test "$hardcode_minus_L_CXX" != no; then
21259 # Linking always hardcodes the temporary library directory.
21260 hardcode_action_CXX=relink
21261 else
21262 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21263 hardcode_action_CXX=immediate
21264 fi
21265 else
21266 # We cannot hardcode anything, or else we can only hardcode existing
21267 # directories.
21268 hardcode_action_CXX=unsupported
21269 fi
21270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21271 $as_echo "$hardcode_action_CXX" >&6; }
21272
21273 if test "$hardcode_action_CXX" = relink ||
21274 test "$inherit_rpath_CXX" = yes; then
21275 # Fast installation is not supported
21276 enable_fast_install=no
21277 elif test "$shlibpath_overrides_runpath" = yes ||
21278 test "$enable_shared" = no; then
21279 # Fast installation is not necessary
21280 enable_fast_install=needless
21281 fi
21282
21283
21284
21285
21286
21287
21288
21289 fi # test -n "$compiler"
21290
21291 CC=$lt_save_CC
21292 LDCXX=$LD
21293 LD=$lt_save_LD
21294 GCC=$lt_save_GCC
21295 with_gnu_ld=$lt_save_with_gnu_ld
21296 lt_cv_path_LDCXX=$lt_cv_path_LD
21297 lt_cv_path_LD=$lt_save_path_LD
21298 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21299 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21300 fi # test "$_lt_caught_CXX_error" != yes
21301
21302 ac_ext=c
21303 ac_cpp='$CPP $CPPFLAGS'
21304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323 # Only expand once:
21324
21325
21326
21327
21328
21329 # Identify the assembler which will work hand-in-glove with the newly
21330 # built GCC, so that we can examine its features. This is the assembler
21331 # which will be driven by the driver program.
21332 #
21333 # If build != host, and we aren't building gas in-tree, we identify a
21334 # build->target assembler and hope that it will have the same features
21335 # as the host->target assembler we'll be using.
21336 gcc_cv_gas_major_version=
21337 gcc_cv_gas_minor_version=
21338 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21339
21340 if test "${gcc_cv_as+set}" = set; then :
21341
21342 else
21343
21344 if test -x "$DEFAULT_ASSEMBLER"; then
21345 gcc_cv_as="$DEFAULT_ASSEMBLER"
21346 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21347 && test -f ../gas/Makefile \
21348 && test x$build = x$host; then
21349 gcc_cv_as=../gas/as-new$build_exeext
21350 elif test -x as$build_exeext; then
21351 # Build using assembler in the current directory.
21352 gcc_cv_as=./as$build_exeext
21353 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21354 gcc_cv_as="$AS_FOR_TARGET"
21355 else
21356 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21357 set dummy $AS_FOR_TARGET; ac_word=$2
21358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21359 $as_echo_n "checking for $ac_word... " >&6; }
21360 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21361 $as_echo_n "(cached) " >&6
21362 else
21363 case $gcc_cv_as in
21364 [\\/]* | ?:[\\/]*)
21365 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21366 ;;
21367 *)
21368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21369 for as_dir in $PATH
21370 do
21371 IFS=$as_save_IFS
21372 test -z "$as_dir" && as_dir=.
21373 for ac_exec_ext in '' $ac_executable_extensions; do
21374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21375 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21377 break 2
21378 fi
21379 done
21380 done
21381 IFS=$as_save_IFS
21382
21383 ;;
21384 esac
21385 fi
21386 gcc_cv_as=$ac_cv_path_gcc_cv_as
21387 if test -n "$gcc_cv_as"; then
21388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21389 $as_echo "$gcc_cv_as" >&6; }
21390 else
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21392 $as_echo "no" >&6; }
21393 fi
21394
21395
21396 fi
21397 fi
21398
21399 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21400
21401 case "$ORIGINAL_AS_FOR_TARGET" in
21402 ./as | ./as$build_exeext) ;;
21403 *) ac_config_files="$ac_config_files as:exec-tool.in"
21404 ;;
21405 esac
21406
21407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21408 $as_echo_n "checking what assembler to use... " >&6; }
21409 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21410 # Single tree build which includes gas. We want to prefer it
21411 # over whatever linker top-level may have detected, since
21412 # we'll use what we're building after installation anyway.
21413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21414 $as_echo "newly built gas" >&6; }
21415 in_tree_gas=yes
21416 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21417 for f in $gcc_cv_as_bfd_srcdir/configure \
21418 $gcc_cv_as_gas_srcdir/configure \
21419 $gcc_cv_as_gas_srcdir/configure.in \
21420 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21421 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21422 if test x$gcc_cv_gas_version != x; then
21423 break
21424 fi
21425 done
21426 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21427 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21428 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21429 case $gcc_cv_gas_patch_version in
21430 "") gcc_cv_gas_patch_version="0" ;;
21431 esac
21432 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21433 + $gcc_cv_gas_minor_version \) \* 1000 \
21434 + $gcc_cv_gas_patch_version`
21435
21436 in_tree_gas_is_elf=no
21437 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21438 || (grep 'obj_format = multi' ../gas/Makefile \
21439 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21440 then
21441 in_tree_gas_is_elf=yes
21442 fi
21443 else
21444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21445 $as_echo "$gcc_cv_as" >&6; }
21446 in_tree_gas=no
21447 fi
21448
21449 # Identify the linker which will work hand-in-glove with the newly
21450 # built GCC, so that we can examine its features. This is the linker
21451 # which will be driven by the driver program.
21452 #
21453 # If build != host, and we aren't building gas in-tree, we identify a
21454 # build->target linker and hope that it will have the same features
21455 # as the host->target linker we'll be using.
21456 gcc_cv_gld_major_version=
21457 gcc_cv_gld_minor_version=
21458 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21459 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21460
21461 if test "${gcc_cv_ld+set}" = set; then :
21462
21463 else
21464
21465 if test -x "$DEFAULT_LINKER"; then
21466 gcc_cv_ld="$DEFAULT_LINKER"
21467 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21468 && test -f ../ld/Makefile \
21469 && test x$build = x$host; then
21470 gcc_cv_ld=../ld/ld-new$build_exeext
21471 elif test -x collect-ld$build_exeext; then
21472 # Build using linker in the current directory.
21473 gcc_cv_ld=./collect-ld$build_exeext
21474 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21475 gcc_cv_ld="$LD_FOR_TARGET"
21476 else
21477 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21478 set dummy $LD_FOR_TARGET; ac_word=$2
21479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21480 $as_echo_n "checking for $ac_word... " >&6; }
21481 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21482 $as_echo_n "(cached) " >&6
21483 else
21484 case $gcc_cv_ld in
21485 [\\/]* | ?:[\\/]*)
21486 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21487 ;;
21488 *)
21489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21490 for as_dir in $PATH
21491 do
21492 IFS=$as_save_IFS
21493 test -z "$as_dir" && as_dir=.
21494 for ac_exec_ext in '' $ac_executable_extensions; do
21495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21496 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21498 break 2
21499 fi
21500 done
21501 done
21502 IFS=$as_save_IFS
21503
21504 ;;
21505 esac
21506 fi
21507 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21508 if test -n "$gcc_cv_ld"; then
21509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21510 $as_echo "$gcc_cv_ld" >&6; }
21511 else
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21513 $as_echo "no" >&6; }
21514 fi
21515
21516
21517 fi
21518 fi
21519
21520 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21521 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21522
21523 # Check whether --with-plugin-ld was given.
21524 if test "${with_plugin_ld+set}" = set; then :
21525 withval=$with_plugin_ld; if test x"$withval" != x; then
21526 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21527 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21528 fi
21529 fi
21530
21531
21532
21533 cat >>confdefs.h <<_ACEOF
21534 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21535 _ACEOF
21536
21537
21538 # Check to see if we are using gold instead of ld
21539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21540 $as_echo_n "checking whether we are using gold... " >&6; }
21541 ld_is_gold=no
21542 if test x$gcc_cv_ld != x; then
21543 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21544 | grep "GNU gold" > /dev/null; then
21545 ld_is_gold=yes
21546 fi
21547 fi
21548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21549 $as_echo "$ld_is_gold" >&6; }
21550
21551 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21552
21553 case "$ORIGINAL_LD_FOR_TARGET" in
21554 ./collect-ld | ./collect-ld$build_exeext) ;;
21555 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21556 ;;
21557 esac
21558
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21560 $as_echo_n "checking what linker to use... " >&6; }
21561 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21562 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21563 # Single tree build which includes ld. We want to prefer it
21564 # over whatever linker top-level may have detected, since
21565 # we'll use what we're building after installation anyway.
21566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21567 $as_echo "newly built ld" >&6; }
21568 in_tree_ld=yes
21569 in_tree_ld_is_elf=no
21570 if (grep 'EMUL = .*elf' ../ld/Makefile \
21571 || grep 'EMUL = .*linux' ../ld/Makefile \
21572 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21573 in_tree_ld_is_elf=yes
21574 elif test "$ld_is_gold" = yes; then
21575 in_tree_ld_is_elf=yes
21576 fi
21577 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
21578 do
21579 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21580 if test x$gcc_cv_gld_version != x; then
21581 break
21582 fi
21583 done
21584 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21585 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21586 else
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21588 $as_echo "$gcc_cv_ld" >&6; }
21589 in_tree_ld=no
21590 fi
21591
21592 # Figure out what nm we will be using.
21593 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21594 if test "${gcc_cv_nm+set}" = set; then :
21595
21596 else
21597
21598 if test -f $gcc_cv_binutils_srcdir/configure.in \
21599 && test -f ../binutils/Makefile \
21600 && test x$build = x$host; then
21601 gcc_cv_nm=../binutils/nm-new$build_exeext
21602 elif test -x nm$build_exeext; then
21603 gcc_cv_nm=./nm$build_exeext
21604 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21605 gcc_cv_nm="$NM_FOR_TARGET"
21606 else
21607 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21608 set dummy $NM_FOR_TARGET; ac_word=$2
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21610 $as_echo_n "checking for $ac_word... " >&6; }
21611 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21612 $as_echo_n "(cached) " >&6
21613 else
21614 case $gcc_cv_nm in
21615 [\\/]* | ?:[\\/]*)
21616 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21617 ;;
21618 *)
21619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21620 for as_dir in $PATH
21621 do
21622 IFS=$as_save_IFS
21623 test -z "$as_dir" && as_dir=.
21624 for ac_exec_ext in '' $ac_executable_extensions; do
21625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21626 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21628 break 2
21629 fi
21630 done
21631 done
21632 IFS=$as_save_IFS
21633
21634 ;;
21635 esac
21636 fi
21637 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21638 if test -n "$gcc_cv_nm"; then
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21640 $as_echo "$gcc_cv_nm" >&6; }
21641 else
21642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21643 $as_echo "no" >&6; }
21644 fi
21645
21646
21647 fi
21648 fi
21649
21650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21651 $as_echo_n "checking what nm to use... " >&6; }
21652 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21653 # Single tree build which includes binutils.
21654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21655 $as_echo "newly built nm" >&6; }
21656 in_tree_nm=yes
21657 else
21658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21659 $as_echo "$gcc_cv_nm" >&6; }
21660 in_tree_nm=no
21661 fi
21662
21663 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21664
21665 case "$ORIGINAL_NM_FOR_TARGET" in
21666 ./nm | ./nm$build_exeext) ;;
21667 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21668 ;;
21669 esac
21670
21671
21672 # Figure out what objdump we will be using.
21673 if test "${gcc_cv_objdump+set}" = set; then :
21674
21675 else
21676
21677 if test -f $gcc_cv_binutils_srcdir/configure.in \
21678 && test -f ../binutils/Makefile \
21679 && test x$build = x$host; then
21680 # Single tree build which includes binutils.
21681 gcc_cv_objdump=../binutils/objdump$build_exeext
21682 elif test -x objdump$build_exeext; then
21683 gcc_cv_objdump=./objdump$build_exeext
21684 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21685 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21686 else
21687 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21688 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21690 $as_echo_n "checking for $ac_word... " >&6; }
21691 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21692 $as_echo_n "(cached) " >&6
21693 else
21694 case $gcc_cv_objdump in
21695 [\\/]* | ?:[\\/]*)
21696 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21697 ;;
21698 *)
21699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21700 for as_dir in $PATH
21701 do
21702 IFS=$as_save_IFS
21703 test -z "$as_dir" && as_dir=.
21704 for ac_exec_ext in '' $ac_executable_extensions; do
21705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21706 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21708 break 2
21709 fi
21710 done
21711 done
21712 IFS=$as_save_IFS
21713
21714 ;;
21715 esac
21716 fi
21717 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21718 if test -n "$gcc_cv_objdump"; then
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21720 $as_echo "$gcc_cv_objdump" >&6; }
21721 else
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21723 $as_echo "no" >&6; }
21724 fi
21725
21726
21727 fi
21728 fi
21729
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21731 $as_echo_n "checking what objdump to use... " >&6; }
21732 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21733 # Single tree build which includes binutils.
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21735 $as_echo "newly built objdump" >&6; }
21736 elif test x$gcc_cv_objdump = x; then
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21738 $as_echo "not found" >&6; }
21739 else
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21741 $as_echo "$gcc_cv_objdump" >&6; }
21742 fi
21743
21744 # Figure out what readelf we will be using.
21745 if test "${gcc_cv_readelf+set}" = set; then :
21746
21747 else
21748
21749 if test -f $gcc_cv_binutils_srcdir/configure.in \
21750 && test -f ../binutils/Makefile \
21751 && test x$build = x$host; then
21752 # Single tree build which includes binutils.
21753 gcc_cv_readelf=../binutils/readelf$build_exeext
21754 elif test -x readelf$build_exeext; then
21755 gcc_cv_readelf=./readelf$build_exeext
21756 else
21757 # Extract the first word of "readelf", so it can be a program name with args.
21758 set dummy readelf; ac_word=$2
21759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21760 $as_echo_n "checking for $ac_word... " >&6; }
21761 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21762 $as_echo_n "(cached) " >&6
21763 else
21764 case $gcc_cv_readelf in
21765 [\\/]* | ?:[\\/]*)
21766 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21767 ;;
21768 *)
21769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21770 for as_dir in $PATH
21771 do
21772 IFS=$as_save_IFS
21773 test -z "$as_dir" && as_dir=.
21774 for ac_exec_ext in '' $ac_executable_extensions; do
21775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21776 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21778 break 2
21779 fi
21780 done
21781 done
21782 IFS=$as_save_IFS
21783
21784 ;;
21785 esac
21786 fi
21787 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21788 if test -n "$gcc_cv_readelf"; then
21789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21790 $as_echo "$gcc_cv_readelf" >&6; }
21791 else
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21793 $as_echo "no" >&6; }
21794 fi
21795
21796
21797 fi
21798 fi
21799
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21801 $as_echo_n "checking what readelf to use... " >&6; }
21802 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21803 # Single tree build which includes binutils.
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21805 $as_echo "newly built readelf" >&6; }
21806 elif test x$gcc_cv_readelf = x; then
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21808 $as_echo "not found" >&6; }
21809 else
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21811 $as_echo "$gcc_cv_readelf" >&6; }
21812 fi
21813
21814 # Figure out what assembler alignment features are present.
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21816 $as_echo_n "checking assembler flags... " >&6; }
21817 if test "${gcc_cv_as_flags+set}" = set; then :
21818 $as_echo_n "(cached) " >&6
21819 else
21820 case "$target" in
21821 i[34567]86-*-linux*)
21822 gcc_cv_as_flags="--32"
21823 ;;
21824 powerpc*-*-darwin*)
21825 gcc_cv_as_flags="-arch ppc"
21826 ;;
21827 *)
21828 gcc_cv_as_flags=" "
21829 ;;
21830 esac
21831 fi
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21833 $as_echo "$gcc_cv_as_flags" >&6; }
21834
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21836 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21837 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21838 $as_echo_n "(cached) " >&6
21839 else
21840 gcc_cv_as_balign_and_p2align=no
21841 if test $in_tree_gas = yes; then
21842 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21843 then gcc_cv_as_balign_and_p2align=yes
21844 fi
21845 elif test x$gcc_cv_as != x; then
21846 $as_echo '.balign 4
21847 .p2align 2' > conftest.s
21848 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21850 (eval $ac_try) 2>&5
21851 ac_status=$?
21852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21853 test $ac_status = 0; }; }
21854 then
21855 gcc_cv_as_balign_and_p2align=yes
21856 else
21857 echo "configure: failed program was" >&5
21858 cat conftest.s >&5
21859 fi
21860 rm -f conftest.o conftest.s
21861 fi
21862 fi
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21864 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21865 if test $gcc_cv_as_balign_and_p2align = yes; then
21866
21867 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21868
21869 fi
21870
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21872 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21873 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21874 $as_echo_n "(cached) " >&6
21875 else
21876 gcc_cv_as_max_skip_p2align=no
21877 if test $in_tree_gas = yes; then
21878 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21879 then gcc_cv_as_max_skip_p2align=yes
21880 fi
21881 elif test x$gcc_cv_as != x; then
21882 $as_echo '.p2align 4,,7' > conftest.s
21883 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21885 (eval $ac_try) 2>&5
21886 ac_status=$?
21887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21888 test $ac_status = 0; }; }
21889 then
21890 gcc_cv_as_max_skip_p2align=yes
21891 else
21892 echo "configure: failed program was" >&5
21893 cat conftest.s >&5
21894 fi
21895 rm -f conftest.o conftest.s
21896 fi
21897 fi
21898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21899 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21900 if test $gcc_cv_as_max_skip_p2align = yes; then
21901
21902 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21903
21904 fi
21905
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21907 $as_echo_n "checking assembler for .literal16... " >&6; }
21908 if test "${gcc_cv_as_literal16+set}" = set; then :
21909 $as_echo_n "(cached) " >&6
21910 else
21911 gcc_cv_as_literal16=no
21912 if test $in_tree_gas = yes; then
21913 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21914 then gcc_cv_as_literal16=yes
21915 fi
21916 elif test x$gcc_cv_as != x; then
21917 $as_echo '.literal16' > conftest.s
21918 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21920 (eval $ac_try) 2>&5
21921 ac_status=$?
21922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21923 test $ac_status = 0; }; }
21924 then
21925 gcc_cv_as_literal16=yes
21926 else
21927 echo "configure: failed program was" >&5
21928 cat conftest.s >&5
21929 fi
21930 rm -f conftest.o conftest.s
21931 fi
21932 fi
21933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21934 $as_echo "$gcc_cv_as_literal16" >&6; }
21935 if test $gcc_cv_as_literal16 = yes; then
21936
21937 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21938
21939 fi
21940
21941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21942 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21943 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21944 $as_echo_n "(cached) " >&6
21945 else
21946 gcc_cv_as_subsection_m1=no
21947 if test $in_tree_gas = yes; then
21948 if test $in_tree_gas_is_elf = yes \
21949 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21950 then gcc_cv_as_subsection_m1=yes
21951 fi
21952 elif test x$gcc_cv_as != x; then
21953 $as_echo 'conftest_label1: .word 0
21954 .subsection -1
21955 conftest_label2: .word 0
21956 .previous' > conftest.s
21957 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21959 (eval $ac_try) 2>&5
21960 ac_status=$?
21961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21962 test $ac_status = 0; }; }
21963 then
21964 if test x$gcc_cv_nm != x; then
21965 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21966 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21967 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21968 then :
21969 else gcc_cv_as_subsection_m1=yes
21970 fi
21971 rm -f conftest.nm1 conftest.nm2
21972 fi
21973 else
21974 echo "configure: failed program was" >&5
21975 cat conftest.s >&5
21976 fi
21977 rm -f conftest.o conftest.s
21978 fi
21979 fi
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21981 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21982 if test $gcc_cv_as_subsection_m1 = yes; then
21983
21984 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21985
21986 fi
21987
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21989 $as_echo_n "checking assembler for .weak... " >&6; }
21990 if test "${gcc_cv_as_weak+set}" = set; then :
21991 $as_echo_n "(cached) " >&6
21992 else
21993 gcc_cv_as_weak=no
21994 if test $in_tree_gas = yes; then
21995 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21996 then gcc_cv_as_weak=yes
21997 fi
21998 elif test x$gcc_cv_as != x; then
21999 $as_echo ' .weak foobar' > conftest.s
22000 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22002 (eval $ac_try) 2>&5
22003 ac_status=$?
22004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22005 test $ac_status = 0; }; }
22006 then
22007 gcc_cv_as_weak=yes
22008 else
22009 echo "configure: failed program was" >&5
22010 cat conftest.s >&5
22011 fi
22012 rm -f conftest.o conftest.s
22013 fi
22014 fi
22015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22016 $as_echo "$gcc_cv_as_weak" >&6; }
22017 if test $gcc_cv_as_weak = yes; then
22018
22019 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22020
22021 fi
22022
22023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22024 $as_echo_n "checking assembler for .weakref... " >&6; }
22025 if test "${gcc_cv_as_weakref+set}" = set; then :
22026 $as_echo_n "(cached) " >&6
22027 else
22028 gcc_cv_as_weakref=no
22029 if test $in_tree_gas = yes; then
22030 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22031 then gcc_cv_as_weakref=yes
22032 fi
22033 elif test x$gcc_cv_as != x; then
22034 $as_echo ' .weakref foobar, barfnot' > conftest.s
22035 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22037 (eval $ac_try) 2>&5
22038 ac_status=$?
22039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22040 test $ac_status = 0; }; }
22041 then
22042 gcc_cv_as_weakref=yes
22043 else
22044 echo "configure: failed program was" >&5
22045 cat conftest.s >&5
22046 fi
22047 rm -f conftest.o conftest.s
22048 fi
22049 fi
22050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22051 $as_echo "$gcc_cv_as_weakref" >&6; }
22052 if test $gcc_cv_as_weakref = yes; then
22053
22054 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22055
22056 fi
22057
22058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22059 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22060 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22061 $as_echo_n "(cached) " >&6
22062 else
22063 gcc_cv_as_nsubspa_comdat=no
22064 if test $in_tree_gas = yes; then
22065 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22066 then gcc_cv_as_nsubspa_comdat=yes
22067 fi
22068 elif test x$gcc_cv_as != x; then
22069 $as_echo ' .SPACE $TEXT$
22070 .NSUBSPA $CODE$,COMDAT' > conftest.s
22071 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22073 (eval $ac_try) 2>&5
22074 ac_status=$?
22075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22076 test $ac_status = 0; }; }
22077 then
22078 gcc_cv_as_nsubspa_comdat=yes
22079 else
22080 echo "configure: failed program was" >&5
22081 cat conftest.s >&5
22082 fi
22083 rm -f conftest.o conftest.s
22084 fi
22085 fi
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22087 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22088 if test $gcc_cv_as_nsubspa_comdat = yes; then
22089
22090 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22091
22092 fi
22093
22094 # .hidden needs to be supported in both the assembler and the linker,
22095 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22096 # This is irritatingly difficult to feature test for; we have to check the
22097 # date string after the version number. If we've got an in-tree
22098 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22099 # to be safe.
22100 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22102 $as_echo_n "checking assembler for .hidden... " >&6; }
22103 if test "${gcc_cv_as_hidden+set}" = set; then :
22104 $as_echo_n "(cached) " >&6
22105 else
22106 gcc_cv_as_hidden=no
22107 if test $in_tree_gas = yes; then
22108 if test $in_tree_gas_is_elf = yes \
22109 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22110 then gcc_cv_as_hidden=yes
22111 fi
22112 elif test x$gcc_cv_as != x; then
22113 $as_echo ' .hidden foobar
22114 foobar:' > conftest.s
22115 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22117 (eval $ac_try) 2>&5
22118 ac_status=$?
22119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22120 test $ac_status = 0; }; }
22121 then
22122
22123 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22124 # STV_HIDDEN, so disable .hidden support if so.
22125 case "${target}" in
22126 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22127 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22128 cat > conftest.s <<EOF
22129 .globl hidden
22130 .hidden hidden
22131 hidden:
22132 .globl default
22133 .set default,hidden
22134 EOF
22135 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22136 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22137 grep '\.hidden default' > /dev/null; then
22138 gcc_cv_as_hidden=no
22139 else
22140 gcc_cv_as_hidden=yes
22141 fi
22142 else
22143 # Assume bug is present if objdump is missing.
22144 gcc_cv_as_hidden=no
22145 fi
22146 ;;
22147 *)
22148 gcc_cv_as_hidden=yes
22149 ;;
22150 esac
22151 else
22152 echo "configure: failed program was" >&5
22153 cat conftest.s >&5
22154 fi
22155 rm -f conftest.o conftest.s
22156 fi
22157 fi
22158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22159 $as_echo "$gcc_cv_as_hidden" >&6; }
22160
22161 case "${target}" in
22162 *-*-darwin*)
22163 # Darwin as has some visibility support, though with a different syntax.
22164 gcc_cv_as_hidden=yes
22165 ;;
22166 esac
22167
22168 # gnu_indirect_function type is an extension proposed at
22169 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22170 # selection of function implementation
22171 # Check whether --enable-gnu-indirect-function was given.
22172 if test "${enable_gnu_indirect_function+set}" = set; then :
22173 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22174 yes | no) ;;
22175 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22176 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22177 esac
22178 else
22179 enable_gnu_indirect_function="$default_gnu_indirect_function"
22180 fi
22181
22182 if test x$enable_gnu_indirect_function = xyes; then
22183
22184 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22185
22186 fi
22187
22188 if test $in_tree_ld != yes ; then
22189 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22190 if echo "$ld_ver" | grep GNU > /dev/null; then
22191 if test x"$ld_is_gold" = xyes; then
22192 # GNU gold --version looks like this:
22193 #
22194 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22195 #
22196 # We extract the binutils version which is more familiar and specific
22197 # than the gold version.
22198 ld_vers=`echo $ld_ver | sed -n \
22199 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22200 else
22201 # GNU ld --version looks like this:
22202 #
22203 # GNU ld (GNU Binutils) 2.21.51.20110225
22204 ld_vers=`echo $ld_ver | sed -n \
22205 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22206 fi
22207 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'`
22208 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22209 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22210 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22211 else
22212 case "${target}" in
22213 *-*-solaris2*)
22214 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22215 # format.
22216 #
22217 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22218 # /usr/ccs/bin/ld has been configured.
22219 ld_ver=`$gcc_cv_ld -V 2>&1`
22220 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22221 ld_vers=`echo $ld_ver | sed -n \
22222 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22223 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22224 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22225 fi
22226 ;;
22227 esac
22228 fi
22229 fi
22230
22231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22232 $as_echo_n "checking linker for .hidden support... " >&6; }
22233 if test "${gcc_cv_ld_hidden+set}" = set; then :
22234 $as_echo_n "(cached) " >&6
22235 else
22236 if test $in_tree_ld = yes ; then
22237 gcc_cv_ld_hidden=no
22238 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 \
22239 && test $in_tree_ld_is_elf = yes; then
22240 gcc_cv_ld_hidden=yes
22241 fi
22242 else
22243 gcc_cv_ld_hidden=yes
22244 if test x"$ld_is_gold" = xyes; then
22245 :
22246 elif echo "$ld_ver" | grep GNU > /dev/null; then
22247 if test 0"$ld_date" -lt 20020404; then
22248 if test -n "$ld_date"; then
22249 # If there was date string, but was earlier than 2002-04-04, fail
22250 gcc_cv_ld_hidden=no
22251 elif test -z "$ld_vers"; then
22252 # If there was no date string nor ld version number, something is wrong
22253 gcc_cv_ld_hidden=no
22254 else
22255 test -z "$ld_vers_patch" && ld_vers_patch=0
22256 if test "$ld_vers_major" -lt 2; then
22257 gcc_cv_ld_hidden=no
22258 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22259 gcc_cv_ld_hidden="no"
22260 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22261 gcc_cv_ld_hidden=no
22262 fi
22263 fi
22264 fi
22265 else
22266 case "${target}" in
22267 *-*-darwin*)
22268 # Darwin ld has some visibility support.
22269 gcc_cv_ld_hidden=yes
22270 ;;
22271 hppa64*-*-hpux* | ia64*-*-hpux*)
22272 gcc_cv_ld_hidden=yes
22273 ;;
22274 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22275 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22276 # .symbolic was only added in Solaris 9 12/02.
22277 gcc_cv_ld_hidden=yes
22278 ;;
22279 *)
22280 gcc_cv_ld_hidden=no
22281 ;;
22282 esac
22283 fi
22284 fi
22285 fi
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22287 $as_echo "$gcc_cv_ld_hidden" >&6; }
22288 libgcc_visibility=no
22289
22290
22291 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22292 libgcc_visibility=yes
22293
22294 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22295
22296 fi
22297
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22299 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22300 gcc_cv_ld_ro_rw_mix=unknown
22301 if test $in_tree_ld = yes ; then
22302 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 \
22303 && test $in_tree_ld_is_elf = yes; then
22304 gcc_cv_ld_ro_rw_mix=read-write
22305 fi
22306 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22307 echo '.section myfoosect, "a"' > conftest1.s
22308 echo '.section myfoosect, "aw"' > conftest2.s
22309 echo '.byte 1' >> conftest2.s
22310 echo '.section myfoosect, "a"' > conftest3.s
22311 echo '.byte 0' >> conftest3.s
22312 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22313 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22314 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22315 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22316 conftest2.o conftest3.o > /dev/null 2>&1; then
22317 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22318 | sed -e '/myfoosect/!d' -e N`
22319 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22320 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22321 gcc_cv_ld_ro_rw_mix=read-only
22322 else
22323 gcc_cv_ld_ro_rw_mix=read-write
22324 fi
22325 fi
22326 fi
22327 rm -f conftest.* conftest[123].*
22328 fi
22329 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22330
22331 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22332
22333 fi
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22335 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22336
22337 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22338 case "${target}" in
22339 *-*-solaris2*)
22340 #
22341 # Solaris 2 ld -V output looks like this for a regular version:
22342 #
22343 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22344 #
22345 # but test versions add stuff at the end:
22346 #
22347 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22348 #
22349 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22350 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22351 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22352 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22353 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22354 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22355 fi
22356 ;;
22357 esac
22358 fi
22359
22360 # Check whether --enable-initfini-array was given.
22361 if test "${enable_initfini_array+set}" = set; then :
22362 enableval=$enable_initfini_array;
22363 else
22364
22365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22366 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22367 if test "${gcc_cv_initfini_array+set}" = set; then :
22368 $as_echo_n "(cached) " >&6
22369 else
22370 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22371 case "${target}" in
22372 ia64-*)
22373 if test "$cross_compiling" = yes; then :
22374 gcc_cv_initfini_array=no
22375 else
22376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22377 /* end confdefs.h. */
22378
22379 #ifndef __ELF__
22380 #error Not an ELF OS
22381 #endif
22382 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22383 if it can be used. */
22384 static int x = -1;
22385 int main (void) { return x; }
22386 int foo (void) { x = 0; }
22387 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22388
22389 _ACEOF
22390 if ac_fn_c_try_run "$LINENO"; then :
22391 gcc_cv_initfini_array=yes
22392 else
22393 gcc_cv_initfini_array=no
22394 fi
22395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22396 conftest.$ac_objext conftest.beam conftest.$ac_ext
22397 fi
22398 ;;
22399 *)
22400 gcc_cv_initfini_array=no
22401 if test $in_tree_ld = yes ; then
22402 if test "$gcc_cv_gld_major_version" -eq 2 \
22403 -a "$gcc_cv_gld_minor_version" -ge 22 \
22404 -o "$gcc_cv_gld_major_version" -gt 2 \
22405 && test $in_tree_ld_is_elf = yes; then
22406 gcc_cv_initfini_array=yes
22407 fi
22408 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22409 cat > conftest.s <<\EOF
22410 .section .dtors,"a",%progbits
22411 .balign 4
22412 .byte 'A', 'A', 'A', 'A'
22413 .section .ctors,"a",%progbits
22414 .balign 4
22415 .byte 'B', 'B', 'B', 'B'
22416 .section .fini_array.65530,"a",%progbits
22417 .balign 4
22418 .byte 'C', 'C', 'C', 'C'
22419 .section .init_array.65530,"a",%progbits
22420 .balign 4
22421 .byte 'D', 'D', 'D', 'D'
22422 .section .dtors.64528,"a",%progbits
22423 .balign 4
22424 .byte 'E', 'E', 'E', 'E'
22425 .section .ctors.64528,"a",%progbits
22426 .balign 4
22427 .byte 'F', 'F', 'F', 'F'
22428 .section .fini_array.01005,"a",%progbits
22429 .balign 4
22430 .byte 'G', 'G', 'G', 'G'
22431 .section .init_array.01005,"a",%progbits
22432 .balign 4
22433 .byte 'H', 'H', 'H', 'H'
22434 .text
22435 .globl _start
22436 _start:
22437 EOF
22438 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22439 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22440 && $gcc_cv_objdump -s -j .init_array conftest \
22441 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22442 && $gcc_cv_objdump -s -j .fini_array conftest \
22443 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22444 gcc_cv_initfini_array=yes
22445 fi
22446 rm -f conftest conftest.*
22447 fi
22448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22449 /* end confdefs.h. */
22450
22451 #ifndef __ELF__
22452 # error Not an ELF OS
22453 #endif
22454 #include <stdlib.h>
22455 #if defined __GLIBC_PREREQ
22456 # if __GLIBC_PREREQ (2, 4)
22457 # else
22458 # error GLIBC 2.4 required
22459 # endif
22460 #else
22461 # if defined __sun__ && defined __svr4__
22462 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22463 # else
22464 # error The C library not known to support .init_array/.fini_array
22465 # endif
22466 #endif
22467
22468 _ACEOF
22469 if ac_fn_c_try_cpp "$LINENO"; then :
22470
22471 else
22472 gcc_cv_initfini_array=no
22473 fi
22474 rm -f conftest.err conftest.$ac_ext;;
22475 esac
22476 else
22477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22478 $as_echo_n "checking cross compile... guessing... " >&6; }
22479 gcc_cv_initfini_array=no
22480 fi
22481 fi
22482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22483 $as_echo "$gcc_cv_initfini_array" >&6; }
22484 enable_initfini_array=$gcc_cv_initfini_array
22485
22486 fi
22487
22488 if test $enable_initfini_array = yes; then
22489
22490 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22491
22492 fi
22493
22494 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22496 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22497 if test "${gcc_cv_as_leb128+set}" = set; then :
22498 $as_echo_n "(cached) " >&6
22499 else
22500 gcc_cv_as_leb128=no
22501 if test $in_tree_gas = yes; then
22502 if test $in_tree_gas_is_elf = yes \
22503 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22504 then gcc_cv_as_leb128=yes
22505 fi
22506 elif test x$gcc_cv_as != x; then
22507 $as_echo ' .data
22508 .uleb128 L2 - L1
22509 L1:
22510 .uleb128 1280
22511 .sleb128 -1010
22512 L2:' > conftest.s
22513 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22515 (eval $ac_try) 2>&5
22516 ac_status=$?
22517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22518 test $ac_status = 0; }; }
22519 then
22520 # GAS versions before 2.11 do not support uleb128,
22521 # despite appearing to.
22522 # ??? There exists an elf-specific test that will crash
22523 # the assembler. Perhaps it's better to figure out whether
22524 # arbitrary sections are supported and try the test.
22525 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22526 if echo "$as_ver" | grep GNU > /dev/null; then
22527 as_vers=`echo $as_ver | sed -n \
22528 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22529 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22530 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22531 if test $as_major -eq 2 && test $as_minor -lt 11
22532 then :
22533 else gcc_cv_as_leb128=yes
22534 fi
22535 fi
22536 else
22537 echo "configure: failed program was" >&5
22538 cat conftest.s >&5
22539 fi
22540 rm -f conftest.o conftest.s
22541 fi
22542 fi
22543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22544 $as_echo "$gcc_cv_as_leb128" >&6; }
22545 if test $gcc_cv_as_leb128 = yes; then
22546
22547 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22548
22549 fi
22550
22551 # Check if we have assembler support for unwind directives.
22552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22553 $as_echo_n "checking assembler for cfi directives... " >&6; }
22554 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22555 $as_echo_n "(cached) " >&6
22556 else
22557 gcc_cv_as_cfi_directive=no
22558 if test x$gcc_cv_as != x; then
22559 $as_echo ' .text
22560 .cfi_startproc
22561 .cfi_offset 0, 0
22562 .cfi_same_value 1
22563 .cfi_def_cfa 1, 2
22564 .cfi_escape 1, 2, 3, 4, 5
22565 .cfi_endproc' > conftest.s
22566 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22568 (eval $ac_try) 2>&5
22569 ac_status=$?
22570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22571 test $ac_status = 0; }; }
22572 then
22573 case "$target" in
22574 *-*-solaris*)
22575 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22576 # read-only and read-write sections, we need to make sure that the
22577 # assembler used emits read-write .eh_frame sections.
22578 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22579 if test "x$gcc_cv_objdump" != x; then
22580 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22581 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22582 gcc_cv_as_cfi_directive=no
22583 else
22584 case "$target" in
22585 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22586 # On Solaris/x86, make sure that GCC and gas agree on using
22587 # read-only .eh_frame sections for 64-bit.
22588 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22589 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22590 sed -e /.eh_frame/!d -e N | \
22591 grep READONLY > /dev/null; then
22592 gcc_cv_as_cfi_directive=yes
22593 else
22594 gcc_cv_as_cfi_directive=no
22595 fi
22596 ;;
22597 *)
22598 gcc_cv_as_cfi_directive=yes
22599 ;;
22600 esac
22601 fi
22602 else
22603 # no objdump, err on the side of caution
22604 gcc_cv_as_cfi_directive=no
22605 fi
22606 else
22607 gcc_cv_as_cfi_directive=yes
22608 fi
22609 ;;
22610 *-*-*)
22611 gcc_cv_as_cfi_directive=yes
22612 ;;
22613 esac
22614 else
22615 echo "configure: failed program was" >&5
22616 cat conftest.s >&5
22617 fi
22618 rm -f conftest.o conftest.s
22619 fi
22620 fi
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22622 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22623
22624 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22626 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22627 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22628 $as_echo_n "(cached) " >&6
22629 else
22630 gcc_cv_as_cfi_advance_working=no
22631 if test x$gcc_cv_as != x; then
22632 $as_echo ' .text
22633 .cfi_startproc
22634 .cfi_adjust_cfa_offset 64
22635 .skip 75040, 0
22636 .cfi_adjust_cfa_offset 128
22637 .cfi_endproc' > conftest.s
22638 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22640 (eval $ac_try) 2>&5
22641 ac_status=$?
22642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22643 test $ac_status = 0; }; }
22644 then
22645
22646 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22647 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22648 gcc_cv_as_cfi_advance_working=yes
22649 fi
22650
22651 else
22652 echo "configure: failed program was" >&5
22653 cat conftest.s >&5
22654 fi
22655 rm -f conftest.o conftest.s
22656 fi
22657 fi
22658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22659 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22660
22661 else
22662 # no objdump, err on the side of caution
22663 gcc_cv_as_cfi_advance_working=no
22664 fi
22665
22666
22667 cat >>confdefs.h <<_ACEOF
22668 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22669 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22670 _ACEOF
22671
22672
22673
22674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22675 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22676 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22677 $as_echo_n "(cached) " >&6
22678 else
22679 gcc_cv_as_cfi_personality_directive=no
22680 if test x$gcc_cv_as != x; then
22681 $as_echo ' .text
22682 .cfi_startproc
22683 .cfi_personality 0, symbol
22684 .cfi_endproc' > conftest.s
22685 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22687 (eval $ac_try) 2>&5
22688 ac_status=$?
22689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22690 test $ac_status = 0; }; }
22691 then
22692 gcc_cv_as_cfi_personality_directive=yes
22693 else
22694 echo "configure: failed program was" >&5
22695 cat conftest.s >&5
22696 fi
22697 rm -f conftest.o conftest.s
22698 fi
22699 fi
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22701 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22702
22703
22704 cat >>confdefs.h <<_ACEOF
22705 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22706 then echo 1; else echo 0; fi`
22707 _ACEOF
22708
22709
22710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22711 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22712 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22713 $as_echo_n "(cached) " >&6
22714 else
22715 gcc_cv_as_cfi_sections_directive=no
22716 if test x$gcc_cv_as != x; then
22717 $as_echo ' .text
22718 .cfi_sections .debug_frame, .eh_frame
22719 .cfi_startproc
22720 .cfi_endproc' > conftest.s
22721 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22723 (eval $ac_try) 2>&5
22724 ac_status=$?
22725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22726 test $ac_status = 0; }; }
22727 then
22728 case $target_os in
22729 win32 | pe | cygwin* | mingw32* | uwin*)
22730 # Need to check that we generated the correct relocation for the
22731 # .debug_frame section. This was fixed for binutils 2.21.
22732 gcc_cv_as_cfi_sections_directive=no
22733 if test "x$gcc_cv_objdump" != x; then
22734 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22735 grep secrel > /dev/null; then
22736 gcc_cv_as_cfi_sections_directive=yes
22737 fi
22738 fi
22739 ;;
22740 *)
22741 gcc_cv_as_cfi_sections_directive=yes
22742 ;;
22743 esac
22744 else
22745 echo "configure: failed program was" >&5
22746 cat conftest.s >&5
22747 fi
22748 rm -f conftest.o conftest.s
22749 fi
22750 fi
22751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22752 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22753
22754
22755
22756 cat >>confdefs.h <<_ACEOF
22757 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22758 then echo 1; else echo 0; fi`
22759 _ACEOF
22760
22761
22762 # GAS versions up to and including 2.11.0 may mis-optimize
22763 # .eh_frame data.
22764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22765 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22766 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22767 $as_echo_n "(cached) " >&6
22768 else
22769 gcc_cv_as_eh_frame=no
22770 if test $in_tree_gas = yes; then
22771 if test $in_tree_gas_is_elf = yes \
22772 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22773 then gcc_cv_as_eh_frame=yes
22774 fi
22775 elif test x$gcc_cv_as != x; then
22776 $as_echo ' .text
22777 .LFB1:
22778 .4byte 0
22779 .L1:
22780 .4byte 0
22781 .LFE1:
22782 .section .eh_frame,"aw",@progbits
22783 __FRAME_BEGIN__:
22784 .4byte .LECIE1-.LSCIE1
22785 .LSCIE1:
22786 .4byte 0x0
22787 .byte 0x1
22788 .ascii "z\0"
22789 .byte 0x1
22790 .byte 0x78
22791 .byte 0x1a
22792 .byte 0x0
22793 .byte 0x4
22794 .4byte 1
22795 .p2align 1
22796 .LECIE1:
22797 .LSFDE1:
22798 .4byte .LEFDE1-.LASFDE1
22799 .LASFDE1:
22800 .4byte .LASFDE1-__FRAME_BEGIN__
22801 .4byte .LFB1
22802 .4byte .LFE1-.LFB1
22803 .byte 0x4
22804 .4byte .LFE1-.LFB1
22805 .byte 0x4
22806 .4byte .L1-.LFB1
22807 .LEFDE1:' > conftest.s
22808 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22810 (eval $ac_try) 2>&5
22811 ac_status=$?
22812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22813 test $ac_status = 0; }; }
22814 then
22815 cat > conftest.lit <<EOF
22816 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22817 0010 01000000 12000000 18000000 00000000 ................
22818 0020 08000000 04080000 0044 .........D
22819 EOF
22820 cat > conftest.big <<EOF
22821 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22822 0010 00000001 00000012 00000018 00000000 ................
22823 0020 00000008 04000000 0844 .........D
22824 EOF
22825 # If the assembler didn't choke, and we can objdump,
22826 # and we got the correct data, then succeed.
22827 # The text in the here-document typically retains its unix-style line
22828 # endings, while the output of objdump will use host line endings.
22829 # Therefore, use diff -b for the comparisons.
22830 if test x$gcc_cv_objdump != x \
22831 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22832 | tail -3 > conftest.got \
22833 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22834 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22835 then
22836 gcc_cv_as_eh_frame=yes
22837 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22839 (eval $ac_try) 2>&5
22840 ac_status=$?
22841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22842 test $ac_status = 0; }; }; then
22843 gcc_cv_as_eh_frame=buggy
22844 else
22845 # Uh oh, what do we do now?
22846 gcc_cv_as_eh_frame=no
22847 fi
22848 else
22849 echo "configure: failed program was" >&5
22850 cat conftest.s >&5
22851 fi
22852 rm -f conftest.o conftest.s
22853 fi
22854 fi
22855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22856 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22857
22858
22859 if test $gcc_cv_as_eh_frame = buggy; then
22860
22861 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22862
22863 fi
22864
22865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22866 $as_echo_n "checking assembler for section merging support... " >&6; }
22867 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22868 $as_echo_n "(cached) " >&6
22869 else
22870 gcc_cv_as_shf_merge=no
22871 if test $in_tree_gas = yes; then
22872 if test $in_tree_gas_is_elf = yes \
22873 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22874 then gcc_cv_as_shf_merge=yes
22875 fi
22876 elif test x$gcc_cv_as != x; then
22877 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22878 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22880 (eval $ac_try) 2>&5
22881 ac_status=$?
22882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22883 test $ac_status = 0; }; }
22884 then
22885 gcc_cv_as_shf_merge=yes
22886 else
22887 echo "configure: failed program was" >&5
22888 cat conftest.s >&5
22889 fi
22890 rm -f conftest.o conftest.s
22891 fi
22892 fi
22893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22894 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22895
22896 if test $gcc_cv_as_shf_merge = no; then
22897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22898 $as_echo_n "checking assembler for section merging support... " >&6; }
22899 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22900 $as_echo_n "(cached) " >&6
22901 else
22902 gcc_cv_as_shf_merge=no
22903 if test $in_tree_gas = yes; then
22904 if test $in_tree_gas_is_elf = yes \
22905 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22906 then gcc_cv_as_shf_merge=yes
22907 fi
22908 elif test x$gcc_cv_as != x; then
22909 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22910 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22912 (eval $ac_try) 2>&5
22913 ac_status=$?
22914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22915 test $ac_status = 0; }; }
22916 then
22917 gcc_cv_as_shf_merge=yes
22918 else
22919 echo "configure: failed program was" >&5
22920 cat conftest.s >&5
22921 fi
22922 rm -f conftest.o conftest.s
22923 fi
22924 fi
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22926 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22927
22928 fi
22929
22930 cat >>confdefs.h <<_ACEOF
22931 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22932 _ACEOF
22933
22934
22935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22936 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22937 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22938 $as_echo_n "(cached) " >&6
22939 else
22940 gcc_cv_as_comdat_group=no
22941 if test $in_tree_gas = yes; then
22942 if test $in_tree_gas_is_elf = yes \
22943 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22944 then gcc_cv_as_comdat_group=yes
22945 fi
22946 elif test x$gcc_cv_as != x; then
22947 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22948 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22950 (eval $ac_try) 2>&5
22951 ac_status=$?
22952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22953 test $ac_status = 0; }; }
22954 then
22955 gcc_cv_as_comdat_group=yes
22956 else
22957 echo "configure: failed program was" >&5
22958 cat conftest.s >&5
22959 fi
22960 rm -f conftest.o conftest.s
22961 fi
22962 fi
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22964 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22965
22966 if test $gcc_cv_as_comdat_group = yes; then
22967 gcc_cv_as_comdat_group_percent=no
22968 gcc_cv_as_comdat_group_group=no
22969 else
22970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22971 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22972 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22973 $as_echo_n "(cached) " >&6
22974 else
22975 gcc_cv_as_comdat_group_percent=no
22976 if test $in_tree_gas = yes; then
22977 if test $in_tree_gas_is_elf = yes \
22978 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22979 then gcc_cv_as_comdat_group_percent=yes
22980 fi
22981 elif test x$gcc_cv_as != x; then
22982 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22983 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22985 (eval $ac_try) 2>&5
22986 ac_status=$?
22987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22988 test $ac_status = 0; }; }
22989 then
22990 gcc_cv_as_comdat_group_percent=yes
22991 else
22992 echo "configure: failed program was" >&5
22993 cat conftest.s >&5
22994 fi
22995 rm -f conftest.o conftest.s
22996 fi
22997 fi
22998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22999 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23000
23001 if test $gcc_cv_as_comdat_group_percent = yes; then
23002 gcc_cv_as_comdat_group_group=no
23003 else
23004 case "${target}" in
23005 # Sun as uses a completely different syntax.
23006 *-*-solaris2*)
23007 case "${target}" in
23008 sparc*-*-solaris2*)
23009 conftest_s='
23010 .group foo,".text%foo",#comdat
23011 .section ".text%foo", #alloc,#execinstr,#progbits
23012 .globl foo
23013 foo:
23014 '
23015 ;;
23016 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23017 conftest_s='
23018 .group foo,.text%foo,#comdat
23019 .section .text%foo, "ax", @progbits
23020 .globl foo
23021 foo:
23022 '
23023 ;;
23024 esac
23025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23026 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23027 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23028 $as_echo_n "(cached) " >&6
23029 else
23030 gcc_cv_as_comdat_group_group=no
23031 if test x$gcc_cv_as != x; then
23032 $as_echo "$conftest_s" > conftest.s
23033 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23035 (eval $ac_try) 2>&5
23036 ac_status=$?
23037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23038 test $ac_status = 0; }; }
23039 then
23040 gcc_cv_as_comdat_group_group=yes
23041 else
23042 echo "configure: failed program was" >&5
23043 cat conftest.s >&5
23044 fi
23045 rm -f conftest.o conftest.s
23046 fi
23047 fi
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23049 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23050
23051 ;;
23052 esac
23053 fi
23054 fi
23055 if test x"$ld_is_gold" = xyes; then
23056 comdat_group=yes
23057 elif test $in_tree_ld = yes ; then
23058 comdat_group=no
23059 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 \
23060 && test $in_tree_ld_is_elf = yes; then
23061 comdat_group=yes
23062 fi
23063 elif echo "$ld_ver" | grep GNU > /dev/null; then
23064 comdat_group=yes
23065 if test 0"$ld_date" -lt 20050308; then
23066 if test -n "$ld_date"; then
23067 # If there was date string, but was earlier than 2005-03-08, fail
23068 comdat_group=no
23069 elif test "$ld_vers_major" -lt 2; then
23070 comdat_group=no
23071 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23072 comdat_group=no
23073 fi
23074 fi
23075 else
23076 case "${target}" in
23077 *-*-solaris2.1[1-9]*)
23078 comdat_group=no
23079 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23080 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23081 # version 1.688.
23082 #
23083 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23084 # least ld version 1.2267.
23085 if test "$ld_vers_major" -gt 1; then
23086 comdat_group=yes
23087 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23088 comdat_group=yes
23089 elif test "$ld_vers_minor" -ge 2267; then
23090 comdat_group=yes
23091 fi
23092 ;;
23093 *)
23094 # Assume linkers other than GNU ld don't support COMDAT group.
23095 comdat_group=no
23096 ;;
23097 esac
23098 fi
23099 # Allow overriding the automatic COMDAT group tests above.
23100 # Check whether --enable-comdat was given.
23101 if test "${enable_comdat+set}" = set; then :
23102 enableval=$enable_comdat; comdat_group="$enable_comdat"
23103 fi
23104
23105 if test $comdat_group = no; then
23106 gcc_cv_as_comdat_group=no
23107 gcc_cv_as_comdat_group_percent=no
23108 gcc_cv_as_comdat_group_group=no
23109 fi
23110
23111 cat >>confdefs.h <<_ACEOF
23112 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23113 || test $gcc_cv_as_comdat_group_percent = yes \
23114 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23115 _ACEOF
23116
23117
23118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23119 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23120 if test "${gcc_cv_as_discriminator+set}" = set; then :
23121 $as_echo_n "(cached) " >&6
23122 else
23123 gcc_cv_as_discriminator=no
23124 if test $in_tree_gas = yes; then
23125 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23126 then gcc_cv_as_discriminator=yes
23127 fi
23128 elif test x$gcc_cv_as != x; then
23129 $as_echo ' .text
23130 .file 1 "conf.c"
23131 .loc 1 1 0 discriminator 1' > conftest.s
23132 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23134 (eval $ac_try) 2>&5
23135 ac_status=$?
23136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23137 test $ac_status = 0; }; }
23138 then
23139 gcc_cv_as_discriminator=yes
23140 else
23141 echo "configure: failed program was" >&5
23142 cat conftest.s >&5
23143 fi
23144 rm -f conftest.o conftest.s
23145 fi
23146 fi
23147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23148 $as_echo "$gcc_cv_as_discriminator" >&6; }
23149 if test $gcc_cv_as_discriminator = yes; then
23150
23151 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23152
23153 fi
23154
23155 # Thread-local storage - the check is heavily parameterized.
23156 conftest_s=
23157 tls_first_major=
23158 tls_first_minor=
23159 tls_as_opt=
23160 case "$target" in
23161 alpha*-*-*)
23162 conftest_s='
23163 .section ".tdata","awT",@progbits
23164 foo: .long 25
23165 .text
23166 ldq $27,__tls_get_addr($29) !literal!1
23167 lda $16,foo($29) !tlsgd!1
23168 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23169 ldq $27,__tls_get_addr($29) !literal!2
23170 lda $16,foo($29) !tlsldm!2
23171 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23172 ldq $1,foo($29) !gotdtprel
23173 ldah $2,foo($29) !dtprelhi
23174 lda $3,foo($2) !dtprello
23175 lda $4,foo($29) !dtprel
23176 ldq $1,foo($29) !gottprel
23177 ldah $2,foo($29) !tprelhi
23178 lda $3,foo($2) !tprello
23179 lda $4,foo($29) !tprel'
23180 tls_first_major=2
23181 tls_first_minor=13
23182 tls_as_opt=--fatal-warnings
23183 ;;
23184 cris-*-*|crisv32-*-*)
23185 conftest_s='
23186 .section ".tdata","awT",@progbits
23187 x: .long 25
23188 .text
23189 move.d x:IE,$r10
23190 nop'
23191 tls_first_major=2
23192 tls_first_minor=20
23193 tls_as_opt=--fatal-warnings
23194 ;;
23195 frv*-*-*)
23196 conftest_s='
23197 .section ".tdata","awT",@progbits
23198 x: .long 25
23199 .text
23200 call #gettlsoff(x)'
23201 tls_first_major=2
23202 tls_first_minor=14
23203 ;;
23204 hppa*-*-linux*)
23205 conftest_s='
23206 t1: .reg %r20
23207 t2: .reg %r21
23208 gp: .reg %r19
23209 .section ".tdata","awT",@progbits
23210 foo: .long 25
23211 .text
23212 .align 4
23213 addil LT%foo-$tls_gdidx$,gp
23214 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23215 b __tls_get_addr
23216 nop
23217 addil LT%foo-$tls_ldidx$,gp
23218 b __tls_get_addr
23219 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23220 addil LR%foo-$tls_dtpoff$,%ret0
23221 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23222 mfctl %cr27,%t1
23223 addil LT%foo-$tls_ieoff$,gp
23224 ldw RT%foo-$tls_ieoff$(%r1),%t2
23225 add %t1,%t2,%t3
23226 mfctl %cr27,%t1
23227 addil LR%foo-$tls_leoff$,%t1
23228 ldo RR%foo-$tls_leoff$(%r1),%t2'
23229 tls_first_major=2
23230 tls_first_minor=15
23231 tls_as_opt=--fatal-warnings
23232 ;;
23233 arm*-*-*)
23234 conftest_s='
23235 .section ".tdata","awT",%progbits
23236 foo: .long 25
23237 .text
23238 .word foo(gottpoff)
23239 .word foo(tpoff)
23240 .word foo(tlsgd)
23241 .word foo(tlsldm)
23242 .word foo(tlsldo)'
23243 tls_first_major=2
23244 tls_first_minor=17
23245 ;;
23246 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23247 case "$target" in
23248 i[34567]86-*-solaris2.*)
23249 on_solaris=yes
23250 tga_func=___tls_get_addr
23251 ;;
23252 x86_64-*-solaris2.1[0-9]*)
23253 on_solaris=yes
23254 tga_func=__tls_get_addr
23255 ;;
23256 *)
23257 on_solaris=no
23258 ;;
23259 esac
23260 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23261 conftest_s='
23262 .section .tdata,"awt",@progbits'
23263 tls_first_major=0
23264 tls_first_minor=0
23265
23266 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23267
23268 else
23269 conftest_s='
23270 .section ".tdata","awT",@progbits'
23271 tls_first_major=2
23272 tls_first_minor=14
23273 tls_as_opt="--fatal-warnings"
23274 fi
23275 conftest_s="$conftest_s
23276 foo: .long 25
23277 .text
23278 movl %gs:0, %eax
23279 leal foo@tlsgd(,%ebx,1), %eax
23280 leal foo@tlsldm(%ebx), %eax
23281 leal foo@dtpoff(%eax), %edx
23282 movl foo@gottpoff(%ebx), %eax
23283 subl foo@gottpoff(%ebx), %eax
23284 addl foo@gotntpoff(%ebx), %eax
23285 movl foo@indntpoff, %eax
23286 movl \$foo@tpoff, %eax
23287 subl \$foo@tpoff, %eax
23288 leal foo@ntpoff(%ecx), %eax"
23289 ;;
23290 x86_64-*-*)
23291 conftest_s='
23292 .section ".tdata","awT",@progbits
23293 foo: .long 25
23294 .text
23295 movq %fs:0, %rax
23296 leaq foo@TLSGD(%rip), %rdi
23297 leaq foo@TLSLD(%rip), %rdi
23298 leaq foo@DTPOFF(%rax), %rdx
23299 movq foo@GOTTPOFF(%rip), %rax
23300 movq $foo@TPOFF, %rax'
23301 tls_first_major=2
23302 tls_first_minor=14
23303 tls_as_opt=--fatal-warnings
23304 ;;
23305 ia64-*-*)
23306 conftest_s='
23307 .section ".tdata","awT",@progbits
23308 foo: data8 25
23309 .text
23310 addl r16 = @ltoff(@dtpmod(foo#)), gp
23311 addl r17 = @ltoff(@dtprel(foo#)), gp
23312 addl r18 = @ltoff(@tprel(foo#)), gp
23313 addl r19 = @dtprel(foo#), gp
23314 adds r21 = @dtprel(foo#), r13
23315 movl r23 = @dtprel(foo#)
23316 addl r20 = @tprel(foo#), gp
23317 adds r22 = @tprel(foo#), r13
23318 movl r24 = @tprel(foo#)'
23319 tls_first_major=2
23320 tls_first_minor=13
23321 tls_as_opt=--fatal-warnings
23322 ;;
23323 mips*-*-*)
23324 conftest_s='
23325 .section .tdata,"awT",@progbits
23326 x:
23327 .word 2
23328 .text
23329 addiu $4, $28, %tlsgd(x)
23330 addiu $4, $28, %tlsldm(x)
23331 lui $4, %dtprel_hi(x)
23332 addiu $4, $4, %dtprel_lo(x)
23333 lw $4, %gottprel(x)($28)
23334 lui $4, %tprel_hi(x)
23335 addiu $4, $4, %tprel_lo(x)'
23336 tls_first_major=2
23337 tls_first_minor=16
23338 tls_as_opt='-32 --fatal-warnings'
23339 ;;
23340 m68k-*-*)
23341 conftest_s='
23342 .section .tdata,"awT",@progbits
23343 x:
23344 .word 2
23345 .text
23346 foo:
23347 move.l x@TLSGD(%a5),%a0
23348 move.l x@TLSLDM(%a5),%a0
23349 move.l x@TLSLDO(%a5),%a0
23350 move.l x@TLSIE(%a5),%a0
23351 move.l x@TLSLE(%a5),%a0'
23352 tls_first_major=2
23353 tls_first_minor=19
23354 tls_as_opt='--fatal-warnings'
23355 ;;
23356 powerpc-*-*)
23357 conftest_s='
23358 .section ".tdata","awT",@progbits
23359 .align 2
23360 ld0: .space 4
23361 ld1: .space 4
23362 x1: .space 4
23363 x2: .space 4
23364 x3: .space 4
23365 .text
23366 addi 3,31,ld0@got@tlsgd
23367 bl __tls_get_addr
23368 addi 3,31,x1@got@tlsld
23369 bl __tls_get_addr
23370 addi 9,3,x1@dtprel
23371 addis 9,3,x2@dtprel@ha
23372 addi 9,9,x2@dtprel@l
23373 lwz 9,x3@got@tprel(31)
23374 add 9,9,x@tls
23375 addi 9,2,x1@tprel
23376 addis 9,2,x2@tprel@ha
23377 addi 9,9,x2@tprel@l'
23378 tls_first_major=2
23379 tls_first_minor=14
23380 tls_as_opt="-a32 --fatal-warnings"
23381 ;;
23382 powerpc64-*-*)
23383 conftest_s='
23384 .section ".tdata","awT",@progbits
23385 .align 3
23386 ld0: .space 8
23387 ld1: .space 8
23388 x1: .space 8
23389 x2: .space 8
23390 x3: .space 8
23391 .text
23392 addi 3,2,ld0@got@tlsgd
23393 bl .__tls_get_addr
23394 nop
23395 addi 3,2,ld1@toc
23396 bl .__tls_get_addr
23397 nop
23398 addi 3,2,x1@got@tlsld
23399 bl .__tls_get_addr
23400 nop
23401 addi 9,3,x1@dtprel
23402 bl .__tls_get_addr
23403 nop
23404 addis 9,3,x2@dtprel@ha
23405 addi 9,9,x2@dtprel@l
23406 bl .__tls_get_addr
23407 nop
23408 ld 9,x3@got@dtprel(2)
23409 add 9,9,3
23410 bl .__tls_get_addr
23411 nop'
23412 tls_first_major=2
23413 tls_first_minor=14
23414 tls_as_opt="-a64 --fatal-warnings"
23415 ;;
23416 s390-*-*)
23417 conftest_s='
23418 .section ".tdata","awT",@progbits
23419 foo: .long 25
23420 .text
23421 .long foo@TLSGD
23422 .long foo@TLSLDM
23423 .long foo@DTPOFF
23424 .long foo@NTPOFF
23425 .long foo@GOTNTPOFF
23426 .long foo@INDNTPOFF
23427 l %r1,foo@GOTNTPOFF(%r12)
23428 l %r1,0(%r1):tls_load:foo
23429 bas %r14,0(%r1,%r13):tls_gdcall:foo
23430 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23431 tls_first_major=2
23432 tls_first_minor=14
23433 tls_as_opt="-m31 --fatal-warnings"
23434 ;;
23435 s390x-*-*)
23436 conftest_s='
23437 .section ".tdata","awT",@progbits
23438 foo: .long 25
23439 .text
23440 .quad foo@TLSGD
23441 .quad foo@TLSLDM
23442 .quad foo@DTPOFF
23443 .quad foo@NTPOFF
23444 .quad foo@GOTNTPOFF
23445 lg %r1,foo@GOTNTPOFF(%r12)
23446 larl %r1,foo@INDNTPOFF
23447 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23448 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23449 tls_first_major=2
23450 tls_first_minor=14
23451 tls_as_opt="-m64 -Aesame --fatal-warnings"
23452 ;;
23453 sh-*-* | sh[34]-*-*)
23454 conftest_s='
23455 .section ".tdata","awT",@progbits
23456 foo: .long 25
23457 .text
23458 .long foo@TLSGD
23459 .long foo@TLSLDM
23460 .long foo@DTPOFF
23461 .long foo@GOTTPOFF
23462 .long foo@TPOFF'
23463 tls_first_major=2
23464 tls_first_minor=13
23465 tls_as_opt=--fatal-warnings
23466 ;;
23467 sparc*-*-*)
23468 case "$target" in
23469 sparc*-sun-solaris2.*)
23470 on_solaris=yes
23471 tga_func=__tls_get_addr
23472 ;;
23473 *)
23474 on_solaris=no
23475 ;;
23476 esac
23477 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23478 conftest_s='
23479 .section ".tdata",#alloc,#write,#tls'
23480 tls_first_major=0
23481 tls_first_minor=0
23482 else
23483 conftest_s='
23484 .section ".tdata","awT",@progbits'
23485 tls_first_major=2
23486 tls_first_minor=14
23487 tls_as_opt="-32 --fatal-warnings"
23488 fi
23489 conftest_s="$conftest_s
23490 foo: .long 25
23491 .text
23492 sethi %tgd_hi22(foo), %o0
23493 add %o0, %tgd_lo10(foo), %o1
23494 add %l7, %o1, %o0, %tgd_add(foo)
23495 call __tls_get_addr, %tgd_call(foo)
23496 sethi %tldm_hi22(foo), %l1
23497 add %l1, %tldm_lo10(foo), %l2
23498 add %l7, %l2, %o0, %tldm_add(foo)
23499 call __tls_get_addr, %tldm_call(foo)
23500 sethi %tldo_hix22(foo), %l3
23501 xor %l3, %tldo_lox10(foo), %l4
23502 add %o0, %l4, %l5, %tldo_add(foo)
23503 sethi %tie_hi22(foo), %o3
23504 add %o3, %tie_lo10(foo), %o3
23505 ld [%l7 + %o3], %o2, %tie_ld(foo)
23506 add %g7, %o2, %o4, %tie_add(foo)
23507 sethi %tle_hix22(foo), %l1
23508 xor %l1, %tle_lox10(foo), %o5
23509 ld [%g7 + %o5], %o1"
23510 ;;
23511 tilepro*-*-*)
23512 conftest_s='
23513 .section ".tdata","awT",@progbits
23514 foo: .long 25
23515 .text
23516 addli r0, zero, tls_gd(foo)
23517 auli r0, zero, tls_gd_ha16(foo)
23518 addli r0, r0, tls_gd_lo16(foo)
23519 jal __tls_get_addr
23520 addli r0, zero, tls_ie(foo)
23521 auli r0, r0, tls_ie_ha16(foo)
23522 addli r0, r0, tls_ie_lo16(foo)'
23523 tls_first_major=2
23524 tls_first_minor=22
23525 tls_as_opt="--fatal-warnings"
23526 ;;
23527 tilegx*-*-*)
23528 conftest_s='
23529 .section ".tdata","awT",@progbits
23530 foo: .long 25
23531 .text
23532 shl16insli r0, zero, hw0_last_tls_gd(foo)
23533 shl16insli r0, zero, hw1_last_tls_gd(foo)
23534 shl16insli r0, r0, hw0_tls_gd(foo)
23535 jal __tls_get_addr
23536 shl16insli r0, zero, hw1_last_tls_ie(foo)
23537 shl16insli r0, r0, hw0_tls_ie(foo)'
23538 tls_first_major=2
23539 tls_first_minor=22
23540 tls_as_opt="--fatal-warnings"
23541 ;;
23542 xtensa*-*-*)
23543 conftest_s='
23544 .section ".tdata","awT",@progbits
23545 foo: .long 25
23546 .text
23547 movi a8, foo@TLSFUNC
23548 movi a10, foo@TLSARG
23549 callx8.tls a8, foo@TLSCALL'
23550 tls_first_major=2
23551 tls_first_minor=19
23552 ;;
23553 esac
23554 set_have_as_tls=no
23555 if test "x$enable_tls" = xno ; then
23556 : # TLS explicitly disabled.
23557 elif test "x$enable_tls" = xyes ; then
23558 set_have_as_tls=yes # TLS explicitly enabled.
23559 elif test -z "$tls_first_major"; then
23560 : # If we don't have a check, assume no support.
23561 else
23562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23563 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23564 if test "${gcc_cv_as_tls+set}" = set; then :
23565 $as_echo_n "(cached) " >&6
23566 else
23567 gcc_cv_as_tls=no
23568 if test $in_tree_gas = yes; then
23569 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23570 then gcc_cv_as_tls=yes
23571 fi
23572 elif test x$gcc_cv_as != x; then
23573 $as_echo "$conftest_s" > conftest.s
23574 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23576 (eval $ac_try) 2>&5
23577 ac_status=$?
23578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23579 test $ac_status = 0; }; }
23580 then
23581 gcc_cv_as_tls=yes
23582 else
23583 echo "configure: failed program was" >&5
23584 cat conftest.s >&5
23585 fi
23586 rm -f conftest.o conftest.s
23587 fi
23588 fi
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23590 $as_echo "$gcc_cv_as_tls" >&6; }
23591 if test $gcc_cv_as_tls = yes; then
23592 set_have_as_tls=yes
23593 fi
23594 fi
23595 case "$target" in
23596 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23597 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23598 # Sun style that Sun ld and GCC don't support any longer.
23599 *-*-solaris2.*)
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23601 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23602 ld_tls_support=no
23603 # Check ld and ld.so.1 TLS support.
23604 if echo "$ld_ver" | grep GNU > /dev/null; then
23605 # Assume all interesting versions of GNU ld have TLS support.
23606 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23607 ld_tls_support=yes
23608 else
23609 case "$target" in
23610 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23611 i?86-*-solaris2.9)
23612 min_tls_ld_vers_minor=374
23613 ;;
23614 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23615 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23616 min_tls_ld_vers_minor=343
23617 ;;
23618 esac
23619 if test "$ld_vers_major" -gt 1 || \
23620 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23621 ld_tls_support=yes
23622 else
23623 set_have_as_tls=no
23624 fi
23625 fi
23626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23627 $as_echo "$ld_tls_support" >&6; }
23628
23629 save_LIBS="$LIBS"
23630 save_LDFLAGS="$LDFLAGS"
23631 LIBS=
23632 LDFLAGS=
23633
23634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23635 $as_echo_n "checking library containing $tga_func... " >&6; }
23636 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23637 # (32-bit x86) only lived in libthread, so check for that. Keep
23638 # set_have_as_tls if found, disable if not.
23639 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23641 $as_echo_n "checking for library containing $tga_func... " >&6; }
23642 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23643 $as_echo_n "(cached) " >&6
23644 else
23645 ac_func_search_save_LIBS=$LIBS
23646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23647 /* end confdefs.h. */
23648
23649 /* Override any GCC internal prototype to avoid an error.
23650 Use char because int might match the return type of a GCC
23651 builtin and then its argument prototype would still apply. */
23652 #ifdef __cplusplus
23653 extern "C"
23654 #endif
23655 char $tga_func ();
23656 int
23657 main ()
23658 {
23659 return $tga_func ();
23660 ;
23661 return 0;
23662 }
23663 _ACEOF
23664 for ac_lib in '' thread; do
23665 if test -z "$ac_lib"; then
23666 ac_res="none required"
23667 else
23668 ac_res=-l$ac_lib
23669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23670 fi
23671 if ac_fn_c_try_link "$LINENO"; then :
23672 eval "$as_ac_Search=\$ac_res"
23673 fi
23674 rm -f core conftest.err conftest.$ac_objext \
23675 conftest$ac_exeext
23676 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23677 break
23678 fi
23679 done
23680 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23681
23682 else
23683 eval "$as_ac_Search=no"
23684 fi
23685 rm conftest.$ac_ext
23686 LIBS=$ac_func_search_save_LIBS
23687 fi
23688 eval ac_res=\$$as_ac_Search
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23690 $as_echo "$ac_res" >&6; }
23691 eval ac_res=\$$as_ac_Search
23692 if test "$ac_res" != no; then :
23693 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23694
23695 else
23696 set_have_as_tls=no
23697 fi
23698
23699 # Clear LIBS if we cannot support TLS.
23700 if test $set_have_as_tls = no; then
23701 LIBS=
23702 fi
23703 # Always define LIB_TLS_SPEC, even without TLS support.
23704
23705 cat >>confdefs.h <<_ACEOF
23706 #define LIB_TLS_SPEC "$LIBS"
23707 _ACEOF
23708
23709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23710 $as_echo "$LIBS" >&6; }
23711
23712 LIBS="$save_LIBS"
23713 LDFLAGS="$save_LDFLAGS"
23714 ;;
23715 esac
23716 if test $set_have_as_tls = yes ; then
23717
23718 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23719
23720 fi
23721
23722 # Target-specific assembler checks.
23723
23724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23725 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23726 gcc_cv_ld_static_dynamic=no
23727 gcc_cv_ld_static_option='-Bstatic'
23728 gcc_cv_ld_dynamic_option='-Bdynamic'
23729 if test $in_tree_ld = yes ; then
23730 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
23731 gcc_cv_ld_static_dynamic=yes
23732 fi
23733 elif test x$gcc_cv_ld != x; then
23734 # Check if linker supports -Bstatic/-Bdynamic option
23735 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23736 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23737 gcc_cv_ld_static_dynamic=yes
23738 else
23739 case "$target" in
23740 # HP-UX ld uses -a flags to select between shared and archive.
23741 *-*-hpux*)
23742 if test x"$gnu_ld" = xno; then
23743 gcc_cv_ld_static_dynamic=yes
23744 gcc_cv_ld_static_option="-aarchive_shared"
23745 gcc_cv_ld_dynamic_option="-adefault"
23746 fi
23747 ;;
23748 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23749 *-*-solaris2*)
23750 gcc_cv_ld_static_dynamic=yes
23751 ;;
23752 esac
23753 fi
23754 fi
23755 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23756
23757 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23758
23759
23760 cat >>confdefs.h <<_ACEOF
23761 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23762 _ACEOF
23763
23764
23765 cat >>confdefs.h <<_ACEOF
23766 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23767 _ACEOF
23768
23769 fi
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23771 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23772
23773 if test x"$demangler_in_ld" = xyes; then
23774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23775 $as_echo_n "checking linker --demangle support... " >&6; }
23776 gcc_cv_ld_demangle=no
23777 if test $in_tree_ld = yes; then
23778 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 \
23779 gcc_cv_ld_demangle=yes
23780 fi
23781 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23782 # Check if the GNU linker supports --demangle option
23783 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23784 gcc_cv_ld_demangle=yes
23785 fi
23786 fi
23787 if test x"$gcc_cv_ld_demangle" = xyes; then
23788
23789 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23790
23791 fi
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23793 $as_echo "$gcc_cv_ld_demangle" >&6; }
23794 fi
23795
23796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23797 $as_echo_n "checking linker plugin support... " >&6; }
23798 gcc_cv_lto_plugin=0
23799 if test -f liblto_plugin.la; then
23800 save_ld_ver="$ld_ver"
23801 save_ld_vers_major="$ld_vers_major"
23802 save_ld_vers_minor="$ld_vers_minor"
23803 save_ld_is_gold="$ld_is_gold"
23804
23805 ld_is_gold=no
23806
23807 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23808 ld_ver="GNU ld"
23809 # FIXME: ld_is_gold?
23810 ld_vers_major="$gcc_cv_gld_major_version"
23811 ld_vers_minor="$gcc_cv_gld_minor_version"
23812 else
23813 # Determine plugin linker version.
23814 # FIXME: Partial duplicate from above, generalize.
23815 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23816 if echo "$ld_ver" | grep GNU > /dev/null; then
23817 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23818 ld_is_gold=yes
23819 ld_vers=`echo $ld_ver | sed -n \
23820 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23821 else
23822 ld_vers=`echo $ld_ver | sed -n \
23823 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23824 fi
23825 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23826 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23827 fi
23828 fi
23829
23830 # Determine plugin support.
23831 if echo "$ld_ver" | grep GNU > /dev/null; then
23832 # Require GNU ld or gold 2.21+ for plugin support by default.
23833 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23834 gcc_cv_lto_plugin=2
23835 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23836 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23837 gcc_cv_lto_plugin=1
23838 fi
23839 fi
23840
23841 ld_ver="$save_ld_ver"
23842 ld_vers_major="$save_ld_vers_major"
23843 ld_vers_minor="$save_ld_vers_minor"
23844 ld_is_gold="$save_ld_is_gold"
23845 fi
23846
23847 cat >>confdefs.h <<_ACEOF
23848 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23849 _ACEOF
23850
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23852 $as_echo "$gcc_cv_lto_plugin" >&6; }
23853
23854 case "$target" in
23855 # All TARGET_ABI_OSF targets.
23856 alpha*-*-linux* | alpha*-*-*bsd*)
23857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23858 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23859 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23860 $as_echo_n "(cached) " >&6
23861 else
23862 gcc_cv_as_alpha_explicit_relocs=no
23863 if test $in_tree_gas = yes; then
23864 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23865 then gcc_cv_as_alpha_explicit_relocs=yes
23866 fi
23867 elif test x$gcc_cv_as != x; then
23868 $as_echo ' .set nomacro
23869 .text
23870 extbl $3, $2, $3 !lituse_bytoff!1
23871 ldq $2, a($29) !literal!1
23872 ldq $4, b($29) !literal!2
23873 ldq_u $3, 0($2) !lituse_base!1
23874 ldq $27, f($29) !literal!5
23875 jsr $26, ($27), f !lituse_jsr!5
23876 ldah $29, 0($26) !gpdisp!3
23877 lda $0, c($29) !gprel
23878 ldah $1, d($29) !gprelhigh
23879 lda $1, d($1) !gprellow
23880 lda $29, 0($29) !gpdisp!3' > conftest.s
23881 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23883 (eval $ac_try) 2>&5
23884 ac_status=$?
23885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23886 test $ac_status = 0; }; }
23887 then
23888 gcc_cv_as_alpha_explicit_relocs=yes
23889 else
23890 echo "configure: failed program was" >&5
23891 cat conftest.s >&5
23892 fi
23893 rm -f conftest.o conftest.s
23894 fi
23895 fi
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23897 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23898 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23899
23900 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23901
23902 fi
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23904 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23905 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23906 $as_echo_n "(cached) " >&6
23907 else
23908 gcc_cv_as_alpha_jsrdirect_relocs=no
23909 if test $in_tree_gas = yes; then
23910 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23911 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23912 fi
23913 elif test x$gcc_cv_as != x; then
23914 $as_echo ' .set nomacro
23915 .text
23916 ldq $27, a($29) !literal!1
23917 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23918 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23920 (eval $ac_try) 2>&5
23921 ac_status=$?
23922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23923 test $ac_status = 0; }; }
23924 then
23925 gcc_cv_as_alpha_jsrdirect_relocs=yes
23926 else
23927 echo "configure: failed program was" >&5
23928 cat conftest.s >&5
23929 fi
23930 rm -f conftest.o conftest.s
23931 fi
23932 fi
23933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23934 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23935 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23936
23937 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23938
23939 fi
23940 ;;
23941
23942 cris-*-*)
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23944 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23945 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23946 $as_echo_n "(cached) " >&6
23947 else
23948 gcc_cv_as_cris_no_mul_bug=no
23949 if test $in_tree_gas = yes; then
23950 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23951 then gcc_cv_as_cris_no_mul_bug=yes
23952 fi
23953 elif test x$gcc_cv_as != x; then
23954 $as_echo '.text' > conftest.s
23955 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23957 (eval $ac_try) 2>&5
23958 ac_status=$?
23959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23960 test $ac_status = 0; }; }
23961 then
23962 gcc_cv_as_cris_no_mul_bug=yes
23963 else
23964 echo "configure: failed program was" >&5
23965 cat conftest.s >&5
23966 fi
23967 rm -f conftest.o conftest.s
23968 fi
23969 fi
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23971 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23972 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23973
23974 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23975
23976 fi
23977 ;;
23978
23979 sparc*-*-*)
23980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23981 $as_echo_n "checking assembler for .register... " >&6; }
23982 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23983 $as_echo_n "(cached) " >&6
23984 else
23985 gcc_cv_as_sparc_register_op=no
23986 if test x$gcc_cv_as != x; then
23987 $as_echo '.register %g2, #scratch' > conftest.s
23988 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23990 (eval $ac_try) 2>&5
23991 ac_status=$?
23992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23993 test $ac_status = 0; }; }
23994 then
23995 gcc_cv_as_sparc_register_op=yes
23996 else
23997 echo "configure: failed program was" >&5
23998 cat conftest.s >&5
23999 fi
24000 rm -f conftest.o conftest.s
24001 fi
24002 fi
24003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24004 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24005 if test $gcc_cv_as_sparc_register_op = yes; then
24006
24007 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24008
24009 fi
24010
24011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24012 $as_echo_n "checking assembler for -relax option... " >&6; }
24013 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24014 $as_echo_n "(cached) " >&6
24015 else
24016 gcc_cv_as_sparc_relax=no
24017 if test x$gcc_cv_as != x; then
24018 $as_echo '.text' > conftest.s
24019 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24021 (eval $ac_try) 2>&5
24022 ac_status=$?
24023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24024 test $ac_status = 0; }; }
24025 then
24026 gcc_cv_as_sparc_relax=yes
24027 else
24028 echo "configure: failed program was" >&5
24029 cat conftest.s >&5
24030 fi
24031 rm -f conftest.o conftest.s
24032 fi
24033 fi
24034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24035 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24036 if test $gcc_cv_as_sparc_relax = yes; then
24037
24038 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24039
24040 fi
24041
24042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24043 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24044 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24045 $as_echo_n "(cached) " >&6
24046 else
24047 gcc_cv_as_sparc_gotdata_op=no
24048 if test x$gcc_cv_as != x; then
24049 $as_echo '.text
24050 .align 4
24051 foo:
24052 nop
24053 bar:
24054 sethi %gdop_hix22(foo), %g1
24055 xor %g1, %gdop_lox10(foo), %g1
24056 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24057 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24059 (eval $ac_try) 2>&5
24060 ac_status=$?
24061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24062 test $ac_status = 0; }; }
24063 then
24064 if test x$gcc_cv_ld != x \
24065 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24066 if test x$gcc_cv_objdump != x; then
24067 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24068 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24069 gcc_cv_as_sparc_gotdata_op=no
24070 else
24071 gcc_cv_as_sparc_gotdata_op=yes
24072 fi
24073 fi
24074 fi
24075 rm -f conftest
24076 else
24077 echo "configure: failed program was" >&5
24078 cat conftest.s >&5
24079 fi
24080 rm -f conftest.o conftest.s
24081 fi
24082 fi
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24084 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24085 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24086
24087 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24088
24089 fi
24090
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24092 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24093 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24094 $as_echo_n "(cached) " >&6
24095 else
24096 gcc_cv_as_sparc_ua_pcrel=no
24097 if test x$gcc_cv_as != x; then
24098 $as_echo '.text
24099 foo:
24100 nop
24101 .data
24102 .align 4
24103 .byte 0
24104 .uaword %r_disp32(foo)' > conftest.s
24105 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24107 (eval $ac_try) 2>&5
24108 ac_status=$?
24109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24110 test $ac_status = 0; }; }
24111 then
24112 if test x$gcc_cv_ld != x \
24113 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24114 gcc_cv_as_sparc_ua_pcrel=yes
24115 fi
24116 rm -f conftest
24117 else
24118 echo "configure: failed program was" >&5
24119 cat conftest.s >&5
24120 fi
24121 rm -f conftest.o conftest.s
24122 fi
24123 fi
24124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24125 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24126 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24127
24128 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24129
24130
24131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24132 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24133 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24134 $as_echo_n "(cached) " >&6
24135 else
24136 gcc_cv_as_sparc_ua_pcrel_hidden=no
24137 if test x$gcc_cv_as != x; then
24138 $as_echo '.data
24139 .align 4
24140 .byte 0x31
24141 .uaword %r_disp32(foo)
24142 .byte 0x32, 0x33, 0x34
24143 .global foo
24144 .hidden foo
24145 foo:
24146 .skip 4' > conftest.s
24147 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24149 (eval $ac_try) 2>&5
24150 ac_status=$?
24151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24152 test $ac_status = 0; }; }
24153 then
24154 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24155 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24156 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24157 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24158 if $gcc_cv_objdump -R conftest 2> /dev/null \
24159 | grep 'DISP32' > /dev/null 2>&1; then
24160 :
24161 else
24162 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24163 fi
24164 fi
24165 rm -f conftest
24166 else
24167 echo "configure: failed program was" >&5
24168 cat conftest.s >&5
24169 fi
24170 rm -f conftest.o conftest.s
24171 fi
24172 fi
24173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24174 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24175 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24176
24177 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24178
24179 fi
24180
24181 fi # unaligned pcrel relocs
24182
24183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24184 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24185 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24186 $as_echo_n "(cached) " >&6
24187 else
24188 gcc_cv_as_sparc_offsetable_lo10=no
24189 if test x$gcc_cv_as != x; then
24190 $as_echo '.text
24191 or %g1, %lo(ab) + 12, %g1
24192 or %g1, %lo(ab + 12), %g1' > conftest.s
24193 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24195 (eval $ac_try) 2>&5
24196 ac_status=$?
24197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24198 test $ac_status = 0; }; }
24199 then
24200 if test x$gcc_cv_objdump != x \
24201 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24202 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24203 gcc_cv_as_sparc_offsetable_lo10=yes
24204 fi
24205 else
24206 echo "configure: failed program was" >&5
24207 cat conftest.s >&5
24208 fi
24209 rm -f conftest.o conftest.s
24210 fi
24211 fi
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24213 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24214 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24215
24216 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24217
24218 fi
24219
24220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24221 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24222 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24223 $as_echo_n "(cached) " >&6
24224 else
24225 gcc_cv_as_sparc_fmaf=no
24226 if test x$gcc_cv_as != x; then
24227 $as_echo '.text
24228 .register %g2, #scratch
24229 .register %g3, #scratch
24230 .align 4
24231 fmaddd %f0, %f2, %f4, %f6
24232 addxccc %g1, %g2, %g3
24233 fsrl32 %f2, %f4, %f8
24234 fnaddd %f10, %f12, %f14' > conftest.s
24235 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24237 (eval $ac_try) 2>&5
24238 ac_status=$?
24239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24240 test $ac_status = 0; }; }
24241 then
24242 gcc_cv_as_sparc_fmaf=yes
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_sparc_fmaf" >&5
24251 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24252 if test $gcc_cv_as_sparc_fmaf = yes; then
24253
24254 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24255
24256 fi
24257 ;;
24258
24259 i[34567]86-*-* | x86_64-*-*)
24260 case $target_os in
24261 cygwin*)
24262 # Full C++ conformance when using a shared libstdc++-v3 requires some
24263 # support from the Cygwin DLL, which in more recent versions exports
24264 # wrappers to aid in interposing and redirecting operators new, delete,
24265 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24266 # are configuring for a version of Cygwin that exports the wrappers.
24267 if test x$host = x$target; then
24268 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24269 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24270 gcc_ac_cygwin_dll_wrappers=yes
24271 else
24272 gcc_ac_cygwin_dll_wrappers=no
24273 fi
24274
24275 else
24276 # Can't check presence of libc functions during cross-compile, so
24277 # we just have to assume we're building for an up-to-date target.
24278 gcc_ac_cygwin_dll_wrappers=yes
24279 fi
24280
24281 cat >>confdefs.h <<_ACEOF
24282 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24283 _ACEOF
24284
24285 esac
24286 case $target_os in
24287 cygwin* | pe | mingw32* | interix*)
24288 # Recent binutils allows the three-operand form of ".comm" on PE. This
24289 # definition is used unconditionally to initialise the default state of
24290 # the target option variable that governs usage of the feature.
24291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24292 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24293 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24294 $as_echo_n "(cached) " >&6
24295 else
24296 gcc_cv_as_comm_has_align=no
24297 if test $in_tree_gas = yes; then
24298 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24299 then gcc_cv_as_comm_has_align=yes
24300 fi
24301 elif test x$gcc_cv_as != x; then
24302 $as_echo '.comm foo,1,32' > conftest.s
24303 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24305 (eval $ac_try) 2>&5
24306 ac_status=$?
24307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24308 test $ac_status = 0; }; }
24309 then
24310 gcc_cv_as_comm_has_align=yes
24311 else
24312 echo "configure: failed program was" >&5
24313 cat conftest.s >&5
24314 fi
24315 rm -f conftest.o conftest.s
24316 fi
24317 fi
24318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24319 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24320
24321
24322 cat >>confdefs.h <<_ACEOF
24323 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24324 _ACEOF
24325
24326 # Used for DWARF 2 in PE
24327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24328 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24329 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24330 $as_echo_n "(cached) " >&6
24331 else
24332 gcc_cv_as_ix86_pe_secrel32=no
24333 if test $in_tree_gas = yes; then
24334 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24335 then gcc_cv_as_ix86_pe_secrel32=yes
24336 fi
24337 elif test x$gcc_cv_as != x; then
24338 $as_echo '.text
24339 foo: nop
24340 .data
24341 .secrel32 foo' > conftest.s
24342 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24344 (eval $ac_try) 2>&5
24345 ac_status=$?
24346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24347 test $ac_status = 0; }; }
24348 then
24349 if test x$gcc_cv_ld != x \
24350 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24351 gcc_cv_as_ix86_pe_secrel32=yes
24352 fi
24353 rm -f conftest
24354 else
24355 echo "configure: failed program was" >&5
24356 cat conftest.s >&5
24357 fi
24358 rm -f conftest.o conftest.s
24359 fi
24360 fi
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24362 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24363 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24364
24365 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24366
24367 fi
24368 # Test if the assembler supports the extended form of the .section
24369 # directive that specifies section alignment. LTO support uses this,
24370 # but normally only after installation, so we warn but don't fail the
24371 # configure if LTO is enabled but the assembler does not support it.
24372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24373 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24374 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24375 $as_echo_n "(cached) " >&6
24376 else
24377 gcc_cv_as_section_has_align=no
24378 if test $in_tree_gas = yes; then
24379 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24380 then gcc_cv_as_section_has_align=yes
24381 fi
24382 elif test x$gcc_cv_as != x; then
24383 $as_echo '.section lto_test,"dr0"' > conftest.s
24384 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24386 (eval $ac_try) 2>&5
24387 ac_status=$?
24388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24389 test $ac_status = 0; }; }
24390 then
24391 gcc_cv_as_section_has_align=yes
24392 else
24393 echo "configure: failed program was" >&5
24394 cat conftest.s >&5
24395 fi
24396 rm -f conftest.o conftest.s
24397 fi
24398 fi
24399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24400 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24401
24402 if test x$gcc_cv_as_section_has_align != xyes; then
24403 case ",$enable_languages," in
24404 *,lto,*)
24405 { $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
24406 $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;}
24407 ;;
24408 esac
24409 fi
24410 # Test if the assembler supports the section flag 'e' for specifying
24411 # an excluded section.
24412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24413 $as_echo_n "checking assembler for .section with e... " >&6; }
24414 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24415 $as_echo_n "(cached) " >&6
24416 else
24417 gcc_cv_as_section_has_e=no
24418 if test $in_tree_gas = yes; then
24419 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24420 then gcc_cv_as_section_has_e=yes
24421 fi
24422 elif test x$gcc_cv_as != x; then
24423 $as_echo '.section foo1,"e"
24424 .byte 0,0,0,0' > conftest.s
24425 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24427 (eval $ac_try) 2>&5
24428 ac_status=$?
24429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24430 test $ac_status = 0; }; }
24431 then
24432 gcc_cv_as_section_has_e=yes
24433 else
24434 echo "configure: failed program was" >&5
24435 cat conftest.s >&5
24436 fi
24437 rm -f conftest.o conftest.s
24438 fi
24439 fi
24440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24441 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24442
24443
24444 cat >>confdefs.h <<_ACEOF
24445 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24446 _ACEOF
24447
24448 ;;
24449 esac
24450
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24452 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24453 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24454 $as_echo_n "(cached) " >&6
24455 else
24456 gcc_cv_as_ix86_filds=no
24457 if test x$gcc_cv_as != x; then
24458 $as_echo 'filds mem; fists mem' > conftest.s
24459 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24461 (eval $ac_try) 2>&5
24462 ac_status=$?
24463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24464 test $ac_status = 0; }; }
24465 then
24466 gcc_cv_as_ix86_filds=yes
24467 else
24468 echo "configure: failed program was" >&5
24469 cat conftest.s >&5
24470 fi
24471 rm -f conftest.o conftest.s
24472 fi
24473 fi
24474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24475 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24476 if test $gcc_cv_as_ix86_filds = yes; then
24477
24478 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24479
24480 fi
24481
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24483 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24484 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24485 $as_echo_n "(cached) " >&6
24486 else
24487 gcc_cv_as_ix86_fildq=no
24488 if test x$gcc_cv_as != x; then
24489 $as_echo 'fildq mem; fistpq mem' > conftest.s
24490 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24492 (eval $ac_try) 2>&5
24493 ac_status=$?
24494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24495 test $ac_status = 0; }; }
24496 then
24497 gcc_cv_as_ix86_fildq=yes
24498 else
24499 echo "configure: failed program was" >&5
24500 cat conftest.s >&5
24501 fi
24502 rm -f conftest.o conftest.s
24503 fi
24504 fi
24505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24506 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24507 if test $gcc_cv_as_ix86_fildq = yes; then
24508
24509 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24510
24511 fi
24512
24513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24514 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24515 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24516 $as_echo_n "(cached) " >&6
24517 else
24518 gcc_cv_as_ix86_cmov_sun_syntax=no
24519 if test x$gcc_cv_as != x; then
24520 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24521 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24523 (eval $ac_try) 2>&5
24524 ac_status=$?
24525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24526 test $ac_status = 0; }; }
24527 then
24528 gcc_cv_as_ix86_cmov_sun_syntax=yes
24529 else
24530 echo "configure: failed program was" >&5
24531 cat conftest.s >&5
24532 fi
24533 rm -f conftest.o conftest.s
24534 fi
24535 fi
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24537 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24538 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24539
24540 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24541
24542 fi
24543
24544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24545 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24546 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24547 $as_echo_n "(cached) " >&6
24548 else
24549 gcc_cv_as_ix86_ffreep=no
24550 if test x$gcc_cv_as != x; then
24551 $as_echo 'ffreep %st(1)' > conftest.s
24552 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24554 (eval $ac_try) 2>&5
24555 ac_status=$?
24556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24557 test $ac_status = 0; }; }
24558 then
24559 gcc_cv_as_ix86_ffreep=yes
24560 else
24561 echo "configure: failed program was" >&5
24562 cat conftest.s >&5
24563 fi
24564 rm -f conftest.o conftest.s
24565 fi
24566 fi
24567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24568 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24569 if test $gcc_cv_as_ix86_ffreep = yes; then
24570
24571 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24572
24573 fi
24574
24575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24576 $as_echo_n "checking assembler for .quad directive... " >&6; }
24577 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24578 $as_echo_n "(cached) " >&6
24579 else
24580 gcc_cv_as_ix86_quad=no
24581 if test x$gcc_cv_as != x; then
24582 $as_echo '.quad 0' > conftest.s
24583 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24585 (eval $ac_try) 2>&5
24586 ac_status=$?
24587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24588 test $ac_status = 0; }; }
24589 then
24590 gcc_cv_as_ix86_quad=yes
24591 else
24592 echo "configure: failed program was" >&5
24593 cat conftest.s >&5
24594 fi
24595 rm -f conftest.o conftest.s
24596 fi
24597 fi
24598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24599 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24600 if test $gcc_cv_as_ix86_quad = yes; then
24601
24602 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24603
24604 fi
24605
24606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24607 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24608 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24609 $as_echo_n "(cached) " >&6
24610 else
24611 gcc_cv_as_ix86_sahf=no
24612 if test x$gcc_cv_as != x; then
24613 $as_echo '.code64
24614 sahf' > conftest.s
24615 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24617 (eval $ac_try) 2>&5
24618 ac_status=$?
24619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24620 test $ac_status = 0; }; }
24621 then
24622 gcc_cv_as_ix86_sahf=yes
24623 else
24624 echo "configure: failed program was" >&5
24625 cat conftest.s >&5
24626 fi
24627 rm -f conftest.o conftest.s
24628 fi
24629 fi
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24631 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24632 if test $gcc_cv_as_ix86_sahf = yes; then
24633
24634 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24635
24636 fi
24637
24638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24639 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24640 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24641 $as_echo_n "(cached) " >&6
24642 else
24643 gcc_cv_as_ix86_hle=no
24644 if test x$gcc_cv_as != x; then
24645 $as_echo '.code64
24646 lock xacquire cmpxchg %esi, (%rcx)
24647 ' > conftest.s
24648 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24650 (eval $ac_try) 2>&5
24651 ac_status=$?
24652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24653 test $ac_status = 0; }; }
24654 then
24655 gcc_cv_as_ix86_hle=yes
24656 else
24657 echo "configure: failed program was" >&5
24658 cat conftest.s >&5
24659 fi
24660 rm -f conftest.o conftest.s
24661 fi
24662 fi
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24664 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24665 if test $gcc_cv_as_ix86_hle = yes; then
24666
24667 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24668
24669 fi
24670
24671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24672 $as_echo_n "checking assembler for swap suffix... " >&6; }
24673 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24674 $as_echo_n "(cached) " >&6
24675 else
24676 gcc_cv_as_ix86_swap=no
24677 if test x$gcc_cv_as != x; then
24678 $as_echo 'movl.s %esp, %ebp' > conftest.s
24679 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24681 (eval $ac_try) 2>&5
24682 ac_status=$?
24683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24684 test $ac_status = 0; }; }
24685 then
24686 gcc_cv_as_ix86_swap=yes
24687 else
24688 echo "configure: failed program was" >&5
24689 cat conftest.s >&5
24690 fi
24691 rm -f conftest.o conftest.s
24692 fi
24693 fi
24694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24695 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24696 if test $gcc_cv_as_ix86_swap = yes; then
24697
24698 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24699
24700 fi
24701
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24703 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24704 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24705 $as_echo_n "(cached) " >&6
24706 else
24707 gcc_cv_as_ix86_diff_sect_delta=no
24708 if test x$gcc_cv_as != x; then
24709 $as_echo '.section .rodata
24710 .L1:
24711 .long .L2-.L1
24712 .long .L3-.L1
24713 .text
24714 .L3: nop
24715 .L2: nop' > conftest.s
24716 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24718 (eval $ac_try) 2>&5
24719 ac_status=$?
24720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24721 test $ac_status = 0; }; }
24722 then
24723 gcc_cv_as_ix86_diff_sect_delta=yes
24724 else
24725 echo "configure: failed program was" >&5
24726 cat conftest.s >&5
24727 fi
24728 rm -f conftest.o conftest.s
24729 fi
24730 fi
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24732 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24733 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24734
24735 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24736
24737 fi
24738
24739 # These two are used unconditionally by i386.[ch]; it is to be defined
24740 # to 1 if the feature is present, 0 otherwise.
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24742 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24743 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24744 $as_echo_n "(cached) " >&6
24745 else
24746 gcc_cv_as_ix86_gotoff_in_data=no
24747 if test $in_tree_gas = yes; then
24748 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24749 then gcc_cv_as_ix86_gotoff_in_data=yes
24750 fi
24751 elif test x$gcc_cv_as != x; then
24752 $as_echo ' .text
24753 .L0:
24754 nop
24755 .data
24756 .long .L0@GOTOFF' > conftest.s
24757 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24759 (eval $ac_try) 2>&5
24760 ac_status=$?
24761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24762 test $ac_status = 0; }; }
24763 then
24764 gcc_cv_as_ix86_gotoff_in_data=yes
24765 else
24766 echo "configure: failed program was" >&5
24767 cat conftest.s >&5
24768 fi
24769 rm -f conftest.o conftest.s
24770 fi
24771 fi
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24773 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24774
24775
24776 cat >>confdefs.h <<_ACEOF
24777 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24778 _ACEOF
24779
24780
24781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24782 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24783 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24784 $as_echo_n "(cached) " >&6
24785 else
24786 gcc_cv_as_ix86_rep_lock_prefix=no
24787 if test x$gcc_cv_as != x; then
24788 $as_echo 'rep movsl
24789 lock addl %edi, (%eax,%esi)
24790 lock orl $0, (%esp)' > conftest.s
24791 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24793 (eval $ac_try) 2>&5
24794 ac_status=$?
24795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24796 test $ac_status = 0; }; }
24797 then
24798 gcc_cv_as_ix86_rep_lock_prefix=yes
24799 else
24800 echo "configure: failed program was" >&5
24801 cat conftest.s >&5
24802 fi
24803 rm -f conftest.o conftest.s
24804 fi
24805 fi
24806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24807 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24808 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24809
24810 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24811
24812 fi
24813
24814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24815 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24816 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24817 $as_echo_n "(cached) " >&6
24818 else
24819 gcc_cv_as_ix86_tlsgdplt=no
24820 if test x$gcc_cv_as != x; then
24821 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24822 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24824 (eval $ac_try) 2>&5
24825 ac_status=$?
24826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24827 test $ac_status = 0; }; }
24828 then
24829 if test x$gcc_cv_ld != x \
24830 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24831 gcc_cv_as_ix86_tlsgdplt=yes
24832 fi
24833 rm -f conftest
24834 else
24835 echo "configure: failed program was" >&5
24836 cat conftest.s >&5
24837 fi
24838 rm -f conftest.o conftest.s
24839 fi
24840 fi
24841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24842 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24843 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24844
24845 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24846
24847 fi
24848
24849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24850 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24851 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24852 $as_echo_n "(cached) " >&6
24853 else
24854 gcc_cv_as_ix86_tlsldmplt=no
24855 if test x$gcc_cv_as != x; then
24856 $as_echo 'tls_ld:
24857 call tls_ld@tlsldmplt' > conftest.s
24858 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24860 (eval $ac_try) 2>&5
24861 ac_status=$?
24862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24863 test $ac_status = 0; }; }
24864 then
24865 if test x$gcc_cv_ld != x \
24866 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24867 gcc_cv_as_ix86_tlsldmplt=yes
24868 fi
24869 rm -f conftest
24870 else
24871 echo "configure: failed program was" >&5
24872 cat conftest.s >&5
24873 fi
24874 rm -f conftest.o conftest.s
24875 fi
24876 fi
24877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24878 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24879 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24880
24881 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24882
24883 fi
24884
24885 ;;
24886
24887 ia64*-*-*)
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24889 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24890 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24891 $as_echo_n "(cached) " >&6
24892 else
24893 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24894 if test $in_tree_gas = yes; then
24895 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24896 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24897 fi
24898 elif test x$gcc_cv_as != x; then
24899 $as_echo ' .text
24900 addl r15 = @ltoffx(x#), gp
24901 ;;
24902 ld8.mov r16 = [r15], x#' > conftest.s
24903 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24905 (eval $ac_try) 2>&5
24906 ac_status=$?
24907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24908 test $ac_status = 0; }; }
24909 then
24910 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24911 else
24912 echo "configure: failed program was" >&5
24913 cat conftest.s >&5
24914 fi
24915 rm -f conftest.o conftest.s
24916 fi
24917 fi
24918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24919 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24920 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24921
24922 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24923
24924 fi
24925
24926 ;;
24927
24928 powerpc*-*-*)
24929 case $target in
24930 *-*-aix*) conftest_s=' .machine "pwr5"
24931 .csect .text[PR]
24932 mfcr 3,128';;
24933 *-*-darwin*)
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24935 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24936 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24937 $as_echo_n "(cached) " >&6
24938 else
24939 gcc_cv_as_machine_directive=no
24940 if test x$gcc_cv_as != x; then
24941 $as_echo ' .machine ppc7400' > conftest.s
24942 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24944 (eval $ac_try) 2>&5
24945 ac_status=$?
24946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24947 test $ac_status = 0; }; }
24948 then
24949 gcc_cv_as_machine_directive=yes
24950 else
24951 echo "configure: failed program was" >&5
24952 cat conftest.s >&5
24953 fi
24954 rm -f conftest.o conftest.s
24955 fi
24956 fi
24957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24958 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24959
24960 if test x$gcc_cv_as_machine_directive != xyes; then
24961 echo "*** This target requires an assembler supporting \".machine\"" >&2
24962 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24963 test x$build = x$target && exit 1
24964 fi
24965 conftest_s=' .text
24966 mfcr r3,128';;
24967 *) conftest_s=' .machine power4
24968 .text
24969 mfcr 3,128';;
24970 esac
24971
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24973 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24974 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24975 $as_echo_n "(cached) " >&6
24976 else
24977 gcc_cv_as_powerpc_mfcrf=no
24978 if test $in_tree_gas = yes; then
24979 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24980 then gcc_cv_as_powerpc_mfcrf=yes
24981 fi
24982 elif test x$gcc_cv_as != x; then
24983 $as_echo "$conftest_s" > conftest.s
24984 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24986 (eval $ac_try) 2>&5
24987 ac_status=$?
24988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24989 test $ac_status = 0; }; }
24990 then
24991 gcc_cv_as_powerpc_mfcrf=yes
24992 else
24993 echo "configure: failed program was" >&5
24994 cat conftest.s >&5
24995 fi
24996 rm -f conftest.o conftest.s
24997 fi
24998 fi
24999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25000 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25001 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25002
25003 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25004
25005 fi
25006
25007 case $target in
25008 *-*-aix*) conftest_s=' .machine "pwr5"
25009 .csect .text[PR]
25010 popcntb 3,3';;
25011 *) conftest_s=' .machine power5
25012 .text
25013 popcntb 3,3';;
25014 esac
25015
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25017 $as_echo_n "checking assembler for popcntb support... " >&6; }
25018 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25019 $as_echo_n "(cached) " >&6
25020 else
25021 gcc_cv_as_powerpc_popcntb=no
25022 if test $in_tree_gas = yes; then
25023 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25024 then gcc_cv_as_powerpc_popcntb=yes
25025 fi
25026 elif test x$gcc_cv_as != x; then
25027 $as_echo "$conftest_s" > conftest.s
25028 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25030 (eval $ac_try) 2>&5
25031 ac_status=$?
25032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25033 test $ac_status = 0; }; }
25034 then
25035 gcc_cv_as_powerpc_popcntb=yes
25036 else
25037 echo "configure: failed program was" >&5
25038 cat conftest.s >&5
25039 fi
25040 rm -f conftest.o conftest.s
25041 fi
25042 fi
25043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25044 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25045 if test $gcc_cv_as_powerpc_popcntb = yes; then
25046
25047 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25048
25049 fi
25050
25051 case $target in
25052 *-*-aix*) conftest_s=' .machine "pwr5x"
25053 .csect .text[PR]
25054 frin 1,1';;
25055 *) conftest_s=' .machine power5
25056 .text
25057 frin 1,1';;
25058 esac
25059
25060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25061 $as_echo_n "checking assembler for fp round support... " >&6; }
25062 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25063 $as_echo_n "(cached) " >&6
25064 else
25065 gcc_cv_as_powerpc_fprnd=no
25066 if test $in_tree_gas = yes; then
25067 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25068 then gcc_cv_as_powerpc_fprnd=yes
25069 fi
25070 elif test x$gcc_cv_as != x; then
25071 $as_echo "$conftest_s" > conftest.s
25072 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25074 (eval $ac_try) 2>&5
25075 ac_status=$?
25076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25077 test $ac_status = 0; }; }
25078 then
25079 gcc_cv_as_powerpc_fprnd=yes
25080 else
25081 echo "configure: failed program was" >&5
25082 cat conftest.s >&5
25083 fi
25084 rm -f conftest.o conftest.s
25085 fi
25086 fi
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25088 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25089 if test $gcc_cv_as_powerpc_fprnd = yes; then
25090
25091 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25092
25093 fi
25094
25095 case $target in
25096 *-*-aix*) conftest_s=' .machine "pwr6"
25097 .csect .text[PR]
25098 mffgpr 1,3';;
25099 *) conftest_s=' .machine power6
25100 .text
25101 mffgpr 1,3';;
25102 esac
25103
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25105 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25106 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25107 $as_echo_n "(cached) " >&6
25108 else
25109 gcc_cv_as_powerpc_mfpgpr=no
25110 if test $in_tree_gas = yes; then
25111 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25112 then gcc_cv_as_powerpc_mfpgpr=yes
25113 fi
25114 elif test x$gcc_cv_as != x; then
25115 $as_echo "$conftest_s" > conftest.s
25116 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25118 (eval $ac_try) 2>&5
25119 ac_status=$?
25120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25121 test $ac_status = 0; }; }
25122 then
25123 gcc_cv_as_powerpc_mfpgpr=yes
25124 else
25125 echo "configure: failed program was" >&5
25126 cat conftest.s >&5
25127 fi
25128 rm -f conftest.o conftest.s
25129 fi
25130 fi
25131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25132 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25133 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25134
25135 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25136
25137 fi
25138
25139 case $target in
25140 *-*-aix*) conftest_s=' .csect .text[PR]
25141 LCF..0:
25142 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25143 *-*-darwin*)
25144 conftest_s=' .text
25145 LCF0:
25146 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25147 *) conftest_s=' .text
25148 .LCF0:
25149 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25150 esac
25151
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25153 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25154 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25155 $as_echo_n "(cached) " >&6
25156 else
25157 gcc_cv_as_powerpc_rel16=no
25158 if test $in_tree_gas = yes; then
25159 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25160 then gcc_cv_as_powerpc_rel16=yes
25161 fi
25162 elif test x$gcc_cv_as != x; then
25163 $as_echo "$conftest_s" > conftest.s
25164 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25166 (eval $ac_try) 2>&5
25167 ac_status=$?
25168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25169 test $ac_status = 0; }; }
25170 then
25171 gcc_cv_as_powerpc_rel16=yes
25172 else
25173 echo "configure: failed program was" >&5
25174 cat conftest.s >&5
25175 fi
25176 rm -f conftest.o conftest.s
25177 fi
25178 fi
25179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25180 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25181 if test $gcc_cv_as_powerpc_rel16 = yes; then
25182
25183 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25184
25185 fi
25186
25187 case $target in
25188 *-*-aix*) conftest_s=' .machine "pwr6"
25189 .csect .text[PR]
25190 cmpb 3,4,5';;
25191 *) conftest_s=' .machine power6
25192 .text
25193 cmpb 3,4,5';;
25194 esac
25195
25196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25197 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25198 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25199 $as_echo_n "(cached) " >&6
25200 else
25201 gcc_cv_as_powerpc_cmpb=no
25202 if test $in_tree_gas = yes; then
25203 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25204 then gcc_cv_as_powerpc_cmpb=yes
25205 fi
25206 elif test x$gcc_cv_as != x; then
25207 $as_echo "$conftest_s" > conftest.s
25208 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25210 (eval $ac_try) 2>&5
25211 ac_status=$?
25212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25213 test $ac_status = 0; }; }
25214 then
25215 gcc_cv_as_powerpc_cmpb=yes
25216 else
25217 echo "configure: failed program was" >&5
25218 cat conftest.s >&5
25219 fi
25220 rm -f conftest.o conftest.s
25221 fi
25222 fi
25223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25224 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25225 if test $gcc_cv_as_powerpc_cmpb = yes; then
25226
25227 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25228
25229 fi
25230
25231 case $target in
25232 *-*-aix*) conftest_s=' .machine "pwr6"
25233 .csect .text[PR]
25234 dadd 1,2,3';;
25235 *) conftest_s=' .machine power6
25236 .text
25237 dadd 1,2,3';;
25238 esac
25239
25240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25241 $as_echo_n "checking assembler for decimal float support... " >&6; }
25242 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25243 $as_echo_n "(cached) " >&6
25244 else
25245 gcc_cv_as_powerpc_dfp=no
25246 if test $in_tree_gas = yes; then
25247 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25248 then gcc_cv_as_powerpc_dfp=yes
25249 fi
25250 elif test x$gcc_cv_as != x; then
25251 $as_echo "$conftest_s" > conftest.s
25252 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25254 (eval $ac_try) 2>&5
25255 ac_status=$?
25256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25257 test $ac_status = 0; }; }
25258 then
25259 gcc_cv_as_powerpc_dfp=yes
25260 else
25261 echo "configure: failed program was" >&5
25262 cat conftest.s >&5
25263 fi
25264 rm -f conftest.o conftest.s
25265 fi
25266 fi
25267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25268 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25269 if test $gcc_cv_as_powerpc_dfp = yes; then
25270
25271 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25272
25273 fi
25274
25275 case $target in
25276 *-*-aix*) conftest_s=' .machine "pwr7"
25277 .csect .text[PR]
25278 lxvd2x 1,2,3';;
25279 *) conftest_s=' .machine power7
25280 .text
25281 lxvd2x 1,2,3';;
25282 esac
25283
25284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25285 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25286 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25287 $as_echo_n "(cached) " >&6
25288 else
25289 gcc_cv_as_powerpc_vsx=no
25290 if test $in_tree_gas = yes; then
25291 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25292 then gcc_cv_as_powerpc_vsx=yes
25293 fi
25294 elif test x$gcc_cv_as != x; then
25295 $as_echo "$conftest_s" > conftest.s
25296 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25298 (eval $ac_try) 2>&5
25299 ac_status=$?
25300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25301 test $ac_status = 0; }; }
25302 then
25303 gcc_cv_as_powerpc_vsx=yes
25304 else
25305 echo "configure: failed program was" >&5
25306 cat conftest.s >&5
25307 fi
25308 rm -f conftest.o conftest.s
25309 fi
25310 fi
25311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25312 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25313 if test $gcc_cv_as_powerpc_vsx = yes; then
25314
25315 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25316
25317 fi
25318
25319 case $target in
25320 *-*-aix*) conftest_s=' .machine "pwr7"
25321 .csect .text[PR]
25322 popcntd 3,3';;
25323 *) conftest_s=' .machine power7
25324 .text
25325 popcntd 3,3';;
25326 esac
25327
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25329 $as_echo_n "checking assembler for popcntd support... " >&6; }
25330 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25331 $as_echo_n "(cached) " >&6
25332 else
25333 gcc_cv_as_powerpc_popcntd=no
25334 if test $in_tree_gas = yes; then
25335 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25336 then gcc_cv_as_powerpc_popcntd=yes
25337 fi
25338 elif test x$gcc_cv_as != x; then
25339 $as_echo "$conftest_s" > conftest.s
25340 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25342 (eval $ac_try) 2>&5
25343 ac_status=$?
25344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25345 test $ac_status = 0; }; }
25346 then
25347 gcc_cv_as_powerpc_popcntd=yes
25348 else
25349 echo "configure: failed program was" >&5
25350 cat conftest.s >&5
25351 fi
25352 rm -f conftest.o conftest.s
25353 fi
25354 fi
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25356 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25357 if test $gcc_cv_as_powerpc_popcntd = yes; then
25358
25359 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25360
25361 fi
25362
25363 case $target in
25364 *-*-aix*) conftest_s=' .csect .text[PR]
25365 lwsync';;
25366 *) conftest_s=' .text
25367 lwsync';;
25368 esac
25369
25370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25371 $as_echo_n "checking assembler for lwsync support... " >&6; }
25372 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25373 $as_echo_n "(cached) " >&6
25374 else
25375 gcc_cv_as_powerpc_lwsync=no
25376 if test $in_tree_gas = yes; then
25377 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25378 then gcc_cv_as_powerpc_lwsync=yes
25379 fi
25380 elif test x$gcc_cv_as != x; then
25381 $as_echo "$conftest_s" > conftest.s
25382 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25384 (eval $ac_try) 2>&5
25385 ac_status=$?
25386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25387 test $ac_status = 0; }; }
25388 then
25389 gcc_cv_as_powerpc_lwsync=yes
25390 else
25391 echo "configure: failed program was" >&5
25392 cat conftest.s >&5
25393 fi
25394 rm -f conftest.o conftest.s
25395 fi
25396 fi
25397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25398 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25399 if test $gcc_cv_as_powerpc_lwsync = yes; then
25400
25401 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25402
25403 fi
25404
25405 case $target in
25406 *-*-aix*) conftest_s=' .machine "476"
25407 .csect .text[PR]
25408 dci 0';;
25409 *) conftest_s=' .machine "476"
25410 .text
25411 dci 0';;
25412 esac
25413
25414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25415 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25416 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25417 $as_echo_n "(cached) " >&6
25418 else
25419 gcc_cv_as_powerpc_dci=no
25420 if test $in_tree_gas = yes; then
25421 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25422 then gcc_cv_as_powerpc_dci=yes
25423 fi
25424 elif test x$gcc_cv_as != x; then
25425 $as_echo "$conftest_s" > conftest.s
25426 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25428 (eval $ac_try) 2>&5
25429 ac_status=$?
25430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25431 test $ac_status = 0; }; }
25432 then
25433 gcc_cv_as_powerpc_dci=yes
25434 else
25435 echo "configure: failed program was" >&5
25436 cat conftest.s >&5
25437 fi
25438 rm -f conftest.o conftest.s
25439 fi
25440 fi
25441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25442 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25443 if test $gcc_cv_as_powerpc_dci = yes; then
25444
25445 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25446
25447 fi
25448
25449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25450 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25451 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25452 $as_echo_n "(cached) " >&6
25453 else
25454 gcc_cv_as_powerpc_gnu_attribute=no
25455 if test $in_tree_gas = yes; then
25456 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25457 then gcc_cv_as_powerpc_gnu_attribute=yes
25458 fi
25459 elif test x$gcc_cv_as != x; then
25460 $as_echo '.gnu_attribute 4,1' > conftest.s
25461 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25463 (eval $ac_try) 2>&5
25464 ac_status=$?
25465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25466 test $ac_status = 0; }; }
25467 then
25468 gcc_cv_as_powerpc_gnu_attribute=yes
25469 else
25470 echo "configure: failed program was" >&5
25471 cat conftest.s >&5
25472 fi
25473 rm -f conftest.o conftest.s
25474 fi
25475 fi
25476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25477 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25478 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25479
25480 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25481
25482 fi
25483
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25485 $as_echo_n "checking assembler for tls marker support... " >&6; }
25486 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25487 $as_echo_n "(cached) " >&6
25488 else
25489 gcc_cv_as_powerpc_tls_markers=no
25490 if test $in_tree_gas = yes; then
25491 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25492 then gcc_cv_as_powerpc_tls_markers=yes
25493 fi
25494 elif test x$gcc_cv_as != x; then
25495 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25496 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25498 (eval $ac_try) 2>&5
25499 ac_status=$?
25500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25501 test $ac_status = 0; }; }
25502 then
25503 gcc_cv_as_powerpc_tls_markers=yes
25504 else
25505 echo "configure: failed program was" >&5
25506 cat conftest.s >&5
25507 fi
25508 rm -f conftest.o conftest.s
25509 fi
25510 fi
25511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25512 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25513 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25514
25515 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25516
25517 fi
25518
25519 case $target in
25520 *-*-aix*)
25521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25522 $as_echo_n "checking assembler for .ref support... " >&6; }
25523 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25524 $as_echo_n "(cached) " >&6
25525 else
25526 gcc_cv_as_aix_ref=no
25527 if test $in_tree_gas = yes; then
25528 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25529 then :
25530 fi
25531 elif test x$gcc_cv_as != x; then
25532 $as_echo ' .csect stuff[rw]
25533 stuff:
25534 .long 1
25535 .extern sym
25536 .ref sym
25537 ' > conftest.s
25538 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25540 (eval $ac_try) 2>&5
25541 ac_status=$?
25542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25543 test $ac_status = 0; }; }
25544 then
25545 gcc_cv_as_aix_ref=yes
25546 else
25547 echo "configure: failed program was" >&5
25548 cat conftest.s >&5
25549 fi
25550 rm -f conftest.o conftest.s
25551 fi
25552 fi
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25554 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25555 if test $gcc_cv_as_aix_ref = yes; then
25556
25557 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25558
25559 fi
25560 ;;
25561 esac
25562 ;;
25563
25564 mips*-*-*)
25565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25566 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25567 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25568 $as_echo_n "(cached) " >&6
25569 else
25570 gcc_cv_as_mips_explicit_relocs=no
25571 if test $in_tree_gas = yes; then
25572 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25573 then gcc_cv_as_mips_explicit_relocs=yes
25574 fi
25575 elif test x$gcc_cv_as != x; then
25576 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25577 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25579 (eval $ac_try) 2>&5
25580 ac_status=$?
25581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25582 test $ac_status = 0; }; }
25583 then
25584 gcc_cv_as_mips_explicit_relocs=yes
25585 else
25586 echo "configure: failed program was" >&5
25587 cat conftest.s >&5
25588 fi
25589 rm -f conftest.o conftest.s
25590 fi
25591 fi
25592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25593 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25594 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25595 if test x$target_cpu_default = x
25596 then target_cpu_default=MASK_EXPLICIT_RELOCS
25597 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25598 fi
25599 fi
25600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25601 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25602 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25603 $as_echo_n "(cached) " >&6
25604 else
25605 gcc_cv_as_mips_no_shared=no
25606 if test $in_tree_gas = yes; then
25607 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25608 then gcc_cv_as_mips_no_shared=yes
25609 fi
25610 elif test x$gcc_cv_as != x; then
25611 $as_echo 'nop' > conftest.s
25612 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25614 (eval $ac_try) 2>&5
25615 ac_status=$?
25616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25617 test $ac_status = 0; }; }
25618 then
25619 gcc_cv_as_mips_no_shared=yes
25620 else
25621 echo "configure: failed program was" >&5
25622 cat conftest.s >&5
25623 fi
25624 rm -f conftest.o conftest.s
25625 fi
25626 fi
25627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25628 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25629 if test $gcc_cv_as_mips_no_shared = yes; then
25630
25631 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25632
25633 fi
25634
25635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25636 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25637 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25638 $as_echo_n "(cached) " >&6
25639 else
25640 gcc_cv_as_mips_gnu_attribute=no
25641 if test $in_tree_gas = yes; then
25642 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25643 then gcc_cv_as_mips_gnu_attribute=yes
25644 fi
25645 elif test x$gcc_cv_as != x; then
25646 $as_echo '.gnu_attribute 4,1' > conftest.s
25647 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25649 (eval $ac_try) 2>&5
25650 ac_status=$?
25651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25652 test $ac_status = 0; }; }
25653 then
25654 gcc_cv_as_mips_gnu_attribute=yes
25655 else
25656 echo "configure: failed program was" >&5
25657 cat conftest.s >&5
25658 fi
25659 rm -f conftest.o conftest.s
25660 fi
25661 fi
25662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25663 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25664 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25665
25666 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25667
25668 fi
25669
25670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25671 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25672 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25673 $as_echo_n "(cached) " >&6
25674 else
25675 gcc_cv_as_mips_dtprelword=no
25676 if test $in_tree_gas = yes; then
25677 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25678 then gcc_cv_as_mips_dtprelword=yes
25679 fi
25680 elif test x$gcc_cv_as != x; then
25681 $as_echo '.section .tdata,"awT",@progbits
25682 x:
25683 .word 2
25684 .text
25685 .dtprelword x+0x8000' > conftest.s
25686 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25688 (eval $ac_try) 2>&5
25689 ac_status=$?
25690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25691 test $ac_status = 0; }; }
25692 then
25693 gcc_cv_as_mips_dtprelword=yes
25694 else
25695 echo "configure: failed program was" >&5
25696 cat conftest.s >&5
25697 fi
25698 rm -f conftest.o conftest.s
25699 fi
25700 fi
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25702 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25703 if test $gcc_cv_as_mips_dtprelword = yes; then
25704
25705 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25706
25707 fi
25708
25709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25710 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25711 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25712 $as_echo_n "(cached) " >&6
25713 else
25714 gcc_cv_as_mips_dspr1_mult=no
25715 if test x$gcc_cv_as != x; then
25716 $as_echo ' .set mips32r2
25717 .set nodspr2
25718 .set dsp
25719 madd $ac3,$4,$5
25720 maddu $ac3,$4,$5
25721 msub $ac3,$4,$5
25722 msubu $ac3,$4,$5
25723 mult $ac3,$4,$5
25724 multu $ac3,$4,$5' > conftest.s
25725 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25727 (eval $ac_try) 2>&5
25728 ac_status=$?
25729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25730 test $ac_status = 0; }; }
25731 then
25732 gcc_cv_as_mips_dspr1_mult=yes
25733 else
25734 echo "configure: failed program was" >&5
25735 cat conftest.s >&5
25736 fi
25737 rm -f conftest.o conftest.s
25738 fi
25739 fi
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25741 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25742 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25743
25744 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25745
25746 fi
25747
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25749 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25750 gcc_cv_as_ld_jalr_reloc=no
25751 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25752 if test $in_tree_ld = yes ; then
25753 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 \
25754 && test $in_tree_ld_is_elf = yes; then
25755 gcc_cv_as_ld_jalr_reloc=yes
25756 fi
25757 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25758 echo ' .ent x' > conftest.s
25759 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25760 echo ' ld $25,%call16(y)($28)' >> conftest.s
25761 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25762 echo '1: jalr $25' >> conftest.s
25763 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25764 echo '1: jalr $25' >> conftest.s
25765 echo ' .end x' >> conftest.s
25766 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25767 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25768 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25769 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25770 gcc_cv_as_ld_jalr_reloc=yes
25771 fi
25772 fi
25773 rm -f conftest.*
25774 fi
25775 fi
25776 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25777 if test x$target_cpu_default = x; then
25778 target_cpu_default=MASK_RELAX_PIC_CALLS
25779 else
25780 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25781 fi
25782 fi
25783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25784 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25785
25786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25787 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25788 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25789 $as_echo_n "(cached) " >&6
25790 else
25791 gcc_cv_ld_mips_personality_relaxation=no
25792 if test $in_tree_ld = yes ; then
25793 if test "$gcc_cv_gld_major_version" -eq 2 \
25794 -a "$gcc_cv_gld_minor_version" -ge 21 \
25795 -o "$gcc_cv_gld_major_version" -gt 2; then
25796 gcc_cv_ld_mips_personality_relaxation=yes
25797 fi
25798 elif test x$gcc_cv_as != x \
25799 -a x$gcc_cv_ld != x \
25800 -a x$gcc_cv_readelf != x ; then
25801 cat > conftest.s <<EOF
25802 .cfi_startproc
25803 .cfi_personality 0x80,indirect_ptr
25804 .ent test
25805 test:
25806 nop
25807 .end test
25808 .cfi_endproc
25809
25810 .section .data,"aw",@progbits
25811 indirect_ptr:
25812 .dc.a personality
25813 EOF
25814 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25815 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25816 if $gcc_cv_readelf -d conftest 2>&1 \
25817 | grep TEXTREL > /dev/null 2>&1; then
25818 :
25819 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25820 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25821 :
25822 else
25823 gcc_cv_ld_mips_personality_relaxation=yes
25824 fi
25825 fi
25826 fi
25827 rm -f conftest.s conftest.o conftest
25828 fi
25829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25830 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25831 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25832
25833 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25834
25835 fi
25836 ;;
25837 esac
25838
25839 # Mips and HP-UX need the GNU assembler.
25840 # Linux on IA64 might be able to use the Intel assembler.
25841
25842 case "$target" in
25843 mips*-*-* | *-*-hpux* )
25844 if test x$gas_flag = xyes \
25845 || test x"$host" != x"$build" \
25846 || test ! -x "$gcc_cv_as" \
25847 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25848 :
25849 else
25850 echo "*** This configuration requires the GNU assembler" >&2
25851 exit 1
25852 fi
25853 ;;
25854 esac
25855
25856 # ??? Not all targets support dwarf2 debug_line, even within a version
25857 # of gas. Moreover, we need to emit a valid instruction to trigger any
25858 # info to the output file. So, as supported targets are added to gas 2.11,
25859 # add some instruction here to (also) show we expect this might work.
25860 # ??? Once 2.11 is released, probably need to add first known working
25861 # version to the per-target configury.
25862 case "$cpu_type" in
25863 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25864 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
25865 insn="nop"
25866 ;;
25867 ia64 | s390)
25868 insn="nop 0"
25869 ;;
25870 mmix)
25871 insn="swym 0"
25872 ;;
25873 esac
25874 if test x"$insn" != x; then
25875 conftest_s="\
25876 .file 1 \"conftest.s\"
25877 .loc 1 3 0
25878 $insn"
25879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25880 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25881 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25882 $as_echo_n "(cached) " >&6
25883 else
25884 gcc_cv_as_dwarf2_debug_line=no
25885 if test $in_tree_gas = yes; then
25886 if test $in_tree_gas_is_elf = yes \
25887 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25888 then gcc_cv_as_dwarf2_debug_line=yes
25889 fi
25890 elif test x$gcc_cv_as != x; then
25891 $as_echo "$conftest_s" > conftest.s
25892 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25894 (eval $ac_try) 2>&5
25895 ac_status=$?
25896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25897 test $ac_status = 0; }; }
25898 then
25899 if test x$gcc_cv_objdump != x \
25900 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25901 | grep debug_line > /dev/null 2>&1; then
25902 gcc_cv_as_dwarf2_debug_line=yes
25903 fi
25904 else
25905 echo "configure: failed program was" >&5
25906 cat conftest.s >&5
25907 fi
25908 rm -f conftest.o conftest.s
25909 fi
25910 fi
25911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25912 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25913
25914
25915 # The .debug_line file table must be in the exact order that
25916 # we specified the files, since these indices are also used
25917 # by DW_AT_decl_file. Approximate this test by testing if
25918 # the assembler bitches if the same index is assigned twice.
25919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25920 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25921 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25922 $as_echo_n "(cached) " >&6
25923 else
25924 gcc_cv_as_dwarf2_file_buggy=no
25925 if test x$gcc_cv_as != x; then
25926 $as_echo ' .file 1 "foo.s"
25927 .file 1 "bar.s"' > conftest.s
25928 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25930 (eval $ac_try) 2>&5
25931 ac_status=$?
25932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25933 test $ac_status = 0; }; }
25934 then
25935 gcc_cv_as_dwarf2_file_buggy=yes
25936 else
25937 echo "configure: failed program was" >&5
25938 cat conftest.s >&5
25939 fi
25940 rm -f conftest.o conftest.s
25941 fi
25942 fi
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25944 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25945
25946
25947 if test $gcc_cv_as_dwarf2_debug_line = yes \
25948 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25949
25950 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25951
25952 fi
25953
25954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25955 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25956 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25957 $as_echo_n "(cached) " >&6
25958 else
25959 gcc_cv_as_gdwarf2_flag=no
25960 if test $in_tree_gas = yes; then
25961 if test $in_tree_gas_is_elf = yes \
25962 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25963 then gcc_cv_as_gdwarf2_flag=yes
25964 fi
25965 elif test x$gcc_cv_as != x; then
25966 $as_echo "$insn" > conftest.s
25967 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25969 (eval $ac_try) 2>&5
25970 ac_status=$?
25971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25972 test $ac_status = 0; }; }
25973 then
25974 gcc_cv_as_gdwarf2_flag=yes
25975 else
25976 echo "configure: failed program was" >&5
25977 cat conftest.s >&5
25978 fi
25979 rm -f conftest.o conftest.s
25980 fi
25981 fi
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25983 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25984 if test $gcc_cv_as_gdwarf2_flag = yes; then
25985
25986 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25987
25988 fi
25989
25990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25991 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25992 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25993 $as_echo_n "(cached) " >&6
25994 else
25995 gcc_cv_as_gstabs_flag=no
25996 if test $in_tree_gas = yes; then
25997 if test $in_tree_gas_is_elf = yes \
25998 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25999 then gcc_cv_as_gstabs_flag=yes
26000 fi
26001 elif test x$gcc_cv_as != x; then
26002 $as_echo "$insn" > conftest.s
26003 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26005 (eval $ac_try) 2>&5
26006 ac_status=$?
26007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26008 test $ac_status = 0; }; }
26009 then
26010 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26011 # and warns about it, but still exits successfully. So check for
26012 # this.
26013 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26015 (eval $ac_try) 2>&5
26016 ac_status=$?
26017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26018 test $ac_status = 0; }; }
26019 then :
26020 else gcc_cv_as_gstabs_flag=yes
26021 fi
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_gstabs_flag" >&5
26030 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26031 if test $gcc_cv_as_gstabs_flag = yes; then
26032
26033 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26034
26035 fi
26036
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26038 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26039 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26040 $as_echo_n "(cached) " >&6
26041 else
26042 gcc_cv_as_debug_prefix_map_flag=no
26043 if test $in_tree_gas = yes; then
26044 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26045 then gcc_cv_as_debug_prefix_map_flag=yes
26046 fi
26047 elif test x$gcc_cv_as != x; then
26048 $as_echo "$insn" > conftest.s
26049 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26051 (eval $ac_try) 2>&5
26052 ac_status=$?
26053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26054 test $ac_status = 0; }; }
26055 then
26056 gcc_cv_as_debug_prefix_map_flag=yes
26057 else
26058 echo "configure: failed program was" >&5
26059 cat conftest.s >&5
26060 fi
26061 rm -f conftest.o conftest.s
26062 fi
26063 fi
26064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26065 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26066 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26067
26068 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26069
26070 fi
26071 fi
26072
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26074 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26075 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26076 $as_echo_n "(cached) " >&6
26077 else
26078 gcc_cv_as_lcomm_with_alignment=no
26079 if test x$gcc_cv_as != x; then
26080 $as_echo '.lcomm bar,4,16' > conftest.s
26081 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26083 (eval $ac_try) 2>&5
26084 ac_status=$?
26085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26086 test $ac_status = 0; }; }
26087 then
26088 gcc_cv_as_lcomm_with_alignment=yes
26089 else
26090 echo "configure: failed program was" >&5
26091 cat conftest.s >&5
26092 fi
26093 rm -f conftest.o conftest.s
26094 fi
26095 fi
26096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26097 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26098 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26099
26100 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26101
26102 fi
26103
26104 # Check whether --enable-gnu-unique-object was given.
26105 if test "${enable_gnu_unique_object+set}" = set; then :
26106 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26107 yes | no) ;;
26108 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26109 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26110 esac
26111 else
26112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26113 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26114 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26115 $as_echo_n "(cached) " >&6
26116 else
26117 gcc_cv_as_gnu_unique_object=no
26118 if test $in_tree_gas = yes; then
26119 if test $in_tree_gas_is_elf = yes \
26120 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26121 then gcc_cv_as_gnu_unique_object=yes
26122 fi
26123 elif test x$gcc_cv_as != x; then
26124 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26125 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26127 (eval $ac_try) 2>&5
26128 ac_status=$?
26129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26130 test $ac_status = 0; }; }
26131 then
26132 gcc_cv_as_gnu_unique_object=yes
26133 else
26134 echo "configure: failed program was" >&5
26135 cat conftest.s >&5
26136 fi
26137 rm -f conftest.o conftest.s
26138 fi
26139 fi
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26141 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26142 if test $gcc_cv_as_gnu_unique_object = yes; then
26143 # We need to unquote above to to use the definition from config.gcc.
26144 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26145 if test x$host = x$build -a x$host = x$target &&
26146 ldd --version 2>/dev/null &&
26147 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26148 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26149 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26150 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26151 if test "$glibcnum" -ge 2011 ; then
26152 enable_gnu_unique_object=yes
26153 fi
26154 fi
26155 fi
26156 fi
26157
26158 if test x$enable_gnu_unique_object = xyes; then
26159
26160 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26161
26162 fi
26163
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26165 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26166 if test "${gcc_cv_as_line_zero+set}" = set; then :
26167 $as_echo_n "(cached) " >&6
26168 else
26169 gcc_cv_as_line_zero=no
26170 if test $in_tree_gas = yes; then
26171 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26172 then gcc_cv_as_line_zero=yes
26173 fi
26174 elif test "x$gcc_cv_as" != x; then
26175 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26176 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26178 (eval $ac_try) 2>&5
26179 ac_status=$?
26180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26181 test $ac_status = 0; }; } &&
26182 test "x`cat conftest.out`" = x
26183 then
26184 gcc_cv_as_line_zero=yes
26185 else
26186 echo "configure: failed program was" >&5
26187 cat conftest.s >&5
26188 echo "configure: error output was" >&5
26189 cat conftest.out >&5
26190 fi
26191 rm -f conftest.o conftest.s conftest.out
26192 fi
26193 fi
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26195 $as_echo "$gcc_cv_as_line_zero" >&6; }
26196 if test "x$gcc_cv_as_line_zero" = xyes; then
26197
26198 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26199
26200 fi
26201
26202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26203 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26204 gcc_cv_ld_eh_frame_hdr=no
26205 if test $in_tree_ld = yes ; then
26206 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 \
26207 && test $in_tree_ld_is_elf = yes; then
26208 gcc_cv_ld_eh_frame_hdr=yes
26209 fi
26210 elif test x$gcc_cv_ld != x; then
26211 if echo "$ld_ver" | grep GNU > /dev/null; then
26212 # Check if linker supports --eh-frame-hdr option
26213 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26214 gcc_cv_ld_eh_frame_hdr=yes
26215 fi
26216 else
26217 case "$target" in
26218 *-*-solaris2*)
26219 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26220 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26221 gcc_cv_ld_eh_frame_hdr=yes
26222 fi
26223 ;;
26224 esac
26225 fi
26226 fi
26227
26228 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26229
26230 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26231
26232 fi
26233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26234 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26235
26236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26237 $as_echo_n "checking linker position independent executable support... " >&6; }
26238 gcc_cv_ld_pie=no
26239 if test $in_tree_ld = yes ; then
26240 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 \
26241 && test $in_tree_ld_is_elf = yes; then
26242 gcc_cv_ld_pie=yes
26243 fi
26244 elif test x$gcc_cv_ld != x; then
26245 # Check if linker supports -pie option
26246 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26247 gcc_cv_ld_pie=yes
26248 fi
26249 fi
26250 if test x"$gcc_cv_ld_pie" = xyes; then
26251
26252 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26253
26254 fi
26255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26256 $as_echo "$gcc_cv_ld_pie" >&6; }
26257
26258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26259 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26260 gcc_cv_ld_eh_gc_sections=no
26261 if test $in_tree_ld = yes ; then
26262 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 \
26263 && test $in_tree_ld_is_elf = yes; then
26264 gcc_cv_ld_eh_gc_sections=yes
26265 fi
26266 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26267 cat > conftest.s <<EOF
26268 .section .text
26269 .globl _start
26270 .type _start, @function
26271 _start:
26272 .long foo
26273 .size _start, .-_start
26274 .section .text.foo,"ax",@progbits
26275 .type foo, @function
26276 foo:
26277 .long 0
26278 .size foo, .-foo
26279 .section .gcc_except_table.foo,"a",@progbits
26280 .L0:
26281 .long 0
26282 .section .eh_frame,"a",@progbits
26283 .long .L0
26284 EOF
26285 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26286 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26287 | grep "gc-sections option ignored" > /dev/null; then
26288 gcc_cv_ld_eh_gc_sections=no
26289 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26290 | grep gcc_except_table > /dev/null; then
26291 gcc_cv_ld_eh_gc_sections=yes
26292 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26293 if test x$gcc_cv_as_comdat_group != xyes; then
26294 gcc_cv_ld_eh_gc_sections=no
26295 cat > conftest.s <<EOF
26296 .section .text
26297 .globl _start
26298 .type _start, @function
26299 _start:
26300 .long foo
26301 .size _start, .-_start
26302 .section .gnu.linkonce.t.foo,"ax",@progbits
26303 .type foo, @function
26304 foo:
26305 .long 0
26306 .size foo, .-foo
26307 .section .gcc_except_table.foo,"a",@progbits
26308 .L0:
26309 .long 0
26310 .section .eh_frame,"a",@progbits
26311 .long .L0
26312 EOF
26313 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26314 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26315 | grep "gc-sections option ignored" > /dev/null; then
26316 gcc_cv_ld_eh_gc_sections=no
26317 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26318 | grep gcc_except_table > /dev/null; then
26319 gcc_cv_ld_eh_gc_sections=yes
26320 fi
26321 fi
26322 fi
26323 fi
26324 fi
26325 rm -f conftest.s conftest.o conftest
26326 fi
26327 case "$target" in
26328 hppa*-*-linux*)
26329 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26330 gcc_cv_ld_eh_gc_sections=no
26331 ;;
26332 esac
26333 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26334
26335 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26336
26337 fi
26338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26339 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26340
26341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26342 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26343 gcc_cv_ld_eh_gc_sections_bug=no
26344 if test $in_tree_ld = yes ; then
26345 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 \
26346 && test $in_tree_ld_is_elf = yes; then
26347 gcc_cv_ld_eh_gc_sections_bug=yes
26348 fi
26349 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
26350 gcc_cv_ld_eh_gc_sections_bug=yes
26351 cat > conftest.s <<EOF
26352 .section .text
26353 .globl _start
26354 .type _start, @function
26355 _start:
26356 .long foo
26357 .size _start, .-_start
26358 .section .text.startup.foo,"ax",@progbits
26359 .type foo, @function
26360 foo:
26361 .long 0
26362 .size foo, .-foo
26363 .section .gcc_except_table.foo,"a",@progbits
26364 .L0:
26365 .long 0
26366 .section .eh_frame,"a",@progbits
26367 .long .L0
26368 EOF
26369 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26370 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26371 | grep "gc-sections option ignored" > /dev/null; then
26372 :
26373 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26374 | grep gcc_except_table > /dev/null; then
26375 gcc_cv_ld_eh_gc_sections_bug=no
26376 fi
26377 fi
26378 rm -f conftest.s conftest.o conftest
26379 fi
26380 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26381
26382 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26383
26384 fi
26385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26386 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26387
26388 # --------
26389 # UNSORTED
26390 # --------
26391
26392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26393 $as_echo_n "checking linker --as-needed support... " >&6; }
26394 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26395 $as_echo_n "(cached) " >&6
26396 else
26397 gcc_cv_ld_as_needed=no
26398 if test $in_tree_ld = yes ; then
26399 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 \
26400 && test $in_tree_ld_is_elf = yes; then
26401 gcc_cv_ld_as_needed=yes
26402 fi
26403 elif test x$gcc_cv_ld != x; then
26404 # Check if linker supports --as-needed and --no-as-needed options
26405 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26406 gcc_cv_ld_as_needed=yes
26407 fi
26408 fi
26409
26410 fi
26411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26412 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26413 if test x"$gcc_cv_ld_as_needed" = xyes; then
26414
26415 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26416
26417 fi
26418
26419 case "$target:$tm_file" in
26420 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26421 case "$target" in
26422 *-*-linux*)
26423 emul_name="-melf64ppc"
26424 ;;
26425 *-*-freebsd*)
26426 emul_name="-melf64ppc_fbsd"
26427 ;;
26428 esac
26429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26430 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26431 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26432 $as_echo_n "(cached) " >&6
26433 else
26434 gcc_cv_ld_no_dot_syms=no
26435 if test $in_tree_ld = yes ; then
26436 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
26437 gcc_cv_ld_no_dot_syms=yes
26438 fi
26439 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26440 cat > conftest1.s <<EOF
26441 .text
26442 bl .foo
26443 EOF
26444 cat > conftest2.s <<EOF
26445 .section ".opd","aw"
26446 .align 3
26447 .globl foo
26448 .type foo,@function
26449 foo:
26450 .quad .LEfoo,.TOC.@tocbase,0
26451 .text
26452 .LEfoo:
26453 blr
26454 .size foo,.-.LEfoo
26455 EOF
26456 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26457 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26458 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26459 gcc_cv_ld_no_dot_syms=yes
26460 fi
26461 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26462 fi
26463
26464 fi
26465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26466 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26467 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26468
26469 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26470
26471 fi
26472
26473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26474 $as_echo_n "checking linker large toc support... " >&6; }
26475 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26476 $as_echo_n "(cached) " >&6
26477 else
26478 gcc_cv_ld_large_toc=no
26479 if test $in_tree_ld = yes ; then
26480 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
26481 gcc_cv_ld_large_toc=yes
26482 fi
26483 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26484 cat > conftest.s <<EOF
26485 .section ".tbss","awT",@nobits
26486 .align 3
26487 ie0: .space 8
26488 .global _start
26489 .text
26490 _start:
26491 addis 9,13,ie0@got@tprel@ha
26492 ld 9,ie0@got@tprel@l(9)
26493 EOF
26494 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26495 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26496 gcc_cv_ld_large_toc=yes
26497 fi
26498 rm -f conftest conftest.o conftest.s
26499 fi
26500
26501 fi
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26503 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26504 if test x"$gcc_cv_ld_large_toc" = xyes; then
26505
26506 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26507
26508 fi
26509 ;;
26510 esac
26511
26512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26513 $as_echo_n "checking linker --build-id support... " >&6; }
26514 if test "${gcc_cv_ld_buildid+set}" = set; then :
26515 $as_echo_n "(cached) " >&6
26516 else
26517 gcc_cv_ld_buildid=no
26518 if test $in_tree_ld = yes ; then
26519 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26520 "$gcc_cv_gld_minor_version" -ge 18 -o \
26521 "$gcc_cv_gld_major_version" -gt 2 \
26522 && test $in_tree_ld_is_elf = yes; then
26523 gcc_cv_ld_buildid=yes
26524 fi
26525 elif test x$gcc_cv_ld != x; then
26526 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26527 gcc_cv_ld_buildid=yes
26528 fi
26529 fi
26530 fi
26531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26532 $as_echo "$gcc_cv_ld_buildid" >&6; }
26533 if test x"$gcc_cv_ld_buildid" = xyes; then
26534
26535 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26536
26537 fi
26538
26539 # Check whether --enable-linker-build-id was given.
26540 if test "${enable_linker_build_id+set}" = set; then :
26541 enableval=$enable_linker_build_id;
26542 else
26543 enable_linker_build_id=no
26544 fi
26545
26546
26547 if test x"$enable_linker_build_id" = xyes; then
26548 if test x"$gcc_cv_ld_buildid" = xyes; then
26549
26550 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26551
26552 else
26553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26554 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26555 fi
26556 fi
26557
26558 # In binutils 2.21, GNU ld gained support for new emulations fully
26559 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26561 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26562 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26563 $as_echo_n "(cached) " >&6
26564 else
26565 gcc_cv_ld_sol2_emulation=no
26566 if test $in_tree_ld = yes ; then
26567 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26568 "$gcc_cv_gld_minor_version" -ge 21 -o \
26569 "$gcc_cv_gld_major_version" -gt 2 \
26570 && test $in_tree_ld_is_elf = yes; then
26571 gcc_cv_ld_sol2_emulation=yes
26572 fi
26573 elif test x$gcc_cv_ld != x; then
26574 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26575 grep _sol2 > /dev/null; then
26576 gcc_cv_ld_sol2_emulation=yes
26577 fi
26578 fi
26579 fi
26580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26581 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26582 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26583
26584 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26585
26586 fi
26587
26588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26589 $as_echo_n "checking linker --sysroot support... " >&6; }
26590 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26591 $as_echo_n "(cached) " >&6
26592 else
26593 gcc_cv_ld_sysroot=no
26594 if test $in_tree_ld = yes ; then
26595 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
26596 gcc_cv_ld_sysroot=yes
26597 fi
26598 elif test x$gcc_cv_ld != x; then
26599 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26600 gcc_cv_ld_sysroot=yes
26601 fi
26602 fi
26603 fi
26604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26605 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26606 if test x"$gcc_cv_ld_sysroot" = xyes; then
26607
26608 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26609
26610 fi
26611
26612 if test x$with_sysroot = x && test x$host = x$target \
26613 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26614 && test "$prefix" != "NONE"; then
26615
26616 cat >>confdefs.h <<_ACEOF
26617 #define PREFIX_INCLUDE_DIR "$prefix/include"
26618 _ACEOF
26619
26620 fi
26621
26622 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26623 if test "x$with_headers" != x; then
26624 target_header_dir=$with_headers
26625 elif test "x$with_sysroot" = x; then
26626 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26627 elif test "x$with_build_sysroot" != "x"; then
26628 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26629 elif test "x$with_sysroot" = xyes; then
26630 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26631 else
26632 target_header_dir="${with_sysroot}${native_system_header_dir}"
26633 fi
26634 else
26635 target_header_dir=${native_system_header_dir}
26636 fi
26637
26638 # Test for stack protector support in target C library.
26639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26640 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26641 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26642 $as_echo_n "(cached) " >&6
26643 else
26644 gcc_cv_libc_provides_ssp=no
26645 case "$target" in
26646 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26647 # glibc 2.4 and later provides __stack_chk_fail and
26648 # either __stack_chk_guard, or TLS access to stack guard canary.
26649 if test -f $target_header_dir/features.h \
26650 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26651 $target_header_dir/features.h > /dev/null; then
26652 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26653 $target_header_dir/features.h > /dev/null; then
26654 gcc_cv_libc_provides_ssp=yes
26655 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26656 $target_header_dir/features.h > /dev/null \
26657 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26658 $target_header_dir/features.h > /dev/null; then
26659 gcc_cv_libc_provides_ssp=yes
26660 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26661 $target_header_dir/features.h > /dev/null && \
26662 test -f $target_header_dir/bits/uClibc_config.h && \
26663 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26664 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26665 gcc_cv_libc_provides_ssp=yes
26666 fi
26667 # all versions of Bionic support stack protector
26668 elif test -f $target_header_dir/sys/cdefs.h \
26669 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26670 $target_header_dir/sys/cdefs.h > /dev/null; then
26671 gcc_cv_libc_provides_ssp=yes
26672 fi
26673 ;;
26674 *-*-gnu*)
26675 # Avoid complicated tests (see
26676 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26677 # simply assert that glibc does provide this, which is true for all
26678 # realistically usable GNU/Hurd configurations.
26679 gcc_cv_libc_provides_ssp=yes;;
26680 *-*-darwin* | *-*-freebsd*)
26681 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26682 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26683 gcc_cv_libc_provides_ssp=yes
26684 else
26685 echo "no __stack_chk_fail on this target"
26686 fi
26687
26688 ;;
26689 *) gcc_cv_libc_provides_ssp=no ;;
26690 esac
26691 fi
26692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26693 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26694
26695 if test x$gcc_cv_libc_provides_ssp = xyes; then
26696
26697 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26698
26699 fi
26700
26701 # Test for <sys/sdt.h> on the target.
26702
26703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26704 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26705 have_sys_sdt_h=no
26706 if test -f $target_header_dir/sys/sdt.h; then
26707 have_sys_sdt_h=yes
26708
26709 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26710
26711 fi
26712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26713 $as_echo "$have_sys_sdt_h" >&6; }
26714
26715 # Check if TFmode long double should be used by default or not.
26716 # Some glibc targets used DFmode long double, but with glibc 2.4
26717 # and later they can use TFmode.
26718 case "$target" in
26719 powerpc*-*-linux* | \
26720 sparc*-*-linux* | \
26721 s390*-*-linux* | \
26722 alpha*-*-linux*)
26723
26724 # Check whether --with-long-double-128 was given.
26725 if test "${with_long_double_128+set}" = set; then :
26726 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26727 else
26728 gcc_cv_target_ldbl128=no
26729 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26730 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26731 && gcc_cv_target_ldbl128=yes
26732
26733 fi
26734
26735 ;;
26736 esac
26737 if test x$gcc_cv_target_ldbl128 = xyes; then
26738
26739 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26740
26741 fi
26742
26743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26744 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26745 gcc_cv_target_dl_iterate_phdr=unknown
26746 case "$target" in
26747 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26748 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26749 # libdl there, both complicating its use and breaking compatibility
26750 # between Solaris 10 updates.
26751 *-*-solaris2.1[1-9]*)
26752 # <link.h> needs both a dl_iterate_phdr declaration and support for
26753 # compilation with largefile support.
26754 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26755 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26756 gcc_cv_target_dl_iterate_phdr=yes
26757 else
26758 gcc_cv_target_dl_iterate_phdr=no
26759 fi
26760 ;;
26761 esac
26762
26763 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26764
26765 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26766
26767 fi
26768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26769 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26770
26771 # Find out what GC implementation we want, or may, use.
26772
26773 # Check whether --with-gc was given.
26774 if test "${with_gc+set}" = set; then :
26775 withval=$with_gc; case "$withval" in
26776 page)
26777 GGC=ggc-$withval
26778 ;;
26779 zone)
26780 GGC=ggc-$withval
26781
26782 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26783
26784 ;;
26785 *)
26786 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26787 ;;
26788 esac
26789 else
26790 GGC=ggc-page
26791 fi
26792
26793
26794 echo "Using $GGC for garbage collection."
26795
26796 # Libraries to use on the host. This will normally be set by the top
26797 # level Makefile. Here we simply capture the value for our Makefile.
26798 if test -z "${HOST_LIBS+set}"; then
26799 HOST_LIBS=
26800 fi
26801
26802
26803 # Use the system's zlib library.
26804 zlibdir=-L../zlib
26805 zlibinc="-I\$(srcdir)/../zlib"
26806
26807 # Check whether --with-system-zlib was given.
26808 if test "${with_system_zlib+set}" = set; then :
26809 withval=$with_system_zlib; zlibdir=
26810 zlibinc=
26811
26812 fi
26813
26814
26815
26816
26817
26818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26819 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26820 # Check whether --enable-maintainer-mode was given.
26821 if test "${enable_maintainer_mode+set}" = set; then :
26822 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26823 else
26824 maintainer_mode=no
26825 fi
26826
26827
26828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26829 $as_echo "$maintainer_mode" >&6; }
26830
26831 if test "$maintainer_mode" = "yes"; then
26832 MAINT=''
26833 else
26834 MAINT='#'
26835 fi
26836
26837 # --------------
26838 # Language hooks
26839 # --------------
26840
26841 # Make empty files to contain the specs and options for each language.
26842 # Then add #include lines to for a compiler that has specs and/or options.
26843
26844 subdirs=
26845 lang_opt_files=
26846 lang_specs_files=
26847 lang_tree_files=
26848 # These (without "all_") are set in each config-lang.in.
26849 # `language' must be a single word so is spelled singularly.
26850 all_languages=
26851 all_compilers=
26852 all_outputs='Makefile'
26853 # List of language makefile fragments.
26854 all_lang_makefrags=
26855 # Additional files for gengtype
26856 all_gtfiles="$target_gtfiles"
26857
26858 # These are the languages that are set in --enable-languages,
26859 # and are available in the GCC tree.
26860 all_selected_languages=
26861
26862 # Add the language fragments.
26863 # Languages are added via two mechanisms. Some information must be
26864 # recorded in makefile variables, these are defined in config-lang.in.
26865 # We accumulate them and plug them into the main Makefile.
26866 # The other mechanism is a set of hooks for each of the main targets
26867 # like `clean', `install', etc.
26868
26869 language_hooks="Make-hooks"
26870
26871 for lang in ${srcdir}/*/config-lang.in
26872 do
26873 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26874
26875 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26876 if test "x$lang_alias" = x
26877 then
26878 echo "$lang doesn't set \$language." 1>&2
26879 exit 1
26880 fi
26881 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26882 subdirs="$subdirs $subdir"
26883
26884 # $gcc_subdir is where the gcc integration files are to be found
26885 # for a language, both for internal compiler purposes (compiler
26886 # sources implementing front-end to GCC tree converters), and for
26887 # build infrastructure purposes (Make-lang.in, etc.)
26888 #
26889 # This will be <subdir> (relative to $srcdir) if a line like
26890 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26891 # is found in <langdir>/config-lang.in, and will remain <langdir>
26892 # otherwise.
26893 #
26894 # Except for the language alias (fetched above), the regular
26895 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26896 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26897 # only this and the language alias.
26898
26899 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26900 if [ "$gcc_subdir" = "" ]; then
26901 gcc_subdir="$subdir"
26902 fi
26903
26904 case ",$enable_languages," in
26905 *,$lang_alias,*)
26906 all_selected_languages="$all_selected_languages $lang_alias"
26907 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26908 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26909 fi
26910 ;;
26911 esac
26912
26913 language=
26914 boot_language=
26915 compilers=
26916 outputs=
26917 gtfiles=
26918 subdir_requires=
26919 . ${srcdir}/$gcc_subdir/config-lang.in
26920 if test "x$language" = x
26921 then
26922 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26923 exit 1
26924 fi
26925
26926 ok=:
26927 case ",$enable_languages," in
26928 *,$lang_alias,*) ;;
26929 *)
26930 for i in $subdir_requires; do
26931 test -f "${srcdir}/$i/config-lang.in" && continue
26932 ok=false
26933 break
26934 done
26935 ;;
26936 esac
26937 $ok || continue
26938
26939 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26940 if test -f $srcdir/$gcc_subdir/lang.opt; then
26941 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26942 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26943 fi
26944 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26945 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26946 fi
26947 all_languages="$all_languages $language"
26948 all_compilers="$all_compilers $compilers"
26949 all_outputs="$all_outputs $outputs"
26950 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26951 case ",$enable_languages," in
26952 *,lto,*)
26953
26954 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26955
26956 enable_lto=yes
26957
26958 ;;
26959 *) ;;
26960 esac
26961 done
26962
26963 # Pick up gtfiles for c
26964 gtfiles=
26965 . ${srcdir}/c-config-lang.in
26966 all_gtfiles="$all_gtfiles [c] $gtfiles"
26967
26968 check_languages=
26969 for language in $all_selected_languages
26970 do
26971 check_languages="$check_languages check-$language"
26972 done
26973
26974 # We link each language in with a set of hooks, reached indirectly via
26975 # lang.${target}. Only do so for selected languages.
26976
26977 rm -f Make-hooks
26978 touch Make-hooks
26979 target_list="all.cross start.encap rest.encap tags \
26980 install-common install-man install-info install-pdf install-html dvi \
26981 pdf html uninstall info man srcextra srcman srcinfo \
26982 mostlyclean clean distclean maintainer-clean install-plugin"
26983
26984 for t in $target_list
26985 do
26986 x=
26987 for lang in $all_selected_languages
26988 do
26989 x="$x $lang.$t"
26990 done
26991 echo "lang.$t: $x" >> Make-hooks
26992 done
26993
26994 # --------
26995 # Option include files
26996 # --------
26997
26998 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26999 option_includes="option-includes.mk"
27000
27001
27002 # --------
27003 # UNSORTED
27004 # --------
27005
27006 # Create .gdbinit.
27007
27008 echo "dir ." > .gdbinit
27009 echo "dir ${srcdir}" >> .gdbinit
27010 if test x$gdb_needs_out_file_path = xyes
27011 then
27012 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27013 fi
27014 if test "x$subdirs" != x; then
27015 for s in $subdirs
27016 do
27017 echo "dir ${srcdir}/$s" >> .gdbinit
27018 done
27019 fi
27020 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27021
27022 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27023
27024
27025
27026 # Find a directory in which to install a shared libgcc.
27027
27028 # Check whether --enable-version-specific-runtime-libs was given.
27029 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27030 enableval=$enable_version_specific_runtime_libs;
27031 fi
27032
27033
27034 # Substitute configuration variables
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
27066
27067
27068
27069
27070
27071
27072
27073
27074
27075
27076
27077
27078
27079
27080
27081
27082
27083
27084
27085
27086
27087
27088
27089
27090
27091
27092
27093
27094
27095
27096
27097 # Echo link setup.
27098 if test x${build} = x${host} ; then
27099 if test x${host} = x${target} ; then
27100 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27101 else
27102 echo "Links are now set up to build a cross-compiler" 1>&2
27103 echo " from ${host} to ${target}." 1>&2
27104 fi
27105 else
27106 if test x${host} = x${target} ; then
27107 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27108 echo " for ${target}." 1>&2
27109 else
27110 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27111 echo " from ${host} to ${target}." 1>&2
27112 fi
27113 fi
27114
27115
27116
27117
27118
27119
27120
27121
27122
27123 if test "x${CLOOGLIBS}" != "x" ; then
27124
27125 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27126
27127 fi
27128
27129 # Check for plugin support
27130 # Check whether --enable-plugin was given.
27131 if test "${enable_plugin+set}" = set; then :
27132 enableval=$enable_plugin; enable_plugin=$enableval
27133 else
27134 enable_plugin=yes; default_plugin=yes
27135 fi
27136
27137
27138 pluginlibs=
27139
27140 case "${host}" in
27141 *-*-darwin*)
27142 if test x$build = x$host; then
27143 export_sym_check="nm${exeext} -g"
27144 elif test x$host = x$target; then
27145 export_sym_check="$gcc_cv_nm -g"
27146 else
27147 export_sym_check=
27148 fi
27149 ;;
27150 *)
27151 if test x$build = x$host; then
27152 export_sym_check="objdump${exeext} -T"
27153 elif test x$host = x$target; then
27154 export_sym_check="$gcc_cv_objdump -T"
27155 else
27156 export_sym_check=
27157 fi
27158 ;;
27159 esac
27160
27161 if test x"$enable_plugin" = x"yes"; then
27162
27163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27164 $as_echo_n "checking for exported symbols... " >&6; }
27165 if test "x$export_sym_check" != x; then
27166 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27167 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27168 if $export_sym_check conftest | grep foobar > /dev/null; then
27169 : # No need to use a flag
27170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27171 $as_echo "yes" >&6; }
27172 else
27173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27174 $as_echo "yes" >&6; }
27175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27176 $as_echo_n "checking for -rdynamic... " >&6; }
27177 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27178 if $export_sym_check conftest | grep foobar > /dev/null; then
27179 plugin_rdynamic=yes
27180 pluginlibs="-rdynamic"
27181 else
27182 plugin_rdynamic=no
27183 enable_plugin=no
27184 fi
27185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27186 $as_echo "$plugin_rdynamic" >&6; }
27187 fi
27188 else
27189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27190 $as_echo "unable to check" >&6; }
27191 fi
27192
27193 # Check -ldl
27194 saved_LIBS="$LIBS"
27195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27196 $as_echo_n "checking for library containing dlopen... " >&6; }
27197 if test "${ac_cv_search_dlopen+set}" = set; then :
27198 $as_echo_n "(cached) " >&6
27199 else
27200 ac_func_search_save_LIBS=$LIBS
27201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27202 /* end confdefs.h. */
27203
27204 /* Override any GCC internal prototype to avoid an error.
27205 Use char because int might match the return type of a GCC
27206 builtin and then its argument prototype would still apply. */
27207 #ifdef __cplusplus
27208 extern "C"
27209 #endif
27210 char dlopen ();
27211 int
27212 main ()
27213 {
27214 return dlopen ();
27215 ;
27216 return 0;
27217 }
27218 _ACEOF
27219 for ac_lib in '' dl; do
27220 if test -z "$ac_lib"; then
27221 ac_res="none required"
27222 else
27223 ac_res=-l$ac_lib
27224 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27225 fi
27226 if ac_fn_c_try_link "$LINENO"; then :
27227 ac_cv_search_dlopen=$ac_res
27228 fi
27229 rm -f core conftest.err conftest.$ac_objext \
27230 conftest$ac_exeext
27231 if test "${ac_cv_search_dlopen+set}" = set; then :
27232 break
27233 fi
27234 done
27235 if test "${ac_cv_search_dlopen+set}" = set; then :
27236
27237 else
27238 ac_cv_search_dlopen=no
27239 fi
27240 rm conftest.$ac_ext
27241 LIBS=$ac_func_search_save_LIBS
27242 fi
27243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27244 $as_echo "$ac_cv_search_dlopen" >&6; }
27245 ac_res=$ac_cv_search_dlopen
27246 if test "$ac_res" != no; then :
27247 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27248
27249 fi
27250
27251 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27252 pluginlibs="$pluginlibs -ldl"
27253 fi
27254 LIBS="$saved_LIBS"
27255
27256 # Check that we can build shared objects with -fPIC -shared
27257 saved_LDFLAGS="$LDFLAGS"
27258 saved_CFLAGS="$CFLAGS"
27259 case "${host}" in
27260 *-*-darwin*)
27261 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27262 CFLAGS="$CFLAGS -fPIC"
27263 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27264 ;;
27265 *)
27266 CFLAGS="$CFLAGS -fPIC"
27267 LDFLAGS="$LDFLAGS -fPIC -shared"
27268 ;;
27269 esac
27270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27271 $as_echo_n "checking for -fPIC -shared... " >&6; }
27272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27273 /* end confdefs.h. */
27274 extern int X;
27275 int
27276 main ()
27277 {
27278 return X == 0;
27279 ;
27280 return 0;
27281 }
27282 _ACEOF
27283 if ac_fn_c_try_link "$LINENO"; then :
27284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27285 $as_echo "yes" >&6; }; have_pic_shared=yes
27286 else
27287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27288 $as_echo "no" >&6; }; have_pic_shared=no
27289 fi
27290 rm -f core conftest.err conftest.$ac_objext \
27291 conftest$ac_exeext conftest.$ac_ext
27292 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27293 pluginlibs=
27294 enable_plugin=no
27295 fi
27296 LDFLAGS="$saved_LDFLAGS"
27297 CFLAGS="$saved_CFLAGS"
27298
27299 # If plugin support had been requested but not available, fail.
27300 if test x"$enable_plugin" = x"no" ; then
27301 if test x"$default_plugin" != x"yes"; then
27302 as_fn_error "
27303 Building GCC with plugin support requires a host that supports
27304 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27305 fi
27306 fi
27307 fi
27308
27309
27310
27311 if test x"$enable_plugin" = x"yes"; then
27312
27313 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27314
27315 fi
27316
27317
27318 # Check whether --enable-libquadmath-support was given.
27319 if test "${enable_libquadmath_support+set}" = set; then :
27320 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27321 else
27322 ENABLE_LIBQUADMATH_SUPPORT=yes
27323 fi
27324
27325 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27326
27327 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27328
27329 fi
27330
27331
27332 # Specify what hash style to use by default.
27333
27334 # Check whether --with-linker-hash-style was given.
27335 if test "${with_linker_hash_style+set}" = set; then :
27336 withval=$with_linker_hash_style; case x"$withval" in
27337 xsysv)
27338 LINKER_HASH_STYLE=sysv
27339 ;;
27340 xgnu)
27341 LINKER_HASH_STYLE=gnu
27342 ;;
27343 xboth)
27344 LINKER_HASH_STYLE=both
27345 ;;
27346 *)
27347 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27348 ;;
27349 esac
27350 else
27351 LINKER_HASH_STYLE=''
27352 fi
27353
27354 if test x"${LINKER_HASH_STYLE}" != x; then
27355
27356 cat >>confdefs.h <<_ACEOF
27357 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27358 _ACEOF
27359
27360 fi
27361
27362 # Configure the subdirectories
27363 # AC_CONFIG_SUBDIRS($subdirs)
27364
27365 # Create the Makefile
27366 # and configure language subdirectories
27367 ac_config_files="$ac_config_files $all_outputs"
27368
27369
27370 ac_config_commands="$ac_config_commands default"
27371
27372 cat >confcache <<\_ACEOF
27373 # This file is a shell script that caches the results of configure
27374 # tests run on this system so they can be shared between configure
27375 # scripts and configure runs, see configure's option --config-cache.
27376 # It is not useful on other systems. If it contains results you don't
27377 # want to keep, you may remove or edit it.
27378 #
27379 # config.status only pays attention to the cache file if you give it
27380 # the --recheck option to rerun configure.
27381 #
27382 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27383 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27384 # following values.
27385
27386 _ACEOF
27387
27388 # The following way of writing the cache mishandles newlines in values,
27389 # but we know of no workaround that is simple, portable, and efficient.
27390 # So, we kill variables containing newlines.
27391 # Ultrix sh set writes to stderr and can't be redirected directly,
27392 # and sets the high bit in the cache file unless we assign to the vars.
27393 (
27394 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27395 eval ac_val=\$$ac_var
27396 case $ac_val in #(
27397 *${as_nl}*)
27398 case $ac_var in #(
27399 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27400 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27401 esac
27402 case $ac_var in #(
27403 _ | IFS | as_nl) ;; #(
27404 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27405 *) { eval $ac_var=; unset $ac_var;} ;;
27406 esac ;;
27407 esac
27408 done
27409
27410 (set) 2>&1 |
27411 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27412 *${as_nl}ac_space=\ *)
27413 # `set' does not quote correctly, so add quotes: double-quote
27414 # substitution turns \\\\ into \\, and sed turns \\ into \.
27415 sed -n \
27416 "s/'/'\\\\''/g;
27417 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27418 ;; #(
27419 *)
27420 # `set' quotes correctly as required by POSIX, so do not add quotes.
27421 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27422 ;;
27423 esac |
27424 sort
27425 ) |
27426 sed '
27427 /^ac_cv_env_/b end
27428 t clear
27429 :clear
27430 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27431 t end
27432 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27433 :end' >>confcache
27434 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27435 if test -w "$cache_file"; then
27436 test "x$cache_file" != "x/dev/null" &&
27437 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27438 $as_echo "$as_me: updating cache $cache_file" >&6;}
27439 cat confcache >$cache_file
27440 else
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27442 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27443 fi
27444 fi
27445 rm -f confcache
27446
27447 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27448 # Let make expand exec_prefix.
27449 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27450
27451 DEFS=-DHAVE_CONFIG_H
27452
27453 ac_libobjs=
27454 ac_ltlibobjs=
27455 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27456 # 1. Remove the extension, and $U if already installed.
27457 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27458 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27459 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27460 # will be set to the directory where LIBOBJS objects are built.
27461 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27462 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27463 done
27464 LIBOBJS=$ac_libobjs
27465
27466 LTLIBOBJS=$ac_ltlibobjs
27467
27468
27469
27470
27471 : ${CONFIG_STATUS=./config.status}
27472 ac_write_fail=0
27473 ac_clean_files_save=$ac_clean_files
27474 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27475 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27476 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27477 as_write_fail=0
27478 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27479 #! $SHELL
27480 # Generated by $as_me.
27481 # Run this file to recreate the current configuration.
27482 # Compiler output produced by configure, useful for debugging
27483 # configure, is in config.log if it exists.
27484
27485 debug=false
27486 ac_cs_recheck=false
27487 ac_cs_silent=false
27488
27489 SHELL=\${CONFIG_SHELL-$SHELL}
27490 export SHELL
27491 _ASEOF
27492 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27493 ## -------------------- ##
27494 ## M4sh Initialization. ##
27495 ## -------------------- ##
27496
27497 # Be more Bourne compatible
27498 DUALCASE=1; export DUALCASE # for MKS sh
27499 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27500 emulate sh
27501 NULLCMD=:
27502 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27503 # is contrary to our usage. Disable this feature.
27504 alias -g '${1+"$@"}'='"$@"'
27505 setopt NO_GLOB_SUBST
27506 else
27507 case `(set -o) 2>/dev/null` in #(
27508 *posix*) :
27509 set -o posix ;; #(
27510 *) :
27511 ;;
27512 esac
27513 fi
27514
27515
27516 as_nl='
27517 '
27518 export as_nl
27519 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27520 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27521 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27522 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27523 # Prefer a ksh shell builtin over an external printf program on Solaris,
27524 # but without wasting forks for bash or zsh.
27525 if test -z "$BASH_VERSION$ZSH_VERSION" \
27526 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27527 as_echo='print -r --'
27528 as_echo_n='print -rn --'
27529 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27530 as_echo='printf %s\n'
27531 as_echo_n='printf %s'
27532 else
27533 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27534 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27535 as_echo_n='/usr/ucb/echo -n'
27536 else
27537 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27538 as_echo_n_body='eval
27539 arg=$1;
27540 case $arg in #(
27541 *"$as_nl"*)
27542 expr "X$arg" : "X\\(.*\\)$as_nl";
27543 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27544 esac;
27545 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27546 '
27547 export as_echo_n_body
27548 as_echo_n='sh -c $as_echo_n_body as_echo'
27549 fi
27550 export as_echo_body
27551 as_echo='sh -c $as_echo_body as_echo'
27552 fi
27553
27554 # The user is always right.
27555 if test "${PATH_SEPARATOR+set}" != set; then
27556 PATH_SEPARATOR=:
27557 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27558 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27559 PATH_SEPARATOR=';'
27560 }
27561 fi
27562
27563
27564 # IFS
27565 # We need space, tab and new line, in precisely that order. Quoting is
27566 # there to prevent editors from complaining about space-tab.
27567 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27568 # splitting by setting IFS to empty value.)
27569 IFS=" "" $as_nl"
27570
27571 # Find who we are. Look in the path if we contain no directory separator.
27572 case $0 in #((
27573 *[\\/]* ) as_myself=$0 ;;
27574 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27575 for as_dir in $PATH
27576 do
27577 IFS=$as_save_IFS
27578 test -z "$as_dir" && as_dir=.
27579 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27580 done
27581 IFS=$as_save_IFS
27582
27583 ;;
27584 esac
27585 # We did not find ourselves, most probably we were run as `sh COMMAND'
27586 # in which case we are not to be found in the path.
27587 if test "x$as_myself" = x; then
27588 as_myself=$0
27589 fi
27590 if test ! -f "$as_myself"; then
27591 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27592 exit 1
27593 fi
27594
27595 # Unset variables that we do not need and which cause bugs (e.g. in
27596 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27597 # suppresses any "Segmentation fault" message there. '((' could
27598 # trigger a bug in pdksh 5.2.14.
27599 for as_var in BASH_ENV ENV MAIL MAILPATH
27600 do eval test x\${$as_var+set} = xset \
27601 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27602 done
27603 PS1='$ '
27604 PS2='> '
27605 PS4='+ '
27606
27607 # NLS nuisances.
27608 LC_ALL=C
27609 export LC_ALL
27610 LANGUAGE=C
27611 export LANGUAGE
27612
27613 # CDPATH.
27614 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27615
27616
27617 # as_fn_error ERROR [LINENO LOG_FD]
27618 # ---------------------------------
27619 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27620 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27621 # script with status $?, using 1 if that was 0.
27622 as_fn_error ()
27623 {
27624 as_status=$?; test $as_status -eq 0 && as_status=1
27625 if test "$3"; then
27626 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27627 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27628 fi
27629 $as_echo "$as_me: error: $1" >&2
27630 as_fn_exit $as_status
27631 } # as_fn_error
27632
27633
27634 # as_fn_set_status STATUS
27635 # -----------------------
27636 # Set $? to STATUS, without forking.
27637 as_fn_set_status ()
27638 {
27639 return $1
27640 } # as_fn_set_status
27641
27642 # as_fn_exit STATUS
27643 # -----------------
27644 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27645 as_fn_exit ()
27646 {
27647 set +e
27648 as_fn_set_status $1
27649 exit $1
27650 } # as_fn_exit
27651
27652 # as_fn_unset VAR
27653 # ---------------
27654 # Portably unset VAR.
27655 as_fn_unset ()
27656 {
27657 { eval $1=; unset $1;}
27658 }
27659 as_unset=as_fn_unset
27660 # as_fn_append VAR VALUE
27661 # ----------------------
27662 # Append the text in VALUE to the end of the definition contained in VAR. Take
27663 # advantage of any shell optimizations that allow amortized linear growth over
27664 # repeated appends, instead of the typical quadratic growth present in naive
27665 # implementations.
27666 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27667 eval 'as_fn_append ()
27668 {
27669 eval $1+=\$2
27670 }'
27671 else
27672 as_fn_append ()
27673 {
27674 eval $1=\$$1\$2
27675 }
27676 fi # as_fn_append
27677
27678 # as_fn_arith ARG...
27679 # ------------------
27680 # Perform arithmetic evaluation on the ARGs, and store the result in the
27681 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27682 # must be portable across $(()) and expr.
27683 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27684 eval 'as_fn_arith ()
27685 {
27686 as_val=$(( $* ))
27687 }'
27688 else
27689 as_fn_arith ()
27690 {
27691 as_val=`expr "$@" || test $? -eq 1`
27692 }
27693 fi # as_fn_arith
27694
27695
27696 if expr a : '\(a\)' >/dev/null 2>&1 &&
27697 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27698 as_expr=expr
27699 else
27700 as_expr=false
27701 fi
27702
27703 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27704 as_basename=basename
27705 else
27706 as_basename=false
27707 fi
27708
27709 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27710 as_dirname=dirname
27711 else
27712 as_dirname=false
27713 fi
27714
27715 as_me=`$as_basename -- "$0" ||
27716 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27717 X"$0" : 'X\(//\)$' \| \
27718 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27719 $as_echo X/"$0" |
27720 sed '/^.*\/\([^/][^/]*\)\/*$/{
27721 s//\1/
27722 q
27723 }
27724 /^X\/\(\/\/\)$/{
27725 s//\1/
27726 q
27727 }
27728 /^X\/\(\/\).*/{
27729 s//\1/
27730 q
27731 }
27732 s/.*/./; q'`
27733
27734 # Avoid depending upon Character Ranges.
27735 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27736 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27737 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27738 as_cr_digits='0123456789'
27739 as_cr_alnum=$as_cr_Letters$as_cr_digits
27740
27741 ECHO_C= ECHO_N= ECHO_T=
27742 case `echo -n x` in #(((((
27743 -n*)
27744 case `echo 'xy\c'` in
27745 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27746 xy) ECHO_C='\c';;
27747 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27748 ECHO_T=' ';;
27749 esac;;
27750 *)
27751 ECHO_N='-n';;
27752 esac
27753
27754 rm -f conf$$ conf$$.exe conf$$.file
27755 if test -d conf$$.dir; then
27756 rm -f conf$$.dir/conf$$.file
27757 else
27758 rm -f conf$$.dir
27759 mkdir conf$$.dir 2>/dev/null
27760 fi
27761 if (echo >conf$$.file) 2>/dev/null; then
27762 if ln -s conf$$.file conf$$ 2>/dev/null; then
27763 as_ln_s='ln -s'
27764 # ... but there are two gotchas:
27765 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27766 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27767 # In both cases, we have to default to `cp -p'.
27768 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27769 as_ln_s='cp -p'
27770 elif ln conf$$.file conf$$ 2>/dev/null; then
27771 as_ln_s=ln
27772 else
27773 as_ln_s='cp -p'
27774 fi
27775 else
27776 as_ln_s='cp -p'
27777 fi
27778 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27779 rmdir conf$$.dir 2>/dev/null
27780
27781
27782 # as_fn_mkdir_p
27783 # -------------
27784 # Create "$as_dir" as a directory, including parents if necessary.
27785 as_fn_mkdir_p ()
27786 {
27787
27788 case $as_dir in #(
27789 -*) as_dir=./$as_dir;;
27790 esac
27791 test -d "$as_dir" || eval $as_mkdir_p || {
27792 as_dirs=
27793 while :; do
27794 case $as_dir in #(
27795 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27796 *) as_qdir=$as_dir;;
27797 esac
27798 as_dirs="'$as_qdir' $as_dirs"
27799 as_dir=`$as_dirname -- "$as_dir" ||
27800 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27801 X"$as_dir" : 'X\(//\)[^/]' \| \
27802 X"$as_dir" : 'X\(//\)$' \| \
27803 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27804 $as_echo X"$as_dir" |
27805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27806 s//\1/
27807 q
27808 }
27809 /^X\(\/\/\)[^/].*/{
27810 s//\1/
27811 q
27812 }
27813 /^X\(\/\/\)$/{
27814 s//\1/
27815 q
27816 }
27817 /^X\(\/\).*/{
27818 s//\1/
27819 q
27820 }
27821 s/.*/./; q'`
27822 test -d "$as_dir" && break
27823 done
27824 test -z "$as_dirs" || eval "mkdir $as_dirs"
27825 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27826
27827
27828 } # as_fn_mkdir_p
27829 if mkdir -p . 2>/dev/null; then
27830 as_mkdir_p='mkdir -p "$as_dir"'
27831 else
27832 test -d ./-p && rmdir ./-p
27833 as_mkdir_p=false
27834 fi
27835
27836 if test -x / >/dev/null 2>&1; then
27837 as_test_x='test -x'
27838 else
27839 if ls -dL / >/dev/null 2>&1; then
27840 as_ls_L_option=L
27841 else
27842 as_ls_L_option=
27843 fi
27844 as_test_x='
27845 eval sh -c '\''
27846 if test -d "$1"; then
27847 test -d "$1/.";
27848 else
27849 case $1 in #(
27850 -*)set "./$1";;
27851 esac;
27852 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27853 ???[sx]*):;;*)false;;esac;fi
27854 '\'' sh
27855 '
27856 fi
27857 as_executable_p=$as_test_x
27858
27859 # Sed expression to map a string onto a valid CPP name.
27860 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27861
27862 # Sed expression to map a string onto a valid variable name.
27863 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27864
27865
27866 exec 6>&1
27867 ## ----------------------------------- ##
27868 ## Main body of $CONFIG_STATUS script. ##
27869 ## ----------------------------------- ##
27870 _ASEOF
27871 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27872
27873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27874 # Save the log message, to keep $0 and so on meaningful, and to
27875 # report actual input values of CONFIG_FILES etc. instead of their
27876 # values after options handling.
27877 ac_log="
27878 This file was extended by $as_me, which was
27879 generated by GNU Autoconf 2.64. Invocation command line was
27880
27881 CONFIG_FILES = $CONFIG_FILES
27882 CONFIG_HEADERS = $CONFIG_HEADERS
27883 CONFIG_LINKS = $CONFIG_LINKS
27884 CONFIG_COMMANDS = $CONFIG_COMMANDS
27885 $ $0 $@
27886
27887 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27888 "
27889
27890 _ACEOF
27891
27892 case $ac_config_files in *"
27893 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27894 esac
27895
27896 case $ac_config_headers in *"
27897 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27898 esac
27899
27900
27901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27902 # Files that config.status was made for.
27903 config_files="$ac_config_files"
27904 config_headers="$ac_config_headers"
27905 config_commands="$ac_config_commands"
27906
27907 _ACEOF
27908
27909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27910 ac_cs_usage="\
27911 \`$as_me' instantiates files and other configuration actions
27912 from templates according to the current configuration. Unless the files
27913 and actions are specified as TAGs, all are instantiated by default.
27914
27915 Usage: $0 [OPTION]... [TAG]...
27916
27917 -h, --help print this help, then exit
27918 -V, --version print version number and configuration settings, then exit
27919 -q, --quiet, --silent
27920 do not print progress messages
27921 -d, --debug don't remove temporary files
27922 --recheck update $as_me by reconfiguring in the same conditions
27923 --file=FILE[:TEMPLATE]
27924 instantiate the configuration file FILE
27925 --header=FILE[:TEMPLATE]
27926 instantiate the configuration header FILE
27927
27928 Configuration files:
27929 $config_files
27930
27931 Configuration headers:
27932 $config_headers
27933
27934 Configuration commands:
27935 $config_commands
27936
27937 Report bugs to the package provider."
27938
27939 _ACEOF
27940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27941 ac_cs_version="\\
27942 config.status
27943 configured by $0, generated by GNU Autoconf 2.64,
27944 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27945
27946 Copyright (C) 2009 Free Software Foundation, Inc.
27947 This config.status script is free software; the Free Software Foundation
27948 gives unlimited permission to copy, distribute and modify it."
27949
27950 ac_pwd='$ac_pwd'
27951 srcdir='$srcdir'
27952 AWK='$AWK'
27953 test -n "\$AWK" || AWK=awk
27954 _ACEOF
27955
27956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27957 # The default lists apply if the user does not specify any file.
27958 ac_need_defaults=:
27959 while test $# != 0
27960 do
27961 case $1 in
27962 --*=*)
27963 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27964 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27965 ac_shift=:
27966 ;;
27967 *)
27968 ac_option=$1
27969 ac_optarg=$2
27970 ac_shift=shift
27971 ;;
27972 esac
27973
27974 case $ac_option in
27975 # Handling of the options.
27976 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27977 ac_cs_recheck=: ;;
27978 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27979 $as_echo "$ac_cs_version"; exit ;;
27980 --debug | --debu | --deb | --de | --d | -d )
27981 debug=: ;;
27982 --file | --fil | --fi | --f )
27983 $ac_shift
27984 case $ac_optarg in
27985 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27986 esac
27987 as_fn_append CONFIG_FILES " '$ac_optarg'"
27988 ac_need_defaults=false;;
27989 --header | --heade | --head | --hea )
27990 $ac_shift
27991 case $ac_optarg in
27992 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27993 esac
27994 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27995 ac_need_defaults=false;;
27996 --he | --h)
27997 # Conflict between --help and --header
27998 as_fn_error "ambiguous option: \`$1'
27999 Try \`$0 --help' for more information.";;
28000 --help | --hel | -h )
28001 $as_echo "$ac_cs_usage"; exit ;;
28002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28003 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28004 ac_cs_silent=: ;;
28005
28006 # This is an error.
28007 -*) as_fn_error "unrecognized option: \`$1'
28008 Try \`$0 --help' for more information." ;;
28009
28010 *) as_fn_append ac_config_targets " $1"
28011 ac_need_defaults=false ;;
28012
28013 esac
28014 shift
28015 done
28016
28017 ac_configure_extra_args=
28018
28019 if $ac_cs_silent; then
28020 exec 6>/dev/null
28021 ac_configure_extra_args="$ac_configure_extra_args --silent"
28022 fi
28023
28024 _ACEOF
28025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28026 if \$ac_cs_recheck; then
28027 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28028 shift
28029 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28030 CONFIG_SHELL='$SHELL'
28031 export CONFIG_SHELL
28032 exec "\$@"
28033 fi
28034
28035 _ACEOF
28036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28037 exec 5>>config.log
28038 {
28039 echo
28040 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28041 ## Running $as_me. ##
28042 _ASBOX
28043 $as_echo "$ac_log"
28044 } >&5
28045
28046 _ACEOF
28047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28048 #
28049 # INIT-COMMANDS
28050 #
28051 subdirs='$subdirs'
28052
28053 _ACEOF
28054
28055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28056
28057 # Handling of arguments.
28058 for ac_config_target in $ac_config_targets
28059 do
28060 case $ac_config_target in
28061 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28062 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28063 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28064 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28065 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28066 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28067
28068 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28069 esac
28070 done
28071
28072
28073 # If the user did not use the arguments to specify the items to instantiate,
28074 # then the envvar interface is used. Set only those that are not.
28075 # We use the long form for the default assignment because of an extremely
28076 # bizarre bug on SunOS 4.1.3.
28077 if $ac_need_defaults; then
28078 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28079 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28080 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28081 fi
28082
28083 # Have a temporary directory for convenience. Make it in the build tree
28084 # simply because there is no reason against having it here, and in addition,
28085 # creating and moving files from /tmp can sometimes cause problems.
28086 # Hook for its removal unless debugging.
28087 # Note that there is a small window in which the directory will not be cleaned:
28088 # after its creation but before its name has been assigned to `$tmp'.
28089 $debug ||
28090 {
28091 tmp=
28092 trap 'exit_status=$?
28093 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28094 ' 0
28095 trap 'as_fn_exit 1' 1 2 13 15
28096 }
28097 # Create a (secure) tmp directory for tmp files.
28098
28099 {
28100 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28101 test -n "$tmp" && test -d "$tmp"
28102 } ||
28103 {
28104 tmp=./conf$$-$RANDOM
28105 (umask 077 && mkdir "$tmp")
28106 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28107
28108 # Set up the scripts for CONFIG_FILES section.
28109 # No need to generate them if there are no CONFIG_FILES.
28110 # This happens for instance with `./config.status config.h'.
28111 if test -n "$CONFIG_FILES"; then
28112
28113 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28114 ac_cs_awk_getline=:
28115 ac_cs_awk_pipe_init=
28116 ac_cs_awk_read_file='
28117 while ((getline aline < (F[key])) > 0)
28118 print(aline)
28119 close(F[key])'
28120 ac_cs_awk_pipe_fini=
28121 else
28122 ac_cs_awk_getline=false
28123 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28124 ac_cs_awk_read_file='
28125 print "|#_!!_#|"
28126 print "cat " F[key] " &&"
28127 '$ac_cs_awk_pipe_init
28128 # The final `:' finishes the AND list.
28129 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28130 fi
28131 ac_cr=`echo X | tr X '\015'`
28132 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28133 # But we know of no other shell where ac_cr would be empty at this
28134 # point, so we can use a bashism as a fallback.
28135 if test "x$ac_cr" = x; then
28136 eval ac_cr=\$\'\\r\'
28137 fi
28138 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28139 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28140 ac_cs_awk_cr='\r'
28141 else
28142 ac_cs_awk_cr=$ac_cr
28143 fi
28144
28145 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28146 _ACEOF
28147
28148 # Create commands to substitute file output variables.
28149 {
28150 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28151 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28152 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28153 echo "_ACAWK" &&
28154 echo "_ACEOF"
28155 } >conf$$files.sh &&
28156 . ./conf$$files.sh ||
28157 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28158 rm -f conf$$files.sh
28159
28160 {
28161 echo "cat >conf$$subs.awk <<_ACEOF" &&
28162 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28163 echo "_ACEOF"
28164 } >conf$$subs.sh ||
28165 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28166 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28167 ac_delim='%!_!# '
28168 for ac_last_try in false false false false false :; do
28169 . ./conf$$subs.sh ||
28170 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28171
28172 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28173 if test $ac_delim_n = $ac_delim_num; then
28174 break
28175 elif $ac_last_try; then
28176 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28177 else
28178 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28179 fi
28180 done
28181 rm -f conf$$subs.sh
28182
28183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28184 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28185 _ACEOF
28186 sed -n '
28187 h
28188 s/^/S["/; s/!.*/"]=/
28189 p
28190 g
28191 s/^[^!]*!//
28192 :repl
28193 t repl
28194 s/'"$ac_delim"'$//
28195 t delim
28196 :nl
28197 h
28198 s/\(.\{148\}\).*/\1/
28199 t more1
28200 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28201 p
28202 n
28203 b repl
28204 :more1
28205 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28206 p
28207 g
28208 s/.\{148\}//
28209 t nl
28210 :delim
28211 h
28212 s/\(.\{148\}\).*/\1/
28213 t more2
28214 s/["\\]/\\&/g; s/^/"/; s/$/"/
28215 p
28216 b
28217 :more2
28218 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28219 p
28220 g
28221 s/.\{148\}//
28222 t delim
28223 ' <conf$$subs.awk | sed '
28224 /^[^""]/{
28225 N
28226 s/\n//
28227 }
28228 ' >>$CONFIG_STATUS || ac_write_fail=1
28229 rm -f conf$$subs.awk
28230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28231 _ACAWK
28232 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28233 for (key in S) S_is_set[key] = 1
28234 FS = "\a"
28235 \$ac_cs_awk_pipe_init
28236 }
28237 {
28238 line = $ 0
28239 nfields = split(line, field, "@")
28240 substed = 0
28241 len = length(field[1])
28242 for (i = 2; i < nfields; i++) {
28243 key = field[i]
28244 keylen = length(key)
28245 if (S_is_set[key]) {
28246 value = S[key]
28247 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28248 len += length(value) + length(field[++i])
28249 substed = 1
28250 } else
28251 len += 1 + keylen
28252 }
28253 if (nfields == 3 && !substed) {
28254 key = field[2]
28255 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28256 \$ac_cs_awk_read_file
28257 next
28258 }
28259 }
28260 print line
28261 }
28262 \$ac_cs_awk_pipe_fini
28263 _ACAWK
28264 _ACEOF
28265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28266 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28267 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28268 else
28269 cat
28270 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28271 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28272 _ACEOF
28273
28274 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28275 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28276 # trailing colons and then remove the whole line if VPATH becomes empty
28277 # (actually we leave an empty line to preserve line numbers).
28278 if test "x$srcdir" = x.; then
28279 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28280 s/:*\$(srcdir):*/:/
28281 s/:*\${srcdir}:*/:/
28282 s/:*@srcdir@:*/:/
28283 s/^\([^=]*=[ ]*\):*/\1/
28284 s/:*$//
28285 s/^[^=]*=[ ]*$//
28286 }'
28287 fi
28288
28289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28290 fi # test -n "$CONFIG_FILES"
28291
28292 # Set up the scripts for CONFIG_HEADERS section.
28293 # No need to generate them if there are no CONFIG_HEADERS.
28294 # This happens for instance with `./config.status Makefile'.
28295 if test -n "$CONFIG_HEADERS"; then
28296 cat >"$tmp/defines.awk" <<\_ACAWK ||
28297 BEGIN {
28298 _ACEOF
28299
28300 # Transform confdefs.h into an awk script `defines.awk', embedded as
28301 # here-document in config.status, that substitutes the proper values into
28302 # config.h.in to produce config.h.
28303
28304 # Create a delimiter string that does not exist in confdefs.h, to ease
28305 # handling of long lines.
28306 ac_delim='%!_!# '
28307 for ac_last_try in false false :; do
28308 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28309 if test -z "$ac_t"; then
28310 break
28311 elif $ac_last_try; then
28312 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28313 else
28314 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28315 fi
28316 done
28317
28318 # For the awk script, D is an array of macro values keyed by name,
28319 # likewise P contains macro parameters if any. Preserve backslash
28320 # newline sequences.
28321
28322 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28323 sed -n '
28324 s/.\{148\}/&'"$ac_delim"'/g
28325 t rset
28326 :rset
28327 s/^[ ]*#[ ]*define[ ][ ]*/ /
28328 t def
28329 d
28330 :def
28331 s/\\$//
28332 t bsnl
28333 s/["\\]/\\&/g
28334 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28335 D["\1"]=" \3"/p
28336 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28337 d
28338 :bsnl
28339 s/["\\]/\\&/g
28340 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28341 D["\1"]=" \3\\\\\\n"\\/p
28342 t cont
28343 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28344 t cont
28345 d
28346 :cont
28347 n
28348 s/.\{148\}/&'"$ac_delim"'/g
28349 t clear
28350 :clear
28351 s/\\$//
28352 t bsnlc
28353 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28354 d
28355 :bsnlc
28356 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28357 b cont
28358 ' <confdefs.h | sed '
28359 s/'"$ac_delim"'/"\\\
28360 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28361
28362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28363 for (key in D) D_is_set[key] = 1
28364 FS = "\a"
28365 }
28366 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28367 line = \$ 0
28368 split(line, arg, " ")
28369 if (arg[1] == "#") {
28370 defundef = arg[2]
28371 mac1 = arg[3]
28372 } else {
28373 defundef = substr(arg[1], 2)
28374 mac1 = arg[2]
28375 }
28376 split(mac1, mac2, "(") #)
28377 macro = mac2[1]
28378 prefix = substr(line, 1, index(line, defundef) - 1)
28379 if (D_is_set[macro]) {
28380 # Preserve the white space surrounding the "#".
28381 print prefix "define", macro P[macro] D[macro]
28382 next
28383 } else {
28384 # Replace #undef with comments. This is necessary, for example,
28385 # in the case of _POSIX_SOURCE, which is predefined and required
28386 # on some systems where configure will not decide to define it.
28387 if (defundef == "undef") {
28388 print "/*", prefix defundef, macro, "*/"
28389 next
28390 }
28391 }
28392 }
28393 { print }
28394 _ACAWK
28395 _ACEOF
28396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28397 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28398 fi # test -n "$CONFIG_HEADERS"
28399
28400
28401 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28402 shift
28403 for ac_tag
28404 do
28405 case $ac_tag in
28406 :[FHLC]) ac_mode=$ac_tag; continue;;
28407 esac
28408 case $ac_mode$ac_tag in
28409 :[FHL]*:*);;
28410 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28411 :[FH]-) ac_tag=-:-;;
28412 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28413 esac
28414 ac_save_IFS=$IFS
28415 IFS=:
28416 set x $ac_tag
28417 IFS=$ac_save_IFS
28418 shift
28419 ac_file=$1
28420 shift
28421
28422 case $ac_mode in
28423 :L) ac_source=$1;;
28424 :[FH])
28425 ac_file_inputs=
28426 for ac_f
28427 do
28428 case $ac_f in
28429 -) ac_f="$tmp/stdin";;
28430 *) # Look for the file first in the build tree, then in the source tree
28431 # (if the path is not absolute). The absolute path cannot be DOS-style,
28432 # because $ac_f cannot contain `:'.
28433 test -f "$ac_f" ||
28434 case $ac_f in
28435 [\\/$]*) false;;
28436 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28437 esac ||
28438 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28439 esac
28440 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28441 as_fn_append ac_file_inputs " '$ac_f'"
28442 done
28443
28444 # Let's still pretend it is `configure' which instantiates (i.e., don't
28445 # use $as_me), people would be surprised to read:
28446 # /* config.h. Generated by config.status. */
28447 configure_input='Generated from '`
28448 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28449 `' by configure.'
28450 if test x"$ac_file" != x-; then
28451 configure_input="$ac_file. $configure_input"
28452 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28453 $as_echo "$as_me: creating $ac_file" >&6;}
28454 fi
28455 # Neutralize special characters interpreted by sed in replacement strings.
28456 case $configure_input in #(
28457 *\&* | *\|* | *\\* )
28458 ac_sed_conf_input=`$as_echo "$configure_input" |
28459 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28460 *) ac_sed_conf_input=$configure_input;;
28461 esac
28462
28463 case $ac_tag in
28464 *:-:* | *:-) cat >"$tmp/stdin" \
28465 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28466 esac
28467 ;;
28468 esac
28469
28470 ac_dir=`$as_dirname -- "$ac_file" ||
28471 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28472 X"$ac_file" : 'X\(//\)[^/]' \| \
28473 X"$ac_file" : 'X\(//\)$' \| \
28474 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28475 $as_echo X"$ac_file" |
28476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28477 s//\1/
28478 q
28479 }
28480 /^X\(\/\/\)[^/].*/{
28481 s//\1/
28482 q
28483 }
28484 /^X\(\/\/\)$/{
28485 s//\1/
28486 q
28487 }
28488 /^X\(\/\).*/{
28489 s//\1/
28490 q
28491 }
28492 s/.*/./; q'`
28493 as_dir="$ac_dir"; as_fn_mkdir_p
28494 ac_builddir=.
28495
28496 case "$ac_dir" in
28497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28498 *)
28499 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28500 # A ".." for each directory in $ac_dir_suffix.
28501 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28502 case $ac_top_builddir_sub in
28503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28505 esac ;;
28506 esac
28507 ac_abs_top_builddir=$ac_pwd
28508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28509 # for backward compatibility:
28510 ac_top_builddir=$ac_top_build_prefix
28511
28512 case $srcdir in
28513 .) # We are building in place.
28514 ac_srcdir=.
28515 ac_top_srcdir=$ac_top_builddir_sub
28516 ac_abs_top_srcdir=$ac_pwd ;;
28517 [\\/]* | ?:[\\/]* ) # Absolute name.
28518 ac_srcdir=$srcdir$ac_dir_suffix;
28519 ac_top_srcdir=$srcdir
28520 ac_abs_top_srcdir=$srcdir ;;
28521 *) # Relative name.
28522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28523 ac_top_srcdir=$ac_top_build_prefix$srcdir
28524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28525 esac
28526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28527
28528
28529 case $ac_mode in
28530 :F)
28531 #
28532 # CONFIG_FILE
28533 #
28534
28535 _ACEOF
28536
28537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28538 # If the template does not know about datarootdir, expand it.
28539 # FIXME: This hack should be removed a few years after 2.60.
28540 ac_datarootdir_hack=; ac_datarootdir_seen=
28541 ac_sed_dataroot='
28542 /datarootdir/ {
28543 p
28544 q
28545 }
28546 /@datadir@/p
28547 /@docdir@/p
28548 /@infodir@/p
28549 /@localedir@/p
28550 /@mandir@/p'
28551 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28552 *datarootdir*) ac_datarootdir_seen=yes;;
28553 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28555 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28556 _ACEOF
28557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28558 ac_datarootdir_hack='
28559 s&@datadir@&$datadir&g
28560 s&@docdir@&$docdir&g
28561 s&@infodir@&$infodir&g
28562 s&@localedir@&$localedir&g
28563 s&@mandir@&$mandir&g
28564 s&\\\${datarootdir}&$datarootdir&g' ;;
28565 esac
28566 _ACEOF
28567
28568 # Neutralize VPATH when `$srcdir' = `.'.
28569 # Shell code in configure.ac might set extrasub.
28570 # FIXME: do we really want to maintain this feature?
28571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28572 ac_sed_extra="$ac_vpsub
28573 $extrasub
28574 _ACEOF
28575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28576 :t
28577 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28578 s|@configure_input@|$ac_sed_conf_input|;t t
28579 s&@top_builddir@&$ac_top_builddir_sub&;t t
28580 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28581 s&@srcdir@&$ac_srcdir&;t t
28582 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28583 s&@top_srcdir@&$ac_top_srcdir&;t t
28584 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28585 s&@builddir@&$ac_builddir&;t t
28586 s&@abs_builddir@&$ac_abs_builddir&;t t
28587 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28588 $ac_datarootdir_hack
28589 "
28590 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28591 if $ac_cs_awk_getline; then
28592 $AWK -f "$tmp/subs.awk"
28593 else
28594 $AWK -f "$tmp/subs.awk" | $SHELL
28595 fi >$tmp/out \
28596 || as_fn_error "could not create $ac_file" "$LINENO" 5
28597
28598 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28599 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28600 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28602 which seems to be undefined. Please make sure it is defined." >&5
28603 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28604 which seems to be undefined. Please make sure it is defined." >&2;}
28605
28606 rm -f "$tmp/stdin"
28607 case $ac_file in
28608 -) cat "$tmp/out" && rm -f "$tmp/out";;
28609 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28610 esac \
28611 || as_fn_error "could not create $ac_file" "$LINENO" 5
28612 ;;
28613 :H)
28614 #
28615 # CONFIG_HEADER
28616 #
28617 if test x"$ac_file" != x-; then
28618 {
28619 $as_echo "/* $configure_input */" \
28620 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28621 } >"$tmp/config.h" \
28622 || as_fn_error "could not create $ac_file" "$LINENO" 5
28623 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28624 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28625 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28626 else
28627 rm -f "$ac_file"
28628 mv "$tmp/config.h" "$ac_file" \
28629 || as_fn_error "could not create $ac_file" "$LINENO" 5
28630 fi
28631 else
28632 $as_echo "/* $configure_input */" \
28633 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28634 || as_fn_error "could not create -" "$LINENO" 5
28635 fi
28636 ;;
28637
28638 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28639 $as_echo "$as_me: executing $ac_file commands" >&6;}
28640 ;;
28641 esac
28642
28643
28644 case $ac_file$ac_mode in
28645 "as":F) chmod +x as ;;
28646 "collect-ld":F) chmod +x collect-ld ;;
28647 "nm":F) chmod +x nm ;;
28648 "default":C)
28649 case ${CONFIG_HEADERS} in
28650 *auto-host.h:config.in*)
28651 echo > cstamp-h ;;
28652 esac
28653 # Make sure all the subdirs exist.
28654 for d in $subdirs doc build common c-family
28655 do
28656 test -d $d || mkdir $d
28657 done
28658 ;;
28659
28660 esac
28661 done # for ac_tag
28662
28663
28664 as_fn_exit 0
28665 _ACEOF
28666 ac_clean_files=$ac_clean_files_save
28667
28668 test $ac_write_fail = 0 ||
28669 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28670
28671
28672 # configure is writing to config.log, and then calls config.status.
28673 # config.status does its own redirection, appending to config.log.
28674 # Unfortunately, on DOS this fails, as config.log is still kept open
28675 # by configure, so config.status won't be able to write to it; its
28676 # output is simply discarded. So we exec the FD to /dev/null,
28677 # effectively closing config.log, so it can be properly (re)opened and
28678 # appended to by config.status. When coming back to configure, we
28679 # need to make the FD available again.
28680 if test "$no_create" != yes; then
28681 ac_cs_success=:
28682 ac_config_status_args=
28683 test "$silent" = yes &&
28684 ac_config_status_args="$ac_config_status_args --quiet"
28685 exec 5>/dev/null
28686 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28687 exec 5>>config.log
28688 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28689 # would make configure fail if this is the last instruction.
28690 $ac_cs_success || as_fn_exit $?
28691 fi
28692 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28694 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28695 fi
28696
28697