Remove extra_passes
[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 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3397
3398 cat >>confdefs.h <<_ACEOF
3399 #define HAVE_GNU_LD $gnu_ld
3400 _ACEOF
3401
3402
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3404 $as_echo_n "checking whether a default linker was specified... " >&6; }
3405 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3406 if test x"$gnu_ld_flag" = x"no"; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3408 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3409 else
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3411 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3412 fi
3413 else
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415 $as_echo "no" >&6; }
3416 fi
3417
3418 # With demangler in GNU ld
3419
3420 # Check whether --with-demangler-in-ld was given.
3421 if test "${with_demangler_in_ld+set}" = set; then :
3422 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3423 else
3424 demangler_in_ld=yes
3425 fi
3426
3427
3428 # ----------------------
3429 # Find default assembler
3430 # ----------------------
3431
3432 # With GNU as
3433
3434 # Check whether --with-gnu-as was given.
3435 if test "${with_gnu_as+set}" = set; then :
3436 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3437 else
3438 gas_flag=no
3439 fi
3440
3441
3442
3443 # Check whether --with-as was given.
3444 if test "${with_as+set}" = set; then :
3445 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3446 fi
3447
3448 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3449 if test ! -x "$DEFAULT_ASSEMBLER"; then
3450 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3451 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3452 gas_flag=yes
3453 fi
3454
3455 cat >>confdefs.h <<_ACEOF
3456 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3457 _ACEOF
3458
3459 fi
3460
3461 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3462
3463 cat >>confdefs.h <<_ACEOF
3464 #define HAVE_GNU_AS $gnu_as
3465 _ACEOF
3466
3467
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3469 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3470 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3471 if test x"$gas_flag" = x"no"; then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3473 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3474 else
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3476 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3477 fi
3478 else
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480 $as_echo "no" >&6; }
3481 fi
3482
3483 # ---------------
3484 # Find C compiler
3485 # ---------------
3486
3487 # If a non-executable a.out is present (e.g. created by GNU as above even if
3488 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3489 # file, even when creating an executable, so an execution test fails.
3490 # Remove possible default executable files to avoid this.
3491 #
3492 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3493 # Autoconf includes it.
3494 rm -f a.out a.exe b.out
3495
3496 # Find the native compiler
3497 ac_ext=c
3498 ac_cpp='$CPP $CPPFLAGS'
3499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502 if test -n "$ac_tool_prefix"; then
3503 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3504 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if test "${ac_cv_prog_CC+set}" = set; then :
3508 $as_echo_n "(cached) " >&6
3509 else
3510 if test -n "$CC"; then
3511 ac_cv_prog_CC="$CC" # Let the user override the test.
3512 else
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 for as_dir in $PATH
3515 do
3516 IFS=$as_save_IFS
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3520 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3522 break 2
3523 fi
3524 done
3525 done
3526 IFS=$as_save_IFS
3527
3528 fi
3529 fi
3530 CC=$ac_cv_prog_CC
3531 if test -n "$CC"; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3533 $as_echo "$CC" >&6; }
3534 else
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3537 fi
3538
3539
3540 fi
3541 if test -z "$ac_cv_prog_CC"; then
3542 ac_ct_CC=$CC
3543 # Extract the first word of "gcc", so it can be a program name with args.
3544 set dummy gcc; ac_word=$2
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 $as_echo_n "checking for $ac_word... " >&6; }
3547 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3548 $as_echo_n "(cached) " >&6
3549 else
3550 if test -n "$ac_ct_CC"; then
3551 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3555 do
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3560 ac_cv_prog_ac_ct_CC="gcc"
3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 break 2
3563 fi
3564 done
3565 done
3566 IFS=$as_save_IFS
3567
3568 fi
3569 fi
3570 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3571 if test -n "$ac_ct_CC"; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3573 $as_echo "$ac_ct_CC" >&6; }
3574 else
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3577 fi
3578
3579 if test "x$ac_ct_CC" = x; then
3580 CC=""
3581 else
3582 case $cross_compiling:$ac_tool_warned in
3583 yes:)
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3586 ac_tool_warned=yes ;;
3587 esac
3588 CC=$ac_ct_CC
3589 fi
3590 else
3591 CC="$ac_cv_prog_CC"
3592 fi
3593
3594 if test -z "$CC"; then
3595 if test -n "$ac_tool_prefix"; then
3596 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3597 set dummy ${ac_tool_prefix}cc; ac_word=$2
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3599 $as_echo_n "checking for $ac_word... " >&6; }
3600 if test "${ac_cv_prog_CC+set}" = set; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3603 if test -n "$CC"; then
3604 ac_cv_prog_CC="$CC" # Let the user override the test.
3605 else
3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 for as_dir in $PATH
3608 do
3609 IFS=$as_save_IFS
3610 test -z "$as_dir" && as_dir=.
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3613 ac_cv_prog_CC="${ac_tool_prefix}cc"
3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 break 2
3616 fi
3617 done
3618 done
3619 IFS=$as_save_IFS
3620
3621 fi
3622 fi
3623 CC=$ac_cv_prog_CC
3624 if test -n "$CC"; then
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3626 $as_echo "$CC" >&6; }
3627 else
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3629 $as_echo "no" >&6; }
3630 fi
3631
3632
3633 fi
3634 fi
3635 if test -z "$CC"; then
3636 # Extract the first word of "cc", so it can be a program name with args.
3637 set dummy cc; ac_word=$2
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3639 $as_echo_n "checking for $ac_word... " >&6; }
3640 if test "${ac_cv_prog_CC+set}" = set; then :
3641 $as_echo_n "(cached) " >&6
3642 else
3643 if test -n "$CC"; then
3644 ac_cv_prog_CC="$CC" # Let the user override the test.
3645 else
3646 ac_prog_rejected=no
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 for as_dir in $PATH
3649 do
3650 IFS=$as_save_IFS
3651 test -z "$as_dir" && as_dir=.
3652 for ac_exec_ext in '' $ac_executable_extensions; do
3653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3654 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3655 ac_prog_rejected=yes
3656 continue
3657 fi
3658 ac_cv_prog_CC="cc"
3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3660 break 2
3661 fi
3662 done
3663 done
3664 IFS=$as_save_IFS
3665
3666 if test $ac_prog_rejected = yes; then
3667 # We found a bogon in the path, so make sure we never use it.
3668 set dummy $ac_cv_prog_CC
3669 shift
3670 if test $# != 0; then
3671 # We chose a different compiler from the bogus one.
3672 # However, it has the same basename, so the bogon will be chosen
3673 # first if we set CC to just the basename; use the full file name.
3674 shift
3675 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3676 fi
3677 fi
3678 fi
3679 fi
3680 CC=$ac_cv_prog_CC
3681 if test -n "$CC"; then
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3683 $as_echo "$CC" >&6; }
3684 else
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 $as_echo "no" >&6; }
3687 fi
3688
3689
3690 fi
3691 if test -z "$CC"; then
3692 if test -n "$ac_tool_prefix"; then
3693 for ac_prog in cl.exe
3694 do
3695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if test "${ac_cv_prog_CC+set}" = set; then :
3700 $as_echo_n "(cached) " >&6
3701 else
3702 if test -n "$CC"; then
3703 ac_cv_prog_CC="$CC" # Let the user override the test.
3704 else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3707 do
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3712 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 break 2
3715 fi
3716 done
3717 done
3718 IFS=$as_save_IFS
3719
3720 fi
3721 fi
3722 CC=$ac_cv_prog_CC
3723 if test -n "$CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3725 $as_echo "$CC" >&6; }
3726 else
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3729 fi
3730
3731
3732 test -n "$CC" && break
3733 done
3734 fi
3735 if test -z "$CC"; then
3736 ac_ct_CC=$CC
3737 for ac_prog in cl.exe
3738 do
3739 # Extract the first word of "$ac_prog", so it can be a program name with args.
3740 set dummy $ac_prog; ac_word=$2
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3742 $as_echo_n "checking for $ac_word... " >&6; }
3743 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3744 $as_echo_n "(cached) " >&6
3745 else
3746 if test -n "$ac_ct_CC"; then
3747 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3748 else
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 for as_dir in $PATH
3751 do
3752 IFS=$as_save_IFS
3753 test -z "$as_dir" && as_dir=.
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3756 ac_cv_prog_ac_ct_CC="$ac_prog"
3757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 break 2
3759 fi
3760 done
3761 done
3762 IFS=$as_save_IFS
3763
3764 fi
3765 fi
3766 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3767 if test -n "$ac_ct_CC"; then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3769 $as_echo "$ac_ct_CC" >&6; }
3770 else
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 $as_echo "no" >&6; }
3773 fi
3774
3775
3776 test -n "$ac_ct_CC" && break
3777 done
3778
3779 if test "x$ac_ct_CC" = x; then
3780 CC=""
3781 else
3782 case $cross_compiling:$ac_tool_warned in
3783 yes:)
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3786 ac_tool_warned=yes ;;
3787 esac
3788 CC=$ac_ct_CC
3789 fi
3790 fi
3791
3792 fi
3793
3794
3795 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3797 as_fn_error "no acceptable C compiler found in \$PATH
3798 See \`config.log' for more details." "$LINENO" 5; }
3799
3800 # Provide some information about the compiler.
3801 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3802 set X $ac_compile
3803 ac_compiler=$2
3804 for ac_option in --version -v -V -qversion; do
3805 { { ac_try="$ac_compiler $ac_option >&5"
3806 case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3809 esac
3810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811 $as_echo "$ac_try_echo"; } >&5
3812 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3813 ac_status=$?
3814 if test -s conftest.err; then
3815 sed '10a\
3816 ... rest of stderr output deleted ...
3817 10q' conftest.err >conftest.er1
3818 cat conftest.er1 >&5
3819 rm -f conftest.er1 conftest.err
3820 fi
3821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822 test $ac_status = 0; }
3823 done
3824
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3827
3828 int
3829 main ()
3830 {
3831
3832 ;
3833 return 0;
3834 }
3835 _ACEOF
3836 ac_clean_files_save=$ac_clean_files
3837 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3838 # Try to create an executable without -o first, disregard a.out.
3839 # It will help us diagnose broken compilers, and finding out an intuition
3840 # of exeext.
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3842 $as_echo_n "checking for C compiler default output file name... " >&6; }
3843 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3844
3845 # The possible output files:
3846 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3847
3848 ac_rmfiles=
3849 for ac_file in $ac_files
3850 do
3851 case $ac_file in
3852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3853 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3854 esac
3855 done
3856 rm -f $ac_rmfiles
3857
3858 if { { ac_try="$ac_link_default"
3859 case "(($ac_try" in
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3862 esac
3863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 $as_echo "$ac_try_echo"; } >&5
3865 (eval "$ac_link_default") 2>&5
3866 ac_status=$?
3867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868 test $ac_status = 0; }; then :
3869 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3870 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3871 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3872 # so that the user can short-circuit this test for compilers unknown to
3873 # Autoconf.
3874 for ac_file in $ac_files ''
3875 do
3876 test -f "$ac_file" || continue
3877 case $ac_file in
3878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3879 ;;
3880 [ab].out )
3881 # We found the default executable, but exeext='' is most
3882 # certainly right.
3883 break;;
3884 *.* )
3885 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3886 then :; else
3887 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3888 fi
3889 # We set ac_cv_exeext here because the later test for it is not
3890 # safe: cross compilers may not add the suffix if given an `-o'
3891 # argument, so we may need to know it at that point already.
3892 # Even if this section looks crufty: it has the advantage of
3893 # actually working.
3894 break;;
3895 * )
3896 break;;
3897 esac
3898 done
3899 test "$ac_cv_exeext" = no && ac_cv_exeext=
3900
3901 else
3902 ac_file=''
3903 fi
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3905 $as_echo "$ac_file" >&6; }
3906 if test -z "$ac_file"; then :
3907 $as_echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3909
3910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3912 { as_fn_set_status 77
3913 as_fn_error "C compiler cannot create executables
3914 See \`config.log' for more details." "$LINENO" 5; }; }
3915 fi
3916 ac_exeext=$ac_cv_exeext
3917
3918 # Check that the compiler produces executables we can run. If not, either
3919 # the compiler is broken, or we cross compile.
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3921 $as_echo_n "checking whether the C compiler works... " >&6; }
3922 # If not cross compiling, check that we can run a simple program.
3923 if test "$cross_compiling" != yes; then
3924 if { ac_try='./$ac_file'
3925 { { case "(($ac_try" in
3926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3928 esac
3929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3930 $as_echo "$ac_try_echo"; } >&5
3931 (eval "$ac_try") 2>&5
3932 ac_status=$?
3933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934 test $ac_status = 0; }; }; then
3935 cross_compiling=no
3936 else
3937 if test "$cross_compiling" = maybe; then
3938 cross_compiling=yes
3939 else
3940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3942 as_fn_error "cannot run C compiled programs.
3943 If you meant to cross compile, use \`--host'.
3944 See \`config.log' for more details." "$LINENO" 5; }
3945 fi
3946 fi
3947 fi
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3949 $as_echo "yes" >&6; }
3950
3951 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3952 ac_clean_files=$ac_clean_files_save
3953 # Check that the compiler produces executables we can run. If not, either
3954 # the compiler is broken, or we cross compile.
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3956 $as_echo_n "checking whether we are cross compiling... " >&6; }
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3958 $as_echo "$cross_compiling" >&6; }
3959
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3961 $as_echo_n "checking for suffix of executables... " >&6; }
3962 if { { ac_try="$ac_link"
3963 case "(($ac_try" in
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3966 esac
3967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3968 $as_echo "$ac_try_echo"; } >&5
3969 (eval "$ac_link") 2>&5
3970 ac_status=$?
3971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3972 test $ac_status = 0; }; then :
3973 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3974 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3975 # work properly (i.e., refer to `conftest.exe'), while it won't with
3976 # `rm'.
3977 for ac_file in conftest.exe conftest conftest.*; do
3978 test -f "$ac_file" || continue
3979 case $ac_file in
3980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3981 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3982 break;;
3983 * ) break;;
3984 esac
3985 done
3986 else
3987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3989 as_fn_error "cannot compute suffix of executables: cannot compile and link
3990 See \`config.log' for more details." "$LINENO" 5; }
3991 fi
3992 rm -f conftest$ac_cv_exeext
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3994 $as_echo "$ac_cv_exeext" >&6; }
3995
3996 rm -f conftest.$ac_ext
3997 EXEEXT=$ac_cv_exeext
3998 ac_exeext=$EXEEXT
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4000 $as_echo_n "checking for suffix of object files... " >&6; }
4001 if test "${ac_cv_objext+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4006
4007 int
4008 main ()
4009 {
4010
4011 ;
4012 return 0;
4013 }
4014 _ACEOF
4015 rm -f conftest.o conftest.obj
4016 if { { ac_try="$ac_compile"
4017 case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020 esac
4021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022 $as_echo "$ac_try_echo"; } >&5
4023 (eval "$ac_compile") 2>&5
4024 ac_status=$?
4025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026 test $ac_status = 0; }; then :
4027 for ac_file in conftest.o conftest.obj conftest.*; do
4028 test -f "$ac_file" || continue;
4029 case $ac_file in
4030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4031 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4032 break;;
4033 esac
4034 done
4035 else
4036 $as_echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4038
4039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4041 as_fn_error "cannot compute suffix of object files: cannot compile
4042 See \`config.log' for more details." "$LINENO" 5; }
4043 fi
4044 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4045 fi
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4047 $as_echo "$ac_cv_objext" >&6; }
4048 OBJEXT=$ac_cv_objext
4049 ac_objext=$OBJEXT
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4051 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4052 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4057
4058 int
4059 main ()
4060 {
4061 #ifndef __GNUC__
4062 choke me
4063 #endif
4064
4065 ;
4066 return 0;
4067 }
4068 _ACEOF
4069 if ac_fn_c_try_compile "$LINENO"; then :
4070 ac_compiler_gnu=yes
4071 else
4072 ac_compiler_gnu=no
4073 fi
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4076
4077 fi
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4079 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4080 if test $ac_compiler_gnu = yes; then
4081 GCC=yes
4082 else
4083 GCC=
4084 fi
4085 ac_test_CFLAGS=${CFLAGS+set}
4086 ac_save_CFLAGS=$CFLAGS
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4088 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4089 if test "${ac_cv_prog_cc_g+set}" = set; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 ac_save_c_werror_flag=$ac_c_werror_flag
4093 ac_c_werror_flag=yes
4094 ac_cv_prog_cc_g=no
4095 CFLAGS="-g"
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4098
4099 int
4100 main ()
4101 {
4102
4103 ;
4104 return 0;
4105 }
4106 _ACEOF
4107 if ac_fn_c_try_compile "$LINENO"; then :
4108 ac_cv_prog_cc_g=yes
4109 else
4110 CFLAGS=""
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4113
4114 int
4115 main ()
4116 {
4117
4118 ;
4119 return 0;
4120 }
4121 _ACEOF
4122 if ac_fn_c_try_compile "$LINENO"; then :
4123
4124 else
4125 ac_c_werror_flag=$ac_save_c_werror_flag
4126 CFLAGS="-g"
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4129
4130 int
4131 main ()
4132 {
4133
4134 ;
4135 return 0;
4136 }
4137 _ACEOF
4138 if ac_fn_c_try_compile "$LINENO"; then :
4139 ac_cv_prog_cc_g=yes
4140 fi
4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142 fi
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144 fi
4145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 ac_c_werror_flag=$ac_save_c_werror_flag
4147 fi
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4149 $as_echo "$ac_cv_prog_cc_g" >&6; }
4150 if test "$ac_test_CFLAGS" = set; then
4151 CFLAGS=$ac_save_CFLAGS
4152 elif test $ac_cv_prog_cc_g = yes; then
4153 if test "$GCC" = yes; then
4154 CFLAGS="-g -O2"
4155 else
4156 CFLAGS="-g"
4157 fi
4158 else
4159 if test "$GCC" = yes; then
4160 CFLAGS="-O2"
4161 else
4162 CFLAGS=
4163 fi
4164 fi
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4166 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4167 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4168 $as_echo_n "(cached) " >&6
4169 else
4170 ac_cv_prog_cc_c89=no
4171 ac_save_CC=$CC
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4174 #include <stdarg.h>
4175 #include <stdio.h>
4176 #include <sys/types.h>
4177 #include <sys/stat.h>
4178 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4179 struct buf { int x; };
4180 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4181 static char *e (p, i)
4182 char **p;
4183 int i;
4184 {
4185 return p[i];
4186 }
4187 static char *f (char * (*g) (char **, int), char **p, ...)
4188 {
4189 char *s;
4190 va_list v;
4191 va_start (v,p);
4192 s = g (p, va_arg (v,int));
4193 va_end (v);
4194 return s;
4195 }
4196
4197 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4198 function prototypes and stuff, but not '\xHH' hex character constants.
4199 These don't provoke an error unfortunately, instead are silently treated
4200 as 'x'. The following induces an error, until -std is added to get
4201 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4202 array size at least. It's necessary to write '\x00'==0 to get something
4203 that's true only with -std. */
4204 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4205
4206 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4207 inside strings and character constants. */
4208 #define FOO(x) 'x'
4209 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4210
4211 int test (int i, double x);
4212 struct s1 {int (*f) (int a);};
4213 struct s2 {int (*f) (double a);};
4214 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4215 int argc;
4216 char **argv;
4217 int
4218 main ()
4219 {
4220 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4221 ;
4222 return 0;
4223 }
4224 _ACEOF
4225 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4226 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4227 do
4228 CC="$ac_save_CC $ac_arg"
4229 if ac_fn_c_try_compile "$LINENO"; then :
4230 ac_cv_prog_cc_c89=$ac_arg
4231 fi
4232 rm -f core conftest.err conftest.$ac_objext
4233 test "x$ac_cv_prog_cc_c89" != "xno" && break
4234 done
4235 rm -f conftest.$ac_ext
4236 CC=$ac_save_CC
4237
4238 fi
4239 # AC_CACHE_VAL
4240 case "x$ac_cv_prog_cc_c89" in
4241 x)
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4243 $as_echo "none needed" >&6; } ;;
4244 xno)
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4246 $as_echo "unsupported" >&6; } ;;
4247 *)
4248 CC="$CC $ac_cv_prog_cc_c89"
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4250 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4251 esac
4252 if test "x$ac_cv_prog_cc_c89" != xno; then :
4253
4254 fi
4255
4256 ac_ext=c
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261
4262 if test "x$CC" != xcc; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4264 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4265 else
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4267 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4268 fi
4269 set dummy $CC; ac_cc=`$as_echo "$2" |
4270 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4271 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4272 $as_echo_n "(cached) " >&6
4273 else
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4276
4277 int
4278 main ()
4279 {
4280
4281 ;
4282 return 0;
4283 }
4284 _ACEOF
4285 # Make sure it works both with $CC and with simple cc.
4286 # We do the test twice because some compilers refuse to overwrite an
4287 # existing .o file with -o, though they will create one.
4288 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4289 rm -f conftest2.*
4290 if { { case "(($ac_try" in
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4293 esac
4294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296 (eval "$ac_try") 2>&5
4297 ac_status=$?
4298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299 test $ac_status = 0; } &&
4300 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4303 esac
4304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4305 $as_echo "$ac_try_echo"; } >&5
4306 (eval "$ac_try") 2>&5
4307 ac_status=$?
4308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4309 test $ac_status = 0; };
4310 then
4311 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4312 if test "x$CC" != xcc; then
4313 # Test first that cc exists at all.
4314 if { ac_try='cc -c conftest.$ac_ext >&5'
4315 { { case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4318 esac
4319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4320 $as_echo "$ac_try_echo"; } >&5
4321 (eval "$ac_try") 2>&5
4322 ac_status=$?
4323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4324 test $ac_status = 0; }; }; then
4325 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4326 rm -f conftest2.*
4327 if { { case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4330 esac
4331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4332 $as_echo "$ac_try_echo"; } >&5
4333 (eval "$ac_try") 2>&5
4334 ac_status=$?
4335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4336 test $ac_status = 0; } &&
4337 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4340 esac
4341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4342 $as_echo "$ac_try_echo"; } >&5
4343 (eval "$ac_try") 2>&5
4344 ac_status=$?
4345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4346 test $ac_status = 0; };
4347 then
4348 # cc works too.
4349 :
4350 else
4351 # cc exists but doesn't like -o.
4352 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4353 fi
4354 fi
4355 fi
4356 else
4357 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4358 fi
4359 rm -f core conftest*
4360
4361 fi
4362 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4364 $as_echo "yes" >&6; }
4365 else
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367 $as_echo "no" >&6; }
4368
4369 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4370
4371 fi
4372
4373 # expand $ac_aux_dir to an absolute path
4374 am_aux_dir=`cd $ac_aux_dir && pwd`
4375
4376 # FIXME: we rely on the cache variable name because
4377 # there is no other way.
4378 set dummy $CC
4379 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4380 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4381 if test "$am_t" != yes; then
4382 # Losing compiler, so override with the script.
4383 # FIXME: It is wrong to rewrite CC.
4384 # But if we don't then we get into trouble of one sort or another.
4385 # A longer-term fix would be to have automake use am__CC in this case,
4386 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4387 CC="$am_aux_dir/compile $CC"
4388 fi
4389
4390
4391 ac_ext=cpp
4392 ac_cpp='$CXXCPP $CPPFLAGS'
4393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4396 if test -z "$CXX"; then
4397 if test -n "$CCC"; then
4398 CXX=$CCC
4399 else
4400 if test -n "$ac_tool_prefix"; then
4401 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4402 do
4403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406 $as_echo_n "checking for $ac_word... " >&6; }
4407 if test "${ac_cv_prog_CXX+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 if test -n "$CXX"; then
4411 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4412 else
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH
4415 do
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 break 2
4423 fi
4424 done
4425 done
4426 IFS=$as_save_IFS
4427
4428 fi
4429 fi
4430 CXX=$ac_cv_prog_CXX
4431 if test -n "$CXX"; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4433 $as_echo "$CXX" >&6; }
4434 else
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4437 fi
4438
4439
4440 test -n "$CXX" && break
4441 done
4442 fi
4443 if test -z "$CXX"; then
4444 ac_ct_CXX=$CXX
4445 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4446 do
4447 # Extract the first word of "$ac_prog", so it can be a program name with args.
4448 set dummy $ac_prog; ac_word=$2
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 if test -n "$ac_ct_CXX"; then
4455 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4456 else
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4459 do
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4464 ac_cv_prog_ac_ct_CXX="$ac_prog"
4465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 break 2
4467 fi
4468 done
4469 done
4470 IFS=$as_save_IFS
4471
4472 fi
4473 fi
4474 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4475 if test -n "$ac_ct_CXX"; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4477 $as_echo "$ac_ct_CXX" >&6; }
4478 else
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 $as_echo "no" >&6; }
4481 fi
4482
4483
4484 test -n "$ac_ct_CXX" && break
4485 done
4486
4487 if test "x$ac_ct_CXX" = x; then
4488 CXX="g++"
4489 else
4490 case $cross_compiling:$ac_tool_warned in
4491 yes:)
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4494 ac_tool_warned=yes ;;
4495 esac
4496 CXX=$ac_ct_CXX
4497 fi
4498 fi
4499
4500 fi
4501 fi
4502 # Provide some information about the compiler.
4503 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4504 set X $ac_compile
4505 ac_compiler=$2
4506 for ac_option in --version -v -V -qversion; do
4507 { { ac_try="$ac_compiler $ac_option >&5"
4508 case "(($ac_try" in
4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4511 esac
4512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4513 $as_echo "$ac_try_echo"; } >&5
4514 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4515 ac_status=$?
4516 if test -s conftest.err; then
4517 sed '10a\
4518 ... rest of stderr output deleted ...
4519 10q' conftest.err >conftest.er1
4520 cat conftest.er1 >&5
4521 rm -f conftest.er1 conftest.err
4522 fi
4523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4524 test $ac_status = 0; }
4525 done
4526
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4528 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4529 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
4531 else
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h. */
4534
4535 int
4536 main ()
4537 {
4538 #ifndef __GNUC__
4539 choke me
4540 #endif
4541
4542 ;
4543 return 0;
4544 }
4545 _ACEOF
4546 if ac_fn_cxx_try_compile "$LINENO"; then :
4547 ac_compiler_gnu=yes
4548 else
4549 ac_compiler_gnu=no
4550 fi
4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4553
4554 fi
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4556 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4557 if test $ac_compiler_gnu = yes; then
4558 GXX=yes
4559 else
4560 GXX=
4561 fi
4562 ac_test_CXXFLAGS=${CXXFLAGS+set}
4563 ac_save_CXXFLAGS=$CXXFLAGS
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4565 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4566 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4570 ac_cxx_werror_flag=yes
4571 ac_cv_prog_cxx_g=no
4572 CXXFLAGS="-g"
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4575
4576 int
4577 main ()
4578 {
4579
4580 ;
4581 return 0;
4582 }
4583 _ACEOF
4584 if ac_fn_cxx_try_compile "$LINENO"; then :
4585 ac_cv_prog_cxx_g=yes
4586 else
4587 CXXFLAGS=""
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4590
4591 int
4592 main ()
4593 {
4594
4595 ;
4596 return 0;
4597 }
4598 _ACEOF
4599 if ac_fn_cxx_try_compile "$LINENO"; then :
4600
4601 else
4602 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4603 CXXFLAGS="-g"
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4606
4607 int
4608 main ()
4609 {
4610
4611 ;
4612 return 0;
4613 }
4614 _ACEOF
4615 if ac_fn_cxx_try_compile "$LINENO"; then :
4616 ac_cv_prog_cxx_g=yes
4617 fi
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 fi
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 fi
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4624 fi
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4626 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4627 if test "$ac_test_CXXFLAGS" = set; then
4628 CXXFLAGS=$ac_save_CXXFLAGS
4629 elif test $ac_cv_prog_cxx_g = yes; then
4630 if test "$GXX" = yes; then
4631 CXXFLAGS="-g -O2"
4632 else
4633 CXXFLAGS="-g"
4634 fi
4635 else
4636 if test "$GXX" = yes; then
4637 CXXFLAGS="-O2"
4638 else
4639 CXXFLAGS=
4640 fi
4641 fi
4642 ac_ext=c
4643 ac_cpp='$CPP $CPPFLAGS'
4644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4647
4648
4649
4650
4651 if test -n "$ac_tool_prefix"; then
4652 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4653 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4655 $as_echo_n "checking for $ac_word... " >&6; }
4656 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
4658 else
4659 if test -n "$GNATBIND"; then
4660 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4661 else
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH
4664 do
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 break 2
4672 fi
4673 done
4674 done
4675 IFS=$as_save_IFS
4676
4677 fi
4678 fi
4679 GNATBIND=$ac_cv_prog_GNATBIND
4680 if test -n "$GNATBIND"; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4682 $as_echo "$GNATBIND" >&6; }
4683 else
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685 $as_echo "no" >&6; }
4686 fi
4687
4688
4689 fi
4690 if test -z "$ac_cv_prog_GNATBIND"; then
4691 ac_ct_GNATBIND=$GNATBIND
4692 # Extract the first word of "gnatbind", so it can be a program name with args.
4693 set dummy gnatbind; ac_word=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 if test -n "$ac_ct_GNATBIND"; then
4700 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4701 else
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4704 do
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 break 2
4712 fi
4713 done
4714 done
4715 IFS=$as_save_IFS
4716
4717 fi
4718 fi
4719 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4720 if test -n "$ac_ct_GNATBIND"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4722 $as_echo "$ac_ct_GNATBIND" >&6; }
4723 else
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4726 fi
4727
4728 if test "x$ac_ct_GNATBIND" = x; then
4729 GNATBIND="no"
4730 else
4731 case $cross_compiling:$ac_tool_warned in
4732 yes:)
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4735 ac_tool_warned=yes ;;
4736 esac
4737 GNATBIND=$ac_ct_GNATBIND
4738 fi
4739 else
4740 GNATBIND="$ac_cv_prog_GNATBIND"
4741 fi
4742
4743 if test -n "$ac_tool_prefix"; then
4744 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4745 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4747 $as_echo_n "checking for $ac_word... " >&6; }
4748 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 if test -n "$GNATMAKE"; then
4752 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4753 else
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH
4756 do
4757 IFS=$as_save_IFS
4758 test -z "$as_dir" && as_dir=.
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4761 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 break 2
4764 fi
4765 done
4766 done
4767 IFS=$as_save_IFS
4768
4769 fi
4770 fi
4771 GNATMAKE=$ac_cv_prog_GNATMAKE
4772 if test -n "$GNATMAKE"; then
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4774 $as_echo "$GNATMAKE" >&6; }
4775 else
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4777 $as_echo "no" >&6; }
4778 fi
4779
4780
4781 fi
4782 if test -z "$ac_cv_prog_GNATMAKE"; then
4783 ac_ct_GNATMAKE=$GNATMAKE
4784 # Extract the first word of "gnatmake", so it can be a program name with args.
4785 set dummy gnatmake; ac_word=$2
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4787 $as_echo_n "checking for $ac_word... " >&6; }
4788 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4789 $as_echo_n "(cached) " >&6
4790 else
4791 if test -n "$ac_ct_GNATMAKE"; then
4792 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4793 else
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH
4796 do
4797 IFS=$as_save_IFS
4798 test -z "$as_dir" && as_dir=.
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4801 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 break 2
4804 fi
4805 done
4806 done
4807 IFS=$as_save_IFS
4808
4809 fi
4810 fi
4811 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4812 if test -n "$ac_ct_GNATMAKE"; then
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4814 $as_echo "$ac_ct_GNATMAKE" >&6; }
4815 else
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4817 $as_echo "no" >&6; }
4818 fi
4819
4820 if test "x$ac_ct_GNATMAKE" = x; then
4821 GNATMAKE="no"
4822 else
4823 case $cross_compiling:$ac_tool_warned in
4824 yes:)
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4827 ac_tool_warned=yes ;;
4828 esac
4829 GNATMAKE=$ac_ct_GNATMAKE
4830 fi
4831 else
4832 GNATMAKE="$ac_cv_prog_GNATMAKE"
4833 fi
4834
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4836 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4837 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4838 $as_echo_n "(cached) " >&6
4839 else
4840 cat >conftest.adb <<EOF
4841 procedure conftest is begin null; end conftest;
4842 EOF
4843 acx_cv_cc_gcc_supports_ada=no
4844 # There is a bug in old released versions of GCC which causes the
4845 # driver to exit successfully when the appropriate language module
4846 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4847 # Therefore we must check for the error message as well as an
4848 # unsuccessful exit.
4849 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4850 # given a .adb file, but produce no object file. So we must check
4851 # if an object file was really produced to guard against this.
4852 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4853 if test x"$errors" = x && test -f conftest.$ac_objext; then
4854 acx_cv_cc_gcc_supports_ada=yes
4855 fi
4856 rm -f conftest.*
4857 fi
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4859 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4860
4861 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4862 have_gnat=yes
4863 else
4864 have_gnat=no
4865 fi
4866
4867
4868 # autoconf is lame and doesn't give us any substitution variable for this.
4869 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4870 NO_MINUS_C_MINUS_O=yes
4871 else
4872 OUTPUT_OPTION='-o $@'
4873 fi
4874
4875
4876
4877 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4878 # optimizations to be activated explicitly by the toplevel.
4879 case "$CC" in
4880 */prev-gcc/xgcc*) ;;
4881 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4882 esac
4883
4884
4885 # Determine PICFLAG for target gnatlib.
4886
4887
4888
4889
4890 case "${target}" in
4891 # PIC is the default on some targets or must not be used.
4892 *-*-darwin*)
4893 # PIC is the default on this platform
4894 # Common symbols not allowed in MH_DYLIB files
4895 PICFLAG_FOR_TARGET=-fno-common
4896 ;;
4897 alpha*-dec-osf5*)
4898 # PIC is the default.
4899 ;;
4900 hppa*64*-*-hpux*)
4901 # PIC is the default for 64-bit PA HP-UX.
4902 ;;
4903 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4904 ;;
4905 i[34567]86-*-interix[3-9]*)
4906 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4907 # Instead, we relocate shared libraries at runtime.
4908 ;;
4909 i[34567]86-*-nto-qnx*)
4910 # QNX uses GNU C++, but need to define -shared option too, otherwise
4911 # it will coredump.
4912 PICFLAG_FOR_TARGET='-fPIC -shared'
4913 ;;
4914 i[34567]86-pc-msdosdjgpp*)
4915 # DJGPP does not support shared libraries at all.
4916 ;;
4917 ia64*-*-hpux*)
4918 # On IA64 HP-UX, PIC is the default but the pic flag
4919 # sets the default TLS model and affects inlining.
4920 PICFLAG_FOR_TARGET=-fPIC
4921 ;;
4922 mips-sgi-irix6*)
4923 # PIC is the default.
4924 ;;
4925 rs6000-ibm-aix* | powerpc-ibm-aix*)
4926 # All AIX code is PIC.
4927 ;;
4928
4929 # Some targets support both -fPIC and -fpic, but prefer the latter.
4930 # FIXME: Why?
4931 i[34567]86-*-* | x86_64-*-*)
4932 PICFLAG_FOR_TARGET=-fpic
4933 ;;
4934 m68k-*-*)
4935 PICFLAG_FOR_TARGET=-fpic
4936 ;;
4937 # FIXME: Override -fPIC default in libgcc only?
4938 sh-*-linux* | sh[2346lbe]*-*-linux*)
4939 PICFLAG_FOR_TARGET=-fpic
4940 ;;
4941 # FIXME: Simplify to sh*-*-netbsd*?
4942 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4943 sh64-*-netbsd* | sh64l*-*-netbsd*)
4944 PICFLAG_FOR_TARGET=-fpic
4945 ;;
4946 # Default to -fPIC unless specified otherwise.
4947 *)
4948 PICFLAG_FOR_TARGET=-fPIC
4949 ;;
4950 esac
4951
4952 # If the user explicitly uses -fpic/-fPIC, keep that.
4953 case "${CFLAGS_FOR_TARGET}" in
4954 *-fpic*)
4955 PICFLAG_FOR_TARGET=-fpic
4956 ;;
4957 *-fPIC*)
4958 PICFLAG_FOR_TARGET=-fPIC
4959 ;;
4960 esac
4961
4962
4963
4964 # -------------------------
4965 # Check C compiler features
4966 # -------------------------
4967
4968
4969 ac_ext=c
4970 ac_cpp='$CPP $CPPFLAGS'
4971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4975 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4976 # On Suns, sometimes $CPP names a directory.
4977 if test -n "$CPP" && test -d "$CPP"; then
4978 CPP=
4979 fi
4980 if test -z "$CPP"; then
4981 if test "${ac_cv_prog_CPP+set}" = set; then :
4982 $as_echo_n "(cached) " >&6
4983 else
4984 # Double quotes because CPP needs to be expanded
4985 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4986 do
4987 ac_preproc_ok=false
4988 for ac_c_preproc_warn_flag in '' yes
4989 do
4990 # Use a header file that comes with gcc, so configuring glibc
4991 # with a fresh cross-compiler works.
4992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4993 # <limits.h> exists even on freestanding compilers.
4994 # On the NeXT, cc -E runs the code through the compiler's parser,
4995 # not just through cpp. "Syntax error" is here to catch this case.
4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997 /* end confdefs.h. */
4998 #ifdef __STDC__
4999 # include <limits.h>
5000 #else
5001 # include <assert.h>
5002 #endif
5003 Syntax error
5004 _ACEOF
5005 if ac_fn_c_try_cpp "$LINENO"; then :
5006
5007 else
5008 # Broken: fails on valid input.
5009 continue
5010 fi
5011 rm -f conftest.err conftest.$ac_ext
5012
5013 # OK, works on sane cases. Now check whether nonexistent headers
5014 # can be detected and how.
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5017 #include <ac_nonexistent.h>
5018 _ACEOF
5019 if ac_fn_c_try_cpp "$LINENO"; then :
5020 # Broken: success on invalid input.
5021 continue
5022 else
5023 # Passes both tests.
5024 ac_preproc_ok=:
5025 break
5026 fi
5027 rm -f conftest.err conftest.$ac_ext
5028
5029 done
5030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5031 rm -f conftest.err conftest.$ac_ext
5032 if $ac_preproc_ok; then :
5033 break
5034 fi
5035
5036 done
5037 ac_cv_prog_CPP=$CPP
5038
5039 fi
5040 CPP=$ac_cv_prog_CPP
5041 else
5042 ac_cv_prog_CPP=$CPP
5043 fi
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5045 $as_echo "$CPP" >&6; }
5046 ac_preproc_ok=false
5047 for ac_c_preproc_warn_flag in '' yes
5048 do
5049 # Use a header file that comes with gcc, so configuring glibc
5050 # with a fresh cross-compiler works.
5051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5052 # <limits.h> exists even on freestanding compilers.
5053 # On the NeXT, cc -E runs the code through the compiler's parser,
5054 # not just through cpp. "Syntax error" is here to catch this case.
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5057 #ifdef __STDC__
5058 # include <limits.h>
5059 #else
5060 # include <assert.h>
5061 #endif
5062 Syntax error
5063 _ACEOF
5064 if ac_fn_c_try_cpp "$LINENO"; then :
5065
5066 else
5067 # Broken: fails on valid input.
5068 continue
5069 fi
5070 rm -f conftest.err conftest.$ac_ext
5071
5072 # OK, works on sane cases. Now check whether nonexistent headers
5073 # can be detected and how.
5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h. */
5076 #include <ac_nonexistent.h>
5077 _ACEOF
5078 if ac_fn_c_try_cpp "$LINENO"; then :
5079 # Broken: success on invalid input.
5080 continue
5081 else
5082 # Passes both tests.
5083 ac_preproc_ok=:
5084 break
5085 fi
5086 rm -f conftest.err conftest.$ac_ext
5087
5088 done
5089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5090 rm -f conftest.err conftest.$ac_ext
5091 if $ac_preproc_ok; then :
5092
5093 else
5094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5096 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5097 See \`config.log' for more details." "$LINENO" 5; }
5098 fi
5099
5100 ac_ext=c
5101 ac_cpp='$CPP $CPPFLAGS'
5102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5105
5106
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5108 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5109 if test "${ac_cv_path_GREP+set}" = set; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 if test -z "$GREP"; then
5113 ac_path_GREP_found=false
5114 # Loop through the user's path and test for each of PROGNAME-LIST
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5117 do
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_prog in grep ggrep; do
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5123 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5124 # Check for GNU ac_path_GREP and select it if it is found.
5125 # Check for GNU $ac_path_GREP
5126 case `"$ac_path_GREP" --version 2>&1` in
5127 *GNU*)
5128 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5129 *)
5130 ac_count=0
5131 $as_echo_n 0123456789 >"conftest.in"
5132 while :
5133 do
5134 cat "conftest.in" "conftest.in" >"conftest.tmp"
5135 mv "conftest.tmp" "conftest.in"
5136 cp "conftest.in" "conftest.nl"
5137 $as_echo 'GREP' >> "conftest.nl"
5138 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5139 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5140 as_fn_arith $ac_count + 1 && ac_count=$as_val
5141 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5142 # Best one so far, save it but keep looking for a better one
5143 ac_cv_path_GREP="$ac_path_GREP"
5144 ac_path_GREP_max=$ac_count
5145 fi
5146 # 10*(2^10) chars as input seems more than enough
5147 test $ac_count -gt 10 && break
5148 done
5149 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5150 esac
5151
5152 $ac_path_GREP_found && break 3
5153 done
5154 done
5155 done
5156 IFS=$as_save_IFS
5157 if test -z "$ac_cv_path_GREP"; then
5158 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5159 fi
5160 else
5161 ac_cv_path_GREP=$GREP
5162 fi
5163
5164 fi
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5166 $as_echo "$ac_cv_path_GREP" >&6; }
5167 GREP="$ac_cv_path_GREP"
5168
5169
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5171 $as_echo_n "checking for egrep... " >&6; }
5172 if test "${ac_cv_path_EGREP+set}" = set; then :
5173 $as_echo_n "(cached) " >&6
5174 else
5175 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5176 then ac_cv_path_EGREP="$GREP -E"
5177 else
5178 if test -z "$EGREP"; then
5179 ac_path_EGREP_found=false
5180 # Loop through the user's path and test for each of PROGNAME-LIST
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5183 do
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 for ac_prog in egrep; do
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5189 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5190 # Check for GNU ac_path_EGREP and select it if it is found.
5191 # Check for GNU $ac_path_EGREP
5192 case `"$ac_path_EGREP" --version 2>&1` in
5193 *GNU*)
5194 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5195 *)
5196 ac_count=0
5197 $as_echo_n 0123456789 >"conftest.in"
5198 while :
5199 do
5200 cat "conftest.in" "conftest.in" >"conftest.tmp"
5201 mv "conftest.tmp" "conftest.in"
5202 cp "conftest.in" "conftest.nl"
5203 $as_echo 'EGREP' >> "conftest.nl"
5204 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5205 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5206 as_fn_arith $ac_count + 1 && ac_count=$as_val
5207 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5208 # Best one so far, save it but keep looking for a better one
5209 ac_cv_path_EGREP="$ac_path_EGREP"
5210 ac_path_EGREP_max=$ac_count
5211 fi
5212 # 10*(2^10) chars as input seems more than enough
5213 test $ac_count -gt 10 && break
5214 done
5215 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5216 esac
5217
5218 $ac_path_EGREP_found && break 3
5219 done
5220 done
5221 done
5222 IFS=$as_save_IFS
5223 if test -z "$ac_cv_path_EGREP"; then
5224 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5225 fi
5226 else
5227 ac_cv_path_EGREP=$EGREP
5228 fi
5229
5230 fi
5231 fi
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5233 $as_echo "$ac_cv_path_EGREP" >&6; }
5234 EGREP="$ac_cv_path_EGREP"
5235
5236
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5238 $as_echo_n "checking for ANSI C header files... " >&6; }
5239 if test "${ac_cv_header_stdc+set}" = set; then :
5240 $as_echo_n "(cached) " >&6
5241 else
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5244 #include <stdlib.h>
5245 #include <stdarg.h>
5246 #include <string.h>
5247 #include <float.h>
5248
5249 int
5250 main ()
5251 {
5252
5253 ;
5254 return 0;
5255 }
5256 _ACEOF
5257 if ac_fn_c_try_compile "$LINENO"; then :
5258 ac_cv_header_stdc=yes
5259 else
5260 ac_cv_header_stdc=no
5261 fi
5262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263
5264 if test $ac_cv_header_stdc = yes; then
5265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5268 #include <string.h>
5269
5270 _ACEOF
5271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5272 $EGREP "memchr" >/dev/null 2>&1; then :
5273
5274 else
5275 ac_cv_header_stdc=no
5276 fi
5277 rm -f conftest*
5278
5279 fi
5280
5281 if test $ac_cv_header_stdc = yes; then
5282 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h. */
5285 #include <stdlib.h>
5286
5287 _ACEOF
5288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5289 $EGREP "free" >/dev/null 2>&1; then :
5290
5291 else
5292 ac_cv_header_stdc=no
5293 fi
5294 rm -f conftest*
5295
5296 fi
5297
5298 if test $ac_cv_header_stdc = yes; then
5299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5300 if test "$cross_compiling" = yes; then :
5301 :
5302 else
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5305 #include <ctype.h>
5306 #include <stdlib.h>
5307 #if ((' ' & 0x0FF) == 0x020)
5308 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5309 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5310 #else
5311 # define ISLOWER(c) \
5312 (('a' <= (c) && (c) <= 'i') \
5313 || ('j' <= (c) && (c) <= 'r') \
5314 || ('s' <= (c) && (c) <= 'z'))
5315 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5316 #endif
5317
5318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5319 int
5320 main ()
5321 {
5322 int i;
5323 for (i = 0; i < 256; i++)
5324 if (XOR (islower (i), ISLOWER (i))
5325 || toupper (i) != TOUPPER (i))
5326 return 2;
5327 return 0;
5328 }
5329 _ACEOF
5330 if ac_fn_c_try_run "$LINENO"; then :
5331
5332 else
5333 ac_cv_header_stdc=no
5334 fi
5335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5336 conftest.$ac_objext conftest.beam conftest.$ac_ext
5337 fi
5338
5339 fi
5340 fi
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5342 $as_echo "$ac_cv_header_stdc" >&6; }
5343 if test $ac_cv_header_stdc = yes; then
5344
5345 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5346
5347 fi
5348
5349 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5350 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5351 inttypes.h stdint.h unistd.h
5352 do :
5353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5354 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5355 "
5356 eval as_val=\$$as_ac_Header
5357 if test "x$as_val" = x""yes; then :
5358 cat >>confdefs.h <<_ACEOF
5359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5360 _ACEOF
5361
5362 fi
5363
5364 done
5365
5366
5367
5368 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5369 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5370 MINIX=yes
5371 else
5372 MINIX=
5373 fi
5374
5375
5376 if test "$MINIX" = yes; then
5377
5378 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5379
5380
5381 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5382
5383
5384 $as_echo "#define _MINIX 1" >>confdefs.h
5385
5386 fi
5387
5388
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5390 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5391 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5396
5397 # define __EXTENSIONS__ 1
5398 $ac_includes_default
5399 int
5400 main ()
5401 {
5402
5403 ;
5404 return 0;
5405 }
5406 _ACEOF
5407 if ac_fn_c_try_compile "$LINENO"; then :
5408 ac_cv_safe_to_define___extensions__=yes
5409 else
5410 ac_cv_safe_to_define___extensions__=no
5411 fi
5412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413 fi
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5415 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5416 test $ac_cv_safe_to_define___extensions__ = yes &&
5417 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5418
5419 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5420
5421 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5422
5423 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5424
5425 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5426
5427
5428 ac_ext=c
5429 ac_cpp='$CPP $CPPFLAGS'
5430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5434 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5435 # On Suns, sometimes $CPP names a directory.
5436 if test -n "$CPP" && test -d "$CPP"; then
5437 CPP=
5438 fi
5439 if test -z "$CPP"; then
5440 if test "${ac_cv_prog_CPP+set}" = set; then :
5441 $as_echo_n "(cached) " >&6
5442 else
5443 # Double quotes because CPP needs to be expanded
5444 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5445 do
5446 ac_preproc_ok=false
5447 for ac_c_preproc_warn_flag in '' yes
5448 do
5449 # Use a header file that comes with gcc, so configuring glibc
5450 # with a fresh cross-compiler works.
5451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5452 # <limits.h> exists even on freestanding compilers.
5453 # On the NeXT, cc -E runs the code through the compiler's parser,
5454 # not just through cpp. "Syntax error" is here to catch this case.
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5457 #ifdef __STDC__
5458 # include <limits.h>
5459 #else
5460 # include <assert.h>
5461 #endif
5462 Syntax error
5463 _ACEOF
5464 if ac_fn_c_try_cpp "$LINENO"; then :
5465
5466 else
5467 # Broken: fails on valid input.
5468 continue
5469 fi
5470 rm -f conftest.err conftest.$ac_ext
5471
5472 # OK, works on sane cases. Now check whether nonexistent headers
5473 # can be detected and how.
5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475 /* end confdefs.h. */
5476 #include <ac_nonexistent.h>
5477 _ACEOF
5478 if ac_fn_c_try_cpp "$LINENO"; then :
5479 # Broken: success on invalid input.
5480 continue
5481 else
5482 # Passes both tests.
5483 ac_preproc_ok=:
5484 break
5485 fi
5486 rm -f conftest.err conftest.$ac_ext
5487
5488 done
5489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5490 rm -f conftest.err conftest.$ac_ext
5491 if $ac_preproc_ok; then :
5492 break
5493 fi
5494
5495 done
5496 ac_cv_prog_CPP=$CPP
5497
5498 fi
5499 CPP=$ac_cv_prog_CPP
5500 else
5501 ac_cv_prog_CPP=$CPP
5502 fi
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5504 $as_echo "$CPP" >&6; }
5505 ac_preproc_ok=false
5506 for ac_c_preproc_warn_flag in '' yes
5507 do
5508 # Use a header file that comes with gcc, so configuring glibc
5509 # with a fresh cross-compiler works.
5510 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5511 # <limits.h> exists even on freestanding compilers.
5512 # On the NeXT, cc -E runs the code through the compiler's parser,
5513 # not just through cpp. "Syntax error" is here to catch this case.
5514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515 /* end confdefs.h. */
5516 #ifdef __STDC__
5517 # include <limits.h>
5518 #else
5519 # include <assert.h>
5520 #endif
5521 Syntax error
5522 _ACEOF
5523 if ac_fn_c_try_cpp "$LINENO"; then :
5524
5525 else
5526 # Broken: fails on valid input.
5527 continue
5528 fi
5529 rm -f conftest.err conftest.$ac_ext
5530
5531 # OK, works on sane cases. Now check whether nonexistent headers
5532 # can be detected and how.
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5535 #include <ac_nonexistent.h>
5536 _ACEOF
5537 if ac_fn_c_try_cpp "$LINENO"; then :
5538 # Broken: success on invalid input.
5539 continue
5540 else
5541 # Passes both tests.
5542 ac_preproc_ok=:
5543 break
5544 fi
5545 rm -f conftest.err conftest.$ac_ext
5546
5547 done
5548 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5549 rm -f conftest.err conftest.$ac_ext
5550 if $ac_preproc_ok; then :
5551
5552 else
5553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5555 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5556 See \`config.log' for more details." "$LINENO" 5; }
5557 fi
5558
5559 ac_ext=c
5560 ac_cpp='$CPP $CPPFLAGS'
5561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5564
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5566 $as_echo_n "checking for inline... " >&6; }
5567 if test "${ac_cv_c_inline+set}" = set; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 ac_cv_c_inline=no
5571 for ac_kw in inline __inline__ __inline; do
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5574 #ifndef __cplusplus
5575 typedef int foo_t;
5576 static $ac_kw foo_t static_foo () {return 0; }
5577 $ac_kw foo_t foo () {return 0; }
5578 #endif
5579
5580 _ACEOF
5581 if ac_fn_c_try_compile "$LINENO"; then :
5582 ac_cv_c_inline=$ac_kw
5583 fi
5584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585 test "$ac_cv_c_inline" != no && break
5586 done
5587
5588 fi
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5590 $as_echo "$ac_cv_c_inline" >&6; }
5591
5592 case $ac_cv_c_inline in
5593 inline | yes) ;;
5594 *)
5595 case $ac_cv_c_inline in
5596 no) ac_val=;;
5597 *) ac_val=$ac_cv_c_inline;;
5598 esac
5599 cat >>confdefs.h <<_ACEOF
5600 #ifndef __cplusplus
5601 #define inline $ac_val
5602 #endif
5603 _ACEOF
5604 ;;
5605 esac
5606
5607
5608 # Check whether --enable-largefile was given.
5609 if test "${enable_largefile+set}" = set; then :
5610 enableval=$enable_largefile;
5611 fi
5612
5613 if test "$enable_largefile" != no; then
5614
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5616 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5617 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5620 ac_cv_sys_largefile_CC=no
5621 if test "$GCC" != yes; then
5622 ac_save_CC=$CC
5623 while :; do
5624 # IRIX 6.2 and later do not support large files by default,
5625 # so use the C compiler's -n32 option if that helps.
5626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627 /* end confdefs.h. */
5628 #include <sys/types.h>
5629 /* Check that off_t can represent 2**63 - 1 correctly.
5630 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5631 since some C++ compilers masquerading as C compilers
5632 incorrectly reject 9223372036854775807. */
5633 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5634 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5635 && LARGE_OFF_T % 2147483647 == 1)
5636 ? 1 : -1];
5637 int
5638 main ()
5639 {
5640
5641 ;
5642 return 0;
5643 }
5644 _ACEOF
5645 if ac_fn_c_try_compile "$LINENO"; then :
5646 break
5647 fi
5648 rm -f core conftest.err conftest.$ac_objext
5649 CC="$CC -n32"
5650 if ac_fn_c_try_compile "$LINENO"; then :
5651 ac_cv_sys_largefile_CC=' -n32'; break
5652 fi
5653 rm -f core conftest.err conftest.$ac_objext
5654 break
5655 done
5656 CC=$ac_save_CC
5657 rm -f conftest.$ac_ext
5658 fi
5659 fi
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5661 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5662 if test "$ac_cv_sys_largefile_CC" != no; then
5663 CC=$CC$ac_cv_sys_largefile_CC
5664 fi
5665
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5667 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5668 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5669 $as_echo_n "(cached) " >&6
5670 else
5671 while :; do
5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5674 #include <sys/types.h>
5675 /* Check that off_t can represent 2**63 - 1 correctly.
5676 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5677 since some C++ compilers masquerading as C compilers
5678 incorrectly reject 9223372036854775807. */
5679 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5680 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5681 && LARGE_OFF_T % 2147483647 == 1)
5682 ? 1 : -1];
5683 int
5684 main ()
5685 {
5686
5687 ;
5688 return 0;
5689 }
5690 _ACEOF
5691 if ac_fn_c_try_compile "$LINENO"; then :
5692 ac_cv_sys_file_offset_bits=no; break
5693 fi
5694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5697 #define _FILE_OFFSET_BITS 64
5698 #include <sys/types.h>
5699 /* Check that off_t can represent 2**63 - 1 correctly.
5700 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5701 since some C++ compilers masquerading as C compilers
5702 incorrectly reject 9223372036854775807. */
5703 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5704 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5705 && LARGE_OFF_T % 2147483647 == 1)
5706 ? 1 : -1];
5707 int
5708 main ()
5709 {
5710
5711 ;
5712 return 0;
5713 }
5714 _ACEOF
5715 if ac_fn_c_try_compile "$LINENO"; then :
5716 ac_cv_sys_file_offset_bits=64; break
5717 fi
5718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5719 ac_cv_sys_file_offset_bits=unknown
5720 break
5721 done
5722 fi
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5724 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5725 case $ac_cv_sys_file_offset_bits in #(
5726 no | unknown) ;;
5727 *)
5728 cat >>confdefs.h <<_ACEOF
5729 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5730 _ACEOF
5731 ;;
5732 esac
5733 rm -rf conftest*
5734 if test $ac_cv_sys_file_offset_bits = unknown; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5736 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5737 if test "${ac_cv_sys_large_files+set}" = set; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740 while :; do
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5743 #include <sys/types.h>
5744 /* Check that off_t can represent 2**63 - 1 correctly.
5745 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5746 since some C++ compilers masquerading as C compilers
5747 incorrectly reject 9223372036854775807. */
5748 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5749 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5750 && LARGE_OFF_T % 2147483647 == 1)
5751 ? 1 : -1];
5752 int
5753 main ()
5754 {
5755
5756 ;
5757 return 0;
5758 }
5759 _ACEOF
5760 if ac_fn_c_try_compile "$LINENO"; then :
5761 ac_cv_sys_large_files=no; break
5762 fi
5763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5765 /* end confdefs.h. */
5766 #define _LARGE_FILES 1
5767 #include <sys/types.h>
5768 /* Check that off_t can represent 2**63 - 1 correctly.
5769 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5770 since some C++ compilers masquerading as C compilers
5771 incorrectly reject 9223372036854775807. */
5772 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5773 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5774 && LARGE_OFF_T % 2147483647 == 1)
5775 ? 1 : -1];
5776 int
5777 main ()
5778 {
5779
5780 ;
5781 return 0;
5782 }
5783 _ACEOF
5784 if ac_fn_c_try_compile "$LINENO"; then :
5785 ac_cv_sys_large_files=1; break
5786 fi
5787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5788 ac_cv_sys_large_files=unknown
5789 break
5790 done
5791 fi
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5793 $as_echo "$ac_cv_sys_large_files" >&6; }
5794 case $ac_cv_sys_large_files in #(
5795 no | unknown) ;;
5796 *)
5797 cat >>confdefs.h <<_ACEOF
5798 #define _LARGE_FILES $ac_cv_sys_large_files
5799 _ACEOF
5800 ;;
5801 esac
5802 rm -rf conftest*
5803 fi
5804 fi
5805
5806
5807 # sizeof(char) is 1 by definition.
5808 # The cast to long int works around a bug in the HP C Compiler
5809 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5810 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5811 # This bug is HP SR number 8606223364.
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5813 $as_echo_n "checking size of void *... " >&6; }
5814 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5815 $as_echo_n "(cached) " >&6
5816 else
5817 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5818
5819 else
5820 if test "$ac_cv_type_void_p" = yes; then
5821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5823 { as_fn_set_status 77
5824 as_fn_error "cannot compute sizeof (void *)
5825 See \`config.log' for more details." "$LINENO" 5; }; }
5826 else
5827 ac_cv_sizeof_void_p=0
5828 fi
5829 fi
5830
5831 fi
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5833 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5834
5835
5836
5837 cat >>confdefs.h <<_ACEOF
5838 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5839 _ACEOF
5840
5841
5842 # The cast to long int works around a bug in the HP C Compiler
5843 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5844 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5845 # This bug is HP SR number 8606223364.
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5847 $as_echo_n "checking size of short... " >&6; }
5848 if test "${ac_cv_sizeof_short+set}" = set; then :
5849 $as_echo_n "(cached) " >&6
5850 else
5851 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5852
5853 else
5854 if test "$ac_cv_type_short" = yes; then
5855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5857 { as_fn_set_status 77
5858 as_fn_error "cannot compute sizeof (short)
5859 See \`config.log' for more details." "$LINENO" 5; }; }
5860 else
5861 ac_cv_sizeof_short=0
5862 fi
5863 fi
5864
5865 fi
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5867 $as_echo "$ac_cv_sizeof_short" >&6; }
5868
5869
5870
5871 cat >>confdefs.h <<_ACEOF
5872 #define SIZEOF_SHORT $ac_cv_sizeof_short
5873 _ACEOF
5874
5875
5876 # The cast to long int works around a bug in the HP C Compiler
5877 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5878 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5879 # This bug is HP SR number 8606223364.
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5881 $as_echo_n "checking size of int... " >&6; }
5882 if test "${ac_cv_sizeof_int+set}" = set; then :
5883 $as_echo_n "(cached) " >&6
5884 else
5885 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5886
5887 else
5888 if test "$ac_cv_type_int" = yes; then
5889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5891 { as_fn_set_status 77
5892 as_fn_error "cannot compute sizeof (int)
5893 See \`config.log' for more details." "$LINENO" 5; }; }
5894 else
5895 ac_cv_sizeof_int=0
5896 fi
5897 fi
5898
5899 fi
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5901 $as_echo "$ac_cv_sizeof_int" >&6; }
5902
5903
5904
5905 cat >>confdefs.h <<_ACEOF
5906 #define SIZEOF_INT $ac_cv_sizeof_int
5907 _ACEOF
5908
5909
5910 # The cast to long int works around a bug in the HP C Compiler
5911 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5912 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5913 # This bug is HP SR number 8606223364.
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5915 $as_echo_n "checking size of long... " >&6; }
5916 if test "${ac_cv_sizeof_long+set}" = set; then :
5917 $as_echo_n "(cached) " >&6
5918 else
5919 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5920
5921 else
5922 if test "$ac_cv_type_long" = yes; then
5923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5925 { as_fn_set_status 77
5926 as_fn_error "cannot compute sizeof (long)
5927 See \`config.log' for more details." "$LINENO" 5; }; }
5928 else
5929 ac_cv_sizeof_long=0
5930 fi
5931 fi
5932
5933 fi
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5935 $as_echo "$ac_cv_sizeof_long" >&6; }
5936
5937
5938
5939 cat >>confdefs.h <<_ACEOF
5940 #define SIZEOF_LONG $ac_cv_sizeof_long
5941 _ACEOF
5942
5943
5944 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5945 if test "x$ac_cv_type_long_long" = x""yes; then :
5946
5947 cat >>confdefs.h <<_ACEOF
5948 #define HAVE_LONG_LONG 1
5949 _ACEOF
5950
5951 # The cast to long int works around a bug in the HP C Compiler
5952 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5953 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5954 # This bug is HP SR number 8606223364.
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5956 $as_echo_n "checking size of long long... " >&6; }
5957 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5958 $as_echo_n "(cached) " >&6
5959 else
5960 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5961
5962 else
5963 if test "$ac_cv_type_long_long" = yes; then
5964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5966 { as_fn_set_status 77
5967 as_fn_error "cannot compute sizeof (long long)
5968 See \`config.log' for more details." "$LINENO" 5; }; }
5969 else
5970 ac_cv_sizeof_long_long=0
5971 fi
5972 fi
5973
5974 fi
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5976 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5977
5978
5979
5980 cat >>confdefs.h <<_ACEOF
5981 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5982 _ACEOF
5983
5984
5985 fi
5986
5987 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5988 if test "x$ac_cv_type___int64" = x""yes; then :
5989
5990 cat >>confdefs.h <<_ACEOF
5991 #define HAVE___INT64 1
5992 _ACEOF
5993
5994 # The cast to long int works around a bug in the HP C Compiler
5995 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5996 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5997 # This bug is HP SR number 8606223364.
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5999 $as_echo_n "checking size of __int64... " >&6; }
6000 if test "${ac_cv_sizeof___int64+set}" = set; then :
6001 $as_echo_n "(cached) " >&6
6002 else
6003 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6004
6005 else
6006 if test "$ac_cv_type___int64" = yes; then
6007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6009 { as_fn_set_status 77
6010 as_fn_error "cannot compute sizeof (__int64)
6011 See \`config.log' for more details." "$LINENO" 5; }; }
6012 else
6013 ac_cv_sizeof___int64=0
6014 fi
6015 fi
6016
6017 fi
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6019 $as_echo "$ac_cv_sizeof___int64" >&6; }
6020
6021
6022
6023 cat >>confdefs.h <<_ACEOF
6024 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6025 _ACEOF
6026
6027
6028 fi
6029
6030 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6031 case $ac_cv_c_int8_t in #(
6032 no|yes) ;; #(
6033 *)
6034
6035 cat >>confdefs.h <<_ACEOF
6036 #define int8_t $ac_cv_c_int8_t
6037 _ACEOF
6038 ;;
6039 esac
6040
6041 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6042 case $ac_cv_c_int16_t in #(
6043 no|yes) ;; #(
6044 *)
6045
6046 cat >>confdefs.h <<_ACEOF
6047 #define int16_t $ac_cv_c_int16_t
6048 _ACEOF
6049 ;;
6050 esac
6051
6052 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6053 case $ac_cv_c_int32_t in #(
6054 no|yes) ;; #(
6055 *)
6056
6057 cat >>confdefs.h <<_ACEOF
6058 #define int32_t $ac_cv_c_int32_t
6059 _ACEOF
6060 ;;
6061 esac
6062
6063 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6064 case $ac_cv_c_int64_t in #(
6065 no|yes) ;; #(
6066 *)
6067
6068 cat >>confdefs.h <<_ACEOF
6069 #define int64_t $ac_cv_c_int64_t
6070 _ACEOF
6071 ;;
6072 esac
6073
6074
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6076 $as_echo_n "checking for long long int... " >&6; }
6077 if test "${ac_cv_type_long_long_int+set}" = set; then :
6078 $as_echo_n "(cached) " >&6
6079 else
6080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081 /* end confdefs.h. */
6082
6083 /* For now, do not test the preprocessor; as of 2007 there are too many
6084 implementations with broken preprocessors. Perhaps this can
6085 be revisited in 2012. In the meantime, code should not expect
6086 #if to work with literals wider than 32 bits. */
6087 /* Test literals. */
6088 long long int ll = 9223372036854775807ll;
6089 long long int nll = -9223372036854775807LL;
6090 unsigned long long int ull = 18446744073709551615ULL;
6091 /* Test constant expressions. */
6092 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6093 ? 1 : -1)];
6094 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6095 ? 1 : -1)];
6096 int i = 63;
6097 int
6098 main ()
6099 {
6100 /* Test availability of runtime routines for shift and division. */
6101 long long int llmax = 9223372036854775807ll;
6102 unsigned long long int ullmax = 18446744073709551615ull;
6103 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6104 | (llmax / ll) | (llmax % ll)
6105 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6106 | (ullmax / ull) | (ullmax % ull));
6107 ;
6108 return 0;
6109 }
6110
6111 _ACEOF
6112 if ac_fn_c_try_link "$LINENO"; then :
6113 if test "$cross_compiling" = yes; then :
6114 ac_cv_type_long_long_int=yes
6115 else
6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117 /* end confdefs.h. */
6118 #include <limits.h>
6119 #ifndef LLONG_MAX
6120 # define HALF \
6121 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6122 # define LLONG_MAX (HALF - 1 + HALF)
6123 #endif
6124 int
6125 main ()
6126 {
6127 long long int n = 1;
6128 int i;
6129 for (i = 0; ; i++)
6130 {
6131 long long int m = n << i;
6132 if (m >> i != n)
6133 return 1;
6134 if (LLONG_MAX / 2 < m)
6135 break;
6136 }
6137 return 0;
6138 ;
6139 return 0;
6140 }
6141 _ACEOF
6142 if ac_fn_c_try_run "$LINENO"; then :
6143 ac_cv_type_long_long_int=yes
6144 else
6145 ac_cv_type_long_long_int=no
6146 fi
6147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6148 conftest.$ac_objext conftest.beam conftest.$ac_ext
6149 fi
6150
6151 else
6152 ac_cv_type_long_long_int=no
6153 fi
6154 rm -f core conftest.err conftest.$ac_objext \
6155 conftest$ac_exeext conftest.$ac_ext
6156 fi
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6158 $as_echo "$ac_cv_type_long_long_int" >&6; }
6159 if test $ac_cv_type_long_long_int = yes; then
6160
6161 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6162
6163 fi
6164
6165
6166
6167 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6168 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6169
6170 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6171
6172 else
6173 test $ac_cv_type_long_long_int = yes \
6174 && ac_type='long long int' \
6175 || ac_type='long int'
6176
6177 cat >>confdefs.h <<_ACEOF
6178 #define intmax_t $ac_type
6179 _ACEOF
6180
6181 fi
6182
6183
6184
6185 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6186 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6187
6188 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6189
6190 else
6191 for ac_type in 'int' 'long int' 'long long int'; do
6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6194 $ac_includes_default
6195 int
6196 main ()
6197 {
6198 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6199 test_array [0] = 0
6200
6201 ;
6202 return 0;
6203 }
6204 _ACEOF
6205 if ac_fn_c_try_compile "$LINENO"; then :
6206
6207 cat >>confdefs.h <<_ACEOF
6208 #define intptr_t $ac_type
6209 _ACEOF
6210
6211 ac_type=
6212 fi
6213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6214 test -z "$ac_type" && break
6215 done
6216 fi
6217
6218
6219 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6220 case $ac_cv_c_uint8_t in #(
6221 no|yes) ;; #(
6222 *)
6223
6224 $as_echo "#define _UINT8_T 1" >>confdefs.h
6225
6226
6227 cat >>confdefs.h <<_ACEOF
6228 #define uint8_t $ac_cv_c_uint8_t
6229 _ACEOF
6230 ;;
6231 esac
6232
6233 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6234 case $ac_cv_c_uint16_t in #(
6235 no|yes) ;; #(
6236 *)
6237
6238
6239 cat >>confdefs.h <<_ACEOF
6240 #define uint16_t $ac_cv_c_uint16_t
6241 _ACEOF
6242 ;;
6243 esac
6244
6245 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6246 case $ac_cv_c_uint32_t in #(
6247 no|yes) ;; #(
6248 *)
6249
6250 $as_echo "#define _UINT32_T 1" >>confdefs.h
6251
6252
6253 cat >>confdefs.h <<_ACEOF
6254 #define uint32_t $ac_cv_c_uint32_t
6255 _ACEOF
6256 ;;
6257 esac
6258
6259 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6260 case $ac_cv_c_uint64_t in #(
6261 no|yes) ;; #(
6262 *)
6263
6264 $as_echo "#define _UINT64_T 1" >>confdefs.h
6265
6266
6267 cat >>confdefs.h <<_ACEOF
6268 #define uint64_t $ac_cv_c_uint64_t
6269 _ACEOF
6270 ;;
6271 esac
6272
6273
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6275 $as_echo_n "checking for unsigned long long int... " >&6; }
6276 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6277 $as_echo_n "(cached) " >&6
6278 else
6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6281
6282 /* For now, do not test the preprocessor; as of 2007 there are too many
6283 implementations with broken preprocessors. Perhaps this can
6284 be revisited in 2012. In the meantime, code should not expect
6285 #if to work with literals wider than 32 bits. */
6286 /* Test literals. */
6287 long long int ll = 9223372036854775807ll;
6288 long long int nll = -9223372036854775807LL;
6289 unsigned long long int ull = 18446744073709551615ULL;
6290 /* Test constant expressions. */
6291 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6292 ? 1 : -1)];
6293 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6294 ? 1 : -1)];
6295 int i = 63;
6296 int
6297 main ()
6298 {
6299 /* Test availability of runtime routines for shift and division. */
6300 long long int llmax = 9223372036854775807ll;
6301 unsigned long long int ullmax = 18446744073709551615ull;
6302 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6303 | (llmax / ll) | (llmax % ll)
6304 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6305 | (ullmax / ull) | (ullmax % ull));
6306 ;
6307 return 0;
6308 }
6309
6310 _ACEOF
6311 if ac_fn_c_try_link "$LINENO"; then :
6312 ac_cv_type_unsigned_long_long_int=yes
6313 else
6314 ac_cv_type_unsigned_long_long_int=no
6315 fi
6316 rm -f core conftest.err conftest.$ac_objext \
6317 conftest$ac_exeext conftest.$ac_ext
6318 fi
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6320 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6321 if test $ac_cv_type_unsigned_long_long_int = yes; then
6322
6323 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6324
6325 fi
6326
6327
6328
6329 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6330 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6331
6332 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6333
6334 else
6335 test $ac_cv_type_unsigned_long_long_int = yes \
6336 && ac_type='unsigned long long int' \
6337 || ac_type='unsigned long int'
6338
6339 cat >>confdefs.h <<_ACEOF
6340 #define uintmax_t $ac_type
6341 _ACEOF
6342
6343 fi
6344
6345
6346
6347 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6348 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6349
6350 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6351
6352 else
6353 for ac_type in 'unsigned int' 'unsigned long int' \
6354 'unsigned long long int'; do
6355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356 /* end confdefs.h. */
6357 $ac_includes_default
6358 int
6359 main ()
6360 {
6361 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6362 test_array [0] = 0
6363
6364 ;
6365 return 0;
6366 }
6367 _ACEOF
6368 if ac_fn_c_try_compile "$LINENO"; then :
6369
6370 cat >>confdefs.h <<_ACEOF
6371 #define uintptr_t $ac_type
6372 _ACEOF
6373
6374 ac_type=
6375 fi
6376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6377 test -z "$ac_type" && break
6378 done
6379 fi
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395 # ---------------------
6396 # Warnings and checking
6397 # ---------------------
6398
6399 # Check $CC warning features (if it's GCC).
6400 # We want to use -pedantic, but we don't want warnings about
6401 # * 'long long'
6402 # * variadic macros
6403 # * overlong strings
6404 # * C++11 narrowing conversions in { }
6405 # So, we only use -pedantic if we can disable those warnings.
6406
6407 loose_warn=
6408 save_CFLAGS="$CFLAGS"
6409 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6410 # Do the check with the no- prefix removed since gcc silently
6411 # accepts any -Wno-* option on purpose
6412 case $real_option in
6413 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6414 *) option=$real_option ;;
6415 esac
6416 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6417
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6419 $as_echo_n "checking whether $CC supports $option... " >&6; }
6420 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6421 $as_echo_n "(cached) " >&6
6422 else
6423 CFLAGS="$option"
6424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6425 /* end confdefs.h. */
6426
6427 int
6428 main ()
6429 {
6430
6431 ;
6432 return 0;
6433 }
6434 _ACEOF
6435 if ac_fn_c_try_compile "$LINENO"; then :
6436 eval "$as_acx_Woption=yes"
6437 else
6438 eval "$as_acx_Woption=no"
6439 fi
6440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441
6442 fi
6443 eval ac_res=\$$as_acx_Woption
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6445 $as_echo "$ac_res" >&6; }
6446 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6447 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6448 fi
6449 done
6450 CFLAGS="$save_CFLAGS"
6451
6452 c_loose_warn=
6453 save_CFLAGS="$CFLAGS"
6454 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6455 # Do the check with the no- prefix removed since gcc silently
6456 # accepts any -Wno-* option on purpose
6457 case $real_option in
6458 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6459 *) option=$real_option ;;
6460 esac
6461 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6462
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6464 $as_echo_n "checking whether $CC supports $option... " >&6; }
6465 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6466 $as_echo_n "(cached) " >&6
6467 else
6468 CFLAGS="$option"
6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h. */
6471
6472 int
6473 main ()
6474 {
6475
6476 ;
6477 return 0;
6478 }
6479 _ACEOF
6480 if ac_fn_c_try_compile "$LINENO"; then :
6481 eval "$as_acx_Woption=yes"
6482 else
6483 eval "$as_acx_Woption=no"
6484 fi
6485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6486
6487 fi
6488 eval ac_res=\$$as_acx_Woption
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6490 $as_echo "$ac_res" >&6; }
6491 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6492 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6493 fi
6494 done
6495 CFLAGS="$save_CFLAGS"
6496
6497 strict_warn=
6498 save_CFLAGS="$CFLAGS"
6499 for real_option in -Wmissing-format-attribute; do
6500 # Do the check with the no- prefix removed since gcc silently
6501 # accepts any -Wno-* option on purpose
6502 case $real_option in
6503 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6504 *) option=$real_option ;;
6505 esac
6506 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6507
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6509 $as_echo_n "checking whether $CC supports $option... " >&6; }
6510 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6511 $as_echo_n "(cached) " >&6
6512 else
6513 CFLAGS="$option"
6514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6515 /* end confdefs.h. */
6516
6517 int
6518 main ()
6519 {
6520
6521 ;
6522 return 0;
6523 }
6524 _ACEOF
6525 if ac_fn_c_try_compile "$LINENO"; then :
6526 eval "$as_acx_Woption=yes"
6527 else
6528 eval "$as_acx_Woption=no"
6529 fi
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531
6532 fi
6533 eval ac_res=\$$as_acx_Woption
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6535 $as_echo "$ac_res" >&6; }
6536 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6537 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6538 fi
6539 done
6540 CFLAGS="$save_CFLAGS"
6541
6542 c_strict_warn=
6543 save_CFLAGS="$CFLAGS"
6544 for real_option in -Wold-style-definition -Wc++-compat; do
6545 # Do the check with the no- prefix removed since gcc silently
6546 # accepts any -Wno-* option on purpose
6547 case $real_option in
6548 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6549 *) option=$real_option ;;
6550 esac
6551 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6552
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6554 $as_echo_n "checking whether $CC supports $option... " >&6; }
6555 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6556 $as_echo_n "(cached) " >&6
6557 else
6558 CFLAGS="$option"
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h. */
6561
6562 int
6563 main ()
6564 {
6565
6566 ;
6567 return 0;
6568 }
6569 _ACEOF
6570 if ac_fn_c_try_compile "$LINENO"; then :
6571 eval "$as_acx_Woption=yes"
6572 else
6573 eval "$as_acx_Woption=no"
6574 fi
6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576
6577 fi
6578 eval ac_res=\$$as_acx_Woption
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6580 $as_echo "$ac_res" >&6; }
6581 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6582 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6583 fi
6584 done
6585 CFLAGS="$save_CFLAGS"
6586
6587 # Do the check with the no- prefix removed from the warning options
6588 # since gcc silently accepts any -Wno-* option on purpose
6589 if test "$GCC" = yes; then :
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6591 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6592 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6593 $as_echo_n "(cached) " >&6
6594 else
6595 save_CFLAGS="$CFLAGS"
6596 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6599
6600 int
6601 main ()
6602 {
6603
6604 ;
6605 return 0;
6606 }
6607 _ACEOF
6608 if ac_fn_c_try_compile "$LINENO"; then :
6609 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6610 else
6611 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6612 fi
6613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6614 CFLAGS="$save_CFLAGS"
6615 fi
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6617 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6618 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6619 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6620 fi
6621
6622 fi
6623
6624 # Check whether --enable-werror-always was given.
6625 if test "${enable_werror_always+set}" = set; then :
6626 enableval=$enable_werror_always;
6627 else
6628 enable_werror_always=no
6629 fi
6630
6631 if test $enable_werror_always = yes; then :
6632 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6633 fi
6634
6635
6636
6637 # The above macros do nothing if the compiler is not GCC. However, the
6638 # Makefile has more goo to add other flags, so these variables are used
6639 # to enable warnings only for GCC.
6640 warn_cflags=
6641 warn_cxxflags=
6642 if test "x$GCC" = "xyes"; then
6643 warn_cflags='$(GCC_WARN_CFLAGS)'
6644 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6645 fi
6646
6647
6648
6649 # Disable exceptions and RTTI if building with g++
6650 noexception_flags=
6651 save_CFLAGS="$CFLAGS"
6652 for real_option in -fno-exceptions -fno-rtti; do
6653 # Do the check with the no- prefix removed since gcc silently
6654 # accepts any -Wno-* option on purpose
6655 case $real_option in
6656 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6657 *) option=$real_option ;;
6658 esac
6659 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6660
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6662 $as_echo_n "checking whether $CC supports $option... " >&6; }
6663 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6664 $as_echo_n "(cached) " >&6
6665 else
6666 CFLAGS="$option"
6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668 /* end confdefs.h. */
6669
6670 int
6671 main ()
6672 {
6673
6674 ;
6675 return 0;
6676 }
6677 _ACEOF
6678 if ac_fn_c_try_compile "$LINENO"; then :
6679 eval "$as_acx_Woption=yes"
6680 else
6681 eval "$as_acx_Woption=no"
6682 fi
6683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6684
6685 fi
6686 eval ac_res=\$$as_acx_Woption
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6688 $as_echo "$ac_res" >&6; }
6689 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6690 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6691 fi
6692 done
6693 CFLAGS="$save_CFLAGS"
6694
6695
6696 # Enable expensive internal checks
6697 is_release=
6698 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6699 is_release=yes
6700 fi
6701
6702 # Check whether --enable-checking was given.
6703 if test "${enable_checking+set}" = set; then :
6704 enableval=$enable_checking; ac_checking_flags="${enableval}"
6705 else
6706
6707 # Determine the default checks.
6708 if test x$is_release = x ; then
6709 ac_checking_flags=yes
6710 else
6711 ac_checking_flags=release
6712 fi
6713 fi
6714
6715 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6716 for check in release $ac_checking_flags
6717 do
6718 case $check in
6719 # these set all the flags to specific states
6720 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6721 ac_fold_checking= ; ac_gc_checking=1 ;
6722 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6723 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6724 ac_tree_checking=1 ; ac_valgrind_checking= ;
6725 ac_types_checking=1 ;;
6726 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6727 ac_fold_checking= ; ac_gc_checking= ;
6728 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6729 ac_rtlflag_checking= ; ac_runtime_checking= ;
6730 ac_tree_checking= ; ac_valgrind_checking= ;
6731 ac_types_checking= ;;
6732 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6733 ac_fold_checking=1 ; ac_gc_checking=1 ;
6734 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6735 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6736 ac_tree_checking=1 ; ac_valgrind_checking= ;
6737 ac_types_checking=1 ;;
6738 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6739 ac_fold_checking= ; ac_gc_checking= ;
6740 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6741 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6742 ac_tree_checking= ; ac_valgrind_checking= ;
6743 ac_types_checking= ;;
6744 # these enable particular checks
6745 assert) ac_assert_checking=1 ;;
6746 df) ac_df_checking=1 ;;
6747 fold) ac_fold_checking=1 ;;
6748 gc) ac_gc_checking=1 ;;
6749 gcac) ac_gc_always_collect=1 ;;
6750 gimple) ac_gimple_checking=1 ;;
6751 misc) ac_checking=1 ;;
6752 rtl) ac_rtl_checking=1 ;;
6753 rtlflag) ac_rtlflag_checking=1 ;;
6754 runtime) ac_runtime_checking=1 ;;
6755 tree) ac_tree_checking=1 ;;
6756 types) ac_types_checking=1 ;;
6757 valgrind) ac_valgrind_checking=1 ;;
6758 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6759 esac
6760 done
6761 IFS="$ac_save_IFS"
6762
6763 nocommon_flag=""
6764 if test x$ac_checking != x ; then
6765
6766 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6767
6768 nocommon_flag=-fno-common
6769 fi
6770
6771 if test x$ac_df_checking != x ; then
6772
6773 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6774
6775 fi
6776 if test x$ac_assert_checking != x ; then
6777
6778 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6779
6780 fi
6781 if test x$ac_gimple_checking != x ; then
6782
6783 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6784
6785 fi
6786
6787 if test x$ac_runtime_checking != x ; then
6788
6789 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6790
6791 fi
6792 if test x$ac_tree_checking != x ; then
6793
6794 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6795
6796 TREEBROWSER=tree-browser.o
6797 fi
6798 if test x$ac_types_checking != x ; then
6799
6800 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6801
6802 fi
6803
6804 if test x$ac_rtl_checking != x ; then
6805
6806 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6807
6808 fi
6809 if test x$ac_rtlflag_checking != x ; then
6810
6811 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6812
6813 fi
6814 if test x$ac_gc_checking != x ; then
6815
6816 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6817
6818 fi
6819 if test x$ac_gc_always_collect != x ; then
6820
6821 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6822
6823 fi
6824 if test x$ac_fold_checking != x ; then
6825
6826 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6827
6828 fi
6829 valgrind_path_defines=
6830 valgrind_command=
6831
6832 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6833 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6834 have_valgrind_h=yes
6835 else
6836 have_valgrind_h=no
6837 fi
6838
6839
6840
6841 if test x$ac_valgrind_checking != x ; then
6842 # It is certainly possible that there's valgrind but no valgrind.h.
6843 # GCC relies on making annotations so we must have both.
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6845 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6848 #include <valgrind/memcheck.h>
6849 #ifndef VALGRIND_DISCARD
6850 #error VALGRIND_DISCARD not defined
6851 #endif
6852 _ACEOF
6853 if ac_fn_c_try_cpp "$LINENO"; then :
6854 gcc_cv_header_valgrind_memcheck_h=yes
6855 else
6856 gcc_cv_header_valgrind_memcheck_h=no
6857 fi
6858 rm -f conftest.err conftest.$ac_ext
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6860 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6862 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6865 #include <memcheck.h>
6866 #ifndef VALGRIND_DISCARD
6867 #error VALGRIND_DISCARD not defined
6868 #endif
6869 _ACEOF
6870 if ac_fn_c_try_cpp "$LINENO"; then :
6871 gcc_cv_header_memcheck_h=yes
6872 else
6873 gcc_cv_header_memcheck_h=no
6874 fi
6875 rm -f conftest.err conftest.$ac_ext
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6877 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6878
6879 # Prepare PATH_SEPARATOR.
6880 # The user is always right.
6881 if test "${PATH_SEPARATOR+set}" != set; then
6882 echo "#! /bin/sh" >conf$$.sh
6883 echo "exit 0" >>conf$$.sh
6884 chmod +x conf$$.sh
6885 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6886 PATH_SEPARATOR=';'
6887 else
6888 PATH_SEPARATOR=:
6889 fi
6890 rm -f conf$$.sh
6891 fi
6892
6893 # Find out how to test for executable files. Don't use a zero-byte file,
6894 # as systems may use methods other than mode bits to determine executability.
6895 cat >conf$$.file <<_ASEOF
6896 #! /bin/sh
6897 exit 0
6898 _ASEOF
6899 chmod +x conf$$.file
6900 if test -x conf$$.file >/dev/null 2>&1; then
6901 ac_executable_p="test -x"
6902 else
6903 ac_executable_p="test -f"
6904 fi
6905 rm -f conf$$.file
6906
6907 # Extract the first word of "valgrind", so it can be a program name with args.
6908 set dummy valgrind; ac_word=$2
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6910 $as_echo_n "checking for $ac_word... " >&6; }
6911 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6912 $as_echo_n "(cached) " >&6
6913 else
6914 case "$valgrind_path" in
6915 [\\/]* | ?:[\\/]*)
6916 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6917 ;;
6918 *)
6919 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6920 for ac_dir in $PATH; do
6921 IFS="$ac_save_IFS"
6922 test -z "$ac_dir" && ac_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6925 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6926 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6927 break 2
6928 fi
6929 fi
6930 done
6931 done
6932 IFS="$ac_save_IFS"
6933 ;;
6934 esac
6935 fi
6936 valgrind_path="$ac_cv_path_valgrind_path"
6937 if test -n "$valgrind_path"; then
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6939 $as_echo "$valgrind_path" >&6; }
6940 else
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6943 fi
6944
6945 if test "x$valgrind_path" = "x" \
6946 || (test $have_valgrind_h = no \
6947 && test $gcc_cv_header_memcheck_h = no \
6948 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6949 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6950 fi
6951 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6952 valgrind_command="$valgrind_path -q"
6953
6954 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6955
6956 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6957
6958 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6959
6960 fi
6961 if test $gcc_cv_header_memcheck_h = yes; then
6962
6963 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6964
6965 fi
6966 fi
6967
6968
6969
6970 # Enable code coverage collection
6971 # Check whether --enable-coverage was given.
6972 if test "${enable_coverage+set}" = set; then :
6973 enableval=$enable_coverage; case "${enableval}" in
6974 yes|noopt)
6975 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6976 ;;
6977 opt)
6978 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6979 ;;
6980 no)
6981 # a.k.a. --disable-coverage
6982 coverage_flags=""
6983 ;;
6984 *)
6985 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6986 ;;
6987 esac
6988 else
6989 coverage_flags=""
6990 fi
6991
6992
6993
6994 # Check whether --enable-gather-detailed-mem-stats was given.
6995 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6996 enableval=$enable_gather_detailed_mem_stats;
6997 else
6998 enable_gather_detailed_mem_stats=no
6999 fi
7000
7001 if test x$enable_gather_detailed_mem_stats = xyes ; then
7002
7003 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
7004
7005 fi
7006
7007 # -------------------------------
7008 # Miscenalleous configure options
7009 # -------------------------------
7010
7011 # See if we are building gcc with C++.
7012 # Check whether --enable-build-with-cxx was given.
7013 if test "${enable_build_with_cxx+set}" = set; then :
7014 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
7015 else
7016 ENABLE_BUILD_WITH_CXX=no
7017 fi
7018
7019
7020 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
7021
7022 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
7023
7024 fi
7025
7026 # With stabs
7027
7028 # Check whether --with-stabs was given.
7029 if test "${with_stabs+set}" = set; then :
7030 withval=$with_stabs; stabs="$with_stabs"
7031 else
7032 stabs=no
7033 fi
7034
7035
7036 # Determine whether or not multilibs are enabled.
7037 # Check whether --enable-multilib was given.
7038 if test "${enable_multilib+set}" = set; then :
7039 enableval=$enable_multilib;
7040 else
7041 enable_multilib=yes
7042 fi
7043
7044
7045
7046 # Enable __cxa_atexit for C++.
7047 # Check whether --enable-__cxa_atexit was given.
7048 if test "${enable___cxa_atexit+set}" = set; then :
7049 enableval=$enable___cxa_atexit;
7050 fi
7051
7052
7053 # Enable C extension for decimal float if target supports it.
7054
7055 # Check whether --enable-decimal-float was given.
7056 if test "${enable_decimal_float+set}" = set; then :
7057 enableval=$enable_decimal_float;
7058 case $enable_decimal_float in
7059 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7060 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7061 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7062 esac
7063
7064 else
7065
7066 case $target in
7067 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7068 i?86*-*-mingw* | x86_64*-*-mingw* | \
7069 i?86*-*-cygwin*)
7070 enable_decimal_float=yes
7071 ;;
7072 *)
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7074 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7075 enable_decimal_float=no
7076 ;;
7077 esac
7078
7079 fi
7080
7081
7082 # x86's use BID format instead of DPD
7083 case x$enable_decimal_float in
7084 xyes)
7085 case $target in
7086 i?86*-*-* | x86_64*-*-*)
7087 enable_decimal_float=bid
7088 ;;
7089 *)
7090 enable_decimal_float=dpd
7091 ;;
7092 esac
7093 default_decimal_float=$enable_decimal_float
7094 ;;
7095 xno)
7096 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7097 # dependency on libdecnumber.
7098 default_decimal_float=dpd
7099 ;;
7100 esac
7101
7102
7103
7104
7105 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7106
7107 cat >>confdefs.h <<_ACEOF
7108 #define ENABLE_DECIMAL_FLOAT $dfp
7109 _ACEOF
7110
7111
7112 # Use default_decimal_float for dependency.
7113 enable_decimal_float=$default_decimal_float
7114
7115 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7116
7117 cat >>confdefs.h <<_ACEOF
7118 #define ENABLE_DECIMAL_BID_FORMAT $bid
7119 _ACEOF
7120
7121
7122 # Enable C extension for fixed-point arithmetic.
7123 # Check whether --enable-fixed-point was given.
7124 if test "${enable_fixed_point+set}" = set; then :
7125 enableval=$enable_fixed_point;
7126 else
7127
7128 case $target in
7129 arm*)
7130 enable_fixed_point=yes
7131 ;;
7132
7133 mips*-*-*)
7134 case $host in
7135 mips*-sgi-irix*)
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7137 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7138 enable_fixed_point=no
7139 ;;
7140 *)
7141 enable_fixed_point=yes
7142 ;;
7143 esac
7144 ;;
7145 *)
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7147 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7148 enable_fixed_point=no
7149 ;;
7150 esac
7151
7152 fi
7153
7154
7155
7156 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7157
7158 cat >>confdefs.h <<_ACEOF
7159 #define ENABLE_FIXED_POINT $fixedpoint
7160 _ACEOF
7161
7162
7163 # Enable threads
7164 # Pass with no value to take the default
7165 # Pass with a value to specify a thread package
7166 # Check whether --enable-threads was given.
7167 if test "${enable_threads+set}" = set; then :
7168 enableval=$enable_threads;
7169 else
7170 enable_threads=''
7171 fi
7172
7173
7174 # Check whether --enable-tls was given.
7175 if test "${enable_tls+set}" = set; then :
7176 enableval=$enable_tls;
7177 case $enable_tls in
7178 yes | no) ;;
7179 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7180 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7181 esac
7182
7183 else
7184 enable_tls=''
7185 fi
7186
7187
7188 # Check whether --enable-objc-gc was given.
7189 if test "${enable_objc_gc+set}" = set; then :
7190 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7191 objc_boehm_gc=''
7192 else
7193 objc_boehm_gc=1
7194 fi
7195 else
7196 objc_boehm_gc=''
7197 fi
7198
7199
7200
7201 # Check whether --with-dwarf2 was given.
7202 if test "${with_dwarf2+set}" = set; then :
7203 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7204 else
7205 dwarf2=no
7206 fi
7207
7208
7209 # Check whether --enable-shared was given.
7210 if test "${enable_shared+set}" = set; then :
7211 enableval=$enable_shared;
7212 case $enable_shared in
7213 yes | no) ;;
7214 *)
7215 enable_shared=no
7216 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7217 for pkg in $enableval; do
7218 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7219 enable_shared=yes
7220 fi
7221 done
7222 IFS="$ac_save_ifs"
7223 ;;
7224 esac
7225
7226 else
7227 enable_shared=yes
7228 fi
7229
7230
7231
7232
7233 # Check whether --with-native-system-header-dir was given.
7234 if test "${with_native_system_header_dir+set}" = set; then :
7235 withval=$with_native_system_header_dir;
7236 case ${with_native_system_header_dir} in
7237 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7238 /* | [A-Za-z]:[\\/]*) ;;
7239 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7240 esac
7241 configured_native_system_header_dir="${withval}"
7242
7243 else
7244 configured_native_system_header_dir=
7245 fi
7246
7247
7248
7249 # Check whether --with-build-sysroot was given.
7250 if test "${with_build_sysroot+set}" = set; then :
7251 withval=$with_build_sysroot; if test x"$withval" != x ; then
7252 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7253 fi
7254 else
7255 SYSROOT_CFLAGS_FOR_TARGET=
7256 fi
7257
7258
7259
7260
7261 # Check whether --with-sysroot was given.
7262 if test "${with_sysroot+set}" = set; then :
7263 withval=$with_sysroot;
7264 case ${with_sysroot} in
7265 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7266 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7267 esac
7268
7269 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7270 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7271
7272 if test "x$prefix" = xNONE; then
7273 test_prefix=/usr/local
7274 else
7275 test_prefix=$prefix
7276 fi
7277 if test "x$exec_prefix" = xNONE; then
7278 test_exec_prefix=$test_prefix
7279 else
7280 test_exec_prefix=$exec_prefix
7281 fi
7282 case ${TARGET_SYSTEM_ROOT} in
7283 "${test_prefix}"|"${test_prefix}/"*|\
7284 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7285 '${prefix}'|'${prefix}/'*|\
7286 '${exec_prefix}'|'${exec_prefix}/'*)
7287 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7288 TARGET_SYSTEM_ROOT_DEFINE="$t"
7289 ;;
7290 esac
7291
7292 else
7293
7294 TARGET_SYSTEM_ROOT=
7295 TARGET_SYSTEM_ROOT_DEFINE=
7296 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7297
7298 fi
7299
7300
7301
7302
7303
7304
7305 # Check whether --with-specs was given.
7306 if test "${with_specs+set}" = set; then :
7307 withval=$with_specs; CONFIGURE_SPECS=$withval
7308 else
7309 CONFIGURE_SPECS=
7310
7311 fi
7312
7313
7314
7315
7316
7317 # Check whether --with-pkgversion was given.
7318 if test "${with_pkgversion+set}" = set; then :
7319 withval=$with_pkgversion; case "$withval" in
7320 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7321 no) PKGVERSION= ;;
7322 *) PKGVERSION="($withval) " ;;
7323 esac
7324 else
7325 PKGVERSION="(GCC) "
7326
7327 fi
7328
7329
7330
7331
7332
7333 # Check whether --with-bugurl was given.
7334 if test "${with_bugurl+set}" = set; then :
7335 withval=$with_bugurl; case "$withval" in
7336 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7337 no) BUGURL=
7338 ;;
7339 *) BUGURL="$withval"
7340 ;;
7341 esac
7342 else
7343 BUGURL="http://gcc.gnu.org/bugs.html"
7344
7345 fi
7346
7347 case ${BUGURL} in
7348 "")
7349 REPORT_BUGS_TO=
7350 REPORT_BUGS_TEXI=
7351 ;;
7352 *)
7353 REPORT_BUGS_TO="<$BUGURL>"
7354 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7355 ;;
7356 esac;
7357
7358
7359
7360
7361 # Sanity check enable_languages in case someone does not run the toplevel
7362 # configure # script.
7363 # Check whether --enable-languages was given.
7364 if test "${enable_languages+set}" = set; then :
7365 enableval=$enable_languages; case ,${enable_languages}, in
7366 ,,|,yes,)
7367 # go safe -- we cannot be much sure without the toplevel
7368 # configure's
7369 # analysis of which target libs are present and usable
7370 enable_languages=c
7371 ;;
7372 *,all,*)
7373 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7374 ;;
7375 *,c,*)
7376 ;;
7377 *)
7378 enable_languages=c,${enable_languages}
7379 ;;
7380 esac
7381 else
7382 enable_languages=c
7383 fi
7384
7385
7386
7387 # Check whether --with-multilib-list was given.
7388 if test "${with_multilib_list+set}" = set; then :
7389 withval=$with_multilib_list; :
7390 else
7391 with_multilib_list=default
7392 fi
7393
7394
7395 # -------------------------
7396 # Checks for other programs
7397 # -------------------------
7398
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7400 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7401 set x ${MAKE-make}
7402 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7403 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7404 $as_echo_n "(cached) " >&6
7405 else
7406 cat >conftest.make <<\_ACEOF
7407 SHELL = /bin/sh
7408 all:
7409 @echo '@@@%%%=$(MAKE)=@@@%%%'
7410 _ACEOF
7411 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7412 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7413 *@@@%%%=?*=@@@%%%*)
7414 eval ac_cv_prog_make_${ac_make}_set=yes;;
7415 *)
7416 eval ac_cv_prog_make_${ac_make}_set=no;;
7417 esac
7418 rm -f conftest.make
7419 fi
7420 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7422 $as_echo "yes" >&6; }
7423 SET_MAKE=
7424 else
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 $as_echo "no" >&6; }
7427 SET_MAKE="MAKE=${MAKE-make}"
7428 fi
7429
7430
7431 # Find some useful tools
7432 for ac_prog in gawk mawk nawk awk
7433 do
7434 # Extract the first word of "$ac_prog", so it can be a program name with args.
7435 set dummy $ac_prog; ac_word=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if test "${ac_cv_prog_AWK+set}" = set; then :
7439 $as_echo_n "(cached) " >&6
7440 else
7441 if test -n "$AWK"; then
7442 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7443 else
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7446 do
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 ac_cv_prog_AWK="$ac_prog"
7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 break 2
7454 fi
7455 done
7456 done
7457 IFS=$as_save_IFS
7458
7459 fi
7460 fi
7461 AWK=$ac_cv_prog_AWK
7462 if test -n "$AWK"; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7464 $as_echo "$AWK" >&6; }
7465 else
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7468 fi
7469
7470
7471 test -n "$AWK" && break
7472 done
7473
7474 # We need awk to create options.c and options.h.
7475 # Bail out if it's missing.
7476 case ${AWK} in
7477 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7478 esac
7479
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7481 $as_echo_n "checking whether ln -s works... " >&6; }
7482 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7483 $as_echo_n "(cached) " >&6
7484 else
7485 rm -f conftestdata_t
7486 echo >conftestdata_f
7487 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7488 then
7489 gcc_cv_prog_LN_S="ln -s"
7490 else
7491 if ln conftestdata_f conftestdata_t 2>/dev/null
7492 then
7493 gcc_cv_prog_LN_S=ln
7494 else
7495 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7496 then
7497 gcc_cv_prog_LN_S="cp -p"
7498 else
7499 gcc_cv_prog_LN_S=cp
7500 fi
7501 fi
7502 fi
7503 rm -f conftestdata_f conftestdata_t
7504
7505 fi
7506 LN_S="$gcc_cv_prog_LN_S"
7507 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7509 $as_echo "yes" >&6; }
7510 else
7511 if test "$gcc_cv_prog_LN_S" = "ln"; then
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7513 $as_echo "no, using ln" >&6; }
7514 else
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7516 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7517 fi
7518 fi
7519
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7521 $as_echo_n "checking whether ln works... " >&6; }
7522 if test "${acx_cv_prog_LN+set}" = set; then :
7523 $as_echo_n "(cached) " >&6
7524 else
7525 rm -f conftestdata_t
7526 echo >conftestdata_f
7527 if ln conftestdata_f conftestdata_t 2>/dev/null
7528 then
7529 acx_cv_prog_LN=ln
7530 else
7531 acx_cv_prog_LN=no
7532 fi
7533 rm -f conftestdata_f conftestdata_t
7534
7535 fi
7536 if test $acx_cv_prog_LN = no; then
7537 LN="$LN_S"
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7539 $as_echo "no, using $LN" >&6; }
7540 else
7541 LN="$acx_cv_prog_LN"
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7543 $as_echo "yes" >&6; }
7544 fi
7545
7546 if test -n "$ac_tool_prefix"; then
7547 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7548 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7550 $as_echo_n "checking for $ac_word... " >&6; }
7551 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7552 $as_echo_n "(cached) " >&6
7553 else
7554 if test -n "$RANLIB"; then
7555 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7556 else
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 for as_dir in $PATH
7559 do
7560 IFS=$as_save_IFS
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7564 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 break 2
7567 fi
7568 done
7569 done
7570 IFS=$as_save_IFS
7571
7572 fi
7573 fi
7574 RANLIB=$ac_cv_prog_RANLIB
7575 if test -n "$RANLIB"; then
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7577 $as_echo "$RANLIB" >&6; }
7578 else
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580 $as_echo "no" >&6; }
7581 fi
7582
7583
7584 fi
7585 if test -z "$ac_cv_prog_RANLIB"; then
7586 ac_ct_RANLIB=$RANLIB
7587 # Extract the first word of "ranlib", so it can be a program name with args.
7588 set dummy ranlib; ac_word=$2
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7590 $as_echo_n "checking for $ac_word... " >&6; }
7591 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7592 $as_echo_n "(cached) " >&6
7593 else
7594 if test -n "$ac_ct_RANLIB"; then
7595 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7596 else
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH
7599 do
7600 IFS=$as_save_IFS
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7604 ac_cv_prog_ac_ct_RANLIB="ranlib"
7605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 break 2
7607 fi
7608 done
7609 done
7610 IFS=$as_save_IFS
7611
7612 fi
7613 fi
7614 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7615 if test -n "$ac_ct_RANLIB"; then
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7617 $as_echo "$ac_ct_RANLIB" >&6; }
7618 else
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620 $as_echo "no" >&6; }
7621 fi
7622
7623 if test "x$ac_ct_RANLIB" = x; then
7624 RANLIB=":"
7625 else
7626 case $cross_compiling:$ac_tool_warned in
7627 yes:)
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7630 ac_tool_warned=yes ;;
7631 esac
7632 RANLIB=$ac_ct_RANLIB
7633 fi
7634 else
7635 RANLIB="$ac_cv_prog_RANLIB"
7636 fi
7637
7638 ranlib_flags=""
7639
7640
7641 # Find a good install program. We prefer a C program (faster),
7642 # so one script is as good as another. But avoid the broken or
7643 # incompatible versions:
7644 # SysV /etc/install, /usr/sbin/install
7645 # SunOS /usr/etc/install
7646 # IRIX /sbin/install
7647 # AIX /bin/install
7648 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7649 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7650 # ./install, which can be erroneously created by make from ./install.sh.
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7652 $as_echo_n "checking for a BSD compatible install... " >&6; }
7653 if test -z "$INSTALL"; then
7654 if test "${ac_cv_path_install+set}" = set; then :
7655 $as_echo_n "(cached) " >&6
7656 else
7657 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7658 for ac_dir in $PATH; do
7659 # Account for people who put trailing slashes in PATH elements.
7660 case "$ac_dir/" in
7661 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7662 *)
7663 # OSF1 and SCO ODT 3.0 have their own names for install.
7664 for ac_prog in ginstall scoinst install; do
7665 if test -f $ac_dir/$ac_prog; then
7666 if test $ac_prog = install &&
7667 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7668 # AIX install. It has an incompatible calling convention.
7669 # OSF/1 installbsd also uses dspmsg, but is usable.
7670 :
7671 else
7672 ac_cv_path_install="$ac_dir/$ac_prog -c"
7673 break 2
7674 fi
7675 fi
7676 done
7677 ;;
7678 esac
7679 done
7680 IFS="$ac_save_IFS"
7681
7682 fi
7683 if test "${ac_cv_path_install+set}" = set; then
7684 INSTALL="$ac_cv_path_install"
7685 else
7686 # As a last resort, use the slow shell script. We don't cache a
7687 # path for INSTALL within a source directory, because that will
7688 # break other packages using the cache if that directory is
7689 # removed, or if the path is relative.
7690 INSTALL="$ac_install_sh"
7691 fi
7692 fi
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7694 $as_echo "$INSTALL" >&6; }
7695
7696 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7697 # It thinks the first close brace ends the variable substitution.
7698 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7699
7700 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7701
7702
7703 # See if cmp has --ignore-initial.
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7705 $as_echo_n "checking for cmp's capabilities... " >&6; }
7706 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7707 $as_echo_n "(cached) " >&6
7708 else
7709 echo abfoo >t1
7710 echo cdfoo >t2
7711 gcc_cv_prog_cmp_skip=slowcompare
7712 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7713 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7714 :
7715 else
7716 gcc_cv_prog_cmp_skip=gnucompare
7717 fi
7718 fi
7719 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7720 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7721 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7722 :
7723 else
7724 gcc_cv_prog_cmp_skip=fastcompare
7725 fi
7726 fi
7727 fi
7728 rm t1 t2
7729
7730 fi
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7732 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7733 make_compare_target=$gcc_cv_prog_cmp_skip
7734
7735
7736
7737 # See if we have the mktemp command.
7738 # Extract the first word of "mktemp", so it can be a program name with args.
7739 set dummy mktemp; ac_word=$2
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7741 $as_echo_n "checking for $ac_word... " >&6; }
7742 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7743 $as_echo_n "(cached) " >&6
7744 else
7745 if test -n "$have_mktemp_command"; then
7746 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7747 else
7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 for as_dir in $PATH
7750 do
7751 IFS=$as_save_IFS
7752 test -z "$as_dir" && as_dir=.
7753 for ac_exec_ext in '' $ac_executable_extensions; do
7754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7755 ac_cv_prog_have_mktemp_command="yes"
7756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7757 break 2
7758 fi
7759 done
7760 done
7761 IFS=$as_save_IFS
7762
7763 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7764 fi
7765 fi
7766 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7767 if test -n "$have_mktemp_command"; then
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7769 $as_echo "$have_mktemp_command" >&6; }
7770 else
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7772 $as_echo "no" >&6; }
7773 fi
7774
7775
7776
7777 # See if makeinfo has been installed and is modern enough
7778 # that we can use it.
7779
7780 # Extract the first word of "makeinfo", so it can be a program name with args.
7781 set dummy makeinfo; ac_word=$2
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783 $as_echo_n "checking for $ac_word... " >&6; }
7784 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7785 $as_echo_n "(cached) " >&6
7786 else
7787 if test -n "$MAKEINFO"; then
7788 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7789 else
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 for as_dir in $PATH
7792 do
7793 IFS=$as_save_IFS
7794 test -z "$as_dir" && as_dir=.
7795 for ac_exec_ext in '' $ac_executable_extensions; do
7796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7797 ac_cv_prog_MAKEINFO="makeinfo"
7798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 break 2
7800 fi
7801 done
7802 done
7803 IFS=$as_save_IFS
7804
7805 fi
7806 fi
7807 MAKEINFO=$ac_cv_prog_MAKEINFO
7808 if test -n "$MAKEINFO"; then
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7810 $as_echo "$MAKEINFO" >&6; }
7811 else
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813 $as_echo "no" >&6; }
7814 fi
7815
7816
7817 if test -n "$MAKEINFO"; then
7818 # Found it, now check the version.
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7820 $as_echo_n "checking for modern makeinfo... " >&6; }
7821 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7822 $as_echo_n "(cached) " >&6
7823 else
7824 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7825 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7826
7827 case $ac_prog_version in
7828 '') gcc_cv_prog_makeinfo_modern=no;;
7829 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7830 *) gcc_cv_prog_makeinfo_modern=no;;
7831 esac
7832
7833 fi
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7835 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7836 else
7837 gcc_cv_prog_makeinfo_modern=no
7838 fi
7839 if test $gcc_cv_prog_makeinfo_modern = no; then
7840 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7841 fi
7842
7843 if test $gcc_cv_prog_makeinfo_modern = no; then
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7845 *** Makeinfo is missing or too old.
7846 *** Info documentation will not be built." >&5
7847 $as_echo "$as_me: WARNING:
7848 *** Makeinfo is missing or too old.
7849 *** Info documentation will not be built." >&2;}
7850 BUILD_INFO=
7851 else
7852 BUILD_INFO=info
7853 fi
7854
7855
7856 # Is pod2man recent enough to regenerate manpages?
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7858 $as_echo_n "checking for recent Pod::Man... " >&6; }
7859 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7861 $as_echo "yes" >&6; }
7862 GENERATED_MANPAGES=generated-manpages
7863 else
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7865 $as_echo "no" >&6; }
7866 GENERATED_MANPAGES=
7867 fi
7868
7869
7870 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7871
7872 # How about lex?
7873 for ac_prog in flex
7874 do
7875 # Extract the first word of "$ac_prog", so it can be a program name with args.
7876 set dummy $ac_prog; ac_word=$2
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 $as_echo_n "checking for $ac_word... " >&6; }
7879 if test "${ac_cv_prog_FLEX+set}" = set; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882 if test -n "$FLEX"; then
7883 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7884 else
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886 for as_dir in $PATH
7887 do
7888 IFS=$as_save_IFS
7889 test -z "$as_dir" && as_dir=.
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7892 ac_cv_prog_FLEX="$ac_prog"
7893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7894 break 2
7895 fi
7896 done
7897 done
7898 IFS=$as_save_IFS
7899
7900 fi
7901 fi
7902 FLEX=$ac_cv_prog_FLEX
7903 if test -n "$FLEX"; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7905 $as_echo "$FLEX" >&6; }
7906 else
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 $as_echo "no" >&6; }
7909 fi
7910
7911
7912 test -n "$FLEX" && break
7913 done
7914 test -n "$FLEX" || FLEX="$MISSING flex"
7915
7916
7917 # Bison?
7918 for ac_prog in bison
7919 do
7920 # Extract the first word of "$ac_prog", so it can be a program name with args.
7921 set dummy $ac_prog; ac_word=$2
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7923 $as_echo_n "checking for $ac_word... " >&6; }
7924 if test "${ac_cv_prog_BISON+set}" = set; then :
7925 $as_echo_n "(cached) " >&6
7926 else
7927 if test -n "$BISON"; then
7928 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7929 else
7930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931 for as_dir in $PATH
7932 do
7933 IFS=$as_save_IFS
7934 test -z "$as_dir" && as_dir=.
7935 for ac_exec_ext in '' $ac_executable_extensions; do
7936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7937 ac_cv_prog_BISON="$ac_prog"
7938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7939 break 2
7940 fi
7941 done
7942 done
7943 IFS=$as_save_IFS
7944
7945 fi
7946 fi
7947 BISON=$ac_cv_prog_BISON
7948 if test -n "$BISON"; then
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7950 $as_echo "$BISON" >&6; }
7951 else
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953 $as_echo "no" >&6; }
7954 fi
7955
7956
7957 test -n "$BISON" && break
7958 done
7959 test -n "$BISON" || BISON="$MISSING bison"
7960
7961
7962 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7963 # check for build == host before using them.
7964
7965 # NM
7966 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7967 && test -d ../binutils ; then
7968 NM='${objdir}/../binutils/nm-new'
7969 else
7970 # Extract the first word of "nm", so it can be a program name with args.
7971 set dummy nm; ac_word=$2
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973 $as_echo_n "checking for $ac_word... " >&6; }
7974 if test "${ac_cv_prog_NM+set}" = set; then :
7975 $as_echo_n "(cached) " >&6
7976 else
7977 if test -n "$NM"; then
7978 ac_cv_prog_NM="$NM" # Let the user override the test.
7979 else
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981 for as_dir in $PATH
7982 do
7983 IFS=$as_save_IFS
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7987 ac_cv_prog_NM="nm"
7988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7989 break 2
7990 fi
7991 done
7992 done
7993 IFS=$as_save_IFS
7994
7995 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7996 fi
7997 fi
7998 NM=$ac_cv_prog_NM
7999 if test -n "$NM"; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8001 $as_echo "$NM" >&6; }
8002 else
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8005 fi
8006
8007
8008 fi
8009
8010 # AR
8011 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8012 && test -d ../binutils ; then
8013 AR='${objdir}/../binutils/ar'
8014 else
8015 # Extract the first word of "ar", so it can be a program name with args.
8016 set dummy ar; ac_word=$2
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018 $as_echo_n "checking for $ac_word... " >&6; }
8019 if test "${ac_cv_prog_AR+set}" = set; then :
8020 $as_echo_n "(cached) " >&6
8021 else
8022 if test -n "$AR"; then
8023 ac_cv_prog_AR="$AR" # Let the user override the test.
8024 else
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 for as_dir in $PATH
8027 do
8028 IFS=$as_save_IFS
8029 test -z "$as_dir" && as_dir=.
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8032 ac_cv_prog_AR="ar"
8033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8034 break 2
8035 fi
8036 done
8037 done
8038 IFS=$as_save_IFS
8039
8040 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8041 fi
8042 fi
8043 AR=$ac_cv_prog_AR
8044 if test -n "$AR"; then
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8046 $as_echo "$AR" >&6; }
8047 else
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049 $as_echo "no" >&6; }
8050 fi
8051
8052
8053 fi
8054
8055
8056 # --------------------
8057 # Checks for C headers
8058 # --------------------
8059
8060 # Need to reject headers which give warnings, so that the -Werror bootstrap
8061 # works later. *sigh* This needs to come before all header checks.
8062
8063 ac_c_preproc_warn_flag=yes
8064
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8066 $as_echo_n "checking for ANSI C header files... " >&6; }
8067 if test "${ac_cv_header_stdc+set}" = set; then :
8068 $as_echo_n "(cached) " >&6
8069 else
8070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8071 /* end confdefs.h. */
8072 #include <stdlib.h>
8073 #include <stdarg.h>
8074 #include <string.h>
8075 #include <float.h>
8076
8077 int
8078 main ()
8079 {
8080
8081 ;
8082 return 0;
8083 }
8084 _ACEOF
8085 if ac_fn_c_try_compile "$LINENO"; then :
8086 ac_cv_header_stdc=yes
8087 else
8088 ac_cv_header_stdc=no
8089 fi
8090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8091
8092 if test $ac_cv_header_stdc = yes; then
8093 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095 /* end confdefs.h. */
8096 #include <string.h>
8097
8098 _ACEOF
8099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8100 $EGREP "memchr" >/dev/null 2>&1; then :
8101
8102 else
8103 ac_cv_header_stdc=no
8104 fi
8105 rm -f conftest*
8106
8107 fi
8108
8109 if test $ac_cv_header_stdc = yes; then
8110 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h. */
8113 #include <stdlib.h>
8114
8115 _ACEOF
8116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8117 $EGREP "free" >/dev/null 2>&1; then :
8118
8119 else
8120 ac_cv_header_stdc=no
8121 fi
8122 rm -f conftest*
8123
8124 fi
8125
8126 if test $ac_cv_header_stdc = yes; then
8127 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8128 if test "$cross_compiling" = yes; then :
8129 :
8130 else
8131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8132 /* end confdefs.h. */
8133 #include <ctype.h>
8134 #include <stdlib.h>
8135 #if ((' ' & 0x0FF) == 0x020)
8136 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8137 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8138 #else
8139 # define ISLOWER(c) \
8140 (('a' <= (c) && (c) <= 'i') \
8141 || ('j' <= (c) && (c) <= 'r') \
8142 || ('s' <= (c) && (c) <= 'z'))
8143 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8144 #endif
8145
8146 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8147 int
8148 main ()
8149 {
8150 int i;
8151 for (i = 0; i < 256; i++)
8152 if (XOR (islower (i), ISLOWER (i))
8153 || toupper (i) != TOUPPER (i))
8154 return 2;
8155 return 0;
8156 }
8157 _ACEOF
8158 if ac_fn_c_try_run "$LINENO"; then :
8159
8160 else
8161 ac_cv_header_stdc=no
8162 fi
8163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8164 conftest.$ac_objext conftest.beam conftest.$ac_ext
8165 fi
8166
8167 fi
8168 fi
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8170 $as_echo "$ac_cv_header_stdc" >&6; }
8171 if test $ac_cv_header_stdc = yes; then
8172
8173 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8174
8175 fi
8176
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8178 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8179 if test "${ac_cv_header_time+set}" = set; then :
8180 $as_echo_n "(cached) " >&6
8181 else
8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8184 #include <sys/types.h>
8185 #include <sys/time.h>
8186 #include <time.h>
8187
8188 int
8189 main ()
8190 {
8191 if ((struct tm *) 0)
8192 return 0;
8193 ;
8194 return 0;
8195 }
8196 _ACEOF
8197 if ac_fn_c_try_compile "$LINENO"; then :
8198 ac_cv_header_time=yes
8199 else
8200 ac_cv_header_time=no
8201 fi
8202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8203 fi
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8205 $as_echo "$ac_cv_header_time" >&6; }
8206 if test $ac_cv_header_time = yes; then
8207
8208 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8209
8210 fi
8211
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8213 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8214 if test "${gcc_cv_header_string+set}" = set; then :
8215 $as_echo_n "(cached) " >&6
8216 else
8217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h. */
8219 #include <string.h>
8220 #include <strings.h>
8221 int
8222 main ()
8223 {
8224
8225 ;
8226 return 0;
8227 }
8228 _ACEOF
8229 if ac_fn_c_try_compile "$LINENO"; then :
8230 gcc_cv_header_string=yes
8231 else
8232 gcc_cv_header_string=no
8233 fi
8234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8235 fi
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8237 $as_echo "$gcc_cv_header_string" >&6; }
8238 if test $gcc_cv_header_string = yes; then
8239
8240 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8241
8242 fi
8243
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8245 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8246 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8247 $as_echo_n "(cached) " >&6
8248 else
8249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8250 /* end confdefs.h. */
8251 #include <sys/types.h>
8252 #include <sys/wait.h>
8253 #ifndef WEXITSTATUS
8254 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8255 #endif
8256 #ifndef WIFEXITED
8257 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8258 #endif
8259
8260 int
8261 main ()
8262 {
8263 int s;
8264 wait (&s);
8265 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8266 ;
8267 return 0;
8268 }
8269 _ACEOF
8270 if ac_fn_c_try_compile "$LINENO"; then :
8271 ac_cv_header_sys_wait_h=yes
8272 else
8273 ac_cv_header_sys_wait_h=no
8274 fi
8275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8276 fi
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8278 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8279 if test $ac_cv_header_sys_wait_h = yes; then
8280
8281 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8282
8283 fi
8284
8285 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8286 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8287 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8288 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8289 do :
8290 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8291 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8292 eval as_val=\$$as_ac_Header
8293 if test "x$as_val" = x""yes; then :
8294 cat >>confdefs.h <<_ACEOF
8295 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8296 _ACEOF
8297
8298 fi
8299 done
8300
8301
8302 # Check for thread headers.
8303 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8304 if test "x$ac_cv_header_thread_h" = x""yes; then :
8305 have_thread_h=yes
8306 else
8307 have_thread_h=
8308 fi
8309
8310 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8311 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8312 have_pthread_h=yes
8313 else
8314 have_pthread_h=
8315 fi
8316
8317
8318 # These tests can't be done till we know if we have limits.h.
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8320 $as_echo_n "checking for CHAR_BIT... " >&6; }
8321 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8322 $as_echo_n "(cached) " >&6
8323 else
8324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8325 /* end confdefs.h. */
8326 #ifdef HAVE_LIMITS_H
8327 #include <limits.h>
8328 #endif
8329 #ifdef CHAR_BIT
8330 found
8331 #endif
8332 _ACEOF
8333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8334 $EGREP "found" >/dev/null 2>&1; then :
8335 gcc_cv_decl_char_bit=yes
8336 else
8337 gcc_cv_decl_char_bit=no
8338 fi
8339 rm -f conftest*
8340
8341
8342 fi
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8344 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8345 if test $gcc_cv_decl_char_bit = no; then
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8347 $as_echo_n "checking number of bits in a byte... " >&6; }
8348 if test "${gcc_cv_c_nbby+set}" = set; then :
8349 $as_echo_n "(cached) " >&6
8350 else
8351 i=8
8352 gcc_cv_c_nbby=
8353 while test $i -lt 65; do
8354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355 /* end confdefs.h. */
8356
8357 int
8358 main ()
8359 {
8360 switch(0) {
8361 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8362 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8363 ; }
8364 ;
8365 return 0;
8366 }
8367 _ACEOF
8368 if ac_fn_c_try_compile "$LINENO"; then :
8369 gcc_cv_c_nbby=$i; break
8370 fi
8371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8372 i=`expr $i + 1`
8373 done
8374 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8375
8376 fi
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8378 $as_echo "$gcc_cv_c_nbby" >&6; }
8379 if test $gcc_cv_c_nbby = failed; then
8380 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8381 else
8382
8383 cat >>confdefs.h <<_ACEOF
8384 #define CHAR_BIT $gcc_cv_c_nbby
8385 _ACEOF
8386
8387 fi
8388 fi
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8390 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8391 if test "${ac_cv_c_bigendian+set}" = set; then :
8392 $as_echo_n "(cached) " >&6
8393 else
8394 ac_cv_c_bigendian=unknown
8395 # See if we're dealing with a universal compiler.
8396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8397 /* end confdefs.h. */
8398 #ifndef __APPLE_CC__
8399 not a universal capable compiler
8400 #endif
8401 typedef int dummy;
8402
8403 _ACEOF
8404 if ac_fn_c_try_compile "$LINENO"; then :
8405
8406 # Check for potential -arch flags. It is not universal unless
8407 # there are at least two -arch flags with different values.
8408 ac_arch=
8409 ac_prev=
8410 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8411 if test -n "$ac_prev"; then
8412 case $ac_word in
8413 i?86 | x86_64 | ppc | ppc64)
8414 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8415 ac_arch=$ac_word
8416 else
8417 ac_cv_c_bigendian=universal
8418 break
8419 fi
8420 ;;
8421 esac
8422 ac_prev=
8423 elif test "x$ac_word" = "x-arch"; then
8424 ac_prev=arch
8425 fi
8426 done
8427 fi
8428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8429 if test $ac_cv_c_bigendian = unknown; then
8430 # See if sys/param.h defines the BYTE_ORDER macro.
8431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432 /* end confdefs.h. */
8433 #include <sys/types.h>
8434 #include <sys/param.h>
8435
8436 int
8437 main ()
8438 {
8439 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8440 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8441 && LITTLE_ENDIAN)
8442 bogus endian macros
8443 #endif
8444
8445 ;
8446 return 0;
8447 }
8448 _ACEOF
8449 if ac_fn_c_try_compile "$LINENO"; then :
8450 # It does; now see whether it defined to BIG_ENDIAN or not.
8451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452 /* end confdefs.h. */
8453 #include <sys/types.h>
8454 #include <sys/param.h>
8455
8456 int
8457 main ()
8458 {
8459 #if BYTE_ORDER != BIG_ENDIAN
8460 not big endian
8461 #endif
8462
8463 ;
8464 return 0;
8465 }
8466 _ACEOF
8467 if ac_fn_c_try_compile "$LINENO"; then :
8468 ac_cv_c_bigendian=yes
8469 else
8470 ac_cv_c_bigendian=no
8471 fi
8472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8473 fi
8474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475 fi
8476 if test $ac_cv_c_bigendian = unknown; then
8477 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h. */
8480 #include <limits.h>
8481
8482 int
8483 main ()
8484 {
8485 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8486 bogus endian macros
8487 #endif
8488
8489 ;
8490 return 0;
8491 }
8492 _ACEOF
8493 if ac_fn_c_try_compile "$LINENO"; then :
8494 # It does; now see whether it defined to _BIG_ENDIAN or not.
8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8497 #include <limits.h>
8498
8499 int
8500 main ()
8501 {
8502 #ifndef _BIG_ENDIAN
8503 not big endian
8504 #endif
8505
8506 ;
8507 return 0;
8508 }
8509 _ACEOF
8510 if ac_fn_c_try_compile "$LINENO"; then :
8511 ac_cv_c_bigendian=yes
8512 else
8513 ac_cv_c_bigendian=no
8514 fi
8515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8516 fi
8517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8518 fi
8519 if test $ac_cv_c_bigendian = unknown; then
8520 # Compile a test program.
8521 if test "$cross_compiling" = yes; then :
8522 # Try to guess by grepping values from an object file.
8523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8524 /* end confdefs.h. */
8525 short int ascii_mm[] =
8526 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8527 short int ascii_ii[] =
8528 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8529 int use_ascii (int i) {
8530 return ascii_mm[i] + ascii_ii[i];
8531 }
8532 short int ebcdic_ii[] =
8533 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8534 short int ebcdic_mm[] =
8535 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8536 int use_ebcdic (int i) {
8537 return ebcdic_mm[i] + ebcdic_ii[i];
8538 }
8539 extern int foo;
8540
8541 int
8542 main ()
8543 {
8544 return use_ascii (foo) == use_ebcdic (foo);
8545 ;
8546 return 0;
8547 }
8548 _ACEOF
8549 if ac_fn_c_try_compile "$LINENO"; then :
8550 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8551 ac_cv_c_bigendian=yes
8552 fi
8553 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8554 if test "$ac_cv_c_bigendian" = unknown; then
8555 ac_cv_c_bigendian=no
8556 else
8557 # finding both strings is unlikely to happen, but who knows?
8558 ac_cv_c_bigendian=unknown
8559 fi
8560 fi
8561 fi
8562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8563 else
8564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565 /* end confdefs.h. */
8566 $ac_includes_default
8567 int
8568 main ()
8569 {
8570
8571 /* Are we little or big endian? From Harbison&Steele. */
8572 union
8573 {
8574 long int l;
8575 char c[sizeof (long int)];
8576 } u;
8577 u.l = 1;
8578 return u.c[sizeof (long int) - 1] == 1;
8579
8580 ;
8581 return 0;
8582 }
8583 _ACEOF
8584 if ac_fn_c_try_run "$LINENO"; then :
8585 ac_cv_c_bigendian=no
8586 else
8587 ac_cv_c_bigendian=yes
8588 fi
8589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8590 conftest.$ac_objext conftest.beam conftest.$ac_ext
8591 fi
8592
8593 fi
8594 fi
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8596 $as_echo "$ac_cv_c_bigendian" >&6; }
8597 case $ac_cv_c_bigendian in #(
8598 yes)
8599 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8600 ;; #(
8601 no)
8602 ;; #(
8603 universal)
8604
8605 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8606
8607 ;; #(
8608 *)
8609 as_fn_error "unknown endianness
8610 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8611 esac
8612
8613
8614 # ----------------------
8615 # Checks for C++ headers
8616 # ----------------------
8617
8618 ac_ext=cpp
8619 ac_cpp='$CXXCPP $CPPFLAGS'
8620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8624 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8625 if test -z "$CXXCPP"; then
8626 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8627 $as_echo_n "(cached) " >&6
8628 else
8629 # Double quotes because CXXCPP needs to be expanded
8630 for CXXCPP in "$CXX -E" "/lib/cpp"
8631 do
8632 ac_preproc_ok=false
8633 for ac_cxx_preproc_warn_flag in '' yes
8634 do
8635 # Use a header file that comes with gcc, so configuring glibc
8636 # with a fresh cross-compiler works.
8637 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8638 # <limits.h> exists even on freestanding compilers.
8639 # On the NeXT, cc -E runs the code through the compiler's parser,
8640 # not just through cpp. "Syntax error" is here to catch this case.
8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8643 #ifdef __STDC__
8644 # include <limits.h>
8645 #else
8646 # include <assert.h>
8647 #endif
8648 Syntax error
8649 _ACEOF
8650 if ac_fn_cxx_try_cpp "$LINENO"; then :
8651
8652 else
8653 # Broken: fails on valid input.
8654 continue
8655 fi
8656 rm -f conftest.err conftest.$ac_ext
8657
8658 # OK, works on sane cases. Now check whether nonexistent headers
8659 # can be detected and how.
8660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h. */
8662 #include <ac_nonexistent.h>
8663 _ACEOF
8664 if ac_fn_cxx_try_cpp "$LINENO"; then :
8665 # Broken: success on invalid input.
8666 continue
8667 else
8668 # Passes both tests.
8669 ac_preproc_ok=:
8670 break
8671 fi
8672 rm -f conftest.err conftest.$ac_ext
8673
8674 done
8675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8676 rm -f conftest.err conftest.$ac_ext
8677 if $ac_preproc_ok; then :
8678 break
8679 fi
8680
8681 done
8682 ac_cv_prog_CXXCPP=$CXXCPP
8683
8684 fi
8685 CXXCPP=$ac_cv_prog_CXXCPP
8686 else
8687 ac_cv_prog_CXXCPP=$CXXCPP
8688 fi
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8690 $as_echo "$CXXCPP" >&6; }
8691 ac_preproc_ok=false
8692 for ac_cxx_preproc_warn_flag in '' yes
8693 do
8694 # Use a header file that comes with gcc, so configuring glibc
8695 # with a fresh cross-compiler works.
8696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8697 # <limits.h> exists even on freestanding compilers.
8698 # On the NeXT, cc -E runs the code through the compiler's parser,
8699 # not just through cpp. "Syntax error" is here to catch this case.
8700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8701 /* end confdefs.h. */
8702 #ifdef __STDC__
8703 # include <limits.h>
8704 #else
8705 # include <assert.h>
8706 #endif
8707 Syntax error
8708 _ACEOF
8709 if ac_fn_cxx_try_cpp "$LINENO"; then :
8710
8711 else
8712 # Broken: fails on valid input.
8713 continue
8714 fi
8715 rm -f conftest.err conftest.$ac_ext
8716
8717 # OK, works on sane cases. Now check whether nonexistent headers
8718 # can be detected and how.
8719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8720 /* end confdefs.h. */
8721 #include <ac_nonexistent.h>
8722 _ACEOF
8723 if ac_fn_cxx_try_cpp "$LINENO"; then :
8724 # Broken: success on invalid input.
8725 continue
8726 else
8727 # Passes both tests.
8728 ac_preproc_ok=:
8729 break
8730 fi
8731 rm -f conftest.err conftest.$ac_ext
8732
8733 done
8734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8735 rm -f conftest.err conftest.$ac_ext
8736 if $ac_preproc_ok; then :
8737
8738 else
8739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8742 See \`config.log' for more details." >&5
8743 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8744 See \`config.log' for more details." >&2;}; }
8745 fi
8746
8747 ac_ext=c
8748 ac_cpp='$CPP $CPPFLAGS'
8749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8752
8753
8754 ac_ext=cpp
8755 ac_cpp='$CXXCPP $CPPFLAGS'
8756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8759
8760
8761
8762
8763 for ac_header in unordered_map
8764 do :
8765 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8766 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8767 cat >>confdefs.h <<_ACEOF
8768 #define HAVE_UNORDERED_MAP 1
8769 _ACEOF
8770
8771 fi
8772 done
8773
8774 for ac_header in tr1/unordered_map
8775 do :
8776 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8777 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8778 cat >>confdefs.h <<_ACEOF
8779 #define HAVE_TR1_UNORDERED_MAP 1
8780 _ACEOF
8781
8782 fi
8783 done
8784
8785 for ac_header in ext/hash_map
8786 do :
8787 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8788 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8789 cat >>confdefs.h <<_ACEOF
8790 #define HAVE_EXT_HASH_MAP 1
8791 _ACEOF
8792
8793 fi
8794 done
8795
8796
8797 ac_ext=c
8798 ac_cpp='$CPP $CPPFLAGS'
8799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8802
8803
8804 # --------
8805 # UNSORTED
8806 # --------
8807
8808
8809 # These libraries may be used by collect2.
8810 # We may need a special search path to get them linked.
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8812 $as_echo_n "checking for collect2 libraries... " >&6; }
8813 if test "${gcc_cv_collect2_libs+set}" = set; then :
8814 $as_echo_n "(cached) " >&6
8815 else
8816 save_LIBS="$LIBS"
8817 for libs in '' -lld -lmld \
8818 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8819 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8820 do
8821 LIBS="$libs"
8822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8823 /* end confdefs.h. */
8824
8825 /* Override any GCC internal prototype to avoid an error.
8826 Use char because int might match the return type of a GCC
8827 builtin and then its argument prototype would still apply. */
8828 #ifdef __cplusplus
8829 extern "C"
8830 #endif
8831 char ldopen ();
8832 int
8833 main ()
8834 {
8835 return ldopen ();
8836 ;
8837 return 0;
8838 }
8839 _ACEOF
8840 if ac_fn_c_try_link "$LINENO"; then :
8841 gcc_cv_collect2_libs="$libs"; break
8842 fi
8843 rm -f core conftest.err conftest.$ac_objext \
8844 conftest$ac_exeext conftest.$ac_ext
8845 done
8846 LIBS="$save_LIBS"
8847 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8848 fi
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8850 $as_echo "$gcc_cv_collect2_libs" >&6; }
8851 case $gcc_cv_collect2_libs in
8852 "none required") ;;
8853 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8854 esac
8855
8856
8857 # When building Ada code on Alpha, we need exc_resume which is usually in
8858 # -lexc. So test for it.
8859 save_LIBS="$LIBS"
8860 LIBS=
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8862 $as_echo_n "checking for library containing exc_resume... " >&6; }
8863 if test "${ac_cv_search_exc_resume+set}" = set; then :
8864 $as_echo_n "(cached) " >&6
8865 else
8866 ac_func_search_save_LIBS=$LIBS
8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h. */
8869
8870 /* Override any GCC internal prototype to avoid an error.
8871 Use char because int might match the return type of a GCC
8872 builtin and then its argument prototype would still apply. */
8873 #ifdef __cplusplus
8874 extern "C"
8875 #endif
8876 char exc_resume ();
8877 int
8878 main ()
8879 {
8880 return exc_resume ();
8881 ;
8882 return 0;
8883 }
8884 _ACEOF
8885 for ac_lib in '' exc; do
8886 if test -z "$ac_lib"; then
8887 ac_res="none required"
8888 else
8889 ac_res=-l$ac_lib
8890 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8891 fi
8892 if ac_fn_c_try_link "$LINENO"; then :
8893 ac_cv_search_exc_resume=$ac_res
8894 fi
8895 rm -f core conftest.err conftest.$ac_objext \
8896 conftest$ac_exeext
8897 if test "${ac_cv_search_exc_resume+set}" = set; then :
8898 break
8899 fi
8900 done
8901 if test "${ac_cv_search_exc_resume+set}" = set; then :
8902
8903 else
8904 ac_cv_search_exc_resume=no
8905 fi
8906 rm conftest.$ac_ext
8907 LIBS=$ac_func_search_save_LIBS
8908 fi
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8910 $as_echo "$ac_cv_search_exc_resume" >&6; }
8911 ac_res=$ac_cv_search_exc_resume
8912 if test "$ac_res" != no; then :
8913 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8914
8915 fi
8916
8917 GNAT_LIBEXC="$LIBS"
8918 LIBS="$save_LIBS"
8919
8920
8921 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8922 save_LIBS="$LIBS"
8923 LIBS=
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8925 $as_echo_n "checking for library containing kstat_open... " >&6; }
8926 if test "${ac_cv_search_kstat_open+set}" = set; then :
8927 $as_echo_n "(cached) " >&6
8928 else
8929 ac_func_search_save_LIBS=$LIBS
8930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h. */
8932
8933 /* Override any GCC internal prototype to avoid an error.
8934 Use char because int might match the return type of a GCC
8935 builtin and then its argument prototype would still apply. */
8936 #ifdef __cplusplus
8937 extern "C"
8938 #endif
8939 char kstat_open ();
8940 int
8941 main ()
8942 {
8943 return kstat_open ();
8944 ;
8945 return 0;
8946 }
8947 _ACEOF
8948 for ac_lib in '' kstat; do
8949 if test -z "$ac_lib"; then
8950 ac_res="none required"
8951 else
8952 ac_res=-l$ac_lib
8953 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8954 fi
8955 if ac_fn_c_try_link "$LINENO"; then :
8956 ac_cv_search_kstat_open=$ac_res
8957 fi
8958 rm -f core conftest.err conftest.$ac_objext \
8959 conftest$ac_exeext
8960 if test "${ac_cv_search_kstat_open+set}" = set; then :
8961 break
8962 fi
8963 done
8964 if test "${ac_cv_search_kstat_open+set}" = set; then :
8965
8966 else
8967 ac_cv_search_kstat_open=no
8968 fi
8969 rm conftest.$ac_ext
8970 LIBS=$ac_func_search_save_LIBS
8971 fi
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8973 $as_echo "$ac_cv_search_kstat_open" >&6; }
8974 ac_res=$ac_cv_search_kstat_open
8975 if test "$ac_res" != no; then :
8976 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8977
8978 fi
8979
8980 EXTRA_GCC_LIBS="$LIBS"
8981 LIBS="$save_LIBS"
8982
8983
8984 # Some systems put ldexp and frexp in libm instead of libc; assume
8985 # they're both in the same place. jcf-dump needs them.
8986 save_LIBS="$LIBS"
8987 LIBS=
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8989 $as_echo_n "checking for library containing ldexp... " >&6; }
8990 if test "${ac_cv_search_ldexp+set}" = set; then :
8991 $as_echo_n "(cached) " >&6
8992 else
8993 ac_func_search_save_LIBS=$LIBS
8994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h. */
8996
8997 /* Override any GCC internal prototype to avoid an error.
8998 Use char because int might match the return type of a GCC
8999 builtin and then its argument prototype would still apply. */
9000 #ifdef __cplusplus
9001 extern "C"
9002 #endif
9003 char ldexp ();
9004 int
9005 main ()
9006 {
9007 return ldexp ();
9008 ;
9009 return 0;
9010 }
9011 _ACEOF
9012 for ac_lib in '' m; do
9013 if test -z "$ac_lib"; then
9014 ac_res="none required"
9015 else
9016 ac_res=-l$ac_lib
9017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9018 fi
9019 if ac_fn_c_try_link "$LINENO"; then :
9020 ac_cv_search_ldexp=$ac_res
9021 fi
9022 rm -f core conftest.err conftest.$ac_objext \
9023 conftest$ac_exeext
9024 if test "${ac_cv_search_ldexp+set}" = set; then :
9025 break
9026 fi
9027 done
9028 if test "${ac_cv_search_ldexp+set}" = set; then :
9029
9030 else
9031 ac_cv_search_ldexp=no
9032 fi
9033 rm conftest.$ac_ext
9034 LIBS=$ac_func_search_save_LIBS
9035 fi
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9037 $as_echo "$ac_cv_search_ldexp" >&6; }
9038 ac_res=$ac_cv_search_ldexp
9039 if test "$ac_res" != no; then :
9040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9041
9042 fi
9043
9044 LDEXP_LIB="$LIBS"
9045 LIBS="$save_LIBS"
9046
9047
9048 # Use <inttypes.h> only if it exists,
9049 # doesn't clash with <sys/types.h>, and declares intmax_t.
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9051 $as_echo_n "checking for inttypes.h... " >&6; }
9052 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9053 $as_echo_n "(cached) " >&6
9054 else
9055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056 /* end confdefs.h. */
9057 #include <sys/types.h>
9058 #include <inttypes.h>
9059 int
9060 main ()
9061 {
9062 intmax_t i = -1;
9063 ;
9064 return 0;
9065 }
9066 _ACEOF
9067 if ac_fn_c_try_compile "$LINENO"; then :
9068 gcc_cv_header_inttypes_h=yes
9069 else
9070 gcc_cv_header_inttypes_h=no
9071 fi
9072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9073 fi
9074
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9076 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9077 if test $gcc_cv_header_inttypes_h = yes; then
9078
9079 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9080
9081 fi
9082
9083
9084
9085 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9086 sysconf strsignal getrusage nl_langinfo \
9087 gettimeofday mbstowcs wcswidth mmap setlocale \
9088 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
9089 do :
9090 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9091 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9092 eval as_val=\$$as_ac_var
9093 if test "x$as_val" = x""yes; then :
9094 cat >>confdefs.h <<_ACEOF
9095 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9096 _ACEOF
9097
9098 fi
9099 done
9100
9101
9102 if test x$ac_cv_func_mbstowcs = xyes; then
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9104 $as_echo_n "checking whether mbstowcs works... " >&6; }
9105 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9106 $as_echo_n "(cached) " >&6
9107 else
9108 if test "$cross_compiling" = yes; then :
9109 gcc_cv_func_mbstowcs_works=yes
9110 else
9111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9112 /* end confdefs.h. */
9113 #include <stdlib.h>
9114 int main()
9115 {
9116 mbstowcs(0, "", 0);
9117 return 0;
9118 }
9119 _ACEOF
9120 if ac_fn_c_try_run "$LINENO"; then :
9121 gcc_cv_func_mbstowcs_works=yes
9122 else
9123 gcc_cv_func_mbstowcs_works=no
9124 fi
9125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9126 conftest.$ac_objext conftest.beam conftest.$ac_ext
9127 fi
9128
9129 fi
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9131 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9132 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9133
9134 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9135
9136 fi
9137 fi
9138
9139 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9140 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9141
9142 else
9143
9144 cat >>confdefs.h <<_ACEOF
9145 #define ssize_t int
9146 _ACEOF
9147
9148 fi
9149
9150 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9151 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9152
9153 else
9154
9155 cat >>confdefs.h <<_ACEOF
9156 #define caddr_t char *
9157 _ACEOF
9158
9159 fi
9160
9161
9162
9163 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9164 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9165 gcc_header_sys_mman_h=yes
9166 else
9167 gcc_header_sys_mman_h=no
9168 fi
9169
9170 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9171 if test "x$ac_cv_func_mmap" = x""yes; then :
9172 gcc_func_mmap=yes
9173 else
9174 gcc_func_mmap=no
9175 fi
9176
9177 if test "$gcc_header_sys_mman_h" != yes \
9178 || test "$gcc_func_mmap" != yes; then
9179 gcc_cv_func_mmap_file=no
9180 gcc_cv_func_mmap_dev_zero=no
9181 gcc_cv_func_mmap_anon=no
9182 else
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9184 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9185 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9186 $as_echo_n "(cached) " >&6
9187 else
9188 # Add a system to this blacklist if
9189 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9190 # memory area containing the same data that you'd get if you applied
9191 # read() to the same fd. The only system known to have a problem here
9192 # is VMS, where text files have record structure.
9193 case "$host_os" in
9194 vms* | ultrix*)
9195 gcc_cv_func_mmap_file=no ;;
9196 *)
9197 gcc_cv_func_mmap_file=yes;;
9198 esac
9199 fi
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9201 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9203 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9204 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9205 $as_echo_n "(cached) " >&6
9206 else
9207 # Add a system to this blacklist if it has mmap() but /dev/zero
9208 # does not exist, or if mmapping /dev/zero does not give anonymous
9209 # zeroed pages with both the following properties:
9210 # 1. If you map N consecutive pages in with one call, and then
9211 # unmap any subset of those pages, the pages that were not
9212 # explicitly unmapped remain accessible.
9213 # 2. If you map two adjacent blocks of memory and then unmap them
9214 # both at once, they must both go away.
9215 # Systems known to be in this category are Windows (all variants),
9216 # VMS, and Darwin.
9217 case "$host_os" in
9218 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9219 gcc_cv_func_mmap_dev_zero=no ;;
9220 *)
9221 gcc_cv_func_mmap_dev_zero=yes;;
9222 esac
9223 fi
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9225 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9226
9227 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9229 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9230 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9231 $as_echo_n "(cached) " >&6
9232 else
9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234 /* end confdefs.h. */
9235 #include <sys/types.h>
9236 #include <sys/mman.h>
9237 #include <unistd.h>
9238
9239 #ifndef MAP_ANONYMOUS
9240 #define MAP_ANONYMOUS MAP_ANON
9241 #endif
9242
9243 int
9244 main ()
9245 {
9246 int n = MAP_ANONYMOUS;
9247 ;
9248 return 0;
9249 }
9250 _ACEOF
9251 if ac_fn_c_try_compile "$LINENO"; then :
9252 gcc_cv_decl_map_anon=yes
9253 else
9254 gcc_cv_decl_map_anon=no
9255 fi
9256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9257 fi
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9259 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9260
9261 if test $gcc_cv_decl_map_anon = no; then
9262 gcc_cv_func_mmap_anon=no
9263 else
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9265 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9266 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9267 $as_echo_n "(cached) " >&6
9268 else
9269 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9270 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9271 # doesn't give anonymous zeroed pages with the same properties listed
9272 # above for use of /dev/zero.
9273 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9274 case "$host_os" in
9275 vms* | cygwin* | pe | mingw* | sco* | udk* )
9276 gcc_cv_func_mmap_anon=no ;;
9277 *)
9278 gcc_cv_func_mmap_anon=yes;;
9279 esac
9280 fi
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9282 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9283 fi
9284 fi
9285
9286 if test $gcc_cv_func_mmap_file = yes; then
9287
9288 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9289
9290 fi
9291 if test $gcc_cv_func_mmap_dev_zero = yes; then
9292
9293 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9294
9295 fi
9296 if test $gcc_cv_func_mmap_anon = yes; then
9297
9298 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9299
9300 fi
9301
9302
9303 case "${host}" in
9304 *-*-*vms*)
9305 # Under VMS, vfork works very differently than on Unix. The standard test
9306 # won't work, and it isn't easily adaptable. It makes more sense to
9307 # just force it.
9308 ac_cv_func_vfork_works=yes
9309 ;;
9310 esac
9311 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9312 if test "x$ac_cv_type_pid_t" = x""yes; then :
9313
9314 else
9315
9316 cat >>confdefs.h <<_ACEOF
9317 #define pid_t int
9318 _ACEOF
9319
9320 fi
9321
9322 for ac_header in vfork.h
9323 do :
9324 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9325 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9326 cat >>confdefs.h <<_ACEOF
9327 #define HAVE_VFORK_H 1
9328 _ACEOF
9329
9330 fi
9331 done
9332
9333 for ac_func in fork vfork
9334 do :
9335 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9336 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9337 eval as_val=\$$as_ac_var
9338 if test "x$as_val" = x""yes; then :
9339 cat >>confdefs.h <<_ACEOF
9340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9341 _ACEOF
9342
9343 fi
9344 done
9345
9346 if test "x$ac_cv_func_fork" = xyes; then
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9348 $as_echo_n "checking for working fork... " >&6; }
9349 if test "${ac_cv_func_fork_works+set}" = set; then :
9350 $as_echo_n "(cached) " >&6
9351 else
9352 if test "$cross_compiling" = yes; then :
9353 ac_cv_func_fork_works=cross
9354 else
9355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356 /* end confdefs.h. */
9357 $ac_includes_default
9358 int
9359 main ()
9360 {
9361
9362 /* By Ruediger Kuhlmann. */
9363 return fork () < 0;
9364
9365 ;
9366 return 0;
9367 }
9368 _ACEOF
9369 if ac_fn_c_try_run "$LINENO"; then :
9370 ac_cv_func_fork_works=yes
9371 else
9372 ac_cv_func_fork_works=no
9373 fi
9374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9375 conftest.$ac_objext conftest.beam conftest.$ac_ext
9376 fi
9377
9378 fi
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9380 $as_echo "$ac_cv_func_fork_works" >&6; }
9381
9382 else
9383 ac_cv_func_fork_works=$ac_cv_func_fork
9384 fi
9385 if test "x$ac_cv_func_fork_works" = xcross; then
9386 case $host in
9387 *-*-amigaos* | *-*-msdosdjgpp*)
9388 # Override, as these systems have only a dummy fork() stub
9389 ac_cv_func_fork_works=no
9390 ;;
9391 *)
9392 ac_cv_func_fork_works=yes
9393 ;;
9394 esac
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9396 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9397 fi
9398 ac_cv_func_vfork_works=$ac_cv_func_vfork
9399 if test "x$ac_cv_func_vfork" = xyes; then
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9401 $as_echo_n "checking for working vfork... " >&6; }
9402 if test "${ac_cv_func_vfork_works+set}" = set; then :
9403 $as_echo_n "(cached) " >&6
9404 else
9405 if test "$cross_compiling" = yes; then :
9406 ac_cv_func_vfork_works=cross
9407 else
9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9410 /* Thanks to Paul Eggert for this test. */
9411 $ac_includes_default
9412 #include <sys/wait.h>
9413 #ifdef HAVE_VFORK_H
9414 # include <vfork.h>
9415 #endif
9416 /* On some sparc systems, changes by the child to local and incoming
9417 argument registers are propagated back to the parent. The compiler
9418 is told about this with #include <vfork.h>, but some compilers
9419 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9420 static variable whose address is put into a register that is
9421 clobbered by the vfork. */
9422 static void
9423 #ifdef __cplusplus
9424 sparc_address_test (int arg)
9425 # else
9426 sparc_address_test (arg) int arg;
9427 #endif
9428 {
9429 static pid_t child;
9430 if (!child) {
9431 child = vfork ();
9432 if (child < 0) {
9433 perror ("vfork");
9434 _exit(2);
9435 }
9436 if (!child) {
9437 arg = getpid();
9438 write(-1, "", 0);
9439 _exit (arg);
9440 }
9441 }
9442 }
9443
9444 int
9445 main ()
9446 {
9447 pid_t parent = getpid ();
9448 pid_t child;
9449
9450 sparc_address_test (0);
9451
9452 child = vfork ();
9453
9454 if (child == 0) {
9455 /* Here is another test for sparc vfork register problems. This
9456 test uses lots of local variables, at least as many local
9457 variables as main has allocated so far including compiler
9458 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9459 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9460 reuse the register of parent for one of the local variables,
9461 since it will think that parent can't possibly be used any more
9462 in this routine. Assigning to the local variable will thus
9463 munge parent in the parent process. */
9464 pid_t
9465 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9466 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9467 /* Convince the compiler that p..p7 are live; otherwise, it might
9468 use the same hardware register for all 8 local variables. */
9469 if (p != p1 || p != p2 || p != p3 || p != p4
9470 || p != p5 || p != p6 || p != p7)
9471 _exit(1);
9472
9473 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9474 from child file descriptors. If the child closes a descriptor
9475 before it execs or exits, this munges the parent's descriptor
9476 as well. Test for this by closing stdout in the child. */
9477 _exit(close(fileno(stdout)) != 0);
9478 } else {
9479 int status;
9480 struct stat st;
9481
9482 while (wait(&status) != child)
9483 ;
9484 return (
9485 /* Was there some problem with vforking? */
9486 child < 0
9487
9488 /* Did the child fail? (This shouldn't happen.) */
9489 || status
9490
9491 /* Did the vfork/compiler bug occur? */
9492 || parent != getpid()
9493
9494 /* Did the file descriptor bug occur? */
9495 || fstat(fileno(stdout), &st) != 0
9496 );
9497 }
9498 }
9499 _ACEOF
9500 if ac_fn_c_try_run "$LINENO"; then :
9501 ac_cv_func_vfork_works=yes
9502 else
9503 ac_cv_func_vfork_works=no
9504 fi
9505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9506 conftest.$ac_objext conftest.beam conftest.$ac_ext
9507 fi
9508
9509 fi
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9511 $as_echo "$ac_cv_func_vfork_works" >&6; }
9512
9513 fi;
9514 if test "x$ac_cv_func_fork_works" = xcross; then
9515 ac_cv_func_vfork_works=$ac_cv_func_vfork
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9517 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9518 fi
9519
9520 if test "x$ac_cv_func_vfork_works" = xyes; then
9521
9522 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9523
9524 else
9525
9526 $as_echo "#define vfork fork" >>confdefs.h
9527
9528 fi
9529 if test "x$ac_cv_func_fork_works" = xyes; then
9530
9531 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9532
9533 fi
9534
9535
9536 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9537 # iconv() prototype.
9538
9539 if test "X$prefix" = "XNONE"; then
9540 acl_final_prefix="$ac_default_prefix"
9541 else
9542 acl_final_prefix="$prefix"
9543 fi
9544 if test "X$exec_prefix" = "XNONE"; then
9545 acl_final_exec_prefix='${prefix}'
9546 else
9547 acl_final_exec_prefix="$exec_prefix"
9548 fi
9549 acl_save_prefix="$prefix"
9550 prefix="$acl_final_prefix"
9551 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9552 prefix="$acl_save_prefix"
9553
9554
9555 # Check whether --with-gnu-ld was given.
9556 if test "${with_gnu_ld+set}" = set; then :
9557 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9558 else
9559 with_gnu_ld=no
9560 fi
9561
9562 # Prepare PATH_SEPARATOR.
9563 # The user is always right.
9564 if test "${PATH_SEPARATOR+set}" != set; then
9565 echo "#! /bin/sh" >conf$$.sh
9566 echo "exit 0" >>conf$$.sh
9567 chmod +x conf$$.sh
9568 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9569 PATH_SEPARATOR=';'
9570 else
9571 PATH_SEPARATOR=:
9572 fi
9573 rm -f conf$$.sh
9574 fi
9575 ac_prog=ld
9576 if test "$GCC" = yes; then
9577 # Check if gcc -print-prog-name=ld gives a path.
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9579 $as_echo_n "checking for ld used by GCC... " >&6; }
9580 case $host in
9581 *-*-mingw*)
9582 # gcc leaves a trailing carriage return which upsets mingw
9583 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9584 *)
9585 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9586 esac
9587 case $ac_prog in
9588 # Accept absolute paths.
9589 [\\/]* | [A-Za-z]:[\\/]*)
9590 re_direlt='/[^/][^/]*/\.\./'
9591 # Canonicalize the path of ld
9592 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9593 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9594 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9595 done
9596 test -z "$LD" && LD="$ac_prog"
9597 ;;
9598 "")
9599 # If it fails, then pretend we aren't using GCC.
9600 ac_prog=ld
9601 ;;
9602 *)
9603 # If it is relative, then search for the first ld in PATH.
9604 with_gnu_ld=unknown
9605 ;;
9606 esac
9607 elif test "$with_gnu_ld" = yes; then
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9609 $as_echo_n "checking for GNU ld... " >&6; }
9610 else
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9612 $as_echo_n "checking for non-GNU ld... " >&6; }
9613 fi
9614 if test "${acl_cv_path_LD+set}" = set; then :
9615 $as_echo_n "(cached) " >&6
9616 else
9617 if test -z "$LD"; then
9618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9619 for ac_dir in $PATH; do
9620 test -z "$ac_dir" && ac_dir=.
9621 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9622 acl_cv_path_LD="$ac_dir/$ac_prog"
9623 # Check to see if the program is GNU ld. I'd rather use --version,
9624 # but apparently some GNU ld's only accept -v.
9625 # Break only if it was the GNU/non-GNU ld that we prefer.
9626 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9627 test "$with_gnu_ld" != no && break
9628 else
9629 test "$with_gnu_ld" != yes && break
9630 fi
9631 fi
9632 done
9633 IFS="$ac_save_ifs"
9634 else
9635 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9636 fi
9637 fi
9638
9639 LD="$acl_cv_path_LD"
9640 if test -n "$LD"; then
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9642 $as_echo "$LD" >&6; }
9643 else
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9645 $as_echo "no" >&6; }
9646 fi
9647 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9649 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9650 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9651 $as_echo_n "(cached) " >&6
9652 else
9653 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9654 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9655 acl_cv_prog_gnu_ld=yes
9656 else
9657 acl_cv_prog_gnu_ld=no
9658 fi
9659 fi
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9661 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9662 with_gnu_ld=$acl_cv_prog_gnu_ld
9663
9664
9665
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9667 $as_echo_n "checking for shared library run path origin... " >&6; }
9668 if test "${acl_cv_rpath+set}" = set; then :
9669 $as_echo_n "(cached) " >&6
9670 else
9671
9672 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9673 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9674 . ./conftest.sh
9675 rm -f ./conftest.sh
9676 acl_cv_rpath=done
9677
9678 fi
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9680 $as_echo "$acl_cv_rpath" >&6; }
9681 wl="$acl_cv_wl"
9682 libext="$acl_cv_libext"
9683 shlibext="$acl_cv_shlibext"
9684 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9685 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9686 hardcode_direct="$acl_cv_hardcode_direct"
9687 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9688 # Check whether --enable-rpath was given.
9689 if test "${enable_rpath+set}" = set; then :
9690 enableval=$enable_rpath; :
9691 else
9692 enable_rpath=yes
9693 fi
9694
9695
9696
9697
9698
9699
9700
9701
9702 use_additional=yes
9703
9704 acl_save_prefix="$prefix"
9705 prefix="$acl_final_prefix"
9706 acl_save_exec_prefix="$exec_prefix"
9707 exec_prefix="$acl_final_exec_prefix"
9708
9709 eval additional_includedir=\"$includedir\"
9710 eval additional_libdir=\"$libdir\"
9711
9712 exec_prefix="$acl_save_exec_prefix"
9713 prefix="$acl_save_prefix"
9714
9715
9716 # Check whether --with-libiconv-prefix was given.
9717 if test "${with_libiconv_prefix+set}" = set; then :
9718 withval=$with_libiconv_prefix;
9719 if test "X$withval" = "Xno"; then
9720 use_additional=no
9721 else
9722 if test "X$withval" = "X"; then
9723
9724 acl_save_prefix="$prefix"
9725 prefix="$acl_final_prefix"
9726 acl_save_exec_prefix="$exec_prefix"
9727 exec_prefix="$acl_final_exec_prefix"
9728
9729 eval additional_includedir=\"$includedir\"
9730 eval additional_libdir=\"$libdir\"
9731
9732 exec_prefix="$acl_save_exec_prefix"
9733 prefix="$acl_save_prefix"
9734
9735 else
9736 additional_includedir="$withval/include"
9737 additional_libdir="$withval/lib"
9738 fi
9739 fi
9740
9741 fi
9742
9743 LIBICONV=
9744 LTLIBICONV=
9745 INCICONV=
9746 rpathdirs=
9747 ltrpathdirs=
9748 names_already_handled=
9749 names_next_round='iconv '
9750 while test -n "$names_next_round"; do
9751 names_this_round="$names_next_round"
9752 names_next_round=
9753 for name in $names_this_round; do
9754 already_handled=
9755 for n in $names_already_handled; do
9756 if test "$n" = "$name"; then
9757 already_handled=yes
9758 break
9759 fi
9760 done
9761 if test -z "$already_handled"; then
9762 names_already_handled="$names_already_handled $name"
9763 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9764 eval value=\"\$HAVE_LIB$uppername\"
9765 if test -n "$value"; then
9766 if test "$value" = yes; then
9767 eval value=\"\$LIB$uppername\"
9768 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9769 eval value=\"\$LTLIB$uppername\"
9770 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9771 else
9772 :
9773 fi
9774 else
9775 found_dir=
9776 found_la=
9777 found_so=
9778 found_a=
9779 if test $use_additional = yes; then
9780 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9781 found_dir="$additional_libdir"
9782 found_so="$additional_libdir/lib$name.$shlibext"
9783 if test -f "$additional_libdir/lib$name.la"; then
9784 found_la="$additional_libdir/lib$name.la"
9785 fi
9786 else
9787 if test -f "$additional_libdir/lib$name.$libext"; then
9788 found_dir="$additional_libdir"
9789 found_a="$additional_libdir/lib$name.$libext"
9790 if test -f "$additional_libdir/lib$name.la"; then
9791 found_la="$additional_libdir/lib$name.la"
9792 fi
9793 fi
9794 fi
9795 fi
9796 if test "X$found_dir" = "X"; then
9797 for x in $LDFLAGS $LTLIBICONV; do
9798
9799 acl_save_prefix="$prefix"
9800 prefix="$acl_final_prefix"
9801 acl_save_exec_prefix="$exec_prefix"
9802 exec_prefix="$acl_final_exec_prefix"
9803 eval x=\"$x\"
9804 exec_prefix="$acl_save_exec_prefix"
9805 prefix="$acl_save_prefix"
9806
9807 case "$x" in
9808 -L*)
9809 dir=`echo "X$x" | sed -e 's/^X-L//'`
9810 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9811 found_dir="$dir"
9812 found_so="$dir/lib$name.$shlibext"
9813 if test -f "$dir/lib$name.la"; then
9814 found_la="$dir/lib$name.la"
9815 fi
9816 else
9817 if test -f "$dir/lib$name.$libext"; then
9818 found_dir="$dir"
9819 found_a="$dir/lib$name.$libext"
9820 if test -f "$dir/lib$name.la"; then
9821 found_la="$dir/lib$name.la"
9822 fi
9823 fi
9824 fi
9825 ;;
9826 esac
9827 if test "X$found_dir" != "X"; then
9828 break
9829 fi
9830 done
9831 fi
9832 if test "X$found_dir" != "X"; then
9833 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9834 if test "X$found_so" != "X"; then
9835 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9836 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9837 else
9838 haveit=
9839 for x in $ltrpathdirs; do
9840 if test "X$x" = "X$found_dir"; then
9841 haveit=yes
9842 break
9843 fi
9844 done
9845 if test -z "$haveit"; then
9846 ltrpathdirs="$ltrpathdirs $found_dir"
9847 fi
9848 if test "$hardcode_direct" = yes; then
9849 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9850 else
9851 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9852 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9853 haveit=
9854 for x in $rpathdirs; do
9855 if test "X$x" = "X$found_dir"; then
9856 haveit=yes
9857 break
9858 fi
9859 done
9860 if test -z "$haveit"; then
9861 rpathdirs="$rpathdirs $found_dir"
9862 fi
9863 else
9864 haveit=
9865 for x in $LDFLAGS $LIBICONV; do
9866
9867 acl_save_prefix="$prefix"
9868 prefix="$acl_final_prefix"
9869 acl_save_exec_prefix="$exec_prefix"
9870 exec_prefix="$acl_final_exec_prefix"
9871 eval x=\"$x\"
9872 exec_prefix="$acl_save_exec_prefix"
9873 prefix="$acl_save_prefix"
9874
9875 if test "X$x" = "X-L$found_dir"; then
9876 haveit=yes
9877 break
9878 fi
9879 done
9880 if test -z "$haveit"; then
9881 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9882 fi
9883 if test "$hardcode_minus_L" != no; then
9884 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9885 else
9886 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9887 fi
9888 fi
9889 fi
9890 fi
9891 else
9892 if test "X$found_a" != "X"; then
9893 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9894 else
9895 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9896 fi
9897 fi
9898 additional_includedir=
9899 case "$found_dir" in
9900 */lib | */lib/)
9901 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9902 additional_includedir="$basedir/include"
9903 ;;
9904 esac
9905 if test "X$additional_includedir" != "X"; then
9906 if test "X$additional_includedir" != "X/usr/include"; then
9907 haveit=
9908 if test "X$additional_includedir" = "X/usr/local/include"; then
9909 if test -n "$GCC"; then
9910 case $host_os in
9911 linux*) haveit=yes;;
9912 esac
9913 fi
9914 fi
9915 if test -z "$haveit"; then
9916 for x in $CPPFLAGS $INCICONV; do
9917
9918 acl_save_prefix="$prefix"
9919 prefix="$acl_final_prefix"
9920 acl_save_exec_prefix="$exec_prefix"
9921 exec_prefix="$acl_final_exec_prefix"
9922 eval x=\"$x\"
9923 exec_prefix="$acl_save_exec_prefix"
9924 prefix="$acl_save_prefix"
9925
9926 if test "X$x" = "X-I$additional_includedir"; then
9927 haveit=yes
9928 break
9929 fi
9930 done
9931 if test -z "$haveit"; then
9932 if test -d "$additional_includedir"; then
9933 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9934 fi
9935 fi
9936 fi
9937 fi
9938 fi
9939 if test -n "$found_la"; then
9940 save_libdir="$libdir"
9941 case "$found_la" in
9942 */* | *\\*) . "$found_la" ;;
9943 *) . "./$found_la" ;;
9944 esac
9945 libdir="$save_libdir"
9946 for dep in $dependency_libs; do
9947 case "$dep" in
9948 -L*)
9949 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9950 if test "X$additional_libdir" != "X/usr/lib"; then
9951 haveit=
9952 if test "X$additional_libdir" = "X/usr/local/lib"; then
9953 if test -n "$GCC"; then
9954 case $host_os in
9955 linux*) haveit=yes;;
9956 esac
9957 fi
9958 fi
9959 if test -z "$haveit"; then
9960 haveit=
9961 for x in $LDFLAGS $LIBICONV; do
9962
9963 acl_save_prefix="$prefix"
9964 prefix="$acl_final_prefix"
9965 acl_save_exec_prefix="$exec_prefix"
9966 exec_prefix="$acl_final_exec_prefix"
9967 eval x=\"$x\"
9968 exec_prefix="$acl_save_exec_prefix"
9969 prefix="$acl_save_prefix"
9970
9971 if test "X$x" = "X-L$additional_libdir"; then
9972 haveit=yes
9973 break
9974 fi
9975 done
9976 if test -z "$haveit"; then
9977 if test -d "$additional_libdir"; then
9978 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9979 fi
9980 fi
9981 haveit=
9982 for x in $LDFLAGS $LTLIBICONV; do
9983
9984 acl_save_prefix="$prefix"
9985 prefix="$acl_final_prefix"
9986 acl_save_exec_prefix="$exec_prefix"
9987 exec_prefix="$acl_final_exec_prefix"
9988 eval x=\"$x\"
9989 exec_prefix="$acl_save_exec_prefix"
9990 prefix="$acl_save_prefix"
9991
9992 if test "X$x" = "X-L$additional_libdir"; then
9993 haveit=yes
9994 break
9995 fi
9996 done
9997 if test -z "$haveit"; then
9998 if test -d "$additional_libdir"; then
9999 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10000 fi
10001 fi
10002 fi
10003 fi
10004 ;;
10005 -R*)
10006 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10007 if test "$enable_rpath" != no; then
10008 haveit=
10009 for x in $rpathdirs; do
10010 if test "X$x" = "X$dir"; then
10011 haveit=yes
10012 break
10013 fi
10014 done
10015 if test -z "$haveit"; then
10016 rpathdirs="$rpathdirs $dir"
10017 fi
10018 haveit=
10019 for x in $ltrpathdirs; do
10020 if test "X$x" = "X$dir"; then
10021 haveit=yes
10022 break
10023 fi
10024 done
10025 if test -z "$haveit"; then
10026 ltrpathdirs="$ltrpathdirs $dir"
10027 fi
10028 fi
10029 ;;
10030 -l*)
10031 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10032 ;;
10033 *.la)
10034 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10035 ;;
10036 *)
10037 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10038 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10039 ;;
10040 esac
10041 done
10042 fi
10043 else
10044 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10045 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10046 fi
10047 fi
10048 fi
10049 done
10050 done
10051 if test "X$rpathdirs" != "X"; then
10052 if test -n "$hardcode_libdir_separator"; then
10053 alldirs=
10054 for found_dir in $rpathdirs; do
10055 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10056 done
10057 acl_save_libdir="$libdir"
10058 libdir="$alldirs"
10059 eval flag=\"$hardcode_libdir_flag_spec\"
10060 libdir="$acl_save_libdir"
10061 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10062 else
10063 for found_dir in $rpathdirs; do
10064 acl_save_libdir="$libdir"
10065 libdir="$found_dir"
10066 eval flag=\"$hardcode_libdir_flag_spec\"
10067 libdir="$acl_save_libdir"
10068 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10069 done
10070 fi
10071 fi
10072 if test "X$ltrpathdirs" != "X"; then
10073 for found_dir in $ltrpathdirs; do
10074 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10075 done
10076 fi
10077
10078
10079 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10080 ac_ext=cpp
10081 ac_cpp='$CXXCPP $CPPFLAGS'
10082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10085
10086
10087
10088
10089
10090
10091 am_save_CPPFLAGS="$CPPFLAGS"
10092
10093 for element in $INCICONV; do
10094 haveit=
10095 for x in $CPPFLAGS; do
10096
10097 acl_save_prefix="$prefix"
10098 prefix="$acl_final_prefix"
10099 acl_save_exec_prefix="$exec_prefix"
10100 exec_prefix="$acl_final_exec_prefix"
10101 eval x=\"$x\"
10102 exec_prefix="$acl_save_exec_prefix"
10103 prefix="$acl_save_prefix"
10104
10105 if test "X$x" = "X$element"; then
10106 haveit=yes
10107 break
10108 fi
10109 done
10110 if test -z "$haveit"; then
10111 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10112 fi
10113 done
10114
10115
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10117 $as_echo_n "checking for iconv... " >&6; }
10118 if test "${am_cv_func_iconv+set}" = set; then :
10119 $as_echo_n "(cached) " >&6
10120 else
10121
10122 am_cv_func_iconv="no, consider installing GNU libiconv"
10123 am_cv_lib_iconv=no
10124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10125 /* end confdefs.h. */
10126 #include <stdlib.h>
10127 #include <iconv.h>
10128 int
10129 main ()
10130 {
10131 iconv_t cd = iconv_open("","");
10132 iconv(cd,NULL,NULL,NULL,NULL);
10133 iconv_close(cd);
10134 ;
10135 return 0;
10136 }
10137 _ACEOF
10138 if ac_fn_cxx_try_link "$LINENO"; then :
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 if test "$am_cv_func_iconv" != yes; then
10144 am_save_LIBS="$LIBS"
10145 LIBS="$LIBS $LIBICONV"
10146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147 /* end confdefs.h. */
10148 #include <stdlib.h>
10149 #include <iconv.h>
10150 int
10151 main ()
10152 {
10153 iconv_t cd = iconv_open("","");
10154 iconv(cd,NULL,NULL,NULL,NULL);
10155 iconv_close(cd);
10156 ;
10157 return 0;
10158 }
10159 _ACEOF
10160 if ac_fn_cxx_try_link "$LINENO"; then :
10161 am_cv_lib_iconv=yes
10162 am_cv_func_iconv=yes
10163 fi
10164 rm -f core conftest.err conftest.$ac_objext \
10165 conftest$ac_exeext conftest.$ac_ext
10166 LIBS="$am_save_LIBS"
10167 fi
10168
10169 fi
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10171 $as_echo "$am_cv_func_iconv" >&6; }
10172 if test "$am_cv_func_iconv" = yes; then
10173
10174 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10175
10176 fi
10177 if test "$am_cv_lib_iconv" = yes; then
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10179 $as_echo_n "checking how to link with libiconv... " >&6; }
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10181 $as_echo "$LIBICONV" >&6; }
10182 else
10183 CPPFLAGS="$am_save_CPPFLAGS"
10184 LIBICONV=
10185 LTLIBICONV=
10186 fi
10187
10188
10189
10190 if test "$am_cv_func_iconv" = yes; then
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10192 $as_echo_n "checking for iconv declaration... " >&6; }
10193 if test "${am_cv_proto_iconv+set}" = set; then :
10194 $as_echo_n "(cached) " >&6
10195 else
10196
10197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198 /* end confdefs.h. */
10199
10200 #include <stdlib.h>
10201 #include <iconv.h>
10202 extern
10203 #ifdef __cplusplus
10204 "C"
10205 #endif
10206 #if defined(__STDC__) || defined(__cplusplus)
10207 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10208 #else
10209 size_t iconv();
10210 #endif
10211
10212 int
10213 main ()
10214 {
10215
10216 ;
10217 return 0;
10218 }
10219 _ACEOF
10220 if ac_fn_cxx_try_compile "$LINENO"; then :
10221 am_cv_proto_iconv_arg1=""
10222 else
10223 am_cv_proto_iconv_arg1="const"
10224 fi
10225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10226 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10227 fi
10228
10229 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10231 }$am_cv_proto_iconv" >&5
10232 $as_echo "${ac_t:-
10233 }$am_cv_proto_iconv" >&6; }
10234
10235 cat >>confdefs.h <<_ACEOF
10236 #define ICONV_CONST $am_cv_proto_iconv_arg1
10237 _ACEOF
10238
10239 fi
10240
10241 ac_ext=c
10242 ac_cpp='$CPP $CPPFLAGS'
10243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10246
10247 else
10248
10249
10250
10251
10252
10253 am_save_CPPFLAGS="$CPPFLAGS"
10254
10255 for element in $INCICONV; do
10256 haveit=
10257 for x in $CPPFLAGS; do
10258
10259 acl_save_prefix="$prefix"
10260 prefix="$acl_final_prefix"
10261 acl_save_exec_prefix="$exec_prefix"
10262 exec_prefix="$acl_final_exec_prefix"
10263 eval x=\"$x\"
10264 exec_prefix="$acl_save_exec_prefix"
10265 prefix="$acl_save_prefix"
10266
10267 if test "X$x" = "X$element"; then
10268 haveit=yes
10269 break
10270 fi
10271 done
10272 if test -z "$haveit"; then
10273 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10274 fi
10275 done
10276
10277
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10279 $as_echo_n "checking for iconv... " >&6; }
10280 if test "${am_cv_func_iconv+set}" = set; then :
10281 $as_echo_n "(cached) " >&6
10282 else
10283
10284 am_cv_func_iconv="no, consider installing GNU libiconv"
10285 am_cv_lib_iconv=no
10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287 /* end confdefs.h. */
10288 #include <stdlib.h>
10289 #include <iconv.h>
10290 int
10291 main ()
10292 {
10293 iconv_t cd = iconv_open("","");
10294 iconv(cd,NULL,NULL,NULL,NULL);
10295 iconv_close(cd);
10296 ;
10297 return 0;
10298 }
10299 _ACEOF
10300 if ac_fn_c_try_link "$LINENO"; then :
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 if test "$am_cv_func_iconv" != yes; then
10306 am_save_LIBS="$LIBS"
10307 LIBS="$LIBS $LIBICONV"
10308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10309 /* end confdefs.h. */
10310 #include <stdlib.h>
10311 #include <iconv.h>
10312 int
10313 main ()
10314 {
10315 iconv_t cd = iconv_open("","");
10316 iconv(cd,NULL,NULL,NULL,NULL);
10317 iconv_close(cd);
10318 ;
10319 return 0;
10320 }
10321 _ACEOF
10322 if ac_fn_c_try_link "$LINENO"; then :
10323 am_cv_lib_iconv=yes
10324 am_cv_func_iconv=yes
10325 fi
10326 rm -f core conftest.err conftest.$ac_objext \
10327 conftest$ac_exeext conftest.$ac_ext
10328 LIBS="$am_save_LIBS"
10329 fi
10330
10331 fi
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10333 $as_echo "$am_cv_func_iconv" >&6; }
10334 if test "$am_cv_func_iconv" = yes; then
10335
10336 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10337
10338 fi
10339 if test "$am_cv_lib_iconv" = yes; then
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10341 $as_echo_n "checking how to link with libiconv... " >&6; }
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10343 $as_echo "$LIBICONV" >&6; }
10344 else
10345 CPPFLAGS="$am_save_CPPFLAGS"
10346 LIBICONV=
10347 LTLIBICONV=
10348 fi
10349
10350
10351
10352 if test "$am_cv_func_iconv" = yes; then
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10354 $as_echo_n "checking for iconv declaration... " >&6; }
10355 if test "${am_cv_proto_iconv+set}" = set; then :
10356 $as_echo_n "(cached) " >&6
10357 else
10358
10359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10360 /* end confdefs.h. */
10361
10362 #include <stdlib.h>
10363 #include <iconv.h>
10364 extern
10365 #ifdef __cplusplus
10366 "C"
10367 #endif
10368 #if defined(__STDC__) || defined(__cplusplus)
10369 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10370 #else
10371 size_t iconv();
10372 #endif
10373
10374 int
10375 main ()
10376 {
10377
10378 ;
10379 return 0;
10380 }
10381 _ACEOF
10382 if ac_fn_c_try_compile "$LINENO"; then :
10383 am_cv_proto_iconv_arg1=""
10384 else
10385 am_cv_proto_iconv_arg1="const"
10386 fi
10387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10388 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);"
10389 fi
10390
10391 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10393 }$am_cv_proto_iconv" >&5
10394 $as_echo "${ac_t:-
10395 }$am_cv_proto_iconv" >&6; }
10396
10397 cat >>confdefs.h <<_ACEOF
10398 #define ICONV_CONST $am_cv_proto_iconv_arg1
10399 _ACEOF
10400
10401 fi
10402
10403 fi
10404
10405 # Until we have in-tree GNU iconv:
10406 LIBICONV_DEP=
10407
10408
10409
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10411 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10412 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10413 $as_echo_n "(cached) " >&6
10414 else
10415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416 /* end confdefs.h. */
10417 #include <locale.h>
10418 int
10419 main ()
10420 {
10421 return LC_MESSAGES
10422 ;
10423 return 0;
10424 }
10425 _ACEOF
10426 if ac_fn_c_try_link "$LINENO"; then :
10427 am_cv_val_LC_MESSAGES=yes
10428 else
10429 am_cv_val_LC_MESSAGES=no
10430 fi
10431 rm -f core conftest.err conftest.$ac_objext \
10432 conftest$ac_exeext conftest.$ac_ext
10433 fi
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10435 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10436 if test $am_cv_val_LC_MESSAGES = yes; then
10437
10438 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10439
10440 fi
10441
10442
10443
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10445 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10446 if test "${am_cv_langinfo_codeset+set}" = set; then :
10447 $as_echo_n "(cached) " >&6
10448 else
10449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10450 /* end confdefs.h. */
10451 #include <langinfo.h>
10452 int
10453 main ()
10454 {
10455 char* cs = nl_langinfo(CODESET);
10456 ;
10457 return 0;
10458 }
10459 _ACEOF
10460 if ac_fn_c_try_link "$LINENO"; then :
10461 am_cv_langinfo_codeset=yes
10462 else
10463 am_cv_langinfo_codeset=no
10464 fi
10465 rm -f core conftest.err conftest.$ac_objext \
10466 conftest$ac_exeext conftest.$ac_ext
10467
10468 fi
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10470 $as_echo "$am_cv_langinfo_codeset" >&6; }
10471 if test $am_cv_langinfo_codeset = yes; then
10472
10473 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10474
10475 fi
10476
10477
10478 # We will need to find libiberty.h and ansidecl.h
10479 saved_CFLAGS="$CFLAGS"
10480 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10481 saved_CXXFLAGS="$CXXFLAGS"
10482 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10483 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10484 strsignal strstr stpcpy strverscmp \
10485 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10486 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
10487 do
10488 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10490 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10491 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10492 $as_echo_n "(cached) " >&6
10493 else
10494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10495 /* end confdefs.h. */
10496 #undef $ac_tr_decl
10497 #define $ac_tr_decl 1
10498
10499 #include "ansidecl.h"
10500 #include "system.h"
10501
10502 int
10503 main ()
10504 {
10505 #ifndef $ac_func
10506 char *(*pfn) = (char *(*)) $ac_func ;
10507 #endif
10508 ;
10509 return 0;
10510 }
10511 _ACEOF
10512 if ac_fn_c_try_compile "$LINENO"; then :
10513 eval "gcc_cv_have_decl_$ac_func=yes"
10514 else
10515 eval "gcc_cv_have_decl_$ac_func=no"
10516 fi
10517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10518 fi
10519
10520 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10522 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10523 #define $ac_tr_decl 1
10524 _ACEOF
10525
10526 else
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10528 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10529 #define $ac_tr_decl 0
10530 _ACEOF
10531
10532 fi
10533
10534 done
10535
10536
10537 for ac_func in getrlimit setrlimit getrusage
10538 do
10539 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10541 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10542 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10543 $as_echo_n "(cached) " >&6
10544 else
10545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10546 /* end confdefs.h. */
10547 #undef $ac_tr_decl
10548 #define $ac_tr_decl 1
10549
10550 #include "ansidecl.h"
10551 #include "system.h"
10552 #ifdef HAVE_SYS_RESOURCE_H
10553 #include <sys/resource.h>
10554 #endif
10555
10556
10557 int
10558 main ()
10559 {
10560 #ifndef $ac_func
10561 char *(*pfn) = (char *(*)) $ac_func ;
10562 #endif
10563 ;
10564 return 0;
10565 }
10566 _ACEOF
10567 if ac_fn_c_try_compile "$LINENO"; then :
10568 eval "gcc_cv_have_decl_$ac_func=yes"
10569 else
10570 eval "gcc_cv_have_decl_$ac_func=no"
10571 fi
10572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10573 fi
10574
10575 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10577 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10578 #define $ac_tr_decl 1
10579 _ACEOF
10580
10581 else
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10584 #define $ac_tr_decl 0
10585 _ACEOF
10586
10587 fi
10588
10589 done
10590
10591
10592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10593 /* end confdefs.h. */
10594
10595 #include "ansidecl.h"
10596 #include "system.h"
10597 #ifdef HAVE_SYS_RESOURCE_H
10598 #include <sys/resource.h>
10599 #endif
10600
10601 int
10602 main ()
10603 {
10604 rlim_t l = 0;
10605 ;
10606 return 0;
10607 }
10608 _ACEOF
10609 if ac_fn_c_try_compile "$LINENO"; then :
10610
10611 else
10612
10613 $as_echo "#define rlim_t long" >>confdefs.h
10614
10615 fi
10616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10617
10618 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10619 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10620 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10621 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10622 for ac_func in ldgetname
10623 do
10624 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10626 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10627 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10628 $as_echo_n "(cached) " >&6
10629 else
10630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10631 /* end confdefs.h. */
10632 #undef $ac_tr_decl
10633 #define $ac_tr_decl 1
10634
10635 #include "ansidecl.h"
10636 #include "system.h"
10637 #ifdef HAVE_LDFCN_H
10638 #undef FREAD
10639 #undef FWRITE
10640 #include <ldfcn.h>
10641 #endif
10642
10643
10644 int
10645 main ()
10646 {
10647 #ifndef $ac_func
10648 char *(*pfn) = (char *(*)) $ac_func ;
10649 #endif
10650 ;
10651 return 0;
10652 }
10653 _ACEOF
10654 if ac_fn_c_try_compile "$LINENO"; then :
10655 eval "gcc_cv_have_decl_$ac_func=yes"
10656 else
10657 eval "gcc_cv_have_decl_$ac_func=no"
10658 fi
10659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10660 fi
10661
10662 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10664 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10665 #define $ac_tr_decl 1
10666 _ACEOF
10667
10668 else
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10670 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10671 #define $ac_tr_decl 0
10672 _ACEOF
10673
10674 fi
10675
10676 done
10677
10678
10679 for ac_func in times
10680 do
10681 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10683 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10684 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10685 $as_echo_n "(cached) " >&6
10686 else
10687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10688 /* end confdefs.h. */
10689 #undef $ac_tr_decl
10690 #define $ac_tr_decl 1
10691
10692 #include "ansidecl.h"
10693 #include "system.h"
10694 #ifdef HAVE_SYS_TIMES_H
10695 #include <sys/times.h>
10696 #endif
10697
10698
10699 int
10700 main ()
10701 {
10702 #ifndef $ac_func
10703 char *(*pfn) = (char *(*)) $ac_func ;
10704 #endif
10705 ;
10706 return 0;
10707 }
10708 _ACEOF
10709 if ac_fn_c_try_compile "$LINENO"; then :
10710 eval "gcc_cv_have_decl_$ac_func=yes"
10711 else
10712 eval "gcc_cv_have_decl_$ac_func=no"
10713 fi
10714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10715 fi
10716
10717 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10719 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10720 #define $ac_tr_decl 1
10721 _ACEOF
10722
10723 else
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10725 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10726 #define $ac_tr_decl 0
10727 _ACEOF
10728
10729 fi
10730
10731 done
10732
10733
10734 for ac_func in sigaltstack
10735 do
10736 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10738 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10739 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10740 $as_echo_n "(cached) " >&6
10741 else
10742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10744 #undef $ac_tr_decl
10745 #define $ac_tr_decl 1
10746
10747 #include "ansidecl.h"
10748 #include "system.h"
10749 #include <signal.h>
10750
10751
10752 int
10753 main ()
10754 {
10755 #ifndef $ac_func
10756 char *(*pfn) = (char *(*)) $ac_func ;
10757 #endif
10758 ;
10759 return 0;
10760 }
10761 _ACEOF
10762 if ac_fn_c_try_compile "$LINENO"; then :
10763 eval "gcc_cv_have_decl_$ac_func=yes"
10764 else
10765 eval "gcc_cv_have_decl_$ac_func=no"
10766 fi
10767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10768 fi
10769
10770 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10772 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10773 #define $ac_tr_decl 1
10774 _ACEOF
10775
10776 else
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10778 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10779 #define $ac_tr_decl 0
10780 _ACEOF
10781
10782 fi
10783
10784 done
10785
10786
10787 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10788 # prototype.
10789 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10790 ac_ext=cpp
10791 ac_cpp='$CXXCPP $CPPFLAGS'
10792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10795
10796 for ac_func in madvise
10797 do
10798 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10800 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10801 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10802 $as_echo_n "(cached) " >&6
10803 else
10804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805 /* end confdefs.h. */
10806 #undef $ac_tr_decl
10807 #define $ac_tr_decl 1
10808
10809 #include "ansidecl.h"
10810 #include "system.h"
10811
10812
10813 int
10814 main ()
10815 {
10816 #ifndef $ac_func
10817 char *(*pfn) = (char *(*)) $ac_func ;
10818 #endif
10819 ;
10820 return 0;
10821 }
10822 _ACEOF
10823 if ac_fn_cxx_try_compile "$LINENO"; then :
10824 eval "gcc_cv_have_decl_$ac_func=yes"
10825 else
10826 eval "gcc_cv_have_decl_$ac_func=no"
10827 fi
10828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10829 fi
10830
10831 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10833 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10834 #define $ac_tr_decl 1
10835 _ACEOF
10836
10837 else
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10839 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10840 #define $ac_tr_decl 0
10841 _ACEOF
10842
10843 fi
10844
10845 done
10846
10847 ac_ext=c
10848 ac_cpp='$CPP $CPPFLAGS'
10849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10852
10853 else
10854 for ac_func in madvise
10855 do
10856 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10858 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10859 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10860 $as_echo_n "(cached) " >&6
10861 else
10862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10863 /* end confdefs.h. */
10864 #undef $ac_tr_decl
10865 #define $ac_tr_decl 1
10866
10867 #include "ansidecl.h"
10868 #include "system.h"
10869
10870
10871 int
10872 main ()
10873 {
10874 #ifndef $ac_func
10875 char *(*pfn) = (char *(*)) $ac_func ;
10876 #endif
10877 ;
10878 return 0;
10879 }
10880 _ACEOF
10881 if ac_fn_c_try_compile "$LINENO"; then :
10882 eval "gcc_cv_have_decl_$ac_func=yes"
10883 else
10884 eval "gcc_cv_have_decl_$ac_func=no"
10885 fi
10886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10887 fi
10888
10889 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10891 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10892 #define $ac_tr_decl 1
10893 _ACEOF
10894
10895 else
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10897 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10898 #define $ac_tr_decl 0
10899 _ACEOF
10900
10901 fi
10902
10903 done
10904
10905
10906 fi
10907
10908 # More time-related stuff.
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10910 $as_echo_n "checking for struct tms... " >&6; }
10911 if test "${ac_cv_struct_tms+set}" = set; then :
10912 $as_echo_n "(cached) " >&6
10913 else
10914
10915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10916 /* end confdefs.h. */
10917
10918 #include "ansidecl.h"
10919 #include "system.h"
10920 #ifdef HAVE_SYS_TIMES_H
10921 #include <sys/times.h>
10922 #endif
10923
10924 int
10925 main ()
10926 {
10927 struct tms tms;
10928 ;
10929 return 0;
10930 }
10931 _ACEOF
10932 if ac_fn_c_try_compile "$LINENO"; then :
10933 ac_cv_struct_tms=yes
10934 else
10935 ac_cv_struct_tms=no
10936 fi
10937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10938 fi
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10940 $as_echo "$ac_cv_struct_tms" >&6; }
10941 if test $ac_cv_struct_tms = yes; then
10942
10943 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10944
10945 fi
10946
10947 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10948 # revisit after autoconf 2.50.
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10950 $as_echo_n "checking for clock_t... " >&6; }
10951 if test "${gcc_cv_type_clock_t+set}" = set; then :
10952 $as_echo_n "(cached) " >&6
10953 else
10954
10955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10956 /* end confdefs.h. */
10957
10958 #include "ansidecl.h"
10959 #include "system.h"
10960
10961 int
10962 main ()
10963 {
10964 clock_t x;
10965 ;
10966 return 0;
10967 }
10968 _ACEOF
10969 if ac_fn_c_try_compile "$LINENO"; then :
10970 gcc_cv_type_clock_t=yes
10971 else
10972 gcc_cv_type_clock_t=no
10973 fi
10974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10975 fi
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10977 $as_echo "$gcc_cv_type_clock_t" >&6; }
10978 if test $gcc_cv_type_clock_t = yes; then
10979
10980 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10981
10982 fi
10983
10984 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10985 CFLAGS="$saved_CFLAGS"
10986 CXXFLAGS="$saved_CXXFLAGS"
10987
10988 # mkdir takes a single argument on some systems.
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10990 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10991 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10992 $as_echo_n "(cached) " >&6
10993 else
10994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10995 /* end confdefs.h. */
10996
10997 #include <sys/types.h>
10998 #ifdef HAVE_SYS_STAT_H
10999 # include <sys/stat.h>
11000 #endif
11001 #ifdef HAVE_UNISTD_H
11002 # include <unistd.h>
11003 #endif
11004 #ifdef HAVE_DIRECT_H
11005 # include <direct.h>
11006 #endif
11007 int
11008 main ()
11009 {
11010 mkdir ("foo", 0);
11011 ;
11012 return 0;
11013 }
11014 _ACEOF
11015 if ac_fn_c_try_compile "$LINENO"; then :
11016 gcc_cv_mkdir_takes_one_arg=no
11017 else
11018 gcc_cv_mkdir_takes_one_arg=yes
11019 fi
11020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11021 fi
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11023 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11024 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11025
11026 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11027
11028 fi
11029
11030
11031 # File extensions
11032 manext='.1'
11033 objext='.o'
11034
11035
11036
11037 # With Setjmp/Longjmp based exception handling.
11038 # Check whether --enable-sjlj-exceptions was given.
11039 if test "${enable_sjlj_exceptions+set}" = set; then :
11040 enableval=$enable_sjlj_exceptions; case $target in
11041 *-*-hpux10*)
11042 if test $enableval != yes; then
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11044 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11045 enableval=yes
11046 fi
11047 ;;
11048 esac
11049 force_sjlj_exceptions=yes
11050 else
11051 case $target in
11052 *-*-hpux10*)
11053 force_sjlj_exceptions=yes
11054 enableval=yes
11055 ;;
11056 *)
11057 force_sjlj_exceptions=no
11058 ;;
11059 esac
11060 fi
11061
11062 if test $force_sjlj_exceptions = yes; then
11063 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11064
11065 cat >>confdefs.h <<_ACEOF
11066 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11067 _ACEOF
11068
11069 fi
11070
11071 # --------------------------------------------------------
11072 # Build, host, and target specific configuration fragments
11073 # --------------------------------------------------------
11074
11075 # Collect build-machine-specific information.
11076 . ${srcdir}/config.build
11077
11078 # Collect host-machine-specific information.
11079 . ${srcdir}/config.host
11080
11081 target_gtfiles=
11082
11083 # Collect target-machine-specific information.
11084 . ${srcdir}/config.gcc
11085
11086 extra_objs="${host_extra_objs} ${extra_objs}"
11087 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11088
11089 # Default the target-machine variables that were not explicitly set.
11090 if test x"$tm_file" = x
11091 then tm_file=$cpu_type/$cpu_type.h; fi
11092
11093 if test x"$extra_headers" = x
11094 then extra_headers=; fi
11095
11096 if test x$md_file = x
11097 then md_file=$cpu_type/$cpu_type.md; fi
11098
11099 if test x$out_file = x
11100 then out_file=$cpu_type/$cpu_type.c; fi
11101
11102 if test x"$tmake_file" = x
11103 then tmake_file=$cpu_type/t-$cpu_type
11104 fi
11105
11106 # Support --enable-initfini-array.
11107 if test x$enable_initfini_array != xno; then
11108 tm_file="${tm_file} initfini-array.h"
11109 fi
11110
11111 if test x"$dwarf2" = xyes
11112 then tm_file="$tm_file tm-dwarf2.h"
11113 fi
11114
11115 # Say what files are being used for the output code and MD file.
11116 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11117 echo "Using \`$srcdir/config/$md_file' as machine description file."
11118
11119 # If any of the xm_file variables contain nonexistent files, warn
11120 # about them and drop them.
11121
11122 bx=
11123 for x in $build_xm_file; do
11124 if test -f $srcdir/config/$x
11125 then bx="$bx $x"
11126 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11127 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11128 fi
11129 done
11130 build_xm_file="$bx"
11131
11132 hx=
11133 for x in $host_xm_file; do
11134 if test -f $srcdir/config/$x
11135 then hx="$hx $x"
11136 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11137 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11138 fi
11139 done
11140 host_xm_file="$hx"
11141
11142 tx=
11143 for x in $xm_file; do
11144 if test -f $srcdir/config/$x
11145 then tx="$tx $x"
11146 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11147 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11148 fi
11149 done
11150 xm_file="$tx"
11151
11152 count=a
11153 for f in $tm_file; do
11154 count=${count}x
11155 done
11156 if test $count = ax; then
11157 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11158 else
11159 echo "Using the following target machine macro files:"
11160 for f in $tm_file; do
11161 echo " $srcdir/config/$f"
11162 done
11163 fi
11164
11165 if test x$need_64bit_hwint = xyes; then
11166
11167 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11168
11169 fi
11170
11171 if test x$use_long_long_for_widest_fast_int = xyes; then
11172
11173 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11174
11175 fi
11176
11177 count=a
11178 for f in $host_xm_file; do
11179 count=${count}x
11180 done
11181 if test $count = a; then
11182 :
11183 elif test $count = ax; then
11184 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11185 else
11186 echo "Using the following host machine macro files:"
11187 for f in $host_xm_file; do
11188 echo " $srcdir/config/$f"
11189 done
11190 fi
11191 echo "Using ${out_host_hook_obj} for host machine hooks."
11192
11193 if test "$host_xm_file" != "$build_xm_file"; then
11194 count=a
11195 for f in $build_xm_file; do
11196 count=${count}x
11197 done
11198 if test $count = a; then
11199 :
11200 elif test $count = ax; then
11201 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11202 else
11203 echo "Using the following build machine macro files:"
11204 for f in $build_xm_file; do
11205 echo " $srcdir/config/$f"
11206 done
11207 fi
11208 fi
11209
11210 if test -n "$configured_native_system_header_dir"; then
11211 native_system_header_dir=$configured_native_system_header_dir
11212 fi
11213 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11214
11215
11216 case ${host} in
11217 powerpc*-*-darwin*)
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11219 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11220 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11221 $as_echo_n "(cached) " >&6
11222 else
11223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11224 /* end confdefs.h. */
11225
11226 #include <sys/cdefs.h>
11227 #include <sys/signal.h>
11228 #include <ucontext.h>
11229 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11230
11231 _ACEOF
11232 if ac_fn_c_try_compile "$LINENO"; then :
11233 gcc_cv_mcontext_underscores=no
11234 else
11235 gcc_cv_mcontext_underscores=yes
11236 fi
11237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11238 fi
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11240 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11241 if test $gcc_cv_mcontext_underscores = yes; then
11242
11243 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11244
11245 fi
11246 ;;
11247 esac
11248
11249 # ---------
11250 # Threading
11251 # ---------
11252
11253 # Check if a valid thread package
11254 case ${enable_threads} in
11255 "" | no)
11256 # No threads
11257 target_thread_file='single'
11258 ;;
11259 yes)
11260 # default
11261 target_thread_file='single'
11262 ;;
11263 aix | dce | lynx | mipssde | posix | rtems | \
11264 single | tpf | vxworks | win32)
11265 target_thread_file=${enable_threads}
11266 ;;
11267 *)
11268 echo "${enable_threads} is an unknown thread package" 1>&2
11269 exit 1
11270 ;;
11271 esac
11272
11273 if test x${thread_file} = x; then
11274 # No thread file set by target-specific clauses in config.gcc,
11275 # so use file chosen by default logic above
11276 thread_file=${target_thread_file}
11277 fi
11278
11279 # --------
11280 # UNSORTED
11281 # --------
11282
11283 use_cxa_atexit=no
11284 if test x$enable___cxa_atexit = xyes || \
11285 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11286 if test x$host = x$target; then
11287 case $host in
11288 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11289 # keyed to flag_use_cxa_atexit
11290 *-*-mingw32*)
11291 use_cxa_atexit=yes
11292 ;;
11293 *)
11294 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11295 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11296 use_cxa_atexit=yes
11297 else
11298 echo "__cxa_atexit can't be enabled on this target"
11299 fi
11300
11301 ;;
11302 esac
11303 else
11304 # We can't check for __cxa_atexit when building a cross, so assume
11305 # it is available
11306 use_cxa_atexit=yes
11307 fi
11308 if test x$use_cxa_atexit = xyes; then
11309
11310 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11311
11312 fi
11313 fi
11314
11315 # Look for a file containing extra machine modes.
11316 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11317 extra_modes_file='$(srcdir)'/config/${extra_modes}
11318
11319
11320 cat >>confdefs.h <<_ACEOF
11321 #define EXTRA_MODES_FILE "config/$extra_modes"
11322 _ACEOF
11323
11324 fi
11325
11326 # Convert extra_options into a form suitable for Makefile use.
11327 extra_opt_files=
11328 all_opt_files=
11329 for f in $extra_options; do
11330 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11331 all_opt_files="$all_opt_files $srcdir/config/$f"
11332 done
11333
11334
11335 # auto-host.h is the file containing items generated by autoconf and is
11336 # the first file included by config.h.
11337 # If host=build, it is correct to have bconfig include auto-host.h
11338 # as well. If host!=build, we are in error and need to do more
11339 # work to find out the build config parameters.
11340 if test x$host = x$build
11341 then
11342 build_auto=auto-host.h
11343 else
11344 # We create a subdir, then run autoconf in the subdir.
11345 # To prevent recursion we set host and build for the new
11346 # invocation of configure to the build for this invocation
11347 # of configure.
11348 tempdir=build.$$
11349 rm -rf $tempdir
11350 mkdir $tempdir
11351 cd $tempdir
11352 case ${srcdir} in
11353 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11354 *) realsrcdir=../${srcdir};;
11355 esac
11356 saved_CFLAGS="${CFLAGS}"
11357 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11358 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11359 ${realsrcdir}/configure \
11360 --enable-languages=${enable_languages-all} \
11361 --target=$target_alias --host=$build_alias --build=$build_alias
11362 CFLAGS="${saved_CFLAGS}"
11363
11364 # We just finished tests for the build machine, so rename
11365 # the file auto-build.h in the gcc directory.
11366 mv auto-host.h ../auto-build.h
11367 cd ..
11368 rm -rf $tempdir
11369 build_auto=auto-build.h
11370 fi
11371
11372
11373 tm_file="${tm_file} defaults.h"
11374 tm_p_file="${tm_p_file} tm-preds.h"
11375 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11376 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11377 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11378 # put this back in temporarily.
11379 xm_file="auto-host.h ansidecl.h ${xm_file}"
11380
11381 # --------
11382 # UNSORTED
11383 # --------
11384
11385 # Compile in configure arguments.
11386 if test -f configargs.h ; then
11387 # Being re-configured.
11388 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11389 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11390 else
11391 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11392 fi
11393
11394 # Double all backslashes and backslash all quotes to turn
11395 # gcc_config_arguments into a C string.
11396 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11397 $gcc_config_arguments
11398 EOF
11399 gcc_config_arguments_str=`cat conftest.out`
11400 rm -f conftest.out
11401
11402 cat > configargs.h <<EOF
11403 /* Generated automatically. */
11404 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11405 static const char thread_model[] = "$thread_file";
11406
11407 static const struct {
11408 const char *name, *value;
11409 } configure_default_options[] = $configure_default_options;
11410 EOF
11411
11412 gcc_BASEVER=`cat $srcdir/BASE-VER`
11413 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11414 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11415 if test -f $srcdir/REVISION ; then
11416 gcc_REVISION=`cat $srcdir/REVISION`
11417 else
11418 gcc_REVISION=""
11419 fi
11420 cat > plugin-version.h <<EOF
11421 #include "configargs.h"
11422
11423 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11424 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11425 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11426 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11427
11428 static char basever[] = "$gcc_BASEVER";
11429 static char datestamp[] = "$gcc_DATESTAMP";
11430 static char devphase[] = "$gcc_DEVPHASE";
11431 static char revision[] = "$gcc_REVISION";
11432
11433 /* FIXME plugins: We should make the version information more precise.
11434 One way to do is to add a checksum. */
11435
11436 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11437 devphase, revision,
11438 configuration_arguments};
11439 EOF
11440
11441 # Internationalization
11442 # If we haven't got the data from the intl directory,
11443 # assume NLS is disabled.
11444 USE_NLS=no
11445 LIBINTL=
11446 LIBINTL_DEP=
11447 INCINTL=
11448 XGETTEXT=
11449 GMSGFMT=
11450 POSUB=
11451
11452 if test -f ../intl/config.intl; then
11453 . ../intl/config.intl
11454 fi
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11456 $as_echo_n "checking whether NLS is requested... " >&6; }
11457 if test x"$USE_NLS" != xyes; then
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11459 $as_echo "no" >&6; }
11460 else
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11462 $as_echo "yes" >&6; }
11463
11464 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11465
11466
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11468 $as_echo_n "checking for catalogs to be installed... " >&6; }
11469 # Look for .po and .gmo files in the source directory.
11470 CATALOGS=
11471 XLINGUAS=
11472 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11473 # If there aren't any .gmo files the shell will give us the
11474 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11475 # weeded out.
11476 case "$cat" in *\**)
11477 continue;;
11478 esac
11479 # The quadruple backslash is collapsed to a double backslash
11480 # by the backticks, then collapsed again by the double quotes,
11481 # leaving us with one backslash in the sed expression (right
11482 # before the dot that mustn't act as a wildcard).
11483 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11484 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11485 # The user is allowed to set LINGUAS to a list of languages to
11486 # install catalogs for. If it's empty that means "all of them."
11487 if test "x$LINGUAS" = x; then
11488 CATALOGS="$CATALOGS $cat"
11489 XLINGUAS="$XLINGUAS $lang"
11490 else
11491 case "$LINGUAS" in *$lang*)
11492 CATALOGS="$CATALOGS $cat"
11493 XLINGUAS="$XLINGUAS $lang"
11494 ;;
11495 esac
11496 fi
11497 done
11498 LINGUAS="$XLINGUAS"
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11500 $as_echo "$LINGUAS" >&6; }
11501
11502
11503 DATADIRNAME=share
11504
11505 INSTOBJEXT=.mo
11506
11507 GENCAT=gencat
11508
11509 CATOBJEXT=.gmo
11510
11511 fi
11512
11513 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11514 # -liconv on the link line twice.
11515 case "$LIBINTL" in *$LIBICONV*)
11516 LIBICONV= ;;
11517 esac
11518
11519 # Check whether --enable-secureplt was given.
11520 if test "${enable_secureplt+set}" = set; then :
11521 enableval=$enable_secureplt;
11522 fi
11523
11524
11525 # Check whether --enable-leading-mingw64-underscores was given.
11526 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11527 enableval=$enable_leading_mingw64_underscores;
11528 fi
11529
11530 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11531
11532 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11533
11534 fi
11535
11536 # Check whether --enable-cld was given.
11537 if test "${enable_cld+set}" = set; then :
11538 enableval=$enable_cld;
11539 else
11540 enable_cld=no
11541 fi
11542
11543
11544 # Check whether --enable-frame-pointer was given.
11545 if test "${enable_frame_pointer+set}" = set; then :
11546 enableval=$enable_frame_pointer;
11547 else
11548
11549 case $target_os in
11550 linux* | darwin[8912]*)
11551 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11552 # DWARF2.
11553 enable_frame_pointer=no
11554 ;;
11555 *)
11556 enable_frame_pointer=yes
11557 ;;
11558 esac
11559
11560 fi
11561
11562
11563 # Windows32 Registry support for specifying GCC installation paths.
11564 # Check whether --enable-win32-registry was given.
11565 if test "${enable_win32_registry+set}" = set; then :
11566 enableval=$enable_win32_registry;
11567 fi
11568
11569
11570 case $host_os in
11571 win32 | pe | cygwin* | mingw32* | uwin*)
11572 if test "x$enable_win32_registry" != xno; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11574 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11575 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11576 $as_echo_n "(cached) " >&6
11577 else
11578 ac_func_search_save_LIBS=$LIBS
11579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11580 /* end confdefs.h. */
11581
11582 /* Override any GCC internal prototype to avoid an error.
11583 Use char because int might match the return type of a GCC
11584 builtin and then its argument prototype would still apply. */
11585 #ifdef __cplusplus
11586 extern "C"
11587 #endif
11588 char RegOpenKeyExA ();
11589 int
11590 main ()
11591 {
11592 return RegOpenKeyExA ();
11593 ;
11594 return 0;
11595 }
11596 _ACEOF
11597 for ac_lib in '' advapi32; do
11598 if test -z "$ac_lib"; then
11599 ac_res="none required"
11600 else
11601 ac_res=-l$ac_lib
11602 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11603 fi
11604 if ac_fn_c_try_link "$LINENO"; then :
11605 ac_cv_search_RegOpenKeyExA=$ac_res
11606 fi
11607 rm -f core conftest.err conftest.$ac_objext \
11608 conftest$ac_exeext
11609 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11610 break
11611 fi
11612 done
11613 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11614
11615 else
11616 ac_cv_search_RegOpenKeyExA=no
11617 fi
11618 rm conftest.$ac_ext
11619 LIBS=$ac_func_search_save_LIBS
11620 fi
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11622 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11623 ac_res=$ac_cv_search_RegOpenKeyExA
11624 if test "$ac_res" != no; then :
11625 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11626
11627 else
11628 enable_win32_registry=no
11629 fi
11630
11631 fi
11632
11633 if test "x$enable_win32_registry" != xno; then
11634
11635 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11636
11637
11638 if test "x$enable_win32_registry" != xyes \
11639 && test "x$enable_win32_registry" != x; then
11640
11641 cat >>confdefs.h <<_ACEOF
11642 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11643 _ACEOF
11644
11645 fi
11646 fi
11647 ;;
11648 esac
11649
11650 # Get an absolute path to the GCC top-level source directory
11651 holddir=`${PWDCMD-pwd}`
11652 cd $srcdir
11653 topdir=`${PWDCMD-pwd}`
11654 cd $holddir
11655
11656 # Conditionalize the makefile for this host machine.
11657 xmake_file=
11658 for f in ${host_xmake_file}
11659 do
11660 if test -f ${srcdir}/config/$f
11661 then
11662 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11663 fi
11664 done
11665
11666 # Conditionalize the makefile for this target machine.
11667 tmake_file_=
11668 for f in ${tmake_file}
11669 do
11670 if test -f ${srcdir}/config/$f
11671 then
11672 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11673 fi
11674 done
11675 tmake_file="${tmake_file_}"
11676
11677 out_object_file=`basename $out_file .c`.o
11678 common_out_object_file=`basename $common_out_file .c`.o
11679
11680 tm_file_list="options.h"
11681 tm_include_list="options.h insn-constants.h"
11682 for f in $tm_file; do
11683 case $f in
11684 ./* )
11685 f=`echo $f | sed 's/^..//'`
11686 tm_file_list="${tm_file_list} $f"
11687 tm_include_list="${tm_include_list} $f"
11688 ;;
11689 defaults.h )
11690 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11691 tm_include_list="${tm_include_list} $f"
11692 ;;
11693 * )
11694 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11695 tm_include_list="${tm_include_list} config/$f"
11696 ;;
11697 esac
11698 done
11699
11700 tm_p_file_list=
11701 tm_p_include_list=
11702 for f in $tm_p_file; do
11703 case $f in
11704 tm-preds.h )
11705 tm_p_file_list="${tm_p_file_list} $f"
11706 tm_p_include_list="${tm_p_include_list} $f"
11707 ;;
11708 * )
11709 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11710 tm_p_include_list="${tm_p_include_list} config/$f"
11711 esac
11712 done
11713
11714 xm_file_list=
11715 xm_include_list=
11716 for f in $xm_file; do
11717 case $f in
11718 ansidecl.h )
11719 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11720 xm_include_list="${xm_include_list} $f"
11721 ;;
11722 auto-host.h )
11723 xm_file_list="${xm_file_list} $f"
11724 xm_include_list="${xm_include_list} $f"
11725 ;;
11726 * )
11727 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11728 xm_include_list="${xm_include_list} config/$f"
11729 ;;
11730 esac
11731 done
11732
11733 host_xm_file_list=
11734 host_xm_include_list=
11735 for f in $host_xm_file; do
11736 case $f in
11737 ansidecl.h )
11738 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11739 host_xm_include_list="${host_xm_include_list} $f"
11740 ;;
11741 auto-host.h )
11742 host_xm_file_list="${host_xm_file_list} $f"
11743 host_xm_include_list="${host_xm_include_list} $f"
11744 ;;
11745 * )
11746 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11747 host_xm_include_list="${host_xm_include_list} config/$f"
11748 ;;
11749 esac
11750 done
11751
11752 build_xm_file_list=
11753 for f in $build_xm_file; do
11754 case $f in
11755 ansidecl.h )
11756 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11757 build_xm_include_list="${build_xm_include_list} $f"
11758 ;;
11759 auto-build.h | auto-host.h )
11760 build_xm_file_list="${build_xm_file_list} $f"
11761 build_xm_include_list="${build_xm_include_list} $f"
11762 ;;
11763 * )
11764 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11765 build_xm_include_list="${build_xm_include_list} config/$f"
11766 ;;
11767 esac
11768 done
11769
11770 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11771 # cross-compiler which does not use the native headers and libraries.
11772 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11773 CROSS=
11774 ALL=all.internal
11775 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11776
11777 if test "x$with_build_sysroot" != x; then
11778 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11779 else
11780 # This value is used, even on a native system, because
11781 # CROSS_SYSTEM_HEADER_DIR is just
11782 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11783 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11784 fi
11785
11786 if test x$host != x$target
11787 then
11788 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11789 ALL=all.cross
11790 SYSTEM_HEADER_DIR=$build_system_header_dir
11791 case "$host","$target" in
11792 # Darwin crosses can use the host system's libraries and headers,
11793 # because of the fat library support. Of course, it must be the
11794 # same version of Darwin on both sides. Allow the user to
11795 # just say --target=foo-darwin without a version number to mean
11796 # "the version on this system".
11797 *-*-darwin*,*-*-darwin*)
11798 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11799 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11800 if test $hostos = $targetos -o $targetos = darwin ; then
11801 CROSS=
11802 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11803 with_headers=yes
11804 fi
11805 ;;
11806
11807 i?86-*-*,x86_64-*-* \
11808 | powerpc*-*-*,powerpc64*-*-*)
11809 CROSS="$CROSS -DNATIVE_CROSS" ;;
11810 esac
11811
11812 case $target in
11813 *-*-mingw*)
11814 if test "x$with_headers" = x; then
11815 with_headers=yes
11816 fi
11817 ;;
11818 *)
11819 ;;
11820 esac
11821 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11822 SYSTEM_HEADER_DIR=$build_system_header_dir
11823 fi
11824
11825 # If this is a cross-compiler that does not
11826 # have its own set of headers then define
11827 # inhibit_libc
11828
11829 # If this is using newlib, without having the headers available now,
11830 # then define inhibit_libc in LIBGCC2_CFLAGS.
11831 # This prevents libgcc2 from containing any code which requires libc
11832 # support.
11833 : ${inhibit_libc=false}
11834 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11835 test x$with_newlib = xyes ; } &&
11836 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11837 inhibit_libc=true
11838 fi
11839
11840
11841 # When building gcc with a cross-compiler, we need to adjust things so
11842 # that the generator programs are still built with the native compiler.
11843 # Also, we cannot run fixincludes.
11844
11845 # These are the normal (build=host) settings:
11846 CC_FOR_BUILD='$(CC)'
11847 BUILD_CFLAGS='$(ALL_CFLAGS)'
11848 BUILD_LDFLAGS='$(LDFLAGS)'
11849 STMP_FIXINC=stmp-fixinc
11850
11851 # And these apply if build != host, or we are generating coverage data
11852 if test x$build != x$host || test "x$coverage_flags" != x
11853 then
11854 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11855 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11856 fi
11857
11858 # Expand extra_headers to include complete path.
11859 # This substitutes for lots of t-* files.
11860 extra_headers_list=
11861 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11862 for file in ${extra_headers} ; do
11863 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11864 done
11865
11866 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11867 if test x"$use_gcc_tgmath" = xyes
11868 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11869 fi
11870
11871 # Define collect2 in Makefile.
11872 case $host_can_use_collect2 in
11873 no) collect2= ;;
11874 *) collect2='collect2$(exeext)' ;;
11875 esac
11876
11877
11878 # Add a definition of USE_COLLECT2 if system wants one.
11879 case $use_collect2 in
11880 no) use_collect2= ;;
11881 "") ;;
11882 *)
11883 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11884 xm_defines="${xm_defines} USE_COLLECT2"
11885 case $host_can_use_collect2 in
11886 no)
11887 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11888 ;;
11889 esac
11890 ;;
11891 esac
11892
11893
11894 cat >>confdefs.h <<_ACEOF
11895 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11896 _ACEOF
11897
11898
11899 # ---------------------------
11900 # Assembler & linker features
11901 # ---------------------------
11902
11903 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11904 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11905 # However when ld-new is first executed from the build tree, libtool will
11906 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11907 # to the build tree. While doing this we need to use the previous-stage
11908 # linker, or we have an infinite loop. The presence of a shell script as
11909 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11910 # the gcc/collect-ld script. So we need to know how libtool works, or
11911 # exec-tool will fail.
11912
11913
11914 case `pwd` in
11915 *\ * | *\ *)
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11917 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11918 esac
11919
11920
11921
11922 macro_version='2.2.7a'
11923 macro_revision='1.3134'
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937 ltmain="$ac_aux_dir/ltmain.sh"
11938
11939 # Backslashify metacharacters that are still active within
11940 # double-quoted strings.
11941 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11942
11943 # Same as above, but do not quote variable references.
11944 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11945
11946 # Sed substitution to delay expansion of an escaped shell variable in a
11947 # double_quote_subst'ed string.
11948 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11949
11950 # Sed substitution to delay expansion of an escaped single quote.
11951 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11952
11953 # Sed substitution to avoid accidental globbing in evaled expressions
11954 no_glob_subst='s/\*/\\\*/g'
11955
11956 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11957 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11958 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11959
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11961 $as_echo_n "checking how to print strings... " >&6; }
11962 # Test print first, because it will be a builtin if present.
11963 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11964 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11965 ECHO='print -r --'
11966 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11967 ECHO='printf %s\n'
11968 else
11969 # Use this function as a fallback that always works.
11970 func_fallback_echo ()
11971 {
11972 eval 'cat <<_LTECHO_EOF
11973 $1
11974 _LTECHO_EOF'
11975 }
11976 ECHO='func_fallback_echo'
11977 fi
11978
11979 # func_echo_all arg...
11980 # Invoke $ECHO with all args, space-separated.
11981 func_echo_all ()
11982 {
11983 $ECHO ""
11984 }
11985
11986 case "$ECHO" in
11987 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11988 $as_echo "printf" >&6; } ;;
11989 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11990 $as_echo "print -r" >&6; } ;;
11991 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11992 $as_echo "cat" >&6; } ;;
11993 esac
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12009 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12010 if test "${ac_cv_path_SED+set}" = set; then :
12011 $as_echo_n "(cached) " >&6
12012 else
12013 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12014 for ac_i in 1 2 3 4 5 6 7; do
12015 ac_script="$ac_script$as_nl$ac_script"
12016 done
12017 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12018 { ac_script=; unset ac_script;}
12019 if test -z "$SED"; then
12020 ac_path_SED_found=false
12021 # Loop through the user's path and test for each of PROGNAME-LIST
12022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023 for as_dir in $PATH
12024 do
12025 IFS=$as_save_IFS
12026 test -z "$as_dir" && as_dir=.
12027 for ac_prog in sed gsed; do
12028 for ac_exec_ext in '' $ac_executable_extensions; do
12029 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12030 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12031 # Check for GNU ac_path_SED and select it if it is found.
12032 # Check for GNU $ac_path_SED
12033 case `"$ac_path_SED" --version 2>&1` in
12034 *GNU*)
12035 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12036 *)
12037 ac_count=0
12038 $as_echo_n 0123456789 >"conftest.in"
12039 while :
12040 do
12041 cat "conftest.in" "conftest.in" >"conftest.tmp"
12042 mv "conftest.tmp" "conftest.in"
12043 cp "conftest.in" "conftest.nl"
12044 $as_echo '' >> "conftest.nl"
12045 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12047 as_fn_arith $ac_count + 1 && ac_count=$as_val
12048 if test $ac_count -gt ${ac_path_SED_max-0}; then
12049 # Best one so far, save it but keep looking for a better one
12050 ac_cv_path_SED="$ac_path_SED"
12051 ac_path_SED_max=$ac_count
12052 fi
12053 # 10*(2^10) chars as input seems more than enough
12054 test $ac_count -gt 10 && break
12055 done
12056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12057 esac
12058
12059 $ac_path_SED_found && break 3
12060 done
12061 done
12062 done
12063 IFS=$as_save_IFS
12064 if test -z "$ac_cv_path_SED"; then
12065 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12066 fi
12067 else
12068 ac_cv_path_SED=$SED
12069 fi
12070
12071 fi
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12073 $as_echo "$ac_cv_path_SED" >&6; }
12074 SED="$ac_cv_path_SED"
12075 rm -f conftest.sed
12076
12077 test -z "$SED" && SED=sed
12078 Xsed="$SED -e 1s/^X//"
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12091 $as_echo_n "checking for fgrep... " >&6; }
12092 if test "${ac_cv_path_FGREP+set}" = set; then :
12093 $as_echo_n "(cached) " >&6
12094 else
12095 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12096 then ac_cv_path_FGREP="$GREP -F"
12097 else
12098 if test -z "$FGREP"; then
12099 ac_path_FGREP_found=false
12100 # Loop through the user's path and test for each of PROGNAME-LIST
12101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12103 do
12104 IFS=$as_save_IFS
12105 test -z "$as_dir" && as_dir=.
12106 for ac_prog in fgrep; do
12107 for ac_exec_ext in '' $ac_executable_extensions; do
12108 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12109 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12110 # Check for GNU ac_path_FGREP and select it if it is found.
12111 # Check for GNU $ac_path_FGREP
12112 case `"$ac_path_FGREP" --version 2>&1` in
12113 *GNU*)
12114 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12115 *)
12116 ac_count=0
12117 $as_echo_n 0123456789 >"conftest.in"
12118 while :
12119 do
12120 cat "conftest.in" "conftest.in" >"conftest.tmp"
12121 mv "conftest.tmp" "conftest.in"
12122 cp "conftest.in" "conftest.nl"
12123 $as_echo 'FGREP' >> "conftest.nl"
12124 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12125 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12126 as_fn_arith $ac_count + 1 && ac_count=$as_val
12127 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12128 # Best one so far, save it but keep looking for a better one
12129 ac_cv_path_FGREP="$ac_path_FGREP"
12130 ac_path_FGREP_max=$ac_count
12131 fi
12132 # 10*(2^10) chars as input seems more than enough
12133 test $ac_count -gt 10 && break
12134 done
12135 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12136 esac
12137
12138 $ac_path_FGREP_found && break 3
12139 done
12140 done
12141 done
12142 IFS=$as_save_IFS
12143 if test -z "$ac_cv_path_FGREP"; then
12144 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12145 fi
12146 else
12147 ac_cv_path_FGREP=$FGREP
12148 fi
12149
12150 fi
12151 fi
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12153 $as_echo "$ac_cv_path_FGREP" >&6; }
12154 FGREP="$ac_cv_path_FGREP"
12155
12156
12157 test -z "$GREP" && GREP=grep
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177 # Check whether --with-gnu-ld was given.
12178 if test "${with_gnu_ld+set}" = set; then :
12179 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12180 else
12181 with_gnu_ld=no
12182 fi
12183
12184 ac_prog=ld
12185 if test "$GCC" = yes; then
12186 # Check if gcc -print-prog-name=ld gives a path.
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12188 $as_echo_n "checking for ld used by $CC... " >&6; }
12189 case $host in
12190 *-*-mingw*)
12191 # gcc leaves a trailing carriage return which upsets mingw
12192 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12193 *)
12194 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12195 esac
12196 case $ac_prog in
12197 # Accept absolute paths.
12198 [\\/]* | ?:[\\/]*)
12199 re_direlt='/[^/][^/]*/\.\./'
12200 # Canonicalize the pathname of ld
12201 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12202 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12203 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12204 done
12205 test -z "$LD" && LD="$ac_prog"
12206 ;;
12207 "")
12208 # If it fails, then pretend we aren't using GCC.
12209 ac_prog=ld
12210 ;;
12211 *)
12212 # If it is relative, then search for the first ld in PATH.
12213 with_gnu_ld=unknown
12214 ;;
12215 esac
12216 elif test "$with_gnu_ld" = yes; then
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12218 $as_echo_n "checking for GNU ld... " >&6; }
12219 else
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12221 $as_echo_n "checking for non-GNU ld... " >&6; }
12222 fi
12223 if test "${lt_cv_path_LD+set}" = set; then :
12224 $as_echo_n "(cached) " >&6
12225 else
12226 if test -z "$LD"; then
12227 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12228 for ac_dir in $PATH; do
12229 IFS="$lt_save_ifs"
12230 test -z "$ac_dir" && ac_dir=.
12231 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12232 lt_cv_path_LD="$ac_dir/$ac_prog"
12233 # Check to see if the program is GNU ld. I'd rather use --version,
12234 # but apparently some variants of GNU ld only accept -v.
12235 # Break only if it was the GNU/non-GNU ld that we prefer.
12236 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12237 *GNU* | *'with BFD'*)
12238 test "$with_gnu_ld" != no && break
12239 ;;
12240 *)
12241 test "$with_gnu_ld" != yes && break
12242 ;;
12243 esac
12244 fi
12245 done
12246 IFS="$lt_save_ifs"
12247 else
12248 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12249 fi
12250 fi
12251
12252 LD="$lt_cv_path_LD"
12253 if test -n "$LD"; then
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12255 $as_echo "$LD" >&6; }
12256 else
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12258 $as_echo "no" >&6; }
12259 fi
12260 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12262 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12263 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12264 $as_echo_n "(cached) " >&6
12265 else
12266 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12267 case `$LD -v 2>&1 </dev/null` in
12268 *GNU* | *'with BFD'*)
12269 lt_cv_prog_gnu_ld=yes
12270 ;;
12271 *)
12272 lt_cv_prog_gnu_ld=no
12273 ;;
12274 esac
12275 fi
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12277 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12278 with_gnu_ld=$lt_cv_prog_gnu_ld
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12289 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12290 if test "${lt_cv_path_NM+set}" = set; then :
12291 $as_echo_n "(cached) " >&6
12292 else
12293 if test -n "$NM"; then
12294 # Let the user override the test.
12295 lt_cv_path_NM="$NM"
12296 else
12297 lt_nm_to_check="${ac_tool_prefix}nm"
12298 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12299 lt_nm_to_check="$lt_nm_to_check nm"
12300 fi
12301 for lt_tmp_nm in $lt_nm_to_check; do
12302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12303 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12304 IFS="$lt_save_ifs"
12305 test -z "$ac_dir" && ac_dir=.
12306 tmp_nm="$ac_dir/$lt_tmp_nm"
12307 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12308 # Check to see if the nm accepts a BSD-compat flag.
12309 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12310 # nm: unknown option "B" ignored
12311 # Tru64's nm complains that /dev/null is an invalid object file
12312 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12313 */dev/null* | *'Invalid file or object type'*)
12314 lt_cv_path_NM="$tmp_nm -B"
12315 break
12316 ;;
12317 *)
12318 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12319 */dev/null*)
12320 lt_cv_path_NM="$tmp_nm -p"
12321 break
12322 ;;
12323 *)
12324 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12325 continue # so that we can try to find one that supports BSD flags
12326 ;;
12327 esac
12328 ;;
12329 esac
12330 fi
12331 done
12332 IFS="$lt_save_ifs"
12333 done
12334 : ${lt_cv_path_NM=no}
12335 fi
12336 fi
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12338 $as_echo "$lt_cv_path_NM" >&6; }
12339 if test "$lt_cv_path_NM" != "no"; then
12340 NM="$lt_cv_path_NM"
12341 else
12342 # Didn't find any BSD compatible name lister, look for dumpbin.
12343 if test -n "$DUMPBIN"; then :
12344 # Let the user override the test.
12345 else
12346 if test -n "$ac_tool_prefix"; then
12347 for ac_prog in dumpbin "link -dump"
12348 do
12349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12352 $as_echo_n "checking for $ac_word... " >&6; }
12353 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12354 $as_echo_n "(cached) " >&6
12355 else
12356 if test -n "$DUMPBIN"; then
12357 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12358 else
12359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12360 for as_dir in $PATH
12361 do
12362 IFS=$as_save_IFS
12363 test -z "$as_dir" && as_dir=.
12364 for ac_exec_ext in '' $ac_executable_extensions; do
12365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12366 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12368 break 2
12369 fi
12370 done
12371 done
12372 IFS=$as_save_IFS
12373
12374 fi
12375 fi
12376 DUMPBIN=$ac_cv_prog_DUMPBIN
12377 if test -n "$DUMPBIN"; then
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12379 $as_echo "$DUMPBIN" >&6; }
12380 else
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12382 $as_echo "no" >&6; }
12383 fi
12384
12385
12386 test -n "$DUMPBIN" && break
12387 done
12388 fi
12389 if test -z "$DUMPBIN"; then
12390 ac_ct_DUMPBIN=$DUMPBIN
12391 for ac_prog in dumpbin "link -dump"
12392 do
12393 # Extract the first word of "$ac_prog", so it can be a program name with args.
12394 set dummy $ac_prog; ac_word=$2
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12396 $as_echo_n "checking for $ac_word... " >&6; }
12397 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12398 $as_echo_n "(cached) " >&6
12399 else
12400 if test -n "$ac_ct_DUMPBIN"; then
12401 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12402 else
12403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12404 for as_dir in $PATH
12405 do
12406 IFS=$as_save_IFS
12407 test -z "$as_dir" && as_dir=.
12408 for ac_exec_ext in '' $ac_executable_extensions; do
12409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12410 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12412 break 2
12413 fi
12414 done
12415 done
12416 IFS=$as_save_IFS
12417
12418 fi
12419 fi
12420 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12421 if test -n "$ac_ct_DUMPBIN"; then
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12423 $as_echo "$ac_ct_DUMPBIN" >&6; }
12424 else
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12426 $as_echo "no" >&6; }
12427 fi
12428
12429
12430 test -n "$ac_ct_DUMPBIN" && break
12431 done
12432
12433 if test "x$ac_ct_DUMPBIN" = x; then
12434 DUMPBIN=":"
12435 else
12436 case $cross_compiling:$ac_tool_warned in
12437 yes:)
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12440 ac_tool_warned=yes ;;
12441 esac
12442 DUMPBIN=$ac_ct_DUMPBIN
12443 fi
12444 fi
12445
12446 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12447 *COFF*)
12448 DUMPBIN="$DUMPBIN -symbols"
12449 ;;
12450 *)
12451 DUMPBIN=:
12452 ;;
12453 esac
12454 fi
12455
12456 if test "$DUMPBIN" != ":"; then
12457 NM="$DUMPBIN"
12458 fi
12459 fi
12460 test -z "$NM" && NM=nm
12461
12462
12463
12464
12465
12466
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12468 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12469 if test "${lt_cv_nm_interface+set}" = set; then :
12470 $as_echo_n "(cached) " >&6
12471 else
12472 lt_cv_nm_interface="BSD nm"
12473 echo "int some_variable = 0;" > conftest.$ac_ext
12474 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12475 (eval "$ac_compile" 2>conftest.err)
12476 cat conftest.err >&5
12477 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12478 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12479 cat conftest.err >&5
12480 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12481 cat conftest.out >&5
12482 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12483 lt_cv_nm_interface="MS dumpbin"
12484 fi
12485 rm -f conftest*
12486 fi
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12488 $as_echo "$lt_cv_nm_interface" >&6; }
12489
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12491 $as_echo_n "checking whether ln -s works... " >&6; }
12492 LN_S=$as_ln_s
12493 if test "$LN_S" = "ln -s"; then
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12495 $as_echo "yes" >&6; }
12496 else
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12498 $as_echo "no, using $LN_S" >&6; }
12499 fi
12500
12501 # find the maximum length of command line arguments
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12503 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12504 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12505 $as_echo_n "(cached) " >&6
12506 else
12507 i=0
12508 teststring="ABCD"
12509
12510 case $build_os in
12511 msdosdjgpp*)
12512 # On DJGPP, this test can blow up pretty badly due to problems in libc
12513 # (any single argument exceeding 2000 bytes causes a buffer overrun
12514 # during glob expansion). Even if it were fixed, the result of this
12515 # check would be larger than it should be.
12516 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12517 ;;
12518
12519 gnu*)
12520 # Under GNU Hurd, this test is not required because there is
12521 # no limit to the length of command line arguments.
12522 # Libtool will interpret -1 as no limit whatsoever
12523 lt_cv_sys_max_cmd_len=-1;
12524 ;;
12525
12526 cygwin* | mingw* | cegcc*)
12527 # On Win9x/ME, this test blows up -- it succeeds, but takes
12528 # about 5 minutes as the teststring grows exponentially.
12529 # Worse, since 9x/ME are not pre-emptively multitasking,
12530 # you end up with a "frozen" computer, even though with patience
12531 # the test eventually succeeds (with a max line length of 256k).
12532 # Instead, let's just punt: use the minimum linelength reported by
12533 # all of the supported platforms: 8192 (on NT/2K/XP).
12534 lt_cv_sys_max_cmd_len=8192;
12535 ;;
12536
12537 mint*)
12538 # On MiNT this can take a long time and run out of memory.
12539 lt_cv_sys_max_cmd_len=8192;
12540 ;;
12541
12542 amigaos*)
12543 # On AmigaOS with pdksh, this test takes hours, literally.
12544 # So we just punt and use a minimum line length of 8192.
12545 lt_cv_sys_max_cmd_len=8192;
12546 ;;
12547
12548 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12549 # This has been around since 386BSD, at least. Likely further.
12550 if test -x /sbin/sysctl; then
12551 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12552 elif test -x /usr/sbin/sysctl; then
12553 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12554 else
12555 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12556 fi
12557 # And add a safety zone
12558 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12559 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12560 ;;
12561
12562 interix*)
12563 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12564 lt_cv_sys_max_cmd_len=196608
12565 ;;
12566
12567 osf*)
12568 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12569 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12570 # nice to cause kernel panics so lets avoid the loop below.
12571 # First set a reasonable default.
12572 lt_cv_sys_max_cmd_len=16384
12573 #
12574 if test -x /sbin/sysconfig; then
12575 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12576 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12577 esac
12578 fi
12579 ;;
12580 sco3.2v5*)
12581 lt_cv_sys_max_cmd_len=102400
12582 ;;
12583 sysv5* | sco5v6* | sysv4.2uw2*)
12584 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12585 if test -n "$kargmax"; then
12586 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12587 else
12588 lt_cv_sys_max_cmd_len=32768
12589 fi
12590 ;;
12591 *)
12592 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12593 if test -n "$lt_cv_sys_max_cmd_len"; then
12594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12595 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12596 else
12597 # Make teststring a little bigger before we do anything with it.
12598 # a 1K string should be a reasonable start.
12599 for i in 1 2 3 4 5 6 7 8 ; do
12600 teststring=$teststring$teststring
12601 done
12602 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12603 # If test is not a shell built-in, we'll probably end up computing a
12604 # maximum length that is only half of the actual maximum length, but
12605 # we can't tell.
12606 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12607 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12608 test $i != 17 # 1/2 MB should be enough
12609 do
12610 i=`expr $i + 1`
12611 teststring=$teststring$teststring
12612 done
12613 # Only check the string length outside the loop.
12614 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12615 teststring=
12616 # Add a significant safety factor because C++ compilers can tack on
12617 # massive amounts of additional arguments before passing them to the
12618 # linker. It appears as though 1/2 is a usable value.
12619 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12620 fi
12621 ;;
12622 esac
12623
12624 fi
12625
12626 if test -n $lt_cv_sys_max_cmd_len ; then
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12628 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12629 else
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12631 $as_echo "none" >&6; }
12632 fi
12633 max_cmd_len=$lt_cv_sys_max_cmd_len
12634
12635
12636
12637
12638
12639
12640 : ${CP="cp -f"}
12641 : ${MV="mv -f"}
12642 : ${RM="rm -f"}
12643
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12645 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12646 # Try some XSI features
12647 xsi_shell=no
12648 ( _lt_dummy="a/b/c"
12649 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12650 = c,a/b,, \
12651 && eval 'test $(( 1 + 1 )) -eq 2 \
12652 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12653 && xsi_shell=yes
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12655 $as_echo "$xsi_shell" >&6; }
12656
12657
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12659 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12660 lt_shell_append=no
12661 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12662 >/dev/null 2>&1 \
12663 && lt_shell_append=yes
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12665 $as_echo "$lt_shell_append" >&6; }
12666
12667
12668 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12669 lt_unset=unset
12670 else
12671 lt_unset=false
12672 fi
12673
12674
12675
12676
12677
12678 # test EBCDIC or ASCII
12679 case `echo X|tr X '\101'` in
12680 A) # ASCII based system
12681 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12682 lt_SP2NL='tr \040 \012'
12683 lt_NL2SP='tr \015\012 \040\040'
12684 ;;
12685 *) # EBCDIC based system
12686 lt_SP2NL='tr \100 \n'
12687 lt_NL2SP='tr \r\n \100\100'
12688 ;;
12689 esac
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12700 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12701 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12702 $as_echo_n "(cached) " >&6
12703 else
12704 lt_cv_ld_reload_flag='-r'
12705 fi
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12707 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12708 reload_flag=$lt_cv_ld_reload_flag
12709 case $reload_flag in
12710 "" | " "*) ;;
12711 *) reload_flag=" $reload_flag" ;;
12712 esac
12713 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12714 case $host_os in
12715 darwin*)
12716 if test "$GCC" = yes; then
12717 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12718 else
12719 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12720 fi
12721 ;;
12722 esac
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732 if test -n "$ac_tool_prefix"; then
12733 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12734 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12736 $as_echo_n "checking for $ac_word... " >&6; }
12737 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12738 $as_echo_n "(cached) " >&6
12739 else
12740 if test -n "$OBJDUMP"; then
12741 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12742 else
12743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12744 for as_dir in $PATH
12745 do
12746 IFS=$as_save_IFS
12747 test -z "$as_dir" && as_dir=.
12748 for ac_exec_ext in '' $ac_executable_extensions; do
12749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12750 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12752 break 2
12753 fi
12754 done
12755 done
12756 IFS=$as_save_IFS
12757
12758 fi
12759 fi
12760 OBJDUMP=$ac_cv_prog_OBJDUMP
12761 if test -n "$OBJDUMP"; then
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12763 $as_echo "$OBJDUMP" >&6; }
12764 else
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766 $as_echo "no" >&6; }
12767 fi
12768
12769
12770 fi
12771 if test -z "$ac_cv_prog_OBJDUMP"; then
12772 ac_ct_OBJDUMP=$OBJDUMP
12773 # Extract the first word of "objdump", so it can be a program name with args.
12774 set dummy objdump; ac_word=$2
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12776 $as_echo_n "checking for $ac_word... " >&6; }
12777 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12778 $as_echo_n "(cached) " >&6
12779 else
12780 if test -n "$ac_ct_OBJDUMP"; then
12781 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12782 else
12783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12784 for as_dir in $PATH
12785 do
12786 IFS=$as_save_IFS
12787 test -z "$as_dir" && as_dir=.
12788 for ac_exec_ext in '' $ac_executable_extensions; do
12789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12790 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12792 break 2
12793 fi
12794 done
12795 done
12796 IFS=$as_save_IFS
12797
12798 fi
12799 fi
12800 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12801 if test -n "$ac_ct_OBJDUMP"; then
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12803 $as_echo "$ac_ct_OBJDUMP" >&6; }
12804 else
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12806 $as_echo "no" >&6; }
12807 fi
12808
12809 if test "x$ac_ct_OBJDUMP" = x; then
12810 OBJDUMP="false"
12811 else
12812 case $cross_compiling:$ac_tool_warned in
12813 yes:)
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12816 ac_tool_warned=yes ;;
12817 esac
12818 OBJDUMP=$ac_ct_OBJDUMP
12819 fi
12820 else
12821 OBJDUMP="$ac_cv_prog_OBJDUMP"
12822 fi
12823
12824 test -z "$OBJDUMP" && OBJDUMP=objdump
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12835 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12836 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12837 $as_echo_n "(cached) " >&6
12838 else
12839 lt_cv_file_magic_cmd='$MAGIC_CMD'
12840 lt_cv_file_magic_test_file=
12841 lt_cv_deplibs_check_method='unknown'
12842 # Need to set the preceding variable on all platforms that support
12843 # interlibrary dependencies.
12844 # 'none' -- dependencies not supported.
12845 # `unknown' -- same as none, but documents that we really don't know.
12846 # 'pass_all' -- all dependencies passed with no checks.
12847 # 'test_compile' -- check by making test program.
12848 # 'file_magic [[regex]]' -- check by looking for files in library path
12849 # which responds to the $file_magic_cmd with a given extended regex.
12850 # If you have `file' or equivalent on your system and you're not sure
12851 # whether `pass_all' will *always* work, you probably want this one.
12852
12853 case $host_os in
12854 aix[4-9]*)
12855 lt_cv_deplibs_check_method=pass_all
12856 ;;
12857
12858 beos*)
12859 lt_cv_deplibs_check_method=pass_all
12860 ;;
12861
12862 bsdi[45]*)
12863 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12864 lt_cv_file_magic_cmd='/usr/bin/file -L'
12865 lt_cv_file_magic_test_file=/shlib/libc.so
12866 ;;
12867
12868 cygwin*)
12869 # func_win32_libid is a shell function defined in ltmain.sh
12870 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12871 lt_cv_file_magic_cmd='func_win32_libid'
12872 ;;
12873
12874 mingw* | pw32*)
12875 # Base MSYS/MinGW do not provide the 'file' command needed by
12876 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12877 # unless we find 'file', for example because we are cross-compiling.
12878 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12879 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12880 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12881 lt_cv_file_magic_cmd='func_win32_libid'
12882 else
12883 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12884 lt_cv_file_magic_cmd='$OBJDUMP -f'
12885 fi
12886 ;;
12887
12888 cegcc*)
12889 # use the weaker test based on 'objdump'. See mingw*.
12890 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12891 lt_cv_file_magic_cmd='$OBJDUMP -f'
12892 ;;
12893
12894 darwin* | rhapsody*)
12895 lt_cv_deplibs_check_method=pass_all
12896 ;;
12897
12898 freebsd* | dragonfly*)
12899 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12900 case $host_cpu in
12901 i*86 )
12902 # Not sure whether the presence of OpenBSD here was a mistake.
12903 # Let's accept both of them until this is cleared up.
12904 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12905 lt_cv_file_magic_cmd=/usr/bin/file
12906 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12907 ;;
12908 esac
12909 else
12910 lt_cv_deplibs_check_method=pass_all
12911 fi
12912 ;;
12913
12914 gnu*)
12915 lt_cv_deplibs_check_method=pass_all
12916 ;;
12917
12918 haiku*)
12919 lt_cv_deplibs_check_method=pass_all
12920 ;;
12921
12922 hpux10.20* | hpux11*)
12923 lt_cv_file_magic_cmd=/usr/bin/file
12924 case $host_cpu in
12925 ia64*)
12926 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12927 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12928 ;;
12929 hppa*64*)
12930 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]'
12931 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12932 ;;
12933 *)
12934 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12935 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12936 ;;
12937 esac
12938 ;;
12939
12940 interix[3-9]*)
12941 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12942 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12943 ;;
12944
12945 irix5* | irix6* | nonstopux*)
12946 case $LD in
12947 *-32|*"-32 ") libmagic=32-bit;;
12948 *-n32|*"-n32 ") libmagic=N32;;
12949 *-64|*"-64 ") libmagic=64-bit;;
12950 *) libmagic=never-match;;
12951 esac
12952 lt_cv_deplibs_check_method=pass_all
12953 ;;
12954
12955 # This must be Linux ELF.
12956 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12957 lt_cv_deplibs_check_method=pass_all
12958 ;;
12959
12960 netbsd*)
12961 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12962 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12963 else
12964 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12965 fi
12966 ;;
12967
12968 newos6*)
12969 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12970 lt_cv_file_magic_cmd=/usr/bin/file
12971 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12972 ;;
12973
12974 *nto* | *qnx*)
12975 lt_cv_deplibs_check_method=pass_all
12976 ;;
12977
12978 openbsd*)
12979 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12980 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12981 else
12982 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12983 fi
12984 ;;
12985
12986 osf3* | osf4* | osf5*)
12987 lt_cv_deplibs_check_method=pass_all
12988 ;;
12989
12990 rdos*)
12991 lt_cv_deplibs_check_method=pass_all
12992 ;;
12993
12994 solaris*)
12995 lt_cv_deplibs_check_method=pass_all
12996 ;;
12997
12998 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12999 lt_cv_deplibs_check_method=pass_all
13000 ;;
13001
13002 sysv4 | sysv4.3*)
13003 case $host_vendor in
13004 motorola)
13005 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]'
13006 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13007 ;;
13008 ncr)
13009 lt_cv_deplibs_check_method=pass_all
13010 ;;
13011 sequent)
13012 lt_cv_file_magic_cmd='/bin/file'
13013 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13014 ;;
13015 sni)
13016 lt_cv_file_magic_cmd='/bin/file'
13017 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13018 lt_cv_file_magic_test_file=/lib/libc.so
13019 ;;
13020 siemens)
13021 lt_cv_deplibs_check_method=pass_all
13022 ;;
13023 pc)
13024 lt_cv_deplibs_check_method=pass_all
13025 ;;
13026 esac
13027 ;;
13028
13029 tpf*)
13030 lt_cv_deplibs_check_method=pass_all
13031 ;;
13032 esac
13033
13034 fi
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13036 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13037 file_magic_cmd=$lt_cv_file_magic_cmd
13038 deplibs_check_method=$lt_cv_deplibs_check_method
13039 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052 if test -n "$ac_tool_prefix"; then
13053 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13054 set dummy ${ac_tool_prefix}ar; ac_word=$2
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13056 $as_echo_n "checking for $ac_word... " >&6; }
13057 if test "${ac_cv_prog_AR+set}" = set; then :
13058 $as_echo_n "(cached) " >&6
13059 else
13060 if test -n "$AR"; then
13061 ac_cv_prog_AR="$AR" # Let the user override the test.
13062 else
13063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13064 for as_dir in $PATH
13065 do
13066 IFS=$as_save_IFS
13067 test -z "$as_dir" && as_dir=.
13068 for ac_exec_ext in '' $ac_executable_extensions; do
13069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13070 ac_cv_prog_AR="${ac_tool_prefix}ar"
13071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13072 break 2
13073 fi
13074 done
13075 done
13076 IFS=$as_save_IFS
13077
13078 fi
13079 fi
13080 AR=$ac_cv_prog_AR
13081 if test -n "$AR"; then
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13083 $as_echo "$AR" >&6; }
13084 else
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13086 $as_echo "no" >&6; }
13087 fi
13088
13089
13090 fi
13091 if test -z "$ac_cv_prog_AR"; then
13092 ac_ct_AR=$AR
13093 # Extract the first word of "ar", so it can be a program name with args.
13094 set dummy ar; ac_word=$2
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13096 $as_echo_n "checking for $ac_word... " >&6; }
13097 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13098 $as_echo_n "(cached) " >&6
13099 else
13100 if test -n "$ac_ct_AR"; then
13101 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13102 else
13103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13104 for as_dir in $PATH
13105 do
13106 IFS=$as_save_IFS
13107 test -z "$as_dir" && as_dir=.
13108 for ac_exec_ext in '' $ac_executable_extensions; do
13109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13110 ac_cv_prog_ac_ct_AR="ar"
13111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13112 break 2
13113 fi
13114 done
13115 done
13116 IFS=$as_save_IFS
13117
13118 fi
13119 fi
13120 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13121 if test -n "$ac_ct_AR"; then
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13123 $as_echo "$ac_ct_AR" >&6; }
13124 else
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13126 $as_echo "no" >&6; }
13127 fi
13128
13129 if test "x$ac_ct_AR" = x; then
13130 AR="false"
13131 else
13132 case $cross_compiling:$ac_tool_warned in
13133 yes:)
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13136 ac_tool_warned=yes ;;
13137 esac
13138 AR=$ac_ct_AR
13139 fi
13140 else
13141 AR="$ac_cv_prog_AR"
13142 fi
13143
13144 test -z "$AR" && AR=ar
13145 test -z "$AR_FLAGS" && AR_FLAGS=cru
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157 if test -n "$ac_tool_prefix"; then
13158 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13159 set dummy ${ac_tool_prefix}strip; ac_word=$2
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13161 $as_echo_n "checking for $ac_word... " >&6; }
13162 if test "${ac_cv_prog_STRIP+set}" = set; then :
13163 $as_echo_n "(cached) " >&6
13164 else
13165 if test -n "$STRIP"; then
13166 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13167 else
13168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13169 for as_dir in $PATH
13170 do
13171 IFS=$as_save_IFS
13172 test -z "$as_dir" && as_dir=.
13173 for ac_exec_ext in '' $ac_executable_extensions; do
13174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13175 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13177 break 2
13178 fi
13179 done
13180 done
13181 IFS=$as_save_IFS
13182
13183 fi
13184 fi
13185 STRIP=$ac_cv_prog_STRIP
13186 if test -n "$STRIP"; then
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13188 $as_echo "$STRIP" >&6; }
13189 else
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191 $as_echo "no" >&6; }
13192 fi
13193
13194
13195 fi
13196 if test -z "$ac_cv_prog_STRIP"; then
13197 ac_ct_STRIP=$STRIP
13198 # Extract the first word of "strip", so it can be a program name with args.
13199 set dummy strip; ac_word=$2
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13201 $as_echo_n "checking for $ac_word... " >&6; }
13202 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13203 $as_echo_n "(cached) " >&6
13204 else
13205 if test -n "$ac_ct_STRIP"; then
13206 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13207 else
13208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13209 for as_dir in $PATH
13210 do
13211 IFS=$as_save_IFS
13212 test -z "$as_dir" && as_dir=.
13213 for ac_exec_ext in '' $ac_executable_extensions; do
13214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13215 ac_cv_prog_ac_ct_STRIP="strip"
13216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13217 break 2
13218 fi
13219 done
13220 done
13221 IFS=$as_save_IFS
13222
13223 fi
13224 fi
13225 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13226 if test -n "$ac_ct_STRIP"; then
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13228 $as_echo "$ac_ct_STRIP" >&6; }
13229 else
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13231 $as_echo "no" >&6; }
13232 fi
13233
13234 if test "x$ac_ct_STRIP" = x; then
13235 STRIP=":"
13236 else
13237 case $cross_compiling:$ac_tool_warned in
13238 yes:)
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13241 ac_tool_warned=yes ;;
13242 esac
13243 STRIP=$ac_ct_STRIP
13244 fi
13245 else
13246 STRIP="$ac_cv_prog_STRIP"
13247 fi
13248
13249 test -z "$STRIP" && STRIP=:
13250
13251
13252
13253
13254
13255
13256 if test -n "$ac_tool_prefix"; then
13257 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13258 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13260 $as_echo_n "checking for $ac_word... " >&6; }
13261 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13262 $as_echo_n "(cached) " >&6
13263 else
13264 if test -n "$RANLIB"; then
13265 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13266 else
13267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13268 for as_dir in $PATH
13269 do
13270 IFS=$as_save_IFS
13271 test -z "$as_dir" && as_dir=.
13272 for ac_exec_ext in '' $ac_executable_extensions; do
13273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13274 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13276 break 2
13277 fi
13278 done
13279 done
13280 IFS=$as_save_IFS
13281
13282 fi
13283 fi
13284 RANLIB=$ac_cv_prog_RANLIB
13285 if test -n "$RANLIB"; then
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13287 $as_echo "$RANLIB" >&6; }
13288 else
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13290 $as_echo "no" >&6; }
13291 fi
13292
13293
13294 fi
13295 if test -z "$ac_cv_prog_RANLIB"; then
13296 ac_ct_RANLIB=$RANLIB
13297 # Extract the first word of "ranlib", so it can be a program name with args.
13298 set dummy ranlib; ac_word=$2
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13300 $as_echo_n "checking for $ac_word... " >&6; }
13301 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13302 $as_echo_n "(cached) " >&6
13303 else
13304 if test -n "$ac_ct_RANLIB"; then
13305 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13306 else
13307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13308 for as_dir in $PATH
13309 do
13310 IFS=$as_save_IFS
13311 test -z "$as_dir" && as_dir=.
13312 for ac_exec_ext in '' $ac_executable_extensions; do
13313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13314 ac_cv_prog_ac_ct_RANLIB="ranlib"
13315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13316 break 2
13317 fi
13318 done
13319 done
13320 IFS=$as_save_IFS
13321
13322 fi
13323 fi
13324 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13325 if test -n "$ac_ct_RANLIB"; then
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13327 $as_echo "$ac_ct_RANLIB" >&6; }
13328 else
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13330 $as_echo "no" >&6; }
13331 fi
13332
13333 if test "x$ac_ct_RANLIB" = x; then
13334 RANLIB=":"
13335 else
13336 case $cross_compiling:$ac_tool_warned in
13337 yes:)
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13340 ac_tool_warned=yes ;;
13341 esac
13342 RANLIB=$ac_ct_RANLIB
13343 fi
13344 else
13345 RANLIB="$ac_cv_prog_RANLIB"
13346 fi
13347
13348 test -z "$RANLIB" && RANLIB=:
13349
13350
13351
13352
13353
13354
13355 # Determine commands to create old-style static archives.
13356 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13357 old_postinstall_cmds='chmod 644 $oldlib'
13358 old_postuninstall_cmds=
13359
13360 if test -n "$RANLIB"; then
13361 case $host_os in
13362 openbsd*)
13363 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13364 ;;
13365 *)
13366 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13367 ;;
13368 esac
13369 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13370 fi
13371
13372 case $host_os in
13373 darwin*)
13374 lock_old_archive_extraction=yes ;;
13375 *)
13376 lock_old_archive_extraction=no ;;
13377 esac
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
13409
13410
13411
13412
13413
13414
13415
13416
13417 # If no C compiler was specified, use CC.
13418 LTCC=${LTCC-"$CC"}
13419
13420 # If no C compiler flags were specified, use CFLAGS.
13421 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13422
13423 # Allow CC to be a program name with arguments.
13424 compiler=$CC
13425
13426
13427 # Check for command to grab the raw symbol name followed by C symbol from nm.
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13429 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13430 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13431 $as_echo_n "(cached) " >&6
13432 else
13433
13434 # These are sane defaults that work on at least a few old systems.
13435 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13436
13437 # Character class describing NM global symbol codes.
13438 symcode='[BCDEGRST]'
13439
13440 # Regexp to match symbols that can be accessed directly from C.
13441 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13442
13443 # Define system-specific variables.
13444 case $host_os in
13445 aix*)
13446 symcode='[BCDT]'
13447 ;;
13448 cygwin* | mingw* | pw32* | cegcc*)
13449 symcode='[ABCDGISTW]'
13450 ;;
13451 hpux*)
13452 if test "$host_cpu" = ia64; then
13453 symcode='[ABCDEGRST]'
13454 fi
13455 ;;
13456 irix* | nonstopux*)
13457 symcode='[BCDEGRST]'
13458 ;;
13459 osf*)
13460 symcode='[BCDEGQRST]'
13461 ;;
13462 solaris*)
13463 symcode='[BDRT]'
13464 ;;
13465 sco3.2v5*)
13466 symcode='[DT]'
13467 ;;
13468 sysv4.2uw2*)
13469 symcode='[DT]'
13470 ;;
13471 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13472 symcode='[ABDT]'
13473 ;;
13474 sysv4)
13475 symcode='[DFNSTU]'
13476 ;;
13477 esac
13478
13479 # If we're using GNU nm, then use its standard symbol codes.
13480 case `$NM -V 2>&1` in
13481 *GNU* | *'with BFD'*)
13482 symcode='[ABCDGIRSTW]' ;;
13483 esac
13484
13485 # Transform an extracted symbol line into a proper C declaration.
13486 # Some systems (esp. on ia64) link data and code symbols differently,
13487 # so use this general approach.
13488 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13489
13490 # Transform an extracted symbol line into symbol name and symbol address
13491 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13492 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'"
13493
13494 # Handle CRLF in mingw tool chain
13495 opt_cr=
13496 case $build_os in
13497 mingw*)
13498 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13499 ;;
13500 esac
13501
13502 # Try without a prefix underscore, then with it.
13503 for ac_symprfx in "" "_"; do
13504
13505 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13506 symxfrm="\\1 $ac_symprfx\\2 \\2"
13507
13508 # Write the raw and C identifiers.
13509 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13510 # Fake it for dumpbin and say T for any non-static function
13511 # and D for any global variable.
13512 # Also find C++ and __fastcall symbols from MSVC++,
13513 # which start with @ or ?.
13514 lt_cv_sys_global_symbol_pipe="$AWK '"\
13515 " {last_section=section; section=\$ 3};"\
13516 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13517 " \$ 0!~/External *\|/{next};"\
13518 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13519 " {if(hide[section]) next};"\
13520 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13521 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13522 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13523 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13524 " ' prfx=^$ac_symprfx"
13525 else
13526 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13527 fi
13528
13529 # Check to see that the pipe works correctly.
13530 pipe_works=no
13531
13532 rm -f conftest*
13533 cat > conftest.$ac_ext <<_LT_EOF
13534 #ifdef __cplusplus
13535 extern "C" {
13536 #endif
13537 char nm_test_var;
13538 void nm_test_func(void);
13539 void nm_test_func(void){}
13540 #ifdef __cplusplus
13541 }
13542 #endif
13543 int main(){nm_test_var='a';nm_test_func();return(0);}
13544 _LT_EOF
13545
13546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13547 (eval $ac_compile) 2>&5
13548 ac_status=$?
13549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13550 test $ac_status = 0; }; then
13551 # Now try to grab the symbols.
13552 nlist=conftest.nm
13553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13554 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13555 ac_status=$?
13556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13557 test $ac_status = 0; } && test -s "$nlist"; then
13558 # Try sorting and uniquifying the output.
13559 if sort "$nlist" | uniq > "$nlist"T; then
13560 mv -f "$nlist"T "$nlist"
13561 else
13562 rm -f "$nlist"T
13563 fi
13564
13565 # Make sure that we snagged all the symbols we need.
13566 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13567 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13568 cat <<_LT_EOF > conftest.$ac_ext
13569 #ifdef __cplusplus
13570 extern "C" {
13571 #endif
13572
13573 _LT_EOF
13574 # Now generate the symbol file.
13575 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13576
13577 cat <<_LT_EOF >> conftest.$ac_ext
13578
13579 /* The mapping between symbol names and symbols. */
13580 const struct {
13581 const char *name;
13582 void *address;
13583 }
13584 lt__PROGRAM__LTX_preloaded_symbols[] =
13585 {
13586 { "@PROGRAM@", (void *) 0 },
13587 _LT_EOF
13588 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13589 cat <<\_LT_EOF >> conftest.$ac_ext
13590 {0, (void *) 0}
13591 };
13592
13593 /* This works around a problem in FreeBSD linker */
13594 #ifdef FREEBSD_WORKAROUND
13595 static const void *lt_preloaded_setup() {
13596 return lt__PROGRAM__LTX_preloaded_symbols;
13597 }
13598 #endif
13599
13600 #ifdef __cplusplus
13601 }
13602 #endif
13603 _LT_EOF
13604 # Now try linking the two files.
13605 mv conftest.$ac_objext conftstm.$ac_objext
13606 lt_save_LIBS="$LIBS"
13607 lt_save_CFLAGS="$CFLAGS"
13608 LIBS="conftstm.$ac_objext"
13609 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13611 (eval $ac_link) 2>&5
13612 ac_status=$?
13613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13614 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13615 pipe_works=yes
13616 fi
13617 LIBS="$lt_save_LIBS"
13618 CFLAGS="$lt_save_CFLAGS"
13619 else
13620 echo "cannot find nm_test_func in $nlist" >&5
13621 fi
13622 else
13623 echo "cannot find nm_test_var in $nlist" >&5
13624 fi
13625 else
13626 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13627 fi
13628 else
13629 echo "$progname: failed program was:" >&5
13630 cat conftest.$ac_ext >&5
13631 fi
13632 rm -rf conftest* conftst*
13633
13634 # Do not use the global_symbol_pipe unless it works.
13635 if test "$pipe_works" = yes; then
13636 break
13637 else
13638 lt_cv_sys_global_symbol_pipe=
13639 fi
13640 done
13641
13642 fi
13643
13644 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13645 lt_cv_sys_global_symbol_to_cdecl=
13646 fi
13647 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13649 $as_echo "failed" >&6; }
13650 else
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13652 $as_echo "ok" >&6; }
13653 fi
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676 # Check whether --enable-libtool-lock was given.
13677 if test "${enable_libtool_lock+set}" = set; then :
13678 enableval=$enable_libtool_lock;
13679 fi
13680
13681 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13682
13683 # Some flags need to be propagated to the compiler or linker for good
13684 # libtool support.
13685 case $host in
13686 ia64-*-hpux*)
13687 # Find out which ABI we are using.
13688 echo 'int i;' > conftest.$ac_ext
13689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13690 (eval $ac_compile) 2>&5
13691 ac_status=$?
13692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13693 test $ac_status = 0; }; then
13694 case `/usr/bin/file conftest.$ac_objext` in
13695 *ELF-32*)
13696 HPUX_IA64_MODE="32"
13697 ;;
13698 *ELF-64*)
13699 HPUX_IA64_MODE="64"
13700 ;;
13701 esac
13702 fi
13703 rm -rf conftest*
13704 ;;
13705 *-*-irix6*)
13706 # Find out which ABI we are using.
13707 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13709 (eval $ac_compile) 2>&5
13710 ac_status=$?
13711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13712 test $ac_status = 0; }; then
13713 if test "$lt_cv_prog_gnu_ld" = yes; then
13714 case `/usr/bin/file conftest.$ac_objext` in
13715 *32-bit*)
13716 LD="${LD-ld} -melf32bsmip"
13717 ;;
13718 *N32*)
13719 LD="${LD-ld} -melf32bmipn32"
13720 ;;
13721 *64-bit*)
13722 LD="${LD-ld} -melf64bmip"
13723 ;;
13724 esac
13725 else
13726 case `/usr/bin/file conftest.$ac_objext` in
13727 *32-bit*)
13728 LD="${LD-ld} -32"
13729 ;;
13730 *N32*)
13731 LD="${LD-ld} -n32"
13732 ;;
13733 *64-bit*)
13734 LD="${LD-ld} -64"
13735 ;;
13736 esac
13737 fi
13738 fi
13739 rm -rf conftest*
13740 ;;
13741
13742 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13743 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13744 # Find out which ABI we are using.
13745 echo 'int i;' > conftest.$ac_ext
13746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13747 (eval $ac_compile) 2>&5
13748 ac_status=$?
13749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13750 test $ac_status = 0; }; then
13751 case `/usr/bin/file conftest.o` in
13752 *32-bit*)
13753 case $host in
13754 x86_64-*kfreebsd*-gnu)
13755 LD="${LD-ld} -m elf_i386_fbsd"
13756 ;;
13757 x86_64-*linux*)
13758 LD="${LD-ld} -m elf_i386"
13759 ;;
13760 ppc64-*linux*|powerpc64-*linux*)
13761 LD="${LD-ld} -m elf32ppclinux"
13762 ;;
13763 s390x-*linux*)
13764 LD="${LD-ld} -m elf_s390"
13765 ;;
13766 sparc64-*linux*)
13767 LD="${LD-ld} -m elf32_sparc"
13768 ;;
13769 esac
13770 ;;
13771 *64-bit*)
13772 case $host in
13773 x86_64-*kfreebsd*-gnu)
13774 LD="${LD-ld} -m elf_x86_64_fbsd"
13775 ;;
13776 x86_64-*linux*)
13777 LD="${LD-ld} -m elf_x86_64"
13778 ;;
13779 ppc*-*linux*|powerpc*-*linux*)
13780 LD="${LD-ld} -m elf64ppc"
13781 ;;
13782 s390*-*linux*|s390*-*tpf*)
13783 LD="${LD-ld} -m elf64_s390"
13784 ;;
13785 sparc*-*linux*)
13786 LD="${LD-ld} -m elf64_sparc"
13787 ;;
13788 esac
13789 ;;
13790 esac
13791 fi
13792 rm -rf conftest*
13793 ;;
13794
13795 *-*-sco3.2v5*)
13796 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13797 SAVE_CFLAGS="$CFLAGS"
13798 CFLAGS="$CFLAGS -belf"
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13800 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13801 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13802 $as_echo_n "(cached) " >&6
13803 else
13804 ac_ext=c
13805 ac_cpp='$CPP $CPPFLAGS'
13806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13809
13810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13811 /* end confdefs.h. */
13812
13813 int
13814 main ()
13815 {
13816
13817 ;
13818 return 0;
13819 }
13820 _ACEOF
13821 if ac_fn_c_try_link "$LINENO"; then :
13822 lt_cv_cc_needs_belf=yes
13823 else
13824 lt_cv_cc_needs_belf=no
13825 fi
13826 rm -f core conftest.err conftest.$ac_objext \
13827 conftest$ac_exeext conftest.$ac_ext
13828 ac_ext=c
13829 ac_cpp='$CPP $CPPFLAGS'
13830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13833
13834 fi
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13836 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13837 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13838 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13839 CFLAGS="$SAVE_CFLAGS"
13840 fi
13841 ;;
13842 sparc*-*solaris*)
13843 # Find out which ABI we are using.
13844 echo 'int i;' > conftest.$ac_ext
13845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13846 (eval $ac_compile) 2>&5
13847 ac_status=$?
13848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13849 test $ac_status = 0; }; then
13850 case `/usr/bin/file conftest.o` in
13851 *64-bit*)
13852 case $lt_cv_prog_gnu_ld in
13853 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13854 *)
13855 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13856 LD="${LD-ld} -64"
13857 fi
13858 ;;
13859 esac
13860 ;;
13861 esac
13862 fi
13863 rm -rf conftest*
13864 ;;
13865 esac
13866
13867 need_locks="$enable_libtool_lock"
13868
13869
13870 case $host_os in
13871 rhapsody* | darwin*)
13872 if test -n "$ac_tool_prefix"; then
13873 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13874 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13876 $as_echo_n "checking for $ac_word... " >&6; }
13877 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13878 $as_echo_n "(cached) " >&6
13879 else
13880 if test -n "$DSYMUTIL"; then
13881 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13882 else
13883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13884 for as_dir in $PATH
13885 do
13886 IFS=$as_save_IFS
13887 test -z "$as_dir" && as_dir=.
13888 for ac_exec_ext in '' $ac_executable_extensions; do
13889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13890 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13892 break 2
13893 fi
13894 done
13895 done
13896 IFS=$as_save_IFS
13897
13898 fi
13899 fi
13900 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13901 if test -n "$DSYMUTIL"; then
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13903 $as_echo "$DSYMUTIL" >&6; }
13904 else
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13906 $as_echo "no" >&6; }
13907 fi
13908
13909
13910 fi
13911 if test -z "$ac_cv_prog_DSYMUTIL"; then
13912 ac_ct_DSYMUTIL=$DSYMUTIL
13913 # Extract the first word of "dsymutil", so it can be a program name with args.
13914 set dummy dsymutil; ac_word=$2
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13916 $as_echo_n "checking for $ac_word... " >&6; }
13917 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13918 $as_echo_n "(cached) " >&6
13919 else
13920 if test -n "$ac_ct_DSYMUTIL"; then
13921 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13922 else
13923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13924 for as_dir in $PATH
13925 do
13926 IFS=$as_save_IFS
13927 test -z "$as_dir" && as_dir=.
13928 for ac_exec_ext in '' $ac_executable_extensions; do
13929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13930 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13932 break 2
13933 fi
13934 done
13935 done
13936 IFS=$as_save_IFS
13937
13938 fi
13939 fi
13940 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13941 if test -n "$ac_ct_DSYMUTIL"; then
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13943 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13944 else
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13946 $as_echo "no" >&6; }
13947 fi
13948
13949 if test "x$ac_ct_DSYMUTIL" = x; then
13950 DSYMUTIL=":"
13951 else
13952 case $cross_compiling:$ac_tool_warned in
13953 yes:)
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13956 ac_tool_warned=yes ;;
13957 esac
13958 DSYMUTIL=$ac_ct_DSYMUTIL
13959 fi
13960 else
13961 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13962 fi
13963
13964 if test -n "$ac_tool_prefix"; then
13965 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13966 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13968 $as_echo_n "checking for $ac_word... " >&6; }
13969 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13970 $as_echo_n "(cached) " >&6
13971 else
13972 if test -n "$NMEDIT"; then
13973 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13974 else
13975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13976 for as_dir in $PATH
13977 do
13978 IFS=$as_save_IFS
13979 test -z "$as_dir" && as_dir=.
13980 for ac_exec_ext in '' $ac_executable_extensions; do
13981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13982 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13984 break 2
13985 fi
13986 done
13987 done
13988 IFS=$as_save_IFS
13989
13990 fi
13991 fi
13992 NMEDIT=$ac_cv_prog_NMEDIT
13993 if test -n "$NMEDIT"; then
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13995 $as_echo "$NMEDIT" >&6; }
13996 else
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13998 $as_echo "no" >&6; }
13999 fi
14000
14001
14002 fi
14003 if test -z "$ac_cv_prog_NMEDIT"; then
14004 ac_ct_NMEDIT=$NMEDIT
14005 # Extract the first word of "nmedit", so it can be a program name with args.
14006 set dummy nmedit; ac_word=$2
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14008 $as_echo_n "checking for $ac_word... " >&6; }
14009 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14010 $as_echo_n "(cached) " >&6
14011 else
14012 if test -n "$ac_ct_NMEDIT"; then
14013 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14014 else
14015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14016 for as_dir in $PATH
14017 do
14018 IFS=$as_save_IFS
14019 test -z "$as_dir" && as_dir=.
14020 for ac_exec_ext in '' $ac_executable_extensions; do
14021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14022 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14024 break 2
14025 fi
14026 done
14027 done
14028 IFS=$as_save_IFS
14029
14030 fi
14031 fi
14032 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14033 if test -n "$ac_ct_NMEDIT"; then
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14035 $as_echo "$ac_ct_NMEDIT" >&6; }
14036 else
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14038 $as_echo "no" >&6; }
14039 fi
14040
14041 if test "x$ac_ct_NMEDIT" = x; then
14042 NMEDIT=":"
14043 else
14044 case $cross_compiling:$ac_tool_warned in
14045 yes:)
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14048 ac_tool_warned=yes ;;
14049 esac
14050 NMEDIT=$ac_ct_NMEDIT
14051 fi
14052 else
14053 NMEDIT="$ac_cv_prog_NMEDIT"
14054 fi
14055
14056 if test -n "$ac_tool_prefix"; then
14057 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14058 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14060 $as_echo_n "checking for $ac_word... " >&6; }
14061 if test "${ac_cv_prog_LIPO+set}" = set; then :
14062 $as_echo_n "(cached) " >&6
14063 else
14064 if test -n "$LIPO"; then
14065 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14066 else
14067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14068 for as_dir in $PATH
14069 do
14070 IFS=$as_save_IFS
14071 test -z "$as_dir" && as_dir=.
14072 for ac_exec_ext in '' $ac_executable_extensions; do
14073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14074 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14076 break 2
14077 fi
14078 done
14079 done
14080 IFS=$as_save_IFS
14081
14082 fi
14083 fi
14084 LIPO=$ac_cv_prog_LIPO
14085 if test -n "$LIPO"; then
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14087 $as_echo "$LIPO" >&6; }
14088 else
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14090 $as_echo "no" >&6; }
14091 fi
14092
14093
14094 fi
14095 if test -z "$ac_cv_prog_LIPO"; then
14096 ac_ct_LIPO=$LIPO
14097 # Extract the first word of "lipo", so it can be a program name with args.
14098 set dummy lipo; ac_word=$2
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14100 $as_echo_n "checking for $ac_word... " >&6; }
14101 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14102 $as_echo_n "(cached) " >&6
14103 else
14104 if test -n "$ac_ct_LIPO"; then
14105 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14106 else
14107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14108 for as_dir in $PATH
14109 do
14110 IFS=$as_save_IFS
14111 test -z "$as_dir" && as_dir=.
14112 for ac_exec_ext in '' $ac_executable_extensions; do
14113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14114 ac_cv_prog_ac_ct_LIPO="lipo"
14115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14116 break 2
14117 fi
14118 done
14119 done
14120 IFS=$as_save_IFS
14121
14122 fi
14123 fi
14124 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14125 if test -n "$ac_ct_LIPO"; then
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14127 $as_echo "$ac_ct_LIPO" >&6; }
14128 else
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14130 $as_echo "no" >&6; }
14131 fi
14132
14133 if test "x$ac_ct_LIPO" = x; then
14134 LIPO=":"
14135 else
14136 case $cross_compiling:$ac_tool_warned in
14137 yes:)
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14140 ac_tool_warned=yes ;;
14141 esac
14142 LIPO=$ac_ct_LIPO
14143 fi
14144 else
14145 LIPO="$ac_cv_prog_LIPO"
14146 fi
14147
14148 if test -n "$ac_tool_prefix"; then
14149 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14150 set dummy ${ac_tool_prefix}otool; ac_word=$2
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14152 $as_echo_n "checking for $ac_word... " >&6; }
14153 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14154 $as_echo_n "(cached) " >&6
14155 else
14156 if test -n "$OTOOL"; then
14157 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14158 else
14159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14160 for as_dir in $PATH
14161 do
14162 IFS=$as_save_IFS
14163 test -z "$as_dir" && as_dir=.
14164 for ac_exec_ext in '' $ac_executable_extensions; do
14165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14166 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14168 break 2
14169 fi
14170 done
14171 done
14172 IFS=$as_save_IFS
14173
14174 fi
14175 fi
14176 OTOOL=$ac_cv_prog_OTOOL
14177 if test -n "$OTOOL"; then
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14179 $as_echo "$OTOOL" >&6; }
14180 else
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14182 $as_echo "no" >&6; }
14183 fi
14184
14185
14186 fi
14187 if test -z "$ac_cv_prog_OTOOL"; then
14188 ac_ct_OTOOL=$OTOOL
14189 # Extract the first word of "otool", so it can be a program name with args.
14190 set dummy otool; ac_word=$2
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14192 $as_echo_n "checking for $ac_word... " >&6; }
14193 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14194 $as_echo_n "(cached) " >&6
14195 else
14196 if test -n "$ac_ct_OTOOL"; then
14197 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14198 else
14199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14200 for as_dir in $PATH
14201 do
14202 IFS=$as_save_IFS
14203 test -z "$as_dir" && as_dir=.
14204 for ac_exec_ext in '' $ac_executable_extensions; do
14205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14206 ac_cv_prog_ac_ct_OTOOL="otool"
14207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14208 break 2
14209 fi
14210 done
14211 done
14212 IFS=$as_save_IFS
14213
14214 fi
14215 fi
14216 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14217 if test -n "$ac_ct_OTOOL"; then
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14219 $as_echo "$ac_ct_OTOOL" >&6; }
14220 else
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14222 $as_echo "no" >&6; }
14223 fi
14224
14225 if test "x$ac_ct_OTOOL" = x; then
14226 OTOOL=":"
14227 else
14228 case $cross_compiling:$ac_tool_warned in
14229 yes:)
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14232 ac_tool_warned=yes ;;
14233 esac
14234 OTOOL=$ac_ct_OTOOL
14235 fi
14236 else
14237 OTOOL="$ac_cv_prog_OTOOL"
14238 fi
14239
14240 if test -n "$ac_tool_prefix"; then
14241 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14242 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14244 $as_echo_n "checking for $ac_word... " >&6; }
14245 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14246 $as_echo_n "(cached) " >&6
14247 else
14248 if test -n "$OTOOL64"; then
14249 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14250 else
14251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14252 for as_dir in $PATH
14253 do
14254 IFS=$as_save_IFS
14255 test -z "$as_dir" && as_dir=.
14256 for ac_exec_ext in '' $ac_executable_extensions; do
14257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14258 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14260 break 2
14261 fi
14262 done
14263 done
14264 IFS=$as_save_IFS
14265
14266 fi
14267 fi
14268 OTOOL64=$ac_cv_prog_OTOOL64
14269 if test -n "$OTOOL64"; then
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14271 $as_echo "$OTOOL64" >&6; }
14272 else
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14274 $as_echo "no" >&6; }
14275 fi
14276
14277
14278 fi
14279 if test -z "$ac_cv_prog_OTOOL64"; then
14280 ac_ct_OTOOL64=$OTOOL64
14281 # Extract the first word of "otool64", so it can be a program name with args.
14282 set dummy otool64; ac_word=$2
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14284 $as_echo_n "checking for $ac_word... " >&6; }
14285 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14286 $as_echo_n "(cached) " >&6
14287 else
14288 if test -n "$ac_ct_OTOOL64"; then
14289 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14290 else
14291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14292 for as_dir in $PATH
14293 do
14294 IFS=$as_save_IFS
14295 test -z "$as_dir" && as_dir=.
14296 for ac_exec_ext in '' $ac_executable_extensions; do
14297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14298 ac_cv_prog_ac_ct_OTOOL64="otool64"
14299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14300 break 2
14301 fi
14302 done
14303 done
14304 IFS=$as_save_IFS
14305
14306 fi
14307 fi
14308 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14309 if test -n "$ac_ct_OTOOL64"; then
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14311 $as_echo "$ac_ct_OTOOL64" >&6; }
14312 else
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14314 $as_echo "no" >&6; }
14315 fi
14316
14317 if test "x$ac_ct_OTOOL64" = x; then
14318 OTOOL64=":"
14319 else
14320 case $cross_compiling:$ac_tool_warned in
14321 yes:)
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14324 ac_tool_warned=yes ;;
14325 esac
14326 OTOOL64=$ac_ct_OTOOL64
14327 fi
14328 else
14329 OTOOL64="$ac_cv_prog_OTOOL64"
14330 fi
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
14357
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14359 $as_echo_n "checking for -single_module linker flag... " >&6; }
14360 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14361 $as_echo_n "(cached) " >&6
14362 else
14363 lt_cv_apple_cc_single_mod=no
14364 if test -z "${LT_MULTI_MODULE}"; then
14365 # By default we will add the -single_module flag. You can override
14366 # by either setting the environment variable LT_MULTI_MODULE
14367 # non-empty at configure time, or by adding -multi_module to the
14368 # link flags.
14369 rm -rf libconftest.dylib*
14370 echo "int foo(void){return 1;}" > conftest.c
14371 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14372 -dynamiclib -Wl,-single_module conftest.c" >&5
14373 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14374 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14375 _lt_result=$?
14376 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14377 lt_cv_apple_cc_single_mod=yes
14378 else
14379 cat conftest.err >&5
14380 fi
14381 rm -rf libconftest.dylib*
14382 rm -f conftest.*
14383 fi
14384 fi
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14386 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14388 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14389 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14390 $as_echo_n "(cached) " >&6
14391 else
14392 lt_cv_ld_exported_symbols_list=no
14393 save_LDFLAGS=$LDFLAGS
14394 echo "_main" > conftest.sym
14395 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14397 /* end confdefs.h. */
14398
14399 int
14400 main ()
14401 {
14402
14403 ;
14404 return 0;
14405 }
14406 _ACEOF
14407 if ac_fn_c_try_link "$LINENO"; then :
14408 lt_cv_ld_exported_symbols_list=yes
14409 else
14410 lt_cv_ld_exported_symbols_list=no
14411 fi
14412 rm -f core conftest.err conftest.$ac_objext \
14413 conftest$ac_exeext conftest.$ac_ext
14414 LDFLAGS="$save_LDFLAGS"
14415
14416 fi
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14418 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14420 $as_echo_n "checking for -force_load linker flag... " >&6; }
14421 if test "${lt_cv_ld_force_load+set}" = set; then :
14422 $as_echo_n "(cached) " >&6
14423 else
14424 lt_cv_ld_force_load=no
14425 cat > conftest.c << _LT_EOF
14426 int forced_loaded() { return 2;}
14427 _LT_EOF
14428 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14429 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14430 echo "$AR cru libconftest.a conftest.o" >&5
14431 $AR cru libconftest.a conftest.o 2>&5
14432 cat > conftest.c << _LT_EOF
14433 int main() { return 0;}
14434 _LT_EOF
14435 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14436 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14437 _lt_result=$?
14438 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14439 lt_cv_ld_force_load=yes
14440 else
14441 cat conftest.err >&5
14442 fi
14443 rm -f conftest.err libconftest.a conftest conftest.c
14444 rm -rf conftest.dSYM
14445
14446 fi
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14448 $as_echo "$lt_cv_ld_force_load" >&6; }
14449 case $host_os in
14450 rhapsody* | darwin1.[012])
14451 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14452 darwin1.*)
14453 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14454 darwin*) # darwin 5.x on
14455 # if running on 10.5 or later, the deployment target defaults
14456 # to the OS version, if on x86, and 10.4, the deployment
14457 # target defaults to 10.4. Don't you love it?
14458 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14459 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14460 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14461 10.[012]*)
14462 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14463 10.*)
14464 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14465 esac
14466 ;;
14467 esac
14468 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14469 _lt_dar_single_mod='$single_module'
14470 fi
14471 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14472 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14473 else
14474 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14475 fi
14476 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14477 _lt_dsymutil='~$DSYMUTIL $lib || :'
14478 else
14479 _lt_dsymutil=
14480 fi
14481 ;;
14482 esac
14483
14484 for ac_header in dlfcn.h
14485 do :
14486 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14487 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14488 cat >>confdefs.h <<_ACEOF
14489 #define HAVE_DLFCN_H 1
14490 _ACEOF
14491
14492 fi
14493 done
14494
14495
14496
14497
14498
14499 # Set options
14500
14501
14502
14503 enable_dlopen=no
14504
14505
14506 enable_win32_dll=no
14507
14508
14509 # Check whether --enable-shared was given.
14510 if test "${enable_shared+set}" = set; then :
14511 enableval=$enable_shared; p=${PACKAGE-default}
14512 case $enableval in
14513 yes) enable_shared=yes ;;
14514 no) enable_shared=no ;;
14515 *)
14516 enable_shared=no
14517 # Look at the argument we got. We use all the common list separators.
14518 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14519 for pkg in $enableval; do
14520 IFS="$lt_save_ifs"
14521 if test "X$pkg" = "X$p"; then
14522 enable_shared=yes
14523 fi
14524 done
14525 IFS="$lt_save_ifs"
14526 ;;
14527 esac
14528 else
14529 enable_shared=yes
14530 fi
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540 # Check whether --enable-static was given.
14541 if test "${enable_static+set}" = set; then :
14542 enableval=$enable_static; p=${PACKAGE-default}
14543 case $enableval in
14544 yes) enable_static=yes ;;
14545 no) enable_static=no ;;
14546 *)
14547 enable_static=no
14548 # Look at the argument we got. We use all the common list separators.
14549 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14550 for pkg in $enableval; do
14551 IFS="$lt_save_ifs"
14552 if test "X$pkg" = "X$p"; then
14553 enable_static=yes
14554 fi
14555 done
14556 IFS="$lt_save_ifs"
14557 ;;
14558 esac
14559 else
14560 enable_static=yes
14561 fi
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572 # Check whether --with-pic was given.
14573 if test "${with_pic+set}" = set; then :
14574 withval=$with_pic; pic_mode="$withval"
14575 else
14576 pic_mode=default
14577 fi
14578
14579
14580 test -z "$pic_mode" && pic_mode=default
14581
14582
14583
14584
14585
14586
14587
14588 # Check whether --enable-fast-install was given.
14589 if test "${enable_fast_install+set}" = set; then :
14590 enableval=$enable_fast_install; p=${PACKAGE-default}
14591 case $enableval in
14592 yes) enable_fast_install=yes ;;
14593 no) enable_fast_install=no ;;
14594 *)
14595 enable_fast_install=no
14596 # Look at the argument we got. We use all the common list separators.
14597 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14598 for pkg in $enableval; do
14599 IFS="$lt_save_ifs"
14600 if test "X$pkg" = "X$p"; then
14601 enable_fast_install=yes
14602 fi
14603 done
14604 IFS="$lt_save_ifs"
14605 ;;
14606 esac
14607 else
14608 enable_fast_install=yes
14609 fi
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621 # This can be used to rebuild libtool when needed
14622 LIBTOOL_DEPS="$ltmain"
14623
14624 # Always use our own libtool.
14625 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
14651
14652 test -z "$LN_S" && LN_S="ln -s"
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667 if test -n "${ZSH_VERSION+set}" ; then
14668 setopt NO_GLOB_SUBST
14669 fi
14670
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14672 $as_echo_n "checking for objdir... " >&6; }
14673 if test "${lt_cv_objdir+set}" = set; then :
14674 $as_echo_n "(cached) " >&6
14675 else
14676 rm -f .libs 2>/dev/null
14677 mkdir .libs 2>/dev/null
14678 if test -d .libs; then
14679 lt_cv_objdir=.libs
14680 else
14681 # MS-DOS does not allow filenames that begin with a dot.
14682 lt_cv_objdir=_libs
14683 fi
14684 rmdir .libs 2>/dev/null
14685 fi
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14687 $as_echo "$lt_cv_objdir" >&6; }
14688 objdir=$lt_cv_objdir
14689
14690
14691
14692
14693
14694 cat >>confdefs.h <<_ACEOF
14695 #define LT_OBJDIR "$lt_cv_objdir/"
14696 _ACEOF
14697
14698
14699
14700
14701 case $host_os in
14702 aix3*)
14703 # AIX sometimes has problems with the GCC collect2 program. For some
14704 # reason, if we set the COLLECT_NAMES environment variable, the problems
14705 # vanish in a puff of smoke.
14706 if test "X${COLLECT_NAMES+set}" != Xset; then
14707 COLLECT_NAMES=
14708 export COLLECT_NAMES
14709 fi
14710 ;;
14711 esac
14712
14713 # Global variables:
14714 ofile=libtool
14715 can_build_shared=yes
14716
14717 # All known linkers require a `.a' archive for static linking (except MSVC,
14718 # which needs '.lib').
14719 libext=a
14720
14721 with_gnu_ld="$lt_cv_prog_gnu_ld"
14722
14723 old_CC="$CC"
14724 old_CFLAGS="$CFLAGS"
14725
14726 # Set sane defaults for various variables
14727 test -z "$CC" && CC=cc
14728 test -z "$LTCC" && LTCC=$CC
14729 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14730 test -z "$LD" && LD=ld
14731 test -z "$ac_objext" && ac_objext=o
14732
14733 for cc_temp in $compiler""; do
14734 case $cc_temp in
14735 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14736 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14737 \-*) ;;
14738 *) break;;
14739 esac
14740 done
14741 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14742
14743
14744 # Only perform the check for file, if the check method requires it
14745 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14746 case $deplibs_check_method in
14747 file_magic*)
14748 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14750 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14751 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14752 $as_echo_n "(cached) " >&6
14753 else
14754 case $MAGIC_CMD in
14755 [\\/*] | ?:[\\/]*)
14756 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14757 ;;
14758 *)
14759 lt_save_MAGIC_CMD="$MAGIC_CMD"
14760 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14761 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14762 for ac_dir in $ac_dummy; do
14763 IFS="$lt_save_ifs"
14764 test -z "$ac_dir" && ac_dir=.
14765 if test -f $ac_dir/${ac_tool_prefix}file; then
14766 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14767 if test -n "$file_magic_test_file"; then
14768 case $deplibs_check_method in
14769 "file_magic "*)
14770 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14771 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14772 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14773 $EGREP "$file_magic_regex" > /dev/null; then
14774 :
14775 else
14776 cat <<_LT_EOF 1>&2
14777
14778 *** Warning: the command libtool uses to detect shared libraries,
14779 *** $file_magic_cmd, produces output that libtool cannot recognize.
14780 *** The result is that libtool may fail to recognize shared libraries
14781 *** as such. This will affect the creation of libtool libraries that
14782 *** depend on shared libraries, but programs linked with such libtool
14783 *** libraries will work regardless of this problem. Nevertheless, you
14784 *** may want to report the problem to your system manager and/or to
14785 *** bug-libtool@gnu.org
14786
14787 _LT_EOF
14788 fi ;;
14789 esac
14790 fi
14791 break
14792 fi
14793 done
14794 IFS="$lt_save_ifs"
14795 MAGIC_CMD="$lt_save_MAGIC_CMD"
14796 ;;
14797 esac
14798 fi
14799
14800 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14801 if test -n "$MAGIC_CMD"; then
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14803 $as_echo "$MAGIC_CMD" >&6; }
14804 else
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14806 $as_echo "no" >&6; }
14807 fi
14808
14809
14810
14811
14812
14813 if test -z "$lt_cv_path_MAGIC_CMD"; then
14814 if test -n "$ac_tool_prefix"; then
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14816 $as_echo_n "checking for file... " >&6; }
14817 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14818 $as_echo_n "(cached) " >&6
14819 else
14820 case $MAGIC_CMD in
14821 [\\/*] | ?:[\\/]*)
14822 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14823 ;;
14824 *)
14825 lt_save_MAGIC_CMD="$MAGIC_CMD"
14826 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14827 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14828 for ac_dir in $ac_dummy; do
14829 IFS="$lt_save_ifs"
14830 test -z "$ac_dir" && ac_dir=.
14831 if test -f $ac_dir/file; then
14832 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14833 if test -n "$file_magic_test_file"; then
14834 case $deplibs_check_method in
14835 "file_magic "*)
14836 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14837 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14838 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14839 $EGREP "$file_magic_regex" > /dev/null; then
14840 :
14841 else
14842 cat <<_LT_EOF 1>&2
14843
14844 *** Warning: the command libtool uses to detect shared libraries,
14845 *** $file_magic_cmd, produces output that libtool cannot recognize.
14846 *** The result is that libtool may fail to recognize shared libraries
14847 *** as such. This will affect the creation of libtool libraries that
14848 *** depend on shared libraries, but programs linked with such libtool
14849 *** libraries will work regardless of this problem. Nevertheless, you
14850 *** may want to report the problem to your system manager and/or to
14851 *** bug-libtool@gnu.org
14852
14853 _LT_EOF
14854 fi ;;
14855 esac
14856 fi
14857 break
14858 fi
14859 done
14860 IFS="$lt_save_ifs"
14861 MAGIC_CMD="$lt_save_MAGIC_CMD"
14862 ;;
14863 esac
14864 fi
14865
14866 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14867 if test -n "$MAGIC_CMD"; then
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14869 $as_echo "$MAGIC_CMD" >&6; }
14870 else
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14872 $as_echo "no" >&6; }
14873 fi
14874
14875
14876 else
14877 MAGIC_CMD=:
14878 fi
14879 fi
14880
14881 fi
14882 ;;
14883 esac
14884
14885 # Use C for the default configuration in the libtool script
14886
14887 lt_save_CC="$CC"
14888 ac_ext=c
14889 ac_cpp='$CPP $CPPFLAGS'
14890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14893
14894
14895 # Source file extension for C test sources.
14896 ac_ext=c
14897
14898 # Object file extension for compiled C test sources.
14899 objext=o
14900 objext=$objext
14901
14902 # Code to be used in simple compile tests
14903 lt_simple_compile_test_code="int some_variable = 0;"
14904
14905 # Code to be used in simple link tests
14906 lt_simple_link_test_code='int main(){return(0);}'
14907
14908
14909
14910
14911
14912
14913
14914 # If no C compiler was specified, use CC.
14915 LTCC=${LTCC-"$CC"}
14916
14917 # If no C compiler flags were specified, use CFLAGS.
14918 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14919
14920 # Allow CC to be a program name with arguments.
14921 compiler=$CC
14922
14923 # Save the default compiler, since it gets overwritten when the other
14924 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14925 compiler_DEFAULT=$CC
14926
14927 # save warnings/boilerplate of simple test code
14928 ac_outfile=conftest.$ac_objext
14929 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14930 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14931 _lt_compiler_boilerplate=`cat conftest.err`
14932 $RM conftest*
14933
14934 ac_outfile=conftest.$ac_objext
14935 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14936 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14937 _lt_linker_boilerplate=`cat conftest.err`
14938 $RM -r conftest*
14939
14940
14941 ## CAVEAT EMPTOR:
14942 ## There is no encapsulation within the following macros, do not change
14943 ## the running order or otherwise move them around unless you know exactly
14944 ## what you are doing...
14945 if test -n "$compiler"; then
14946
14947 lt_prog_compiler_no_builtin_flag=
14948
14949 if test "$GCC" = yes; then
14950 case $cc_basename in
14951 nvcc*)
14952 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14953 *)
14954 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14955 esac
14956
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14958 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14959 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14960 $as_echo_n "(cached) " >&6
14961 else
14962 lt_cv_prog_compiler_rtti_exceptions=no
14963 ac_outfile=conftest.$ac_objext
14964 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14965 lt_compiler_flag="-fno-rtti -fno-exceptions"
14966 # Insert the option either (1) after the last *FLAGS variable, or
14967 # (2) before a word containing "conftest.", or (3) at the end.
14968 # Note that $ac_compile itself does not contain backslashes and begins
14969 # with a dollar sign (not a hyphen), so the echo should work correctly.
14970 # The option is referenced via a variable to avoid confusing sed.
14971 lt_compile=`echo "$ac_compile" | $SED \
14972 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14973 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14974 -e 's:$: $lt_compiler_flag:'`
14975 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14976 (eval "$lt_compile" 2>conftest.err)
14977 ac_status=$?
14978 cat conftest.err >&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 if (exit $ac_status) && test -s "$ac_outfile"; then
14981 # The compiler can only warn and ignore the option if not recognized
14982 # So say no if there are warnings other than the usual output.
14983 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14984 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14985 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14986 lt_cv_prog_compiler_rtti_exceptions=yes
14987 fi
14988 fi
14989 $RM conftest*
14990
14991 fi
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14993 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14994
14995 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14996 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14997 else
14998 :
14999 fi
15000
15001 fi
15002
15003
15004
15005
15006
15007
15008 lt_prog_compiler_wl=
15009 lt_prog_compiler_pic=
15010 lt_prog_compiler_static=
15011
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15013 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15014
15015 if test "$GCC" = yes; then
15016 lt_prog_compiler_wl='-Wl,'
15017 lt_prog_compiler_static='-static'
15018
15019 case $host_os in
15020 aix*)
15021 # All AIX code is PIC.
15022 if test "$host_cpu" = ia64; then
15023 # AIX 5 now supports IA64 processor
15024 lt_prog_compiler_static='-Bstatic'
15025 fi
15026 ;;
15027
15028 amigaos*)
15029 case $host_cpu in
15030 powerpc)
15031 # see comment about AmigaOS4 .so support
15032 lt_prog_compiler_pic='-fPIC'
15033 ;;
15034 m68k)
15035 # FIXME: we need at least 68020 code to build shared libraries, but
15036 # adding the `-m68020' flag to GCC prevents building anything better,
15037 # like `-m68040'.
15038 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15039 ;;
15040 esac
15041 ;;
15042
15043 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15044 # PIC is the default for these OSes.
15045 ;;
15046
15047 mingw* | cygwin* | pw32* | os2* | cegcc*)
15048 # This hack is so that the source file can tell whether it is being
15049 # built for inclusion in a dll (and should export symbols for example).
15050 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15051 # (--disable-auto-import) libraries
15052 lt_prog_compiler_pic='-DDLL_EXPORT'
15053 ;;
15054
15055 darwin* | rhapsody*)
15056 # PIC is the default on this platform
15057 # Common symbols not allowed in MH_DYLIB files
15058 lt_prog_compiler_pic='-fno-common'
15059 ;;
15060
15061 haiku*)
15062 # PIC is the default for Haiku.
15063 # The "-static" flag exists, but is broken.
15064 lt_prog_compiler_static=
15065 ;;
15066
15067 hpux*)
15068 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15069 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15070 # sets the default TLS model and affects inlining.
15071 case $host_cpu in
15072 hppa*64*)
15073 # +Z the default
15074 ;;
15075 *)
15076 lt_prog_compiler_pic='-fPIC'
15077 ;;
15078 esac
15079 ;;
15080
15081 interix[3-9]*)
15082 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15083 # Instead, we relocate shared libraries at runtime.
15084 ;;
15085
15086 msdosdjgpp*)
15087 # Just because we use GCC doesn't mean we suddenly get shared libraries
15088 # on systems that don't support them.
15089 lt_prog_compiler_can_build_shared=no
15090 enable_shared=no
15091 ;;
15092
15093 *nto* | *qnx*)
15094 # QNX uses GNU C++, but need to define -shared option too, otherwise
15095 # it will coredump.
15096 lt_prog_compiler_pic='-fPIC -shared'
15097 ;;
15098
15099 sysv4*MP*)
15100 if test -d /usr/nec; then
15101 lt_prog_compiler_pic=-Kconform_pic
15102 fi
15103 ;;
15104
15105 *)
15106 lt_prog_compiler_pic='-fPIC'
15107 ;;
15108 esac
15109
15110 case $cc_basename in
15111 nvcc*) # Cuda Compiler Driver 2.2
15112 lt_prog_compiler_wl='-Xlinker '
15113 lt_prog_compiler_pic='-Xcompiler -fPIC'
15114 ;;
15115 esac
15116 else
15117 # PORTME Check for flag to pass linker flags through the system compiler.
15118 case $host_os in
15119 aix*)
15120 lt_prog_compiler_wl='-Wl,'
15121 if test "$host_cpu" = ia64; then
15122 # AIX 5 now supports IA64 processor
15123 lt_prog_compiler_static='-Bstatic'
15124 else
15125 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15126 fi
15127 ;;
15128
15129 mingw* | cygwin* | pw32* | os2* | cegcc*)
15130 # This hack is so that the source file can tell whether it is being
15131 # built for inclusion in a dll (and should export symbols for example).
15132 lt_prog_compiler_pic='-DDLL_EXPORT'
15133 ;;
15134
15135 hpux9* | hpux10* | hpux11*)
15136 lt_prog_compiler_wl='-Wl,'
15137 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15138 # not for PA HP-UX.
15139 case $host_cpu in
15140 hppa*64*|ia64*)
15141 # +Z the default
15142 ;;
15143 *)
15144 lt_prog_compiler_pic='+Z'
15145 ;;
15146 esac
15147 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15148 lt_prog_compiler_static='${wl}-a ${wl}archive'
15149 ;;
15150
15151 irix5* | irix6* | nonstopux*)
15152 lt_prog_compiler_wl='-Wl,'
15153 # PIC (with -KPIC) is the default.
15154 lt_prog_compiler_static='-non_shared'
15155 ;;
15156
15157 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15158 case $cc_basename in
15159 # old Intel for x86_64 which still supported -KPIC.
15160 ecc*)
15161 lt_prog_compiler_wl='-Wl,'
15162 lt_prog_compiler_pic='-KPIC'
15163 lt_prog_compiler_static='-static'
15164 ;;
15165 # icc used to be incompatible with GCC.
15166 # ICC 10 doesn't accept -KPIC any more.
15167 icc* | ifort*)
15168 lt_prog_compiler_wl='-Wl,'
15169 lt_prog_compiler_pic='-fPIC'
15170 lt_prog_compiler_static='-static'
15171 ;;
15172 # Lahey Fortran 8.1.
15173 lf95*)
15174 lt_prog_compiler_wl='-Wl,'
15175 lt_prog_compiler_pic='--shared'
15176 lt_prog_compiler_static='--static'
15177 ;;
15178 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15179 # Portland Group compilers (*not* the Pentium gcc compiler,
15180 # which looks to be a dead project)
15181 lt_prog_compiler_wl='-Wl,'
15182 lt_prog_compiler_pic='-fpic'
15183 lt_prog_compiler_static='-Bstatic'
15184 ;;
15185 ccc*)
15186 lt_prog_compiler_wl='-Wl,'
15187 # All Alpha code is PIC.
15188 lt_prog_compiler_static='-non_shared'
15189 ;;
15190 xl* | bgxl* | bgf* | mpixl*)
15191 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15192 lt_prog_compiler_wl='-Wl,'
15193 lt_prog_compiler_pic='-qpic'
15194 lt_prog_compiler_static='-qstaticlink'
15195 ;;
15196 *)
15197 case `$CC -V 2>&1 | sed 5q` in
15198 *Sun\ F* | *Sun*Fortran*)
15199 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15200 lt_prog_compiler_pic='-KPIC'
15201 lt_prog_compiler_static='-Bstatic'
15202 lt_prog_compiler_wl=''
15203 ;;
15204 *Sun\ C*)
15205 # Sun C 5.9
15206 lt_prog_compiler_pic='-KPIC'
15207 lt_prog_compiler_static='-Bstatic'
15208 lt_prog_compiler_wl='-Wl,'
15209 ;;
15210 esac
15211 ;;
15212 esac
15213 ;;
15214
15215 newsos6)
15216 lt_prog_compiler_pic='-KPIC'
15217 lt_prog_compiler_static='-Bstatic'
15218 ;;
15219
15220 *nto* | *qnx*)
15221 # QNX uses GNU C++, but need to define -shared option too, otherwise
15222 # it will coredump.
15223 lt_prog_compiler_pic='-fPIC -shared'
15224 ;;
15225
15226 osf3* | osf4* | osf5*)
15227 lt_prog_compiler_wl='-Wl,'
15228 # All OSF/1 code is PIC.
15229 lt_prog_compiler_static='-non_shared'
15230 ;;
15231
15232 rdos*)
15233 lt_prog_compiler_static='-non_shared'
15234 ;;
15235
15236 solaris*)
15237 lt_prog_compiler_pic='-KPIC'
15238 lt_prog_compiler_static='-Bstatic'
15239 case $cc_basename in
15240 f77* | f90* | f95*)
15241 lt_prog_compiler_wl='-Qoption ld ';;
15242 *)
15243 lt_prog_compiler_wl='-Wl,';;
15244 esac
15245 ;;
15246
15247 sunos4*)
15248 lt_prog_compiler_wl='-Qoption ld '
15249 lt_prog_compiler_pic='-PIC'
15250 lt_prog_compiler_static='-Bstatic'
15251 ;;
15252
15253 sysv4 | sysv4.2uw2* | sysv4.3*)
15254 lt_prog_compiler_wl='-Wl,'
15255 lt_prog_compiler_pic='-KPIC'
15256 lt_prog_compiler_static='-Bstatic'
15257 ;;
15258
15259 sysv4*MP*)
15260 if test -d /usr/nec ;then
15261 lt_prog_compiler_pic='-Kconform_pic'
15262 lt_prog_compiler_static='-Bstatic'
15263 fi
15264 ;;
15265
15266 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15267 lt_prog_compiler_wl='-Wl,'
15268 lt_prog_compiler_pic='-KPIC'
15269 lt_prog_compiler_static='-Bstatic'
15270 ;;
15271
15272 unicos*)
15273 lt_prog_compiler_wl='-Wl,'
15274 lt_prog_compiler_can_build_shared=no
15275 ;;
15276
15277 uts4*)
15278 lt_prog_compiler_pic='-pic'
15279 lt_prog_compiler_static='-Bstatic'
15280 ;;
15281
15282 *)
15283 lt_prog_compiler_can_build_shared=no
15284 ;;
15285 esac
15286 fi
15287
15288 case $host_os in
15289 # For platforms which do not support PIC, -DPIC is meaningless:
15290 *djgpp*)
15291 lt_prog_compiler_pic=
15292 ;;
15293 *)
15294 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15295 ;;
15296 esac
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15298 $as_echo "$lt_prog_compiler_pic" >&6; }
15299
15300
15301
15302
15303
15304
15305 #
15306 # Check to make sure the PIC flag actually works.
15307 #
15308 if test -n "$lt_prog_compiler_pic"; then
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15310 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15311 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15312 $as_echo_n "(cached) " >&6
15313 else
15314 lt_cv_prog_compiler_pic_works=no
15315 ac_outfile=conftest.$ac_objext
15316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15317 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15318 # Insert the option either (1) after the last *FLAGS variable, or
15319 # (2) before a word containing "conftest.", or (3) at the end.
15320 # Note that $ac_compile itself does not contain backslashes and begins
15321 # with a dollar sign (not a hyphen), so the echo should work correctly.
15322 # The option is referenced via a variable to avoid confusing sed.
15323 lt_compile=`echo "$ac_compile" | $SED \
15324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15326 -e 's:$: $lt_compiler_flag:'`
15327 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15328 (eval "$lt_compile" 2>conftest.err)
15329 ac_status=$?
15330 cat conftest.err >&5
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 if (exit $ac_status) && test -s "$ac_outfile"; then
15333 # The compiler can only warn and ignore the option if not recognized
15334 # So say no if there are warnings other than the usual output.
15335 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15337 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15338 lt_cv_prog_compiler_pic_works=yes
15339 fi
15340 fi
15341 $RM conftest*
15342
15343 fi
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15345 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15346
15347 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15348 case $lt_prog_compiler_pic in
15349 "" | " "*) ;;
15350 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15351 esac
15352 else
15353 lt_prog_compiler_pic=
15354 lt_prog_compiler_can_build_shared=no
15355 fi
15356
15357 fi
15358
15359
15360
15361
15362
15363
15364 #
15365 # Check to make sure the static flag actually works.
15366 #
15367 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15369 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15370 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15371 $as_echo_n "(cached) " >&6
15372 else
15373 lt_cv_prog_compiler_static_works=no
15374 save_LDFLAGS="$LDFLAGS"
15375 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15376 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15377 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15378 # The linker can only warn and ignore the option if not recognized
15379 # So say no if there are warnings
15380 if test -s conftest.err; then
15381 # Append any errors to the config.log.
15382 cat conftest.err 1>&5
15383 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15385 if diff conftest.exp conftest.er2 >/dev/null; then
15386 lt_cv_prog_compiler_static_works=yes
15387 fi
15388 else
15389 lt_cv_prog_compiler_static_works=yes
15390 fi
15391 fi
15392 $RM -r conftest*
15393 LDFLAGS="$save_LDFLAGS"
15394
15395 fi
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15397 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15398
15399 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15400 :
15401 else
15402 lt_prog_compiler_static=
15403 fi
15404
15405
15406
15407
15408
15409
15410
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15412 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15413 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15414 $as_echo_n "(cached) " >&6
15415 else
15416 lt_cv_prog_compiler_c_o=no
15417 $RM -r conftest 2>/dev/null
15418 mkdir conftest
15419 cd conftest
15420 mkdir out
15421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15422
15423 lt_compiler_flag="-o out/conftest2.$ac_objext"
15424 # Insert the option either (1) after the last *FLAGS variable, or
15425 # (2) before a word containing "conftest.", or (3) at the end.
15426 # Note that $ac_compile itself does not contain backslashes and begins
15427 # with a dollar sign (not a hyphen), so the echo should work correctly.
15428 lt_compile=`echo "$ac_compile" | $SED \
15429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15431 -e 's:$: $lt_compiler_flag:'`
15432 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15433 (eval "$lt_compile" 2>out/conftest.err)
15434 ac_status=$?
15435 cat out/conftest.err >&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15438 then
15439 # The compiler can only warn and ignore the option if not recognized
15440 # So say no if there are warnings
15441 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15442 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15443 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15444 lt_cv_prog_compiler_c_o=yes
15445 fi
15446 fi
15447 chmod u+w . 2>&5
15448 $RM conftest*
15449 # SGI C++ compiler will create directory out/ii_files/ for
15450 # template instantiation
15451 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15452 $RM out/* && rmdir out
15453 cd ..
15454 $RM -r conftest
15455 $RM conftest*
15456
15457 fi
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15459 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15460
15461
15462
15463
15464
15465
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15467 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15468 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15469 $as_echo_n "(cached) " >&6
15470 else
15471 lt_cv_prog_compiler_c_o=no
15472 $RM -r conftest 2>/dev/null
15473 mkdir conftest
15474 cd conftest
15475 mkdir out
15476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15477
15478 lt_compiler_flag="-o out/conftest2.$ac_objext"
15479 # Insert the option either (1) after the last *FLAGS variable, or
15480 # (2) before a word containing "conftest.", or (3) at the end.
15481 # Note that $ac_compile itself does not contain backslashes and begins
15482 # with a dollar sign (not a hyphen), so the echo should work correctly.
15483 lt_compile=`echo "$ac_compile" | $SED \
15484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15486 -e 's:$: $lt_compiler_flag:'`
15487 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15488 (eval "$lt_compile" 2>out/conftest.err)
15489 ac_status=$?
15490 cat out/conftest.err >&5
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15493 then
15494 # The compiler can only warn and ignore the option if not recognized
15495 # So say no if there are warnings
15496 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15497 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15498 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15499 lt_cv_prog_compiler_c_o=yes
15500 fi
15501 fi
15502 chmod u+w . 2>&5
15503 $RM conftest*
15504 # SGI C++ compiler will create directory out/ii_files/ for
15505 # template instantiation
15506 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15507 $RM out/* && rmdir out
15508 cd ..
15509 $RM -r conftest
15510 $RM conftest*
15511
15512 fi
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15514 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15515
15516
15517
15518
15519 hard_links="nottested"
15520 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15521 # do not overwrite the value of need_locks provided by the user
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15523 $as_echo_n "checking if we can lock with hard links... " >&6; }
15524 hard_links=yes
15525 $RM conftest*
15526 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15527 touch conftest.a
15528 ln conftest.a conftest.b 2>&5 || hard_links=no
15529 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15531 $as_echo "$hard_links" >&6; }
15532 if test "$hard_links" = no; then
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15534 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15535 need_locks=warn
15536 fi
15537 else
15538 need_locks=no
15539 fi
15540
15541
15542
15543
15544
15545
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15547 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15548
15549 runpath_var=
15550 allow_undefined_flag=
15551 always_export_symbols=no
15552 archive_cmds=
15553 archive_expsym_cmds=
15554 compiler_needs_object=no
15555 enable_shared_with_static_runtimes=no
15556 export_dynamic_flag_spec=
15557 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15558 hardcode_automatic=no
15559 hardcode_direct=no
15560 hardcode_direct_absolute=no
15561 hardcode_libdir_flag_spec=
15562 hardcode_libdir_flag_spec_ld=
15563 hardcode_libdir_separator=
15564 hardcode_minus_L=no
15565 hardcode_shlibpath_var=unsupported
15566 inherit_rpath=no
15567 link_all_deplibs=unknown
15568 module_cmds=
15569 module_expsym_cmds=
15570 old_archive_from_new_cmds=
15571 old_archive_from_expsyms_cmds=
15572 thread_safe_flag_spec=
15573 whole_archive_flag_spec=
15574 # include_expsyms should be a list of space-separated symbols to be *always*
15575 # included in the symbol list
15576 include_expsyms=
15577 # exclude_expsyms can be an extended regexp of symbols to exclude
15578 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15579 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15580 # as well as any symbol that contains `d'.
15581 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15582 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15583 # platforms (ab)use it in PIC code, but their linkers get confused if
15584 # the symbol is explicitly referenced. Since portable code cannot
15585 # rely on this symbol name, it's probably fine to never include it in
15586 # preloaded symbol tables.
15587 # Exclude shared library initialization/finalization symbols.
15588 extract_expsyms_cmds=
15589
15590 case $host_os in
15591 cygwin* | mingw* | pw32* | cegcc*)
15592 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15593 # When not using gcc, we currently assume that we are using
15594 # Microsoft Visual C++.
15595 if test "$GCC" != yes; then
15596 with_gnu_ld=no
15597 fi
15598 ;;
15599 interix*)
15600 # we just hope/assume this is gcc and not c89 (= MSVC++)
15601 with_gnu_ld=yes
15602 ;;
15603 openbsd*)
15604 with_gnu_ld=no
15605 ;;
15606 esac
15607
15608 ld_shlibs=yes
15609
15610 # On some targets, GNU ld is compatible enough with the native linker
15611 # that we're better off using the native interface for both.
15612 lt_use_gnu_ld_interface=no
15613 if test "$with_gnu_ld" = yes; then
15614 case $host_os in
15615 aix*)
15616 # The AIX port of GNU ld has always aspired to compatibility
15617 # with the native linker. However, as the warning in the GNU ld
15618 # block says, versions before 2.19.5* couldn't really create working
15619 # shared libraries, regardless of the interface used.
15620 case `$LD -v 2>&1` in
15621 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15622 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15623 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15624 *)
15625 lt_use_gnu_ld_interface=yes
15626 ;;
15627 esac
15628 ;;
15629 *)
15630 lt_use_gnu_ld_interface=yes
15631 ;;
15632 esac
15633 fi
15634
15635 if test "$lt_use_gnu_ld_interface" = yes; then
15636 # If archive_cmds runs LD, not CC, wlarc should be empty
15637 wlarc='${wl}'
15638
15639 # Set some defaults for GNU ld with shared library support. These
15640 # are reset later if shared libraries are not supported. Putting them
15641 # here allows them to be overridden if necessary.
15642 runpath_var=LD_RUN_PATH
15643 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15644 export_dynamic_flag_spec='${wl}--export-dynamic'
15645 # ancient GNU ld didn't support --whole-archive et. al.
15646 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15647 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15648 else
15649 whole_archive_flag_spec=
15650 fi
15651 supports_anon_versioning=no
15652 case `$LD -v 2>&1` in
15653 *GNU\ gold*) supports_anon_versioning=yes ;;
15654 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15655 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15656 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15657 *\ 2.11.*) ;; # other 2.11 versions
15658 *) supports_anon_versioning=yes ;;
15659 esac
15660
15661 # See if GNU ld supports shared libraries.
15662 case $host_os in
15663 aix[3-9]*)
15664 # On AIX/PPC, the GNU linker is very broken
15665 if test "$host_cpu" != ia64; then
15666 ld_shlibs=no
15667 cat <<_LT_EOF 1>&2
15668
15669 *** Warning: the GNU linker, at least up to release 2.19, is reported
15670 *** to be unable to reliably create shared libraries on AIX.
15671 *** Therefore, libtool is disabling shared libraries support. If you
15672 *** really care for shared libraries, you may want to install binutils
15673 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15674 *** You will then need to restart the configuration process.
15675
15676 _LT_EOF
15677 fi
15678 ;;
15679
15680 amigaos*)
15681 case $host_cpu in
15682 powerpc)
15683 # see comment about AmigaOS4 .so support
15684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15685 archive_expsym_cmds=''
15686 ;;
15687 m68k)
15688 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)'
15689 hardcode_libdir_flag_spec='-L$libdir'
15690 hardcode_minus_L=yes
15691 ;;
15692 esac
15693 ;;
15694
15695 beos*)
15696 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15697 allow_undefined_flag=unsupported
15698 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15699 # support --undefined. This deserves some investigation. FIXME
15700 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15701 else
15702 ld_shlibs=no
15703 fi
15704 ;;
15705
15706 cygwin* | mingw* | pw32* | cegcc*)
15707 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15708 # as there is no search path for DLLs.
15709 hardcode_libdir_flag_spec='-L$libdir'
15710 export_dynamic_flag_spec='${wl}--export-all-symbols'
15711 allow_undefined_flag=unsupported
15712 always_export_symbols=no
15713 enable_shared_with_static_runtimes=yes
15714 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15715
15716 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15717 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15718 # If the export-symbols file already is a .def file (1st line
15719 # is EXPORTS), use it as is; otherwise, prepend...
15720 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15721 cp $export_symbols $output_objdir/$soname.def;
15722 else
15723 echo EXPORTS > $output_objdir/$soname.def;
15724 cat $export_symbols >> $output_objdir/$soname.def;
15725 fi~
15726 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15727 else
15728 ld_shlibs=no
15729 fi
15730 ;;
15731
15732 haiku*)
15733 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15734 link_all_deplibs=yes
15735 ;;
15736
15737 interix[3-9]*)
15738 hardcode_direct=no
15739 hardcode_shlibpath_var=no
15740 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15741 export_dynamic_flag_spec='${wl}-E'
15742 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15743 # Instead, shared libraries are loaded at an image base (0x10000000 by
15744 # default) and relocated if they conflict, which is a slow very memory
15745 # consuming and fragmenting process. To avoid this, we pick a random,
15746 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15747 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15748 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15749 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'
15750 ;;
15751
15752 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15753 tmp_diet=no
15754 if test "$host_os" = linux-dietlibc; then
15755 case $cc_basename in
15756 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15757 esac
15758 fi
15759 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15760 && test "$tmp_diet" = no
15761 then
15762 tmp_addflag=
15763 tmp_sharedflag='-shared'
15764 case $cc_basename,$host_cpu in
15765 pgcc*) # Portland Group C compiler
15766 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'
15767 tmp_addflag=' $pic_flag'
15768 ;;
15769 pgf77* | pgf90* | pgf95* | pgfortran*)
15770 # Portland Group f77 and f90 compilers
15771 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'
15772 tmp_addflag=' $pic_flag -Mnomain' ;;
15773 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15774 tmp_addflag=' -i_dynamic' ;;
15775 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15776 tmp_addflag=' -i_dynamic -nofor_main' ;;
15777 ifc* | ifort*) # Intel Fortran compiler
15778 tmp_addflag=' -nofor_main' ;;
15779 lf95*) # Lahey Fortran 8.1
15780 whole_archive_flag_spec=
15781 tmp_sharedflag='--shared' ;;
15782 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15783 tmp_sharedflag='-qmkshrobj'
15784 tmp_addflag= ;;
15785 nvcc*) # Cuda Compiler Driver 2.2
15786 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'
15787 compiler_needs_object=yes
15788 ;;
15789 esac
15790 case `$CC -V 2>&1 | sed 5q` in
15791 *Sun\ C*) # Sun C 5.9
15792 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'
15793 compiler_needs_object=yes
15794 tmp_sharedflag='-G' ;;
15795 *Sun\ F*) # Sun Fortran 8.3
15796 tmp_sharedflag='-G' ;;
15797 esac
15798 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15799
15800 if test "x$supports_anon_versioning" = xyes; then
15801 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15802 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15803 echo "local: *; };" >> $output_objdir/$libname.ver~
15804 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15805 fi
15806
15807 case $cc_basename in
15808 xlf* | bgf* | bgxlf* | mpixlf*)
15809 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15810 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15811 hardcode_libdir_flag_spec=
15812 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15813 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15814 if test "x$supports_anon_versioning" = xyes; then
15815 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15816 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15817 echo "local: *; };" >> $output_objdir/$libname.ver~
15818 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15819 fi
15820 ;;
15821 esac
15822 else
15823 ld_shlibs=no
15824 fi
15825 ;;
15826
15827 netbsd*)
15828 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15829 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15830 wlarc=
15831 else
15832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15833 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15834 fi
15835 ;;
15836
15837 solaris*)
15838 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15839 ld_shlibs=no
15840 cat <<_LT_EOF 1>&2
15841
15842 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15843 *** create shared libraries on Solaris systems. Therefore, libtool
15844 *** is disabling shared libraries support. We urge you to upgrade GNU
15845 *** binutils to release 2.9.1 or newer. Another option is to modify
15846 *** your PATH or compiler configuration so that the native linker is
15847 *** used, and then restart.
15848
15849 _LT_EOF
15850 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15852 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15853 else
15854 ld_shlibs=no
15855 fi
15856 ;;
15857
15858 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15859 case `$LD -v 2>&1` in
15860 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15861 ld_shlibs=no
15862 cat <<_LT_EOF 1>&2
15863
15864 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15865 *** reliably create shared libraries on SCO systems. Therefore, libtool
15866 *** is disabling shared libraries support. We urge you to upgrade GNU
15867 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15868 *** your PATH or compiler configuration so that the native linker is
15869 *** used, and then restart.
15870
15871 _LT_EOF
15872 ;;
15873 *)
15874 # For security reasons, it is highly recommended that you always
15875 # use absolute paths for naming shared libraries, and exclude the
15876 # DT_RUNPATH tag from executables and libraries. But doing so
15877 # requires that you compile everything twice, which is a pain.
15878 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15880 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15881 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15882 else
15883 ld_shlibs=no
15884 fi
15885 ;;
15886 esac
15887 ;;
15888
15889 sunos4*)
15890 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15891 wlarc=
15892 hardcode_direct=yes
15893 hardcode_shlibpath_var=no
15894 ;;
15895
15896 *)
15897 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15899 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15900 else
15901 ld_shlibs=no
15902 fi
15903 ;;
15904 esac
15905
15906 if test "$ld_shlibs" = no; then
15907 runpath_var=
15908 hardcode_libdir_flag_spec=
15909 export_dynamic_flag_spec=
15910 whole_archive_flag_spec=
15911 fi
15912 else
15913 # PORTME fill in a description of your system's linker (not GNU ld)
15914 case $host_os in
15915 aix3*)
15916 allow_undefined_flag=unsupported
15917 always_export_symbols=yes
15918 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'
15919 # Note: this linker hardcodes the directories in LIBPATH if there
15920 # are no directories specified by -L.
15921 hardcode_minus_L=yes
15922 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15923 # Neither direct hardcoding nor static linking is supported with a
15924 # broken collect2.
15925 hardcode_direct=unsupported
15926 fi
15927 ;;
15928
15929 aix[4-9]*)
15930 if test "$host_cpu" = ia64; then
15931 # On IA64, the linker does run time linking by default, so we don't
15932 # have to do anything special.
15933 aix_use_runtimelinking=no
15934 exp_sym_flag='-Bexport'
15935 no_entry_flag=""
15936 else
15937 # If we're using GNU nm, then we don't want the "-C" option.
15938 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15939 # Also, AIX nm treats weak defined symbols like other global
15940 # defined symbols, whereas GNU nm marks them as "W".
15941 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15942 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'
15943 else
15944 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'
15945 fi
15946 aix_use_runtimelinking=no
15947
15948 # Test if we are trying to use run time linking or normal
15949 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15950 # need to do runtime linking.
15951 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15952 for ld_flag in $LDFLAGS; do
15953 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15954 aix_use_runtimelinking=yes
15955 break
15956 fi
15957 done
15958 ;;
15959 esac
15960
15961 exp_sym_flag='-bexport'
15962 no_entry_flag='-bnoentry'
15963 fi
15964
15965 # When large executables or shared objects are built, AIX ld can
15966 # have problems creating the table of contents. If linking a library
15967 # or program results in "error TOC overflow" add -mminimal-toc to
15968 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15969 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15970
15971 archive_cmds=''
15972 hardcode_direct=yes
15973 hardcode_direct_absolute=yes
15974 hardcode_libdir_separator=':'
15975 link_all_deplibs=yes
15976 file_list_spec='${wl}-f,'
15977
15978 if test "$GCC" = yes; then
15979 case $host_os in aix4.[012]|aix4.[012].*)
15980 # We only want to do this on AIX 4.2 and lower, the check
15981 # below for broken collect2 doesn't work under 4.3+
15982 collect2name=`${CC} -print-prog-name=collect2`
15983 if test -f "$collect2name" &&
15984 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15985 then
15986 # We have reworked collect2
15987 :
15988 else
15989 # We have old collect2
15990 hardcode_direct=unsupported
15991 # It fails to find uninstalled libraries when the uninstalled
15992 # path is not listed in the libpath. Setting hardcode_minus_L
15993 # to unsupported forces relinking
15994 hardcode_minus_L=yes
15995 hardcode_libdir_flag_spec='-L$libdir'
15996 hardcode_libdir_separator=
15997 fi
15998 ;;
15999 esac
16000 shared_flag='-shared'
16001 if test "$aix_use_runtimelinking" = yes; then
16002 shared_flag="$shared_flag "'${wl}-G'
16003 fi
16004 else
16005 # not using gcc
16006 if test "$host_cpu" = ia64; then
16007 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16008 # chokes on -Wl,-G. The following line is correct:
16009 shared_flag='-G'
16010 else
16011 if test "$aix_use_runtimelinking" = yes; then
16012 shared_flag='${wl}-G'
16013 else
16014 shared_flag='${wl}-bM:SRE'
16015 fi
16016 fi
16017 fi
16018
16019 export_dynamic_flag_spec='${wl}-bexpall'
16020 # It seems that -bexpall does not export symbols beginning with
16021 # underscore (_), so it is better to generate a list of symbols to export.
16022 always_export_symbols=yes
16023 if test "$aix_use_runtimelinking" = yes; then
16024 # Warning - without using the other runtime loading flags (-brtl),
16025 # -berok will link without error, but may produce a broken library.
16026 allow_undefined_flag='-berok'
16027 # Determine the default libpath from the value encoded in an
16028 # empty executable.
16029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16030 /* end confdefs.h. */
16031
16032 int
16033 main ()
16034 {
16035
16036 ;
16037 return 0;
16038 }
16039 _ACEOF
16040 if ac_fn_c_try_link "$LINENO"; then :
16041
16042 lt_aix_libpath_sed='
16043 /Import File Strings/,/^$/ {
16044 /^0/ {
16045 s/^0 *\(.*\)$/\1/
16046 p
16047 }
16048 }'
16049 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16050 # Check for a 64-bit object if we didn't find anything.
16051 if test -z "$aix_libpath"; then
16052 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16053 fi
16054 fi
16055 rm -f core conftest.err conftest.$ac_objext \
16056 conftest$ac_exeext conftest.$ac_ext
16057 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16058
16059 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16060 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"
16061 else
16062 if test "$host_cpu" = ia64; then
16063 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16064 allow_undefined_flag="-z nodefs"
16065 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"
16066 else
16067 # Determine the default libpath from the value encoded in an
16068 # empty executable.
16069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16070 /* end confdefs.h. */
16071
16072 int
16073 main ()
16074 {
16075
16076 ;
16077 return 0;
16078 }
16079 _ACEOF
16080 if ac_fn_c_try_link "$LINENO"; then :
16081
16082 lt_aix_libpath_sed='
16083 /Import File Strings/,/^$/ {
16084 /^0/ {
16085 s/^0 *\(.*\)$/\1/
16086 p
16087 }
16088 }'
16089 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16090 # Check for a 64-bit object if we didn't find anything.
16091 if test -z "$aix_libpath"; then
16092 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16093 fi
16094 fi
16095 rm -f core conftest.err conftest.$ac_objext \
16096 conftest$ac_exeext conftest.$ac_ext
16097 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16098
16099 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16100 # Warning - without using the other run time loading flags,
16101 # -berok will link without error, but may produce a broken library.
16102 no_undefined_flag=' ${wl}-bernotok'
16103 allow_undefined_flag=' ${wl}-berok'
16104 if test "$with_gnu_ld" = yes; then
16105 # We only use this code for GNU lds that support --whole-archive.
16106 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16107 else
16108 # Exported symbols can be pulled into shared objects from archives
16109 whole_archive_flag_spec='$convenience'
16110 fi
16111 archive_cmds_need_lc=yes
16112 # This is similar to how AIX traditionally builds its shared libraries.
16113 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'
16114 fi
16115 fi
16116 ;;
16117
16118 amigaos*)
16119 case $host_cpu in
16120 powerpc)
16121 # see comment about AmigaOS4 .so support
16122 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16123 archive_expsym_cmds=''
16124 ;;
16125 m68k)
16126 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)'
16127 hardcode_libdir_flag_spec='-L$libdir'
16128 hardcode_minus_L=yes
16129 ;;
16130 esac
16131 ;;
16132
16133 bsdi[45]*)
16134 export_dynamic_flag_spec=-rdynamic
16135 ;;
16136
16137 cygwin* | mingw* | pw32* | cegcc*)
16138 # When not using gcc, we currently assume that we are using
16139 # Microsoft Visual C++.
16140 # hardcode_libdir_flag_spec is actually meaningless, as there is
16141 # no search path for DLLs.
16142 hardcode_libdir_flag_spec=' '
16143 allow_undefined_flag=unsupported
16144 # Tell ltmain to make .lib files, not .a files.
16145 libext=lib
16146 # Tell ltmain to make .dll files, not .so files.
16147 shrext_cmds=".dll"
16148 # FIXME: Setting linknames here is a bad hack.
16149 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16150 # The linker will automatically build a .lib file if we build a DLL.
16151 old_archive_from_new_cmds='true'
16152 # FIXME: Should let the user specify the lib program.
16153 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16154 fix_srcfile_path='`cygpath -w "$srcfile"`'
16155 enable_shared_with_static_runtimes=yes
16156 ;;
16157
16158 darwin* | rhapsody*)
16159
16160
16161 archive_cmds_need_lc=no
16162 hardcode_direct=no
16163 hardcode_automatic=yes
16164 hardcode_shlibpath_var=unsupported
16165 if test "$lt_cv_ld_force_load" = "yes"; then
16166 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\"`'
16167 else
16168 whole_archive_flag_spec=''
16169 fi
16170 link_all_deplibs=yes
16171 allow_undefined_flag="$_lt_dar_allow_undefined"
16172 case $cc_basename in
16173 ifort*) _lt_dar_can_shared=yes ;;
16174 *) _lt_dar_can_shared=$GCC ;;
16175 esac
16176 if test "$_lt_dar_can_shared" = "yes"; then
16177 output_verbose_link_cmd=func_echo_all
16178 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16179 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16180 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}"
16181 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}"
16182
16183 else
16184 ld_shlibs=no
16185 fi
16186
16187 ;;
16188
16189 dgux*)
16190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16191 hardcode_libdir_flag_spec='-L$libdir'
16192 hardcode_shlibpath_var=no
16193 ;;
16194
16195 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16196 # support. Future versions do this automatically, but an explicit c++rt0.o
16197 # does not break anything, and helps significantly (at the cost of a little
16198 # extra space).
16199 freebsd2.2*)
16200 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16201 hardcode_libdir_flag_spec='-R$libdir'
16202 hardcode_direct=yes
16203 hardcode_shlibpath_var=no
16204 ;;
16205
16206 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16207 freebsd2.*)
16208 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16209 hardcode_direct=yes
16210 hardcode_minus_L=yes
16211 hardcode_shlibpath_var=no
16212 ;;
16213
16214 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16215 freebsd* | dragonfly*)
16216 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16217 hardcode_libdir_flag_spec='-R$libdir'
16218 hardcode_direct=yes
16219 hardcode_shlibpath_var=no
16220 ;;
16221
16222 hpux9*)
16223 if test "$GCC" = yes; then
16224 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'
16225 else
16226 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'
16227 fi
16228 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16229 hardcode_libdir_separator=:
16230 hardcode_direct=yes
16231
16232 # hardcode_minus_L: Not really in the search PATH,
16233 # but as the default location of the library.
16234 hardcode_minus_L=yes
16235 export_dynamic_flag_spec='${wl}-E'
16236 ;;
16237
16238 hpux10*)
16239 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16240 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16241 else
16242 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16243 fi
16244 if test "$with_gnu_ld" = no; then
16245 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16246 hardcode_libdir_flag_spec_ld='+b $libdir'
16247 hardcode_libdir_separator=:
16248 hardcode_direct=yes
16249 hardcode_direct_absolute=yes
16250 export_dynamic_flag_spec='${wl}-E'
16251 # hardcode_minus_L: Not really in the search PATH,
16252 # but as the default location of the library.
16253 hardcode_minus_L=yes
16254 fi
16255 ;;
16256
16257 hpux11*)
16258 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16259 case $host_cpu in
16260 hppa*64*)
16261 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16262 ;;
16263 ia64*)
16264 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16265 ;;
16266 *)
16267 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16268 ;;
16269 esac
16270 else
16271 case $host_cpu in
16272 hppa*64*)
16273 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16274 ;;
16275 ia64*)
16276 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16277 ;;
16278 *)
16279
16280 # Older versions of the 11.00 compiler do not understand -b yet
16281 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16283 $as_echo_n "checking if $CC understands -b... " >&6; }
16284 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16285 $as_echo_n "(cached) " >&6
16286 else
16287 lt_cv_prog_compiler__b=no
16288 save_LDFLAGS="$LDFLAGS"
16289 LDFLAGS="$LDFLAGS -b"
16290 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16291 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16292 # The linker can only warn and ignore the option if not recognized
16293 # So say no if there are warnings
16294 if test -s conftest.err; then
16295 # Append any errors to the config.log.
16296 cat conftest.err 1>&5
16297 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16298 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16299 if diff conftest.exp conftest.er2 >/dev/null; then
16300 lt_cv_prog_compiler__b=yes
16301 fi
16302 else
16303 lt_cv_prog_compiler__b=yes
16304 fi
16305 fi
16306 $RM -r conftest*
16307 LDFLAGS="$save_LDFLAGS"
16308
16309 fi
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16311 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16312
16313 if test x"$lt_cv_prog_compiler__b" = xyes; then
16314 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16315 else
16316 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16317 fi
16318
16319 ;;
16320 esac
16321 fi
16322 if test "$with_gnu_ld" = no; then
16323 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16324 hardcode_libdir_separator=:
16325
16326 case $host_cpu in
16327 hppa*64*|ia64*)
16328 hardcode_direct=no
16329 hardcode_shlibpath_var=no
16330 ;;
16331 *)
16332 hardcode_direct=yes
16333 hardcode_direct_absolute=yes
16334 export_dynamic_flag_spec='${wl}-E'
16335
16336 # hardcode_minus_L: Not really in the search PATH,
16337 # but as the default location of the library.
16338 hardcode_minus_L=yes
16339 ;;
16340 esac
16341 fi
16342 ;;
16343
16344 irix5* | irix6* | nonstopux*)
16345 if test "$GCC" = yes; then
16346 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'
16347 # Try to use the -exported_symbol ld option, if it does not
16348 # work, assume that -exports_file does not work either and
16349 # implicitly export all symbols.
16350 save_LDFLAGS="$LDFLAGS"
16351 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16353 /* end confdefs.h. */
16354 int foo(void) {}
16355 _ACEOF
16356 if ac_fn_c_try_link "$LINENO"; then :
16357 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'
16358
16359 fi
16360 rm -f core conftest.err conftest.$ac_objext \
16361 conftest$ac_exeext conftest.$ac_ext
16362 LDFLAGS="$save_LDFLAGS"
16363 else
16364 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'
16365 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'
16366 fi
16367 archive_cmds_need_lc='no'
16368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16369 hardcode_libdir_separator=:
16370 inherit_rpath=yes
16371 link_all_deplibs=yes
16372 ;;
16373
16374 netbsd*)
16375 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16376 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16377 else
16378 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16379 fi
16380 hardcode_libdir_flag_spec='-R$libdir'
16381 hardcode_direct=yes
16382 hardcode_shlibpath_var=no
16383 ;;
16384
16385 newsos6)
16386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16387 hardcode_direct=yes
16388 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16389 hardcode_libdir_separator=:
16390 hardcode_shlibpath_var=no
16391 ;;
16392
16393 *nto* | *qnx*)
16394 ;;
16395
16396 openbsd*)
16397 if test -f /usr/libexec/ld.so; then
16398 hardcode_direct=yes
16399 hardcode_shlibpath_var=no
16400 hardcode_direct_absolute=yes
16401 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16402 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16403 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16404 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16405 export_dynamic_flag_spec='${wl}-E'
16406 else
16407 case $host_os in
16408 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16409 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16410 hardcode_libdir_flag_spec='-R$libdir'
16411 ;;
16412 *)
16413 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16414 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16415 ;;
16416 esac
16417 fi
16418 else
16419 ld_shlibs=no
16420 fi
16421 ;;
16422
16423 os2*)
16424 hardcode_libdir_flag_spec='-L$libdir'
16425 hardcode_minus_L=yes
16426 allow_undefined_flag=unsupported
16427 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'
16428 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16429 ;;
16430
16431 osf3*)
16432 if test "$GCC" = yes; then
16433 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16434 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'
16435 else
16436 allow_undefined_flag=' -expect_unresolved \*'
16437 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'
16438 fi
16439 archive_cmds_need_lc='no'
16440 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16441 hardcode_libdir_separator=:
16442 ;;
16443
16444 osf4* | osf5*) # as osf3* with the addition of -msym flag
16445 if test "$GCC" = yes; then
16446 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16447 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'
16448 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16449 else
16450 allow_undefined_flag=' -expect_unresolved \*'
16451 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'
16452 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~
16453 $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'
16454
16455 # Both c and cxx compiler support -rpath directly
16456 hardcode_libdir_flag_spec='-rpath $libdir'
16457 fi
16458 archive_cmds_need_lc='no'
16459 hardcode_libdir_separator=:
16460 ;;
16461
16462 solaris*)
16463 no_undefined_flag=' -z defs'
16464 if test "$GCC" = yes; then
16465 wlarc='${wl}'
16466 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16467 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16468 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16469 else
16470 case `$CC -V 2>&1` in
16471 *"Compilers 5.0"*)
16472 wlarc=''
16473 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16474 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16475 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16476 ;;
16477 *)
16478 wlarc='${wl}'
16479 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16480 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16481 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16482 ;;
16483 esac
16484 fi
16485 hardcode_libdir_flag_spec='-R$libdir'
16486 hardcode_shlibpath_var=no
16487 case $host_os in
16488 solaris2.[0-5] | solaris2.[0-5].*) ;;
16489 *)
16490 # The compiler driver will combine and reorder linker options,
16491 # but understands `-z linker_flag'. GCC discards it without `$wl',
16492 # but is careful enough not to reorder.
16493 # Supported since Solaris 2.6 (maybe 2.5.1?)
16494 if test "$GCC" = yes; then
16495 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16496 else
16497 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16498 fi
16499 ;;
16500 esac
16501 link_all_deplibs=yes
16502 ;;
16503
16504 sunos4*)
16505 if test "x$host_vendor" = xsequent; then
16506 # Use $CC to link under sequent, because it throws in some extra .o
16507 # files that make .init and .fini sections work.
16508 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16509 else
16510 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16511 fi
16512 hardcode_libdir_flag_spec='-L$libdir'
16513 hardcode_direct=yes
16514 hardcode_minus_L=yes
16515 hardcode_shlibpath_var=no
16516 ;;
16517
16518 sysv4)
16519 case $host_vendor in
16520 sni)
16521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16522 hardcode_direct=yes # is this really true???
16523 ;;
16524 siemens)
16525 ## LD is ld it makes a PLAMLIB
16526 ## CC just makes a GrossModule.
16527 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16528 reload_cmds='$CC -r -o $output$reload_objs'
16529 hardcode_direct=no
16530 ;;
16531 motorola)
16532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16533 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16534 ;;
16535 esac
16536 runpath_var='LD_RUN_PATH'
16537 hardcode_shlibpath_var=no
16538 ;;
16539
16540 sysv4.3*)
16541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16542 hardcode_shlibpath_var=no
16543 export_dynamic_flag_spec='-Bexport'
16544 ;;
16545
16546 sysv4*MP*)
16547 if test -d /usr/nec; then
16548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16549 hardcode_shlibpath_var=no
16550 runpath_var=LD_RUN_PATH
16551 hardcode_runpath_var=yes
16552 ld_shlibs=yes
16553 fi
16554 ;;
16555
16556 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16557 no_undefined_flag='${wl}-z,text'
16558 archive_cmds_need_lc=no
16559 hardcode_shlibpath_var=no
16560 runpath_var='LD_RUN_PATH'
16561
16562 if test "$GCC" = yes; then
16563 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16564 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16565 else
16566 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16567 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16568 fi
16569 ;;
16570
16571 sysv5* | sco3.2v5* | sco5v6*)
16572 # Note: We can NOT use -z defs as we might desire, because we do not
16573 # link with -lc, and that would cause any symbols used from libc to
16574 # always be unresolved, which means just about no library would
16575 # ever link correctly. If we're not using GNU ld we use -z text
16576 # though, which does catch some bad symbols but isn't as heavy-handed
16577 # as -z defs.
16578 no_undefined_flag='${wl}-z,text'
16579 allow_undefined_flag='${wl}-z,nodefs'
16580 archive_cmds_need_lc=no
16581 hardcode_shlibpath_var=no
16582 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16583 hardcode_libdir_separator=':'
16584 link_all_deplibs=yes
16585 export_dynamic_flag_spec='${wl}-Bexport'
16586 runpath_var='LD_RUN_PATH'
16587
16588 if test "$GCC" = yes; then
16589 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16590 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16591 else
16592 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16593 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16594 fi
16595 ;;
16596
16597 uts4*)
16598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16599 hardcode_libdir_flag_spec='-L$libdir'
16600 hardcode_shlibpath_var=no
16601 ;;
16602
16603 *)
16604 ld_shlibs=no
16605 ;;
16606 esac
16607
16608 if test x$host_vendor = xsni; then
16609 case $host in
16610 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16611 export_dynamic_flag_spec='${wl}-Blargedynsym'
16612 ;;
16613 esac
16614 fi
16615 fi
16616
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16618 $as_echo "$ld_shlibs" >&6; }
16619 test "$ld_shlibs" = no && can_build_shared=no
16620
16621 with_gnu_ld=$with_gnu_ld
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637 #
16638 # Do we need to explicitly link libc?
16639 #
16640 case "x$archive_cmds_need_lc" in
16641 x|xyes)
16642 # Assume -lc should be added
16643 archive_cmds_need_lc=yes
16644
16645 if test "$enable_shared" = yes && test "$GCC" = yes; then
16646 case $archive_cmds in
16647 *'~'*)
16648 # FIXME: we may have to deal with multi-command sequences.
16649 ;;
16650 '$CC '*)
16651 # Test whether the compiler implicitly links with -lc since on some
16652 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16653 # to ld, don't add -lc before -lgcc.
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16655 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16656 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16657 $as_echo_n "(cached) " >&6
16658 else
16659 $RM conftest*
16660 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16661
16662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16663 (eval $ac_compile) 2>&5
16664 ac_status=$?
16665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16666 test $ac_status = 0; } 2>conftest.err; then
16667 soname=conftest
16668 lib=conftest
16669 libobjs=conftest.$ac_objext
16670 deplibs=
16671 wl=$lt_prog_compiler_wl
16672 pic_flag=$lt_prog_compiler_pic
16673 compiler_flags=-v
16674 linker_flags=-v
16675 verstring=
16676 output_objdir=.
16677 libname=conftest
16678 lt_save_allow_undefined_flag=$allow_undefined_flag
16679 allow_undefined_flag=
16680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16681 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16682 ac_status=$?
16683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16684 test $ac_status = 0; }
16685 then
16686 lt_cv_archive_cmds_need_lc=no
16687 else
16688 lt_cv_archive_cmds_need_lc=yes
16689 fi
16690 allow_undefined_flag=$lt_save_allow_undefined_flag
16691 else
16692 cat conftest.err 1>&5
16693 fi
16694 $RM conftest*
16695
16696 fi
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16698 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16699 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16700 ;;
16701 esac
16702 fi
16703 ;;
16704 esac
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
16861
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16863 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16864
16865 if test "$GCC" = yes; then
16866 case $host_os in
16867 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16868 *) lt_awk_arg="/^libraries:/" ;;
16869 esac
16870 case $host_os in
16871 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16872 *) lt_sed_strip_eq="s,=/,/,g" ;;
16873 esac
16874 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16875 case $lt_search_path_spec in
16876 *\;*)
16877 # if the path contains ";" then we assume it to be the separator
16878 # otherwise default to the standard path separator (i.e. ":") - it is
16879 # assumed that no part of a normal pathname contains ";" but that should
16880 # okay in the real world where ";" in dirpaths is itself problematic.
16881 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16882 ;;
16883 *)
16884 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16885 ;;
16886 esac
16887 # Ok, now we have the path, separated by spaces, we can step through it
16888 # and add multilib dir if necessary.
16889 lt_tmp_lt_search_path_spec=
16890 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16891 for lt_sys_path in $lt_search_path_spec; do
16892 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16893 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16894 else
16895 test -d "$lt_sys_path" && \
16896 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16897 fi
16898 done
16899 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16900 BEGIN {RS=" "; FS="/|\n";} {
16901 lt_foo="";
16902 lt_count=0;
16903 for (lt_i = NF; lt_i > 0; lt_i--) {
16904 if ($lt_i != "" && $lt_i != ".") {
16905 if ($lt_i == "..") {
16906 lt_count++;
16907 } else {
16908 if (lt_count == 0) {
16909 lt_foo="/" $lt_i lt_foo;
16910 } else {
16911 lt_count--;
16912 }
16913 }
16914 }
16915 }
16916 if (lt_foo != "") { lt_freq[lt_foo]++; }
16917 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16918 }'`
16919 # AWK program above erroneously prepends '/' to C:/dos/paths
16920 # for these hosts.
16921 case $host_os in
16922 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16923 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16924 esac
16925 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16926 else
16927 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16928 fi
16929 library_names_spec=
16930 libname_spec='lib$name'
16931 soname_spec=
16932 shrext_cmds=".so"
16933 postinstall_cmds=
16934 postuninstall_cmds=
16935 finish_cmds=
16936 finish_eval=
16937 shlibpath_var=
16938 shlibpath_overrides_runpath=unknown
16939 version_type=none
16940 dynamic_linker="$host_os ld.so"
16941 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16942 need_lib_prefix=unknown
16943 hardcode_into_libs=no
16944
16945 # when you set need_version to no, make sure it does not cause -set_version
16946 # flags to be left without arguments
16947 need_version=unknown
16948
16949 case $host_os in
16950 aix3*)
16951 version_type=linux
16952 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16953 shlibpath_var=LIBPATH
16954
16955 # AIX 3 has no versioning support, so we append a major version to the name.
16956 soname_spec='${libname}${release}${shared_ext}$major'
16957 ;;
16958
16959 aix[4-9]*)
16960 version_type=linux
16961 need_lib_prefix=no
16962 need_version=no
16963 hardcode_into_libs=yes
16964 if test "$host_cpu" = ia64; then
16965 # AIX 5 supports IA64
16966 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16967 shlibpath_var=LD_LIBRARY_PATH
16968 else
16969 # With GCC up to 2.95.x, collect2 would create an import file
16970 # for dependence libraries. The import file would start with
16971 # the line `#! .'. This would cause the generated library to
16972 # depend on `.', always an invalid library. This was fixed in
16973 # development snapshots of GCC prior to 3.0.
16974 case $host_os in
16975 aix4 | aix4.[01] | aix4.[01].*)
16976 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16977 echo ' yes '
16978 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16979 :
16980 else
16981 can_build_shared=no
16982 fi
16983 ;;
16984 esac
16985 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16986 # soname into executable. Probably we can add versioning support to
16987 # collect2, so additional links can be useful in future.
16988 if test "$aix_use_runtimelinking" = yes; then
16989 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16990 # instead of lib<name>.a to let people know that these are not
16991 # typical AIX shared libraries.
16992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16993 else
16994 # We preserve .a as extension for shared libraries through AIX4.2
16995 # and later when we are not doing run time linking.
16996 library_names_spec='${libname}${release}.a $libname.a'
16997 soname_spec='${libname}${release}${shared_ext}$major'
16998 fi
16999 shlibpath_var=LIBPATH
17000 fi
17001 ;;
17002
17003 amigaos*)
17004 case $host_cpu in
17005 powerpc)
17006 # Since July 2007 AmigaOS4 officially supports .so libraries.
17007 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17009 ;;
17010 m68k)
17011 library_names_spec='$libname.ixlibrary $libname.a'
17012 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17013 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'
17014 ;;
17015 esac
17016 ;;
17017
17018 beos*)
17019 library_names_spec='${libname}${shared_ext}'
17020 dynamic_linker="$host_os ld.so"
17021 shlibpath_var=LIBRARY_PATH
17022 ;;
17023
17024 bsdi[45]*)
17025 version_type=linux
17026 need_version=no
17027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17028 soname_spec='${libname}${release}${shared_ext}$major'
17029 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17030 shlibpath_var=LD_LIBRARY_PATH
17031 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17032 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17033 # the default ld.so.conf also contains /usr/contrib/lib and
17034 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17035 # libtool to hard-code these into programs
17036 ;;
17037
17038 cygwin* | mingw* | pw32* | cegcc*)
17039 version_type=windows
17040 shrext_cmds=".dll"
17041 need_version=no
17042 need_lib_prefix=no
17043
17044 case $GCC,$host_os in
17045 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17046 library_names_spec='$libname.dll.a'
17047 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17048 postinstall_cmds='base_file=`basename \${file}`~
17049 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17050 dldir=$destdir/`dirname \$dlpath`~
17051 test -d \$dldir || mkdir -p \$dldir~
17052 $install_prog $dir/$dlname \$dldir/$dlname~
17053 chmod a+x \$dldir/$dlname~
17054 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17055 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17056 fi'
17057 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17058 dlpath=$dir/\$dldll~
17059 $RM \$dlpath'
17060 shlibpath_overrides_runpath=yes
17061
17062 case $host_os in
17063 cygwin*)
17064 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17065 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17066
17067 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17068 ;;
17069 mingw* | cegcc*)
17070 # MinGW DLLs use traditional 'lib' prefix
17071 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17072 ;;
17073 pw32*)
17074 # pw32 DLLs use 'pw' prefix rather than 'lib'
17075 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17076 ;;
17077 esac
17078 ;;
17079
17080 *)
17081 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17082 ;;
17083 esac
17084 dynamic_linker='Win32 ld.exe'
17085 # FIXME: first we should search . and the directory the executable is in
17086 shlibpath_var=PATH
17087 ;;
17088
17089 darwin* | rhapsody*)
17090 dynamic_linker="$host_os dyld"
17091 version_type=darwin
17092 need_lib_prefix=no
17093 need_version=no
17094 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17095 soname_spec='${libname}${release}${major}$shared_ext'
17096 shlibpath_overrides_runpath=yes
17097 shlibpath_var=DYLD_LIBRARY_PATH
17098 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17099
17100 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17101 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17102 ;;
17103
17104 dgux*)
17105 version_type=linux
17106 need_lib_prefix=no
17107 need_version=no
17108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17109 soname_spec='${libname}${release}${shared_ext}$major'
17110 shlibpath_var=LD_LIBRARY_PATH
17111 ;;
17112
17113 freebsd* | dragonfly*)
17114 # DragonFly does not have aout. When/if they implement a new
17115 # versioning mechanism, adjust this.
17116 if test -x /usr/bin/objformat; then
17117 objformat=`/usr/bin/objformat`
17118 else
17119 case $host_os in
17120 freebsd[23].*) objformat=aout ;;
17121 *) objformat=elf ;;
17122 esac
17123 fi
17124 version_type=freebsd-$objformat
17125 case $version_type in
17126 freebsd-elf*)
17127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17128 need_version=no
17129 need_lib_prefix=no
17130 ;;
17131 freebsd-*)
17132 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17133 need_version=yes
17134 ;;
17135 esac
17136 shlibpath_var=LD_LIBRARY_PATH
17137 case $host_os in
17138 freebsd2.*)
17139 shlibpath_overrides_runpath=yes
17140 ;;
17141 freebsd3.[01]* | freebsdelf3.[01]*)
17142 shlibpath_overrides_runpath=yes
17143 hardcode_into_libs=yes
17144 ;;
17145 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17146 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17147 shlibpath_overrides_runpath=no
17148 hardcode_into_libs=yes
17149 ;;
17150 *) # from 4.6 on, and DragonFly
17151 shlibpath_overrides_runpath=yes
17152 hardcode_into_libs=yes
17153 ;;
17154 esac
17155 ;;
17156
17157 gnu*)
17158 version_type=linux
17159 need_lib_prefix=no
17160 need_version=no
17161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17162 soname_spec='${libname}${release}${shared_ext}$major'
17163 shlibpath_var=LD_LIBRARY_PATH
17164 hardcode_into_libs=yes
17165 ;;
17166
17167 haiku*)
17168 version_type=linux
17169 need_lib_prefix=no
17170 need_version=no
17171 dynamic_linker="$host_os runtime_loader"
17172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17173 soname_spec='${libname}${release}${shared_ext}$major'
17174 shlibpath_var=LIBRARY_PATH
17175 shlibpath_overrides_runpath=yes
17176 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17177 hardcode_into_libs=yes
17178 ;;
17179
17180 hpux9* | hpux10* | hpux11*)
17181 # Give a soname corresponding to the major version so that dld.sl refuses to
17182 # link against other versions.
17183 version_type=sunos
17184 need_lib_prefix=no
17185 need_version=no
17186 case $host_cpu in
17187 ia64*)
17188 shrext_cmds='.so'
17189 hardcode_into_libs=yes
17190 dynamic_linker="$host_os dld.so"
17191 shlibpath_var=LD_LIBRARY_PATH
17192 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17194 soname_spec='${libname}${release}${shared_ext}$major'
17195 if test "X$HPUX_IA64_MODE" = X32; then
17196 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17197 else
17198 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17199 fi
17200 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17201 ;;
17202 hppa*64*)
17203 shrext_cmds='.sl'
17204 hardcode_into_libs=yes
17205 dynamic_linker="$host_os dld.sl"
17206 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17207 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17209 soname_spec='${libname}${release}${shared_ext}$major'
17210 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17211 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17212 ;;
17213 *)
17214 shrext_cmds='.sl'
17215 dynamic_linker="$host_os dld.sl"
17216 shlibpath_var=SHLIB_PATH
17217 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17219 soname_spec='${libname}${release}${shared_ext}$major'
17220 ;;
17221 esac
17222 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17223 postinstall_cmds='chmod 555 $lib'
17224 # or fails outright, so override atomically:
17225 install_override_mode=555
17226 ;;
17227
17228 interix[3-9]*)
17229 version_type=linux
17230 need_lib_prefix=no
17231 need_version=no
17232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17233 soname_spec='${libname}${release}${shared_ext}$major'
17234 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17235 shlibpath_var=LD_LIBRARY_PATH
17236 shlibpath_overrides_runpath=no
17237 hardcode_into_libs=yes
17238 ;;
17239
17240 irix5* | irix6* | nonstopux*)
17241 case $host_os in
17242 nonstopux*) version_type=nonstopux ;;
17243 *)
17244 if test "$lt_cv_prog_gnu_ld" = yes; then
17245 version_type=linux
17246 else
17247 version_type=irix
17248 fi ;;
17249 esac
17250 need_lib_prefix=no
17251 need_version=no
17252 soname_spec='${libname}${release}${shared_ext}$major'
17253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17254 case $host_os in
17255 irix5* | nonstopux*)
17256 libsuff= shlibsuff=
17257 ;;
17258 *)
17259 case $LD in # libtool.m4 will add one of these switches to LD
17260 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17261 libsuff= shlibsuff= libmagic=32-bit;;
17262 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17263 libsuff=32 shlibsuff=N32 libmagic=N32;;
17264 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17265 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17266 *) libsuff= shlibsuff= libmagic=never-match;;
17267 esac
17268 ;;
17269 esac
17270 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17271 shlibpath_overrides_runpath=no
17272 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17273 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17274 hardcode_into_libs=yes
17275 ;;
17276
17277 # No shared lib support for Linux oldld, aout, or coff.
17278 linux*oldld* | linux*aout* | linux*coff*)
17279 dynamic_linker=no
17280 ;;
17281
17282 # This must be Linux ELF.
17283 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17284 version_type=linux
17285 need_lib_prefix=no
17286 need_version=no
17287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17288 soname_spec='${libname}${release}${shared_ext}$major'
17289 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17290 shlibpath_var=LD_LIBRARY_PATH
17291 shlibpath_overrides_runpath=no
17292
17293 # Some binutils ld are patched to set DT_RUNPATH
17294 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17295 $as_echo_n "(cached) " >&6
17296 else
17297 lt_cv_shlibpath_overrides_runpath=no
17298 save_LDFLAGS=$LDFLAGS
17299 save_libdir=$libdir
17300 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17301 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17303 /* end confdefs.h. */
17304
17305 int
17306 main ()
17307 {
17308
17309 ;
17310 return 0;
17311 }
17312 _ACEOF
17313 if ac_fn_c_try_link "$LINENO"; then :
17314 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17315 lt_cv_shlibpath_overrides_runpath=yes
17316 fi
17317 fi
17318 rm -f core conftest.err conftest.$ac_objext \
17319 conftest$ac_exeext conftest.$ac_ext
17320 LDFLAGS=$save_LDFLAGS
17321 libdir=$save_libdir
17322
17323 fi
17324
17325 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17326
17327 # This implies no fast_install, which is unacceptable.
17328 # Some rework will be needed to allow for fast_install
17329 # before this can be enabled.
17330 hardcode_into_libs=yes
17331
17332 # Append ld.so.conf contents to the search path
17333 if test -f /etc/ld.so.conf; then
17334 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' ' '`
17335 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17336 fi
17337
17338 # We used to test for /lib/ld.so.1 and disable shared libraries on
17339 # powerpc, because MkLinux only supported shared libraries with the
17340 # GNU dynamic linker. Since this was broken with cross compilers,
17341 # most powerpc-linux boxes support dynamic linking these days and
17342 # people can always --disable-shared, the test was removed, and we
17343 # assume the GNU/Linux dynamic linker is in use.
17344 dynamic_linker='GNU/Linux ld.so'
17345 ;;
17346
17347 netbsd*)
17348 version_type=sunos
17349 need_lib_prefix=no
17350 need_version=no
17351 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17353 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17354 dynamic_linker='NetBSD (a.out) ld.so'
17355 else
17356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17357 soname_spec='${libname}${release}${shared_ext}$major'
17358 dynamic_linker='NetBSD ld.elf_so'
17359 fi
17360 shlibpath_var=LD_LIBRARY_PATH
17361 shlibpath_overrides_runpath=yes
17362 hardcode_into_libs=yes
17363 ;;
17364
17365 newsos6)
17366 version_type=linux
17367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17368 shlibpath_var=LD_LIBRARY_PATH
17369 shlibpath_overrides_runpath=yes
17370 ;;
17371
17372 *nto* | *qnx*)
17373 version_type=qnx
17374 need_lib_prefix=no
17375 need_version=no
17376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17377 soname_spec='${libname}${release}${shared_ext}$major'
17378 shlibpath_var=LD_LIBRARY_PATH
17379 shlibpath_overrides_runpath=no
17380 hardcode_into_libs=yes
17381 dynamic_linker='ldqnx.so'
17382 ;;
17383
17384 openbsd*)
17385 version_type=sunos
17386 sys_lib_dlsearch_path_spec="/usr/lib"
17387 need_lib_prefix=no
17388 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17389 case $host_os in
17390 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17391 *) need_version=no ;;
17392 esac
17393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17395 shlibpath_var=LD_LIBRARY_PATH
17396 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17397 case $host_os in
17398 openbsd2.[89] | openbsd2.[89].*)
17399 shlibpath_overrides_runpath=no
17400 ;;
17401 *)
17402 shlibpath_overrides_runpath=yes
17403 ;;
17404 esac
17405 else
17406 shlibpath_overrides_runpath=yes
17407 fi
17408 ;;
17409
17410 os2*)
17411 libname_spec='$name'
17412 shrext_cmds=".dll"
17413 need_lib_prefix=no
17414 library_names_spec='$libname${shared_ext} $libname.a'
17415 dynamic_linker='OS/2 ld.exe'
17416 shlibpath_var=LIBPATH
17417 ;;
17418
17419 osf3* | osf4* | osf5*)
17420 version_type=osf
17421 need_lib_prefix=no
17422 need_version=no
17423 soname_spec='${libname}${release}${shared_ext}$major'
17424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17425 shlibpath_var=LD_LIBRARY_PATH
17426 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17427 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17428 ;;
17429
17430 rdos*)
17431 dynamic_linker=no
17432 ;;
17433
17434 solaris*)
17435 version_type=linux
17436 need_lib_prefix=no
17437 need_version=no
17438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17439 soname_spec='${libname}${release}${shared_ext}$major'
17440 shlibpath_var=LD_LIBRARY_PATH
17441 shlibpath_overrides_runpath=yes
17442 hardcode_into_libs=yes
17443 # ldd complains unless libraries are executable
17444 postinstall_cmds='chmod +x $lib'
17445 ;;
17446
17447 sunos4*)
17448 version_type=sunos
17449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17450 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17451 shlibpath_var=LD_LIBRARY_PATH
17452 shlibpath_overrides_runpath=yes
17453 if test "$with_gnu_ld" = yes; then
17454 need_lib_prefix=no
17455 fi
17456 need_version=yes
17457 ;;
17458
17459 sysv4 | sysv4.3*)
17460 version_type=linux
17461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17462 soname_spec='${libname}${release}${shared_ext}$major'
17463 shlibpath_var=LD_LIBRARY_PATH
17464 case $host_vendor in
17465 sni)
17466 shlibpath_overrides_runpath=no
17467 need_lib_prefix=no
17468 runpath_var=LD_RUN_PATH
17469 ;;
17470 siemens)
17471 need_lib_prefix=no
17472 ;;
17473 motorola)
17474 need_lib_prefix=no
17475 need_version=no
17476 shlibpath_overrides_runpath=no
17477 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17478 ;;
17479 esac
17480 ;;
17481
17482 sysv4*MP*)
17483 if test -d /usr/nec ;then
17484 version_type=linux
17485 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17486 soname_spec='$libname${shared_ext}.$major'
17487 shlibpath_var=LD_LIBRARY_PATH
17488 fi
17489 ;;
17490
17491 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17492 version_type=freebsd-elf
17493 need_lib_prefix=no
17494 need_version=no
17495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17496 soname_spec='${libname}${release}${shared_ext}$major'
17497 shlibpath_var=LD_LIBRARY_PATH
17498 shlibpath_overrides_runpath=yes
17499 hardcode_into_libs=yes
17500 if test "$with_gnu_ld" = yes; then
17501 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17502 else
17503 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17504 case $host_os in
17505 sco3.2v5*)
17506 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17507 ;;
17508 esac
17509 fi
17510 sys_lib_dlsearch_path_spec='/usr/lib'
17511 ;;
17512
17513 tpf*)
17514 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17515 version_type=linux
17516 need_lib_prefix=no
17517 need_version=no
17518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17519 shlibpath_var=LD_LIBRARY_PATH
17520 shlibpath_overrides_runpath=no
17521 hardcode_into_libs=yes
17522 ;;
17523
17524 uts4*)
17525 version_type=linux
17526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17527 soname_spec='${libname}${release}${shared_ext}$major'
17528 shlibpath_var=LD_LIBRARY_PATH
17529 ;;
17530
17531 *)
17532 dynamic_linker=no
17533 ;;
17534 esac
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17536 $as_echo "$dynamic_linker" >&6; }
17537 test "$dynamic_linker" = no && can_build_shared=no
17538
17539 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17540 if test "$GCC" = yes; then
17541 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17542 fi
17543
17544 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17545 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17546 fi
17547 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17548 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17549 fi
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
17641
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17643 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17644 hardcode_action=
17645 if test -n "$hardcode_libdir_flag_spec" ||
17646 test -n "$runpath_var" ||
17647 test "X$hardcode_automatic" = "Xyes" ; then
17648
17649 # We can hardcode non-existent directories.
17650 if test "$hardcode_direct" != no &&
17651 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17652 # have to relink, otherwise we might link with an installed library
17653 # when we should be linking with a yet-to-be-installed one
17654 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17655 test "$hardcode_minus_L" != no; then
17656 # Linking always hardcodes the temporary library directory.
17657 hardcode_action=relink
17658 else
17659 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17660 hardcode_action=immediate
17661 fi
17662 else
17663 # We cannot hardcode anything, or else we can only hardcode existing
17664 # directories.
17665 hardcode_action=unsupported
17666 fi
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17668 $as_echo "$hardcode_action" >&6; }
17669
17670 if test "$hardcode_action" = relink ||
17671 test "$inherit_rpath" = yes; then
17672 # Fast installation is not supported
17673 enable_fast_install=no
17674 elif test "$shlibpath_overrides_runpath" = yes ||
17675 test "$enable_shared" = no; then
17676 # Fast installation is not necessary
17677 enable_fast_install=needless
17678 fi
17679
17680
17681
17682
17683
17684
17685 if test "x$enable_dlopen" != xyes; then
17686 enable_dlopen=unknown
17687 enable_dlopen_self=unknown
17688 enable_dlopen_self_static=unknown
17689 else
17690 lt_cv_dlopen=no
17691 lt_cv_dlopen_libs=
17692
17693 case $host_os in
17694 beos*)
17695 lt_cv_dlopen="load_add_on"
17696 lt_cv_dlopen_libs=
17697 lt_cv_dlopen_self=yes
17698 ;;
17699
17700 mingw* | pw32* | cegcc*)
17701 lt_cv_dlopen="LoadLibrary"
17702 lt_cv_dlopen_libs=
17703 ;;
17704
17705 cygwin*)
17706 lt_cv_dlopen="dlopen"
17707 lt_cv_dlopen_libs=
17708 ;;
17709
17710 darwin*)
17711 # if libdl is installed we need to link against it
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17713 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17714 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17715 $as_echo_n "(cached) " >&6
17716 else
17717 ac_check_lib_save_LIBS=$LIBS
17718 LIBS="-ldl $LIBS"
17719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17720 /* end confdefs.h. */
17721
17722 /* Override any GCC internal prototype to avoid an error.
17723 Use char because int might match the return type of a GCC
17724 builtin and then its argument prototype would still apply. */
17725 #ifdef __cplusplus
17726 extern "C"
17727 #endif
17728 char dlopen ();
17729 int
17730 main ()
17731 {
17732 return dlopen ();
17733 ;
17734 return 0;
17735 }
17736 _ACEOF
17737 if ac_fn_c_try_link "$LINENO"; then :
17738 ac_cv_lib_dl_dlopen=yes
17739 else
17740 ac_cv_lib_dl_dlopen=no
17741 fi
17742 rm -f core conftest.err conftest.$ac_objext \
17743 conftest$ac_exeext conftest.$ac_ext
17744 LIBS=$ac_check_lib_save_LIBS
17745 fi
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17747 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17748 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17749 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17750 else
17751
17752 lt_cv_dlopen="dyld"
17753 lt_cv_dlopen_libs=
17754 lt_cv_dlopen_self=yes
17755
17756 fi
17757
17758 ;;
17759
17760 *)
17761 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17762 if test "x$ac_cv_func_shl_load" = x""yes; then :
17763 lt_cv_dlopen="shl_load"
17764 else
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17766 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17767 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17768 $as_echo_n "(cached) " >&6
17769 else
17770 ac_check_lib_save_LIBS=$LIBS
17771 LIBS="-ldld $LIBS"
17772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17773 /* end confdefs.h. */
17774
17775 /* Override any GCC internal prototype to avoid an error.
17776 Use char because int might match the return type of a GCC
17777 builtin and then its argument prototype would still apply. */
17778 #ifdef __cplusplus
17779 extern "C"
17780 #endif
17781 char shl_load ();
17782 int
17783 main ()
17784 {
17785 return shl_load ();
17786 ;
17787 return 0;
17788 }
17789 _ACEOF
17790 if ac_fn_c_try_link "$LINENO"; then :
17791 ac_cv_lib_dld_shl_load=yes
17792 else
17793 ac_cv_lib_dld_shl_load=no
17794 fi
17795 rm -f core conftest.err conftest.$ac_objext \
17796 conftest$ac_exeext conftest.$ac_ext
17797 LIBS=$ac_check_lib_save_LIBS
17798 fi
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17800 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17801 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17802 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17803 else
17804 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17805 if test "x$ac_cv_func_dlopen" = x""yes; then :
17806 lt_cv_dlopen="dlopen"
17807 else
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17809 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17810 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17811 $as_echo_n "(cached) " >&6
17812 else
17813 ac_check_lib_save_LIBS=$LIBS
17814 LIBS="-ldl $LIBS"
17815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17816 /* end confdefs.h. */
17817
17818 /* Override any GCC internal prototype to avoid an error.
17819 Use char because int might match the return type of a GCC
17820 builtin and then its argument prototype would still apply. */
17821 #ifdef __cplusplus
17822 extern "C"
17823 #endif
17824 char dlopen ();
17825 int
17826 main ()
17827 {
17828 return dlopen ();
17829 ;
17830 return 0;
17831 }
17832 _ACEOF
17833 if ac_fn_c_try_link "$LINENO"; then :
17834 ac_cv_lib_dl_dlopen=yes
17835 else
17836 ac_cv_lib_dl_dlopen=no
17837 fi
17838 rm -f core conftest.err conftest.$ac_objext \
17839 conftest$ac_exeext conftest.$ac_ext
17840 LIBS=$ac_check_lib_save_LIBS
17841 fi
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17843 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17844 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17845 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17846 else
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17848 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17849 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17850 $as_echo_n "(cached) " >&6
17851 else
17852 ac_check_lib_save_LIBS=$LIBS
17853 LIBS="-lsvld $LIBS"
17854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17855 /* end confdefs.h. */
17856
17857 /* Override any GCC internal prototype to avoid an error.
17858 Use char because int might match the return type of a GCC
17859 builtin and then its argument prototype would still apply. */
17860 #ifdef __cplusplus
17861 extern "C"
17862 #endif
17863 char dlopen ();
17864 int
17865 main ()
17866 {
17867 return dlopen ();
17868 ;
17869 return 0;
17870 }
17871 _ACEOF
17872 if ac_fn_c_try_link "$LINENO"; then :
17873 ac_cv_lib_svld_dlopen=yes
17874 else
17875 ac_cv_lib_svld_dlopen=no
17876 fi
17877 rm -f core conftest.err conftest.$ac_objext \
17878 conftest$ac_exeext conftest.$ac_ext
17879 LIBS=$ac_check_lib_save_LIBS
17880 fi
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17882 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17883 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17884 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17885 else
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17887 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17888 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17889 $as_echo_n "(cached) " >&6
17890 else
17891 ac_check_lib_save_LIBS=$LIBS
17892 LIBS="-ldld $LIBS"
17893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17894 /* end confdefs.h. */
17895
17896 /* Override any GCC internal prototype to avoid an error.
17897 Use char because int might match the return type of a GCC
17898 builtin and then its argument prototype would still apply. */
17899 #ifdef __cplusplus
17900 extern "C"
17901 #endif
17902 char dld_link ();
17903 int
17904 main ()
17905 {
17906 return dld_link ();
17907 ;
17908 return 0;
17909 }
17910 _ACEOF
17911 if ac_fn_c_try_link "$LINENO"; then :
17912 ac_cv_lib_dld_dld_link=yes
17913 else
17914 ac_cv_lib_dld_dld_link=no
17915 fi
17916 rm -f core conftest.err conftest.$ac_objext \
17917 conftest$ac_exeext conftest.$ac_ext
17918 LIBS=$ac_check_lib_save_LIBS
17919 fi
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17921 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17922 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17923 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17924 fi
17925
17926
17927 fi
17928
17929
17930 fi
17931
17932
17933 fi
17934
17935
17936 fi
17937
17938
17939 fi
17940
17941 ;;
17942 esac
17943
17944 if test "x$lt_cv_dlopen" != xno; then
17945 enable_dlopen=yes
17946 else
17947 enable_dlopen=no
17948 fi
17949
17950 case $lt_cv_dlopen in
17951 dlopen)
17952 save_CPPFLAGS="$CPPFLAGS"
17953 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17954
17955 save_LDFLAGS="$LDFLAGS"
17956 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17957
17958 save_LIBS="$LIBS"
17959 LIBS="$lt_cv_dlopen_libs $LIBS"
17960
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17962 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17963 if test "${lt_cv_dlopen_self+set}" = set; then :
17964 $as_echo_n "(cached) " >&6
17965 else
17966 if test "$cross_compiling" = yes; then :
17967 lt_cv_dlopen_self=cross
17968 else
17969 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17970 lt_status=$lt_dlunknown
17971 cat > conftest.$ac_ext <<_LT_EOF
17972 #line 17972 "configure"
17973 #include "confdefs.h"
17974
17975 #if HAVE_DLFCN_H
17976 #include <dlfcn.h>
17977 #endif
17978
17979 #include <stdio.h>
17980
17981 #ifdef RTLD_GLOBAL
17982 # define LT_DLGLOBAL RTLD_GLOBAL
17983 #else
17984 # ifdef DL_GLOBAL
17985 # define LT_DLGLOBAL DL_GLOBAL
17986 # else
17987 # define LT_DLGLOBAL 0
17988 # endif
17989 #endif
17990
17991 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17992 find out it does not work in some platform. */
17993 #ifndef LT_DLLAZY_OR_NOW
17994 # ifdef RTLD_LAZY
17995 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17996 # else
17997 # ifdef DL_LAZY
17998 # define LT_DLLAZY_OR_NOW DL_LAZY
17999 # else
18000 # ifdef RTLD_NOW
18001 # define LT_DLLAZY_OR_NOW RTLD_NOW
18002 # else
18003 # ifdef DL_NOW
18004 # define LT_DLLAZY_OR_NOW DL_NOW
18005 # else
18006 # define LT_DLLAZY_OR_NOW 0
18007 # endif
18008 # endif
18009 # endif
18010 # endif
18011 #endif
18012
18013 /* When -fvisbility=hidden is used, assume the code has been annotated
18014 correspondingly for the symbols needed. */
18015 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18016 void fnord () __attribute__((visibility("default")));
18017 #endif
18018
18019 void fnord () { int i=42; }
18020 int main ()
18021 {
18022 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18023 int status = $lt_dlunknown;
18024
18025 if (self)
18026 {
18027 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18028 else
18029 {
18030 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18031 else puts (dlerror ());
18032 }
18033 /* dlclose (self); */
18034 }
18035 else
18036 puts (dlerror ());
18037
18038 return status;
18039 }
18040 _LT_EOF
18041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18042 (eval $ac_link) 2>&5
18043 ac_status=$?
18044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18045 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18046 (./conftest; exit; ) >&5 2>/dev/null
18047 lt_status=$?
18048 case x$lt_status in
18049 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18050 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18051 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18052 esac
18053 else :
18054 # compilation failed
18055 lt_cv_dlopen_self=no
18056 fi
18057 fi
18058 rm -fr conftest*
18059
18060
18061 fi
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18063 $as_echo "$lt_cv_dlopen_self" >&6; }
18064
18065 if test "x$lt_cv_dlopen_self" = xyes; then
18066 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18068 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18069 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18070 $as_echo_n "(cached) " >&6
18071 else
18072 if test "$cross_compiling" = yes; then :
18073 lt_cv_dlopen_self_static=cross
18074 else
18075 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18076 lt_status=$lt_dlunknown
18077 cat > conftest.$ac_ext <<_LT_EOF
18078 #line 18078 "configure"
18079 #include "confdefs.h"
18080
18081 #if HAVE_DLFCN_H
18082 #include <dlfcn.h>
18083 #endif
18084
18085 #include <stdio.h>
18086
18087 #ifdef RTLD_GLOBAL
18088 # define LT_DLGLOBAL RTLD_GLOBAL
18089 #else
18090 # ifdef DL_GLOBAL
18091 # define LT_DLGLOBAL DL_GLOBAL
18092 # else
18093 # define LT_DLGLOBAL 0
18094 # endif
18095 #endif
18096
18097 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18098 find out it does not work in some platform. */
18099 #ifndef LT_DLLAZY_OR_NOW
18100 # ifdef RTLD_LAZY
18101 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18102 # else
18103 # ifdef DL_LAZY
18104 # define LT_DLLAZY_OR_NOW DL_LAZY
18105 # else
18106 # ifdef RTLD_NOW
18107 # define LT_DLLAZY_OR_NOW RTLD_NOW
18108 # else
18109 # ifdef DL_NOW
18110 # define LT_DLLAZY_OR_NOW DL_NOW
18111 # else
18112 # define LT_DLLAZY_OR_NOW 0
18113 # endif
18114 # endif
18115 # endif
18116 # endif
18117 #endif
18118
18119 /* When -fvisbility=hidden is used, assume the code has been annotated
18120 correspondingly for the symbols needed. */
18121 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18122 void fnord () __attribute__((visibility("default")));
18123 #endif
18124
18125 void fnord () { int i=42; }
18126 int main ()
18127 {
18128 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18129 int status = $lt_dlunknown;
18130
18131 if (self)
18132 {
18133 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18134 else
18135 {
18136 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18137 else puts (dlerror ());
18138 }
18139 /* dlclose (self); */
18140 }
18141 else
18142 puts (dlerror ());
18143
18144 return status;
18145 }
18146 _LT_EOF
18147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18148 (eval $ac_link) 2>&5
18149 ac_status=$?
18150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18151 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18152 (./conftest; exit; ) >&5 2>/dev/null
18153 lt_status=$?
18154 case x$lt_status in
18155 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18156 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18157 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18158 esac
18159 else :
18160 # compilation failed
18161 lt_cv_dlopen_self_static=no
18162 fi
18163 fi
18164 rm -fr conftest*
18165
18166
18167 fi
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18169 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18170 fi
18171
18172 CPPFLAGS="$save_CPPFLAGS"
18173 LDFLAGS="$save_LDFLAGS"
18174 LIBS="$save_LIBS"
18175 ;;
18176 esac
18177
18178 case $lt_cv_dlopen_self in
18179 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18180 *) enable_dlopen_self=unknown ;;
18181 esac
18182
18183 case $lt_cv_dlopen_self_static in
18184 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18185 *) enable_dlopen_self_static=unknown ;;
18186 esac
18187 fi
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205 striplib=
18206 old_striplib=
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18208 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18209 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18210 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18211 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18213 $as_echo "yes" >&6; }
18214 else
18215 # FIXME - insert some real tests, host_os isn't really good enough
18216 case $host_os in
18217 darwin*)
18218 if test -n "$STRIP" ; then
18219 striplib="$STRIP -x"
18220 old_striplib="$STRIP -S"
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18222 $as_echo "yes" >&6; }
18223 else
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18225 $as_echo "no" >&6; }
18226 fi
18227 ;;
18228 *)
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18230 $as_echo "no" >&6; }
18231 ;;
18232 esac
18233 fi
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246 # Report which library types will actually be built
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18248 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18250 $as_echo "$can_build_shared" >&6; }
18251
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18253 $as_echo_n "checking whether to build shared libraries... " >&6; }
18254 test "$can_build_shared" = "no" && enable_shared=no
18255
18256 # On AIX, shared libraries and static libraries use the same namespace, and
18257 # are all built from PIC.
18258 case $host_os in
18259 aix3*)
18260 test "$enable_shared" = yes && enable_static=no
18261 if test -n "$RANLIB"; then
18262 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18263 postinstall_cmds='$RANLIB $lib'
18264 fi
18265 ;;
18266
18267 aix[4-9]*)
18268 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18269 test "$enable_shared" = yes && enable_static=no
18270 fi
18271 ;;
18272 esac
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18274 $as_echo "$enable_shared" >&6; }
18275
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18277 $as_echo_n "checking whether to build static libraries... " >&6; }
18278 # Make sure either enable_shared or enable_static is yes.
18279 test "$enable_shared" = yes || enable_static=yes
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18281 $as_echo "$enable_static" >&6; }
18282
18283
18284
18285
18286 fi
18287 ac_ext=c
18288 ac_cpp='$CPP $CPPFLAGS'
18289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18292
18293 CC="$lt_save_CC"
18294
18295 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18296 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18297 (test "X$CXX" != "Xg++"))) ; then
18298 ac_ext=cpp
18299 ac_cpp='$CXXCPP $CPPFLAGS'
18300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18304 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18305 if test -z "$CXXCPP"; then
18306 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18307 $as_echo_n "(cached) " >&6
18308 else
18309 # Double quotes because CXXCPP needs to be expanded
18310 for CXXCPP in "$CXX -E" "/lib/cpp"
18311 do
18312 ac_preproc_ok=false
18313 for ac_cxx_preproc_warn_flag in '' yes
18314 do
18315 # Use a header file that comes with gcc, so configuring glibc
18316 # with a fresh cross-compiler works.
18317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18318 # <limits.h> exists even on freestanding compilers.
18319 # On the NeXT, cc -E runs the code through the compiler's parser,
18320 # not just through cpp. "Syntax error" is here to catch this case.
18321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18322 /* end confdefs.h. */
18323 #ifdef __STDC__
18324 # include <limits.h>
18325 #else
18326 # include <assert.h>
18327 #endif
18328 Syntax error
18329 _ACEOF
18330 if ac_fn_cxx_try_cpp "$LINENO"; then :
18331
18332 else
18333 # Broken: fails on valid input.
18334 continue
18335 fi
18336 rm -f conftest.err conftest.$ac_ext
18337
18338 # OK, works on sane cases. Now check whether nonexistent headers
18339 # can be detected and how.
18340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18341 /* end confdefs.h. */
18342 #include <ac_nonexistent.h>
18343 _ACEOF
18344 if ac_fn_cxx_try_cpp "$LINENO"; then :
18345 # Broken: success on invalid input.
18346 continue
18347 else
18348 # Passes both tests.
18349 ac_preproc_ok=:
18350 break
18351 fi
18352 rm -f conftest.err conftest.$ac_ext
18353
18354 done
18355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18356 rm -f conftest.err conftest.$ac_ext
18357 if $ac_preproc_ok; then :
18358 break
18359 fi
18360
18361 done
18362 ac_cv_prog_CXXCPP=$CXXCPP
18363
18364 fi
18365 CXXCPP=$ac_cv_prog_CXXCPP
18366 else
18367 ac_cv_prog_CXXCPP=$CXXCPP
18368 fi
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18370 $as_echo "$CXXCPP" >&6; }
18371 ac_preproc_ok=false
18372 for ac_cxx_preproc_warn_flag in '' yes
18373 do
18374 # Use a header file that comes with gcc, so configuring glibc
18375 # with a fresh cross-compiler works.
18376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18377 # <limits.h> exists even on freestanding compilers.
18378 # On the NeXT, cc -E runs the code through the compiler's parser,
18379 # not just through cpp. "Syntax error" is here to catch this case.
18380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18381 /* end confdefs.h. */
18382 #ifdef __STDC__
18383 # include <limits.h>
18384 #else
18385 # include <assert.h>
18386 #endif
18387 Syntax error
18388 _ACEOF
18389 if ac_fn_cxx_try_cpp "$LINENO"; then :
18390
18391 else
18392 # Broken: fails on valid input.
18393 continue
18394 fi
18395 rm -f conftest.err conftest.$ac_ext
18396
18397 # OK, works on sane cases. Now check whether nonexistent headers
18398 # can be detected and how.
18399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18400 /* end confdefs.h. */
18401 #include <ac_nonexistent.h>
18402 _ACEOF
18403 if ac_fn_cxx_try_cpp "$LINENO"; then :
18404 # Broken: success on invalid input.
18405 continue
18406 else
18407 # Passes both tests.
18408 ac_preproc_ok=:
18409 break
18410 fi
18411 rm -f conftest.err conftest.$ac_ext
18412
18413 done
18414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18415 rm -f conftest.err conftest.$ac_ext
18416 if $ac_preproc_ok; then :
18417
18418 else
18419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18421 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18422 See \`config.log' for more details." "$LINENO" 5; }
18423 fi
18424
18425 ac_ext=c
18426 ac_cpp='$CPP $CPPFLAGS'
18427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18430
18431 else
18432 _lt_caught_CXX_error=yes
18433 fi
18434
18435 ac_ext=cpp
18436 ac_cpp='$CXXCPP $CPPFLAGS'
18437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18440
18441 archive_cmds_need_lc_CXX=no
18442 allow_undefined_flag_CXX=
18443 always_export_symbols_CXX=no
18444 archive_expsym_cmds_CXX=
18445 compiler_needs_object_CXX=no
18446 export_dynamic_flag_spec_CXX=
18447 hardcode_direct_CXX=no
18448 hardcode_direct_absolute_CXX=no
18449 hardcode_libdir_flag_spec_CXX=
18450 hardcode_libdir_flag_spec_ld_CXX=
18451 hardcode_libdir_separator_CXX=
18452 hardcode_minus_L_CXX=no
18453 hardcode_shlibpath_var_CXX=unsupported
18454 hardcode_automatic_CXX=no
18455 inherit_rpath_CXX=no
18456 module_cmds_CXX=
18457 module_expsym_cmds_CXX=
18458 link_all_deplibs_CXX=unknown
18459 old_archive_cmds_CXX=$old_archive_cmds
18460 reload_flag_CXX=$reload_flag
18461 reload_cmds_CXX=$reload_cmds
18462 no_undefined_flag_CXX=
18463 whole_archive_flag_spec_CXX=
18464 enable_shared_with_static_runtimes_CXX=no
18465
18466 # Source file extension for C++ test sources.
18467 ac_ext=cpp
18468
18469 # Object file extension for compiled C++ test sources.
18470 objext=o
18471 objext_CXX=$objext
18472
18473 # No sense in running all these tests if we already determined that
18474 # the CXX compiler isn't working. Some variables (like enable_shared)
18475 # are currently assumed to apply to all compilers on this platform,
18476 # and will be corrupted by setting them based on a non-working compiler.
18477 if test "$_lt_caught_CXX_error" != yes; then
18478 # Code to be used in simple compile tests
18479 lt_simple_compile_test_code="int some_variable = 0;"
18480
18481 # Code to be used in simple link tests
18482 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18483
18484 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18485
18486
18487
18488
18489
18490
18491 # If no C compiler was specified, use CC.
18492 LTCC=${LTCC-"$CC"}
18493
18494 # If no C compiler flags were specified, use CFLAGS.
18495 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18496
18497 # Allow CC to be a program name with arguments.
18498 compiler=$CC
18499
18500
18501 # save warnings/boilerplate of simple test code
18502 ac_outfile=conftest.$ac_objext
18503 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18504 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18505 _lt_compiler_boilerplate=`cat conftest.err`
18506 $RM conftest*
18507
18508 ac_outfile=conftest.$ac_objext
18509 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18510 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18511 _lt_linker_boilerplate=`cat conftest.err`
18512 $RM -r conftest*
18513
18514
18515 # Allow CC to be a program name with arguments.
18516 lt_save_CC=$CC
18517 lt_save_LD=$LD
18518 lt_save_GCC=$GCC
18519 GCC=$GXX
18520 lt_save_with_gnu_ld=$with_gnu_ld
18521 lt_save_path_LD=$lt_cv_path_LD
18522 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18523 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18524 else
18525 $as_unset lt_cv_prog_gnu_ld
18526 fi
18527 if test -n "${lt_cv_path_LDCXX+set}"; then
18528 lt_cv_path_LD=$lt_cv_path_LDCXX
18529 else
18530 $as_unset lt_cv_path_LD
18531 fi
18532 test -z "${LDCXX+set}" || LD=$LDCXX
18533 CC=${CXX-"c++"}
18534 compiler=$CC
18535 compiler_CXX=$CC
18536 for cc_temp in $compiler""; do
18537 case $cc_temp in
18538 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18539 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18540 \-*) ;;
18541 *) break;;
18542 esac
18543 done
18544 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18545
18546
18547 if test -n "$compiler"; then
18548 # We don't want -fno-exception when compiling C++ code, so set the
18549 # no_builtin_flag separately
18550 if test "$GXX" = yes; then
18551 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18552 else
18553 lt_prog_compiler_no_builtin_flag_CXX=
18554 fi
18555
18556 if test "$GXX" = yes; then
18557 # Set up default GNU C++ configuration
18558
18559
18560
18561 # Check whether --with-gnu-ld was given.
18562 if test "${with_gnu_ld+set}" = set; then :
18563 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18564 else
18565 with_gnu_ld=no
18566 fi
18567
18568 ac_prog=ld
18569 if test "$GCC" = yes; then
18570 # Check if gcc -print-prog-name=ld gives a path.
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18572 $as_echo_n "checking for ld used by $CC... " >&6; }
18573 case $host in
18574 *-*-mingw*)
18575 # gcc leaves a trailing carriage return which upsets mingw
18576 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18577 *)
18578 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18579 esac
18580 case $ac_prog in
18581 # Accept absolute paths.
18582 [\\/]* | ?:[\\/]*)
18583 re_direlt='/[^/][^/]*/\.\./'
18584 # Canonicalize the pathname of ld
18585 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18586 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18587 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18588 done
18589 test -z "$LD" && LD="$ac_prog"
18590 ;;
18591 "")
18592 # If it fails, then pretend we aren't using GCC.
18593 ac_prog=ld
18594 ;;
18595 *)
18596 # If it is relative, then search for the first ld in PATH.
18597 with_gnu_ld=unknown
18598 ;;
18599 esac
18600 elif test "$with_gnu_ld" = yes; then
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18602 $as_echo_n "checking for GNU ld... " >&6; }
18603 else
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18605 $as_echo_n "checking for non-GNU ld... " >&6; }
18606 fi
18607 if test "${lt_cv_path_LD+set}" = set; then :
18608 $as_echo_n "(cached) " >&6
18609 else
18610 if test -z "$LD"; then
18611 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18612 for ac_dir in $PATH; do
18613 IFS="$lt_save_ifs"
18614 test -z "$ac_dir" && ac_dir=.
18615 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18616 lt_cv_path_LD="$ac_dir/$ac_prog"
18617 # Check to see if the program is GNU ld. I'd rather use --version,
18618 # but apparently some variants of GNU ld only accept -v.
18619 # Break only if it was the GNU/non-GNU ld that we prefer.
18620 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18621 *GNU* | *'with BFD'*)
18622 test "$with_gnu_ld" != no && break
18623 ;;
18624 *)
18625 test "$with_gnu_ld" != yes && break
18626 ;;
18627 esac
18628 fi
18629 done
18630 IFS="$lt_save_ifs"
18631 else
18632 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18633 fi
18634 fi
18635
18636 LD="$lt_cv_path_LD"
18637 if test -n "$LD"; then
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18639 $as_echo "$LD" >&6; }
18640 else
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18642 $as_echo "no" >&6; }
18643 fi
18644 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18646 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18647 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18648 $as_echo_n "(cached) " >&6
18649 else
18650 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18651 case `$LD -v 2>&1 </dev/null` in
18652 *GNU* | *'with BFD'*)
18653 lt_cv_prog_gnu_ld=yes
18654 ;;
18655 *)
18656 lt_cv_prog_gnu_ld=no
18657 ;;
18658 esac
18659 fi
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18661 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18662 with_gnu_ld=$lt_cv_prog_gnu_ld
18663
18664
18665
18666
18667
18668
18669
18670 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18671 # archiving commands below assume that GNU ld is being used.
18672 if test "$with_gnu_ld" = yes; then
18673 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18674 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'
18675
18676 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18677 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18678
18679 # If archive_cmds runs LD, not CC, wlarc should be empty
18680 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18681 # investigate it a little bit more. (MM)
18682 wlarc='${wl}'
18683
18684 # ancient GNU ld didn't support --whole-archive et. al.
18685 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18686 $GREP 'no-whole-archive' > /dev/null; then
18687 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18688 else
18689 whole_archive_flag_spec_CXX=
18690 fi
18691 else
18692 with_gnu_ld=no
18693 wlarc=
18694
18695 # A generic and very simple default shared library creation
18696 # command for GNU C++ for the case where it uses the native
18697 # linker, instead of GNU ld. If possible, this setting should
18698 # overridden to take advantage of the native linker features on
18699 # the platform it is being used on.
18700 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18701 fi
18702
18703 # Commands to make compiler produce verbose output that lists
18704 # what "hidden" libraries, object files and flags are used when
18705 # linking a shared library.
18706 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18707
18708 else
18709 GXX=no
18710 with_gnu_ld=no
18711 wlarc=
18712 fi
18713
18714 # PORTME: fill in a description of your system's C++ link characteristics
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18716 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18717 ld_shlibs_CXX=yes
18718 case $host_os in
18719 aix3*)
18720 # FIXME: insert proper C++ library support
18721 ld_shlibs_CXX=no
18722 ;;
18723 aix[4-9]*)
18724 if test "$host_cpu" = ia64; then
18725 # On IA64, the linker does run time linking by default, so we don't
18726 # have to do anything special.
18727 aix_use_runtimelinking=no
18728 exp_sym_flag='-Bexport'
18729 no_entry_flag=""
18730 else
18731 aix_use_runtimelinking=no
18732
18733 # Test if we are trying to use run time linking or normal
18734 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18735 # need to do runtime linking.
18736 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18737 for ld_flag in $LDFLAGS; do
18738 case $ld_flag in
18739 *-brtl*)
18740 aix_use_runtimelinking=yes
18741 break
18742 ;;
18743 esac
18744 done
18745 ;;
18746 esac
18747
18748 exp_sym_flag='-bexport'
18749 no_entry_flag='-bnoentry'
18750 fi
18751
18752 # When large executables or shared objects are built, AIX ld can
18753 # have problems creating the table of contents. If linking a library
18754 # or program results in "error TOC overflow" add -mminimal-toc to
18755 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18756 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18757
18758 archive_cmds_CXX=''
18759 hardcode_direct_CXX=yes
18760 hardcode_direct_absolute_CXX=yes
18761 hardcode_libdir_separator_CXX=':'
18762 link_all_deplibs_CXX=yes
18763 file_list_spec_CXX='${wl}-f,'
18764
18765 if test "$GXX" = yes; then
18766 case $host_os in aix4.[012]|aix4.[012].*)
18767 # We only want to do this on AIX 4.2 and lower, the check
18768 # below for broken collect2 doesn't work under 4.3+
18769 collect2name=`${CC} -print-prog-name=collect2`
18770 if test -f "$collect2name" &&
18771 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18772 then
18773 # We have reworked collect2
18774 :
18775 else
18776 # We have old collect2
18777 hardcode_direct_CXX=unsupported
18778 # It fails to find uninstalled libraries when the uninstalled
18779 # path is not listed in the libpath. Setting hardcode_minus_L
18780 # to unsupported forces relinking
18781 hardcode_minus_L_CXX=yes
18782 hardcode_libdir_flag_spec_CXX='-L$libdir'
18783 hardcode_libdir_separator_CXX=
18784 fi
18785 esac
18786 shared_flag='-shared'
18787 if test "$aix_use_runtimelinking" = yes; then
18788 shared_flag="$shared_flag "'${wl}-G'
18789 fi
18790 else
18791 # not using gcc
18792 if test "$host_cpu" = ia64; then
18793 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18794 # chokes on -Wl,-G. The following line is correct:
18795 shared_flag='-G'
18796 else
18797 if test "$aix_use_runtimelinking" = yes; then
18798 shared_flag='${wl}-G'
18799 else
18800 shared_flag='${wl}-bM:SRE'
18801 fi
18802 fi
18803 fi
18804
18805 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18806 # It seems that -bexpall does not export symbols beginning with
18807 # underscore (_), so it is better to generate a list of symbols to
18808 # export.
18809 always_export_symbols_CXX=yes
18810 if test "$aix_use_runtimelinking" = yes; then
18811 # Warning - without using the other runtime loading flags (-brtl),
18812 # -berok will link without error, but may produce a broken library.
18813 allow_undefined_flag_CXX='-berok'
18814 # Determine the default libpath from the value encoded in an empty
18815 # executable.
18816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18817 /* end confdefs.h. */
18818
18819 int
18820 main ()
18821 {
18822
18823 ;
18824 return 0;
18825 }
18826 _ACEOF
18827 if ac_fn_cxx_try_link "$LINENO"; then :
18828
18829 lt_aix_libpath_sed='
18830 /Import File Strings/,/^$/ {
18831 /^0/ {
18832 s/^0 *\(.*\)$/\1/
18833 p
18834 }
18835 }'
18836 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18837 # Check for a 64-bit object if we didn't find anything.
18838 if test -z "$aix_libpath"; then
18839 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18840 fi
18841 fi
18842 rm -f core conftest.err conftest.$ac_objext \
18843 conftest$ac_exeext conftest.$ac_ext
18844 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18845
18846 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18847
18848 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"
18849 else
18850 if test "$host_cpu" = ia64; then
18851 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18852 allow_undefined_flag_CXX="-z nodefs"
18853 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"
18854 else
18855 # Determine the default libpath from the value encoded in an
18856 # empty executable.
18857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18858 /* end confdefs.h. */
18859
18860 int
18861 main ()
18862 {
18863
18864 ;
18865 return 0;
18866 }
18867 _ACEOF
18868 if ac_fn_cxx_try_link "$LINENO"; then :
18869
18870 lt_aix_libpath_sed='
18871 /Import File Strings/,/^$/ {
18872 /^0/ {
18873 s/^0 *\(.*\)$/\1/
18874 p
18875 }
18876 }'
18877 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18878 # Check for a 64-bit object if we didn't find anything.
18879 if test -z "$aix_libpath"; then
18880 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18881 fi
18882 fi
18883 rm -f core conftest.err conftest.$ac_objext \
18884 conftest$ac_exeext conftest.$ac_ext
18885 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18886
18887 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18888 # Warning - without using the other run time loading flags,
18889 # -berok will link without error, but may produce a broken library.
18890 no_undefined_flag_CXX=' ${wl}-bernotok'
18891 allow_undefined_flag_CXX=' ${wl}-berok'
18892 if test "$with_gnu_ld" = yes; then
18893 # We only use this code for GNU lds that support --whole-archive.
18894 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18895 else
18896 # Exported symbols can be pulled into shared objects from archives
18897 whole_archive_flag_spec_CXX='$convenience'
18898 fi
18899 archive_cmds_need_lc_CXX=yes
18900 # This is similar to how AIX traditionally builds its shared
18901 # libraries.
18902 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'
18903 fi
18904 fi
18905 ;;
18906
18907 beos*)
18908 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18909 allow_undefined_flag_CXX=unsupported
18910 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18911 # support --undefined. This deserves some investigation. FIXME
18912 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18913 else
18914 ld_shlibs_CXX=no
18915 fi
18916 ;;
18917
18918 chorus*)
18919 case $cc_basename in
18920 *)
18921 # FIXME: insert proper C++ library support
18922 ld_shlibs_CXX=no
18923 ;;
18924 esac
18925 ;;
18926
18927 cygwin* | mingw* | pw32* | cegcc*)
18928 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18929 # as there is no search path for DLLs.
18930 hardcode_libdir_flag_spec_CXX='-L$libdir'
18931 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18932 allow_undefined_flag_CXX=unsupported
18933 always_export_symbols_CXX=no
18934 enable_shared_with_static_runtimes_CXX=yes
18935
18936 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18937 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'
18938 # If the export-symbols file already is a .def file (1st line
18939 # is EXPORTS), use it as is; otherwise, prepend...
18940 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18941 cp $export_symbols $output_objdir/$soname.def;
18942 else
18943 echo EXPORTS > $output_objdir/$soname.def;
18944 cat $export_symbols >> $output_objdir/$soname.def;
18945 fi~
18946 $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'
18947 else
18948 ld_shlibs_CXX=no
18949 fi
18950 ;;
18951 darwin* | rhapsody*)
18952
18953
18954 archive_cmds_need_lc_CXX=no
18955 hardcode_direct_CXX=no
18956 hardcode_automatic_CXX=yes
18957 hardcode_shlibpath_var_CXX=unsupported
18958 if test "$lt_cv_ld_force_load" = "yes"; then
18959 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\"`'
18960 else
18961 whole_archive_flag_spec_CXX=''
18962 fi
18963 link_all_deplibs_CXX=yes
18964 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18965 case $cc_basename in
18966 ifort*) _lt_dar_can_shared=yes ;;
18967 *) _lt_dar_can_shared=$GCC ;;
18968 esac
18969 if test "$_lt_dar_can_shared" = "yes"; then
18970 output_verbose_link_cmd=func_echo_all
18971 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}"
18972 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18973 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}"
18974 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}"
18975 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18976 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}"
18977 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}"
18978 fi
18979
18980 else
18981 ld_shlibs_CXX=no
18982 fi
18983
18984 ;;
18985
18986 dgux*)
18987 case $cc_basename in
18988 ec++*)
18989 # FIXME: insert proper C++ library support
18990 ld_shlibs_CXX=no
18991 ;;
18992 ghcx*)
18993 # Green Hills C++ Compiler
18994 # FIXME: insert proper C++ library support
18995 ld_shlibs_CXX=no
18996 ;;
18997 *)
18998 # FIXME: insert proper C++ library support
18999 ld_shlibs_CXX=no
19000 ;;
19001 esac
19002 ;;
19003
19004 freebsd2.*)
19005 # C++ shared libraries reported to be fairly broken before
19006 # switch to ELF
19007 ld_shlibs_CXX=no
19008 ;;
19009
19010 freebsd-elf*)
19011 archive_cmds_need_lc_CXX=no
19012 ;;
19013
19014 freebsd* | dragonfly*)
19015 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19016 # conventions
19017 ld_shlibs_CXX=yes
19018 ;;
19019
19020 gnu*)
19021 ;;
19022
19023 haiku*)
19024 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19025 link_all_deplibs_CXX=yes
19026 ;;
19027
19028 hpux9*)
19029 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19030 hardcode_libdir_separator_CXX=:
19031 export_dynamic_flag_spec_CXX='${wl}-E'
19032 hardcode_direct_CXX=yes
19033 hardcode_minus_L_CXX=yes # Not in the search PATH,
19034 # but as the default
19035 # location of the library.
19036
19037 case $cc_basename in
19038 CC*)
19039 # FIXME: insert proper C++ library support
19040 ld_shlibs_CXX=no
19041 ;;
19042 aCC*)
19043 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'
19044 # Commands to make compiler produce verbose output that lists
19045 # what "hidden" libraries, object files and flags are used when
19046 # linking a shared library.
19047 #
19048 # There doesn't appear to be a way to prevent this compiler from
19049 # explicitly linking system object files so we need to strip them
19050 # from the output so that they don't get included in the library
19051 # dependencies.
19052 output_verbose_link_cmd='templist=`($CC -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"'
19053 ;;
19054 *)
19055 if test "$GXX" = yes; then
19056 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'
19057 else
19058 # FIXME: insert proper C++ library support
19059 ld_shlibs_CXX=no
19060 fi
19061 ;;
19062 esac
19063 ;;
19064
19065 hpux10*|hpux11*)
19066 if test $with_gnu_ld = no; then
19067 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19068 hardcode_libdir_separator_CXX=:
19069
19070 case $host_cpu in
19071 hppa*64*|ia64*)
19072 ;;
19073 *)
19074 export_dynamic_flag_spec_CXX='${wl}-E'
19075 ;;
19076 esac
19077 fi
19078 case $host_cpu in
19079 hppa*64*|ia64*)
19080 hardcode_direct_CXX=no
19081 hardcode_shlibpath_var_CXX=no
19082 ;;
19083 *)
19084 hardcode_direct_CXX=yes
19085 hardcode_direct_absolute_CXX=yes
19086 hardcode_minus_L_CXX=yes # Not in the search PATH,
19087 # but as the default
19088 # location of the library.
19089 ;;
19090 esac
19091
19092 case $cc_basename in
19093 CC*)
19094 # FIXME: insert proper C++ library support
19095 ld_shlibs_CXX=no
19096 ;;
19097 aCC*)
19098 case $host_cpu in
19099 hppa*64*)
19100 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19101 ;;
19102 ia64*)
19103 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19104 ;;
19105 *)
19106 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19107 ;;
19108 esac
19109 # Commands to make compiler produce verbose output that lists
19110 # what "hidden" libraries, object files and flags are used when
19111 # linking a shared library.
19112 #
19113 # There doesn't appear to be a way to prevent this compiler from
19114 # explicitly linking system object files so we need to strip them
19115 # from the output so that they don't get included in the library
19116 # dependencies.
19117 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"'
19118 ;;
19119 *)
19120 if test "$GXX" = yes; then
19121 if test $with_gnu_ld = no; then
19122 case $host_cpu in
19123 hppa*64*)
19124 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19125 ;;
19126 ia64*)
19127 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19128 ;;
19129 *)
19130 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'
19131 ;;
19132 esac
19133 fi
19134 else
19135 # FIXME: insert proper C++ library support
19136 ld_shlibs_CXX=no
19137 fi
19138 ;;
19139 esac
19140 ;;
19141
19142 interix[3-9]*)
19143 hardcode_direct_CXX=no
19144 hardcode_shlibpath_var_CXX=no
19145 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19146 export_dynamic_flag_spec_CXX='${wl}-E'
19147 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19148 # Instead, shared libraries are loaded at an image base (0x10000000 by
19149 # default) and relocated if they conflict, which is a slow very memory
19150 # consuming and fragmenting process. To avoid this, we pick a random,
19151 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19152 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19153 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'
19154 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'
19155 ;;
19156 irix5* | irix6*)
19157 case $cc_basename in
19158 CC*)
19159 # SGI C++
19160 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'
19161
19162 # Archives containing C++ object files must be created using
19163 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19164 # necessary to make sure instantiated templates are included
19165 # in the archive.
19166 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19167 ;;
19168 *)
19169 if test "$GXX" = yes; then
19170 if test "$with_gnu_ld" = no; then
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"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19172 else
19173 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'
19174 fi
19175 fi
19176 link_all_deplibs_CXX=yes
19177 ;;
19178 esac
19179 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19180 hardcode_libdir_separator_CXX=:
19181 inherit_rpath_CXX=yes
19182 ;;
19183
19184 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19185 case $cc_basename in
19186 KCC*)
19187 # Kuck and Associates, Inc. (KAI) C++ Compiler
19188
19189 # KCC will only create a shared library if the output file
19190 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19191 # to its proper name (with version) after linking.
19192 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'
19193 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'
19194 # Commands to make compiler produce verbose output that lists
19195 # what "hidden" libraries, object files and flags are used when
19196 # linking a shared library.
19197 #
19198 # There doesn't appear to be a way to prevent this compiler from
19199 # explicitly linking system object files so we need to strip them
19200 # from the output so that they don't get included in the library
19201 # dependencies.
19202 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"'
19203
19204 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19205 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19206
19207 # Archives containing C++ object files must be created using
19208 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19209 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19210 ;;
19211 icpc* | ecpc* )
19212 # Intel C++
19213 with_gnu_ld=yes
19214 # version 8.0 and above of icpc choke on multiply defined symbols
19215 # if we add $predep_objects and $postdep_objects, however 7.1 and
19216 # earlier do not add the objects themselves.
19217 case `$CC -V 2>&1` in
19218 *"Version 7."*)
19219 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19220 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'
19221 ;;
19222 *) # Version 8.0 or newer
19223 tmp_idyn=
19224 case $host_cpu in
19225 ia64*) tmp_idyn=' -i_dynamic';;
19226 esac
19227 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19228 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'
19229 ;;
19230 esac
19231 archive_cmds_need_lc_CXX=no
19232 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19233 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19234 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19235 ;;
19236 pgCC* | pgcpp*)
19237 # Portland Group C++ compiler
19238 case `$CC -V` in
19239 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19240 prelink_cmds_CXX='tpldir=Template.dir~
19241 rm -rf $tpldir~
19242 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19243 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19244 old_archive_cmds_CXX='tpldir=Template.dir~
19245 rm -rf $tpldir~
19246 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19247 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19248 $RANLIB $oldlib'
19249 archive_cmds_CXX='tpldir=Template.dir~
19250 rm -rf $tpldir~
19251 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19252 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19253 archive_expsym_cmds_CXX='tpldir=Template.dir~
19254 rm -rf $tpldir~
19255 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19256 $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'
19257 ;;
19258 *) # Version 6 and above use weak symbols
19259 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19260 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'
19261 ;;
19262 esac
19263
19264 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19265 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19266 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'
19267 ;;
19268 cxx*)
19269 # Compaq C++
19270 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19271 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'
19272
19273 runpath_var=LD_RUN_PATH
19274 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19275 hardcode_libdir_separator_CXX=:
19276
19277 # Commands to make compiler produce verbose output that lists
19278 # what "hidden" libraries, object files and flags are used when
19279 # linking a shared library.
19280 #
19281 # There doesn't appear to be a way to prevent this compiler from
19282 # explicitly linking system object files so we need to strip them
19283 # from the output so that they don't get included in the library
19284 # dependencies.
19285 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'
19286 ;;
19287 xl* | mpixl* | bgxl*)
19288 # IBM XL 8.0 on PPC, with GNU ld
19289 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19290 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19291 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19292 if test "x$supports_anon_versioning" = xyes; then
19293 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19294 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19295 echo "local: *; };" >> $output_objdir/$libname.ver~
19296 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19297 fi
19298 ;;
19299 *)
19300 case `$CC -V 2>&1 | sed 5q` in
19301 *Sun\ C*)
19302 # Sun C++ 5.9
19303 no_undefined_flag_CXX=' -zdefs'
19304 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19305 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'
19306 hardcode_libdir_flag_spec_CXX='-R$libdir'
19307 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'
19308 compiler_needs_object_CXX=yes
19309
19310 # Not sure whether something based on
19311 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19312 # would be better.
19313 output_verbose_link_cmd='func_echo_all'
19314
19315 # Archives containing C++ object files must be created using
19316 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19317 # necessary to make sure instantiated templates are included
19318 # in the archive.
19319 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19320 ;;
19321 esac
19322 ;;
19323 esac
19324 ;;
19325
19326 lynxos*)
19327 # FIXME: insert proper C++ library support
19328 ld_shlibs_CXX=no
19329 ;;
19330
19331 m88k*)
19332 # FIXME: insert proper C++ library support
19333 ld_shlibs_CXX=no
19334 ;;
19335
19336 mvs*)
19337 case $cc_basename in
19338 cxx*)
19339 # FIXME: insert proper C++ library support
19340 ld_shlibs_CXX=no
19341 ;;
19342 *)
19343 # FIXME: insert proper C++ library support
19344 ld_shlibs_CXX=no
19345 ;;
19346 esac
19347 ;;
19348
19349 netbsd*)
19350 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19351 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19352 wlarc=
19353 hardcode_libdir_flag_spec_CXX='-R$libdir'
19354 hardcode_direct_CXX=yes
19355 hardcode_shlibpath_var_CXX=no
19356 fi
19357 # Workaround some broken pre-1.5 toolchains
19358 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19359 ;;
19360
19361 *nto* | *qnx*)
19362 ld_shlibs_CXX=yes
19363 ;;
19364
19365 openbsd2*)
19366 # C++ shared libraries are fairly broken
19367 ld_shlibs_CXX=no
19368 ;;
19369
19370 openbsd*)
19371 if test -f /usr/libexec/ld.so; then
19372 hardcode_direct_CXX=yes
19373 hardcode_shlibpath_var_CXX=no
19374 hardcode_direct_absolute_CXX=yes
19375 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19376 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19377 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19378 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19379 export_dynamic_flag_spec_CXX='${wl}-E'
19380 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19381 fi
19382 output_verbose_link_cmd=func_echo_all
19383 else
19384 ld_shlibs_CXX=no
19385 fi
19386 ;;
19387
19388 osf3* | osf4* | osf5*)
19389 case $cc_basename in
19390 KCC*)
19391 # Kuck and Associates, Inc. (KAI) C++ Compiler
19392
19393 # KCC will only create a shared library if the output file
19394 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19395 # to its proper name (with version) after linking.
19396 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'
19397
19398 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19399 hardcode_libdir_separator_CXX=:
19400
19401 # Archives containing C++ object files must be created using
19402 # the KAI C++ compiler.
19403 case $host in
19404 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19405 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19406 esac
19407 ;;
19408 RCC*)
19409 # Rational C++ 2.4.1
19410 # FIXME: insert proper C++ library support
19411 ld_shlibs_CXX=no
19412 ;;
19413 cxx*)
19414 case $host in
19415 osf3*)
19416 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19417 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'
19418 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19419 ;;
19420 *)
19421 allow_undefined_flag_CXX=' -expect_unresolved \*'
19422 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'
19423 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19424 echo "-hidden">> $lib.exp~
19425 $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~
19426 $RM $lib.exp'
19427 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19428 ;;
19429 esac
19430
19431 hardcode_libdir_separator_CXX=:
19432
19433 # Commands to make compiler produce verbose output that lists
19434 # what "hidden" libraries, object files and flags are used when
19435 # linking a shared library.
19436 #
19437 # There doesn't appear to be a way to prevent this compiler from
19438 # explicitly linking system object files so we need to strip them
19439 # from the output so that they don't get included in the library
19440 # dependencies.
19441 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"'
19442 ;;
19443 *)
19444 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19445 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19446 case $host in
19447 osf3*)
19448 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'
19449 ;;
19450 *)
19451 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'
19452 ;;
19453 esac
19454
19455 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19456 hardcode_libdir_separator_CXX=:
19457
19458 # Commands to make compiler produce verbose output that lists
19459 # what "hidden" libraries, object files and flags are used when
19460 # linking a shared library.
19461 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19462
19463 else
19464 # FIXME: insert proper C++ library support
19465 ld_shlibs_CXX=no
19466 fi
19467 ;;
19468 esac
19469 ;;
19470
19471 psos*)
19472 # FIXME: insert proper C++ library support
19473 ld_shlibs_CXX=no
19474 ;;
19475
19476 sunos4*)
19477 case $cc_basename in
19478 CC*)
19479 # Sun C++ 4.x
19480 # FIXME: insert proper C++ library support
19481 ld_shlibs_CXX=no
19482 ;;
19483 lcc*)
19484 # Lucid
19485 # FIXME: insert proper C++ library support
19486 ld_shlibs_CXX=no
19487 ;;
19488 *)
19489 # FIXME: insert proper C++ library support
19490 ld_shlibs_CXX=no
19491 ;;
19492 esac
19493 ;;
19494
19495 solaris*)
19496 case $cc_basename in
19497 CC*)
19498 # Sun C++ 4.2, 5.x and Centerline C++
19499 archive_cmds_need_lc_CXX=yes
19500 no_undefined_flag_CXX=' -zdefs'
19501 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19502 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19503 $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'
19504
19505 hardcode_libdir_flag_spec_CXX='-R$libdir'
19506 hardcode_shlibpath_var_CXX=no
19507 case $host_os in
19508 solaris2.[0-5] | solaris2.[0-5].*) ;;
19509 *)
19510 # The compiler driver will combine and reorder linker options,
19511 # but understands `-z linker_flag'.
19512 # Supported since Solaris 2.6 (maybe 2.5.1?)
19513 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19514 ;;
19515 esac
19516 link_all_deplibs_CXX=yes
19517
19518 output_verbose_link_cmd='func_echo_all'
19519
19520 # Archives containing C++ object files must be created using
19521 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19522 # necessary to make sure instantiated templates are included
19523 # in the archive.
19524 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19525 ;;
19526 gcx*)
19527 # Green Hills C++ Compiler
19528 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19529
19530 # The C++ compiler must be used to create the archive.
19531 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19532 ;;
19533 *)
19534 # GNU C++ compiler with Solaris linker
19535 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19536 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19537 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19538 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19539 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19540 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19541
19542 # Commands to make compiler produce verbose output that lists
19543 # what "hidden" libraries, object files and flags are used when
19544 # linking a shared library.
19545 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19546 else
19547 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19548 # platform.
19549 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19550 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19551 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19552
19553 # Commands to make compiler produce verbose output that lists
19554 # what "hidden" libraries, object files and flags are used when
19555 # linking a shared library.
19556 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19557 fi
19558
19559 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19560 case $host_os in
19561 solaris2.[0-5] | solaris2.[0-5].*) ;;
19562 *)
19563 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19564 ;;
19565 esac
19566 fi
19567 ;;
19568 esac
19569 ;;
19570
19571 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19572 no_undefined_flag_CXX='${wl}-z,text'
19573 archive_cmds_need_lc_CXX=no
19574 hardcode_shlibpath_var_CXX=no
19575 runpath_var='LD_RUN_PATH'
19576
19577 case $cc_basename in
19578 CC*)
19579 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19580 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19581 ;;
19582 *)
19583 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19584 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19585 ;;
19586 esac
19587 ;;
19588
19589 sysv5* | sco3.2v5* | sco5v6*)
19590 # Note: We can NOT use -z defs as we might desire, because we do not
19591 # link with -lc, and that would cause any symbols used from libc to
19592 # always be unresolved, which means just about no library would
19593 # ever link correctly. If we're not using GNU ld we use -z text
19594 # though, which does catch some bad symbols but isn't as heavy-handed
19595 # as -z defs.
19596 no_undefined_flag_CXX='${wl}-z,text'
19597 allow_undefined_flag_CXX='${wl}-z,nodefs'
19598 archive_cmds_need_lc_CXX=no
19599 hardcode_shlibpath_var_CXX=no
19600 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19601 hardcode_libdir_separator_CXX=':'
19602 link_all_deplibs_CXX=yes
19603 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19604 runpath_var='LD_RUN_PATH'
19605
19606 case $cc_basename in
19607 CC*)
19608 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19609 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19610 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19611 '"$old_archive_cmds_CXX"
19612 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19613 '"$reload_cmds_CXX"
19614 ;;
19615 *)
19616 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19617 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19618 ;;
19619 esac
19620 ;;
19621
19622 tandem*)
19623 case $cc_basename in
19624 NCC*)
19625 # NonStop-UX NCC 3.20
19626 # FIXME: insert proper C++ library support
19627 ld_shlibs_CXX=no
19628 ;;
19629 *)
19630 # FIXME: insert proper C++ library support
19631 ld_shlibs_CXX=no
19632 ;;
19633 esac
19634 ;;
19635
19636 vxworks*)
19637 # FIXME: insert proper C++ library support
19638 ld_shlibs_CXX=no
19639 ;;
19640
19641 *)
19642 # FIXME: insert proper C++ library support
19643 ld_shlibs_CXX=no
19644 ;;
19645 esac
19646
19647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19648 $as_echo "$ld_shlibs_CXX" >&6; }
19649 test "$ld_shlibs_CXX" = no && can_build_shared=no
19650
19651 GCC_CXX="$GXX"
19652 LD_CXX="$LD"
19653
19654 ## CAVEAT EMPTOR:
19655 ## There is no encapsulation within the following macros, do not change
19656 ## the running order or otherwise move them around unless you know exactly
19657 ## what you are doing...
19658 # Dependencies to place before and after the object being linked:
19659 predep_objects_CXX=
19660 postdep_objects_CXX=
19661 predeps_CXX=
19662 postdeps_CXX=
19663 compiler_lib_search_path_CXX=
19664
19665 cat > conftest.$ac_ext <<_LT_EOF
19666 class Foo
19667 {
19668 public:
19669 Foo (void) { a = 0; }
19670 private:
19671 int a;
19672 };
19673 _LT_EOF
19674
19675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19676 (eval $ac_compile) 2>&5
19677 ac_status=$?
19678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19679 test $ac_status = 0; }; then
19680 # Parse the compiler output and extract the necessary
19681 # objects, libraries and library flags.
19682
19683 # Sentinel used to keep track of whether or not we are before
19684 # the conftest object file.
19685 pre_test_object_deps_done=no
19686
19687 for p in `eval "$output_verbose_link_cmd"`; do
19688 case $p in
19689
19690 -L* | -R* | -l*)
19691 # Some compilers place space between "-{L,R}" and the path.
19692 # Remove the space.
19693 if test $p = "-L" ||
19694 test $p = "-R"; then
19695 prev=$p
19696 continue
19697 else
19698 prev=
19699 fi
19700
19701 if test "$pre_test_object_deps_done" = no; then
19702 case $p in
19703 -L* | -R*)
19704 # Internal compiler library paths should come after those
19705 # provided the user. The postdeps already come after the
19706 # user supplied libs so there is no need to process them.
19707 if test -z "$compiler_lib_search_path_CXX"; then
19708 compiler_lib_search_path_CXX="${prev}${p}"
19709 else
19710 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19711 fi
19712 ;;
19713 # The "-l" case would never come before the object being
19714 # linked, so don't bother handling this case.
19715 esac
19716 else
19717 if test -z "$postdeps_CXX"; then
19718 postdeps_CXX="${prev}${p}"
19719 else
19720 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19721 fi
19722 fi
19723 ;;
19724
19725 *.$objext)
19726 # This assumes that the test object file only shows up
19727 # once in the compiler output.
19728 if test "$p" = "conftest.$objext"; then
19729 pre_test_object_deps_done=yes
19730 continue
19731 fi
19732
19733 if test "$pre_test_object_deps_done" = no; then
19734 if test -z "$predep_objects_CXX"; then
19735 predep_objects_CXX="$p"
19736 else
19737 predep_objects_CXX="$predep_objects_CXX $p"
19738 fi
19739 else
19740 if test -z "$postdep_objects_CXX"; then
19741 postdep_objects_CXX="$p"
19742 else
19743 postdep_objects_CXX="$postdep_objects_CXX $p"
19744 fi
19745 fi
19746 ;;
19747
19748 *) ;; # Ignore the rest.
19749
19750 esac
19751 done
19752
19753 # Clean up.
19754 rm -f a.out a.exe
19755 else
19756 echo "libtool.m4: error: problem compiling CXX test program"
19757 fi
19758
19759 $RM -f confest.$objext
19760
19761 # PORTME: override above test on systems where it is broken
19762 case $host_os in
19763 interix[3-9]*)
19764 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19765 # hack all around it, let's just trust "g++" to DTRT.
19766 predep_objects_CXX=
19767 postdep_objects_CXX=
19768 postdeps_CXX=
19769 ;;
19770
19771 linux*)
19772 case `$CC -V 2>&1 | sed 5q` in
19773 *Sun\ C*)
19774 # Sun C++ 5.9
19775
19776 # The more standards-conforming stlport4 library is
19777 # incompatible with the Cstd library. Avoid specifying
19778 # it if it's in CXXFLAGS. Ignore libCrun as
19779 # -library=stlport4 depends on it.
19780 case " $CXX $CXXFLAGS " in
19781 *" -library=stlport4 "*)
19782 solaris_use_stlport4=yes
19783 ;;
19784 esac
19785
19786 if test "$solaris_use_stlport4" != yes; then
19787 postdeps_CXX='-library=Cstd -library=Crun'
19788 fi
19789 ;;
19790 esac
19791 ;;
19792
19793 solaris*)
19794 case $cc_basename in
19795 CC*)
19796 # The more standards-conforming stlport4 library is
19797 # incompatible with the Cstd library. Avoid specifying
19798 # it if it's in CXXFLAGS. Ignore libCrun as
19799 # -library=stlport4 depends on it.
19800 case " $CXX $CXXFLAGS " in
19801 *" -library=stlport4 "*)
19802 solaris_use_stlport4=yes
19803 ;;
19804 esac
19805
19806 # Adding this requires a known-good setup of shared libraries for
19807 # Sun compiler versions before 5.6, else PIC objects from an old
19808 # archive will be linked into the output, leading to subtle bugs.
19809 if test "$solaris_use_stlport4" != yes; then
19810 postdeps_CXX='-library=Cstd -library=Crun'
19811 fi
19812 ;;
19813 esac
19814 ;;
19815 esac
19816
19817
19818 case " $postdeps_CXX " in
19819 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19820 esac
19821 compiler_lib_search_dirs_CXX=
19822 if test -n "${compiler_lib_search_path_CXX}"; then
19823 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19824 fi
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
19855
19856 lt_prog_compiler_wl_CXX=
19857 lt_prog_compiler_pic_CXX=
19858 lt_prog_compiler_static_CXX=
19859
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19861 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19862
19863 # C++ specific cases for pic, static, wl, etc.
19864 if test "$GXX" = yes; then
19865 lt_prog_compiler_wl_CXX='-Wl,'
19866 lt_prog_compiler_static_CXX='-static'
19867
19868 case $host_os in
19869 aix*)
19870 # All AIX code is PIC.
19871 if test "$host_cpu" = ia64; then
19872 # AIX 5 now supports IA64 processor
19873 lt_prog_compiler_static_CXX='-Bstatic'
19874 fi
19875 ;;
19876
19877 amigaos*)
19878 case $host_cpu in
19879 powerpc)
19880 # see comment about AmigaOS4 .so support
19881 lt_prog_compiler_pic_CXX='-fPIC'
19882 ;;
19883 m68k)
19884 # FIXME: we need at least 68020 code to build shared libraries, but
19885 # adding the `-m68020' flag to GCC prevents building anything better,
19886 # like `-m68040'.
19887 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19888 ;;
19889 esac
19890 ;;
19891
19892 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19893 # PIC is the default for these OSes.
19894 ;;
19895 mingw* | cygwin* | os2* | pw32* | cegcc*)
19896 # This hack is so that the source file can tell whether it is being
19897 # built for inclusion in a dll (and should export symbols for example).
19898 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19899 # (--disable-auto-import) libraries
19900 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19901 ;;
19902 darwin* | rhapsody*)
19903 # PIC is the default on this platform
19904 # Common symbols not allowed in MH_DYLIB files
19905 lt_prog_compiler_pic_CXX='-fno-common'
19906 ;;
19907 *djgpp*)
19908 # DJGPP does not support shared libraries at all
19909 lt_prog_compiler_pic_CXX=
19910 ;;
19911 haiku*)
19912 # PIC is the default for Haiku.
19913 # The "-static" flag exists, but is broken.
19914 lt_prog_compiler_static_CXX=
19915 ;;
19916 interix[3-9]*)
19917 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19918 # Instead, we relocate shared libraries at runtime.
19919 ;;
19920 sysv4*MP*)
19921 if test -d /usr/nec; then
19922 lt_prog_compiler_pic_CXX=-Kconform_pic
19923 fi
19924 ;;
19925 hpux*)
19926 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19927 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19928 # sets the default TLS model and affects inlining.
19929 case $host_cpu in
19930 hppa*64*)
19931 ;;
19932 *)
19933 lt_prog_compiler_pic_CXX='-fPIC'
19934 ;;
19935 esac
19936 ;;
19937 *qnx* | *nto*)
19938 # QNX uses GNU C++, but need to define -shared option too, otherwise
19939 # it will coredump.
19940 lt_prog_compiler_pic_CXX='-fPIC -shared'
19941 ;;
19942 *)
19943 lt_prog_compiler_pic_CXX='-fPIC'
19944 ;;
19945 esac
19946 else
19947 case $host_os in
19948 aix[4-9]*)
19949 # All AIX code is PIC.
19950 if test "$host_cpu" = ia64; then
19951 # AIX 5 now supports IA64 processor
19952 lt_prog_compiler_static_CXX='-Bstatic'
19953 else
19954 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19955 fi
19956 ;;
19957 chorus*)
19958 case $cc_basename in
19959 cxch68*)
19960 # Green Hills C++ Compiler
19961 # _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"
19962 ;;
19963 esac
19964 ;;
19965 dgux*)
19966 case $cc_basename in
19967 ec++*)
19968 lt_prog_compiler_pic_CXX='-KPIC'
19969 ;;
19970 ghcx*)
19971 # Green Hills C++ Compiler
19972 lt_prog_compiler_pic_CXX='-pic'
19973 ;;
19974 *)
19975 ;;
19976 esac
19977 ;;
19978 freebsd* | dragonfly*)
19979 # FreeBSD uses GNU C++
19980 ;;
19981 hpux9* | hpux10* | hpux11*)
19982 case $cc_basename in
19983 CC*)
19984 lt_prog_compiler_wl_CXX='-Wl,'
19985 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19986 if test "$host_cpu" != ia64; then
19987 lt_prog_compiler_pic_CXX='+Z'
19988 fi
19989 ;;
19990 aCC*)
19991 lt_prog_compiler_wl_CXX='-Wl,'
19992 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19993 case $host_cpu in
19994 hppa*64*|ia64*)
19995 # +Z the default
19996 ;;
19997 *)
19998 lt_prog_compiler_pic_CXX='+Z'
19999 ;;
20000 esac
20001 ;;
20002 *)
20003 ;;
20004 esac
20005 ;;
20006 interix*)
20007 # This is c89, which is MS Visual C++ (no shared libs)
20008 # Anyone wants to do a port?
20009 ;;
20010 irix5* | irix6* | nonstopux*)
20011 case $cc_basename in
20012 CC*)
20013 lt_prog_compiler_wl_CXX='-Wl,'
20014 lt_prog_compiler_static_CXX='-non_shared'
20015 # CC pic flag -KPIC is the default.
20016 ;;
20017 *)
20018 ;;
20019 esac
20020 ;;
20021 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20022 case $cc_basename in
20023 KCC*)
20024 # KAI C++ Compiler
20025 lt_prog_compiler_wl_CXX='--backend -Wl,'
20026 lt_prog_compiler_pic_CXX='-fPIC'
20027 ;;
20028 ecpc* )
20029 # old Intel C++ for x86_64 which still supported -KPIC.
20030 lt_prog_compiler_wl_CXX='-Wl,'
20031 lt_prog_compiler_pic_CXX='-KPIC'
20032 lt_prog_compiler_static_CXX='-static'
20033 ;;
20034 icpc* )
20035 # Intel C++, used to be incompatible with GCC.
20036 # ICC 10 doesn't accept -KPIC any more.
20037 lt_prog_compiler_wl_CXX='-Wl,'
20038 lt_prog_compiler_pic_CXX='-fPIC'
20039 lt_prog_compiler_static_CXX='-static'
20040 ;;
20041 pgCC* | pgcpp*)
20042 # Portland Group C++ compiler
20043 lt_prog_compiler_wl_CXX='-Wl,'
20044 lt_prog_compiler_pic_CXX='-fpic'
20045 lt_prog_compiler_static_CXX='-Bstatic'
20046 ;;
20047 cxx*)
20048 # Compaq C++
20049 # Make sure the PIC flag is empty. It appears that all Alpha
20050 # Linux and Compaq Tru64 Unix objects are PIC.
20051 lt_prog_compiler_pic_CXX=
20052 lt_prog_compiler_static_CXX='-non_shared'
20053 ;;
20054 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20055 # IBM XL 8.0, 9.0 on PPC and BlueGene
20056 lt_prog_compiler_wl_CXX='-Wl,'
20057 lt_prog_compiler_pic_CXX='-qpic'
20058 lt_prog_compiler_static_CXX='-qstaticlink'
20059 ;;
20060 *)
20061 case `$CC -V 2>&1 | sed 5q` in
20062 *Sun\ C*)
20063 # Sun C++ 5.9
20064 lt_prog_compiler_pic_CXX='-KPIC'
20065 lt_prog_compiler_static_CXX='-Bstatic'
20066 lt_prog_compiler_wl_CXX='-Qoption ld '
20067 ;;
20068 esac
20069 ;;
20070 esac
20071 ;;
20072 lynxos*)
20073 ;;
20074 m88k*)
20075 ;;
20076 mvs*)
20077 case $cc_basename in
20078 cxx*)
20079 lt_prog_compiler_pic_CXX='-W c,exportall'
20080 ;;
20081 *)
20082 ;;
20083 esac
20084 ;;
20085 netbsd*)
20086 ;;
20087 *qnx* | *nto*)
20088 # QNX uses GNU C++, but need to define -shared option too, otherwise
20089 # it will coredump.
20090 lt_prog_compiler_pic_CXX='-fPIC -shared'
20091 ;;
20092 osf3* | osf4* | osf5*)
20093 case $cc_basename in
20094 KCC*)
20095 lt_prog_compiler_wl_CXX='--backend -Wl,'
20096 ;;
20097 RCC*)
20098 # Rational C++ 2.4.1
20099 lt_prog_compiler_pic_CXX='-pic'
20100 ;;
20101 cxx*)
20102 # Digital/Compaq C++
20103 lt_prog_compiler_wl_CXX='-Wl,'
20104 # Make sure the PIC flag is empty. It appears that all Alpha
20105 # Linux and Compaq Tru64 Unix objects are PIC.
20106 lt_prog_compiler_pic_CXX=
20107 lt_prog_compiler_static_CXX='-non_shared'
20108 ;;
20109 *)
20110 ;;
20111 esac
20112 ;;
20113 psos*)
20114 ;;
20115 solaris*)
20116 case $cc_basename in
20117 CC*)
20118 # Sun C++ 4.2, 5.x and Centerline C++
20119 lt_prog_compiler_pic_CXX='-KPIC'
20120 lt_prog_compiler_static_CXX='-Bstatic'
20121 lt_prog_compiler_wl_CXX='-Qoption ld '
20122 ;;
20123 gcx*)
20124 # Green Hills C++ Compiler
20125 lt_prog_compiler_pic_CXX='-PIC'
20126 ;;
20127 *)
20128 ;;
20129 esac
20130 ;;
20131 sunos4*)
20132 case $cc_basename in
20133 CC*)
20134 # Sun C++ 4.x
20135 lt_prog_compiler_pic_CXX='-pic'
20136 lt_prog_compiler_static_CXX='-Bstatic'
20137 ;;
20138 lcc*)
20139 # Lucid
20140 lt_prog_compiler_pic_CXX='-pic'
20141 ;;
20142 *)
20143 ;;
20144 esac
20145 ;;
20146 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20147 case $cc_basename in
20148 CC*)
20149 lt_prog_compiler_wl_CXX='-Wl,'
20150 lt_prog_compiler_pic_CXX='-KPIC'
20151 lt_prog_compiler_static_CXX='-Bstatic'
20152 ;;
20153 esac
20154 ;;
20155 tandem*)
20156 case $cc_basename in
20157 NCC*)
20158 # NonStop-UX NCC 3.20
20159 lt_prog_compiler_pic_CXX='-KPIC'
20160 ;;
20161 *)
20162 ;;
20163 esac
20164 ;;
20165 vxworks*)
20166 ;;
20167 *)
20168 lt_prog_compiler_can_build_shared_CXX=no
20169 ;;
20170 esac
20171 fi
20172
20173 case $host_os in
20174 # For platforms which do not support PIC, -DPIC is meaningless:
20175 *djgpp*)
20176 lt_prog_compiler_pic_CXX=
20177 ;;
20178 *)
20179 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20180 ;;
20181 esac
20182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20183 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20184
20185
20186
20187 #
20188 # Check to make sure the PIC flag actually works.
20189 #
20190 if test -n "$lt_prog_compiler_pic_CXX"; then
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20192 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20193 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20194 $as_echo_n "(cached) " >&6
20195 else
20196 lt_cv_prog_compiler_pic_works_CXX=no
20197 ac_outfile=conftest.$ac_objext
20198 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20199 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20200 # Insert the option either (1) after the last *FLAGS variable, or
20201 # (2) before a word containing "conftest.", or (3) at the end.
20202 # Note that $ac_compile itself does not contain backslashes and begins
20203 # with a dollar sign (not a hyphen), so the echo should work correctly.
20204 # The option is referenced via a variable to avoid confusing sed.
20205 lt_compile=`echo "$ac_compile" | $SED \
20206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20208 -e 's:$: $lt_compiler_flag:'`
20209 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20210 (eval "$lt_compile" 2>conftest.err)
20211 ac_status=$?
20212 cat conftest.err >&5
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 if (exit $ac_status) && test -s "$ac_outfile"; then
20215 # The compiler can only warn and ignore the option if not recognized
20216 # So say no if there are warnings other than the usual output.
20217 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20218 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20219 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20220 lt_cv_prog_compiler_pic_works_CXX=yes
20221 fi
20222 fi
20223 $RM conftest*
20224
20225 fi
20226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20227 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20228
20229 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20230 case $lt_prog_compiler_pic_CXX in
20231 "" | " "*) ;;
20232 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20233 esac
20234 else
20235 lt_prog_compiler_pic_CXX=
20236 lt_prog_compiler_can_build_shared_CXX=no
20237 fi
20238
20239 fi
20240
20241
20242
20243 #
20244 # Check to make sure the static flag actually works.
20245 #
20246 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20248 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20249 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20250 $as_echo_n "(cached) " >&6
20251 else
20252 lt_cv_prog_compiler_static_works_CXX=no
20253 save_LDFLAGS="$LDFLAGS"
20254 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20255 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20256 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20257 # The linker can only warn and ignore the option if not recognized
20258 # So say no if there are warnings
20259 if test -s conftest.err; then
20260 # Append any errors to the config.log.
20261 cat conftest.err 1>&5
20262 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20263 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20264 if diff conftest.exp conftest.er2 >/dev/null; then
20265 lt_cv_prog_compiler_static_works_CXX=yes
20266 fi
20267 else
20268 lt_cv_prog_compiler_static_works_CXX=yes
20269 fi
20270 fi
20271 $RM -r conftest*
20272 LDFLAGS="$save_LDFLAGS"
20273
20274 fi
20275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20276 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20277
20278 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20279 :
20280 else
20281 lt_prog_compiler_static_CXX=
20282 fi
20283
20284
20285
20286
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20288 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20289 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20290 $as_echo_n "(cached) " >&6
20291 else
20292 lt_cv_prog_compiler_c_o_CXX=no
20293 $RM -r conftest 2>/dev/null
20294 mkdir conftest
20295 cd conftest
20296 mkdir out
20297 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20298
20299 lt_compiler_flag="-o out/conftest2.$ac_objext"
20300 # Insert the option either (1) after the last *FLAGS variable, or
20301 # (2) before a word containing "conftest.", or (3) at the end.
20302 # Note that $ac_compile itself does not contain backslashes and begins
20303 # with a dollar sign (not a hyphen), so the echo should work correctly.
20304 lt_compile=`echo "$ac_compile" | $SED \
20305 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20307 -e 's:$: $lt_compiler_flag:'`
20308 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20309 (eval "$lt_compile" 2>out/conftest.err)
20310 ac_status=$?
20311 cat out/conftest.err >&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20314 then
20315 # The compiler can only warn and ignore the option if not recognized
20316 # So say no if there are warnings
20317 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20318 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20319 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20320 lt_cv_prog_compiler_c_o_CXX=yes
20321 fi
20322 fi
20323 chmod u+w . 2>&5
20324 $RM conftest*
20325 # SGI C++ compiler will create directory out/ii_files/ for
20326 # template instantiation
20327 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20328 $RM out/* && rmdir out
20329 cd ..
20330 $RM -r conftest
20331 $RM conftest*
20332
20333 fi
20334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20335 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20336
20337
20338
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20340 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20341 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20342 $as_echo_n "(cached) " >&6
20343 else
20344 lt_cv_prog_compiler_c_o_CXX=no
20345 $RM -r conftest 2>/dev/null
20346 mkdir conftest
20347 cd conftest
20348 mkdir out
20349 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20350
20351 lt_compiler_flag="-o out/conftest2.$ac_objext"
20352 # Insert the option either (1) after the last *FLAGS variable, or
20353 # (2) before a word containing "conftest.", or (3) at the end.
20354 # Note that $ac_compile itself does not contain backslashes and begins
20355 # with a dollar sign (not a hyphen), so the echo should work correctly.
20356 lt_compile=`echo "$ac_compile" | $SED \
20357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20359 -e 's:$: $lt_compiler_flag:'`
20360 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20361 (eval "$lt_compile" 2>out/conftest.err)
20362 ac_status=$?
20363 cat out/conftest.err >&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20366 then
20367 # The compiler can only warn and ignore the option if not recognized
20368 # So say no if there are warnings
20369 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20370 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20371 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20372 lt_cv_prog_compiler_c_o_CXX=yes
20373 fi
20374 fi
20375 chmod u+w . 2>&5
20376 $RM conftest*
20377 # SGI C++ compiler will create directory out/ii_files/ for
20378 # template instantiation
20379 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20380 $RM out/* && rmdir out
20381 cd ..
20382 $RM -r conftest
20383 $RM conftest*
20384
20385 fi
20386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20387 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20388
20389
20390
20391
20392 hard_links="nottested"
20393 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20394 # do not overwrite the value of need_locks provided by the user
20395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20396 $as_echo_n "checking if we can lock with hard links... " >&6; }
20397 hard_links=yes
20398 $RM conftest*
20399 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20400 touch conftest.a
20401 ln conftest.a conftest.b 2>&5 || hard_links=no
20402 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20404 $as_echo "$hard_links" >&6; }
20405 if test "$hard_links" = no; then
20406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20407 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20408 need_locks=warn
20409 fi
20410 else
20411 need_locks=no
20412 fi
20413
20414
20415
20416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20417 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20418
20419 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20420 case $host_os in
20421 aix[4-9]*)
20422 # If we're using GNU nm, then we don't want the "-C" option.
20423 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20424 # Also, AIX nm treats weak defined symbols like other global defined
20425 # symbols, whereas GNU nm marks them as "W".
20426 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20427 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'
20428 else
20429 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'
20430 fi
20431 ;;
20432 pw32*)
20433 export_symbols_cmds_CXX="$ltdll_cmds"
20434 ;;
20435 cygwin* | mingw* | cegcc*)
20436 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'
20437 ;;
20438 *)
20439 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20440 ;;
20441 esac
20442 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20443
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20445 $as_echo "$ld_shlibs_CXX" >&6; }
20446 test "$ld_shlibs_CXX" = no && can_build_shared=no
20447
20448 with_gnu_ld_CXX=$with_gnu_ld
20449
20450
20451
20452
20453
20454
20455 #
20456 # Do we need to explicitly link libc?
20457 #
20458 case "x$archive_cmds_need_lc_CXX" in
20459 x|xyes)
20460 # Assume -lc should be added
20461 archive_cmds_need_lc_CXX=yes
20462
20463 if test "$enable_shared" = yes && test "$GCC" = yes; then
20464 case $archive_cmds_CXX in
20465 *'~'*)
20466 # FIXME: we may have to deal with multi-command sequences.
20467 ;;
20468 '$CC '*)
20469 # Test whether the compiler implicitly links with -lc since on some
20470 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20471 # to ld, don't add -lc before -lgcc.
20472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20473 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20474 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20475 $as_echo_n "(cached) " >&6
20476 else
20477 $RM conftest*
20478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20479
20480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20481 (eval $ac_compile) 2>&5
20482 ac_status=$?
20483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20484 test $ac_status = 0; } 2>conftest.err; then
20485 soname=conftest
20486 lib=conftest
20487 libobjs=conftest.$ac_objext
20488 deplibs=
20489 wl=$lt_prog_compiler_wl_CXX
20490 pic_flag=$lt_prog_compiler_pic_CXX
20491 compiler_flags=-v
20492 linker_flags=-v
20493 verstring=
20494 output_objdir=.
20495 libname=conftest
20496 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20497 allow_undefined_flag_CXX=
20498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20499 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20500 ac_status=$?
20501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20502 test $ac_status = 0; }
20503 then
20504 lt_cv_archive_cmds_need_lc_CXX=no
20505 else
20506 lt_cv_archive_cmds_need_lc_CXX=yes
20507 fi
20508 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20509 else
20510 cat conftest.err 1>&5
20511 fi
20512 $RM conftest*
20513
20514 fi
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20516 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20517 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20518 ;;
20519 esac
20520 fi
20521 ;;
20522 esac
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
20586
20587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20588 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20589
20590 library_names_spec=
20591 libname_spec='lib$name'
20592 soname_spec=
20593 shrext_cmds=".so"
20594 postinstall_cmds=
20595 postuninstall_cmds=
20596 finish_cmds=
20597 finish_eval=
20598 shlibpath_var=
20599 shlibpath_overrides_runpath=unknown
20600 version_type=none
20601 dynamic_linker="$host_os ld.so"
20602 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20603 need_lib_prefix=unknown
20604 hardcode_into_libs=no
20605
20606 # when you set need_version to no, make sure it does not cause -set_version
20607 # flags to be left without arguments
20608 need_version=unknown
20609
20610 case $host_os in
20611 aix3*)
20612 version_type=linux
20613 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20614 shlibpath_var=LIBPATH
20615
20616 # AIX 3 has no versioning support, so we append a major version to the name.
20617 soname_spec='${libname}${release}${shared_ext}$major'
20618 ;;
20619
20620 aix[4-9]*)
20621 version_type=linux
20622 need_lib_prefix=no
20623 need_version=no
20624 hardcode_into_libs=yes
20625 if test "$host_cpu" = ia64; then
20626 # AIX 5 supports IA64
20627 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20628 shlibpath_var=LD_LIBRARY_PATH
20629 else
20630 # With GCC up to 2.95.x, collect2 would create an import file
20631 # for dependence libraries. The import file would start with
20632 # the line `#! .'. This would cause the generated library to
20633 # depend on `.', always an invalid library. This was fixed in
20634 # development snapshots of GCC prior to 3.0.
20635 case $host_os in
20636 aix4 | aix4.[01] | aix4.[01].*)
20637 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20638 echo ' yes '
20639 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20640 :
20641 else
20642 can_build_shared=no
20643 fi
20644 ;;
20645 esac
20646 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20647 # soname into executable. Probably we can add versioning support to
20648 # collect2, so additional links can be useful in future.
20649 if test "$aix_use_runtimelinking" = yes; then
20650 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20651 # instead of lib<name>.a to let people know that these are not
20652 # typical AIX shared libraries.
20653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20654 else
20655 # We preserve .a as extension for shared libraries through AIX4.2
20656 # and later when we are not doing run time linking.
20657 library_names_spec='${libname}${release}.a $libname.a'
20658 soname_spec='${libname}${release}${shared_ext}$major'
20659 fi
20660 shlibpath_var=LIBPATH
20661 fi
20662 ;;
20663
20664 amigaos*)
20665 case $host_cpu in
20666 powerpc)
20667 # Since July 2007 AmigaOS4 officially supports .so libraries.
20668 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20670 ;;
20671 m68k)
20672 library_names_spec='$libname.ixlibrary $libname.a'
20673 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20674 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'
20675 ;;
20676 esac
20677 ;;
20678
20679 beos*)
20680 library_names_spec='${libname}${shared_ext}'
20681 dynamic_linker="$host_os ld.so"
20682 shlibpath_var=LIBRARY_PATH
20683 ;;
20684
20685 bsdi[45]*)
20686 version_type=linux
20687 need_version=no
20688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20689 soname_spec='${libname}${release}${shared_ext}$major'
20690 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20691 shlibpath_var=LD_LIBRARY_PATH
20692 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20693 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20694 # the default ld.so.conf also contains /usr/contrib/lib and
20695 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20696 # libtool to hard-code these into programs
20697 ;;
20698
20699 cygwin* | mingw* | pw32* | cegcc*)
20700 version_type=windows
20701 shrext_cmds=".dll"
20702 need_version=no
20703 need_lib_prefix=no
20704
20705 case $GCC,$host_os in
20706 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20707 library_names_spec='$libname.dll.a'
20708 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20709 postinstall_cmds='base_file=`basename \${file}`~
20710 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20711 dldir=$destdir/`dirname \$dlpath`~
20712 test -d \$dldir || mkdir -p \$dldir~
20713 $install_prog $dir/$dlname \$dldir/$dlname~
20714 chmod a+x \$dldir/$dlname~
20715 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20716 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20717 fi'
20718 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20719 dlpath=$dir/\$dldll~
20720 $RM \$dlpath'
20721 shlibpath_overrides_runpath=yes
20722
20723 case $host_os in
20724 cygwin*)
20725 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20726 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20727
20728 ;;
20729 mingw* | cegcc*)
20730 # MinGW DLLs use traditional 'lib' prefix
20731 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20732 ;;
20733 pw32*)
20734 # pw32 DLLs use 'pw' prefix rather than 'lib'
20735 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20736 ;;
20737 esac
20738 ;;
20739
20740 *)
20741 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20742 ;;
20743 esac
20744 dynamic_linker='Win32 ld.exe'
20745 # FIXME: first we should search . and the directory the executable is in
20746 shlibpath_var=PATH
20747 ;;
20748
20749 darwin* | rhapsody*)
20750 dynamic_linker="$host_os dyld"
20751 version_type=darwin
20752 need_lib_prefix=no
20753 need_version=no
20754 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20755 soname_spec='${libname}${release}${major}$shared_ext'
20756 shlibpath_overrides_runpath=yes
20757 shlibpath_var=DYLD_LIBRARY_PATH
20758 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20759
20760 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20761 ;;
20762
20763 dgux*)
20764 version_type=linux
20765 need_lib_prefix=no
20766 need_version=no
20767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20768 soname_spec='${libname}${release}${shared_ext}$major'
20769 shlibpath_var=LD_LIBRARY_PATH
20770 ;;
20771
20772 freebsd* | dragonfly*)
20773 # DragonFly does not have aout. When/if they implement a new
20774 # versioning mechanism, adjust this.
20775 if test -x /usr/bin/objformat; then
20776 objformat=`/usr/bin/objformat`
20777 else
20778 case $host_os in
20779 freebsd[23].*) objformat=aout ;;
20780 *) objformat=elf ;;
20781 esac
20782 fi
20783 version_type=freebsd-$objformat
20784 case $version_type in
20785 freebsd-elf*)
20786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20787 need_version=no
20788 need_lib_prefix=no
20789 ;;
20790 freebsd-*)
20791 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20792 need_version=yes
20793 ;;
20794 esac
20795 shlibpath_var=LD_LIBRARY_PATH
20796 case $host_os in
20797 freebsd2.*)
20798 shlibpath_overrides_runpath=yes
20799 ;;
20800 freebsd3.[01]* | freebsdelf3.[01]*)
20801 shlibpath_overrides_runpath=yes
20802 hardcode_into_libs=yes
20803 ;;
20804 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20805 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20806 shlibpath_overrides_runpath=no
20807 hardcode_into_libs=yes
20808 ;;
20809 *) # from 4.6 on, and DragonFly
20810 shlibpath_overrides_runpath=yes
20811 hardcode_into_libs=yes
20812 ;;
20813 esac
20814 ;;
20815
20816 gnu*)
20817 version_type=linux
20818 need_lib_prefix=no
20819 need_version=no
20820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20821 soname_spec='${libname}${release}${shared_ext}$major'
20822 shlibpath_var=LD_LIBRARY_PATH
20823 hardcode_into_libs=yes
20824 ;;
20825
20826 haiku*)
20827 version_type=linux
20828 need_lib_prefix=no
20829 need_version=no
20830 dynamic_linker="$host_os runtime_loader"
20831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20832 soname_spec='${libname}${release}${shared_ext}$major'
20833 shlibpath_var=LIBRARY_PATH
20834 shlibpath_overrides_runpath=yes
20835 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20836 hardcode_into_libs=yes
20837 ;;
20838
20839 hpux9* | hpux10* | hpux11*)
20840 # Give a soname corresponding to the major version so that dld.sl refuses to
20841 # link against other versions.
20842 version_type=sunos
20843 need_lib_prefix=no
20844 need_version=no
20845 case $host_cpu in
20846 ia64*)
20847 shrext_cmds='.so'
20848 hardcode_into_libs=yes
20849 dynamic_linker="$host_os dld.so"
20850 shlibpath_var=LD_LIBRARY_PATH
20851 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20853 soname_spec='${libname}${release}${shared_ext}$major'
20854 if test "X$HPUX_IA64_MODE" = X32; then
20855 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20856 else
20857 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20858 fi
20859 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20860 ;;
20861 hppa*64*)
20862 shrext_cmds='.sl'
20863 hardcode_into_libs=yes
20864 dynamic_linker="$host_os dld.sl"
20865 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20866 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20868 soname_spec='${libname}${release}${shared_ext}$major'
20869 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20870 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20871 ;;
20872 *)
20873 shrext_cmds='.sl'
20874 dynamic_linker="$host_os dld.sl"
20875 shlibpath_var=SHLIB_PATH
20876 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20878 soname_spec='${libname}${release}${shared_ext}$major'
20879 ;;
20880 esac
20881 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20882 postinstall_cmds='chmod 555 $lib'
20883 # or fails outright, so override atomically:
20884 install_override_mode=555
20885 ;;
20886
20887 interix[3-9]*)
20888 version_type=linux
20889 need_lib_prefix=no
20890 need_version=no
20891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20892 soname_spec='${libname}${release}${shared_ext}$major'
20893 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20894 shlibpath_var=LD_LIBRARY_PATH
20895 shlibpath_overrides_runpath=no
20896 hardcode_into_libs=yes
20897 ;;
20898
20899 irix5* | irix6* | nonstopux*)
20900 case $host_os in
20901 nonstopux*) version_type=nonstopux ;;
20902 *)
20903 if test "$lt_cv_prog_gnu_ld" = yes; then
20904 version_type=linux
20905 else
20906 version_type=irix
20907 fi ;;
20908 esac
20909 need_lib_prefix=no
20910 need_version=no
20911 soname_spec='${libname}${release}${shared_ext}$major'
20912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20913 case $host_os in
20914 irix5* | nonstopux*)
20915 libsuff= shlibsuff=
20916 ;;
20917 *)
20918 case $LD in # libtool.m4 will add one of these switches to LD
20919 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20920 libsuff= shlibsuff= libmagic=32-bit;;
20921 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20922 libsuff=32 shlibsuff=N32 libmagic=N32;;
20923 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20924 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20925 *) libsuff= shlibsuff= libmagic=never-match;;
20926 esac
20927 ;;
20928 esac
20929 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20930 shlibpath_overrides_runpath=no
20931 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20932 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20933 hardcode_into_libs=yes
20934 ;;
20935
20936 # No shared lib support for Linux oldld, aout, or coff.
20937 linux*oldld* | linux*aout* | linux*coff*)
20938 dynamic_linker=no
20939 ;;
20940
20941 # This must be Linux ELF.
20942 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20943 version_type=linux
20944 need_lib_prefix=no
20945 need_version=no
20946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20947 soname_spec='${libname}${release}${shared_ext}$major'
20948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20949 shlibpath_var=LD_LIBRARY_PATH
20950 shlibpath_overrides_runpath=no
20951
20952 # Some binutils ld are patched to set DT_RUNPATH
20953 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20954 $as_echo_n "(cached) " >&6
20955 else
20956 lt_cv_shlibpath_overrides_runpath=no
20957 save_LDFLAGS=$LDFLAGS
20958 save_libdir=$libdir
20959 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20960 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20962 /* end confdefs.h. */
20963
20964 int
20965 main ()
20966 {
20967
20968 ;
20969 return 0;
20970 }
20971 _ACEOF
20972 if ac_fn_cxx_try_link "$LINENO"; then :
20973 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20974 lt_cv_shlibpath_overrides_runpath=yes
20975 fi
20976 fi
20977 rm -f core conftest.err conftest.$ac_objext \
20978 conftest$ac_exeext conftest.$ac_ext
20979 LDFLAGS=$save_LDFLAGS
20980 libdir=$save_libdir
20981
20982 fi
20983
20984 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20985
20986 # This implies no fast_install, which is unacceptable.
20987 # Some rework will be needed to allow for fast_install
20988 # before this can be enabled.
20989 hardcode_into_libs=yes
20990
20991 # Append ld.so.conf contents to the search path
20992 if test -f /etc/ld.so.conf; then
20993 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' ' '`
20994 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20995 fi
20996
20997 # We used to test for /lib/ld.so.1 and disable shared libraries on
20998 # powerpc, because MkLinux only supported shared libraries with the
20999 # GNU dynamic linker. Since this was broken with cross compilers,
21000 # most powerpc-linux boxes support dynamic linking these days and
21001 # people can always --disable-shared, the test was removed, and we
21002 # assume the GNU/Linux dynamic linker is in use.
21003 dynamic_linker='GNU/Linux ld.so'
21004 ;;
21005
21006 netbsd*)
21007 version_type=sunos
21008 need_lib_prefix=no
21009 need_version=no
21010 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21012 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21013 dynamic_linker='NetBSD (a.out) ld.so'
21014 else
21015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21016 soname_spec='${libname}${release}${shared_ext}$major'
21017 dynamic_linker='NetBSD ld.elf_so'
21018 fi
21019 shlibpath_var=LD_LIBRARY_PATH
21020 shlibpath_overrides_runpath=yes
21021 hardcode_into_libs=yes
21022 ;;
21023
21024 newsos6)
21025 version_type=linux
21026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21027 shlibpath_var=LD_LIBRARY_PATH
21028 shlibpath_overrides_runpath=yes
21029 ;;
21030
21031 *nto* | *qnx*)
21032 version_type=qnx
21033 need_lib_prefix=no
21034 need_version=no
21035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21036 soname_spec='${libname}${release}${shared_ext}$major'
21037 shlibpath_var=LD_LIBRARY_PATH
21038 shlibpath_overrides_runpath=no
21039 hardcode_into_libs=yes
21040 dynamic_linker='ldqnx.so'
21041 ;;
21042
21043 openbsd*)
21044 version_type=sunos
21045 sys_lib_dlsearch_path_spec="/usr/lib"
21046 need_lib_prefix=no
21047 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21048 case $host_os in
21049 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21050 *) need_version=no ;;
21051 esac
21052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21054 shlibpath_var=LD_LIBRARY_PATH
21055 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21056 case $host_os in
21057 openbsd2.[89] | openbsd2.[89].*)
21058 shlibpath_overrides_runpath=no
21059 ;;
21060 *)
21061 shlibpath_overrides_runpath=yes
21062 ;;
21063 esac
21064 else
21065 shlibpath_overrides_runpath=yes
21066 fi
21067 ;;
21068
21069 os2*)
21070 libname_spec='$name'
21071 shrext_cmds=".dll"
21072 need_lib_prefix=no
21073 library_names_spec='$libname${shared_ext} $libname.a'
21074 dynamic_linker='OS/2 ld.exe'
21075 shlibpath_var=LIBPATH
21076 ;;
21077
21078 osf3* | osf4* | osf5*)
21079 version_type=osf
21080 need_lib_prefix=no
21081 need_version=no
21082 soname_spec='${libname}${release}${shared_ext}$major'
21083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21084 shlibpath_var=LD_LIBRARY_PATH
21085 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21086 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21087 ;;
21088
21089 rdos*)
21090 dynamic_linker=no
21091 ;;
21092
21093 solaris*)
21094 version_type=linux
21095 need_lib_prefix=no
21096 need_version=no
21097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21098 soname_spec='${libname}${release}${shared_ext}$major'
21099 shlibpath_var=LD_LIBRARY_PATH
21100 shlibpath_overrides_runpath=yes
21101 hardcode_into_libs=yes
21102 # ldd complains unless libraries are executable
21103 postinstall_cmds='chmod +x $lib'
21104 ;;
21105
21106 sunos4*)
21107 version_type=sunos
21108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21109 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21110 shlibpath_var=LD_LIBRARY_PATH
21111 shlibpath_overrides_runpath=yes
21112 if test "$with_gnu_ld" = yes; then
21113 need_lib_prefix=no
21114 fi
21115 need_version=yes
21116 ;;
21117
21118 sysv4 | sysv4.3*)
21119 version_type=linux
21120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21121 soname_spec='${libname}${release}${shared_ext}$major'
21122 shlibpath_var=LD_LIBRARY_PATH
21123 case $host_vendor in
21124 sni)
21125 shlibpath_overrides_runpath=no
21126 need_lib_prefix=no
21127 runpath_var=LD_RUN_PATH
21128 ;;
21129 siemens)
21130 need_lib_prefix=no
21131 ;;
21132 motorola)
21133 need_lib_prefix=no
21134 need_version=no
21135 shlibpath_overrides_runpath=no
21136 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21137 ;;
21138 esac
21139 ;;
21140
21141 sysv4*MP*)
21142 if test -d /usr/nec ;then
21143 version_type=linux
21144 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21145 soname_spec='$libname${shared_ext}.$major'
21146 shlibpath_var=LD_LIBRARY_PATH
21147 fi
21148 ;;
21149
21150 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21151 version_type=freebsd-elf
21152 need_lib_prefix=no
21153 need_version=no
21154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21155 soname_spec='${libname}${release}${shared_ext}$major'
21156 shlibpath_var=LD_LIBRARY_PATH
21157 shlibpath_overrides_runpath=yes
21158 hardcode_into_libs=yes
21159 if test "$with_gnu_ld" = yes; then
21160 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21161 else
21162 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21163 case $host_os in
21164 sco3.2v5*)
21165 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21166 ;;
21167 esac
21168 fi
21169 sys_lib_dlsearch_path_spec='/usr/lib'
21170 ;;
21171
21172 tpf*)
21173 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21174 version_type=linux
21175 need_lib_prefix=no
21176 need_version=no
21177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21178 shlibpath_var=LD_LIBRARY_PATH
21179 shlibpath_overrides_runpath=no
21180 hardcode_into_libs=yes
21181 ;;
21182
21183 uts4*)
21184 version_type=linux
21185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21186 soname_spec='${libname}${release}${shared_ext}$major'
21187 shlibpath_var=LD_LIBRARY_PATH
21188 ;;
21189
21190 *)
21191 dynamic_linker=no
21192 ;;
21193 esac
21194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21195 $as_echo "$dynamic_linker" >&6; }
21196 test "$dynamic_linker" = no && can_build_shared=no
21197
21198 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21199 if test "$GCC" = yes; then
21200 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21201 fi
21202
21203 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21204 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21205 fi
21206 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21207 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21208 fi
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
21246
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21248 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21249 hardcode_action_CXX=
21250 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21251 test -n "$runpath_var_CXX" ||
21252 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21253
21254 # We can hardcode non-existent directories.
21255 if test "$hardcode_direct_CXX" != no &&
21256 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21257 # have to relink, otherwise we might link with an installed library
21258 # when we should be linking with a yet-to-be-installed one
21259 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21260 test "$hardcode_minus_L_CXX" != no; then
21261 # Linking always hardcodes the temporary library directory.
21262 hardcode_action_CXX=relink
21263 else
21264 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21265 hardcode_action_CXX=immediate
21266 fi
21267 else
21268 # We cannot hardcode anything, or else we can only hardcode existing
21269 # directories.
21270 hardcode_action_CXX=unsupported
21271 fi
21272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21273 $as_echo "$hardcode_action_CXX" >&6; }
21274
21275 if test "$hardcode_action_CXX" = relink ||
21276 test "$inherit_rpath_CXX" = yes; then
21277 # Fast installation is not supported
21278 enable_fast_install=no
21279 elif test "$shlibpath_overrides_runpath" = yes ||
21280 test "$enable_shared" = no; then
21281 # Fast installation is not necessary
21282 enable_fast_install=needless
21283 fi
21284
21285
21286
21287
21288
21289
21290
21291 fi # test -n "$compiler"
21292
21293 CC=$lt_save_CC
21294 LDCXX=$LD
21295 LD=$lt_save_LD
21296 GCC=$lt_save_GCC
21297 with_gnu_ld=$lt_save_with_gnu_ld
21298 lt_cv_path_LDCXX=$lt_cv_path_LD
21299 lt_cv_path_LD=$lt_save_path_LD
21300 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21301 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21302 fi # test "$_lt_caught_CXX_error" != yes
21303
21304 ac_ext=c
21305 ac_cpp='$CPP $CPPFLAGS'
21306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325 # Only expand once:
21326
21327
21328
21329
21330
21331 # Identify the assembler which will work hand-in-glove with the newly
21332 # built GCC, so that we can examine its features. This is the assembler
21333 # which will be driven by the driver program.
21334 #
21335 # If build != host, and we aren't building gas in-tree, we identify a
21336 # build->target assembler and hope that it will have the same features
21337 # as the host->target assembler we'll be using.
21338 gcc_cv_gas_major_version=
21339 gcc_cv_gas_minor_version=
21340 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21341
21342 if test "${gcc_cv_as+set}" = set; then :
21343
21344 else
21345
21346 if test -x "$DEFAULT_ASSEMBLER"; then
21347 gcc_cv_as="$DEFAULT_ASSEMBLER"
21348 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21349 && test -f ../gas/Makefile \
21350 && test x$build = x$host; then
21351 gcc_cv_as=../gas/as-new$build_exeext
21352 elif test -x as$build_exeext; then
21353 # Build using assembler in the current directory.
21354 gcc_cv_as=./as$build_exeext
21355 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21356 gcc_cv_as="$AS_FOR_TARGET"
21357 else
21358 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21359 set dummy $AS_FOR_TARGET; ac_word=$2
21360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21361 $as_echo_n "checking for $ac_word... " >&6; }
21362 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21363 $as_echo_n "(cached) " >&6
21364 else
21365 case $gcc_cv_as in
21366 [\\/]* | ?:[\\/]*)
21367 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21368 ;;
21369 *)
21370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21371 for as_dir in $PATH
21372 do
21373 IFS=$as_save_IFS
21374 test -z "$as_dir" && as_dir=.
21375 for ac_exec_ext in '' $ac_executable_extensions; do
21376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21377 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21379 break 2
21380 fi
21381 done
21382 done
21383 IFS=$as_save_IFS
21384
21385 ;;
21386 esac
21387 fi
21388 gcc_cv_as=$ac_cv_path_gcc_cv_as
21389 if test -n "$gcc_cv_as"; then
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21391 $as_echo "$gcc_cv_as" >&6; }
21392 else
21393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21394 $as_echo "no" >&6; }
21395 fi
21396
21397
21398 fi
21399 fi
21400
21401 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21402
21403 case "$ORIGINAL_AS_FOR_TARGET" in
21404 ./as | ./as$build_exeext) ;;
21405 *) ac_config_files="$ac_config_files as:exec-tool.in"
21406 ;;
21407 esac
21408
21409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21410 $as_echo_n "checking what assembler to use... " >&6; }
21411 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21412 # Single tree build which includes gas. We want to prefer it
21413 # over whatever linker top-level may have detected, since
21414 # we'll use what we're building after installation anyway.
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21416 $as_echo "newly built gas" >&6; }
21417 in_tree_gas=yes
21418 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21419 for f in $gcc_cv_as_bfd_srcdir/configure \
21420 $gcc_cv_as_gas_srcdir/configure \
21421 $gcc_cv_as_gas_srcdir/configure.in \
21422 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21423 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21424 if test x$gcc_cv_gas_version != x; then
21425 break
21426 fi
21427 done
21428 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21429 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21430 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21431 case $gcc_cv_gas_patch_version in
21432 "") gcc_cv_gas_patch_version="0" ;;
21433 esac
21434 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21435 + $gcc_cv_gas_minor_version \) \* 1000 \
21436 + $gcc_cv_gas_patch_version`
21437
21438 in_tree_gas_is_elf=no
21439 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21440 || (grep 'obj_format = multi' ../gas/Makefile \
21441 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21442 then
21443 in_tree_gas_is_elf=yes
21444 fi
21445 else
21446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21447 $as_echo "$gcc_cv_as" >&6; }
21448 in_tree_gas=no
21449 fi
21450
21451 # Identify the linker which will work hand-in-glove with the newly
21452 # built GCC, so that we can examine its features. This is the linker
21453 # which will be driven by the driver program.
21454 #
21455 # If build != host, and we aren't building gas in-tree, we identify a
21456 # build->target linker and hope that it will have the same features
21457 # as the host->target linker we'll be using.
21458 gcc_cv_gld_major_version=
21459 gcc_cv_gld_minor_version=
21460 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21461 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21462
21463 if test "${gcc_cv_ld+set}" = set; then :
21464
21465 else
21466
21467 if test -x "$DEFAULT_LINKER"; then
21468 gcc_cv_ld="$DEFAULT_LINKER"
21469 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21470 && test -f ../ld/Makefile \
21471 && test x$build = x$host; then
21472 gcc_cv_ld=../ld/ld-new$build_exeext
21473 elif test -x collect-ld$build_exeext; then
21474 # Build using linker in the current directory.
21475 gcc_cv_ld=./collect-ld$build_exeext
21476 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21477 gcc_cv_ld="$LD_FOR_TARGET"
21478 else
21479 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21480 set dummy $LD_FOR_TARGET; ac_word=$2
21481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21482 $as_echo_n "checking for $ac_word... " >&6; }
21483 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21484 $as_echo_n "(cached) " >&6
21485 else
21486 case $gcc_cv_ld in
21487 [\\/]* | ?:[\\/]*)
21488 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21489 ;;
21490 *)
21491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21492 for as_dir in $PATH
21493 do
21494 IFS=$as_save_IFS
21495 test -z "$as_dir" && as_dir=.
21496 for ac_exec_ext in '' $ac_executable_extensions; do
21497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21498 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21500 break 2
21501 fi
21502 done
21503 done
21504 IFS=$as_save_IFS
21505
21506 ;;
21507 esac
21508 fi
21509 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21510 if test -n "$gcc_cv_ld"; then
21511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21512 $as_echo "$gcc_cv_ld" >&6; }
21513 else
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21515 $as_echo "no" >&6; }
21516 fi
21517
21518
21519 fi
21520 fi
21521
21522 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21523 PLUGIN_LD=`basename $gcc_cv_ld`
21524
21525 # Check whether --with-plugin-ld was given.
21526 if test "${with_plugin_ld+set}" = set; then :
21527 withval=$with_plugin_ld; if test x"$withval" != x; then
21528 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21529 PLUGIN_LD="$withval"
21530 fi
21531 fi
21532
21533
21534
21535 cat >>confdefs.h <<_ACEOF
21536 #define PLUGIN_LD "$PLUGIN_LD"
21537 _ACEOF
21538
21539
21540 # Check to see if we are using gold instead of ld
21541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21542 $as_echo_n "checking whether we are using gold... " >&6; }
21543 ld_is_gold=no
21544 if test x$gcc_cv_ld != x; then
21545 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21546 | grep "GNU gold" > /dev/null; then
21547 ld_is_gold=yes
21548 fi
21549 fi
21550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21551 $as_echo "$ld_is_gold" >&6; }
21552
21553 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21554
21555 case "$ORIGINAL_LD_FOR_TARGET" in
21556 ./collect-ld | ./collect-ld$build_exeext) ;;
21557 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21558 ;;
21559 esac
21560
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21562 $as_echo_n "checking what linker to use... " >&6; }
21563 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21564 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21565 # Single tree build which includes ld. We want to prefer it
21566 # over whatever linker top-level may have detected, since
21567 # we'll use what we're building after installation anyway.
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21569 $as_echo "newly built ld" >&6; }
21570 in_tree_ld=yes
21571 in_tree_ld_is_elf=no
21572 if (grep 'EMUL = .*elf' ../ld/Makefile \
21573 || grep 'EMUL = .*linux' ../ld/Makefile \
21574 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21575 in_tree_ld_is_elf=yes
21576 elif test "$ld_is_gold" = yes; then
21577 in_tree_ld_is_elf=yes
21578 fi
21579 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
21580 do
21581 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21582 if test x$gcc_cv_gld_version != x; then
21583 break
21584 fi
21585 done
21586 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21587 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21588 else
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21590 $as_echo "$gcc_cv_ld" >&6; }
21591 in_tree_ld=no
21592 fi
21593
21594 # Figure out what nm we will be using.
21595 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21596 if test "${gcc_cv_nm+set}" = set; then :
21597
21598 else
21599
21600 if test -f $gcc_cv_binutils_srcdir/configure.in \
21601 && test -f ../binutils/Makefile \
21602 && test x$build = x$host; then
21603 gcc_cv_nm=../binutils/nm-new$build_exeext
21604 elif test -x nm$build_exeext; then
21605 gcc_cv_nm=./nm$build_exeext
21606 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21607 gcc_cv_nm="$NM_FOR_TARGET"
21608 else
21609 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21610 set dummy $NM_FOR_TARGET; ac_word=$2
21611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21612 $as_echo_n "checking for $ac_word... " >&6; }
21613 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21614 $as_echo_n "(cached) " >&6
21615 else
21616 case $gcc_cv_nm in
21617 [\\/]* | ?:[\\/]*)
21618 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21619 ;;
21620 *)
21621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21622 for as_dir in $PATH
21623 do
21624 IFS=$as_save_IFS
21625 test -z "$as_dir" && as_dir=.
21626 for ac_exec_ext in '' $ac_executable_extensions; do
21627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21628 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21630 break 2
21631 fi
21632 done
21633 done
21634 IFS=$as_save_IFS
21635
21636 ;;
21637 esac
21638 fi
21639 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21640 if test -n "$gcc_cv_nm"; then
21641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21642 $as_echo "$gcc_cv_nm" >&6; }
21643 else
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21645 $as_echo "no" >&6; }
21646 fi
21647
21648
21649 fi
21650 fi
21651
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21653 $as_echo_n "checking what nm to use... " >&6; }
21654 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21655 # Single tree build which includes binutils.
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21657 $as_echo "newly built nm" >&6; }
21658 in_tree_nm=yes
21659 else
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21661 $as_echo "$gcc_cv_nm" >&6; }
21662 in_tree_nm=no
21663 fi
21664
21665 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21666
21667 case "$ORIGINAL_NM_FOR_TARGET" in
21668 ./nm | ./nm$build_exeext) ;;
21669 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21670 ;;
21671 esac
21672
21673
21674 # Figure out what objdump we will be using.
21675 if test "${gcc_cv_objdump+set}" = set; then :
21676
21677 else
21678
21679 if test -f $gcc_cv_binutils_srcdir/configure.in \
21680 && test -f ../binutils/Makefile \
21681 && test x$build = x$host; then
21682 # Single tree build which includes binutils.
21683 gcc_cv_objdump=../binutils/objdump$build_exeext
21684 elif test -x objdump$build_exeext; then
21685 gcc_cv_objdump=./objdump$build_exeext
21686 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21687 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21688 else
21689 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21690 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21692 $as_echo_n "checking for $ac_word... " >&6; }
21693 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21694 $as_echo_n "(cached) " >&6
21695 else
21696 case $gcc_cv_objdump in
21697 [\\/]* | ?:[\\/]*)
21698 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21699 ;;
21700 *)
21701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21702 for as_dir in $PATH
21703 do
21704 IFS=$as_save_IFS
21705 test -z "$as_dir" && as_dir=.
21706 for ac_exec_ext in '' $ac_executable_extensions; do
21707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21708 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21710 break 2
21711 fi
21712 done
21713 done
21714 IFS=$as_save_IFS
21715
21716 ;;
21717 esac
21718 fi
21719 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21720 if test -n "$gcc_cv_objdump"; then
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21722 $as_echo "$gcc_cv_objdump" >&6; }
21723 else
21724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21725 $as_echo "no" >&6; }
21726 fi
21727
21728
21729 fi
21730 fi
21731
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21733 $as_echo_n "checking what objdump to use... " >&6; }
21734 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21735 # Single tree build which includes binutils.
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21737 $as_echo "newly built objdump" >&6; }
21738 elif test x$gcc_cv_objdump = x; then
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21740 $as_echo "not found" >&6; }
21741 else
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21743 $as_echo "$gcc_cv_objdump" >&6; }
21744 fi
21745
21746 # Figure out what readelf we will be using.
21747 if test "${gcc_cv_readelf+set}" = set; then :
21748
21749 else
21750
21751 if test -f $gcc_cv_binutils_srcdir/configure.in \
21752 && test -f ../binutils/Makefile \
21753 && test x$build = x$host; then
21754 # Single tree build which includes binutils.
21755 gcc_cv_readelf=../binutils/readelf$build_exeext
21756 elif test -x readelf$build_exeext; then
21757 gcc_cv_readelf=./readelf$build_exeext
21758 else
21759 # Extract the first word of "readelf", so it can be a program name with args.
21760 set dummy readelf; ac_word=$2
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21762 $as_echo_n "checking for $ac_word... " >&6; }
21763 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21764 $as_echo_n "(cached) " >&6
21765 else
21766 case $gcc_cv_readelf in
21767 [\\/]* | ?:[\\/]*)
21768 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21769 ;;
21770 *)
21771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21772 for as_dir in $PATH
21773 do
21774 IFS=$as_save_IFS
21775 test -z "$as_dir" && as_dir=.
21776 for ac_exec_ext in '' $ac_executable_extensions; do
21777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21778 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21780 break 2
21781 fi
21782 done
21783 done
21784 IFS=$as_save_IFS
21785
21786 ;;
21787 esac
21788 fi
21789 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21790 if test -n "$gcc_cv_readelf"; then
21791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21792 $as_echo "$gcc_cv_readelf" >&6; }
21793 else
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21795 $as_echo "no" >&6; }
21796 fi
21797
21798
21799 fi
21800 fi
21801
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21803 $as_echo_n "checking what readelf to use... " >&6; }
21804 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21805 # Single tree build which includes binutils.
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21807 $as_echo "newly built readelf" >&6; }
21808 elif test x$gcc_cv_readelf = x; then
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21810 $as_echo "not found" >&6; }
21811 else
21812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21813 $as_echo "$gcc_cv_readelf" >&6; }
21814 fi
21815
21816 # Figure out what assembler alignment features are present.
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21818 $as_echo_n "checking assembler flags... " >&6; }
21819 if test "${gcc_cv_as_flags+set}" = set; then :
21820 $as_echo_n "(cached) " >&6
21821 else
21822 case "$target" in
21823 i[34567]86-*-linux*)
21824 gcc_cv_as_flags="--32"
21825 ;;
21826 powerpc*-*-darwin*)
21827 gcc_cv_as_flags="-arch ppc"
21828 ;;
21829 *)
21830 gcc_cv_as_flags=" "
21831 ;;
21832 esac
21833 fi
21834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21835 $as_echo "$gcc_cv_as_flags" >&6; }
21836
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21838 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21839 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21840 $as_echo_n "(cached) " >&6
21841 else
21842 gcc_cv_as_balign_and_p2align=no
21843 if test $in_tree_gas = yes; then
21844 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21845 then gcc_cv_as_balign_and_p2align=yes
21846 fi
21847 elif test x$gcc_cv_as != x; then
21848 $as_echo '.balign 4
21849 .p2align 2' > conftest.s
21850 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21852 (eval $ac_try) 2>&5
21853 ac_status=$?
21854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21855 test $ac_status = 0; }; }
21856 then
21857 gcc_cv_as_balign_and_p2align=yes
21858 else
21859 echo "configure: failed program was" >&5
21860 cat conftest.s >&5
21861 fi
21862 rm -f conftest.o conftest.s
21863 fi
21864 fi
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21866 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21867 if test $gcc_cv_as_balign_and_p2align = yes; then
21868
21869 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21870
21871 fi
21872
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21874 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21875 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21876 $as_echo_n "(cached) " >&6
21877 else
21878 gcc_cv_as_max_skip_p2align=no
21879 if test $in_tree_gas = yes; then
21880 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21881 then gcc_cv_as_max_skip_p2align=yes
21882 fi
21883 elif test x$gcc_cv_as != x; then
21884 $as_echo '.p2align 4,,7' > conftest.s
21885 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21887 (eval $ac_try) 2>&5
21888 ac_status=$?
21889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21890 test $ac_status = 0; }; }
21891 then
21892 gcc_cv_as_max_skip_p2align=yes
21893 else
21894 echo "configure: failed program was" >&5
21895 cat conftest.s >&5
21896 fi
21897 rm -f conftest.o conftest.s
21898 fi
21899 fi
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21901 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21902 if test $gcc_cv_as_max_skip_p2align = yes; then
21903
21904 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21905
21906 fi
21907
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21909 $as_echo_n "checking assembler for .literal16... " >&6; }
21910 if test "${gcc_cv_as_literal16+set}" = set; then :
21911 $as_echo_n "(cached) " >&6
21912 else
21913 gcc_cv_as_literal16=no
21914 if test $in_tree_gas = yes; then
21915 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21916 then gcc_cv_as_literal16=yes
21917 fi
21918 elif test x$gcc_cv_as != x; then
21919 $as_echo '.literal16' > conftest.s
21920 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21922 (eval $ac_try) 2>&5
21923 ac_status=$?
21924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21925 test $ac_status = 0; }; }
21926 then
21927 gcc_cv_as_literal16=yes
21928 else
21929 echo "configure: failed program was" >&5
21930 cat conftest.s >&5
21931 fi
21932 rm -f conftest.o conftest.s
21933 fi
21934 fi
21935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21936 $as_echo "$gcc_cv_as_literal16" >&6; }
21937 if test $gcc_cv_as_literal16 = yes; then
21938
21939 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21940
21941 fi
21942
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21944 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21945 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21946 $as_echo_n "(cached) " >&6
21947 else
21948 gcc_cv_as_subsection_m1=no
21949 if test $in_tree_gas = yes; then
21950 if test $in_tree_gas_is_elf = yes \
21951 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21952 then gcc_cv_as_subsection_m1=yes
21953 fi
21954 elif test x$gcc_cv_as != x; then
21955 $as_echo 'conftest_label1: .word 0
21956 .subsection -1
21957 conftest_label2: .word 0
21958 .previous' > conftest.s
21959 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21961 (eval $ac_try) 2>&5
21962 ac_status=$?
21963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21964 test $ac_status = 0; }; }
21965 then
21966 if test x$gcc_cv_nm != x; then
21967 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21968 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21969 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21970 then :
21971 else gcc_cv_as_subsection_m1=yes
21972 fi
21973 rm -f conftest.nm1 conftest.nm2
21974 fi
21975 else
21976 echo "configure: failed program was" >&5
21977 cat conftest.s >&5
21978 fi
21979 rm -f conftest.o conftest.s
21980 fi
21981 fi
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21983 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21984 if test $gcc_cv_as_subsection_m1 = yes; then
21985
21986 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21987
21988 fi
21989
21990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21991 $as_echo_n "checking assembler for .weak... " >&6; }
21992 if test "${gcc_cv_as_weak+set}" = set; then :
21993 $as_echo_n "(cached) " >&6
21994 else
21995 gcc_cv_as_weak=no
21996 if test $in_tree_gas = yes; then
21997 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21998 then gcc_cv_as_weak=yes
21999 fi
22000 elif test x$gcc_cv_as != x; then
22001 $as_echo ' .weak foobar' > conftest.s
22002 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22004 (eval $ac_try) 2>&5
22005 ac_status=$?
22006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22007 test $ac_status = 0; }; }
22008 then
22009 gcc_cv_as_weak=yes
22010 else
22011 echo "configure: failed program was" >&5
22012 cat conftest.s >&5
22013 fi
22014 rm -f conftest.o conftest.s
22015 fi
22016 fi
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22018 $as_echo "$gcc_cv_as_weak" >&6; }
22019 if test $gcc_cv_as_weak = yes; then
22020
22021 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22022
22023 fi
22024
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22026 $as_echo_n "checking assembler for .weakref... " >&6; }
22027 if test "${gcc_cv_as_weakref+set}" = set; then :
22028 $as_echo_n "(cached) " >&6
22029 else
22030 gcc_cv_as_weakref=no
22031 if test $in_tree_gas = yes; then
22032 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22033 then gcc_cv_as_weakref=yes
22034 fi
22035 elif test x$gcc_cv_as != x; then
22036 $as_echo ' .weakref foobar, barfnot' > conftest.s
22037 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22039 (eval $ac_try) 2>&5
22040 ac_status=$?
22041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22042 test $ac_status = 0; }; }
22043 then
22044 gcc_cv_as_weakref=yes
22045 else
22046 echo "configure: failed program was" >&5
22047 cat conftest.s >&5
22048 fi
22049 rm -f conftest.o conftest.s
22050 fi
22051 fi
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22053 $as_echo "$gcc_cv_as_weakref" >&6; }
22054 if test $gcc_cv_as_weakref = yes; then
22055
22056 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22057
22058 fi
22059
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22061 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22062 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22063 $as_echo_n "(cached) " >&6
22064 else
22065 gcc_cv_as_nsubspa_comdat=no
22066 if test $in_tree_gas = yes; then
22067 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22068 then gcc_cv_as_nsubspa_comdat=yes
22069 fi
22070 elif test x$gcc_cv_as != x; then
22071 $as_echo ' .SPACE $TEXT$
22072 .NSUBSPA $CODE$,COMDAT' > conftest.s
22073 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22075 (eval $ac_try) 2>&5
22076 ac_status=$?
22077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22078 test $ac_status = 0; }; }
22079 then
22080 gcc_cv_as_nsubspa_comdat=yes
22081 else
22082 echo "configure: failed program was" >&5
22083 cat conftest.s >&5
22084 fi
22085 rm -f conftest.o conftest.s
22086 fi
22087 fi
22088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22089 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22090 if test $gcc_cv_as_nsubspa_comdat = yes; then
22091
22092 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22093
22094 fi
22095
22096 # .hidden needs to be supported in both the assembler and the linker,
22097 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22098 # This is irritatingly difficult to feature test for; we have to check the
22099 # date string after the version number. If we've got an in-tree
22100 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22101 # to be safe.
22102 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22104 $as_echo_n "checking assembler for .hidden... " >&6; }
22105 if test "${gcc_cv_as_hidden+set}" = set; then :
22106 $as_echo_n "(cached) " >&6
22107 else
22108 gcc_cv_as_hidden=no
22109 if test $in_tree_gas = yes; then
22110 if test $in_tree_gas_is_elf = yes \
22111 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22112 then gcc_cv_as_hidden=yes
22113 fi
22114 elif test x$gcc_cv_as != x; then
22115 $as_echo ' .hidden foobar
22116 foobar:' > conftest.s
22117 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22119 (eval $ac_try) 2>&5
22120 ac_status=$?
22121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22122 test $ac_status = 0; }; }
22123 then
22124
22125 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22126 # STV_HIDDEN, so disable .hidden support if so.
22127 case "${target}" in
22128 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22129 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22130 cat > conftest.s <<EOF
22131 .globl hidden
22132 .hidden hidden
22133 hidden:
22134 .globl default
22135 .set default,hidden
22136 EOF
22137 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22138 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22139 grep '\.hidden default' > /dev/null; then
22140 gcc_cv_as_hidden=no
22141 else
22142 gcc_cv_as_hidden=yes
22143 fi
22144 else
22145 # Assume bug is present if objdump is missing.
22146 gcc_cv_as_hidden=no
22147 fi
22148 ;;
22149 *)
22150 gcc_cv_as_hidden=yes
22151 ;;
22152 esac
22153 else
22154 echo "configure: failed program was" >&5
22155 cat conftest.s >&5
22156 fi
22157 rm -f conftest.o conftest.s
22158 fi
22159 fi
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22161 $as_echo "$gcc_cv_as_hidden" >&6; }
22162
22163 case "${target}" in
22164 *-*-darwin*)
22165 # Darwin as has some visibility support, though with a different syntax.
22166 gcc_cv_as_hidden=yes
22167 ;;
22168 esac
22169
22170 # gnu_indirect_function type is an extension proposed at
22171 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22172 # selection of function implementation
22173 # Check whether --enable-gnu-indirect-function was given.
22174 if test "${enable_gnu_indirect_function+set}" = set; then :
22175 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22176 yes | no) ;;
22177 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22178 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22179 esac
22180 else
22181 enable_gnu_indirect_function="$default_gnu_indirect_function"
22182 fi
22183
22184 if test x$enable_gnu_indirect_function = xyes; then
22185
22186 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22187
22188 fi
22189
22190 if test $in_tree_ld != yes ; then
22191 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22192 if echo "$ld_ver" | grep GNU > /dev/null; then
22193 if test x"$ld_is_gold" = xyes; then
22194 # GNU gold --version looks like this:
22195 #
22196 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22197 #
22198 # We extract the binutils version which is more familiar and specific
22199 # than the gold version.
22200 ld_vers=`echo $ld_ver | sed -n \
22201 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22202 else
22203 # GNU ld --version looks like this:
22204 #
22205 # GNU ld (GNU Binutils) 2.21.51.20110225
22206 ld_vers=`echo $ld_ver | sed -n \
22207 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22208 fi
22209 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'`
22210 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22211 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22212 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22213 else
22214 case "${target}" in
22215 *-*-solaris2*)
22216 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22217 # format.
22218 #
22219 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22220 # /usr/ccs/bin/ld has been configured.
22221 ld_ver=`$gcc_cv_ld -V 2>&1`
22222 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22223 ld_vers=`echo $ld_ver | sed -n \
22224 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22225 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22226 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22227 fi
22228 ;;
22229 esac
22230 fi
22231 fi
22232
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22234 $as_echo_n "checking linker for .hidden support... " >&6; }
22235 if test "${gcc_cv_ld_hidden+set}" = set; then :
22236 $as_echo_n "(cached) " >&6
22237 else
22238 if test $in_tree_ld = yes ; then
22239 gcc_cv_ld_hidden=no
22240 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 \
22241 && test $in_tree_ld_is_elf = yes; then
22242 gcc_cv_ld_hidden=yes
22243 fi
22244 else
22245 gcc_cv_ld_hidden=yes
22246 if test x"$ld_is_gold" = xyes; then
22247 :
22248 elif echo "$ld_ver" | grep GNU > /dev/null; then
22249 if test 0"$ld_date" -lt 20020404; then
22250 if test -n "$ld_date"; then
22251 # If there was date string, but was earlier than 2002-04-04, fail
22252 gcc_cv_ld_hidden=no
22253 elif test -z "$ld_vers"; then
22254 # If there was no date string nor ld version number, something is wrong
22255 gcc_cv_ld_hidden=no
22256 else
22257 test -z "$ld_vers_patch" && ld_vers_patch=0
22258 if test "$ld_vers_major" -lt 2; then
22259 gcc_cv_ld_hidden=no
22260 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22261 gcc_cv_ld_hidden="no"
22262 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22263 gcc_cv_ld_hidden=no
22264 fi
22265 fi
22266 fi
22267 else
22268 case "${target}" in
22269 *-*-darwin*)
22270 # Darwin ld has some visibility support.
22271 gcc_cv_ld_hidden=yes
22272 ;;
22273 hppa64*-*-hpux* | ia64*-*-hpux*)
22274 gcc_cv_ld_hidden=yes
22275 ;;
22276 *-*-solaris2.8*)
22277 # .hidden support was backported to Solaris 8, starting with ld
22278 # version 1.276.
22279 if test "$ld_vers_minor" -ge 276; then
22280 gcc_cv_ld_hidden=yes
22281 else
22282 gcc_cv_ld_hidden=no
22283 fi
22284 ;;
22285 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22286 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22287 # .symbolic was only added in Solaris 9 12/02.
22288 gcc_cv_ld_hidden=yes
22289 ;;
22290 *)
22291 gcc_cv_ld_hidden=no
22292 ;;
22293 esac
22294 fi
22295 fi
22296 fi
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22298 $as_echo "$gcc_cv_ld_hidden" >&6; }
22299 libgcc_visibility=no
22300
22301
22302 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22303 libgcc_visibility=yes
22304
22305 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22306
22307 fi
22308
22309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22310 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22311 gcc_cv_ld_ro_rw_mix=unknown
22312 if test $in_tree_ld = yes ; then
22313 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 \
22314 && test $in_tree_ld_is_elf = yes; then
22315 gcc_cv_ld_ro_rw_mix=read-write
22316 fi
22317 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22318 echo '.section myfoosect, "a"' > conftest1.s
22319 echo '.section myfoosect, "aw"' > conftest2.s
22320 echo '.byte 1' >> conftest2.s
22321 echo '.section myfoosect, "a"' > conftest3.s
22322 echo '.byte 0' >> conftest3.s
22323 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22324 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22325 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22326 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22327 conftest2.o conftest3.o > /dev/null 2>&1; then
22328 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22329 | sed -e '/myfoosect/!d' -e N`
22330 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22331 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22332 gcc_cv_ld_ro_rw_mix=read-only
22333 else
22334 gcc_cv_ld_ro_rw_mix=read-write
22335 fi
22336 fi
22337 fi
22338 rm -f conftest.* conftest[123].*
22339 fi
22340 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22341
22342 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22343
22344 fi
22345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22346 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22347
22348 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22349 case "${target}" in
22350 *-*-solaris2*)
22351 #
22352 # Solaris 2 ld -V output looks like this for a regular version:
22353 #
22354 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22355 #
22356 # but test versions add stuff at the end:
22357 #
22358 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22359 #
22360 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22361 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22362 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22363 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22364 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22365 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22366 fi
22367 ;;
22368 esac
22369 fi
22370
22371 # Check whether --enable-initfini-array was given.
22372 if test "${enable_initfini_array+set}" = set; then :
22373 enableval=$enable_initfini_array;
22374 else
22375
22376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22377 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22378 if test "${gcc_cv_initfini_array+set}" = set; then :
22379 $as_echo_n "(cached) " >&6
22380 else
22381 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22382 case "${target}" in
22383 ia64-*)
22384 if test "$cross_compiling" = yes; then :
22385 gcc_cv_initfini_array=no
22386 else
22387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22388 /* end confdefs.h. */
22389
22390 #ifndef __ELF__
22391 #error Not an ELF OS
22392 #endif
22393 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22394 if it can be used. */
22395 static int x = -1;
22396 int main (void) { return x; }
22397 int foo (void) { x = 0; }
22398 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22399
22400 _ACEOF
22401 if ac_fn_c_try_run "$LINENO"; then :
22402 gcc_cv_initfini_array=yes
22403 else
22404 gcc_cv_initfini_array=no
22405 fi
22406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22407 conftest.$ac_objext conftest.beam conftest.$ac_ext
22408 fi
22409 ;;
22410 *)
22411 gcc_cv_initfini_array=no
22412 if test $in_tree_ld = yes ; then
22413 if test "$gcc_cv_gld_major_version" -eq 2 \
22414 -a "$gcc_cv_gld_minor_version" -ge 22 \
22415 -o "$gcc_cv_gld_major_version" -gt 2 \
22416 && test $in_tree_ld_is_elf = yes; then
22417 gcc_cv_initfini_array=yes
22418 fi
22419 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22420 cat > conftest.s <<\EOF
22421 .section .dtors,"a",%progbits
22422 .balign 4
22423 .byte 'A', 'A', 'A', 'A'
22424 .section .ctors,"a",%progbits
22425 .balign 4
22426 .byte 'B', 'B', 'B', 'B'
22427 .section .fini_array.65530,"a",%progbits
22428 .balign 4
22429 .byte 'C', 'C', 'C', 'C'
22430 .section .init_array.65530,"a",%progbits
22431 .balign 4
22432 .byte 'D', 'D', 'D', 'D'
22433 .section .dtors.64528,"a",%progbits
22434 .balign 4
22435 .byte 'E', 'E', 'E', 'E'
22436 .section .ctors.64528,"a",%progbits
22437 .balign 4
22438 .byte 'F', 'F', 'F', 'F'
22439 .section .fini_array.01005,"a",%progbits
22440 .balign 4
22441 .byte 'G', 'G', 'G', 'G'
22442 .section .init_array.01005,"a",%progbits
22443 .balign 4
22444 .byte 'H', 'H', 'H', 'H'
22445 .text
22446 .globl _start
22447 _start:
22448 EOF
22449 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22450 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22451 && $gcc_cv_objdump -s -j .init_array conftest \
22452 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22453 && $gcc_cv_objdump -s -j .fini_array conftest \
22454 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22455 gcc_cv_initfini_array=yes
22456 fi
22457 rm -f conftest conftest.*
22458 fi
22459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22460 /* end confdefs.h. */
22461
22462 #ifndef __ELF__
22463 # error Not an ELF OS
22464 #endif
22465 #include <stdlib.h>
22466 #if defined __GLIBC_PREREQ
22467 # if __GLIBC_PREREQ (2, 4)
22468 # else
22469 # error GLIBC 2.4 required
22470 # endif
22471 #else
22472 # if defined __sun__ && defined __svr4__
22473 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22474 # else
22475 # error The C library not known to support .init_array/.fini_array
22476 # endif
22477 #endif
22478
22479 _ACEOF
22480 if ac_fn_c_try_cpp "$LINENO"; then :
22481
22482 case "${target}" in
22483 *-*-solaris2.8*)
22484 # .init_array/.fini_array support was introduced in Solaris 8
22485 # patches 109147-08 (sparc) and 109148-08 (x86). Since ld.so.1 and
22486 # ld are guaranteed to be updated in lockstep, we can check ld -V
22487 # instead. Unfortunately, proper ld version numbers were only
22488 # introduced in rev. -14, so we check for that.
22489 if test "$gcc_cv_sun_ld_vers_minor" -lt 272; then
22490 gcc_cv_initfini_array=no
22491 fi
22492 ;;
22493 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22494 # .init_array/.fini_array support is present since Solaris 9 FCS.
22495 ;;
22496 esac
22497
22498 else
22499 gcc_cv_initfini_array=no
22500 fi
22501 rm -f conftest.err conftest.$ac_ext;;
22502 esac
22503 else
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22505 $as_echo_n "checking cross compile... guessing... " >&6; }
22506 gcc_cv_initfini_array=no
22507 fi
22508 fi
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22510 $as_echo "$gcc_cv_initfini_array" >&6; }
22511 enable_initfini_array=$gcc_cv_initfini_array
22512
22513 fi
22514
22515 if test $enable_initfini_array = yes; then
22516
22517 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22518
22519 fi
22520
22521 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22523 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22524 if test "${gcc_cv_as_leb128+set}" = set; then :
22525 $as_echo_n "(cached) " >&6
22526 else
22527 gcc_cv_as_leb128=no
22528 if test $in_tree_gas = yes; then
22529 if test $in_tree_gas_is_elf = yes \
22530 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22531 then gcc_cv_as_leb128=yes
22532 fi
22533 elif test x$gcc_cv_as != x; then
22534 $as_echo ' .data
22535 .uleb128 L2 - L1
22536 L1:
22537 .uleb128 1280
22538 .sleb128 -1010
22539 L2:' > conftest.s
22540 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22542 (eval $ac_try) 2>&5
22543 ac_status=$?
22544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22545 test $ac_status = 0; }; }
22546 then
22547 # GAS versions before 2.11 do not support uleb128,
22548 # despite appearing to.
22549 # ??? There exists an elf-specific test that will crash
22550 # the assembler. Perhaps it's better to figure out whether
22551 # arbitrary sections are supported and try the test.
22552 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22553 if echo "$as_ver" | grep GNU > /dev/null; then
22554 as_vers=`echo $as_ver | sed -n \
22555 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22556 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22557 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22558 if test $as_major -eq 2 && test $as_minor -lt 11
22559 then :
22560 else gcc_cv_as_leb128=yes
22561 fi
22562 fi
22563 else
22564 echo "configure: failed program was" >&5
22565 cat conftest.s >&5
22566 fi
22567 rm -f conftest.o conftest.s
22568 fi
22569 fi
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22571 $as_echo "$gcc_cv_as_leb128" >&6; }
22572 if test $gcc_cv_as_leb128 = yes; then
22573
22574 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22575
22576 fi
22577
22578 # Check if we have assembler support for unwind directives.
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22580 $as_echo_n "checking assembler for cfi directives... " >&6; }
22581 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22582 $as_echo_n "(cached) " >&6
22583 else
22584 gcc_cv_as_cfi_directive=no
22585 if test x$gcc_cv_as != x; then
22586 $as_echo ' .text
22587 .cfi_startproc
22588 .cfi_offset 0, 0
22589 .cfi_same_value 1
22590 .cfi_def_cfa 1, 2
22591 .cfi_escape 1, 2, 3, 4, 5
22592 .cfi_endproc' > conftest.s
22593 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22595 (eval $ac_try) 2>&5
22596 ac_status=$?
22597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22598 test $ac_status = 0; }; }
22599 then
22600 case "$target" in
22601 *-*-solaris*)
22602 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22603 # read-only and read-write sections, we need to make sure that the
22604 # assembler used emits read-write .eh_frame sections.
22605 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22606 if test "x$gcc_cv_objdump" != x; then
22607 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22608 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22609 gcc_cv_as_cfi_directive=no
22610 else
22611 case "$target" in
22612 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22613 # On Solaris/x86, make sure that GCC and gas agree on using
22614 # read-only .eh_frame sections for 64-bit.
22615 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22616 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22617 sed -e /.eh_frame/!d -e N | \
22618 grep READONLY > /dev/null; then
22619 gcc_cv_as_cfi_directive=yes
22620 else
22621 gcc_cv_as_cfi_directive=no
22622 fi
22623 ;;
22624 *)
22625 gcc_cv_as_cfi_directive=yes
22626 ;;
22627 esac
22628 fi
22629 else
22630 # no objdump, err on the side of caution
22631 gcc_cv_as_cfi_directive=no
22632 fi
22633 else
22634 gcc_cv_as_cfi_directive=yes
22635 fi
22636 ;;
22637 *-*-*)
22638 gcc_cv_as_cfi_directive=yes
22639 ;;
22640 esac
22641 else
22642 echo "configure: failed program was" >&5
22643 cat conftest.s >&5
22644 fi
22645 rm -f conftest.o conftest.s
22646 fi
22647 fi
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22649 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22650
22651 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22653 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22654 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22655 $as_echo_n "(cached) " >&6
22656 else
22657 gcc_cv_as_cfi_advance_working=no
22658 if test x$gcc_cv_as != x; then
22659 $as_echo ' .text
22660 .cfi_startproc
22661 .cfi_adjust_cfa_offset 64
22662 .skip 75040, 0
22663 .cfi_adjust_cfa_offset 128
22664 .cfi_endproc' > conftest.s
22665 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22667 (eval $ac_try) 2>&5
22668 ac_status=$?
22669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22670 test $ac_status = 0; }; }
22671 then
22672
22673 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22674 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22675 gcc_cv_as_cfi_advance_working=yes
22676 fi
22677
22678 else
22679 echo "configure: failed program was" >&5
22680 cat conftest.s >&5
22681 fi
22682 rm -f conftest.o conftest.s
22683 fi
22684 fi
22685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22686 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22687
22688 else
22689 # no objdump, err on the side of caution
22690 gcc_cv_as_cfi_advance_working=no
22691 fi
22692
22693
22694 cat >>confdefs.h <<_ACEOF
22695 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22696 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22697 _ACEOF
22698
22699
22700
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22702 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22703 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22704 $as_echo_n "(cached) " >&6
22705 else
22706 gcc_cv_as_cfi_personality_directive=no
22707 if test x$gcc_cv_as != x; then
22708 $as_echo ' .text
22709 .cfi_startproc
22710 .cfi_personality 0, symbol
22711 .cfi_endproc' > conftest.s
22712 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22714 (eval $ac_try) 2>&5
22715 ac_status=$?
22716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22717 test $ac_status = 0; }; }
22718 then
22719 gcc_cv_as_cfi_personality_directive=yes
22720 else
22721 echo "configure: failed program was" >&5
22722 cat conftest.s >&5
22723 fi
22724 rm -f conftest.o conftest.s
22725 fi
22726 fi
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22728 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22729
22730
22731 cat >>confdefs.h <<_ACEOF
22732 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22733 then echo 1; else echo 0; fi`
22734 _ACEOF
22735
22736
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22738 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22739 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22740 $as_echo_n "(cached) " >&6
22741 else
22742 gcc_cv_as_cfi_sections_directive=no
22743 if test x$gcc_cv_as != x; then
22744 $as_echo ' .text
22745 .cfi_sections .debug_frame, .eh_frame
22746 .cfi_startproc
22747 .cfi_endproc' > conftest.s
22748 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22750 (eval $ac_try) 2>&5
22751 ac_status=$?
22752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22753 test $ac_status = 0; }; }
22754 then
22755 case $target_os in
22756 win32 | pe | cygwin* | mingw32* | uwin*)
22757 # Need to check that we generated the correct relocation for the
22758 # .debug_frame section. This was fixed for binutils 2.21.
22759 gcc_cv_as_cfi_sections_directive=no
22760 if test "x$gcc_cv_objdump" != x; then
22761 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22762 grep secrel > /dev/null; then
22763 gcc_cv_as_cfi_sections_directive=yes
22764 fi
22765 fi
22766 ;;
22767 *)
22768 gcc_cv_as_cfi_sections_directive=yes
22769 ;;
22770 esac
22771 else
22772 echo "configure: failed program was" >&5
22773 cat conftest.s >&5
22774 fi
22775 rm -f conftest.o conftest.s
22776 fi
22777 fi
22778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22779 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22780
22781
22782
22783 cat >>confdefs.h <<_ACEOF
22784 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22785 then echo 1; else echo 0; fi`
22786 _ACEOF
22787
22788
22789 # GAS versions up to and including 2.11.0 may mis-optimize
22790 # .eh_frame data.
22791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22792 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22793 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22794 $as_echo_n "(cached) " >&6
22795 else
22796 gcc_cv_as_eh_frame=no
22797 if test $in_tree_gas = yes; then
22798 if test $in_tree_gas_is_elf = yes \
22799 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22800 then gcc_cv_as_eh_frame=yes
22801 fi
22802 elif test x$gcc_cv_as != x; then
22803 $as_echo ' .text
22804 .LFB1:
22805 .4byte 0
22806 .L1:
22807 .4byte 0
22808 .LFE1:
22809 .section .eh_frame,"aw",@progbits
22810 __FRAME_BEGIN__:
22811 .4byte .LECIE1-.LSCIE1
22812 .LSCIE1:
22813 .4byte 0x0
22814 .byte 0x1
22815 .ascii "z\0"
22816 .byte 0x1
22817 .byte 0x78
22818 .byte 0x1a
22819 .byte 0x0
22820 .byte 0x4
22821 .4byte 1
22822 .p2align 1
22823 .LECIE1:
22824 .LSFDE1:
22825 .4byte .LEFDE1-.LASFDE1
22826 .LASFDE1:
22827 .4byte .LASFDE1-__FRAME_BEGIN__
22828 .4byte .LFB1
22829 .4byte .LFE1-.LFB1
22830 .byte 0x4
22831 .4byte .LFE1-.LFB1
22832 .byte 0x4
22833 .4byte .L1-.LFB1
22834 .LEFDE1:' > conftest.s
22835 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22837 (eval $ac_try) 2>&5
22838 ac_status=$?
22839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22840 test $ac_status = 0; }; }
22841 then
22842 cat > conftest.lit <<EOF
22843 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22844 0010 01000000 12000000 18000000 00000000 ................
22845 0020 08000000 04080000 0044 .........D
22846 EOF
22847 cat > conftest.big <<EOF
22848 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22849 0010 00000001 00000012 00000018 00000000 ................
22850 0020 00000008 04000000 0844 .........D
22851 EOF
22852 # If the assembler didn't choke, and we can objdump,
22853 # and we got the correct data, then succeed.
22854 # The text in the here-document typically retains its unix-style line
22855 # endings, while the output of objdump will use host line endings.
22856 # Therefore, use diff -b for the comparisons.
22857 if test x$gcc_cv_objdump != x \
22858 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22859 | tail -3 > conftest.got \
22860 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22861 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22862 then
22863 gcc_cv_as_eh_frame=yes
22864 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22866 (eval $ac_try) 2>&5
22867 ac_status=$?
22868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22869 test $ac_status = 0; }; }; then
22870 gcc_cv_as_eh_frame=buggy
22871 else
22872 # Uh oh, what do we do now?
22873 gcc_cv_as_eh_frame=no
22874 fi
22875 else
22876 echo "configure: failed program was" >&5
22877 cat conftest.s >&5
22878 fi
22879 rm -f conftest.o conftest.s
22880 fi
22881 fi
22882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22883 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22884
22885
22886 if test $gcc_cv_as_eh_frame = buggy; then
22887
22888 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22889
22890 fi
22891
22892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22893 $as_echo_n "checking assembler for section merging support... " >&6; }
22894 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22895 $as_echo_n "(cached) " >&6
22896 else
22897 gcc_cv_as_shf_merge=no
22898 if test $in_tree_gas = yes; then
22899 if test $in_tree_gas_is_elf = yes \
22900 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22901 then gcc_cv_as_shf_merge=yes
22902 fi
22903 elif test x$gcc_cv_as != x; then
22904 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22905 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22907 (eval $ac_try) 2>&5
22908 ac_status=$?
22909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22910 test $ac_status = 0; }; }
22911 then
22912 gcc_cv_as_shf_merge=yes
22913 else
22914 echo "configure: failed program was" >&5
22915 cat conftest.s >&5
22916 fi
22917 rm -f conftest.o conftest.s
22918 fi
22919 fi
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22921 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22922
22923 if test $gcc_cv_as_shf_merge = no; then
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22925 $as_echo_n "checking assembler for section merging support... " >&6; }
22926 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22927 $as_echo_n "(cached) " >&6
22928 else
22929 gcc_cv_as_shf_merge=no
22930 if test $in_tree_gas = yes; then
22931 if test $in_tree_gas_is_elf = yes \
22932 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22933 then gcc_cv_as_shf_merge=yes
22934 fi
22935 elif test x$gcc_cv_as != x; then
22936 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22937 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22939 (eval $ac_try) 2>&5
22940 ac_status=$?
22941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22942 test $ac_status = 0; }; }
22943 then
22944 gcc_cv_as_shf_merge=yes
22945 else
22946 echo "configure: failed program was" >&5
22947 cat conftest.s >&5
22948 fi
22949 rm -f conftest.o conftest.s
22950 fi
22951 fi
22952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22953 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22954
22955 fi
22956
22957 cat >>confdefs.h <<_ACEOF
22958 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22959 _ACEOF
22960
22961
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22963 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22964 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22965 $as_echo_n "(cached) " >&6
22966 else
22967 gcc_cv_as_comdat_group=no
22968 if test $in_tree_gas = yes; then
22969 if test $in_tree_gas_is_elf = yes \
22970 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22971 then gcc_cv_as_comdat_group=yes
22972 fi
22973 elif test x$gcc_cv_as != x; then
22974 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22975 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22977 (eval $ac_try) 2>&5
22978 ac_status=$?
22979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22980 test $ac_status = 0; }; }
22981 then
22982 gcc_cv_as_comdat_group=yes
22983 else
22984 echo "configure: failed program was" >&5
22985 cat conftest.s >&5
22986 fi
22987 rm -f conftest.o conftest.s
22988 fi
22989 fi
22990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22991 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22992
22993 if test $gcc_cv_as_comdat_group = yes; then
22994 gcc_cv_as_comdat_group_percent=no
22995 gcc_cv_as_comdat_group_group=no
22996 else
22997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22998 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22999 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23000 $as_echo_n "(cached) " >&6
23001 else
23002 gcc_cv_as_comdat_group_percent=no
23003 if test $in_tree_gas = yes; then
23004 if test $in_tree_gas_is_elf = yes \
23005 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23006 then gcc_cv_as_comdat_group_percent=yes
23007 fi
23008 elif test x$gcc_cv_as != x; then
23009 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23010 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23012 (eval $ac_try) 2>&5
23013 ac_status=$?
23014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23015 test $ac_status = 0; }; }
23016 then
23017 gcc_cv_as_comdat_group_percent=yes
23018 else
23019 echo "configure: failed program was" >&5
23020 cat conftest.s >&5
23021 fi
23022 rm -f conftest.o conftest.s
23023 fi
23024 fi
23025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23026 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23027
23028 if test $gcc_cv_as_comdat_group_percent = yes; then
23029 gcc_cv_as_comdat_group_group=no
23030 else
23031 case "${target}" in
23032 # Sun as uses a completely different syntax.
23033 *-*-solaris2*)
23034 case "${target}" in
23035 sparc*-*-solaris2*)
23036 conftest_s='
23037 .group foo,".text%foo",#comdat
23038 .section ".text%foo", #alloc,#execinstr,#progbits
23039 .globl foo
23040 foo:
23041 '
23042 ;;
23043 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23044 conftest_s='
23045 .group foo,.text%foo,#comdat
23046 .section .text%foo, "ax", @progbits
23047 .globl foo
23048 foo:
23049 '
23050 ;;
23051 esac
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23053 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23054 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23055 $as_echo_n "(cached) " >&6
23056 else
23057 gcc_cv_as_comdat_group_group=no
23058 if test x$gcc_cv_as != x; then
23059 $as_echo "$conftest_s" > conftest.s
23060 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23062 (eval $ac_try) 2>&5
23063 ac_status=$?
23064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23065 test $ac_status = 0; }; }
23066 then
23067 gcc_cv_as_comdat_group_group=yes
23068 else
23069 echo "configure: failed program was" >&5
23070 cat conftest.s >&5
23071 fi
23072 rm -f conftest.o conftest.s
23073 fi
23074 fi
23075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23076 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23077
23078 ;;
23079 esac
23080 fi
23081 fi
23082 if test x"$ld_is_gold" = xyes; then
23083 comdat_group=yes
23084 elif test $in_tree_ld = yes ; then
23085 comdat_group=no
23086 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 \
23087 && test $in_tree_ld_is_elf = yes; then
23088 comdat_group=yes
23089 fi
23090 elif echo "$ld_ver" | grep GNU > /dev/null; then
23091 comdat_group=yes
23092 if test 0"$ld_date" -lt 20050308; then
23093 if test -n "$ld_date"; then
23094 # If there was date string, but was earlier than 2005-03-08, fail
23095 comdat_group=no
23096 elif test "$ld_vers_major" -lt 2; then
23097 comdat_group=no
23098 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23099 comdat_group=no
23100 fi
23101 fi
23102 else
23103 case "${target}" in
23104 *-*-solaris2.1[1-9]*)
23105 comdat_group=no
23106 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23107 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23108 # version 1.688.
23109 #
23110 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23111 # least ld version 1.2267.
23112 if test "$ld_vers_major" -gt 1; then
23113 comdat_group=yes
23114 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23115 comdat_group=yes
23116 elif test "$ld_vers_minor" -ge 2267; then
23117 comdat_group=yes
23118 fi
23119 ;;
23120 *)
23121 # Assume linkers other than GNU ld don't support COMDAT group.
23122 comdat_group=no
23123 ;;
23124 esac
23125 fi
23126 # Allow overriding the automatic COMDAT group tests above.
23127 # Check whether --enable-comdat was given.
23128 if test "${enable_comdat+set}" = set; then :
23129 enableval=$enable_comdat; comdat_group="$enable_comdat"
23130 fi
23131
23132 if test $comdat_group = no; then
23133 gcc_cv_as_comdat_group=no
23134 gcc_cv_as_comdat_group_percent=no
23135 gcc_cv_as_comdat_group_group=no
23136 fi
23137
23138 cat >>confdefs.h <<_ACEOF
23139 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23140 || test $gcc_cv_as_comdat_group_percent = yes \
23141 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23142 _ACEOF
23143
23144
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23146 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23147 if test "${gcc_cv_as_discriminator+set}" = set; then :
23148 $as_echo_n "(cached) " >&6
23149 else
23150 gcc_cv_as_discriminator=no
23151 if test $in_tree_gas = yes; then
23152 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23153 then gcc_cv_as_discriminator=yes
23154 fi
23155 elif test x$gcc_cv_as != x; then
23156 $as_echo ' .text
23157 .file 1 "conf.c"
23158 .loc 1 1 0 discriminator 1' > conftest.s
23159 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23161 (eval $ac_try) 2>&5
23162 ac_status=$?
23163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23164 test $ac_status = 0; }; }
23165 then
23166 gcc_cv_as_discriminator=yes
23167 else
23168 echo "configure: failed program was" >&5
23169 cat conftest.s >&5
23170 fi
23171 rm -f conftest.o conftest.s
23172 fi
23173 fi
23174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23175 $as_echo "$gcc_cv_as_discriminator" >&6; }
23176 if test $gcc_cv_as_discriminator = yes; then
23177
23178 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23179
23180 fi
23181
23182 # Thread-local storage - the check is heavily parameterized.
23183 conftest_s=
23184 tls_first_major=
23185 tls_first_minor=
23186 tls_as_opt=
23187 case "$target" in
23188 alpha*-*-*)
23189 conftest_s='
23190 .section ".tdata","awT",@progbits
23191 foo: .long 25
23192 .text
23193 ldq $27,__tls_get_addr($29) !literal!1
23194 lda $16,foo($29) !tlsgd!1
23195 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23196 ldq $27,__tls_get_addr($29) !literal!2
23197 lda $16,foo($29) !tlsldm!2
23198 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23199 ldq $1,foo($29) !gotdtprel
23200 ldah $2,foo($29) !dtprelhi
23201 lda $3,foo($2) !dtprello
23202 lda $4,foo($29) !dtprel
23203 ldq $1,foo($29) !gottprel
23204 ldah $2,foo($29) !tprelhi
23205 lda $3,foo($2) !tprello
23206 lda $4,foo($29) !tprel'
23207 tls_first_major=2
23208 tls_first_minor=13
23209 tls_as_opt=--fatal-warnings
23210 ;;
23211 cris-*-*|crisv32-*-*)
23212 conftest_s='
23213 .section ".tdata","awT",@progbits
23214 x: .long 25
23215 .text
23216 move.d x:IE,$r10
23217 nop'
23218 tls_first_major=2
23219 tls_first_minor=20
23220 tls_as_opt=--fatal-warnings
23221 ;;
23222 frv*-*-*)
23223 conftest_s='
23224 .section ".tdata","awT",@progbits
23225 x: .long 25
23226 .text
23227 call #gettlsoff(x)'
23228 tls_first_major=2
23229 tls_first_minor=14
23230 ;;
23231 hppa*-*-linux*)
23232 conftest_s='
23233 t1: .reg %r20
23234 t2: .reg %r21
23235 gp: .reg %r19
23236 .section ".tdata","awT",@progbits
23237 foo: .long 25
23238 .text
23239 .align 4
23240 addil LT%foo-$tls_gdidx$,gp
23241 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23242 b __tls_get_addr
23243 nop
23244 addil LT%foo-$tls_ldidx$,gp
23245 b __tls_get_addr
23246 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23247 addil LR%foo-$tls_dtpoff$,%ret0
23248 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23249 mfctl %cr27,%t1
23250 addil LT%foo-$tls_ieoff$,gp
23251 ldw RT%foo-$tls_ieoff$(%r1),%t2
23252 add %t1,%t2,%t3
23253 mfctl %cr27,%t1
23254 addil LR%foo-$tls_leoff$,%t1
23255 ldo RR%foo-$tls_leoff$(%r1),%t2'
23256 tls_first_major=2
23257 tls_first_minor=15
23258 tls_as_opt=--fatal-warnings
23259 ;;
23260 arm*-*-*)
23261 conftest_s='
23262 .section ".tdata","awT",%progbits
23263 foo: .long 25
23264 .text
23265 .word foo(gottpoff)
23266 .word foo(tpoff)
23267 .word foo(tlsgd)
23268 .word foo(tlsldm)
23269 .word foo(tlsldo)'
23270 tls_first_major=2
23271 tls_first_minor=17
23272 ;;
23273 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23274 case "$target" in
23275 i[34567]86-*-solaris2.*)
23276 on_solaris=yes
23277 tga_func=___tls_get_addr
23278 ;;
23279 x86_64-*-solaris2.1[0-9]*)
23280 on_solaris=yes
23281 tga_func=__tls_get_addr
23282 ;;
23283 *)
23284 on_solaris=no
23285 ;;
23286 esac
23287 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23288 conftest_s='
23289 .section .tdata,"awt",@progbits'
23290 tls_first_major=0
23291 tls_first_minor=0
23292
23293 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23294
23295 else
23296 conftest_s='
23297 .section ".tdata","awT",@progbits'
23298 tls_first_major=2
23299 tls_first_minor=14
23300 tls_as_opt="--fatal-warnings"
23301 fi
23302 conftest_s="$conftest_s
23303 foo: .long 25
23304 .text
23305 movl %gs:0, %eax
23306 leal foo@tlsgd(,%ebx,1), %eax
23307 leal foo@tlsldm(%ebx), %eax
23308 leal foo@dtpoff(%eax), %edx
23309 movl foo@gottpoff(%ebx), %eax
23310 subl foo@gottpoff(%ebx), %eax
23311 addl foo@gotntpoff(%ebx), %eax
23312 movl foo@indntpoff, %eax
23313 movl \$foo@tpoff, %eax
23314 subl \$foo@tpoff, %eax
23315 leal foo@ntpoff(%ecx), %eax"
23316 ;;
23317 x86_64-*-*)
23318 conftest_s='
23319 .section ".tdata","awT",@progbits
23320 foo: .long 25
23321 .text
23322 movq %fs:0, %rax
23323 leaq foo@TLSGD(%rip), %rdi
23324 leaq foo@TLSLD(%rip), %rdi
23325 leaq foo@DTPOFF(%rax), %rdx
23326 movq foo@GOTTPOFF(%rip), %rax
23327 movq $foo@TPOFF, %rax'
23328 tls_first_major=2
23329 tls_first_minor=14
23330 tls_as_opt=--fatal-warnings
23331 ;;
23332 ia64-*-*)
23333 conftest_s='
23334 .section ".tdata","awT",@progbits
23335 foo: data8 25
23336 .text
23337 addl r16 = @ltoff(@dtpmod(foo#)), gp
23338 addl r17 = @ltoff(@dtprel(foo#)), gp
23339 addl r18 = @ltoff(@tprel(foo#)), gp
23340 addl r19 = @dtprel(foo#), gp
23341 adds r21 = @dtprel(foo#), r13
23342 movl r23 = @dtprel(foo#)
23343 addl r20 = @tprel(foo#), gp
23344 adds r22 = @tprel(foo#), r13
23345 movl r24 = @tprel(foo#)'
23346 tls_first_major=2
23347 tls_first_minor=13
23348 tls_as_opt=--fatal-warnings
23349 ;;
23350 mips*-*-*)
23351 conftest_s='
23352 .section .tdata,"awT",@progbits
23353 x:
23354 .word 2
23355 .text
23356 addiu $4, $28, %tlsgd(x)
23357 addiu $4, $28, %tlsldm(x)
23358 lui $4, %dtprel_hi(x)
23359 addiu $4, $4, %dtprel_lo(x)
23360 lw $4, %gottprel(x)($28)
23361 lui $4, %tprel_hi(x)
23362 addiu $4, $4, %tprel_lo(x)'
23363 tls_first_major=2
23364 tls_first_minor=16
23365 tls_as_opt='-32 --fatal-warnings'
23366 ;;
23367 m68k-*-*)
23368 conftest_s='
23369 .section .tdata,"awT",@progbits
23370 x:
23371 .word 2
23372 .text
23373 foo:
23374 move.l x@TLSGD(%a5),%a0
23375 move.l x@TLSLDM(%a5),%a0
23376 move.l x@TLSLDO(%a5),%a0
23377 move.l x@TLSIE(%a5),%a0
23378 move.l x@TLSLE(%a5),%a0'
23379 tls_first_major=2
23380 tls_first_minor=19
23381 tls_as_opt='--fatal-warnings'
23382 ;;
23383 powerpc-*-*)
23384 conftest_s='
23385 .section ".tdata","awT",@progbits
23386 .align 2
23387 ld0: .space 4
23388 ld1: .space 4
23389 x1: .space 4
23390 x2: .space 4
23391 x3: .space 4
23392 .text
23393 addi 3,31,ld0@got@tlsgd
23394 bl __tls_get_addr
23395 addi 3,31,x1@got@tlsld
23396 bl __tls_get_addr
23397 addi 9,3,x1@dtprel
23398 addis 9,3,x2@dtprel@ha
23399 addi 9,9,x2@dtprel@l
23400 lwz 9,x3@got@tprel(31)
23401 add 9,9,x@tls
23402 addi 9,2,x1@tprel
23403 addis 9,2,x2@tprel@ha
23404 addi 9,9,x2@tprel@l'
23405 tls_first_major=2
23406 tls_first_minor=14
23407 tls_as_opt="-a32 --fatal-warnings"
23408 ;;
23409 powerpc64-*-*)
23410 conftest_s='
23411 .section ".tdata","awT",@progbits
23412 .align 3
23413 ld0: .space 8
23414 ld1: .space 8
23415 x1: .space 8
23416 x2: .space 8
23417 x3: .space 8
23418 .text
23419 addi 3,2,ld0@got@tlsgd
23420 bl .__tls_get_addr
23421 nop
23422 addi 3,2,ld1@toc
23423 bl .__tls_get_addr
23424 nop
23425 addi 3,2,x1@got@tlsld
23426 bl .__tls_get_addr
23427 nop
23428 addi 9,3,x1@dtprel
23429 bl .__tls_get_addr
23430 nop
23431 addis 9,3,x2@dtprel@ha
23432 addi 9,9,x2@dtprel@l
23433 bl .__tls_get_addr
23434 nop
23435 ld 9,x3@got@dtprel(2)
23436 add 9,9,3
23437 bl .__tls_get_addr
23438 nop'
23439 tls_first_major=2
23440 tls_first_minor=14
23441 tls_as_opt="-a64 --fatal-warnings"
23442 ;;
23443 s390-*-*)
23444 conftest_s='
23445 .section ".tdata","awT",@progbits
23446 foo: .long 25
23447 .text
23448 .long foo@TLSGD
23449 .long foo@TLSLDM
23450 .long foo@DTPOFF
23451 .long foo@NTPOFF
23452 .long foo@GOTNTPOFF
23453 .long foo@INDNTPOFF
23454 l %r1,foo@GOTNTPOFF(%r12)
23455 l %r1,0(%r1):tls_load:foo
23456 bas %r14,0(%r1,%r13):tls_gdcall:foo
23457 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23458 tls_first_major=2
23459 tls_first_minor=14
23460 tls_as_opt="-m31 --fatal-warnings"
23461 ;;
23462 s390x-*-*)
23463 conftest_s='
23464 .section ".tdata","awT",@progbits
23465 foo: .long 25
23466 .text
23467 .quad foo@TLSGD
23468 .quad foo@TLSLDM
23469 .quad foo@DTPOFF
23470 .quad foo@NTPOFF
23471 .quad foo@GOTNTPOFF
23472 lg %r1,foo@GOTNTPOFF(%r12)
23473 larl %r1,foo@INDNTPOFF
23474 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23475 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23476 tls_first_major=2
23477 tls_first_minor=14
23478 tls_as_opt="-m64 -Aesame --fatal-warnings"
23479 ;;
23480 sh-*-* | sh[34]-*-*)
23481 conftest_s='
23482 .section ".tdata","awT",@progbits
23483 foo: .long 25
23484 .text
23485 .long foo@TLSGD
23486 .long foo@TLSLDM
23487 .long foo@DTPOFF
23488 .long foo@GOTTPOFF
23489 .long foo@TPOFF'
23490 tls_first_major=2
23491 tls_first_minor=13
23492 tls_as_opt=--fatal-warnings
23493 ;;
23494 sparc*-*-*)
23495 case "$target" in
23496 sparc*-sun-solaris2.*)
23497 on_solaris=yes
23498 tga_func=__tls_get_addr
23499 ;;
23500 *)
23501 on_solaris=no
23502 ;;
23503 esac
23504 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23505 conftest_s='
23506 .section ".tdata",#alloc,#write,#tls'
23507 tls_first_major=0
23508 tls_first_minor=0
23509 else
23510 conftest_s='
23511 .section ".tdata","awT",@progbits'
23512 tls_first_major=2
23513 tls_first_minor=14
23514 tls_as_opt="-32 --fatal-warnings"
23515 fi
23516 conftest_s="$conftest_s
23517 foo: .long 25
23518 .text
23519 sethi %tgd_hi22(foo), %o0
23520 add %o0, %tgd_lo10(foo), %o1
23521 add %l7, %o1, %o0, %tgd_add(foo)
23522 call __tls_get_addr, %tgd_call(foo)
23523 sethi %tldm_hi22(foo), %l1
23524 add %l1, %tldm_lo10(foo), %l2
23525 add %l7, %l2, %o0, %tldm_add(foo)
23526 call __tls_get_addr, %tldm_call(foo)
23527 sethi %tldo_hix22(foo), %l3
23528 xor %l3, %tldo_lox10(foo), %l4
23529 add %o0, %l4, %l5, %tldo_add(foo)
23530 sethi %tie_hi22(foo), %o3
23531 add %o3, %tie_lo10(foo), %o3
23532 ld [%l7 + %o3], %o2, %tie_ld(foo)
23533 add %g7, %o2, %o4, %tie_add(foo)
23534 sethi %tle_hix22(foo), %l1
23535 xor %l1, %tle_lox10(foo), %o5
23536 ld [%g7 + %o5], %o1"
23537 ;;
23538 tilepro*-*-*)
23539 conftest_s='
23540 .section ".tdata","awT",@progbits
23541 foo: .long 25
23542 .text
23543 addli r0, zero, tls_gd(foo)
23544 auli r0, zero, tls_gd_ha16(foo)
23545 addli r0, r0, tls_gd_lo16(foo)
23546 jal __tls_get_addr
23547 addli r0, zero, tls_ie(foo)
23548 auli r0, r0, tls_ie_ha16(foo)
23549 addli r0, r0, tls_ie_lo16(foo)'
23550 tls_first_major=2
23551 tls_first_minor=22
23552 tls_as_opt="--fatal-warnings"
23553 ;;
23554 tilegx*-*-*)
23555 conftest_s='
23556 .section ".tdata","awT",@progbits
23557 foo: .long 25
23558 .text
23559 shl16insli r0, zero, hw0_last_tls_gd(foo)
23560 shl16insli r0, zero, hw1_last_tls_gd(foo)
23561 shl16insli r0, r0, hw0_tls_gd(foo)
23562 jal __tls_get_addr
23563 shl16insli r0, zero, hw1_last_tls_ie(foo)
23564 shl16insli r0, r0, hw0_tls_ie(foo)'
23565 tls_first_major=2
23566 tls_first_minor=22
23567 tls_as_opt="--fatal-warnings"
23568 ;;
23569 xtensa*-*-*)
23570 conftest_s='
23571 .section ".tdata","awT",@progbits
23572 foo: .long 25
23573 .text
23574 movi a8, foo@TLSFUNC
23575 movi a10, foo@TLSARG
23576 callx8.tls a8, foo@TLSCALL'
23577 tls_first_major=2
23578 tls_first_minor=19
23579 ;;
23580 esac
23581 set_have_as_tls=no
23582 if test "x$enable_tls" = xno ; then
23583 : # TLS explicitly disabled.
23584 elif test "x$enable_tls" = xyes ; then
23585 set_have_as_tls=yes # TLS explicitly enabled.
23586 elif test -z "$tls_first_major"; then
23587 : # If we don't have a check, assume no support.
23588 else
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23590 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23591 if test "${gcc_cv_as_tls+set}" = set; then :
23592 $as_echo_n "(cached) " >&6
23593 else
23594 gcc_cv_as_tls=no
23595 if test $in_tree_gas = yes; then
23596 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23597 then gcc_cv_as_tls=yes
23598 fi
23599 elif test x$gcc_cv_as != x; then
23600 $as_echo "$conftest_s" > conftest.s
23601 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23603 (eval $ac_try) 2>&5
23604 ac_status=$?
23605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23606 test $ac_status = 0; }; }
23607 then
23608 gcc_cv_as_tls=yes
23609 else
23610 echo "configure: failed program was" >&5
23611 cat conftest.s >&5
23612 fi
23613 rm -f conftest.o conftest.s
23614 fi
23615 fi
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23617 $as_echo "$gcc_cv_as_tls" >&6; }
23618 if test $gcc_cv_as_tls = yes; then
23619 set_have_as_tls=yes
23620 fi
23621 fi
23622 case "$target" in
23623 *-*-irix6*)
23624 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23625 # with TLS support are in use, native TLS cannot work.
23626 set_have_as_tls=no
23627 ;;
23628 # TLS was introduced in the Solaris 9 FCS release and backported to
23629 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23630 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23631 # ld and GCC don't support any longer.
23632 *-*-solaris2.*)
23633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23634 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23635 ld_tls_support=no
23636 # Check ld and ld.so.1 TLS support.
23637 if echo "$ld_ver" | grep GNU > /dev/null; then
23638 # Assume all interesting versions of GNU ld have TLS support.
23639 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23640 ld_tls_support=yes
23641 else
23642 case "$target" in
23643 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23644 i?86-*-solaris2.8)
23645 min_tls_ld_vers_minor=280
23646 ;;
23647 # Solaris 8/SPARC ld has TLS support since version 1.272.
23648 sparc*-*-solaris2.8)
23649 min_tls_ld_vers_minor=272
23650 ;;
23651 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23652 i?86-*-solaris2.9)
23653 min_tls_ld_vers_minor=374
23654 ;;
23655 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23656 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23657 min_tls_ld_vers_minor=343
23658 ;;
23659 esac
23660 if test "$ld_vers_major" -gt 1 || \
23661 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23662 ld_tls_support=yes
23663 else
23664 set_have_as_tls=no
23665 fi
23666 fi
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23668 $as_echo "$ld_tls_support" >&6; }
23669
23670 save_LIBS="$LIBS"
23671 save_LDFLAGS="$LDFLAGS"
23672 LIBS=
23673 LDFLAGS=
23674
23675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23676 $as_echo_n "checking alternate thread library... " >&6; }
23677 case "$target" in
23678 # TLS support was backported to Solaris 8 patches, but only lives in
23679 # the alternate thread library which became the default in Solaris 9.
23680 # We want to always use that, irrespective of TLS support.
23681 *-*-solaris2.8)
23682 # Take multilib subdir into account. There's no spec to handle
23683 # this. The 64 symlink exists since Solaris 8.
23684 lwp_dir=/usr/lib/lwp
23685 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23686 LDFLAGS="-L$lwp_dir -R$lwp_dir"
23687 ;;
23688 *-*-solaris2*)
23689 lwp_dir="none"
23690 lwp_spec=""
23691 ;;
23692 esac
23693 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23694
23695 cat >>confdefs.h <<_ACEOF
23696 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23697 _ACEOF
23698
23699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23700 $as_echo "$lwp_dir" >&6; }
23701
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23703 $as_echo_n "checking library containing $tga_func... " >&6; }
23704 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23705 # (32-bit x86) only lived in libthread, so check for that. Keep
23706 # set_have_as_tls if found, disable if not.
23707 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23709 $as_echo_n "checking for library containing $tga_func... " >&6; }
23710 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23711 $as_echo_n "(cached) " >&6
23712 else
23713 ac_func_search_save_LIBS=$LIBS
23714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23715 /* end confdefs.h. */
23716
23717 /* Override any GCC internal prototype to avoid an error.
23718 Use char because int might match the return type of a GCC
23719 builtin and then its argument prototype would still apply. */
23720 #ifdef __cplusplus
23721 extern "C"
23722 #endif
23723 char $tga_func ();
23724 int
23725 main ()
23726 {
23727 return $tga_func ();
23728 ;
23729 return 0;
23730 }
23731 _ACEOF
23732 for ac_lib in '' thread; do
23733 if test -z "$ac_lib"; then
23734 ac_res="none required"
23735 else
23736 ac_res=-l$ac_lib
23737 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23738 fi
23739 if ac_fn_c_try_link "$LINENO"; then :
23740 eval "$as_ac_Search=\$ac_res"
23741 fi
23742 rm -f core conftest.err conftest.$ac_objext \
23743 conftest$ac_exeext
23744 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23745 break
23746 fi
23747 done
23748 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23749
23750 else
23751 eval "$as_ac_Search=no"
23752 fi
23753 rm conftest.$ac_ext
23754 LIBS=$ac_func_search_save_LIBS
23755 fi
23756 eval ac_res=\$$as_ac_Search
23757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23758 $as_echo "$ac_res" >&6; }
23759 eval ac_res=\$$as_ac_Search
23760 if test "$ac_res" != no; then :
23761 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23762
23763 else
23764 set_have_as_tls=no
23765 fi
23766
23767 # Clear LIBS if we cannot support TLS.
23768 if test $set_have_as_tls = no; then
23769 LIBS=
23770 fi
23771 # Even without TLS support on Solaris 8, explicitly link with libthread
23772 # to guarantee that the alternate thread library is used.
23773 case "$target" in
23774 *-*-solaris2.8)
23775 LIBS=-lthread
23776 ;;
23777 esac
23778 # Always define LIB_TLS_SPEC, even without TLS support.
23779
23780 cat >>confdefs.h <<_ACEOF
23781 #define LIB_TLS_SPEC "$LIBS"
23782 _ACEOF
23783
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23785 $as_echo "$LIBS" >&6; }
23786
23787 LIBS="$save_LIBS"
23788 LDFLAGS="$save_LDFLAGS"
23789 ;;
23790 esac
23791 if test $set_have_as_tls = yes ; then
23792
23793 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23794
23795 fi
23796
23797 # Target-specific assembler checks.
23798
23799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23800 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23801 gcc_cv_ld_static_dynamic=no
23802 gcc_cv_ld_static_option='-Bstatic'
23803 gcc_cv_ld_dynamic_option='-Bdynamic'
23804 if test $in_tree_ld = yes ; then
23805 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
23806 gcc_cv_ld_static_dynamic=yes
23807 fi
23808 elif test x$gcc_cv_ld != x; then
23809 # Check if linker supports -Bstatic/-Bdynamic option
23810 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23811 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23812 gcc_cv_ld_static_dynamic=yes
23813 else
23814 case "$target" in
23815 # HP-UX ld uses -a flags to select between shared and archive.
23816 *-*-hpux*)
23817 if test x"$gnu_ld" = xno; then
23818 gcc_cv_ld_static_dynamic=yes
23819 gcc_cv_ld_static_option="-aarchive_shared"
23820 gcc_cv_ld_dynamic_option="-adefault"
23821 fi
23822 ;;
23823 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23824 mips-sgi-irix6*)
23825 gcc_cv_ld_static_dynamic=yes
23826 ;;
23827 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23828 *-*-solaris2*)
23829 gcc_cv_ld_static_dynamic=yes
23830 ;;
23831 esac
23832 fi
23833 fi
23834 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23835
23836 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23837
23838
23839 cat >>confdefs.h <<_ACEOF
23840 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23841 _ACEOF
23842
23843
23844 cat >>confdefs.h <<_ACEOF
23845 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23846 _ACEOF
23847
23848 fi
23849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23850 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23851
23852 if test x"$demangler_in_ld" = xyes; then
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23854 $as_echo_n "checking linker --demangle support... " >&6; }
23855 gcc_cv_ld_demangle=no
23856 if test $in_tree_ld = yes; then
23857 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 \
23858 gcc_cv_ld_demangle=yes
23859 fi
23860 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23861 # Check if the GNU linker supports --demangle option
23862 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23863 gcc_cv_ld_demangle=yes
23864 fi
23865 fi
23866 if test x"$gcc_cv_ld_demangle" = xyes; then
23867
23868 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23869
23870 fi
23871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23872 $as_echo "$gcc_cv_ld_demangle" >&6; }
23873 fi
23874
23875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23876 $as_echo_n "checking linker plugin support... " >&6; }
23877 gcc_cv_lto_plugin=0
23878 if test -f liblto_plugin.la; then
23879 save_ld_ver="$ld_ver"
23880 save_ld_vers_major="$ld_vers_major"
23881 save_ld_vers_minor="$ld_vers_minor"
23882 save_ld_is_gold="$ld_is_gold"
23883
23884 ld_is_gold=no
23885
23886 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23887 ld_ver="GNU ld"
23888 # FIXME: ld_is_gold?
23889 ld_vers_major="$gcc_cv_gld_major_version"
23890 ld_vers_minor="$gcc_cv_gld_minor_version"
23891 else
23892 # Determine plugin linker version.
23893 # FIXME: Partial duplicate from above, generalize.
23894 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23895 if echo "$ld_ver" | grep GNU > /dev/null; then
23896 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23897 ld_is_gold=yes
23898 ld_vers=`echo $ld_ver | sed -n \
23899 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23900 else
23901 ld_vers=`echo $ld_ver | sed -n \
23902 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23903 fi
23904 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23905 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23906 fi
23907 fi
23908
23909 # Determine plugin support.
23910 if echo "$ld_ver" | grep GNU > /dev/null; then
23911 # Require GNU ld or gold 2.21+ for plugin support by default.
23912 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23913 gcc_cv_lto_plugin=2
23914 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23915 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23916 gcc_cv_lto_plugin=1
23917 fi
23918 fi
23919
23920 ld_ver="$save_ld_ver"
23921 ld_vers_major="$save_ld_vers_major"
23922 ld_vers_minor="$save_ld_vers_minor"
23923 ld_is_gold="$save_ld_is_gold"
23924 fi
23925
23926 cat >>confdefs.h <<_ACEOF
23927 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23928 _ACEOF
23929
23930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23931 $as_echo "$gcc_cv_lto_plugin" >&6; }
23932
23933 case "$target" in
23934 # All TARGET_ABI_OSF targets.
23935 alpha*-*-linux* | alpha*-*-*bsd*)
23936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23937 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23938 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23939 $as_echo_n "(cached) " >&6
23940 else
23941 gcc_cv_as_alpha_explicit_relocs=no
23942 if test $in_tree_gas = yes; then
23943 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23944 then gcc_cv_as_alpha_explicit_relocs=yes
23945 fi
23946 elif test x$gcc_cv_as != x; then
23947 $as_echo ' .set nomacro
23948 .text
23949 extbl $3, $2, $3 !lituse_bytoff!1
23950 ldq $2, a($29) !literal!1
23951 ldq $4, b($29) !literal!2
23952 ldq_u $3, 0($2) !lituse_base!1
23953 ldq $27, f($29) !literal!5
23954 jsr $26, ($27), f !lituse_jsr!5
23955 ldah $29, 0($26) !gpdisp!3
23956 lda $0, c($29) !gprel
23957 ldah $1, d($29) !gprelhigh
23958 lda $1, d($1) !gprellow
23959 lda $29, 0($29) !gpdisp!3' > conftest.s
23960 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23962 (eval $ac_try) 2>&5
23963 ac_status=$?
23964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23965 test $ac_status = 0; }; }
23966 then
23967 gcc_cv_as_alpha_explicit_relocs=yes
23968 else
23969 echo "configure: failed program was" >&5
23970 cat conftest.s >&5
23971 fi
23972 rm -f conftest.o conftest.s
23973 fi
23974 fi
23975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23976 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23977 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23978
23979 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23980
23981 fi
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23983 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23984 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23985 $as_echo_n "(cached) " >&6
23986 else
23987 gcc_cv_as_alpha_jsrdirect_relocs=no
23988 if test $in_tree_gas = yes; then
23989 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23990 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23991 fi
23992 elif test x$gcc_cv_as != x; then
23993 $as_echo ' .set nomacro
23994 .text
23995 ldq $27, a($29) !literal!1
23996 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23997 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23999 (eval $ac_try) 2>&5
24000 ac_status=$?
24001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24002 test $ac_status = 0; }; }
24003 then
24004 gcc_cv_as_alpha_jsrdirect_relocs=yes
24005 else
24006 echo "configure: failed program was" >&5
24007 cat conftest.s >&5
24008 fi
24009 rm -f conftest.o conftest.s
24010 fi
24011 fi
24012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24013 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24014 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24015
24016 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24017
24018 fi
24019 ;;
24020
24021 cris-*-*)
24022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24023 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24024 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24025 $as_echo_n "(cached) " >&6
24026 else
24027 gcc_cv_as_cris_no_mul_bug=no
24028 if test $in_tree_gas = yes; then
24029 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24030 then gcc_cv_as_cris_no_mul_bug=yes
24031 fi
24032 elif test x$gcc_cv_as != x; then
24033 $as_echo '.text' > conftest.s
24034 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24036 (eval $ac_try) 2>&5
24037 ac_status=$?
24038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24039 test $ac_status = 0; }; }
24040 then
24041 gcc_cv_as_cris_no_mul_bug=yes
24042 else
24043 echo "configure: failed program was" >&5
24044 cat conftest.s >&5
24045 fi
24046 rm -f conftest.o conftest.s
24047 fi
24048 fi
24049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24050 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24051 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24052
24053 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24054
24055 fi
24056 ;;
24057
24058 sparc*-*-*)
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24060 $as_echo_n "checking assembler for .register... " >&6; }
24061 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24062 $as_echo_n "(cached) " >&6
24063 else
24064 gcc_cv_as_sparc_register_op=no
24065 if test x$gcc_cv_as != x; then
24066 $as_echo '.register %g2, #scratch' > conftest.s
24067 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24069 (eval $ac_try) 2>&5
24070 ac_status=$?
24071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24072 test $ac_status = 0; }; }
24073 then
24074 gcc_cv_as_sparc_register_op=yes
24075 else
24076 echo "configure: failed program was" >&5
24077 cat conftest.s >&5
24078 fi
24079 rm -f conftest.o conftest.s
24080 fi
24081 fi
24082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24083 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24084 if test $gcc_cv_as_sparc_register_op = yes; then
24085
24086 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24087
24088 fi
24089
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24091 $as_echo_n "checking assembler for -relax option... " >&6; }
24092 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24093 $as_echo_n "(cached) " >&6
24094 else
24095 gcc_cv_as_sparc_relax=no
24096 if test x$gcc_cv_as != x; then
24097 $as_echo '.text' > conftest.s
24098 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24100 (eval $ac_try) 2>&5
24101 ac_status=$?
24102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24103 test $ac_status = 0; }; }
24104 then
24105 gcc_cv_as_sparc_relax=yes
24106 else
24107 echo "configure: failed program was" >&5
24108 cat conftest.s >&5
24109 fi
24110 rm -f conftest.o conftest.s
24111 fi
24112 fi
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24114 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24115 if test $gcc_cv_as_sparc_relax = yes; then
24116
24117 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24118
24119 fi
24120
24121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24122 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24123 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24124 $as_echo_n "(cached) " >&6
24125 else
24126 gcc_cv_as_sparc_gotdata_op=no
24127 if test x$gcc_cv_as != x; then
24128 $as_echo '.text
24129 .align 4
24130 foo:
24131 nop
24132 bar:
24133 sethi %gdop_hix22(foo), %g1
24134 xor %g1, %gdop_lox10(foo), %g1
24135 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24136 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24138 (eval $ac_try) 2>&5
24139 ac_status=$?
24140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24141 test $ac_status = 0; }; }
24142 then
24143 if test x$gcc_cv_ld != x \
24144 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24145 if test x$gcc_cv_objdump != x; then
24146 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24147 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24148 gcc_cv_as_sparc_gotdata_op=no
24149 else
24150 gcc_cv_as_sparc_gotdata_op=yes
24151 fi
24152 fi
24153 fi
24154 rm -f conftest
24155 else
24156 echo "configure: failed program was" >&5
24157 cat conftest.s >&5
24158 fi
24159 rm -f conftest.o conftest.s
24160 fi
24161 fi
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24163 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24164 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24165
24166 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24167
24168 fi
24169
24170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24171 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24172 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24173 $as_echo_n "(cached) " >&6
24174 else
24175 gcc_cv_as_sparc_ua_pcrel=no
24176 if test x$gcc_cv_as != x; then
24177 $as_echo '.text
24178 foo:
24179 nop
24180 .data
24181 .align 4
24182 .byte 0
24183 .uaword %r_disp32(foo)' > conftest.s
24184 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24186 (eval $ac_try) 2>&5
24187 ac_status=$?
24188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24189 test $ac_status = 0; }; }
24190 then
24191 if test x$gcc_cv_ld != x \
24192 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24193 gcc_cv_as_sparc_ua_pcrel=yes
24194 fi
24195 rm -f conftest
24196 else
24197 echo "configure: failed program was" >&5
24198 cat conftest.s >&5
24199 fi
24200 rm -f conftest.o conftest.s
24201 fi
24202 fi
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24204 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24205 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24206
24207 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24208
24209
24210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24211 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24212 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24213 $as_echo_n "(cached) " >&6
24214 else
24215 gcc_cv_as_sparc_ua_pcrel_hidden=no
24216 if test x$gcc_cv_as != x; then
24217 $as_echo '.data
24218 .align 4
24219 .byte 0x31
24220 .uaword %r_disp32(foo)
24221 .byte 0x32, 0x33, 0x34
24222 .global foo
24223 .hidden foo
24224 foo:
24225 .skip 4' > conftest.s
24226 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24228 (eval $ac_try) 2>&5
24229 ac_status=$?
24230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24231 test $ac_status = 0; }; }
24232 then
24233 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24234 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24235 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24236 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24237 if $gcc_cv_objdump -R conftest 2> /dev/null \
24238 | grep 'DISP32' > /dev/null 2>&1; then
24239 :
24240 else
24241 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24242 fi
24243 fi
24244 rm -f conftest
24245 else
24246 echo "configure: failed program was" >&5
24247 cat conftest.s >&5
24248 fi
24249 rm -f conftest.o conftest.s
24250 fi
24251 fi
24252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24253 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24254 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24255
24256 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24257
24258 fi
24259
24260 fi # unaligned pcrel relocs
24261
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24263 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24264 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24265 $as_echo_n "(cached) " >&6
24266 else
24267 gcc_cv_as_sparc_offsetable_lo10=no
24268 if test x$gcc_cv_as != x; then
24269 $as_echo '.text
24270 or %g1, %lo(ab) + 12, %g1
24271 or %g1, %lo(ab + 12), %g1' > conftest.s
24272 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24274 (eval $ac_try) 2>&5
24275 ac_status=$?
24276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24277 test $ac_status = 0; }; }
24278 then
24279 if test x$gcc_cv_objdump != x \
24280 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24281 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24282 gcc_cv_as_sparc_offsetable_lo10=yes
24283 fi
24284 else
24285 echo "configure: failed program was" >&5
24286 cat conftest.s >&5
24287 fi
24288 rm -f conftest.o conftest.s
24289 fi
24290 fi
24291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24292 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24293 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24294
24295 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24296
24297 fi
24298
24299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24300 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24301 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24302 $as_echo_n "(cached) " >&6
24303 else
24304 gcc_cv_as_sparc_fmaf=no
24305 if test x$gcc_cv_as != x; then
24306 $as_echo '.text
24307 .register %g2, #scratch
24308 .register %g3, #scratch
24309 .align 4
24310 fmaddd %f0, %f2, %f4, %f6
24311 addxccc %g1, %g2, %g3
24312 fsrl32 %f2, %f4, %f8
24313 fnaddd %f10, %f12, %f14' > conftest.s
24314 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24316 (eval $ac_try) 2>&5
24317 ac_status=$?
24318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24319 test $ac_status = 0; }; }
24320 then
24321 gcc_cv_as_sparc_fmaf=yes
24322 else
24323 echo "configure: failed program was" >&5
24324 cat conftest.s >&5
24325 fi
24326 rm -f conftest.o conftest.s
24327 fi
24328 fi
24329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24330 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24331 if test $gcc_cv_as_sparc_fmaf = yes; then
24332
24333 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24334
24335 fi
24336 ;;
24337
24338 i[34567]86-*-* | x86_64-*-*)
24339 case $target_os in
24340 cygwin*)
24341 # Full C++ conformance when using a shared libstdc++-v3 requires some
24342 # support from the Cygwin DLL, which in more recent versions exports
24343 # wrappers to aid in interposing and redirecting operators new, delete,
24344 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24345 # are configuring for a version of Cygwin that exports the wrappers.
24346 if test x$host = x$target; then
24347 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24348 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24349 gcc_ac_cygwin_dll_wrappers=yes
24350 else
24351 gcc_ac_cygwin_dll_wrappers=no
24352 fi
24353
24354 else
24355 # Can't check presence of libc functions during cross-compile, so
24356 # we just have to assume we're building for an up-to-date target.
24357 gcc_ac_cygwin_dll_wrappers=yes
24358 fi
24359
24360 cat >>confdefs.h <<_ACEOF
24361 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24362 _ACEOF
24363
24364 esac
24365 case $target_os in
24366 cygwin* | pe | mingw32* | interix*)
24367 # Recent binutils allows the three-operand form of ".comm" on PE. This
24368 # definition is used unconditionally to initialise the default state of
24369 # the target option variable that governs usage of the feature.
24370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24371 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24372 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24373 $as_echo_n "(cached) " >&6
24374 else
24375 gcc_cv_as_comm_has_align=no
24376 if test $in_tree_gas = yes; then
24377 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24378 then gcc_cv_as_comm_has_align=yes
24379 fi
24380 elif test x$gcc_cv_as != x; then
24381 $as_echo '.comm foo,1,32' > conftest.s
24382 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24384 (eval $ac_try) 2>&5
24385 ac_status=$?
24386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24387 test $ac_status = 0; }; }
24388 then
24389 gcc_cv_as_comm_has_align=yes
24390 else
24391 echo "configure: failed program was" >&5
24392 cat conftest.s >&5
24393 fi
24394 rm -f conftest.o conftest.s
24395 fi
24396 fi
24397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24398 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24399
24400
24401 cat >>confdefs.h <<_ACEOF
24402 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24403 _ACEOF
24404
24405 # Used for DWARF 2 in PE
24406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24407 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24408 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24409 $as_echo_n "(cached) " >&6
24410 else
24411 gcc_cv_as_ix86_pe_secrel32=no
24412 if test $in_tree_gas = yes; then
24413 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24414 then gcc_cv_as_ix86_pe_secrel32=yes
24415 fi
24416 elif test x$gcc_cv_as != x; then
24417 $as_echo '.text
24418 foo: nop
24419 .data
24420 .secrel32 foo' > conftest.s
24421 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24423 (eval $ac_try) 2>&5
24424 ac_status=$?
24425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24426 test $ac_status = 0; }; }
24427 then
24428 if test x$gcc_cv_ld != x \
24429 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24430 gcc_cv_as_ix86_pe_secrel32=yes
24431 fi
24432 rm -f conftest
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_ix86_pe_secrel32" >&5
24441 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24442 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24443
24444 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24445
24446 fi
24447 # Test if the assembler supports the extended form of the .section
24448 # directive that specifies section alignment. LTO support uses this,
24449 # but normally only after installation, so we warn but don't fail the
24450 # configure if LTO is enabled but the assembler does not support it.
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24452 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24453 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24454 $as_echo_n "(cached) " >&6
24455 else
24456 gcc_cv_as_section_has_align=no
24457 if test $in_tree_gas = yes; then
24458 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24459 then gcc_cv_as_section_has_align=yes
24460 fi
24461 elif test x$gcc_cv_as != x; then
24462 $as_echo '.section lto_test,"dr0"' > conftest.s
24463 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24465 (eval $ac_try) 2>&5
24466 ac_status=$?
24467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24468 test $ac_status = 0; }; }
24469 then
24470 gcc_cv_as_section_has_align=yes
24471 else
24472 echo "configure: failed program was" >&5
24473 cat conftest.s >&5
24474 fi
24475 rm -f conftest.o conftest.s
24476 fi
24477 fi
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24479 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24480
24481 if test x$gcc_cv_as_section_has_align != xyes; then
24482 case ",$enable_languages," in
24483 *,lto,*)
24484 { $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
24485 $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;}
24486 ;;
24487 esac
24488 fi
24489 # Test if the assembler supports the section flag 'e' for specifying
24490 # an excluded section.
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24492 $as_echo_n "checking assembler for .section with e... " >&6; }
24493 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24494 $as_echo_n "(cached) " >&6
24495 else
24496 gcc_cv_as_section_has_e=no
24497 if test $in_tree_gas = yes; then
24498 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24499 then gcc_cv_as_section_has_e=yes
24500 fi
24501 elif test x$gcc_cv_as != x; then
24502 $as_echo '.section foo1,"e"
24503 .byte 0,0,0,0' > conftest.s
24504 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24506 (eval $ac_try) 2>&5
24507 ac_status=$?
24508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24509 test $ac_status = 0; }; }
24510 then
24511 gcc_cv_as_section_has_e=yes
24512 else
24513 echo "configure: failed program was" >&5
24514 cat conftest.s >&5
24515 fi
24516 rm -f conftest.o conftest.s
24517 fi
24518 fi
24519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24520 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24521
24522
24523 cat >>confdefs.h <<_ACEOF
24524 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24525 _ACEOF
24526
24527 ;;
24528 esac
24529
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24531 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24532 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24533 $as_echo_n "(cached) " >&6
24534 else
24535 gcc_cv_as_ix86_filds=no
24536 if test x$gcc_cv_as != x; then
24537 $as_echo 'filds mem; fists mem' > conftest.s
24538 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24540 (eval $ac_try) 2>&5
24541 ac_status=$?
24542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24543 test $ac_status = 0; }; }
24544 then
24545 gcc_cv_as_ix86_filds=yes
24546 else
24547 echo "configure: failed program was" >&5
24548 cat conftest.s >&5
24549 fi
24550 rm -f conftest.o conftest.s
24551 fi
24552 fi
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24554 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24555 if test $gcc_cv_as_ix86_filds = yes; then
24556
24557 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24558
24559 fi
24560
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24562 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24563 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24564 $as_echo_n "(cached) " >&6
24565 else
24566 gcc_cv_as_ix86_fildq=no
24567 if test x$gcc_cv_as != x; then
24568 $as_echo 'fildq mem; fistpq mem' > conftest.s
24569 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24571 (eval $ac_try) 2>&5
24572 ac_status=$?
24573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24574 test $ac_status = 0; }; }
24575 then
24576 gcc_cv_as_ix86_fildq=yes
24577 else
24578 echo "configure: failed program was" >&5
24579 cat conftest.s >&5
24580 fi
24581 rm -f conftest.o conftest.s
24582 fi
24583 fi
24584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24585 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24586 if test $gcc_cv_as_ix86_fildq = yes; then
24587
24588 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24589
24590 fi
24591
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24593 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24594 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24595 $as_echo_n "(cached) " >&6
24596 else
24597 gcc_cv_as_ix86_cmov_sun_syntax=no
24598 if test x$gcc_cv_as != x; then
24599 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24600 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24602 (eval $ac_try) 2>&5
24603 ac_status=$?
24604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24605 test $ac_status = 0; }; }
24606 then
24607 gcc_cv_as_ix86_cmov_sun_syntax=yes
24608 else
24609 echo "configure: failed program was" >&5
24610 cat conftest.s >&5
24611 fi
24612 rm -f conftest.o conftest.s
24613 fi
24614 fi
24615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24616 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24617 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24618
24619 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24620
24621 fi
24622
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24624 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24625 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24626 $as_echo_n "(cached) " >&6
24627 else
24628 gcc_cv_as_ix86_ffreep=no
24629 if test x$gcc_cv_as != x; then
24630 $as_echo 'ffreep %st(1)' > conftest.s
24631 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24633 (eval $ac_try) 2>&5
24634 ac_status=$?
24635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24636 test $ac_status = 0; }; }
24637 then
24638 gcc_cv_as_ix86_ffreep=yes
24639 else
24640 echo "configure: failed program was" >&5
24641 cat conftest.s >&5
24642 fi
24643 rm -f conftest.o conftest.s
24644 fi
24645 fi
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24647 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24648 if test $gcc_cv_as_ix86_ffreep = yes; then
24649
24650 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24651
24652 fi
24653
24654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24655 $as_echo_n "checking assembler for .quad directive... " >&6; }
24656 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24657 $as_echo_n "(cached) " >&6
24658 else
24659 gcc_cv_as_ix86_quad=no
24660 if test x$gcc_cv_as != x; then
24661 $as_echo '.quad 0' > conftest.s
24662 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24664 (eval $ac_try) 2>&5
24665 ac_status=$?
24666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24667 test $ac_status = 0; }; }
24668 then
24669 gcc_cv_as_ix86_quad=yes
24670 else
24671 echo "configure: failed program was" >&5
24672 cat conftest.s >&5
24673 fi
24674 rm -f conftest.o conftest.s
24675 fi
24676 fi
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24678 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24679 if test $gcc_cv_as_ix86_quad = yes; then
24680
24681 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24682
24683 fi
24684
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24686 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24687 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24688 $as_echo_n "(cached) " >&6
24689 else
24690 gcc_cv_as_ix86_sahf=no
24691 if test x$gcc_cv_as != x; then
24692 $as_echo '.code64
24693 sahf' > conftest.s
24694 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24696 (eval $ac_try) 2>&5
24697 ac_status=$?
24698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24699 test $ac_status = 0; }; }
24700 then
24701 gcc_cv_as_ix86_sahf=yes
24702 else
24703 echo "configure: failed program was" >&5
24704 cat conftest.s >&5
24705 fi
24706 rm -f conftest.o conftest.s
24707 fi
24708 fi
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24710 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24711 if test $gcc_cv_as_ix86_sahf = yes; then
24712
24713 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24714
24715 fi
24716
24717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24718 $as_echo_n "checking assembler for swap suffix... " >&6; }
24719 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24720 $as_echo_n "(cached) " >&6
24721 else
24722 gcc_cv_as_ix86_swap=no
24723 if test x$gcc_cv_as != x; then
24724 $as_echo 'movl.s %esp, %ebp' > conftest.s
24725 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24727 (eval $ac_try) 2>&5
24728 ac_status=$?
24729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24730 test $ac_status = 0; }; }
24731 then
24732 gcc_cv_as_ix86_swap=yes
24733 else
24734 echo "configure: failed program was" >&5
24735 cat conftest.s >&5
24736 fi
24737 rm -f conftest.o conftest.s
24738 fi
24739 fi
24740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24741 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24742 if test $gcc_cv_as_ix86_swap = yes; then
24743
24744 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24745
24746 fi
24747
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24749 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24750 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24751 $as_echo_n "(cached) " >&6
24752 else
24753 gcc_cv_as_ix86_diff_sect_delta=no
24754 if test x$gcc_cv_as != x; then
24755 $as_echo '.section .rodata
24756 .L1:
24757 .long .L2-.L1
24758 .long .L3-.L1
24759 .text
24760 .L3: nop
24761 .L2: nop' > conftest.s
24762 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24764 (eval $ac_try) 2>&5
24765 ac_status=$?
24766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24767 test $ac_status = 0; }; }
24768 then
24769 gcc_cv_as_ix86_diff_sect_delta=yes
24770 else
24771 echo "configure: failed program was" >&5
24772 cat conftest.s >&5
24773 fi
24774 rm -f conftest.o conftest.s
24775 fi
24776 fi
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24778 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24779 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24780
24781 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24782
24783 fi
24784
24785 # These two are used unconditionally by i386.[ch]; it is to be defined
24786 # to 1 if the feature is present, 0 otherwise.
24787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24788 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24789 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24790 $as_echo_n "(cached) " >&6
24791 else
24792 gcc_cv_as_ix86_gotoff_in_data=no
24793 if test $in_tree_gas = yes; then
24794 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24795 then gcc_cv_as_ix86_gotoff_in_data=yes
24796 fi
24797 elif test x$gcc_cv_as != x; then
24798 $as_echo ' .text
24799 .L0:
24800 nop
24801 .data
24802 .long .L0@GOTOFF' > conftest.s
24803 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24805 (eval $ac_try) 2>&5
24806 ac_status=$?
24807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24808 test $ac_status = 0; }; }
24809 then
24810 gcc_cv_as_ix86_gotoff_in_data=yes
24811 else
24812 echo "configure: failed program was" >&5
24813 cat conftest.s >&5
24814 fi
24815 rm -f conftest.o conftest.s
24816 fi
24817 fi
24818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24819 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24820
24821
24822 cat >>confdefs.h <<_ACEOF
24823 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24824 _ACEOF
24825
24826
24827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24828 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24829 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24830 $as_echo_n "(cached) " >&6
24831 else
24832 gcc_cv_as_ix86_rep_lock_prefix=no
24833 if test x$gcc_cv_as != x; then
24834 $as_echo 'rep movsl
24835 lock addl %edi, (%eax,%esi)
24836 lock orl $0, (%esp)' > conftest.s
24837 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24839 (eval $ac_try) 2>&5
24840 ac_status=$?
24841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24842 test $ac_status = 0; }; }
24843 then
24844 gcc_cv_as_ix86_rep_lock_prefix=yes
24845 else
24846 echo "configure: failed program was" >&5
24847 cat conftest.s >&5
24848 fi
24849 rm -f conftest.o conftest.s
24850 fi
24851 fi
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24853 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24854 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24855
24856 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24857
24858 fi
24859
24860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24861 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24862 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24863 $as_echo_n "(cached) " >&6
24864 else
24865 gcc_cv_as_ix86_tlsgdplt=no
24866 if test x$gcc_cv_as != x; then
24867 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24868 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24870 (eval $ac_try) 2>&5
24871 ac_status=$?
24872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24873 test $ac_status = 0; }; }
24874 then
24875 if test x$gcc_cv_ld != x \
24876 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24877 gcc_cv_as_ix86_tlsgdplt=yes
24878 fi
24879 rm -f conftest
24880 else
24881 echo "configure: failed program was" >&5
24882 cat conftest.s >&5
24883 fi
24884 rm -f conftest.o conftest.s
24885 fi
24886 fi
24887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24888 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24889 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24890
24891 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24892
24893 fi
24894
24895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24896 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24897 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24898 $as_echo_n "(cached) " >&6
24899 else
24900 gcc_cv_as_ix86_tlsldmplt=no
24901 if test x$gcc_cv_as != x; then
24902 $as_echo 'tls_ld:
24903 call tls_ld@tlsldmplt' > conftest.s
24904 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24906 (eval $ac_try) 2>&5
24907 ac_status=$?
24908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24909 test $ac_status = 0; }; }
24910 then
24911 if test x$gcc_cv_ld != x \
24912 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24913 gcc_cv_as_ix86_tlsldmplt=yes
24914 fi
24915 rm -f conftest
24916 else
24917 echo "configure: failed program was" >&5
24918 cat conftest.s >&5
24919 fi
24920 rm -f conftest.o conftest.s
24921 fi
24922 fi
24923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24924 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24925 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24926
24927 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24928
24929 fi
24930
24931 ;;
24932
24933 ia64*-*-*)
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24935 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24936 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24937 $as_echo_n "(cached) " >&6
24938 else
24939 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24940 if test $in_tree_gas = yes; then
24941 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24942 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24943 fi
24944 elif test x$gcc_cv_as != x; then
24945 $as_echo ' .text
24946 addl r15 = @ltoffx(x#), gp
24947 ;;
24948 ld8.mov r16 = [r15], x#' > conftest.s
24949 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24951 (eval $ac_try) 2>&5
24952 ac_status=$?
24953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24954 test $ac_status = 0; }; }
24955 then
24956 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24957 else
24958 echo "configure: failed program was" >&5
24959 cat conftest.s >&5
24960 fi
24961 rm -f conftest.o conftest.s
24962 fi
24963 fi
24964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24965 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24966 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24967
24968 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24969
24970 fi
24971
24972 ;;
24973
24974 powerpc*-*-*)
24975 case $target in
24976 *-*-aix*) conftest_s=' .machine "pwr5"
24977 .csect .text[PR]
24978 mfcr 3,128';;
24979 *-*-darwin*)
24980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24981 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24982 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24983 $as_echo_n "(cached) " >&6
24984 else
24985 gcc_cv_as_machine_directive=no
24986 if test x$gcc_cv_as != x; then
24987 $as_echo ' .machine ppc7400' > conftest.s
24988 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24990 (eval $ac_try) 2>&5
24991 ac_status=$?
24992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24993 test $ac_status = 0; }; }
24994 then
24995 gcc_cv_as_machine_directive=yes
24996 else
24997 echo "configure: failed program was" >&5
24998 cat conftest.s >&5
24999 fi
25000 rm -f conftest.o conftest.s
25001 fi
25002 fi
25003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25004 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25005
25006 if test x$gcc_cv_as_machine_directive != xyes; then
25007 echo "*** This target requires an assembler supporting \".machine\"" >&2
25008 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25009 test x$build = x$target && exit 1
25010 fi
25011 conftest_s=' .text
25012 mfcr r3,128';;
25013 *) conftest_s=' .machine power4
25014 .text
25015 mfcr 3,128';;
25016 esac
25017
25018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25019 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25020 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25021 $as_echo_n "(cached) " >&6
25022 else
25023 gcc_cv_as_powerpc_mfcrf=no
25024 if test $in_tree_gas = yes; then
25025 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25026 then gcc_cv_as_powerpc_mfcrf=yes
25027 fi
25028 elif test x$gcc_cv_as != x; then
25029 $as_echo "$conftest_s" > conftest.s
25030 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25032 (eval $ac_try) 2>&5
25033 ac_status=$?
25034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25035 test $ac_status = 0; }; }
25036 then
25037 gcc_cv_as_powerpc_mfcrf=yes
25038 else
25039 echo "configure: failed program was" >&5
25040 cat conftest.s >&5
25041 fi
25042 rm -f conftest.o conftest.s
25043 fi
25044 fi
25045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25046 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25047 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25048
25049 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25050
25051 fi
25052
25053 case $target in
25054 *-*-aix*) conftest_s=' .machine "pwr5"
25055 .csect .text[PR]
25056 popcntb 3,3';;
25057 *) conftest_s=' .machine power5
25058 .text
25059 popcntb 3,3';;
25060 esac
25061
25062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25063 $as_echo_n "checking assembler for popcntb support... " >&6; }
25064 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25065 $as_echo_n "(cached) " >&6
25066 else
25067 gcc_cv_as_powerpc_popcntb=no
25068 if test $in_tree_gas = yes; then
25069 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25070 then gcc_cv_as_powerpc_popcntb=yes
25071 fi
25072 elif test x$gcc_cv_as != x; then
25073 $as_echo "$conftest_s" > conftest.s
25074 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25076 (eval $ac_try) 2>&5
25077 ac_status=$?
25078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25079 test $ac_status = 0; }; }
25080 then
25081 gcc_cv_as_powerpc_popcntb=yes
25082 else
25083 echo "configure: failed program was" >&5
25084 cat conftest.s >&5
25085 fi
25086 rm -f conftest.o conftest.s
25087 fi
25088 fi
25089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25090 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25091 if test $gcc_cv_as_powerpc_popcntb = yes; then
25092
25093 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25094
25095 fi
25096
25097 case $target in
25098 *-*-aix*) conftest_s=' .machine "pwr5x"
25099 .csect .text[PR]
25100 frin 1,1';;
25101 *) conftest_s=' .machine power5
25102 .text
25103 frin 1,1';;
25104 esac
25105
25106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25107 $as_echo_n "checking assembler for fp round support... " >&6; }
25108 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25109 $as_echo_n "(cached) " >&6
25110 else
25111 gcc_cv_as_powerpc_fprnd=no
25112 if test $in_tree_gas = yes; then
25113 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25114 then gcc_cv_as_powerpc_fprnd=yes
25115 fi
25116 elif test x$gcc_cv_as != x; then
25117 $as_echo "$conftest_s" > conftest.s
25118 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25120 (eval $ac_try) 2>&5
25121 ac_status=$?
25122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25123 test $ac_status = 0; }; }
25124 then
25125 gcc_cv_as_powerpc_fprnd=yes
25126 else
25127 echo "configure: failed program was" >&5
25128 cat conftest.s >&5
25129 fi
25130 rm -f conftest.o conftest.s
25131 fi
25132 fi
25133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25134 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25135 if test $gcc_cv_as_powerpc_fprnd = yes; then
25136
25137 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25138
25139 fi
25140
25141 case $target in
25142 *-*-aix*) conftest_s=' .machine "pwr6"
25143 .csect .text[PR]
25144 mffgpr 1,3';;
25145 *) conftest_s=' .machine power6
25146 .text
25147 mffgpr 1,3';;
25148 esac
25149
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25151 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25152 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25153 $as_echo_n "(cached) " >&6
25154 else
25155 gcc_cv_as_powerpc_mfpgpr=no
25156 if test $in_tree_gas = yes; then
25157 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25158 then gcc_cv_as_powerpc_mfpgpr=yes
25159 fi
25160 elif test x$gcc_cv_as != x; then
25161 $as_echo "$conftest_s" > conftest.s
25162 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25164 (eval $ac_try) 2>&5
25165 ac_status=$?
25166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25167 test $ac_status = 0; }; }
25168 then
25169 gcc_cv_as_powerpc_mfpgpr=yes
25170 else
25171 echo "configure: failed program was" >&5
25172 cat conftest.s >&5
25173 fi
25174 rm -f conftest.o conftest.s
25175 fi
25176 fi
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25178 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25179 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25180
25181 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25182
25183 fi
25184
25185 case $target in
25186 *-*-aix*) conftest_s=' .csect .text[PR]
25187 LCF..0:
25188 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25189 *-*-darwin*)
25190 conftest_s=' .text
25191 LCF0:
25192 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25193 *) conftest_s=' .text
25194 .LCF0:
25195 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25196 esac
25197
25198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25199 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25200 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25201 $as_echo_n "(cached) " >&6
25202 else
25203 gcc_cv_as_powerpc_rel16=no
25204 if test $in_tree_gas = yes; then
25205 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25206 then gcc_cv_as_powerpc_rel16=yes
25207 fi
25208 elif test x$gcc_cv_as != x; then
25209 $as_echo "$conftest_s" > conftest.s
25210 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25212 (eval $ac_try) 2>&5
25213 ac_status=$?
25214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25215 test $ac_status = 0; }; }
25216 then
25217 gcc_cv_as_powerpc_rel16=yes
25218 else
25219 echo "configure: failed program was" >&5
25220 cat conftest.s >&5
25221 fi
25222 rm -f conftest.o conftest.s
25223 fi
25224 fi
25225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25226 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25227 if test $gcc_cv_as_powerpc_rel16 = yes; then
25228
25229 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25230
25231 fi
25232
25233 case $target in
25234 *-*-aix*) conftest_s=' .machine "pwr6"
25235 .csect .text[PR]
25236 cmpb 3,4,5';;
25237 *) conftest_s=' .machine power6
25238 .text
25239 cmpb 3,4,5';;
25240 esac
25241
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25243 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25244 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25245 $as_echo_n "(cached) " >&6
25246 else
25247 gcc_cv_as_powerpc_cmpb=no
25248 if test $in_tree_gas = yes; then
25249 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25250 then gcc_cv_as_powerpc_cmpb=yes
25251 fi
25252 elif test x$gcc_cv_as != x; then
25253 $as_echo "$conftest_s" > conftest.s
25254 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25256 (eval $ac_try) 2>&5
25257 ac_status=$?
25258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25259 test $ac_status = 0; }; }
25260 then
25261 gcc_cv_as_powerpc_cmpb=yes
25262 else
25263 echo "configure: failed program was" >&5
25264 cat conftest.s >&5
25265 fi
25266 rm -f conftest.o conftest.s
25267 fi
25268 fi
25269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25270 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25271 if test $gcc_cv_as_powerpc_cmpb = yes; then
25272
25273 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25274
25275 fi
25276
25277 case $target in
25278 *-*-aix*) conftest_s=' .machine "pwr6"
25279 .csect .text[PR]
25280 dadd 1,2,3';;
25281 *) conftest_s=' .machine power6
25282 .text
25283 dadd 1,2,3';;
25284 esac
25285
25286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25287 $as_echo_n "checking assembler for decimal float support... " >&6; }
25288 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25289 $as_echo_n "(cached) " >&6
25290 else
25291 gcc_cv_as_powerpc_dfp=no
25292 if test $in_tree_gas = yes; then
25293 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25294 then gcc_cv_as_powerpc_dfp=yes
25295 fi
25296 elif test x$gcc_cv_as != x; then
25297 $as_echo "$conftest_s" > conftest.s
25298 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25300 (eval $ac_try) 2>&5
25301 ac_status=$?
25302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25303 test $ac_status = 0; }; }
25304 then
25305 gcc_cv_as_powerpc_dfp=yes
25306 else
25307 echo "configure: failed program was" >&5
25308 cat conftest.s >&5
25309 fi
25310 rm -f conftest.o conftest.s
25311 fi
25312 fi
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25314 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25315 if test $gcc_cv_as_powerpc_dfp = yes; then
25316
25317 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25318
25319 fi
25320
25321 case $target in
25322 *-*-aix*) conftest_s=' .machine "pwr7"
25323 .csect .text[PR]
25324 lxvd2x 1,2,3';;
25325 *) conftest_s=' .machine power7
25326 .text
25327 lxvd2x 1,2,3';;
25328 esac
25329
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25331 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25332 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25333 $as_echo_n "(cached) " >&6
25334 else
25335 gcc_cv_as_powerpc_vsx=no
25336 if test $in_tree_gas = yes; then
25337 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25338 then gcc_cv_as_powerpc_vsx=yes
25339 fi
25340 elif test x$gcc_cv_as != x; then
25341 $as_echo "$conftest_s" > conftest.s
25342 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25344 (eval $ac_try) 2>&5
25345 ac_status=$?
25346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25347 test $ac_status = 0; }; }
25348 then
25349 gcc_cv_as_powerpc_vsx=yes
25350 else
25351 echo "configure: failed program was" >&5
25352 cat conftest.s >&5
25353 fi
25354 rm -f conftest.o conftest.s
25355 fi
25356 fi
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25358 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25359 if test $gcc_cv_as_powerpc_vsx = yes; then
25360
25361 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25362
25363 fi
25364
25365 case $target in
25366 *-*-aix*) conftest_s=' .machine "pwr7"
25367 .csect .text[PR]
25368 popcntd 3,3';;
25369 *) conftest_s=' .machine power7
25370 .text
25371 popcntd 3,3';;
25372 esac
25373
25374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25375 $as_echo_n "checking assembler for popcntd support... " >&6; }
25376 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25377 $as_echo_n "(cached) " >&6
25378 else
25379 gcc_cv_as_powerpc_popcntd=no
25380 if test $in_tree_gas = yes; then
25381 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25382 then gcc_cv_as_powerpc_popcntd=yes
25383 fi
25384 elif test x$gcc_cv_as != x; then
25385 $as_echo "$conftest_s" > conftest.s
25386 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25388 (eval $ac_try) 2>&5
25389 ac_status=$?
25390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25391 test $ac_status = 0; }; }
25392 then
25393 gcc_cv_as_powerpc_popcntd=yes
25394 else
25395 echo "configure: failed program was" >&5
25396 cat conftest.s >&5
25397 fi
25398 rm -f conftest.o conftest.s
25399 fi
25400 fi
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25402 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25403 if test $gcc_cv_as_powerpc_popcntd = yes; then
25404
25405 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25406
25407 fi
25408
25409 case $target in
25410 *-*-aix*) conftest_s=' .csect .text[PR]
25411 lwsync';;
25412 *) conftest_s=' .text
25413 lwsync';;
25414 esac
25415
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25417 $as_echo_n "checking assembler for lwsync support... " >&6; }
25418 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25419 $as_echo_n "(cached) " >&6
25420 else
25421 gcc_cv_as_powerpc_lwsync=no
25422 if test $in_tree_gas = yes; then
25423 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25424 then gcc_cv_as_powerpc_lwsync=yes
25425 fi
25426 elif test x$gcc_cv_as != x; then
25427 $as_echo "$conftest_s" > conftest.s
25428 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25430 (eval $ac_try) 2>&5
25431 ac_status=$?
25432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25433 test $ac_status = 0; }; }
25434 then
25435 gcc_cv_as_powerpc_lwsync=yes
25436 else
25437 echo "configure: failed program was" >&5
25438 cat conftest.s >&5
25439 fi
25440 rm -f conftest.o conftest.s
25441 fi
25442 fi
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25444 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25445 if test $gcc_cv_as_powerpc_lwsync = yes; then
25446
25447 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25448
25449 fi
25450
25451 case $target in
25452 *-*-aix*) conftest_s=' .machine "476"
25453 .csect .text[PR]
25454 dci 0';;
25455 *) conftest_s=' .machine "476"
25456 .text
25457 dci 0';;
25458 esac
25459
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25461 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25462 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25463 $as_echo_n "(cached) " >&6
25464 else
25465 gcc_cv_as_powerpc_dci=no
25466 if test $in_tree_gas = yes; then
25467 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25468 then gcc_cv_as_powerpc_dci=yes
25469 fi
25470 elif test x$gcc_cv_as != x; then
25471 $as_echo "$conftest_s" > conftest.s
25472 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25474 (eval $ac_try) 2>&5
25475 ac_status=$?
25476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25477 test $ac_status = 0; }; }
25478 then
25479 gcc_cv_as_powerpc_dci=yes
25480 else
25481 echo "configure: failed program was" >&5
25482 cat conftest.s >&5
25483 fi
25484 rm -f conftest.o conftest.s
25485 fi
25486 fi
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25488 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25489 if test $gcc_cv_as_powerpc_dci = yes; then
25490
25491 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25492
25493 fi
25494
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25496 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25497 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25498 $as_echo_n "(cached) " >&6
25499 else
25500 gcc_cv_as_powerpc_gnu_attribute=no
25501 if test $in_tree_gas = yes; then
25502 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25503 then gcc_cv_as_powerpc_gnu_attribute=yes
25504 fi
25505 elif test x$gcc_cv_as != x; then
25506 $as_echo '.gnu_attribute 4,1' > conftest.s
25507 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25509 (eval $ac_try) 2>&5
25510 ac_status=$?
25511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25512 test $ac_status = 0; }; }
25513 then
25514 gcc_cv_as_powerpc_gnu_attribute=yes
25515 else
25516 echo "configure: failed program was" >&5
25517 cat conftest.s >&5
25518 fi
25519 rm -f conftest.o conftest.s
25520 fi
25521 fi
25522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25523 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25524 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25525
25526 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25527
25528 fi
25529
25530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25531 $as_echo_n "checking assembler for tls marker support... " >&6; }
25532 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25533 $as_echo_n "(cached) " >&6
25534 else
25535 gcc_cv_as_powerpc_tls_markers=no
25536 if test $in_tree_gas = yes; then
25537 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25538 then gcc_cv_as_powerpc_tls_markers=yes
25539 fi
25540 elif test x$gcc_cv_as != x; then
25541 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25542 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25544 (eval $ac_try) 2>&5
25545 ac_status=$?
25546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25547 test $ac_status = 0; }; }
25548 then
25549 gcc_cv_as_powerpc_tls_markers=yes
25550 else
25551 echo "configure: failed program was" >&5
25552 cat conftest.s >&5
25553 fi
25554 rm -f conftest.o conftest.s
25555 fi
25556 fi
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25558 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25559 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25560
25561 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25562
25563 fi
25564
25565 case $target in
25566 *-*-aix*)
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25568 $as_echo_n "checking assembler for .ref support... " >&6; }
25569 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25570 $as_echo_n "(cached) " >&6
25571 else
25572 gcc_cv_as_aix_ref=no
25573 if test $in_tree_gas = yes; then
25574 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25575 then :
25576 fi
25577 elif test x$gcc_cv_as != x; then
25578 $as_echo ' .csect stuff[rw]
25579 stuff:
25580 .long 1
25581 .extern sym
25582 .ref sym
25583 ' > conftest.s
25584 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25586 (eval $ac_try) 2>&5
25587 ac_status=$?
25588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25589 test $ac_status = 0; }; }
25590 then
25591 gcc_cv_as_aix_ref=yes
25592 else
25593 echo "configure: failed program was" >&5
25594 cat conftest.s >&5
25595 fi
25596 rm -f conftest.o conftest.s
25597 fi
25598 fi
25599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25600 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25601 if test $gcc_cv_as_aix_ref = yes; then
25602
25603 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25604
25605 fi
25606 ;;
25607 esac
25608 ;;
25609
25610 mips*-*-*)
25611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25612 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25613 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25614 $as_echo_n "(cached) " >&6
25615 else
25616 gcc_cv_as_mips_explicit_relocs=no
25617 if test $in_tree_gas = yes; then
25618 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25619 then gcc_cv_as_mips_explicit_relocs=yes
25620 fi
25621 elif test x$gcc_cv_as != x; then
25622 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25623 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25625 (eval $ac_try) 2>&5
25626 ac_status=$?
25627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25628 test $ac_status = 0; }; }
25629 then
25630 gcc_cv_as_mips_explicit_relocs=yes
25631 else
25632 echo "configure: failed program was" >&5
25633 cat conftest.s >&5
25634 fi
25635 rm -f conftest.o conftest.s
25636 fi
25637 fi
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25639 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25640 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25641 if test x$target_cpu_default = x
25642 then target_cpu_default=MASK_EXPLICIT_RELOCS
25643 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25644 fi
25645 fi
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25647 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25648 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25649 $as_echo_n "(cached) " >&6
25650 else
25651 gcc_cv_as_mips_no_shared=no
25652 if test $in_tree_gas = yes; then
25653 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25654 then gcc_cv_as_mips_no_shared=yes
25655 fi
25656 elif test x$gcc_cv_as != x; then
25657 $as_echo 'nop' > conftest.s
25658 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25660 (eval $ac_try) 2>&5
25661 ac_status=$?
25662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25663 test $ac_status = 0; }; }
25664 then
25665 gcc_cv_as_mips_no_shared=yes
25666 else
25667 echo "configure: failed program was" >&5
25668 cat conftest.s >&5
25669 fi
25670 rm -f conftest.o conftest.s
25671 fi
25672 fi
25673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25674 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25675 if test $gcc_cv_as_mips_no_shared = yes; then
25676
25677 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25678
25679 fi
25680
25681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25682 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25683 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25684 $as_echo_n "(cached) " >&6
25685 else
25686 gcc_cv_as_mips_gnu_attribute=no
25687 if test $in_tree_gas = yes; then
25688 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25689 then gcc_cv_as_mips_gnu_attribute=yes
25690 fi
25691 elif test x$gcc_cv_as != x; then
25692 $as_echo '.gnu_attribute 4,1' > conftest.s
25693 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25695 (eval $ac_try) 2>&5
25696 ac_status=$?
25697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25698 test $ac_status = 0; }; }
25699 then
25700 gcc_cv_as_mips_gnu_attribute=yes
25701 else
25702 echo "configure: failed program was" >&5
25703 cat conftest.s >&5
25704 fi
25705 rm -f conftest.o conftest.s
25706 fi
25707 fi
25708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25709 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25710 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25711
25712 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25713
25714 fi
25715
25716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25717 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25718 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25719 $as_echo_n "(cached) " >&6
25720 else
25721 gcc_cv_as_mips_dtprelword=no
25722 if test $in_tree_gas = yes; then
25723 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25724 then gcc_cv_as_mips_dtprelword=yes
25725 fi
25726 elif test x$gcc_cv_as != x; then
25727 $as_echo '.section .tdata,"awT",@progbits
25728 x:
25729 .word 2
25730 .text
25731 .dtprelword x+0x8000' > conftest.s
25732 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25734 (eval $ac_try) 2>&5
25735 ac_status=$?
25736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25737 test $ac_status = 0; }; }
25738 then
25739 gcc_cv_as_mips_dtprelword=yes
25740 else
25741 echo "configure: failed program was" >&5
25742 cat conftest.s >&5
25743 fi
25744 rm -f conftest.o conftest.s
25745 fi
25746 fi
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25748 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25749 if test $gcc_cv_as_mips_dtprelword = yes; then
25750
25751 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25752
25753 fi
25754
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25756 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25757 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25758 $as_echo_n "(cached) " >&6
25759 else
25760 gcc_cv_as_mips_dspr1_mult=no
25761 if test x$gcc_cv_as != x; then
25762 $as_echo ' .set mips32r2
25763 .set nodspr2
25764 .set dsp
25765 madd $ac3,$4,$5
25766 maddu $ac3,$4,$5
25767 msub $ac3,$4,$5
25768 msubu $ac3,$4,$5
25769 mult $ac3,$4,$5
25770 multu $ac3,$4,$5' > conftest.s
25771 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25773 (eval $ac_try) 2>&5
25774 ac_status=$?
25775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25776 test $ac_status = 0; }; }
25777 then
25778 gcc_cv_as_mips_dspr1_mult=yes
25779 else
25780 echo "configure: failed program was" >&5
25781 cat conftest.s >&5
25782 fi
25783 rm -f conftest.o conftest.s
25784 fi
25785 fi
25786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25787 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25788 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25789
25790 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25791
25792 fi
25793
25794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25795 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25796 gcc_cv_as_ld_jalr_reloc=no
25797 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25798 if test $in_tree_ld = yes ; then
25799 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 \
25800 && test $in_tree_ld_is_elf = yes; then
25801 gcc_cv_as_ld_jalr_reloc=yes
25802 fi
25803 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25804 echo ' .ent x' > conftest.s
25805 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25806 echo ' ld $25,%call16(y)($28)' >> conftest.s
25807 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25808 echo '1: jalr $25' >> conftest.s
25809 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25810 echo '1: jalr $25' >> conftest.s
25811 echo ' .end x' >> conftest.s
25812 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25813 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25814 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25815 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25816 gcc_cv_as_ld_jalr_reloc=yes
25817 fi
25818 fi
25819 rm -f conftest.*
25820 fi
25821 fi
25822 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25823 if test x$target_cpu_default = x; then
25824 target_cpu_default=MASK_RELAX_PIC_CALLS
25825 else
25826 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25827 fi
25828 fi
25829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25830 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25831
25832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25833 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25834 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25835 $as_echo_n "(cached) " >&6
25836 else
25837 gcc_cv_ld_mips_personality_relaxation=no
25838 if test $in_tree_ld = yes ; then
25839 if test "$gcc_cv_gld_major_version" -eq 2 \
25840 -a "$gcc_cv_gld_minor_version" -ge 21 \
25841 -o "$gcc_cv_gld_major_version" -gt 2; then
25842 gcc_cv_ld_mips_personality_relaxation=yes
25843 fi
25844 elif test x$gcc_cv_as != x \
25845 -a x$gcc_cv_ld != x \
25846 -a x$gcc_cv_readelf != x ; then
25847 cat > conftest.s <<EOF
25848 .cfi_startproc
25849 .cfi_personality 0x80,indirect_ptr
25850 .ent test
25851 test:
25852 nop
25853 .end test
25854 .cfi_endproc
25855
25856 .section .data,"aw",@progbits
25857 indirect_ptr:
25858 .dc.a personality
25859 EOF
25860 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25861 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25862 if $gcc_cv_readelf -d conftest 2>&1 \
25863 | grep TEXTREL > /dev/null 2>&1; then
25864 :
25865 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25866 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25867 :
25868 else
25869 gcc_cv_ld_mips_personality_relaxation=yes
25870 fi
25871 fi
25872 fi
25873 rm -f conftest.s conftest.o conftest
25874 fi
25875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25876 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25877 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25878
25879 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25880
25881 fi
25882 ;;
25883 esac
25884
25885 # Mips and HP-UX need the GNU assembler.
25886 # Linux on IA64 might be able to use the Intel assembler.
25887
25888 case "$target" in
25889 mips*-*-* | *-*-hpux* )
25890 if test x$gas_flag = xyes \
25891 || test x"$host" != x"$build" \
25892 || test ! -x "$gcc_cv_as" \
25893 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25894 :
25895 else
25896 echo "*** This configuration requires the GNU assembler" >&2
25897 exit 1
25898 fi
25899 ;;
25900 esac
25901
25902 # ??? Not all targets support dwarf2 debug_line, even within a version
25903 # of gas. Moreover, we need to emit a valid instruction to trigger any
25904 # info to the output file. So, as supported targets are added to gas 2.11,
25905 # add some instruction here to (also) show we expect this might work.
25906 # ??? Once 2.11 is released, probably need to add first known working
25907 # version to the per-target configury.
25908 case "$cpu_type" in
25909 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25910 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
25911 insn="nop"
25912 ;;
25913 ia64 | s390)
25914 insn="nop 0"
25915 ;;
25916 mmix)
25917 insn="swym 0"
25918 ;;
25919 esac
25920 if test x"$insn" != x; then
25921 conftest_s="\
25922 .file 1 \"conftest.s\"
25923 .loc 1 3 0
25924 $insn"
25925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25926 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25927 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25928 $as_echo_n "(cached) " >&6
25929 else
25930 gcc_cv_as_dwarf2_debug_line=no
25931 if test $in_tree_gas = yes; then
25932 if test $in_tree_gas_is_elf = yes \
25933 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25934 then gcc_cv_as_dwarf2_debug_line=yes
25935 fi
25936 elif test x$gcc_cv_as != x; then
25937 $as_echo "$conftest_s" > conftest.s
25938 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25940 (eval $ac_try) 2>&5
25941 ac_status=$?
25942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25943 test $ac_status = 0; }; }
25944 then
25945 if test x$gcc_cv_objdump != x \
25946 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25947 | grep debug_line > /dev/null 2>&1; then
25948 gcc_cv_as_dwarf2_debug_line=yes
25949 fi
25950 else
25951 echo "configure: failed program was" >&5
25952 cat conftest.s >&5
25953 fi
25954 rm -f conftest.o conftest.s
25955 fi
25956 fi
25957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25958 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25959
25960
25961 # The .debug_line file table must be in the exact order that
25962 # we specified the files, since these indices are also used
25963 # by DW_AT_decl_file. Approximate this test by testing if
25964 # the assembler bitches if the same index is assigned twice.
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25966 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25967 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25968 $as_echo_n "(cached) " >&6
25969 else
25970 gcc_cv_as_dwarf2_file_buggy=no
25971 if test x$gcc_cv_as != x; then
25972 $as_echo ' .file 1 "foo.s"
25973 .file 1 "bar.s"' > conftest.s
25974 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25976 (eval $ac_try) 2>&5
25977 ac_status=$?
25978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25979 test $ac_status = 0; }; }
25980 then
25981 gcc_cv_as_dwarf2_file_buggy=yes
25982 else
25983 echo "configure: failed program was" >&5
25984 cat conftest.s >&5
25985 fi
25986 rm -f conftest.o conftest.s
25987 fi
25988 fi
25989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25990 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25991
25992
25993 if test $gcc_cv_as_dwarf2_debug_line = yes \
25994 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25995
25996 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25997
25998 fi
25999
26000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26001 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26002 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26003 $as_echo_n "(cached) " >&6
26004 else
26005 gcc_cv_as_gdwarf2_flag=no
26006 if test $in_tree_gas = yes; then
26007 if test $in_tree_gas_is_elf = yes \
26008 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26009 then gcc_cv_as_gdwarf2_flag=yes
26010 fi
26011 elif test x$gcc_cv_as != x; then
26012 $as_echo "$insn" > conftest.s
26013 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
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 gcc_cv_as_gdwarf2_flag=yes
26021 else
26022 echo "configure: failed program was" >&5
26023 cat conftest.s >&5
26024 fi
26025 rm -f conftest.o conftest.s
26026 fi
26027 fi
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26029 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26030 if test $gcc_cv_as_gdwarf2_flag = yes; then
26031
26032 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26033
26034 fi
26035
26036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26037 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26038 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26039 $as_echo_n "(cached) " >&6
26040 else
26041 gcc_cv_as_gstabs_flag=no
26042 if test $in_tree_gas = yes; then
26043 if test $in_tree_gas_is_elf = yes \
26044 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26045 then gcc_cv_as_gstabs_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 --gstabs -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 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26057 # and warns about it, but still exits successfully. So check for
26058 # this.
26059 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26061 (eval $ac_try) 2>&5
26062 ac_status=$?
26063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26064 test $ac_status = 0; }; }
26065 then :
26066 else gcc_cv_as_gstabs_flag=yes
26067 fi
26068 else
26069 echo "configure: failed program was" >&5
26070 cat conftest.s >&5
26071 fi
26072 rm -f conftest.o conftest.s
26073 fi
26074 fi
26075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26076 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26077 if test $gcc_cv_as_gstabs_flag = yes; then
26078
26079 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26080
26081 fi
26082
26083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26084 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26085 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26086 $as_echo_n "(cached) " >&6
26087 else
26088 gcc_cv_as_debug_prefix_map_flag=no
26089 if test $in_tree_gas = yes; then
26090 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26091 then gcc_cv_as_debug_prefix_map_flag=yes
26092 fi
26093 elif test x$gcc_cv_as != x; then
26094 $as_echo "$insn" > conftest.s
26095 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26097 (eval $ac_try) 2>&5
26098 ac_status=$?
26099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26100 test $ac_status = 0; }; }
26101 then
26102 gcc_cv_as_debug_prefix_map_flag=yes
26103 else
26104 echo "configure: failed program was" >&5
26105 cat conftest.s >&5
26106 fi
26107 rm -f conftest.o conftest.s
26108 fi
26109 fi
26110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26111 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26112 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26113
26114 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26115
26116 fi
26117 fi
26118
26119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26120 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26121 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26122 $as_echo_n "(cached) " >&6
26123 else
26124 gcc_cv_as_lcomm_with_alignment=no
26125 if test x$gcc_cv_as != x; then
26126 $as_echo '.lcomm bar,4,16' > conftest.s
26127 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26129 (eval $ac_try) 2>&5
26130 ac_status=$?
26131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26132 test $ac_status = 0; }; }
26133 then
26134 gcc_cv_as_lcomm_with_alignment=yes
26135 else
26136 echo "configure: failed program was" >&5
26137 cat conftest.s >&5
26138 fi
26139 rm -f conftest.o conftest.s
26140 fi
26141 fi
26142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26143 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26144 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26145
26146 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26147
26148 fi
26149
26150 # Check whether --enable-gnu-unique-object was given.
26151 if test "${enable_gnu_unique_object+set}" = set; then :
26152 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26153 yes | no) ;;
26154 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26155 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26156 esac
26157 else
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26159 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26160 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26161 $as_echo_n "(cached) " >&6
26162 else
26163 gcc_cv_as_gnu_unique_object=no
26164 if test $in_tree_gas = yes; then
26165 if test $in_tree_gas_is_elf = yes \
26166 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26167 then gcc_cv_as_gnu_unique_object=yes
26168 fi
26169 elif test x$gcc_cv_as != x; then
26170 $as_echo '.type foo, @gnu_unique_object' > conftest.s
26171 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26173 (eval $ac_try) 2>&5
26174 ac_status=$?
26175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26176 test $ac_status = 0; }; }
26177 then
26178 gcc_cv_as_gnu_unique_object=yes
26179 else
26180 echo "configure: failed program was" >&5
26181 cat conftest.s >&5
26182 fi
26183 rm -f conftest.o conftest.s
26184 fi
26185 fi
26186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26187 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26188 if test $gcc_cv_as_gnu_unique_object = yes; then
26189 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26190 if test x$host = x$build -a x$host = x$target &&
26191 ldd --version 2>/dev/null &&
26192 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26193 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26194 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26195 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26196 if test "$glibcnum" -ge 2011 ; then
26197 enable_gnu_unique_object=yes
26198 fi
26199 fi
26200 fi
26201 fi
26202
26203 if test x$enable_gnu_unique_object = xyes; then
26204
26205 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26206
26207 fi
26208
26209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26210 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26211 if test "${gcc_cv_as_line_zero+set}" = set; then :
26212 $as_echo_n "(cached) " >&6
26213 else
26214 gcc_cv_as_line_zero=no
26215 if test $in_tree_gas = yes; then
26216 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26217 then gcc_cv_as_line_zero=yes
26218 fi
26219 elif test "x$gcc_cv_as" != x; then
26220 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26221 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26223 (eval $ac_try) 2>&5
26224 ac_status=$?
26225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26226 test $ac_status = 0; }; } &&
26227 test "x`cat conftest.out`" = x
26228 then
26229 gcc_cv_as_line_zero=yes
26230 else
26231 echo "configure: failed program was" >&5
26232 cat conftest.s >&5
26233 echo "configure: error output was" >&5
26234 cat conftest.out >&5
26235 fi
26236 rm -f conftest.o conftest.s conftest.out
26237 fi
26238 fi
26239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26240 $as_echo "$gcc_cv_as_line_zero" >&6; }
26241 if test "x$gcc_cv_as_line_zero" = xyes; then
26242
26243 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26244
26245 fi
26246
26247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26248 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26249 gcc_cv_ld_eh_frame_hdr=no
26250 if test $in_tree_ld = yes ; then
26251 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 \
26252 && test $in_tree_ld_is_elf = yes; then
26253 gcc_cv_ld_eh_frame_hdr=yes
26254 fi
26255 elif test x$gcc_cv_ld != x; then
26256 if echo "$ld_ver" | grep GNU > /dev/null; then
26257 # Check if linker supports --eh-frame-hdr option
26258 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26259 gcc_cv_ld_eh_frame_hdr=yes
26260 fi
26261 else
26262 case "$target" in
26263 *-*-solaris2*)
26264 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26265 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26266 gcc_cv_ld_eh_frame_hdr=yes
26267 fi
26268 ;;
26269 esac
26270 fi
26271 fi
26272
26273 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26274
26275 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26276
26277 fi
26278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26279 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26280
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26282 $as_echo_n "checking linker position independent executable support... " >&6; }
26283 gcc_cv_ld_pie=no
26284 if test $in_tree_ld = yes ; then
26285 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 \
26286 && test $in_tree_ld_is_elf = yes; then
26287 gcc_cv_ld_pie=yes
26288 fi
26289 elif test x$gcc_cv_ld != x; then
26290 # Check if linker supports -pie option
26291 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26292 gcc_cv_ld_pie=yes
26293 fi
26294 fi
26295 if test x"$gcc_cv_ld_pie" = xyes; then
26296
26297 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26298
26299 fi
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26301 $as_echo "$gcc_cv_ld_pie" >&6; }
26302
26303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26304 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26305 gcc_cv_ld_eh_gc_sections=no
26306 if test $in_tree_ld = yes ; then
26307 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 \
26308 && test $in_tree_ld_is_elf = yes; then
26309 gcc_cv_ld_eh_gc_sections=yes
26310 fi
26311 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26312 cat > conftest.s <<EOF
26313 .section .text
26314 .globl _start
26315 .type _start, @function
26316 _start:
26317 .long foo
26318 .size _start, .-_start
26319 .section .text.foo,"ax",@progbits
26320 .type foo, @function
26321 foo:
26322 .long 0
26323 .size foo, .-foo
26324 .section .gcc_except_table.foo,"a",@progbits
26325 .L0:
26326 .long 0
26327 .section .eh_frame,"a",@progbits
26328 .long .L0
26329 EOF
26330 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26331 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26332 | grep "gc-sections option ignored" > /dev/null; then
26333 gcc_cv_ld_eh_gc_sections=no
26334 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26335 | grep gcc_except_table > /dev/null; then
26336 gcc_cv_ld_eh_gc_sections=yes
26337 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26338 if test x$gcc_cv_as_comdat_group != xyes; then
26339 gcc_cv_ld_eh_gc_sections=no
26340 cat > conftest.s <<EOF
26341 .section .text
26342 .globl _start
26343 .type _start, @function
26344 _start:
26345 .long foo
26346 .size _start, .-_start
26347 .section .gnu.linkonce.t.foo,"ax",@progbits
26348 .type foo, @function
26349 foo:
26350 .long 0
26351 .size foo, .-foo
26352 .section .gcc_except_table.foo,"a",@progbits
26353 .L0:
26354 .long 0
26355 .section .eh_frame,"a",@progbits
26356 .long .L0
26357 EOF
26358 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26359 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26360 | grep "gc-sections option ignored" > /dev/null; then
26361 gcc_cv_ld_eh_gc_sections=no
26362 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26363 | grep gcc_except_table > /dev/null; then
26364 gcc_cv_ld_eh_gc_sections=yes
26365 fi
26366 fi
26367 fi
26368 fi
26369 fi
26370 rm -f conftest.s conftest.o conftest
26371 fi
26372 case "$target" in
26373 hppa*-*-linux*)
26374 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26375 gcc_cv_ld_eh_gc_sections=no
26376 ;;
26377 esac
26378 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26379
26380 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26381
26382 fi
26383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26384 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26385
26386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26387 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26388 gcc_cv_ld_eh_gc_sections_bug=no
26389 if test $in_tree_ld = yes ; then
26390 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 \
26391 && test $in_tree_ld_is_elf = yes; then
26392 gcc_cv_ld_eh_gc_sections_bug=yes
26393 fi
26394 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
26395 gcc_cv_ld_eh_gc_sections_bug=yes
26396 cat > conftest.s <<EOF
26397 .section .text
26398 .globl _start
26399 .type _start, @function
26400 _start:
26401 .long foo
26402 .size _start, .-_start
26403 .section .text.startup.foo,"ax",@progbits
26404 .type foo, @function
26405 foo:
26406 .long 0
26407 .size foo, .-foo
26408 .section .gcc_except_table.foo,"a",@progbits
26409 .L0:
26410 .long 0
26411 .section .eh_frame,"a",@progbits
26412 .long .L0
26413 EOF
26414 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26415 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26416 | grep "gc-sections option ignored" > /dev/null; then
26417 :
26418 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26419 | grep gcc_except_table > /dev/null; then
26420 gcc_cv_ld_eh_gc_sections_bug=no
26421 fi
26422 fi
26423 rm -f conftest.s conftest.o conftest
26424 fi
26425 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26426
26427 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26428
26429 fi
26430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26431 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26432
26433 # --------
26434 # UNSORTED
26435 # --------
26436
26437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26438 $as_echo_n "checking linker --as-needed support... " >&6; }
26439 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26440 $as_echo_n "(cached) " >&6
26441 else
26442 gcc_cv_ld_as_needed=no
26443 if test $in_tree_ld = yes ; then
26444 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 \
26445 && test $in_tree_ld_is_elf = yes; then
26446 gcc_cv_ld_as_needed=yes
26447 fi
26448 elif test x$gcc_cv_ld != x; then
26449 # Check if linker supports --as-needed and --no-as-needed options
26450 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26451 gcc_cv_ld_as_needed=yes
26452 fi
26453 fi
26454
26455 fi
26456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26457 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26458 if test x"$gcc_cv_ld_as_needed" = xyes; then
26459
26460 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26461
26462 fi
26463
26464 case "$target:$tm_file" in
26465 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26467 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26468 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26469 $as_echo_n "(cached) " >&6
26470 else
26471 gcc_cv_ld_no_dot_syms=no
26472 if test $in_tree_ld = yes ; then
26473 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
26474 gcc_cv_ld_no_dot_syms=yes
26475 fi
26476 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26477 cat > conftest1.s <<EOF
26478 .text
26479 bl .foo
26480 EOF
26481 cat > conftest2.s <<EOF
26482 .section ".opd","aw"
26483 .align 3
26484 .globl foo
26485 .type foo,@function
26486 foo:
26487 .quad .LEfoo,.TOC.@tocbase,0
26488 .text
26489 .LEfoo:
26490 blr
26491 .size foo,.-.LEfoo
26492 EOF
26493 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26494 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26495 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26496 gcc_cv_ld_no_dot_syms=yes
26497 fi
26498 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26499 fi
26500
26501 fi
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26503 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26504 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26505
26506 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26507
26508 fi
26509
26510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26511 $as_echo_n "checking linker large toc support... " >&6; }
26512 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26513 $as_echo_n "(cached) " >&6
26514 else
26515 gcc_cv_ld_large_toc=no
26516 if test $in_tree_ld = yes ; then
26517 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
26518 gcc_cv_ld_large_toc=yes
26519 fi
26520 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26521 cat > conftest.s <<EOF
26522 .section ".tbss","awT",@nobits
26523 .align 3
26524 ie0: .space 8
26525 .global _start
26526 .text
26527 _start:
26528 addis 9,13,ie0@got@tprel@ha
26529 ld 9,ie0@got@tprel@l(9)
26530 EOF
26531 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26532 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26533 gcc_cv_ld_large_toc=yes
26534 fi
26535 rm -f conftest conftest.o conftest.s
26536 fi
26537
26538 fi
26539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26540 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26541 if test x"$gcc_cv_ld_large_toc" = xyes; then
26542
26543 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26544
26545 fi
26546 ;;
26547 esac
26548
26549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26550 $as_echo_n "checking linker --build-id support... " >&6; }
26551 if test "${gcc_cv_ld_buildid+set}" = set; then :
26552 $as_echo_n "(cached) " >&6
26553 else
26554 gcc_cv_ld_buildid=no
26555 if test $in_tree_ld = yes ; then
26556 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26557 "$gcc_cv_gld_minor_version" -ge 18 -o \
26558 "$gcc_cv_gld_major_version" -gt 2 \
26559 && test $in_tree_ld_is_elf = yes; then
26560 gcc_cv_ld_buildid=yes
26561 fi
26562 elif test x$gcc_cv_ld != x; then
26563 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26564 gcc_cv_ld_buildid=yes
26565 fi
26566 fi
26567 fi
26568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26569 $as_echo "$gcc_cv_ld_buildid" >&6; }
26570 if test x"$gcc_cv_ld_buildid" = xyes; then
26571
26572 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26573
26574 fi
26575
26576 # Check whether --enable-linker-build-id was given.
26577 if test "${enable_linker_build_id+set}" = set; then :
26578 enableval=$enable_linker_build_id;
26579 else
26580 enable_linker_build_id=no
26581 fi
26582
26583
26584 if test x"$enable_linker_build_id" = xyes; then
26585 if test x"$gcc_cv_ld_buildid" = xyes; then
26586
26587 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26588
26589 else
26590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26591 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26592 fi
26593 fi
26594
26595 # In binutils 2.21, GNU ld gained support for new emulations fully
26596 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26598 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26599 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26600 $as_echo_n "(cached) " >&6
26601 else
26602 gcc_cv_ld_sol2_emulation=no
26603 if test $in_tree_ld = yes ; then
26604 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26605 "$gcc_cv_gld_minor_version" -ge 21 -o \
26606 "$gcc_cv_gld_major_version" -gt 2 \
26607 && test $in_tree_ld_is_elf = yes; then
26608 gcc_cv_ld_sol2_emulation=yes
26609 fi
26610 elif test x$gcc_cv_ld != x; then
26611 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26612 grep _sol2 > /dev/null; then
26613 gcc_cv_ld_sol2_emulation=yes
26614 fi
26615 fi
26616 fi
26617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26618 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26619 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26620
26621 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26622
26623 fi
26624
26625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26626 $as_echo_n "checking linker --sysroot support... " >&6; }
26627 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26628 $as_echo_n "(cached) " >&6
26629 else
26630 gcc_cv_ld_sysroot=no
26631 if test $in_tree_ld = yes ; then
26632 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
26633 gcc_cv_ld_sysroot=yes
26634 fi
26635 elif test x$gcc_cv_ld != x; then
26636 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26637 gcc_cv_ld_sysroot=yes
26638 fi
26639 fi
26640 fi
26641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26642 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26643 if test x"$gcc_cv_ld_sysroot" = xyes; then
26644
26645 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26646
26647 fi
26648
26649 if test x$with_sysroot = x && test x$host = x$target \
26650 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26651 && test "$prefix" != "NONE"; then
26652
26653 cat >>confdefs.h <<_ACEOF
26654 #define PREFIX_INCLUDE_DIR "$prefix/include"
26655 _ACEOF
26656
26657 fi
26658
26659 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26660 if test "x$with_headers" != x; then
26661 target_header_dir=$with_headers
26662 elif test "x$with_sysroot" = x; then
26663 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26664 elif test "x$with_build_sysroot" != "x"; then
26665 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26666 elif test "x$with_sysroot" = xyes; then
26667 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26668 else
26669 target_header_dir="${with_sysroot}${native_system_header_dir}"
26670 fi
26671 else
26672 target_header_dir=${native_system_header_dir}
26673 fi
26674
26675 # Test for stack protector support in target C library.
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26677 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26678 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26679 $as_echo_n "(cached) " >&6
26680 else
26681 gcc_cv_libc_provides_ssp=no
26682 case "$target" in
26683 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26684 # glibc 2.4 and later provides __stack_chk_fail and
26685 # either __stack_chk_guard, or TLS access to stack guard canary.
26686 if test -f $target_header_dir/features.h \
26687 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26688 $target_header_dir/features.h > /dev/null; then
26689 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26690 $target_header_dir/features.h > /dev/null; then
26691 gcc_cv_libc_provides_ssp=yes
26692 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26693 $target_header_dir/features.h > /dev/null \
26694 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26695 $target_header_dir/features.h > /dev/null; then
26696 gcc_cv_libc_provides_ssp=yes
26697 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26698 $target_header_dir/features.h > /dev/null && \
26699 test -f $target_header_dir/bits/uClibc_config.h && \
26700 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26701 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26702 gcc_cv_libc_provides_ssp=yes
26703 fi
26704 fi
26705 ;;
26706 *-*-gnu*)
26707 # Avoid complicated tests (see
26708 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26709 # simply assert that glibc does provide this, which is true for all
26710 # realistically usable GNU/Hurd configurations.
26711 gcc_cv_libc_provides_ssp=yes;;
26712 *-*-darwin* | *-*-freebsd*)
26713 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26714 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26715 gcc_cv_libc_provides_ssp=yes
26716 else
26717 echo "no __stack_chk_fail on this target"
26718 fi
26719
26720 ;;
26721 *) gcc_cv_libc_provides_ssp=no ;;
26722 esac
26723 fi
26724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26725 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26726
26727 if test x$gcc_cv_libc_provides_ssp = xyes; then
26728
26729 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26730
26731 fi
26732
26733 # Test for <sys/sdt.h> on the target.
26734
26735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26736 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26737 have_sys_sdt_h=no
26738 if test -f $target_header_dir/sys/sdt.h; then
26739 have_sys_sdt_h=yes
26740
26741 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26742
26743 fi
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26745 $as_echo "$have_sys_sdt_h" >&6; }
26746
26747 # Check if TFmode long double should be used by default or not.
26748 # Some glibc targets used DFmode long double, but with glibc 2.4
26749 # and later they can use TFmode.
26750 case "$target" in
26751 powerpc*-*-linux* | \
26752 sparc*-*-linux* | \
26753 s390*-*-linux* | \
26754 alpha*-*-linux*)
26755
26756 # Check whether --with-long-double-128 was given.
26757 if test "${with_long_double_128+set}" = set; then :
26758 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26759 else
26760 gcc_cv_target_ldbl128=no
26761 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26762 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26763 && gcc_cv_target_ldbl128=yes
26764
26765 fi
26766
26767 ;;
26768 esac
26769 if test x$gcc_cv_target_ldbl128 = xyes; then
26770
26771 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26772
26773 fi
26774
26775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26776 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26777 gcc_cv_target_dl_iterate_phdr=unknown
26778 case "$target" in
26779 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26780 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26781 # libdl there, both complicating its use and breaking compatibility
26782 # between Solaris 10 updates.
26783 *-*-solaris2.1[1-9]*)
26784 # <link.h> needs both a dl_iterate_phdr declaration and support for
26785 # compilation with largefile support.
26786 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26787 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26788 gcc_cv_target_dl_iterate_phdr=yes
26789 else
26790 gcc_cv_target_dl_iterate_phdr=no
26791 fi
26792 ;;
26793 esac
26794
26795 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26796
26797 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26798
26799 fi
26800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26801 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26802
26803 # Find out what GC implementation we want, or may, use.
26804
26805 # Check whether --with-gc was given.
26806 if test "${with_gc+set}" = set; then :
26807 withval=$with_gc; case "$withval" in
26808 page)
26809 GGC=ggc-$withval
26810 ;;
26811 zone)
26812 GGC=ggc-$withval
26813
26814 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26815
26816 ;;
26817 *)
26818 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26819 ;;
26820 esac
26821 else
26822 GGC=ggc-page
26823 fi
26824
26825
26826 echo "Using $GGC for garbage collection."
26827
26828 # Libraries to use on the host. This will normally be set by the top
26829 # level Makefile. Here we simply capture the value for our Makefile.
26830 if test -z "${HOST_LIBS+set}"; then
26831 HOST_LIBS=
26832 fi
26833
26834
26835 # Use the system's zlib library.
26836 zlibdir=-L../zlib
26837 zlibinc="-I\$(srcdir)/../zlib"
26838
26839 # Check whether --with-system-zlib was given.
26840 if test "${with_system_zlib+set}" = set; then :
26841 withval=$with_system_zlib; zlibdir=
26842 zlibinc=
26843
26844 fi
26845
26846
26847
26848
26849
26850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26851 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26852 # Check whether --enable-maintainer-mode was given.
26853 if test "${enable_maintainer_mode+set}" = set; then :
26854 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26855 else
26856 maintainer_mode=no
26857 fi
26858
26859
26860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26861 $as_echo "$maintainer_mode" >&6; }
26862
26863 if test "$maintainer_mode" = "yes"; then
26864 MAINT=''
26865 else
26866 MAINT='#'
26867 fi
26868
26869 # --------------
26870 # Language hooks
26871 # --------------
26872
26873 # Make empty files to contain the specs and options for each language.
26874 # Then add #include lines to for a compiler that has specs and/or options.
26875
26876 subdirs=
26877 lang_opt_files=
26878 lang_specs_files=
26879 lang_tree_files=
26880 # These (without "all_") are set in each config-lang.in.
26881 # `language' must be a single word so is spelled singularly.
26882 all_languages=
26883 all_compilers=
26884 all_outputs='Makefile'
26885 # List of language makefile fragments.
26886 all_lang_makefrags=
26887 # Additional files for gengtype
26888 all_gtfiles="$target_gtfiles"
26889
26890 # These are the languages that are set in --enable-languages,
26891 # and are available in the GCC tree.
26892 all_selected_languages=
26893
26894 # Add the language fragments.
26895 # Languages are added via two mechanisms. Some information must be
26896 # recorded in makefile variables, these are defined in config-lang.in.
26897 # We accumulate them and plug them into the main Makefile.
26898 # The other mechanism is a set of hooks for each of the main targets
26899 # like `clean', `install', etc.
26900
26901 language_hooks="Make-hooks"
26902
26903 for lang in ${srcdir}/*/config-lang.in
26904 do
26905 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26906
26907 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26908 if test "x$lang_alias" = x
26909 then
26910 echo "$lang doesn't set \$language." 1>&2
26911 exit 1
26912 fi
26913 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26914 subdirs="$subdirs $subdir"
26915
26916 # $gcc_subdir is where the gcc integration files are to be found
26917 # for a language, both for internal compiler purposes (compiler
26918 # sources implementing front-end to GCC tree converters), and for
26919 # build infrastructure purposes (Make-lang.in, etc.)
26920 #
26921 # This will be <subdir> (relative to $srcdir) if a line like
26922 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26923 # is found in <langdir>/config-lang.in, and will remain <langdir>
26924 # otherwise.
26925 #
26926 # Except for the language alias (fetched above), the regular
26927 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26928 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26929 # only this and the language alias.
26930
26931 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26932 if [ "$gcc_subdir" = "" ]; then
26933 gcc_subdir="$subdir"
26934 fi
26935
26936 case ",$enable_languages," in
26937 *,$lang_alias,*)
26938 all_selected_languages="$all_selected_languages $lang_alias"
26939 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26940 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26941 fi
26942 ;;
26943 esac
26944
26945 language=
26946 boot_language=
26947 compilers=
26948 outputs=
26949 gtfiles=
26950 subdir_requires=
26951 . ${srcdir}/$gcc_subdir/config-lang.in
26952 if test "x$language" = x
26953 then
26954 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26955 exit 1
26956 fi
26957
26958 ok=:
26959 case ",$enable_languages," in
26960 *,$lang_alias,*) ;;
26961 *)
26962 for i in $subdir_requires; do
26963 test -f "${srcdir}/$i/config-lang.in" && continue
26964 ok=false
26965 break
26966 done
26967 ;;
26968 esac
26969 $ok || continue
26970
26971 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26972 if test -f $srcdir/$gcc_subdir/lang.opt; then
26973 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26974 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26975 fi
26976 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26977 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26978 fi
26979 all_languages="$all_languages $language"
26980 all_compilers="$all_compilers $compilers"
26981 all_outputs="$all_outputs $outputs"
26982 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26983 case ",$enable_languages," in
26984 *,lto,*)
26985
26986 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26987
26988 enable_lto=yes
26989
26990 ;;
26991 *) ;;
26992 esac
26993 done
26994
26995 # Pick up gtfiles for c
26996 gtfiles=
26997 . ${srcdir}/c-config-lang.in
26998 all_gtfiles="$all_gtfiles [c] $gtfiles"
26999
27000 check_languages=
27001 for language in $all_selected_languages
27002 do
27003 check_languages="$check_languages check-$language"
27004 done
27005
27006 # We link each language in with a set of hooks, reached indirectly via
27007 # lang.${target}. Only do so for selected languages.
27008
27009 rm -f Make-hooks
27010 touch Make-hooks
27011 target_list="all.cross start.encap rest.encap tags \
27012 install-common install-man install-info install-pdf install-html dvi \
27013 pdf html uninstall info man srcextra srcman srcinfo \
27014 mostlyclean clean distclean maintainer-clean install-plugin"
27015
27016 for t in $target_list
27017 do
27018 x=
27019 for lang in $all_selected_languages
27020 do
27021 x="$x $lang.$t"
27022 done
27023 echo "lang.$t: $x" >> Make-hooks
27024 done
27025
27026 # --------
27027 # Option include files
27028 # --------
27029
27030 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27031 option_includes="option-includes.mk"
27032
27033
27034 # --------
27035 # UNSORTED
27036 # --------
27037
27038 # Create .gdbinit.
27039
27040 echo "dir ." > .gdbinit
27041 echo "dir ${srcdir}" >> .gdbinit
27042 if test x$gdb_needs_out_file_path = xyes
27043 then
27044 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27045 fi
27046 if test "x$subdirs" != x; then
27047 for s in $subdirs
27048 do
27049 echo "dir ${srcdir}/$s" >> .gdbinit
27050 done
27051 fi
27052 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27053
27054 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27055
27056
27057
27058 # Find a directory in which to install a shared libgcc.
27059
27060 # Check whether --enable-version-specific-runtime-libs was given.
27061 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27062 enableval=$enable_version_specific_runtime_libs;
27063 fi
27064
27065
27066 # Substitute configuration variables
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
27098
27099
27100
27101
27102
27103
27104
27105
27106
27107
27108
27109
27110
27111
27112
27113
27114
27115
27116
27117
27118
27119
27120
27121
27122
27123
27124
27125
27126
27127
27128
27129 # Echo link setup.
27130 if test x${build} = x${host} ; then
27131 if test x${host} = x${target} ; then
27132 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27133 else
27134 echo "Links are now set up to build a cross-compiler" 1>&2
27135 echo " from ${host} to ${target}." 1>&2
27136 fi
27137 else
27138 if test x${host} = x${target} ; then
27139 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27140 echo " for ${target}." 1>&2
27141 else
27142 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27143 echo " from ${host} to ${target}." 1>&2
27144 fi
27145 fi
27146
27147
27148
27149
27150
27151
27152
27153
27154
27155 if test "x${CLOOGLIBS}" != "x" ; then
27156
27157 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27158
27159 fi
27160
27161 # Check for plugin support
27162 # Check whether --enable-plugin was given.
27163 if test "${enable_plugin+set}" = set; then :
27164 enableval=$enable_plugin; enable_plugin=$enableval
27165 else
27166 enable_plugin=yes; default_plugin=yes
27167 fi
27168
27169
27170 pluginlibs=
27171
27172 case "${host}" in
27173 *-*-darwin*)
27174 if test x$build = x$host; then
27175 export_sym_check="nm${exeext} -g"
27176 elif test x$host = x$target; then
27177 export_sym_check="$gcc_cv_nm -g"
27178 else
27179 export_sym_check=
27180 fi
27181 ;;
27182 *)
27183 if test x$build = x$host; then
27184 export_sym_check="objdump${exeext} -T"
27185 elif test x$host = x$target; then
27186 export_sym_check="$gcc_cv_objdump -T"
27187 else
27188 export_sym_check=
27189 fi
27190 ;;
27191 esac
27192
27193 if test x"$enable_plugin" = x"yes"; then
27194
27195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27196 $as_echo_n "checking for exported symbols... " >&6; }
27197 if test "x$export_sym_check" != x; then
27198 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27199 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27200 if $export_sym_check conftest | grep foobar > /dev/null; then
27201 : # No need to use a flag
27202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27203 $as_echo "yes" >&6; }
27204 else
27205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27206 $as_echo "yes" >&6; }
27207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27208 $as_echo_n "checking for -rdynamic... " >&6; }
27209 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27210 if $export_sym_check conftest | grep foobar > /dev/null; then
27211 plugin_rdynamic=yes
27212 pluginlibs="-rdynamic"
27213 else
27214 plugin_rdynamic=no
27215 enable_plugin=no
27216 fi
27217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27218 $as_echo "$plugin_rdynamic" >&6; }
27219 fi
27220 else
27221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27222 $as_echo "unable to check" >&6; }
27223 fi
27224
27225 # Check -ldl
27226 saved_LIBS="$LIBS"
27227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27228 $as_echo_n "checking for library containing dlopen... " >&6; }
27229 if test "${ac_cv_search_dlopen+set}" = set; then :
27230 $as_echo_n "(cached) " >&6
27231 else
27232 ac_func_search_save_LIBS=$LIBS
27233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27234 /* end confdefs.h. */
27235
27236 /* Override any GCC internal prototype to avoid an error.
27237 Use char because int might match the return type of a GCC
27238 builtin and then its argument prototype would still apply. */
27239 #ifdef __cplusplus
27240 extern "C"
27241 #endif
27242 char dlopen ();
27243 int
27244 main ()
27245 {
27246 return dlopen ();
27247 ;
27248 return 0;
27249 }
27250 _ACEOF
27251 for ac_lib in '' dl; do
27252 if test -z "$ac_lib"; then
27253 ac_res="none required"
27254 else
27255 ac_res=-l$ac_lib
27256 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27257 fi
27258 if ac_fn_c_try_link "$LINENO"; then :
27259 ac_cv_search_dlopen=$ac_res
27260 fi
27261 rm -f core conftest.err conftest.$ac_objext \
27262 conftest$ac_exeext
27263 if test "${ac_cv_search_dlopen+set}" = set; then :
27264 break
27265 fi
27266 done
27267 if test "${ac_cv_search_dlopen+set}" = set; then :
27268
27269 else
27270 ac_cv_search_dlopen=no
27271 fi
27272 rm conftest.$ac_ext
27273 LIBS=$ac_func_search_save_LIBS
27274 fi
27275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27276 $as_echo "$ac_cv_search_dlopen" >&6; }
27277 ac_res=$ac_cv_search_dlopen
27278 if test "$ac_res" != no; then :
27279 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27280
27281 fi
27282
27283 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27284 pluginlibs="$pluginlibs -ldl"
27285 fi
27286 LIBS="$saved_LIBS"
27287
27288 # Check that we can build shared objects with -fPIC -shared
27289 saved_LDFLAGS="$LDFLAGS"
27290 saved_CFLAGS="$CFLAGS"
27291 case "${host}" in
27292 *-*-darwin*)
27293 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27294 CFLAGS="$CFLAGS -fPIC"
27295 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27296 ;;
27297 *)
27298 CFLAGS="$CFLAGS -fPIC"
27299 LDFLAGS="$LDFLAGS -fPIC -shared"
27300 ;;
27301 esac
27302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27303 $as_echo_n "checking for -fPIC -shared... " >&6; }
27304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27305 /* end confdefs.h. */
27306 extern int X;
27307 int
27308 main ()
27309 {
27310 return X == 0;
27311 ;
27312 return 0;
27313 }
27314 _ACEOF
27315 if ac_fn_c_try_link "$LINENO"; then :
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27317 $as_echo "yes" >&6; }; have_pic_shared=yes
27318 else
27319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27320 $as_echo "no" >&6; }; have_pic_shared=no
27321 fi
27322 rm -f core conftest.err conftest.$ac_objext \
27323 conftest$ac_exeext conftest.$ac_ext
27324 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27325 pluginlibs=
27326 enable_plugin=no
27327 fi
27328 LDFLAGS="$saved_LDFLAGS"
27329 CFLAGS="$saved_CFLAGS"
27330
27331 # If plugin support had been requested but not available, fail.
27332 if test x"$enable_plugin" = x"no" ; then
27333 if test x"$default_plugin" != x"yes"; then
27334 as_fn_error "
27335 Building GCC with plugin support requires a host that supports
27336 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27337 fi
27338 fi
27339 fi
27340
27341
27342
27343 if test x"$enable_plugin" = x"yes"; then
27344
27345 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27346
27347 fi
27348
27349
27350 # Check whether --enable-libquadmath-support was given.
27351 if test "${enable_libquadmath_support+set}" = set; then :
27352 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27353 else
27354 ENABLE_LIBQUADMATH_SUPPORT=yes
27355 fi
27356
27357 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27358
27359 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27360
27361 fi
27362
27363
27364 # Specify what hash style to use by default.
27365
27366 # Check whether --with-linker-hash-style was given.
27367 if test "${with_linker_hash_style+set}" = set; then :
27368 withval=$with_linker_hash_style; case x"$withval" in
27369 xsysv)
27370 LINKER_HASH_STYLE=sysv
27371 ;;
27372 xgnu)
27373 LINKER_HASH_STYLE=gnu
27374 ;;
27375 xboth)
27376 LINKER_HASH_STYLE=both
27377 ;;
27378 *)
27379 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27380 ;;
27381 esac
27382 else
27383 LINKER_HASH_STYLE=''
27384 fi
27385
27386 if test x"${LINKER_HASH_STYLE}" != x; then
27387
27388 cat >>confdefs.h <<_ACEOF
27389 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27390 _ACEOF
27391
27392 fi
27393
27394 # Configure the subdirectories
27395 # AC_CONFIG_SUBDIRS($subdirs)
27396
27397 # Create the Makefile
27398 # and configure language subdirectories
27399 ac_config_files="$ac_config_files $all_outputs"
27400
27401
27402 ac_config_commands="$ac_config_commands default"
27403
27404 cat >confcache <<\_ACEOF
27405 # This file is a shell script that caches the results of configure
27406 # tests run on this system so they can be shared between configure
27407 # scripts and configure runs, see configure's option --config-cache.
27408 # It is not useful on other systems. If it contains results you don't
27409 # want to keep, you may remove or edit it.
27410 #
27411 # config.status only pays attention to the cache file if you give it
27412 # the --recheck option to rerun configure.
27413 #
27414 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27415 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27416 # following values.
27417
27418 _ACEOF
27419
27420 # The following way of writing the cache mishandles newlines in values,
27421 # but we know of no workaround that is simple, portable, and efficient.
27422 # So, we kill variables containing newlines.
27423 # Ultrix sh set writes to stderr and can't be redirected directly,
27424 # and sets the high bit in the cache file unless we assign to the vars.
27425 (
27426 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27427 eval ac_val=\$$ac_var
27428 case $ac_val in #(
27429 *${as_nl}*)
27430 case $ac_var in #(
27431 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27432 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27433 esac
27434 case $ac_var in #(
27435 _ | IFS | as_nl) ;; #(
27436 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27437 *) { eval $ac_var=; unset $ac_var;} ;;
27438 esac ;;
27439 esac
27440 done
27441
27442 (set) 2>&1 |
27443 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27444 *${as_nl}ac_space=\ *)
27445 # `set' does not quote correctly, so add quotes: double-quote
27446 # substitution turns \\\\ into \\, and sed turns \\ into \.
27447 sed -n \
27448 "s/'/'\\\\''/g;
27449 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27450 ;; #(
27451 *)
27452 # `set' quotes correctly as required by POSIX, so do not add quotes.
27453 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27454 ;;
27455 esac |
27456 sort
27457 ) |
27458 sed '
27459 /^ac_cv_env_/b end
27460 t clear
27461 :clear
27462 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27463 t end
27464 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27465 :end' >>confcache
27466 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27467 if test -w "$cache_file"; then
27468 test "x$cache_file" != "x/dev/null" &&
27469 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27470 $as_echo "$as_me: updating cache $cache_file" >&6;}
27471 cat confcache >$cache_file
27472 else
27473 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27474 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27475 fi
27476 fi
27477 rm -f confcache
27478
27479 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27480 # Let make expand exec_prefix.
27481 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27482
27483 DEFS=-DHAVE_CONFIG_H
27484
27485 ac_libobjs=
27486 ac_ltlibobjs=
27487 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27488 # 1. Remove the extension, and $U if already installed.
27489 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27490 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27491 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27492 # will be set to the directory where LIBOBJS objects are built.
27493 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27494 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27495 done
27496 LIBOBJS=$ac_libobjs
27497
27498 LTLIBOBJS=$ac_ltlibobjs
27499
27500
27501
27502
27503 : ${CONFIG_STATUS=./config.status}
27504 ac_write_fail=0
27505 ac_clean_files_save=$ac_clean_files
27506 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27507 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27508 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27509 as_write_fail=0
27510 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27511 #! $SHELL
27512 # Generated by $as_me.
27513 # Run this file to recreate the current configuration.
27514 # Compiler output produced by configure, useful for debugging
27515 # configure, is in config.log if it exists.
27516
27517 debug=false
27518 ac_cs_recheck=false
27519 ac_cs_silent=false
27520
27521 SHELL=\${CONFIG_SHELL-$SHELL}
27522 export SHELL
27523 _ASEOF
27524 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27525 ## -------------------- ##
27526 ## M4sh Initialization. ##
27527 ## -------------------- ##
27528
27529 # Be more Bourne compatible
27530 DUALCASE=1; export DUALCASE # for MKS sh
27531 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27532 emulate sh
27533 NULLCMD=:
27534 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27535 # is contrary to our usage. Disable this feature.
27536 alias -g '${1+"$@"}'='"$@"'
27537 setopt NO_GLOB_SUBST
27538 else
27539 case `(set -o) 2>/dev/null` in #(
27540 *posix*) :
27541 set -o posix ;; #(
27542 *) :
27543 ;;
27544 esac
27545 fi
27546
27547
27548 as_nl='
27549 '
27550 export as_nl
27551 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27552 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27553 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27554 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27555 # Prefer a ksh shell builtin over an external printf program on Solaris,
27556 # but without wasting forks for bash or zsh.
27557 if test -z "$BASH_VERSION$ZSH_VERSION" \
27558 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27559 as_echo='print -r --'
27560 as_echo_n='print -rn --'
27561 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27562 as_echo='printf %s\n'
27563 as_echo_n='printf %s'
27564 else
27565 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27566 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27567 as_echo_n='/usr/ucb/echo -n'
27568 else
27569 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27570 as_echo_n_body='eval
27571 arg=$1;
27572 case $arg in #(
27573 *"$as_nl"*)
27574 expr "X$arg" : "X\\(.*\\)$as_nl";
27575 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27576 esac;
27577 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27578 '
27579 export as_echo_n_body
27580 as_echo_n='sh -c $as_echo_n_body as_echo'
27581 fi
27582 export as_echo_body
27583 as_echo='sh -c $as_echo_body as_echo'
27584 fi
27585
27586 # The user is always right.
27587 if test "${PATH_SEPARATOR+set}" != set; then
27588 PATH_SEPARATOR=:
27589 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27590 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27591 PATH_SEPARATOR=';'
27592 }
27593 fi
27594
27595
27596 # IFS
27597 # We need space, tab and new line, in precisely that order. Quoting is
27598 # there to prevent editors from complaining about space-tab.
27599 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27600 # splitting by setting IFS to empty value.)
27601 IFS=" "" $as_nl"
27602
27603 # Find who we are. Look in the path if we contain no directory separator.
27604 case $0 in #((
27605 *[\\/]* ) as_myself=$0 ;;
27606 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27607 for as_dir in $PATH
27608 do
27609 IFS=$as_save_IFS
27610 test -z "$as_dir" && as_dir=.
27611 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27612 done
27613 IFS=$as_save_IFS
27614
27615 ;;
27616 esac
27617 # We did not find ourselves, most probably we were run as `sh COMMAND'
27618 # in which case we are not to be found in the path.
27619 if test "x$as_myself" = x; then
27620 as_myself=$0
27621 fi
27622 if test ! -f "$as_myself"; then
27623 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27624 exit 1
27625 fi
27626
27627 # Unset variables that we do not need and which cause bugs (e.g. in
27628 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27629 # suppresses any "Segmentation fault" message there. '((' could
27630 # trigger a bug in pdksh 5.2.14.
27631 for as_var in BASH_ENV ENV MAIL MAILPATH
27632 do eval test x\${$as_var+set} = xset \
27633 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27634 done
27635 PS1='$ '
27636 PS2='> '
27637 PS4='+ '
27638
27639 # NLS nuisances.
27640 LC_ALL=C
27641 export LC_ALL
27642 LANGUAGE=C
27643 export LANGUAGE
27644
27645 # CDPATH.
27646 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27647
27648
27649 # as_fn_error ERROR [LINENO LOG_FD]
27650 # ---------------------------------
27651 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27652 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27653 # script with status $?, using 1 if that was 0.
27654 as_fn_error ()
27655 {
27656 as_status=$?; test $as_status -eq 0 && as_status=1
27657 if test "$3"; then
27658 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27659 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27660 fi
27661 $as_echo "$as_me: error: $1" >&2
27662 as_fn_exit $as_status
27663 } # as_fn_error
27664
27665
27666 # as_fn_set_status STATUS
27667 # -----------------------
27668 # Set $? to STATUS, without forking.
27669 as_fn_set_status ()
27670 {
27671 return $1
27672 } # as_fn_set_status
27673
27674 # as_fn_exit STATUS
27675 # -----------------
27676 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27677 as_fn_exit ()
27678 {
27679 set +e
27680 as_fn_set_status $1
27681 exit $1
27682 } # as_fn_exit
27683
27684 # as_fn_unset VAR
27685 # ---------------
27686 # Portably unset VAR.
27687 as_fn_unset ()
27688 {
27689 { eval $1=; unset $1;}
27690 }
27691 as_unset=as_fn_unset
27692 # as_fn_append VAR VALUE
27693 # ----------------------
27694 # Append the text in VALUE to the end of the definition contained in VAR. Take
27695 # advantage of any shell optimizations that allow amortized linear growth over
27696 # repeated appends, instead of the typical quadratic growth present in naive
27697 # implementations.
27698 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27699 eval 'as_fn_append ()
27700 {
27701 eval $1+=\$2
27702 }'
27703 else
27704 as_fn_append ()
27705 {
27706 eval $1=\$$1\$2
27707 }
27708 fi # as_fn_append
27709
27710 # as_fn_arith ARG...
27711 # ------------------
27712 # Perform arithmetic evaluation on the ARGs, and store the result in the
27713 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27714 # must be portable across $(()) and expr.
27715 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27716 eval 'as_fn_arith ()
27717 {
27718 as_val=$(( $* ))
27719 }'
27720 else
27721 as_fn_arith ()
27722 {
27723 as_val=`expr "$@" || test $? -eq 1`
27724 }
27725 fi # as_fn_arith
27726
27727
27728 if expr a : '\(a\)' >/dev/null 2>&1 &&
27729 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27730 as_expr=expr
27731 else
27732 as_expr=false
27733 fi
27734
27735 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27736 as_basename=basename
27737 else
27738 as_basename=false
27739 fi
27740
27741 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27742 as_dirname=dirname
27743 else
27744 as_dirname=false
27745 fi
27746
27747 as_me=`$as_basename -- "$0" ||
27748 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27749 X"$0" : 'X\(//\)$' \| \
27750 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27751 $as_echo X/"$0" |
27752 sed '/^.*\/\([^/][^/]*\)\/*$/{
27753 s//\1/
27754 q
27755 }
27756 /^X\/\(\/\/\)$/{
27757 s//\1/
27758 q
27759 }
27760 /^X\/\(\/\).*/{
27761 s//\1/
27762 q
27763 }
27764 s/.*/./; q'`
27765
27766 # Avoid depending upon Character Ranges.
27767 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27768 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27769 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27770 as_cr_digits='0123456789'
27771 as_cr_alnum=$as_cr_Letters$as_cr_digits
27772
27773 ECHO_C= ECHO_N= ECHO_T=
27774 case `echo -n x` in #(((((
27775 -n*)
27776 case `echo 'xy\c'` in
27777 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27778 xy) ECHO_C='\c';;
27779 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27780 ECHO_T=' ';;
27781 esac;;
27782 *)
27783 ECHO_N='-n';;
27784 esac
27785
27786 rm -f conf$$ conf$$.exe conf$$.file
27787 if test -d conf$$.dir; then
27788 rm -f conf$$.dir/conf$$.file
27789 else
27790 rm -f conf$$.dir
27791 mkdir conf$$.dir 2>/dev/null
27792 fi
27793 if (echo >conf$$.file) 2>/dev/null; then
27794 if ln -s conf$$.file conf$$ 2>/dev/null; then
27795 as_ln_s='ln -s'
27796 # ... but there are two gotchas:
27797 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27798 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27799 # In both cases, we have to default to `cp -p'.
27800 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27801 as_ln_s='cp -p'
27802 elif ln conf$$.file conf$$ 2>/dev/null; then
27803 as_ln_s=ln
27804 else
27805 as_ln_s='cp -p'
27806 fi
27807 else
27808 as_ln_s='cp -p'
27809 fi
27810 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27811 rmdir conf$$.dir 2>/dev/null
27812
27813
27814 # as_fn_mkdir_p
27815 # -------------
27816 # Create "$as_dir" as a directory, including parents if necessary.
27817 as_fn_mkdir_p ()
27818 {
27819
27820 case $as_dir in #(
27821 -*) as_dir=./$as_dir;;
27822 esac
27823 test -d "$as_dir" || eval $as_mkdir_p || {
27824 as_dirs=
27825 while :; do
27826 case $as_dir in #(
27827 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27828 *) as_qdir=$as_dir;;
27829 esac
27830 as_dirs="'$as_qdir' $as_dirs"
27831 as_dir=`$as_dirname -- "$as_dir" ||
27832 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27833 X"$as_dir" : 'X\(//\)[^/]' \| \
27834 X"$as_dir" : 'X\(//\)$' \| \
27835 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27836 $as_echo X"$as_dir" |
27837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27838 s//\1/
27839 q
27840 }
27841 /^X\(\/\/\)[^/].*/{
27842 s//\1/
27843 q
27844 }
27845 /^X\(\/\/\)$/{
27846 s//\1/
27847 q
27848 }
27849 /^X\(\/\).*/{
27850 s//\1/
27851 q
27852 }
27853 s/.*/./; q'`
27854 test -d "$as_dir" && break
27855 done
27856 test -z "$as_dirs" || eval "mkdir $as_dirs"
27857 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27858
27859
27860 } # as_fn_mkdir_p
27861 if mkdir -p . 2>/dev/null; then
27862 as_mkdir_p='mkdir -p "$as_dir"'
27863 else
27864 test -d ./-p && rmdir ./-p
27865 as_mkdir_p=false
27866 fi
27867
27868 if test -x / >/dev/null 2>&1; then
27869 as_test_x='test -x'
27870 else
27871 if ls -dL / >/dev/null 2>&1; then
27872 as_ls_L_option=L
27873 else
27874 as_ls_L_option=
27875 fi
27876 as_test_x='
27877 eval sh -c '\''
27878 if test -d "$1"; then
27879 test -d "$1/.";
27880 else
27881 case $1 in #(
27882 -*)set "./$1";;
27883 esac;
27884 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27885 ???[sx]*):;;*)false;;esac;fi
27886 '\'' sh
27887 '
27888 fi
27889 as_executable_p=$as_test_x
27890
27891 # Sed expression to map a string onto a valid CPP name.
27892 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27893
27894 # Sed expression to map a string onto a valid variable name.
27895 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27896
27897
27898 exec 6>&1
27899 ## ----------------------------------- ##
27900 ## Main body of $CONFIG_STATUS script. ##
27901 ## ----------------------------------- ##
27902 _ASEOF
27903 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27904
27905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27906 # Save the log message, to keep $0 and so on meaningful, and to
27907 # report actual input values of CONFIG_FILES etc. instead of their
27908 # values after options handling.
27909 ac_log="
27910 This file was extended by $as_me, which was
27911 generated by GNU Autoconf 2.64. Invocation command line was
27912
27913 CONFIG_FILES = $CONFIG_FILES
27914 CONFIG_HEADERS = $CONFIG_HEADERS
27915 CONFIG_LINKS = $CONFIG_LINKS
27916 CONFIG_COMMANDS = $CONFIG_COMMANDS
27917 $ $0 $@
27918
27919 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27920 "
27921
27922 _ACEOF
27923
27924 case $ac_config_files in *"
27925 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27926 esac
27927
27928 case $ac_config_headers in *"
27929 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27930 esac
27931
27932
27933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27934 # Files that config.status was made for.
27935 config_files="$ac_config_files"
27936 config_headers="$ac_config_headers"
27937 config_commands="$ac_config_commands"
27938
27939 _ACEOF
27940
27941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27942 ac_cs_usage="\
27943 \`$as_me' instantiates files and other configuration actions
27944 from templates according to the current configuration. Unless the files
27945 and actions are specified as TAGs, all are instantiated by default.
27946
27947 Usage: $0 [OPTION]... [TAG]...
27948
27949 -h, --help print this help, then exit
27950 -V, --version print version number and configuration settings, then exit
27951 -q, --quiet, --silent
27952 do not print progress messages
27953 -d, --debug don't remove temporary files
27954 --recheck update $as_me by reconfiguring in the same conditions
27955 --file=FILE[:TEMPLATE]
27956 instantiate the configuration file FILE
27957 --header=FILE[:TEMPLATE]
27958 instantiate the configuration header FILE
27959
27960 Configuration files:
27961 $config_files
27962
27963 Configuration headers:
27964 $config_headers
27965
27966 Configuration commands:
27967 $config_commands
27968
27969 Report bugs to the package provider."
27970
27971 _ACEOF
27972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27973 ac_cs_version="\\
27974 config.status
27975 configured by $0, generated by GNU Autoconf 2.64,
27976 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27977
27978 Copyright (C) 2009 Free Software Foundation, Inc.
27979 This config.status script is free software; the Free Software Foundation
27980 gives unlimited permission to copy, distribute and modify it."
27981
27982 ac_pwd='$ac_pwd'
27983 srcdir='$srcdir'
27984 AWK='$AWK'
27985 test -n "\$AWK" || AWK=awk
27986 _ACEOF
27987
27988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27989 # The default lists apply if the user does not specify any file.
27990 ac_need_defaults=:
27991 while test $# != 0
27992 do
27993 case $1 in
27994 --*=*)
27995 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27996 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27997 ac_shift=:
27998 ;;
27999 *)
28000 ac_option=$1
28001 ac_optarg=$2
28002 ac_shift=shift
28003 ;;
28004 esac
28005
28006 case $ac_option in
28007 # Handling of the options.
28008 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28009 ac_cs_recheck=: ;;
28010 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28011 $as_echo "$ac_cs_version"; exit ;;
28012 --debug | --debu | --deb | --de | --d | -d )
28013 debug=: ;;
28014 --file | --fil | --fi | --f )
28015 $ac_shift
28016 case $ac_optarg in
28017 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28018 esac
28019 as_fn_append CONFIG_FILES " '$ac_optarg'"
28020 ac_need_defaults=false;;
28021 --header | --heade | --head | --hea )
28022 $ac_shift
28023 case $ac_optarg in
28024 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28025 esac
28026 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28027 ac_need_defaults=false;;
28028 --he | --h)
28029 # Conflict between --help and --header
28030 as_fn_error "ambiguous option: \`$1'
28031 Try \`$0 --help' for more information.";;
28032 --help | --hel | -h )
28033 $as_echo "$ac_cs_usage"; exit ;;
28034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28035 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28036 ac_cs_silent=: ;;
28037
28038 # This is an error.
28039 -*) as_fn_error "unrecognized option: \`$1'
28040 Try \`$0 --help' for more information." ;;
28041
28042 *) as_fn_append ac_config_targets " $1"
28043 ac_need_defaults=false ;;
28044
28045 esac
28046 shift
28047 done
28048
28049 ac_configure_extra_args=
28050
28051 if $ac_cs_silent; then
28052 exec 6>/dev/null
28053 ac_configure_extra_args="$ac_configure_extra_args --silent"
28054 fi
28055
28056 _ACEOF
28057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28058 if \$ac_cs_recheck; then
28059 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28060 shift
28061 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28062 CONFIG_SHELL='$SHELL'
28063 export CONFIG_SHELL
28064 exec "\$@"
28065 fi
28066
28067 _ACEOF
28068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28069 exec 5>>config.log
28070 {
28071 echo
28072 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28073 ## Running $as_me. ##
28074 _ASBOX
28075 $as_echo "$ac_log"
28076 } >&5
28077
28078 _ACEOF
28079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28080 #
28081 # INIT-COMMANDS
28082 #
28083 subdirs='$subdirs'
28084
28085 _ACEOF
28086
28087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28088
28089 # Handling of arguments.
28090 for ac_config_target in $ac_config_targets
28091 do
28092 case $ac_config_target in
28093 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28094 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28095 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28096 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28097 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28098 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28099
28100 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28101 esac
28102 done
28103
28104
28105 # If the user did not use the arguments to specify the items to instantiate,
28106 # then the envvar interface is used. Set only those that are not.
28107 # We use the long form for the default assignment because of an extremely
28108 # bizarre bug on SunOS 4.1.3.
28109 if $ac_need_defaults; then
28110 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28111 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28112 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28113 fi
28114
28115 # Have a temporary directory for convenience. Make it in the build tree
28116 # simply because there is no reason against having it here, and in addition,
28117 # creating and moving files from /tmp can sometimes cause problems.
28118 # Hook for its removal unless debugging.
28119 # Note that there is a small window in which the directory will not be cleaned:
28120 # after its creation but before its name has been assigned to `$tmp'.
28121 $debug ||
28122 {
28123 tmp=
28124 trap 'exit_status=$?
28125 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28126 ' 0
28127 trap 'as_fn_exit 1' 1 2 13 15
28128 }
28129 # Create a (secure) tmp directory for tmp files.
28130
28131 {
28132 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28133 test -n "$tmp" && test -d "$tmp"
28134 } ||
28135 {
28136 tmp=./conf$$-$RANDOM
28137 (umask 077 && mkdir "$tmp")
28138 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28139
28140 # Set up the scripts for CONFIG_FILES section.
28141 # No need to generate them if there are no CONFIG_FILES.
28142 # This happens for instance with `./config.status config.h'.
28143 if test -n "$CONFIG_FILES"; then
28144
28145 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28146 ac_cs_awk_getline=:
28147 ac_cs_awk_pipe_init=
28148 ac_cs_awk_read_file='
28149 while ((getline aline < (F[key])) > 0)
28150 print(aline)
28151 close(F[key])'
28152 ac_cs_awk_pipe_fini=
28153 else
28154 ac_cs_awk_getline=false
28155 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28156 ac_cs_awk_read_file='
28157 print "|#_!!_#|"
28158 print "cat " F[key] " &&"
28159 '$ac_cs_awk_pipe_init
28160 # The final `:' finishes the AND list.
28161 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28162 fi
28163 ac_cr=`echo X | tr X '\015'`
28164 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28165 # But we know of no other shell where ac_cr would be empty at this
28166 # point, so we can use a bashism as a fallback.
28167 if test "x$ac_cr" = x; then
28168 eval ac_cr=\$\'\\r\'
28169 fi
28170 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28171 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28172 ac_cs_awk_cr='\r'
28173 else
28174 ac_cs_awk_cr=$ac_cr
28175 fi
28176
28177 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28178 _ACEOF
28179
28180 # Create commands to substitute file output variables.
28181 {
28182 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28183 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28184 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28185 echo "_ACAWK" &&
28186 echo "_ACEOF"
28187 } >conf$$files.sh &&
28188 . ./conf$$files.sh ||
28189 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28190 rm -f conf$$files.sh
28191
28192 {
28193 echo "cat >conf$$subs.awk <<_ACEOF" &&
28194 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28195 echo "_ACEOF"
28196 } >conf$$subs.sh ||
28197 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28198 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28199 ac_delim='%!_!# '
28200 for ac_last_try in false false false false false :; do
28201 . ./conf$$subs.sh ||
28202 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28203
28204 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28205 if test $ac_delim_n = $ac_delim_num; then
28206 break
28207 elif $ac_last_try; then
28208 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28209 else
28210 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28211 fi
28212 done
28213 rm -f conf$$subs.sh
28214
28215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28216 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28217 _ACEOF
28218 sed -n '
28219 h
28220 s/^/S["/; s/!.*/"]=/
28221 p
28222 g
28223 s/^[^!]*!//
28224 :repl
28225 t repl
28226 s/'"$ac_delim"'$//
28227 t delim
28228 :nl
28229 h
28230 s/\(.\{148\}\).*/\1/
28231 t more1
28232 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28233 p
28234 n
28235 b repl
28236 :more1
28237 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28238 p
28239 g
28240 s/.\{148\}//
28241 t nl
28242 :delim
28243 h
28244 s/\(.\{148\}\).*/\1/
28245 t more2
28246 s/["\\]/\\&/g; s/^/"/; s/$/"/
28247 p
28248 b
28249 :more2
28250 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28251 p
28252 g
28253 s/.\{148\}//
28254 t delim
28255 ' <conf$$subs.awk | sed '
28256 /^[^""]/{
28257 N
28258 s/\n//
28259 }
28260 ' >>$CONFIG_STATUS || ac_write_fail=1
28261 rm -f conf$$subs.awk
28262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28263 _ACAWK
28264 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28265 for (key in S) S_is_set[key] = 1
28266 FS = "\a"
28267 \$ac_cs_awk_pipe_init
28268 }
28269 {
28270 line = $ 0
28271 nfields = split(line, field, "@")
28272 substed = 0
28273 len = length(field[1])
28274 for (i = 2; i < nfields; i++) {
28275 key = field[i]
28276 keylen = length(key)
28277 if (S_is_set[key]) {
28278 value = S[key]
28279 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28280 len += length(value) + length(field[++i])
28281 substed = 1
28282 } else
28283 len += 1 + keylen
28284 }
28285 if (nfields == 3 && !substed) {
28286 key = field[2]
28287 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28288 \$ac_cs_awk_read_file
28289 next
28290 }
28291 }
28292 print line
28293 }
28294 \$ac_cs_awk_pipe_fini
28295 _ACAWK
28296 _ACEOF
28297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28298 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28299 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28300 else
28301 cat
28302 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28303 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28304 _ACEOF
28305
28306 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28307 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28308 # trailing colons and then remove the whole line if VPATH becomes empty
28309 # (actually we leave an empty line to preserve line numbers).
28310 if test "x$srcdir" = x.; then
28311 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28312 s/:*\$(srcdir):*/:/
28313 s/:*\${srcdir}:*/:/
28314 s/:*@srcdir@:*/:/
28315 s/^\([^=]*=[ ]*\):*/\1/
28316 s/:*$//
28317 s/^[^=]*=[ ]*$//
28318 }'
28319 fi
28320
28321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28322 fi # test -n "$CONFIG_FILES"
28323
28324 # Set up the scripts for CONFIG_HEADERS section.
28325 # No need to generate them if there are no CONFIG_HEADERS.
28326 # This happens for instance with `./config.status Makefile'.
28327 if test -n "$CONFIG_HEADERS"; then
28328 cat >"$tmp/defines.awk" <<\_ACAWK ||
28329 BEGIN {
28330 _ACEOF
28331
28332 # Transform confdefs.h into an awk script `defines.awk', embedded as
28333 # here-document in config.status, that substitutes the proper values into
28334 # config.h.in to produce config.h.
28335
28336 # Create a delimiter string that does not exist in confdefs.h, to ease
28337 # handling of long lines.
28338 ac_delim='%!_!# '
28339 for ac_last_try in false false :; do
28340 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28341 if test -z "$ac_t"; then
28342 break
28343 elif $ac_last_try; then
28344 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28345 else
28346 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28347 fi
28348 done
28349
28350 # For the awk script, D is an array of macro values keyed by name,
28351 # likewise P contains macro parameters if any. Preserve backslash
28352 # newline sequences.
28353
28354 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28355 sed -n '
28356 s/.\{148\}/&'"$ac_delim"'/g
28357 t rset
28358 :rset
28359 s/^[ ]*#[ ]*define[ ][ ]*/ /
28360 t def
28361 d
28362 :def
28363 s/\\$//
28364 t bsnl
28365 s/["\\]/\\&/g
28366 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28367 D["\1"]=" \3"/p
28368 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28369 d
28370 :bsnl
28371 s/["\\]/\\&/g
28372 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28373 D["\1"]=" \3\\\\\\n"\\/p
28374 t cont
28375 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28376 t cont
28377 d
28378 :cont
28379 n
28380 s/.\{148\}/&'"$ac_delim"'/g
28381 t clear
28382 :clear
28383 s/\\$//
28384 t bsnlc
28385 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28386 d
28387 :bsnlc
28388 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28389 b cont
28390 ' <confdefs.h | sed '
28391 s/'"$ac_delim"'/"\\\
28392 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28393
28394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28395 for (key in D) D_is_set[key] = 1
28396 FS = "\a"
28397 }
28398 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28399 line = \$ 0
28400 split(line, arg, " ")
28401 if (arg[1] == "#") {
28402 defundef = arg[2]
28403 mac1 = arg[3]
28404 } else {
28405 defundef = substr(arg[1], 2)
28406 mac1 = arg[2]
28407 }
28408 split(mac1, mac2, "(") #)
28409 macro = mac2[1]
28410 prefix = substr(line, 1, index(line, defundef) - 1)
28411 if (D_is_set[macro]) {
28412 # Preserve the white space surrounding the "#".
28413 print prefix "define", macro P[macro] D[macro]
28414 next
28415 } else {
28416 # Replace #undef with comments. This is necessary, for example,
28417 # in the case of _POSIX_SOURCE, which is predefined and required
28418 # on some systems where configure will not decide to define it.
28419 if (defundef == "undef") {
28420 print "/*", prefix defundef, macro, "*/"
28421 next
28422 }
28423 }
28424 }
28425 { print }
28426 _ACAWK
28427 _ACEOF
28428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28429 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28430 fi # test -n "$CONFIG_HEADERS"
28431
28432
28433 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28434 shift
28435 for ac_tag
28436 do
28437 case $ac_tag in
28438 :[FHLC]) ac_mode=$ac_tag; continue;;
28439 esac
28440 case $ac_mode$ac_tag in
28441 :[FHL]*:*);;
28442 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28443 :[FH]-) ac_tag=-:-;;
28444 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28445 esac
28446 ac_save_IFS=$IFS
28447 IFS=:
28448 set x $ac_tag
28449 IFS=$ac_save_IFS
28450 shift
28451 ac_file=$1
28452 shift
28453
28454 case $ac_mode in
28455 :L) ac_source=$1;;
28456 :[FH])
28457 ac_file_inputs=
28458 for ac_f
28459 do
28460 case $ac_f in
28461 -) ac_f="$tmp/stdin";;
28462 *) # Look for the file first in the build tree, then in the source tree
28463 # (if the path is not absolute). The absolute path cannot be DOS-style,
28464 # because $ac_f cannot contain `:'.
28465 test -f "$ac_f" ||
28466 case $ac_f in
28467 [\\/$]*) false;;
28468 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28469 esac ||
28470 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28471 esac
28472 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28473 as_fn_append ac_file_inputs " '$ac_f'"
28474 done
28475
28476 # Let's still pretend it is `configure' which instantiates (i.e., don't
28477 # use $as_me), people would be surprised to read:
28478 # /* config.h. Generated by config.status. */
28479 configure_input='Generated from '`
28480 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28481 `' by configure.'
28482 if test x"$ac_file" != x-; then
28483 configure_input="$ac_file. $configure_input"
28484 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28485 $as_echo "$as_me: creating $ac_file" >&6;}
28486 fi
28487 # Neutralize special characters interpreted by sed in replacement strings.
28488 case $configure_input in #(
28489 *\&* | *\|* | *\\* )
28490 ac_sed_conf_input=`$as_echo "$configure_input" |
28491 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28492 *) ac_sed_conf_input=$configure_input;;
28493 esac
28494
28495 case $ac_tag in
28496 *:-:* | *:-) cat >"$tmp/stdin" \
28497 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28498 esac
28499 ;;
28500 esac
28501
28502 ac_dir=`$as_dirname -- "$ac_file" ||
28503 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28504 X"$ac_file" : 'X\(//\)[^/]' \| \
28505 X"$ac_file" : 'X\(//\)$' \| \
28506 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28507 $as_echo X"$ac_file" |
28508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28509 s//\1/
28510 q
28511 }
28512 /^X\(\/\/\)[^/].*/{
28513 s//\1/
28514 q
28515 }
28516 /^X\(\/\/\)$/{
28517 s//\1/
28518 q
28519 }
28520 /^X\(\/\).*/{
28521 s//\1/
28522 q
28523 }
28524 s/.*/./; q'`
28525 as_dir="$ac_dir"; as_fn_mkdir_p
28526 ac_builddir=.
28527
28528 case "$ac_dir" in
28529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28530 *)
28531 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28532 # A ".." for each directory in $ac_dir_suffix.
28533 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28534 case $ac_top_builddir_sub in
28535 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28536 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28537 esac ;;
28538 esac
28539 ac_abs_top_builddir=$ac_pwd
28540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28541 # for backward compatibility:
28542 ac_top_builddir=$ac_top_build_prefix
28543
28544 case $srcdir in
28545 .) # We are building in place.
28546 ac_srcdir=.
28547 ac_top_srcdir=$ac_top_builddir_sub
28548 ac_abs_top_srcdir=$ac_pwd ;;
28549 [\\/]* | ?:[\\/]* ) # Absolute name.
28550 ac_srcdir=$srcdir$ac_dir_suffix;
28551 ac_top_srcdir=$srcdir
28552 ac_abs_top_srcdir=$srcdir ;;
28553 *) # Relative name.
28554 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28555 ac_top_srcdir=$ac_top_build_prefix$srcdir
28556 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28557 esac
28558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28559
28560
28561 case $ac_mode in
28562 :F)
28563 #
28564 # CONFIG_FILE
28565 #
28566
28567 _ACEOF
28568
28569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28570 # If the template does not know about datarootdir, expand it.
28571 # FIXME: This hack should be removed a few years after 2.60.
28572 ac_datarootdir_hack=; ac_datarootdir_seen=
28573 ac_sed_dataroot='
28574 /datarootdir/ {
28575 p
28576 q
28577 }
28578 /@datadir@/p
28579 /@docdir@/p
28580 /@infodir@/p
28581 /@localedir@/p
28582 /@mandir@/p'
28583 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28584 *datarootdir*) ac_datarootdir_seen=yes;;
28585 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28587 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28588 _ACEOF
28589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28590 ac_datarootdir_hack='
28591 s&@datadir@&$datadir&g
28592 s&@docdir@&$docdir&g
28593 s&@infodir@&$infodir&g
28594 s&@localedir@&$localedir&g
28595 s&@mandir@&$mandir&g
28596 s&\\\${datarootdir}&$datarootdir&g' ;;
28597 esac
28598 _ACEOF
28599
28600 # Neutralize VPATH when `$srcdir' = `.'.
28601 # Shell code in configure.ac might set extrasub.
28602 # FIXME: do we really want to maintain this feature?
28603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28604 ac_sed_extra="$ac_vpsub
28605 $extrasub
28606 _ACEOF
28607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28608 :t
28609 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28610 s|@configure_input@|$ac_sed_conf_input|;t t
28611 s&@top_builddir@&$ac_top_builddir_sub&;t t
28612 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28613 s&@srcdir@&$ac_srcdir&;t t
28614 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28615 s&@top_srcdir@&$ac_top_srcdir&;t t
28616 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28617 s&@builddir@&$ac_builddir&;t t
28618 s&@abs_builddir@&$ac_abs_builddir&;t t
28619 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28620 $ac_datarootdir_hack
28621 "
28622 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28623 if $ac_cs_awk_getline; then
28624 $AWK -f "$tmp/subs.awk"
28625 else
28626 $AWK -f "$tmp/subs.awk" | $SHELL
28627 fi >$tmp/out \
28628 || as_fn_error "could not create $ac_file" "$LINENO" 5
28629
28630 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28631 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28632 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28634 which seems to be undefined. Please make sure it is defined." >&5
28635 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28636 which seems to be undefined. Please make sure it is defined." >&2;}
28637
28638 rm -f "$tmp/stdin"
28639 case $ac_file in
28640 -) cat "$tmp/out" && rm -f "$tmp/out";;
28641 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28642 esac \
28643 || as_fn_error "could not create $ac_file" "$LINENO" 5
28644 ;;
28645 :H)
28646 #
28647 # CONFIG_HEADER
28648 #
28649 if test x"$ac_file" != x-; then
28650 {
28651 $as_echo "/* $configure_input */" \
28652 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28653 } >"$tmp/config.h" \
28654 || as_fn_error "could not create $ac_file" "$LINENO" 5
28655 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28656 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28657 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28658 else
28659 rm -f "$ac_file"
28660 mv "$tmp/config.h" "$ac_file" \
28661 || as_fn_error "could not create $ac_file" "$LINENO" 5
28662 fi
28663 else
28664 $as_echo "/* $configure_input */" \
28665 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28666 || as_fn_error "could not create -" "$LINENO" 5
28667 fi
28668 ;;
28669
28670 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28671 $as_echo "$as_me: executing $ac_file commands" >&6;}
28672 ;;
28673 esac
28674
28675
28676 case $ac_file$ac_mode in
28677 "as":F) chmod +x as ;;
28678 "collect-ld":F) chmod +x collect-ld ;;
28679 "nm":F) chmod +x nm ;;
28680 "default":C)
28681 case ${CONFIG_HEADERS} in
28682 *auto-host.h:config.in*)
28683 echo > cstamp-h ;;
28684 esac
28685 # Make sure all the subdirs exist.
28686 for d in $subdirs doc build common c-family
28687 do
28688 test -d $d || mkdir $d
28689 done
28690 ;;
28691
28692 esac
28693 done # for ac_tag
28694
28695
28696 as_fn_exit 0
28697 _ACEOF
28698 ac_clean_files=$ac_clean_files_save
28699
28700 test $ac_write_fail = 0 ||
28701 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28702
28703
28704 # configure is writing to config.log, and then calls config.status.
28705 # config.status does its own redirection, appending to config.log.
28706 # Unfortunately, on DOS this fails, as config.log is still kept open
28707 # by configure, so config.status won't be able to write to it; its
28708 # output is simply discarded. So we exec the FD to /dev/null,
28709 # effectively closing config.log, so it can be properly (re)opened and
28710 # appended to by config.status. When coming back to configure, we
28711 # need to make the FD available again.
28712 if test "$no_create" != yes; then
28713 ac_cs_success=:
28714 ac_config_status_args=
28715 test "$silent" = yes &&
28716 ac_config_status_args="$ac_config_status_args --quiet"
28717 exec 5>/dev/null
28718 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28719 exec 5>>config.log
28720 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28721 # would make configure fail if this is the last instruction.
28722 $ac_cs_success || as_fn_exit $?
28723 fi
28724 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28726 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28727 fi
28728
28729