Fix compilation of build/*.o when using C++.
[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_CXXFLAGS
707 BUILD_CFLAGS
708 CXX_FOR_BUILD
709 CC_FOR_BUILD
710 inhibit_libc
711 SYSTEM_HEADER_DIR
712 ALL
713 CROSS
714 CATOBJEXT
715 GENCAT
716 INSTOBJEXT
717 DATADIRNAME
718 CATALOGS
719 POSUB
720 GMSGFMT
721 XGETTEXT
722 INCINTL
723 LIBINTL_DEP
724 LIBINTL
725 USE_NLS
726 extra_opt_files
727 extra_modes_file
728 NATIVE_SYSTEM_HEADER_DIR
729 objext
730 manext
731 LIBICONV_DEP
732 LTLIBICONV
733 LIBICONV
734 LDEXP_LIB
735 EXTRA_GCC_LIBS
736 GNAT_LIBEXC
737 COLLECT2_LIBS
738 CXXCPP
739 AR
740 NM
741 BISON
742 FLEX
743 GENERATED_MANPAGES
744 BUILD_INFO
745 MAKEINFO
746 have_mktemp_command
747 make_compare_target
748 INSTALL_DATA
749 INSTALL_PROGRAM
750 INSTALL
751 ranlib_flags
752 RANLIB
753 LN
754 LN_S
755 AWK
756 SET_MAKE
757 REPORT_BUGS_TEXI
758 REPORT_BUGS_TO
759 PKGVERSION
760 CONFIGURE_SPECS
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
763 TARGET_SYSTEM_ROOT
764 SYSROOT_CFLAGS_FOR_TARGET
765 enable_shared
766 enable_fixed_point
767 enable_decimal_float
768 enable_multilib
769 ENABLE_BUILD_WITH_CXX
770 coverage_flags
771 valgrind_command
772 valgrind_path_defines
773 valgrind_path
774 TREEBROWSER
775 nocommon_flag
776 noexception_flags
777 warn_cxxflags
778 warn_cflags
779 c_strict_warn
780 strict_warn
781 c_loose_warn
782 loose_warn
783 EGREP
784 GREP
785 CPP
786 PICFLAG_FOR_TARGET
787 OUTPUT_OPTION
788 NO_MINUS_C_MINUS_O
789 GNATMAKE
790 GNATBIND
791 ac_ct_CXX
792 CXXFLAGS
793 CXX
794 OBJEXT
795 EXEEXT
796 ac_ct_CC
797 CPPFLAGS
798 LDFLAGS
799 CFLAGS
800 CC
801 GENINSRC
802 target_subdir
803 host_subdir
804 build_subdir
805 build_libsubdir
806 target_noncanonical
807 target_os
808 target_vendor
809 target_cpu
810 target
811 host_os
812 host_vendor
813 host_cpu
814 host
815 build_os
816 build_vendor
817 build_cpu
818 build
819 target_alias
820 host_alias
821 build_alias
822 LIBS
823 ECHO_T
824 ECHO_N
825 ECHO_C
826 DEFS
827 mandir
828 localedir
829 libdir
830 psdir
831 pdfdir
832 dvidir
833 htmldir
834 infodir
835 docdir
836 oldincludedir
837 includedir
838 localstatedir
839 sharedstatedir
840 sysconfdir
841 datadir
842 datarootdir
843 libexecdir
844 sbindir
845 bindir
846 program_transform_name
847 prefix
848 exec_prefix
849 PACKAGE_URL
850 PACKAGE_BUGREPORT
851 PACKAGE_STRING
852 PACKAGE_VERSION
853 PACKAGE_TARNAME
854 PACKAGE_NAME
855 PATH_SEPARATOR
856 SHELL'
857 ac_subst_files='option_includes
858 language_hooks'
859 ac_user_opts='
860 enable_option_checking
861 with_build_libsubdir
862 with_local_prefix
863 with_gxx_include_dir
864 with_cpp_install_dir
865 enable_generated_files_in_srcdir
866 with_gnu_ld
867 with_ld
868 with_demangler_in_ld
869 with_gnu_as
870 with_as
871 enable_largefile
872 enable_werror_always
873 enable_checking
874 enable_coverage
875 enable_gather_detailed_mem_stats
876 enable_build_with_cxx
877 with_stabs
878 enable_multilib
879 enable___cxa_atexit
880 enable_decimal_float
881 enable_fixed_point
882 enable_threads
883 enable_tls
884 enable_objc_gc
885 with_dwarf2
886 enable_shared
887 with_native_system_header_dir
888 with_build_sysroot
889 with_sysroot
890 with_specs
891 with_pkgversion
892 with_bugurl
893 enable_languages
894 with_multilib_list
895 enable_rpath
896 with_libiconv_prefix
897 enable_sjlj_exceptions
898 enable_secureplt
899 enable_leading_mingw64_underscores
900 enable_cld
901 enable_frame_pointer
902 enable_win32_registry
903 enable_static
904 with_pic
905 enable_fast_install
906 enable_libtool_lock
907 with_plugin_ld
908 enable_gnu_indirect_function
909 enable_initfini_array
910 enable_comdat
911 enable_gnu_unique_object
912 enable_linker_build_id
913 with_long_double_128
914 with_gc
915 with_system_zlib
916 enable_maintainer_mode
917 enable_version_specific_runtime_libs
918 enable_plugin
919 enable_libquadmath_support
920 with_linker_hash_style
921 '
922 ac_precious_vars='build_alias
923 host_alias
924 target_alias
925 CC
926 CFLAGS
927 LDFLAGS
928 LIBS
929 CPPFLAGS
930 CXX
931 CXXFLAGS
932 CCC
933 CPP
934 CXXCPP
935 GMPLIBS
936 GMPINC
937 PPLLIBS
938 PPLINC
939 CLOOGLIBS
940 CLOOGINC'
941
942
943 # Initialize some variables set by options.
944 ac_init_help=
945 ac_init_version=false
946 ac_unrecognized_opts=
947 ac_unrecognized_sep=
948 # The variables have the same names as the options, with
949 # dashes changed to underlines.
950 cache_file=/dev/null
951 exec_prefix=NONE
952 no_create=
953 no_recursion=
954 prefix=NONE
955 program_prefix=NONE
956 program_suffix=NONE
957 program_transform_name=s,x,x,
958 silent=
959 site=
960 srcdir=
961 verbose=
962 x_includes=NONE
963 x_libraries=NONE
964
965 # Installation directory options.
966 # These are left unexpanded so users can "make install exec_prefix=/foo"
967 # and all the variables that are supposed to be based on exec_prefix
968 # by default will actually change.
969 # Use braces instead of parens because sh, perl, etc. also accept them.
970 # (The list follows the same order as the GNU Coding Standards.)
971 bindir='${exec_prefix}/bin'
972 sbindir='${exec_prefix}/sbin'
973 libexecdir='${exec_prefix}/libexec'
974 datarootdir='${prefix}/share'
975 datadir='${datarootdir}'
976 sysconfdir='${prefix}/etc'
977 sharedstatedir='${prefix}/com'
978 localstatedir='${prefix}/var'
979 includedir='${prefix}/include'
980 oldincludedir='/usr/include'
981 docdir='${datarootdir}/doc/${PACKAGE}'
982 infodir='${datarootdir}/info'
983 htmldir='${docdir}'
984 dvidir='${docdir}'
985 pdfdir='${docdir}'
986 psdir='${docdir}'
987 libdir='${exec_prefix}/lib'
988 localedir='${datarootdir}/locale'
989 mandir='${datarootdir}/man'
990
991 ac_prev=
992 ac_dashdash=
993 for ac_option
994 do
995 # If the previous option needs an argument, assign it.
996 if test -n "$ac_prev"; then
997 eval $ac_prev=\$ac_option
998 ac_prev=
999 continue
1000 fi
1001
1002 case $ac_option in
1003 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004 *) ac_optarg=yes ;;
1005 esac
1006
1007 # Accept the important Cygnus configure options, so we can diagnose typos.
1008
1009 case $ac_dashdash$ac_option in
1010 --)
1011 ac_dashdash=yes ;;
1012
1013 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1014 ac_prev=bindir ;;
1015 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016 bindir=$ac_optarg ;;
1017
1018 -build | --build | --buil | --bui | --bu)
1019 ac_prev=build_alias ;;
1020 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021 build_alias=$ac_optarg ;;
1022
1023 -cache-file | --cache-file | --cache-fil | --cache-fi \
1024 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025 ac_prev=cache_file ;;
1026 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028 cache_file=$ac_optarg ;;
1029
1030 --config-cache | -C)
1031 cache_file=config.cache ;;
1032
1033 -datadir | --datadir | --datadi | --datad)
1034 ac_prev=datadir ;;
1035 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036 datadir=$ac_optarg ;;
1037
1038 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039 | --dataroo | --dataro | --datar)
1040 ac_prev=datarootdir ;;
1041 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043 datarootdir=$ac_optarg ;;
1044
1045 -disable-* | --disable-*)
1046 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 as_fn_error "invalid feature name: $ac_useropt"
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1053 *"
1054 "enable_$ac_useropt"
1055 "*) ;;
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1058 esac
1059 eval enable_$ac_useropt=no ;;
1060
1061 -docdir | --docdir | --docdi | --doc | --do)
1062 ac_prev=docdir ;;
1063 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064 docdir=$ac_optarg ;;
1065
1066 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067 ac_prev=dvidir ;;
1068 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069 dvidir=$ac_optarg ;;
1070
1071 -enable-* | --enable-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 as_fn_error "invalid feature name: $ac_useropt"
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1079 *"
1080 "enable_$ac_useropt"
1081 "*) ;;
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1084 esac
1085 eval enable_$ac_useropt=\$ac_optarg ;;
1086
1087 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089 | --exec | --exe | --ex)
1090 ac_prev=exec_prefix ;;
1091 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093 | --exec=* | --exe=* | --ex=*)
1094 exec_prefix=$ac_optarg ;;
1095
1096 -gas | --gas | --ga | --g)
1097 # Obsolete; use --with-gas.
1098 with_gas=yes ;;
1099
1100 -help | --help | --hel | --he | -h)
1101 ac_init_help=long ;;
1102 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103 ac_init_help=recursive ;;
1104 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105 ac_init_help=short ;;
1106
1107 -host | --host | --hos | --ho)
1108 ac_prev=host_alias ;;
1109 -host=* | --host=* | --hos=* | --ho=*)
1110 host_alias=$ac_optarg ;;
1111
1112 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113 ac_prev=htmldir ;;
1114 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115 | --ht=*)
1116 htmldir=$ac_optarg ;;
1117
1118 -includedir | --includedir | --includedi | --included | --include \
1119 | --includ | --inclu | --incl | --inc)
1120 ac_prev=includedir ;;
1121 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122 | --includ=* | --inclu=* | --incl=* | --inc=*)
1123 includedir=$ac_optarg ;;
1124
1125 -infodir | --infodir | --infodi | --infod | --info | --inf)
1126 ac_prev=infodir ;;
1127 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128 infodir=$ac_optarg ;;
1129
1130 -libdir | --libdir | --libdi | --libd)
1131 ac_prev=libdir ;;
1132 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133 libdir=$ac_optarg ;;
1134
1135 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136 | --libexe | --libex | --libe)
1137 ac_prev=libexecdir ;;
1138 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139 | --libexe=* | --libex=* | --libe=*)
1140 libexecdir=$ac_optarg ;;
1141
1142 -localedir | --localedir | --localedi | --localed | --locale)
1143 ac_prev=localedir ;;
1144 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145 localedir=$ac_optarg ;;
1146
1147 -localstatedir | --localstatedir | --localstatedi | --localstated \
1148 | --localstate | --localstat | --localsta | --localst | --locals)
1149 ac_prev=localstatedir ;;
1150 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1151 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1152 localstatedir=$ac_optarg ;;
1153
1154 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155 ac_prev=mandir ;;
1156 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157 mandir=$ac_optarg ;;
1158
1159 -nfp | --nfp | --nf)
1160 # Obsolete; use --without-fp.
1161 with_fp=no ;;
1162
1163 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164 | --no-cr | --no-c | -n)
1165 no_create=yes ;;
1166
1167 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1169 no_recursion=yes ;;
1170
1171 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173 | --oldin | --oldi | --old | --ol | --o)
1174 ac_prev=oldincludedir ;;
1175 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178 oldincludedir=$ac_optarg ;;
1179
1180 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181 ac_prev=prefix ;;
1182 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183 prefix=$ac_optarg ;;
1184
1185 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186 | --program-pre | --program-pr | --program-p)
1187 ac_prev=program_prefix ;;
1188 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190 program_prefix=$ac_optarg ;;
1191
1192 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193 | --program-suf | --program-su | --program-s)
1194 ac_prev=program_suffix ;;
1195 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197 program_suffix=$ac_optarg ;;
1198
1199 -program-transform-name | --program-transform-name \
1200 | --program-transform-nam | --program-transform-na \
1201 | --program-transform-n | --program-transform- \
1202 | --program-transform | --program-transfor \
1203 | --program-transfo | --program-transf \
1204 | --program-trans | --program-tran \
1205 | --progr-tra | --program-tr | --program-t)
1206 ac_prev=program_transform_name ;;
1207 -program-transform-name=* | --program-transform-name=* \
1208 | --program-transform-nam=* | --program-transform-na=* \
1209 | --program-transform-n=* | --program-transform-=* \
1210 | --program-transform=* | --program-transfor=* \
1211 | --program-transfo=* | --program-transf=* \
1212 | --program-trans=* | --program-tran=* \
1213 | --progr-tra=* | --program-tr=* | --program-t=*)
1214 program_transform_name=$ac_optarg ;;
1215
1216 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217 ac_prev=pdfdir ;;
1218 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219 pdfdir=$ac_optarg ;;
1220
1221 -psdir | --psdir | --psdi | --psd | --ps)
1222 ac_prev=psdir ;;
1223 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1224 psdir=$ac_optarg ;;
1225
1226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227 | -silent | --silent | --silen | --sile | --sil)
1228 silent=yes ;;
1229
1230 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231 ac_prev=sbindir ;;
1232 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233 | --sbi=* | --sb=*)
1234 sbindir=$ac_optarg ;;
1235
1236 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238 | --sharedst | --shareds | --shared | --share | --shar \
1239 | --sha | --sh)
1240 ac_prev=sharedstatedir ;;
1241 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244 | --sha=* | --sh=*)
1245 sharedstatedir=$ac_optarg ;;
1246
1247 -site | --site | --sit)
1248 ac_prev=site ;;
1249 -site=* | --site=* | --sit=*)
1250 site=$ac_optarg ;;
1251
1252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253 ac_prev=srcdir ;;
1254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255 srcdir=$ac_optarg ;;
1256
1257 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258 | --syscon | --sysco | --sysc | --sys | --sy)
1259 ac_prev=sysconfdir ;;
1260 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262 sysconfdir=$ac_optarg ;;
1263
1264 -target | --target | --targe | --targ | --tar | --ta | --t)
1265 ac_prev=target_alias ;;
1266 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267 target_alias=$ac_optarg ;;
1268
1269 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270 verbose=yes ;;
1271
1272 -version | --version | --versio | --versi | --vers | -V)
1273 ac_init_version=: ;;
1274
1275 -with-* | --with-*)
1276 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279 as_fn_error "invalid package name: $ac_useropt"
1280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1283 *"
1284 "with_$ac_useropt"
1285 "*) ;;
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
1288 esac
1289 eval with_$ac_useropt=\$ac_optarg ;;
1290
1291 -without-* | --without-*)
1292 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295 as_fn_error "invalid package name: $ac_useropt"
1296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1299 *"
1300 "with_$ac_useropt"
1301 "*) ;;
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1304 esac
1305 eval with_$ac_useropt=no ;;
1306
1307 --x)
1308 # Obsolete; use --with-x.
1309 with_x=yes ;;
1310
1311 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312 | --x-incl | --x-inc | --x-in | --x-i)
1313 ac_prev=x_includes ;;
1314 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316 x_includes=$ac_optarg ;;
1317
1318 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320 ac_prev=x_libraries ;;
1321 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323 x_libraries=$ac_optarg ;;
1324
1325 -*) as_fn_error "unrecognized option: \`$ac_option'
1326 Try \`$0 --help' for more information."
1327 ;;
1328
1329 *=*)
1330 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 case $ac_envvar in #(
1333 '' | [0-9]* | *[!_$as_cr_alnum]* )
1334 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1335 esac
1336 eval $ac_envvar=\$ac_optarg
1337 export $ac_envvar ;;
1338
1339 *)
1340 # FIXME: should be removed in autoconf 3.0.
1341 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1345 ;;
1346
1347 esac
1348 done
1349
1350 if test -n "$ac_prev"; then
1351 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352 as_fn_error "missing argument to $ac_option"
1353 fi
1354
1355 if test -n "$ac_unrecognized_opts"; then
1356 case $enable_option_checking in
1357 no) ;;
1358 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1359 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360 esac
1361 fi
1362
1363 # Check all directory arguments for consistency.
1364 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365 datadir sysconfdir sharedstatedir localstatedir includedir \
1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367 libdir localedir mandir
1368 do
1369 eval ac_val=\$$ac_var
1370 # Remove trailing slashes.
1371 case $ac_val in
1372 */ )
1373 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374 eval $ac_var=\$ac_val;;
1375 esac
1376 # Be sure to have absolute directory names.
1377 case $ac_val in
1378 [\\/$]* | ?:[\\/]* ) continue;;
1379 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380 esac
1381 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1382 done
1383
1384 # There might be people who depend on the old broken behavior: `$host'
1385 # used to hold the argument of --host etc.
1386 # FIXME: To remove some day.
1387 build=$build_alias
1388 host=$host_alias
1389 target=$target_alias
1390
1391 # FIXME: To remove some day.
1392 if test "x$host_alias" != x; then
1393 if test "x$build_alias" = x; then
1394 cross_compiling=maybe
1395 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1396 If a cross compiler is detected then cross compile mode will be used." >&2
1397 elif test "x$build_alias" != "x$host_alias"; then
1398 cross_compiling=yes
1399 fi
1400 fi
1401
1402 ac_tool_prefix=
1403 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404
1405 test "$silent" = yes && exec 6>/dev/null
1406
1407
1408 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1409 ac_ls_di=`ls -di .` &&
1410 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1411 as_fn_error "working directory cannot be determined"
1412 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1413 as_fn_error "pwd does not report name of working directory"
1414
1415
1416 # Find the source files, if location was not specified.
1417 if test -z "$srcdir"; then
1418 ac_srcdir_defaulted=yes
1419 # Try the directory containing this script, then the parent directory.
1420 ac_confdir=`$as_dirname -- "$as_myself" ||
1421 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1422 X"$as_myself" : 'X\(//\)[^/]' \| \
1423 X"$as_myself" : 'X\(//\)$' \| \
1424 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1425 $as_echo X"$as_myself" |
1426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1427 s//\1/
1428 q
1429 }
1430 /^X\(\/\/\)[^/].*/{
1431 s//\1/
1432 q
1433 }
1434 /^X\(\/\/\)$/{
1435 s//\1/
1436 q
1437 }
1438 /^X\(\/\).*/{
1439 s//\1/
1440 q
1441 }
1442 s/.*/./; q'`
1443 srcdir=$ac_confdir
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1445 srcdir=..
1446 fi
1447 else
1448 ac_srcdir_defaulted=no
1449 fi
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1452 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1453 fi
1454 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1455 ac_abs_confdir=`(
1456 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1457 pwd)`
1458 # When building in place, set srcdir=.
1459 if test "$ac_abs_confdir" = "$ac_pwd"; then
1460 srcdir=.
1461 fi
1462 # Remove unnecessary trailing slashes from srcdir.
1463 # Double slashes in file names in object file debugging info
1464 # mess up M-x gdb in Emacs.
1465 case $srcdir in
1466 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467 esac
1468 for ac_var in $ac_precious_vars; do
1469 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_env_${ac_var}_value=\$${ac_var}
1471 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473 done
1474
1475 #
1476 # Report the --help message.
1477 #
1478 if test "$ac_init_help" = "long"; then
1479 # Omit some internal or obsolete options to make the list less imposing.
1480 # This message is too long to be a string in the A/UX 3.1 sh.
1481 cat <<_ACEOF
1482 \`configure' configures this package to adapt to many kinds of systems.
1483
1484 Usage: $0 [OPTION]... [VAR=VALUE]...
1485
1486 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487 VAR=VALUE. See below for descriptions of some of the useful variables.
1488
1489 Defaults for the options are specified in brackets.
1490
1491 Configuration:
1492 -h, --help display this help and exit
1493 --help=short display options specific to this package
1494 --help=recursive display the short help of all the included packages
1495 -V, --version display version information and exit
1496 -q, --quiet, --silent do not print \`checking...' messages
1497 --cache-file=FILE cache test results in FILE [disabled]
1498 -C, --config-cache alias for \`--cache-file=config.cache'
1499 -n, --no-create do not create output files
1500 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1501
1502 Installation directories:
1503 --prefix=PREFIX install architecture-independent files in PREFIX
1504 [$ac_default_prefix]
1505 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1506 [PREFIX]
1507
1508 By default, \`make install' will install all the files in
1509 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1510 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511 for instance \`--prefix=\$HOME'.
1512
1513 For better control, use the options below.
1514
1515 Fine tuning of the installation directories:
1516 --bindir=DIR user executables [EPREFIX/bin]
1517 --sbindir=DIR system admin executables [EPREFIX/sbin]
1518 --libexecdir=DIR program executables [EPREFIX/libexec]
1519 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1520 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1521 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1522 --libdir=DIR object code libraries [EPREFIX/lib]
1523 --includedir=DIR C header files [PREFIX/include]
1524 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1525 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1526 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1527 --infodir=DIR info documentation [DATAROOTDIR/info]
1528 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1529 --mandir=DIR man documentation [DATAROOTDIR/man]
1530 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1531 --htmldir=DIR html documentation [DOCDIR]
1532 --dvidir=DIR dvi documentation [DOCDIR]
1533 --pdfdir=DIR pdf documentation [DOCDIR]
1534 --psdir=DIR ps documentation [DOCDIR]
1535 _ACEOF
1536
1537 cat <<\_ACEOF
1538
1539 Program names:
1540 --program-prefix=PREFIX prepend PREFIX to installed program names
1541 --program-suffix=SUFFIX append SUFFIX to installed program names
1542 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1543
1544 System types:
1545 --build=BUILD configure for building on BUILD [guessed]
1546 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1547 --target=TARGET configure for building compilers for TARGET [HOST]
1548 _ACEOF
1549 fi
1550
1551 if test -n "$ac_init_help"; then
1552
1553 cat <<\_ACEOF
1554
1555 Optional Features:
1556 --disable-option-checking ignore unrecognized --enable/--with options
1557 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1558 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1559 --enable-generated-files-in-srcdir
1560 put copies of generated files in source dir intended
1561 for creating source tarballs for users without
1562 texinfo bison or flex
1563 --disable-largefile omit support for large files
1564 --enable-werror-always enable -Werror despite compiler version
1565 --enable-checking[=LIST]
1566 enable expensive run-time checks. With LIST, enable
1567 only specific categories of checks. Categories are:
1568 yes,no,all,none,release. Flags are:
1569 assert,df,fold,gc,gcac,gimple,misc,
1570 rtlflag,rtl,runtime,tree,valgrind,types
1571 --enable-coverage[=LEVEL]
1572 enable compiler's code coverage collection. Use to
1573 measure compiler performance and locate unused parts
1574 of the compiler. With LEVEL, specify optimization.
1575 Values are opt, noopt, default is noopt
1576 --enable-gather-detailed-mem-stats
1577 enable detailed memory allocation stats gathering
1578 --enable-build-with-cxx build with C++ compiler instead of C compiler
1579 --enable-multilib enable library support for multiple ABIs
1580 --enable-__cxa_atexit enable __cxa_atexit for C++
1581 --enable-decimal-float={no,yes,bid,dpd}
1582 enable decimal float extension to C. Selecting 'bid'
1583 or 'dpd' choses which decimal floating point format
1584 to use
1585 --enable-fixed-point enable fixed-point arithmetic extension to C
1586 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1587 package
1588 --enable-tls enable or disable generation of tls code overriding
1589 the assembler check for tls support
1590 --enable-objc-gc enable the use of Boehm's garbage collector with the
1591 GNU Objective-C runtime
1592 --disable-shared don't provide a shared libgcc
1593 --enable-languages=LIST specify which front-ends to build
1594 --disable-rpath do not hardcode runtime library paths
1595 --enable-sjlj-exceptions
1596 arrange to use setjmp/longjmp exception handling
1597 --enable-secureplt enable -msecure-plt by default for PowerPC
1598 --enable-leading-mingw64-underscores
1599 enable leading underscores on 64 bit mingw targets
1600 --enable-cld enable -mcld by default for 32bit x86
1601 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1602 x86
1603 --disable-win32-registry
1604 disable lookup of installation paths in the Registry
1605 on Windows hosts
1606 --enable-win32-registry enable registry lookup (default)
1607 --enable-win32-registry=KEY
1608 use KEY instead of GCC version as the last portion
1609 of the registry key
1610 --enable-shared[=PKGS] build shared libraries [default=yes]
1611 --enable-static[=PKGS] build static libraries [default=yes]
1612 --enable-fast-install[=PKGS]
1613 optimize for fast installation [default=yes]
1614 --disable-libtool-lock avoid locking (might break parallel builds)
1615 --enable-gnu-indirect-function
1616 enable the use of the @gnu_indirect_function to
1617 glibc systems
1618 --enable-initfini-array use .init_array/.fini_array sections
1619 --enable-comdat enable COMDAT group support
1620 --enable-gnu-unique-object
1621 enable the use of the @gnu_unique_object ELF
1622 extension on glibc systems
1623 --enable-linker-build-id
1624 compiler will always pass --build-id to linker
1625 --enable-maintainer-mode
1626 enable make rules and dependencies not useful (and
1627 sometimes confusing) to the casual installer
1628 --enable-version-specific-runtime-libs
1629 specify that runtime libraries should be installed
1630 in a compiler-specific directory
1631 --enable-plugin enable plugin support
1632 --disable-libquadmath-support
1633 disable libquadmath support for Fortran
1634
1635 Optional Packages:
1636 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1637 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1638 --with-build-libsubdir=DIR Directory where to find libraries for build system
1639 --with-local-prefix=DIR specifies directory to put local include
1640 --with-gxx-include-dir=DIR
1641 specifies directory to put g++ header files
1642 --with-cpp-install-dir=DIR
1643 install the user visible C preprocessor in DIR
1644 (relative to PREFIX) as well as PREFIX/bin
1645 --with-gnu-ld arrange to work with GNU ld
1646 --with-ld arrange to use the specified ld (full pathname)
1647 --with-demangler-in-ld try to use demangler in GNU ld
1648 --with-gnu-as arrange to work with GNU as
1649 --with-as arrange to use the specified as (full pathname)
1650 --with-stabs arrange to use stabs instead of host debug format
1651 --with-dwarf2 force the default debug format to be DWARF 2
1652 --with-native-system-header-dir=dir
1653 use dir as the directory to look for standard
1654 system header files in. Defaults to /usr/include.
1655 --with-build-sysroot=sysroot
1656 use sysroot as the system root during the build
1657 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1658 --with-specs=SPECS add SPECS to driver command-line processing
1659 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1660 --with-bugurl=URL Direct users to URL to report a bug
1661 --with-multilib-list select multilibs (SH and x86-64 only)
1662 --with-gnu-ld assume the C compiler uses GNU ld default=no
1663 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1664 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1665 --with-pic try to use only PIC/non-PIC objects [default=use
1666 both]
1667 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1668 --with-plugin-ld=[ARG] specify the plugin linker
1669 --with-long-double-128 use 128-bit long double by default
1670 --with-gc={page,zone} choose the garbage collection mechanism to use with
1671 the compiler
1672 --with-system-zlib use installed libz
1673 --with-linker-hash-style={sysv,gnu,both}
1674 specify the linker hash style
1675
1676 Some influential environment variables:
1677 CC C compiler command
1678 CFLAGS C compiler flags
1679 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1680 nonstandard directory <lib dir>
1681 LIBS libraries to pass to the linker, e.g. -l<library>
1682 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1683 you have headers in a nonstandard directory <include dir>
1684 CXX C++ compiler command
1685 CXXFLAGS C++ compiler flags
1686 CPP C preprocessor
1687 CXXCPP C++ preprocessor
1688 GMPLIBS How to link GMP
1689 GMPINC How to find GMP include files
1690 PPLLIBS How to link PPL
1691 PPLINC How to find PPL include files
1692 CLOOGLIBS How to link CLOOG
1693 CLOOGINC How to find CLOOG include files
1694
1695 Use these variables to override the choices made by `configure' or to help
1696 it to find libraries and programs with nonstandard names/locations.
1697
1698 Report bugs to the package provider.
1699 _ACEOF
1700 ac_status=$?
1701 fi
1702
1703 if test "$ac_init_help" = "recursive"; then
1704 # If there are subdirs, report their specific --help.
1705 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1706 test -d "$ac_dir" ||
1707 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1708 continue
1709 ac_builddir=.
1710
1711 case "$ac_dir" in
1712 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713 *)
1714 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1715 # A ".." for each directory in $ac_dir_suffix.
1716 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1717 case $ac_top_builddir_sub in
1718 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1719 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1720 esac ;;
1721 esac
1722 ac_abs_top_builddir=$ac_pwd
1723 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1724 # for backward compatibility:
1725 ac_top_builddir=$ac_top_build_prefix
1726
1727 case $srcdir in
1728 .) # We are building in place.
1729 ac_srcdir=.
1730 ac_top_srcdir=$ac_top_builddir_sub
1731 ac_abs_top_srcdir=$ac_pwd ;;
1732 [\\/]* | ?:[\\/]* ) # Absolute name.
1733 ac_srcdir=$srcdir$ac_dir_suffix;
1734 ac_top_srcdir=$srcdir
1735 ac_abs_top_srcdir=$srcdir ;;
1736 *) # Relative name.
1737 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1738 ac_top_srcdir=$ac_top_build_prefix$srcdir
1739 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1740 esac
1741 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1742
1743 cd "$ac_dir" || { ac_status=$?; continue; }
1744 # Check for guested configure.
1745 if test -f "$ac_srcdir/configure.gnu"; then
1746 echo &&
1747 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1748 elif test -f "$ac_srcdir/configure"; then
1749 echo &&
1750 $SHELL "$ac_srcdir/configure" --help=recursive
1751 else
1752 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1753 fi || ac_status=$?
1754 cd "$ac_pwd" || { ac_status=$?; break; }
1755 done
1756 fi
1757
1758 test -n "$ac_init_help" && exit $ac_status
1759 if $ac_init_version; then
1760 cat <<\_ACEOF
1761 configure
1762 generated by GNU Autoconf 2.64
1763
1764 Copyright (C) 2009 Free Software Foundation, Inc.
1765 This configure script is free software; the Free Software Foundation
1766 gives unlimited permission to copy, distribute and modify it.
1767 _ACEOF
1768 exit
1769 fi
1770
1771 ## ------------------------ ##
1772 ## Autoconf initialization. ##
1773 ## ------------------------ ##
1774
1775 # ac_fn_c_try_compile LINENO
1776 # --------------------------
1777 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1778 ac_fn_c_try_compile ()
1779 {
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 rm -f conftest.$ac_objext
1782 if { { ac_try="$ac_compile"
1783 case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_compile") 2>conftest.err
1790 ac_status=$?
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1795 fi
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && {
1798 test -z "$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1800 } && test -s conftest.$ac_objext; then :
1801 ac_retval=0
1802 else
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1805
1806 ac_retval=1
1807 fi
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809 return $ac_retval
1810
1811 } # ac_fn_c_try_compile
1812
1813 # ac_fn_cxx_try_compile LINENO
1814 # ----------------------------
1815 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1816 ac_fn_cxx_try_compile ()
1817 {
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 rm -f conftest.$ac_objext
1820 if { { ac_try="$ac_compile"
1821 case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_compile") 2>conftest.err
1828 ac_status=$?
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1833 fi
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } && {
1836 test -z "$ac_cxx_werror_flag" ||
1837 test ! -s conftest.err
1838 } && test -s conftest.$ac_objext; then :
1839 ac_retval=0
1840 else
1841 $as_echo "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.$ac_ext >&5
1843
1844 ac_retval=1
1845 fi
1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 return $ac_retval
1848
1849 } # ac_fn_cxx_try_compile
1850
1851 # ac_fn_c_try_cpp LINENO
1852 # ----------------------
1853 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1854 ac_fn_c_try_cpp ()
1855 {
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 if { { ac_try="$ac_cpp conftest.$ac_ext"
1858 case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1865 ac_status=$?
1866 if test -s conftest.err; then
1867 grep -v '^ *+' conftest.err >conftest.er1
1868 cat conftest.er1 >&5
1869 mv -f conftest.er1 conftest.err
1870 fi
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } >/dev/null && {
1873 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1874 test ! -s conftest.err
1875 }; then :
1876 ac_retval=0
1877 else
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1880
1881 ac_retval=1
1882 fi
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884 return $ac_retval
1885
1886 } # ac_fn_c_try_cpp
1887
1888 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1889 # -------------------------------------------------------
1890 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1891 # the include files in INCLUDES and setting the cache variable VAR
1892 # accordingly.
1893 ac_fn_c_check_header_mongrel ()
1894 {
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 $as_echo_n "checking for $2... " >&6; }
1899 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1900 $as_echo_n "(cached) " >&6
1901 fi
1902 eval ac_res=\$$3
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 $as_echo "$ac_res" >&6; }
1905 else
1906 # Is the header compilable?
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1908 $as_echo_n "checking $2 usability... " >&6; }
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1911 $4
1912 #include <$2>
1913 _ACEOF
1914 if ac_fn_c_try_compile "$LINENO"; then :
1915 ac_header_compiler=yes
1916 else
1917 ac_header_compiler=no
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1921 $as_echo "$ac_header_compiler" >&6; }
1922
1923 # Is the header present?
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1925 $as_echo_n "checking $2 presence... " >&6; }
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1928 #include <$2>
1929 _ACEOF
1930 if ac_fn_c_try_cpp "$LINENO"; then :
1931 ac_header_preproc=yes
1932 else
1933 ac_header_preproc=no
1934 fi
1935 rm -f conftest.err conftest.$ac_ext
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1937 $as_echo "$ac_header_preproc" >&6; }
1938
1939 # So? What about this header?
1940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1941 yes:no: )
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1943 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1945 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1946 ;;
1947 no:yes:* )
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1949 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1951 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1953 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1955 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1957 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1958 ;;
1959 esac
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961 $as_echo_n "checking for $2... " >&6; }
1962 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1963 $as_echo_n "(cached) " >&6
1964 else
1965 eval "$3=\$ac_header_compiler"
1966 fi
1967 eval ac_res=\$$3
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970 fi
1971 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1972
1973 } # ac_fn_c_check_header_mongrel
1974
1975 # ac_fn_c_try_run LINENO
1976 # ----------------------
1977 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1978 # that executables *can* be run.
1979 ac_fn_c_try_run ()
1980 {
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 if { { ac_try="$ac_link"
1983 case "(($ac_try" in
1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985 *) ac_try_echo=$ac_try;;
1986 esac
1987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988 $as_echo "$ac_try_echo"; } >&5
1989 (eval "$ac_link") 2>&5
1990 ac_status=$?
1991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1993 { { case "(($ac_try" in
1994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995 *) ac_try_echo=$ac_try;;
1996 esac
1997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998 $as_echo "$ac_try_echo"; } >&5
1999 (eval "$ac_try") 2>&5
2000 ac_status=$?
2001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2002 test $ac_status = 0; }; }; then :
2003 ac_retval=0
2004 else
2005 $as_echo "$as_me: program exited with status $ac_status" >&5
2006 $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2008
2009 ac_retval=$ac_status
2010 fi
2011 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2012 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013 return $ac_retval
2014
2015 } # ac_fn_c_try_run
2016
2017 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2018 # -------------------------------------------------------
2019 # Tests whether HEADER exists and can be compiled using the include files in
2020 # INCLUDES, setting the cache variable VAR accordingly.
2021 ac_fn_c_check_header_compile ()
2022 {
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2025 $as_echo_n "checking for $2... " >&6; }
2026 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2027 $as_echo_n "(cached) " >&6
2028 else
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2031 $4
2032 #include <$2>
2033 _ACEOF
2034 if ac_fn_c_try_compile "$LINENO"; then :
2035 eval "$3=yes"
2036 else
2037 eval "$3=no"
2038 fi
2039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 fi
2041 eval ac_res=\$$3
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043 $as_echo "$ac_res" >&6; }
2044 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2045
2046 } # ac_fn_c_check_header_compile
2047
2048 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2049 # --------------------------------------------
2050 # Tries to find the compile-time value of EXPR in a program that includes
2051 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2052 # computed
2053 ac_fn_c_compute_int ()
2054 {
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 if test "$cross_compiling" = yes; then
2057 # Depending upon the size, compute the lo and hi bounds.
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2060 $4
2061 int
2062 main ()
2063 {
2064 static int test_array [1 - 2 * !(($2) >= 0)];
2065 test_array [0] = 0
2066
2067 ;
2068 return 0;
2069 }
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072 ac_lo=0 ac_mid=0
2073 while :; do
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2076 $4
2077 int
2078 main ()
2079 {
2080 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2081 test_array [0] = 0
2082
2083 ;
2084 return 0;
2085 }
2086 _ACEOF
2087 if ac_fn_c_try_compile "$LINENO"; then :
2088 ac_hi=$ac_mid; break
2089 else
2090 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2091 if test $ac_lo -le $ac_mid; then
2092 ac_lo= ac_hi=
2093 break
2094 fi
2095 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2096 fi
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 done
2099 else
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2102 $4
2103 int
2104 main ()
2105 {
2106 static int test_array [1 - 2 * !(($2) < 0)];
2107 test_array [0] = 0
2108
2109 ;
2110 return 0;
2111 }
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114 ac_hi=-1 ac_mid=-1
2115 while :; do
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2118 $4
2119 int
2120 main ()
2121 {
2122 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2123 test_array [0] = 0
2124
2125 ;
2126 return 0;
2127 }
2128 _ACEOF
2129 if ac_fn_c_try_compile "$LINENO"; then :
2130 ac_lo=$ac_mid; break
2131 else
2132 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2133 if test $ac_mid -le $ac_hi; then
2134 ac_lo= ac_hi=
2135 break
2136 fi
2137 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2138 fi
2139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140 done
2141 else
2142 ac_lo= ac_hi=
2143 fi
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 fi
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 # Binary search between lo and hi bounds.
2148 while test "x$ac_lo" != "x$ac_hi"; do
2149 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2152 $4
2153 int
2154 main ()
2155 {
2156 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2157 test_array [0] = 0
2158
2159 ;
2160 return 0;
2161 }
2162 _ACEOF
2163 if ac_fn_c_try_compile "$LINENO"; then :
2164 ac_hi=$ac_mid
2165 else
2166 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2167 fi
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 done
2170 case $ac_lo in #((
2171 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2172 '') ac_retval=1 ;;
2173 esac
2174 else
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2177 $4
2178 static long int longval () { return $2; }
2179 static unsigned long int ulongval () { return $2; }
2180 #include <stdio.h>
2181 #include <stdlib.h>
2182 int
2183 main ()
2184 {
2185
2186 FILE *f = fopen ("conftest.val", "w");
2187 if (! f)
2188 return 1;
2189 if (($2) < 0)
2190 {
2191 long int i = longval ();
2192 if (i != ($2))
2193 return 1;
2194 fprintf (f, "%ld", i);
2195 }
2196 else
2197 {
2198 unsigned long int i = ulongval ();
2199 if (i != ($2))
2200 return 1;
2201 fprintf (f, "%lu", i);
2202 }
2203 /* Do not output a trailing newline, as this causes \r\n confusion
2204 on some platforms. */
2205 return ferror (f) || fclose (f) != 0;
2206
2207 ;
2208 return 0;
2209 }
2210 _ACEOF
2211 if ac_fn_c_try_run "$LINENO"; then :
2212 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2213 else
2214 ac_retval=1
2215 fi
2216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2217 conftest.$ac_objext conftest.beam conftest.$ac_ext
2218 rm -f conftest.val
2219
2220 fi
2221 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2222 return $ac_retval
2223
2224 } # ac_fn_c_compute_int
2225
2226 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2227 # -------------------------------------------
2228 # Tests whether TYPE exists after having included INCLUDES, setting cache
2229 # variable VAR accordingly.
2230 ac_fn_c_check_type ()
2231 {
2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2234 $as_echo_n "checking for $2... " >&6; }
2235 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2236 $as_echo_n "(cached) " >&6
2237 else
2238 eval "$3=no"
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2241 $4
2242 int
2243 main ()
2244 {
2245 if (sizeof ($2))
2246 return 0;
2247 ;
2248 return 0;
2249 }
2250 _ACEOF
2251 if ac_fn_c_try_compile "$LINENO"; then :
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2254 $4
2255 int
2256 main ()
2257 {
2258 if (sizeof (($2)))
2259 return 0;
2260 ;
2261 return 0;
2262 }
2263 _ACEOF
2264 if ac_fn_c_try_compile "$LINENO"; then :
2265
2266 else
2267 eval "$3=yes"
2268 fi
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 fi
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 fi
2273 eval ac_res=\$$3
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2275 $as_echo "$ac_res" >&6; }
2276 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2277
2278 } # ac_fn_c_check_type
2279
2280 # ac_fn_c_find_intX_t LINENO BITS VAR
2281 # -----------------------------------
2282 # Finds a signed integer type with width BITS, setting cache variable VAR
2283 # accordingly.
2284 ac_fn_c_find_intX_t ()
2285 {
2286 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2288 $as_echo_n "checking for int$2_t... " >&6; }
2289 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2290 $as_echo_n "(cached) " >&6
2291 else
2292 eval "$3=no"
2293 for ac_type in int$2_t 'int' 'long int' \
2294 'long long int' 'short int' 'signed char'; do
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2297 $ac_includes_default
2298 int
2299 main ()
2300 {
2301 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2302 test_array [0] = 0
2303
2304 ;
2305 return 0;
2306 }
2307 _ACEOF
2308 if ac_fn_c_try_compile "$LINENO"; then :
2309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2311 $ac_includes_default
2312 int
2313 main ()
2314 {
2315 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2316 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2317 test_array [0] = 0
2318
2319 ;
2320 return 0;
2321 }
2322 _ACEOF
2323 if ac_fn_c_try_compile "$LINENO"; then :
2324
2325 else
2326 case $ac_type in #(
2327 int$2_t) :
2328 eval "$3=yes" ;; #(
2329 *) :
2330 eval "$3=\$ac_type" ;;
2331 esac
2332 fi
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 fi
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 eval as_val=\$$3
2337 if test "x$as_val" = x""no; then :
2338
2339 else
2340 break
2341 fi
2342 done
2343 fi
2344 eval ac_res=\$$3
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2346 $as_echo "$ac_res" >&6; }
2347 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2348
2349 } # ac_fn_c_find_intX_t
2350
2351 # ac_fn_c_try_link LINENO
2352 # -----------------------
2353 # Try to link conftest.$ac_ext, and return whether this succeeded.
2354 ac_fn_c_try_link ()
2355 {
2356 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2357 rm -f conftest.$ac_objext conftest$ac_exeext
2358 if { { ac_try="$ac_link"
2359 case "(($ac_try" in
2360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361 *) ac_try_echo=$ac_try;;
2362 esac
2363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2364 $as_echo "$ac_try_echo"; } >&5
2365 (eval "$ac_link") 2>conftest.err
2366 ac_status=$?
2367 if test -s conftest.err; then
2368 grep -v '^ *+' conftest.err >conftest.er1
2369 cat conftest.er1 >&5
2370 mv -f conftest.er1 conftest.err
2371 fi
2372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2373 test $ac_status = 0; } && {
2374 test -z "$ac_c_werror_flag" ||
2375 test ! -s conftest.err
2376 } && test -s conftest$ac_exeext && {
2377 test "$cross_compiling" = yes ||
2378 $as_test_x conftest$ac_exeext
2379 }; then :
2380 ac_retval=0
2381 else
2382 $as_echo "$as_me: failed program was:" >&5
2383 sed 's/^/| /' conftest.$ac_ext >&5
2384
2385 ac_retval=1
2386 fi
2387 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2388 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2389 # interfere with the next link command; also delete a directory that is
2390 # left behind by Apple's compiler. We do this before executing the actions.
2391 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2392 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2393 return $ac_retval
2394
2395 } # ac_fn_c_try_link
2396
2397 # ac_fn_c_find_uintX_t LINENO BITS VAR
2398 # ------------------------------------
2399 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2400 # accordingly.
2401 ac_fn_c_find_uintX_t ()
2402 {
2403 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2405 $as_echo_n "checking for uint$2_t... " >&6; }
2406 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2407 $as_echo_n "(cached) " >&6
2408 else
2409 eval "$3=no"
2410 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2411 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2413 /* end confdefs.h. */
2414 $ac_includes_default
2415 int
2416 main ()
2417 {
2418 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2419 test_array [0] = 0
2420
2421 ;
2422 return 0;
2423 }
2424 _ACEOF
2425 if ac_fn_c_try_compile "$LINENO"; then :
2426 case $ac_type in #(
2427 uint$2_t) :
2428 eval "$3=yes" ;; #(
2429 *) :
2430 eval "$3=\$ac_type" ;;
2431 esac
2432 fi
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 eval as_val=\$$3
2435 if test "x$as_val" = x""no; then :
2436
2437 else
2438 break
2439 fi
2440 done
2441 fi
2442 eval ac_res=\$$3
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2444 $as_echo "$ac_res" >&6; }
2445 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2446
2447 } # ac_fn_c_find_uintX_t
2448
2449 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2450 # ----------------------------------------------
2451 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2452 ac_fn_c_check_header_preproc ()
2453 {
2454 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2456 $as_echo_n "checking for $2... " >&6; }
2457 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2458 $as_echo_n "(cached) " >&6
2459 else
2460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2461 /* end confdefs.h. */
2462 #include <$2>
2463 _ACEOF
2464 if ac_fn_c_try_cpp "$LINENO"; then :
2465 eval "$3=yes"
2466 else
2467 eval "$3=no"
2468 fi
2469 rm -f conftest.err conftest.$ac_ext
2470 fi
2471 eval ac_res=\$$3
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2473 $as_echo "$ac_res" >&6; }
2474 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2475
2476 } # ac_fn_c_check_header_preproc
2477
2478 # ac_fn_cxx_try_cpp LINENO
2479 # ------------------------
2480 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2481 ac_fn_cxx_try_cpp ()
2482 {
2483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2484 if { { ac_try="$ac_cpp conftest.$ac_ext"
2485 case "(($ac_try" in
2486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487 *) ac_try_echo=$ac_try;;
2488 esac
2489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2490 $as_echo "$ac_try_echo"; } >&5
2491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2492 ac_status=$?
2493 if test -s conftest.err; then
2494 grep -v '^ *+' conftest.err >conftest.er1
2495 cat conftest.er1 >&5
2496 mv -f conftest.er1 conftest.err
2497 fi
2498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2499 test $ac_status = 0; } >/dev/null && {
2500 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2501 test ! -s conftest.err
2502 }; then :
2503 ac_retval=0
2504 else
2505 $as_echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2507
2508 ac_retval=1
2509 fi
2510 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2511 return $ac_retval
2512
2513 } # ac_fn_cxx_try_cpp
2514
2515 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2516 # ------------------------------------------------
2517 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2518 ac_fn_cxx_check_header_preproc ()
2519 {
2520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2522 $as_echo_n "checking for $2... " >&6; }
2523 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2524 $as_echo_n "(cached) " >&6
2525 else
2526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2527 /* end confdefs.h. */
2528 #include <$2>
2529 _ACEOF
2530 if ac_fn_cxx_try_cpp "$LINENO"; then :
2531 eval "$3=yes"
2532 else
2533 eval "$3=no"
2534 fi
2535 rm -f conftest.err conftest.$ac_ext
2536 fi
2537 eval ac_res=\$$3
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2539 $as_echo "$ac_res" >&6; }
2540 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2541
2542 } # ac_fn_cxx_check_header_preproc
2543
2544 # ac_fn_c_check_func LINENO FUNC VAR
2545 # ----------------------------------
2546 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2547 ac_fn_c_check_func ()
2548 {
2549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2551 $as_echo_n "checking for $2... " >&6; }
2552 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2553 $as_echo_n "(cached) " >&6
2554 else
2555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h. */
2557 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2559 #define $2 innocuous_$2
2560
2561 /* System header to define __stub macros and hopefully few prototypes,
2562 which can conflict with char $2 (); below.
2563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2564 <limits.h> exists even on freestanding compilers. */
2565
2566 #ifdef __STDC__
2567 # include <limits.h>
2568 #else
2569 # include <assert.h>
2570 #endif
2571
2572 #undef $2
2573
2574 /* Override any GCC internal prototype to avoid an error.
2575 Use char because int might match the return type of a GCC
2576 builtin and then its argument prototype would still apply. */
2577 #ifdef __cplusplus
2578 extern "C"
2579 #endif
2580 char $2 ();
2581 /* The GNU C library defines this for functions which it implements
2582 to always fail with ENOSYS. Some functions are actually named
2583 something starting with __ and the normal name is an alias. */
2584 #if defined __stub_$2 || defined __stub___$2
2585 choke me
2586 #endif
2587
2588 int
2589 main ()
2590 {
2591 return $2 ();
2592 ;
2593 return 0;
2594 }
2595 _ACEOF
2596 if ac_fn_c_try_link "$LINENO"; then :
2597 eval "$3=yes"
2598 else
2599 eval "$3=no"
2600 fi
2601 rm -f core conftest.err conftest.$ac_objext \
2602 conftest$ac_exeext conftest.$ac_ext
2603 fi
2604 eval ac_res=\$$3
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2606 $as_echo "$ac_res" >&6; }
2607 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2608
2609 } # ac_fn_c_check_func
2610
2611 # ac_fn_cxx_try_link LINENO
2612 # -------------------------
2613 # Try to link conftest.$ac_ext, and return whether this succeeded.
2614 ac_fn_cxx_try_link ()
2615 {
2616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2617 rm -f conftest.$ac_objext conftest$ac_exeext
2618 if { { ac_try="$ac_link"
2619 case "(($ac_try" in
2620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621 *) ac_try_echo=$ac_try;;
2622 esac
2623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2624 $as_echo "$ac_try_echo"; } >&5
2625 (eval "$ac_link") 2>conftest.err
2626 ac_status=$?
2627 if test -s conftest.err; then
2628 grep -v '^ *+' conftest.err >conftest.er1
2629 cat conftest.er1 >&5
2630 mv -f conftest.er1 conftest.err
2631 fi
2632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2633 test $ac_status = 0; } && {
2634 test -z "$ac_cxx_werror_flag" ||
2635 test ! -s conftest.err
2636 } && test -s conftest$ac_exeext && {
2637 test "$cross_compiling" = yes ||
2638 $as_test_x conftest$ac_exeext
2639 }; then :
2640 ac_retval=0
2641 else
2642 $as_echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2644
2645 ac_retval=1
2646 fi
2647 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2648 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2649 # interfere with the next link command; also delete a directory that is
2650 # left behind by Apple's compiler. We do this before executing the actions.
2651 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2652 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2653 return $ac_retval
2654
2655 } # ac_fn_cxx_try_link
2656 cat >config.log <<_ACEOF
2657 This file contains any messages produced by compilers while
2658 running configure, to aid debugging if configure makes a mistake.
2659
2660 It was created by $as_me, which was
2661 generated by GNU Autoconf 2.64. Invocation command line was
2662
2663 $ $0 $@
2664
2665 _ACEOF
2666 exec 5>>config.log
2667 {
2668 cat <<_ASUNAME
2669 ## --------- ##
2670 ## Platform. ##
2671 ## --------- ##
2672
2673 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2674 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2675 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2676 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2677 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2678
2679 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2680 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2681
2682 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2683 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2684 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2685 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2686 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2687 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2688 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2689
2690 _ASUNAME
2691
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2694 do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 $as_echo "PATH: $as_dir"
2698 done
2699 IFS=$as_save_IFS
2700
2701 } >&5
2702
2703 cat >&5 <<_ACEOF
2704
2705
2706 ## ----------- ##
2707 ## Core tests. ##
2708 ## ----------- ##
2709
2710 _ACEOF
2711
2712
2713 # Keep a trace of the command line.
2714 # Strip out --no-create and --no-recursion so they do not pile up.
2715 # Strip out --silent because we don't want to record it for future runs.
2716 # Also quote any args containing shell meta-characters.
2717 # Make two passes to allow for proper duplicate-argument suppression.
2718 ac_configure_args=
2719 ac_configure_args0=
2720 ac_configure_args1=
2721 ac_must_keep_next=false
2722 for ac_pass in 1 2
2723 do
2724 for ac_arg
2725 do
2726 case $ac_arg in
2727 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2728 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2729 | -silent | --silent | --silen | --sile | --sil)
2730 continue ;;
2731 *\'*)
2732 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2733 esac
2734 case $ac_pass in
2735 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2736 2)
2737 as_fn_append ac_configure_args1 " '$ac_arg'"
2738 if test $ac_must_keep_next = true; then
2739 ac_must_keep_next=false # Got value, back to normal.
2740 else
2741 case $ac_arg in
2742 *=* | --config-cache | -C | -disable-* | --disable-* \
2743 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2744 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2745 | -with-* | --with-* | -without-* | --without-* | --x)
2746 case "$ac_configure_args0 " in
2747 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2748 esac
2749 ;;
2750 -* ) ac_must_keep_next=true ;;
2751 esac
2752 fi
2753 as_fn_append ac_configure_args " '$ac_arg'"
2754 ;;
2755 esac
2756 done
2757 done
2758 { ac_configure_args0=; unset ac_configure_args0;}
2759 { ac_configure_args1=; unset ac_configure_args1;}
2760
2761 # When interrupted or exit'd, cleanup temporary files, and complete
2762 # config.log. We remove comments because anyway the quotes in there
2763 # would cause problems or look ugly.
2764 # WARNING: Use '\'' to represent an apostrophe within the trap.
2765 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2766 trap 'exit_status=$?
2767 # Save into config.log some information that might help in debugging.
2768 {
2769 echo
2770
2771 cat <<\_ASBOX
2772 ## ---------------- ##
2773 ## Cache variables. ##
2774 ## ---------------- ##
2775 _ASBOX
2776 echo
2777 # The following way of writing the cache mishandles newlines in values,
2778 (
2779 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2780 eval ac_val=\$$ac_var
2781 case $ac_val in #(
2782 *${as_nl}*)
2783 case $ac_var in #(
2784 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2785 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2786 esac
2787 case $ac_var in #(
2788 _ | IFS | as_nl) ;; #(
2789 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2790 *) { eval $ac_var=; unset $ac_var;} ;;
2791 esac ;;
2792 esac
2793 done
2794 (set) 2>&1 |
2795 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2796 *${as_nl}ac_space=\ *)
2797 sed -n \
2798 "s/'\''/'\''\\\\'\'''\''/g;
2799 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2800 ;; #(
2801 *)
2802 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2803 ;;
2804 esac |
2805 sort
2806 )
2807 echo
2808
2809 cat <<\_ASBOX
2810 ## ----------------- ##
2811 ## Output variables. ##
2812 ## ----------------- ##
2813 _ASBOX
2814 echo
2815 for ac_var in $ac_subst_vars
2816 do
2817 eval ac_val=\$$ac_var
2818 case $ac_val in
2819 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2820 esac
2821 $as_echo "$ac_var='\''$ac_val'\''"
2822 done | sort
2823 echo
2824
2825 if test -n "$ac_subst_files"; then
2826 cat <<\_ASBOX
2827 ## ------------------- ##
2828 ## File substitutions. ##
2829 ## ------------------- ##
2830 _ASBOX
2831 echo
2832 for ac_var in $ac_subst_files
2833 do
2834 eval ac_val=\$$ac_var
2835 case $ac_val in
2836 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2837 esac
2838 $as_echo "$ac_var='\''$ac_val'\''"
2839 done | sort
2840 echo
2841 fi
2842
2843 if test -s confdefs.h; then
2844 cat <<\_ASBOX
2845 ## ----------- ##
2846 ## confdefs.h. ##
2847 ## ----------- ##
2848 _ASBOX
2849 echo
2850 cat confdefs.h
2851 echo
2852 fi
2853 test "$ac_signal" != 0 &&
2854 $as_echo "$as_me: caught signal $ac_signal"
2855 $as_echo "$as_me: exit $exit_status"
2856 } >&5
2857 rm -f core *.core core.conftest.* &&
2858 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2859 exit $exit_status
2860 ' 0
2861 for ac_signal in 1 2 13 15; do
2862 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2863 done
2864 ac_signal=0
2865
2866 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2867 rm -f -r conftest* confdefs.h
2868
2869 $as_echo "/* confdefs.h */" > confdefs.h
2870
2871 # Predefined preprocessor variables.
2872
2873 cat >>confdefs.h <<_ACEOF
2874 #define PACKAGE_NAME "$PACKAGE_NAME"
2875 _ACEOF
2876
2877 cat >>confdefs.h <<_ACEOF
2878 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2879 _ACEOF
2880
2881 cat >>confdefs.h <<_ACEOF
2882 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2883 _ACEOF
2884
2885 cat >>confdefs.h <<_ACEOF
2886 #define PACKAGE_STRING "$PACKAGE_STRING"
2887 _ACEOF
2888
2889 cat >>confdefs.h <<_ACEOF
2890 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2891 _ACEOF
2892
2893 cat >>confdefs.h <<_ACEOF
2894 #define PACKAGE_URL "$PACKAGE_URL"
2895 _ACEOF
2896
2897
2898 # Let the site file select an alternate cache file if it wants to.
2899 # Prefer an explicitly selected file to automatically selected ones.
2900 ac_site_file1=NONE
2901 ac_site_file2=NONE
2902 if test -n "$CONFIG_SITE"; then
2903 ac_site_file1=$CONFIG_SITE
2904 elif test "x$prefix" != xNONE; then
2905 ac_site_file1=$prefix/share/config.site
2906 ac_site_file2=$prefix/etc/config.site
2907 else
2908 ac_site_file1=$ac_default_prefix/share/config.site
2909 ac_site_file2=$ac_default_prefix/etc/config.site
2910 fi
2911 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2912 do
2913 test "x$ac_site_file" = xNONE && continue
2914 if test -r "$ac_site_file"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2916 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2917 sed 's/^/| /' "$ac_site_file" >&5
2918 . "$ac_site_file"
2919 fi
2920 done
2921
2922 if test -r "$cache_file"; then
2923 # Some versions of bash will fail to source /dev/null (special
2924 # files actually), so we avoid doing that.
2925 if test -f "$cache_file"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2927 $as_echo "$as_me: loading cache $cache_file" >&6;}
2928 case $cache_file in
2929 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2930 *) . "./$cache_file";;
2931 esac
2932 fi
2933 else
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2935 $as_echo "$as_me: creating cache $cache_file" >&6;}
2936 >$cache_file
2937 fi
2938
2939 # Check that the precious variables saved in the cache have kept the same
2940 # value.
2941 ac_cache_corrupted=false
2942 for ac_var in $ac_precious_vars; do
2943 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2944 eval ac_new_set=\$ac_env_${ac_var}_set
2945 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2946 eval ac_new_val=\$ac_env_${ac_var}_value
2947 case $ac_old_set,$ac_new_set in
2948 set,)
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2950 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2951 ac_cache_corrupted=: ;;
2952 ,set)
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2954 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2955 ac_cache_corrupted=: ;;
2956 ,);;
2957 *)
2958 if test "x$ac_old_val" != "x$ac_new_val"; then
2959 # differences in whitespace do not lead to failure.
2960 ac_old_val_w=`echo x $ac_old_val`
2961 ac_new_val_w=`echo x $ac_new_val`
2962 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2964 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2965 ac_cache_corrupted=:
2966 else
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2968 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2969 eval $ac_var=\$ac_old_val
2970 fi
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2972 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2974 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2975 fi;;
2976 esac
2977 # Pass precious variables to config.status.
2978 if test "$ac_new_set" = set; then
2979 case $ac_new_val in
2980 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2981 *) ac_arg=$ac_var=$ac_new_val ;;
2982 esac
2983 case " $ac_configure_args " in
2984 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2985 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2986 esac
2987 fi
2988 done
2989 if $ac_cache_corrupted; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2993 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2994 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2995 fi
2996 ## -------------------- ##
2997 ## Main body of script. ##
2998 ## -------------------- ##
2999
3000 ac_ext=c
3001 ac_cpp='$CPP $CPPFLAGS'
3002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3005
3006
3007
3008
3009
3010
3011 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3012
3013
3014 gcc_version=`cat $srcdir/BASE-VER`
3015
3016 # Determine the host, build, and target systems
3017 ac_aux_dir=
3018 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3019 for ac_t in install-sh install.sh shtool; do
3020 if test -f "$ac_dir/$ac_t"; then
3021 ac_aux_dir=$ac_dir
3022 ac_install_sh="$ac_aux_dir/$ac_t -c"
3023 break 2
3024 fi
3025 done
3026 done
3027 if test -z "$ac_aux_dir"; then
3028 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3029 fi
3030
3031 # These three variables are undocumented and unsupported,
3032 # and are intended to be withdrawn in a future Autoconf release.
3033 # They can cause serious problems if a builder's source tree is in a directory
3034 # whose full name contains unusual characters.
3035 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3036 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3037 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3038
3039
3040 # Make sure we can run config.sub.
3041 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3042 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3043
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3045 $as_echo_n "checking build system type... " >&6; }
3046 if test "${ac_cv_build+set}" = set; then :
3047 $as_echo_n "(cached) " >&6
3048 else
3049 ac_build_alias=$build_alias
3050 test "x$ac_build_alias" = x &&
3051 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3052 test "x$ac_build_alias" = x &&
3053 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3054 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3055 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3056
3057 fi
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3059 $as_echo "$ac_cv_build" >&6; }
3060 case $ac_cv_build in
3061 *-*-*) ;;
3062 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3063 esac
3064 build=$ac_cv_build
3065 ac_save_IFS=$IFS; IFS='-'
3066 set x $ac_cv_build
3067 shift
3068 build_cpu=$1
3069 build_vendor=$2
3070 shift; shift
3071 # Remember, the first character of IFS is used to create $*,
3072 # except with old shells:
3073 build_os=$*
3074 IFS=$ac_save_IFS
3075 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3076
3077
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3079 $as_echo_n "checking host system type... " >&6; }
3080 if test "${ac_cv_host+set}" = set; then :
3081 $as_echo_n "(cached) " >&6
3082 else
3083 if test "x$host_alias" = x; then
3084 ac_cv_host=$ac_cv_build
3085 else
3086 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3087 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3088 fi
3089
3090 fi
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3092 $as_echo "$ac_cv_host" >&6; }
3093 case $ac_cv_host in
3094 *-*-*) ;;
3095 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3096 esac
3097 host=$ac_cv_host
3098 ac_save_IFS=$IFS; IFS='-'
3099 set x $ac_cv_host
3100 shift
3101 host_cpu=$1
3102 host_vendor=$2
3103 shift; shift
3104 # Remember, the first character of IFS is used to create $*,
3105 # except with old shells:
3106 host_os=$*
3107 IFS=$ac_save_IFS
3108 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3109
3110
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3112 $as_echo_n "checking target system type... " >&6; }
3113 if test "${ac_cv_target+set}" = set; then :
3114 $as_echo_n "(cached) " >&6
3115 else
3116 if test "x$target_alias" = x; then
3117 ac_cv_target=$ac_cv_host
3118 else
3119 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3120 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3121 fi
3122
3123 fi
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3125 $as_echo "$ac_cv_target" >&6; }
3126 case $ac_cv_target in
3127 *-*-*) ;;
3128 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3129 esac
3130 target=$ac_cv_target
3131 ac_save_IFS=$IFS; IFS='-'
3132 set x $ac_cv_target
3133 shift
3134 target_cpu=$1
3135 target_vendor=$2
3136 shift; shift
3137 # Remember, the first character of IFS is used to create $*,
3138 # except with old shells:
3139 target_os=$*
3140 IFS=$ac_save_IFS
3141 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3142
3143
3144 # The aliases save the names the user supplied, while $host etc.
3145 # will get canonicalized.
3146 test -n "$target_alias" &&
3147 test "$program_prefix$program_suffix$program_transform_name" = \
3148 NONENONEs,x,x, &&
3149 program_prefix=${target_alias}-
3150
3151 # Determine the noncanonical target name, for directory use.
3152 case ${build_alias} in
3153 "") build_noncanonical=${build} ;;
3154 *) build_noncanonical=${build_alias} ;;
3155 esac
3156
3157 case ${host_alias} in
3158 "") host_noncanonical=${build_noncanonical} ;;
3159 *) host_noncanonical=${host_alias} ;;
3160 esac
3161
3162 case ${target_alias} in
3163 "") target_noncanonical=${host_noncanonical} ;;
3164 *) target_noncanonical=${target_alias} ;;
3165 esac
3166
3167
3168
3169
3170 # Determine the target- and build-specific subdirectories
3171
3172 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3173 # have matching libraries, they should use host libraries: Makefile.tpl
3174 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3175 # However, they still use the build modules, because the corresponding
3176 # host modules (e.g. bison) are only built for the host when bootstrap
3177 # finishes. So:
3178 # - build_subdir is where we find build modules, and never changes.
3179 # - build_libsubdir is where we find build libraries, and can be overridden.
3180
3181 # Prefix 'build-' so this never conflicts with target_subdir.
3182 build_subdir="build-${build_noncanonical}"
3183
3184 # Check whether --with-build-libsubdir was given.
3185 if test "${with_build_libsubdir+set}" = set; then :
3186 withval=$with_build_libsubdir; build_libsubdir="$withval"
3187 else
3188 build_libsubdir="$build_subdir"
3189 fi
3190
3191 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3192 if ( test $srcdir = . && test -d gcc ) \
3193 || test -d $srcdir/../host-${host_noncanonical}; then
3194 host_subdir="host-${host_noncanonical}"
3195 else
3196 host_subdir=.
3197 fi
3198 # No prefix.
3199 target_subdir=${target_noncanonical}
3200
3201
3202 # Set program_transform_name
3203 test "$program_prefix" != NONE &&
3204 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3205 # Use a double $ so make ignores it.
3206 test "$program_suffix" != NONE &&
3207 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3208 # Double any \ or $.
3209 # By default was `s,x,x', remove it if useless.
3210 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3211 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3212
3213
3214 # Check for bogus environment variables.
3215 # Test if LIBRARY_PATH contains the notation for the current directory
3216 # since this would lead to problems installing/building glibc.
3217 # LIBRARY_PATH contains the current directory if one of the following
3218 # is true:
3219 # - one of the terminals (":" and ";") is the first or last sign
3220 # - two terminals occur directly after each other
3221 # - the path contains an element with a dot in it
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3223 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3224 case ${LIBRARY_PATH} in
3225 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3226 library_path_setting="contains current directory"
3227 ;;
3228 *)
3229 library_path_setting="ok"
3230 ;;
3231 esac
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3233 $as_echo "$library_path_setting" >&6; }
3234 if test "$library_path_setting" != "ok"; then
3235 as_fn_error "
3236 *** LIBRARY_PATH shouldn't contain the current directory when
3237 *** building gcc. Please change the environment variable
3238 *** and run configure again." "$LINENO" 5
3239 fi
3240
3241 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3242 # since this would lead to problems installing/building glibc.
3243 # GCC_EXEC_PREFIX contains the current directory if one of the following
3244 # is true:
3245 # - one of the terminals (":" and ";") is the first or last sign
3246 # - two terminals occur directly after each other
3247 # - the path contains an element with a dot in it
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3249 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3250 case ${GCC_EXEC_PREFIX} in
3251 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3252 gcc_exec_prefix_setting="contains current directory"
3253 ;;
3254 *)
3255 gcc_exec_prefix_setting="ok"
3256 ;;
3257 esac
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3259 $as_echo "$gcc_exec_prefix_setting" >&6; }
3260 if test "$gcc_exec_prefix_setting" != "ok"; then
3261 as_fn_error "
3262 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3263 *** building gcc. Please change the environment variable
3264 *** and run configure again." "$LINENO" 5
3265 fi
3266
3267 # -----------
3268 # Directories
3269 # -----------
3270
3271 # Specify the local prefix
3272 local_prefix=
3273
3274 # Check whether --with-local-prefix was given.
3275 if test "${with_local_prefix+set}" = set; then :
3276 withval=$with_local_prefix; case "${withval}" in
3277 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3278 no) ;;
3279 *) local_prefix=$with_local_prefix ;;
3280 esac
3281 fi
3282
3283
3284 # Default local prefix if it is empty
3285 if test x$local_prefix = x; then
3286 local_prefix=/usr/local
3287 fi
3288
3289 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3290 # passed in by the toplevel make and thus we'd get different behavior
3291 # depending on where we built the sources.
3292 gcc_gxx_include_dir=
3293 # Specify the g++ header file directory
3294
3295 # Check whether --with-gxx-include-dir was given.
3296 if test "${with_gxx_include_dir+set}" = set; then :
3297 withval=$with_gxx_include_dir; case "${withval}" in
3298 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3299 no) ;;
3300 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3301 esac
3302 fi
3303
3304
3305 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3306 if test x${gcc_gxx_include_dir} = x; then
3307 if test x${enable_version_specific_runtime_libs} = xyes; then
3308 gcc_gxx_include_dir='${libsubdir}/include/c++'
3309 else
3310 libstdcxx_incdir='include/c++/$(version)'
3311 if test x$host != x$target; then
3312 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3313 fi
3314 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3315 fi
3316 fi
3317
3318 gcc_gxx_include_dir_add_sysroot=0
3319 if test "${with_sysroot+set}" = set; then
3320 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3321 if test "${gcc_gxx_without_sysroot}"; then
3322 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3323 gcc_gxx_include_dir_add_sysroot=1
3324 fi
3325 fi
3326
3327
3328 # Check whether --with-cpp_install_dir was given.
3329 if test "${with_cpp_install_dir+set}" = set; then :
3330 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3331 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3332 elif test x$withval != xno; then
3333 cpp_install_dir=$withval
3334 fi
3335 fi
3336
3337
3338 # We would like to our source tree to be readonly. However when releases or
3339 # pre-releases are generated, the flex/bison generated files as well as the
3340 # various formats of manuals need to be included along with the rest of the
3341 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3342 # just that.
3343
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3345 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3346 # Check whether --enable-generated-files-in-srcdir was given.
3347 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3348 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3349 else
3350 generated_files_in_srcdir=no
3351 fi
3352
3353
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3355 $as_echo "$generated_files_in_srcdir" >&6; }
3356
3357 if test "$generated_files_in_srcdir" = "yes"; then
3358 GENINSRC=''
3359 else
3360 GENINSRC='#'
3361 fi
3362
3363
3364 # -------------------
3365 # Find default linker
3366 # -------------------
3367
3368 # With GNU ld
3369
3370 # Check whether --with-gnu-ld was given.
3371 if test "${with_gnu_ld+set}" = set; then :
3372 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3373 else
3374 gnu_ld_flag=no
3375 fi
3376
3377
3378 # With pre-defined ld
3379
3380 # Check whether --with-ld was given.
3381 if test "${with_ld+set}" = set; then :
3382 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3383 fi
3384
3385 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3386 if test ! -x "$DEFAULT_LINKER"; then
3387 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3388 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3389 gnu_ld_flag=yes
3390 fi
3391
3392 cat >>confdefs.h <<_ACEOF
3393 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3394 _ACEOF
3395
3396 fi
3397
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3399 $as_echo_n "checking whether a default linker was specified... " >&6; }
3400 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3401 if test x"$gnu_ld_flag" = x"no"; then
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3403 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3404 else
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3406 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3407 fi
3408 else
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410 $as_echo "no" >&6; }
3411 fi
3412
3413 # With demangler in GNU ld
3414
3415 # Check whether --with-demangler-in-ld was given.
3416 if test "${with_demangler_in_ld+set}" = set; then :
3417 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3418 else
3419 demangler_in_ld=yes
3420 fi
3421
3422
3423 # ----------------------
3424 # Find default assembler
3425 # ----------------------
3426
3427 # With GNU as
3428
3429 # Check whether --with-gnu-as was given.
3430 if test "${with_gnu_as+set}" = set; then :
3431 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3432 else
3433 gas_flag=no
3434 fi
3435
3436
3437
3438 # Check whether --with-as was given.
3439 if test "${with_as+set}" = set; then :
3440 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3441 fi
3442
3443 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3444 if test ! -x "$DEFAULT_ASSEMBLER"; then
3445 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3446 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3447 gas_flag=yes
3448 fi
3449
3450 cat >>confdefs.h <<_ACEOF
3451 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3452 _ACEOF
3453
3454 fi
3455
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3457 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3458 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3459 if test x"$gas_flag" = x"no"; then
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3461 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3462 else
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3464 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3465 fi
3466 else
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3469 fi
3470
3471 # ---------------
3472 # Find C compiler
3473 # ---------------
3474
3475 # If a non-executable a.out is present (e.g. created by GNU as above even if
3476 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3477 # file, even when creating an executable, so an execution test fails.
3478 # Remove possible default executable files to avoid this.
3479 #
3480 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3481 # Autoconf includes it.
3482 rm -f a.out a.exe b.out
3483
3484 # Find the native compiler
3485 ac_ext=c
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490 if test -n "$ac_tool_prefix"; then
3491 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3492 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 $as_echo_n "checking for $ac_word... " >&6; }
3495 if test "${ac_cv_prog_CC+set}" = set; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3500 else
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH
3503 do
3504 IFS=$as_save_IFS
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3508 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 break 2
3511 fi
3512 done
3513 done
3514 IFS=$as_save_IFS
3515
3516 fi
3517 fi
3518 CC=$ac_cv_prog_CC
3519 if test -n "$CC"; then
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3521 $as_echo "$CC" >&6; }
3522 else
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3525 fi
3526
3527
3528 fi
3529 if test -z "$ac_cv_prog_CC"; then
3530 ac_ct_CC=$CC
3531 # Extract the first word of "gcc", so it can be a program name with args.
3532 set dummy gcc; ac_word=$2
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534 $as_echo_n "checking for $ac_word... " >&6; }
3535 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3536 $as_echo_n "(cached) " >&6
3537 else
3538 if test -n "$ac_ct_CC"; then
3539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3543 do
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3548 ac_cv_prog_ac_ct_CC="gcc"
3549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 break 2
3551 fi
3552 done
3553 done
3554 IFS=$as_save_IFS
3555
3556 fi
3557 fi
3558 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3559 if test -n "$ac_ct_CC"; then
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3561 $as_echo "$ac_ct_CC" >&6; }
3562 else
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3565 fi
3566
3567 if test "x$ac_ct_CC" = x; then
3568 CC=""
3569 else
3570 case $cross_compiling:$ac_tool_warned in
3571 yes:)
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3574 ac_tool_warned=yes ;;
3575 esac
3576 CC=$ac_ct_CC
3577 fi
3578 else
3579 CC="$ac_cv_prog_CC"
3580 fi
3581
3582 if test -z "$CC"; then
3583 if test -n "$ac_tool_prefix"; then
3584 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3585 set dummy ${ac_tool_prefix}cc; ac_word=$2
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 $as_echo_n "checking for $ac_word... " >&6; }
3588 if test "${ac_cv_prog_CC+set}" = set; then :
3589 $as_echo_n "(cached) " >&6
3590 else
3591 if test -n "$CC"; then
3592 ac_cv_prog_CC="$CC" # Let the user override the test.
3593 else
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3596 do
3597 IFS=$as_save_IFS
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3601 ac_cv_prog_CC="${ac_tool_prefix}cc"
3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 break 2
3604 fi
3605 done
3606 done
3607 IFS=$as_save_IFS
3608
3609 fi
3610 fi
3611 CC=$ac_cv_prog_CC
3612 if test -n "$CC"; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3614 $as_echo "$CC" >&6; }
3615 else
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3618 fi
3619
3620
3621 fi
3622 fi
3623 if test -z "$CC"; then
3624 # Extract the first word of "cc", so it can be a program name with args.
3625 set dummy cc; ac_word=$2
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3627 $as_echo_n "checking for $ac_word... " >&6; }
3628 if test "${ac_cv_prog_CC+set}" = set; then :
3629 $as_echo_n "(cached) " >&6
3630 else
3631 if test -n "$CC"; then
3632 ac_cv_prog_CC="$CC" # Let the user override the test.
3633 else
3634 ac_prog_rejected=no
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3637 do
3638 IFS=$as_save_IFS
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3642 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3643 ac_prog_rejected=yes
3644 continue
3645 fi
3646 ac_cv_prog_CC="cc"
3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3648 break 2
3649 fi
3650 done
3651 done
3652 IFS=$as_save_IFS
3653
3654 if test $ac_prog_rejected = yes; then
3655 # We found a bogon in the path, so make sure we never use it.
3656 set dummy $ac_cv_prog_CC
3657 shift
3658 if test $# != 0; then
3659 # We chose a different compiler from the bogus one.
3660 # However, it has the same basename, so the bogon will be chosen
3661 # first if we set CC to just the basename; use the full file name.
3662 shift
3663 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3664 fi
3665 fi
3666 fi
3667 fi
3668 CC=$ac_cv_prog_CC
3669 if test -n "$CC"; then
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3671 $as_echo "$CC" >&6; }
3672 else
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3675 fi
3676
3677
3678 fi
3679 if test -z "$CC"; then
3680 if test -n "$ac_tool_prefix"; then
3681 for ac_prog in cl.exe
3682 do
3683 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3684 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3686 $as_echo_n "checking for $ac_word... " >&6; }
3687 if test "${ac_cv_prog_CC+set}" = set; then :
3688 $as_echo_n "(cached) " >&6
3689 else
3690 if test -n "$CC"; then
3691 ac_cv_prog_CC="$CC" # Let the user override the test.
3692 else
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 for as_dir in $PATH
3695 do
3696 IFS=$as_save_IFS
3697 test -z "$as_dir" && as_dir=.
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3700 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3702 break 2
3703 fi
3704 done
3705 done
3706 IFS=$as_save_IFS
3707
3708 fi
3709 fi
3710 CC=$ac_cv_prog_CC
3711 if test -n "$CC"; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3713 $as_echo "$CC" >&6; }
3714 else
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716 $as_echo "no" >&6; }
3717 fi
3718
3719
3720 test -n "$CC" && break
3721 done
3722 fi
3723 if test -z "$CC"; then
3724 ac_ct_CC=$CC
3725 for ac_prog in cl.exe
3726 do
3727 # Extract the first word of "$ac_prog", so it can be a program name with args.
3728 set dummy $ac_prog; ac_word=$2
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730 $as_echo_n "checking for $ac_word... " >&6; }
3731 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3732 $as_echo_n "(cached) " >&6
3733 else
3734 if test -n "$ac_ct_CC"; then
3735 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3736 else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3739 do
3740 IFS=$as_save_IFS
3741 test -z "$as_dir" && as_dir=.
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3744 ac_cv_prog_ac_ct_CC="$ac_prog"
3745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 break 2
3747 fi
3748 done
3749 done
3750 IFS=$as_save_IFS
3751
3752 fi
3753 fi
3754 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3755 if test -n "$ac_ct_CC"; then
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3757 $as_echo "$ac_ct_CC" >&6; }
3758 else
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 $as_echo "no" >&6; }
3761 fi
3762
3763
3764 test -n "$ac_ct_CC" && break
3765 done
3766
3767 if test "x$ac_ct_CC" = x; then
3768 CC=""
3769 else
3770 case $cross_compiling:$ac_tool_warned in
3771 yes:)
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3774 ac_tool_warned=yes ;;
3775 esac
3776 CC=$ac_ct_CC
3777 fi
3778 fi
3779
3780 fi
3781
3782
3783 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785 as_fn_error "no acceptable C compiler found in \$PATH
3786 See \`config.log' for more details." "$LINENO" 5; }
3787
3788 # Provide some information about the compiler.
3789 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3790 set X $ac_compile
3791 ac_compiler=$2
3792 for ac_option in --version -v -V -qversion; do
3793 { { ac_try="$ac_compiler $ac_option >&5"
3794 case "(($ac_try" in
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3797 esac
3798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3799 $as_echo "$ac_try_echo"; } >&5
3800 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3801 ac_status=$?
3802 if test -s conftest.err; then
3803 sed '10a\
3804 ... rest of stderr output deleted ...
3805 10q' conftest.err >conftest.er1
3806 cat conftest.er1 >&5
3807 rm -f conftest.er1 conftest.err
3808 fi
3809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810 test $ac_status = 0; }
3811 done
3812
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3815
3816 int
3817 main ()
3818 {
3819
3820 ;
3821 return 0;
3822 }
3823 _ACEOF
3824 ac_clean_files_save=$ac_clean_files
3825 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3826 # Try to create an executable without -o first, disregard a.out.
3827 # It will help us diagnose broken compilers, and finding out an intuition
3828 # of exeext.
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3830 $as_echo_n "checking for C compiler default output file name... " >&6; }
3831 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3832
3833 # The possible output files:
3834 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3835
3836 ac_rmfiles=
3837 for ac_file in $ac_files
3838 do
3839 case $ac_file in
3840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3841 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3842 esac
3843 done
3844 rm -f $ac_rmfiles
3845
3846 if { { ac_try="$ac_link_default"
3847 case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850 esac
3851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852 $as_echo "$ac_try_echo"; } >&5
3853 (eval "$ac_link_default") 2>&5
3854 ac_status=$?
3855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856 test $ac_status = 0; }; then :
3857 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3858 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3859 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3860 # so that the user can short-circuit this test for compilers unknown to
3861 # Autoconf.
3862 for ac_file in $ac_files ''
3863 do
3864 test -f "$ac_file" || continue
3865 case $ac_file in
3866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3867 ;;
3868 [ab].out )
3869 # We found the default executable, but exeext='' is most
3870 # certainly right.
3871 break;;
3872 *.* )
3873 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3874 then :; else
3875 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3876 fi
3877 # We set ac_cv_exeext here because the later test for it is not
3878 # safe: cross compilers may not add the suffix if given an `-o'
3879 # argument, so we may need to know it at that point already.
3880 # Even if this section looks crufty: it has the advantage of
3881 # actually working.
3882 break;;
3883 * )
3884 break;;
3885 esac
3886 done
3887 test "$ac_cv_exeext" = no && ac_cv_exeext=
3888
3889 else
3890 ac_file=''
3891 fi
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3893 $as_echo "$ac_file" >&6; }
3894 if test -z "$ac_file"; then :
3895 $as_echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3897
3898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3900 { as_fn_set_status 77
3901 as_fn_error "C compiler cannot create executables
3902 See \`config.log' for more details." "$LINENO" 5; }; }
3903 fi
3904 ac_exeext=$ac_cv_exeext
3905
3906 # Check that the compiler produces executables we can run. If not, either
3907 # the compiler is broken, or we cross compile.
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3909 $as_echo_n "checking whether the C compiler works... " >&6; }
3910 # If not cross compiling, check that we can run a simple program.
3911 if test "$cross_compiling" != yes; then
3912 if { ac_try='./$ac_file'
3913 { { case "(($ac_try" in
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3916 esac
3917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3918 $as_echo "$ac_try_echo"; } >&5
3919 (eval "$ac_try") 2>&5
3920 ac_status=$?
3921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3922 test $ac_status = 0; }; }; then
3923 cross_compiling=no
3924 else
3925 if test "$cross_compiling" = maybe; then
3926 cross_compiling=yes
3927 else
3928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3930 as_fn_error "cannot run C compiled programs.
3931 If you meant to cross compile, use \`--host'.
3932 See \`config.log' for more details." "$LINENO" 5; }
3933 fi
3934 fi
3935 fi
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3937 $as_echo "yes" >&6; }
3938
3939 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3940 ac_clean_files=$ac_clean_files_save
3941 # Check that the compiler produces executables we can run. If not, either
3942 # the compiler is broken, or we cross compile.
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3944 $as_echo_n "checking whether we are cross compiling... " >&6; }
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3946 $as_echo "$cross_compiling" >&6; }
3947
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3949 $as_echo_n "checking for suffix of executables... " >&6; }
3950 if { { ac_try="$ac_link"
3951 case "(($ac_try" in
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3954 esac
3955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3956 $as_echo "$ac_try_echo"; } >&5
3957 (eval "$ac_link") 2>&5
3958 ac_status=$?
3959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3960 test $ac_status = 0; }; then :
3961 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3962 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3963 # work properly (i.e., refer to `conftest.exe'), while it won't with
3964 # `rm'.
3965 for ac_file in conftest.exe conftest conftest.*; do
3966 test -f "$ac_file" || continue
3967 case $ac_file in
3968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3969 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3970 break;;
3971 * ) break;;
3972 esac
3973 done
3974 else
3975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3977 as_fn_error "cannot compute suffix of executables: cannot compile and link
3978 See \`config.log' for more details." "$LINENO" 5; }
3979 fi
3980 rm -f conftest$ac_cv_exeext
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3982 $as_echo "$ac_cv_exeext" >&6; }
3983
3984 rm -f conftest.$ac_ext
3985 EXEEXT=$ac_cv_exeext
3986 ac_exeext=$EXEEXT
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3988 $as_echo_n "checking for suffix of object files... " >&6; }
3989 if test "${ac_cv_objext+set}" = set; then :
3990 $as_echo_n "(cached) " >&6
3991 else
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
3994
3995 int
3996 main ()
3997 {
3998
3999 ;
4000 return 0;
4001 }
4002 _ACEOF
4003 rm -f conftest.o conftest.obj
4004 if { { ac_try="$ac_compile"
4005 case "(($ac_try" in
4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4008 esac
4009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4010 $as_echo "$ac_try_echo"; } >&5
4011 (eval "$ac_compile") 2>&5
4012 ac_status=$?
4013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4014 test $ac_status = 0; }; then :
4015 for ac_file in conftest.o conftest.obj conftest.*; do
4016 test -f "$ac_file" || continue;
4017 case $ac_file in
4018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4019 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4020 break;;
4021 esac
4022 done
4023 else
4024 $as_echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4026
4027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4029 as_fn_error "cannot compute suffix of object files: cannot compile
4030 See \`config.log' for more details." "$LINENO" 5; }
4031 fi
4032 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4033 fi
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4035 $as_echo "$ac_cv_objext" >&6; }
4036 OBJEXT=$ac_cv_objext
4037 ac_objext=$OBJEXT
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4039 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4040 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4041 $as_echo_n "(cached) " >&6
4042 else
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4045
4046 int
4047 main ()
4048 {
4049 #ifndef __GNUC__
4050 choke me
4051 #endif
4052
4053 ;
4054 return 0;
4055 }
4056 _ACEOF
4057 if ac_fn_c_try_compile "$LINENO"; then :
4058 ac_compiler_gnu=yes
4059 else
4060 ac_compiler_gnu=no
4061 fi
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4064
4065 fi
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4067 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4068 if test $ac_compiler_gnu = yes; then
4069 GCC=yes
4070 else
4071 GCC=
4072 fi
4073 ac_test_CFLAGS=${CFLAGS+set}
4074 ac_save_CFLAGS=$CFLAGS
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4076 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4077 if test "${ac_cv_prog_cc_g+set}" = set; then :
4078 $as_echo_n "(cached) " >&6
4079 else
4080 ac_save_c_werror_flag=$ac_c_werror_flag
4081 ac_c_werror_flag=yes
4082 ac_cv_prog_cc_g=no
4083 CFLAGS="-g"
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4086
4087 int
4088 main ()
4089 {
4090
4091 ;
4092 return 0;
4093 }
4094 _ACEOF
4095 if ac_fn_c_try_compile "$LINENO"; then :
4096 ac_cv_prog_cc_g=yes
4097 else
4098 CFLAGS=""
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4101
4102 int
4103 main ()
4104 {
4105
4106 ;
4107 return 0;
4108 }
4109 _ACEOF
4110 if ac_fn_c_try_compile "$LINENO"; then :
4111
4112 else
4113 ac_c_werror_flag=$ac_save_c_werror_flag
4114 CFLAGS="-g"
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4117
4118 int
4119 main ()
4120 {
4121
4122 ;
4123 return 0;
4124 }
4125 _ACEOF
4126 if ac_fn_c_try_compile "$LINENO"; then :
4127 ac_cv_prog_cc_g=yes
4128 fi
4129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4130 fi
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 fi
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 ac_c_werror_flag=$ac_save_c_werror_flag
4135 fi
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4137 $as_echo "$ac_cv_prog_cc_g" >&6; }
4138 if test "$ac_test_CFLAGS" = set; then
4139 CFLAGS=$ac_save_CFLAGS
4140 elif test $ac_cv_prog_cc_g = yes; then
4141 if test "$GCC" = yes; then
4142 CFLAGS="-g -O2"
4143 else
4144 CFLAGS="-g"
4145 fi
4146 else
4147 if test "$GCC" = yes; then
4148 CFLAGS="-O2"
4149 else
4150 CFLAGS=
4151 fi
4152 fi
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4154 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4155 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4156 $as_echo_n "(cached) " >&6
4157 else
4158 ac_cv_prog_cc_c89=no
4159 ac_save_CC=$CC
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4162 #include <stdarg.h>
4163 #include <stdio.h>
4164 #include <sys/types.h>
4165 #include <sys/stat.h>
4166 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4167 struct buf { int x; };
4168 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4169 static char *e (p, i)
4170 char **p;
4171 int i;
4172 {
4173 return p[i];
4174 }
4175 static char *f (char * (*g) (char **, int), char **p, ...)
4176 {
4177 char *s;
4178 va_list v;
4179 va_start (v,p);
4180 s = g (p, va_arg (v,int));
4181 va_end (v);
4182 return s;
4183 }
4184
4185 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4186 function prototypes and stuff, but not '\xHH' hex character constants.
4187 These don't provoke an error unfortunately, instead are silently treated
4188 as 'x'. The following induces an error, until -std is added to get
4189 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4190 array size at least. It's necessary to write '\x00'==0 to get something
4191 that's true only with -std. */
4192 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4193
4194 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4195 inside strings and character constants. */
4196 #define FOO(x) 'x'
4197 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4198
4199 int test (int i, double x);
4200 struct s1 {int (*f) (int a);};
4201 struct s2 {int (*f) (double a);};
4202 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4203 int argc;
4204 char **argv;
4205 int
4206 main ()
4207 {
4208 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4209 ;
4210 return 0;
4211 }
4212 _ACEOF
4213 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4214 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4215 do
4216 CC="$ac_save_CC $ac_arg"
4217 if ac_fn_c_try_compile "$LINENO"; then :
4218 ac_cv_prog_cc_c89=$ac_arg
4219 fi
4220 rm -f core conftest.err conftest.$ac_objext
4221 test "x$ac_cv_prog_cc_c89" != "xno" && break
4222 done
4223 rm -f conftest.$ac_ext
4224 CC=$ac_save_CC
4225
4226 fi
4227 # AC_CACHE_VAL
4228 case "x$ac_cv_prog_cc_c89" in
4229 x)
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4231 $as_echo "none needed" >&6; } ;;
4232 xno)
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4234 $as_echo "unsupported" >&6; } ;;
4235 *)
4236 CC="$CC $ac_cv_prog_cc_c89"
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4238 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4239 esac
4240 if test "x$ac_cv_prog_cc_c89" != xno; then :
4241
4242 fi
4243
4244 ac_ext=c
4245 ac_cpp='$CPP $CPPFLAGS'
4246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249
4250 if test "x$CC" != xcc; then
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4252 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4253 else
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4255 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4256 fi
4257 set dummy $CC; ac_cc=`$as_echo "$2" |
4258 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4259 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4260 $as_echo_n "(cached) " >&6
4261 else
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4264
4265 int
4266 main ()
4267 {
4268
4269 ;
4270 return 0;
4271 }
4272 _ACEOF
4273 # Make sure it works both with $CC and with simple cc.
4274 # We do the test twice because some compilers refuse to overwrite an
4275 # existing .o file with -o, though they will create one.
4276 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4277 rm -f conftest2.*
4278 if { { case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4281 esac
4282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4283 $as_echo "$ac_try_echo"; } >&5
4284 (eval "$ac_try") 2>&5
4285 ac_status=$?
4286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4287 test $ac_status = 0; } &&
4288 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4291 esac
4292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4293 $as_echo "$ac_try_echo"; } >&5
4294 (eval "$ac_try") 2>&5
4295 ac_status=$?
4296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4297 test $ac_status = 0; };
4298 then
4299 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4300 if test "x$CC" != xcc; then
4301 # Test first that cc exists at all.
4302 if { ac_try='cc -c conftest.$ac_ext >&5'
4303 { { case "(($ac_try" in
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4306 esac
4307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4308 $as_echo "$ac_try_echo"; } >&5
4309 (eval "$ac_try") 2>&5
4310 ac_status=$?
4311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4312 test $ac_status = 0; }; }; then
4313 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4314 rm -f conftest2.*
4315 if { { 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; } &&
4325 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4328 esac
4329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4330 $as_echo "$ac_try_echo"; } >&5
4331 (eval "$ac_try") 2>&5
4332 ac_status=$?
4333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4334 test $ac_status = 0; };
4335 then
4336 # cc works too.
4337 :
4338 else
4339 # cc exists but doesn't like -o.
4340 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4341 fi
4342 fi
4343 fi
4344 else
4345 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4346 fi
4347 rm -f core conftest*
4348
4349 fi
4350 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4352 $as_echo "yes" >&6; }
4353 else
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4355 $as_echo "no" >&6; }
4356
4357 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4358
4359 fi
4360
4361 # expand $ac_aux_dir to an absolute path
4362 am_aux_dir=`cd $ac_aux_dir && pwd`
4363
4364 # FIXME: we rely on the cache variable name because
4365 # there is no other way.
4366 set dummy $CC
4367 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4368 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4369 if test "$am_t" != yes; then
4370 # Losing compiler, so override with the script.
4371 # FIXME: It is wrong to rewrite CC.
4372 # But if we don't then we get into trouble of one sort or another.
4373 # A longer-term fix would be to have automake use am__CC in this case,
4374 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4375 CC="$am_aux_dir/compile $CC"
4376 fi
4377
4378
4379 ac_ext=cpp
4380 ac_cpp='$CXXCPP $CPPFLAGS'
4381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4384 if test -z "$CXX"; then
4385 if test -n "$CCC"; then
4386 CXX=$CCC
4387 else
4388 if test -n "$ac_tool_prefix"; then
4389 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4390 do
4391 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4392 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4394 $as_echo_n "checking for $ac_word... " >&6; }
4395 if test "${ac_cv_prog_CXX+set}" = set; then :
4396 $as_echo_n "(cached) " >&6
4397 else
4398 if test -n "$CXX"; then
4399 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4400 else
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 for as_dir in $PATH
4403 do
4404 IFS=$as_save_IFS
4405 test -z "$as_dir" && as_dir=.
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4408 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 break 2
4411 fi
4412 done
4413 done
4414 IFS=$as_save_IFS
4415
4416 fi
4417 fi
4418 CXX=$ac_cv_prog_CXX
4419 if test -n "$CXX"; then
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4421 $as_echo "$CXX" >&6; }
4422 else
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424 $as_echo "no" >&6; }
4425 fi
4426
4427
4428 test -n "$CXX" && break
4429 done
4430 fi
4431 if test -z "$CXX"; then
4432 ac_ct_CXX=$CXX
4433 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4434 do
4435 # Extract the first word of "$ac_prog", so it can be a program name with args.
4436 set dummy $ac_prog; ac_word=$2
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4438 $as_echo_n "checking for $ac_word... " >&6; }
4439 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4440 $as_echo_n "(cached) " >&6
4441 else
4442 if test -n "$ac_ct_CXX"; then
4443 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4444 else
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH
4447 do
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4452 ac_cv_prog_ac_ct_CXX="$ac_prog"
4453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 break 2
4455 fi
4456 done
4457 done
4458 IFS=$as_save_IFS
4459
4460 fi
4461 fi
4462 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4463 if test -n "$ac_ct_CXX"; then
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4465 $as_echo "$ac_ct_CXX" >&6; }
4466 else
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4468 $as_echo "no" >&6; }
4469 fi
4470
4471
4472 test -n "$ac_ct_CXX" && break
4473 done
4474
4475 if test "x$ac_ct_CXX" = x; then
4476 CXX="g++"
4477 else
4478 case $cross_compiling:$ac_tool_warned in
4479 yes:)
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4482 ac_tool_warned=yes ;;
4483 esac
4484 CXX=$ac_ct_CXX
4485 fi
4486 fi
4487
4488 fi
4489 fi
4490 # Provide some information about the compiler.
4491 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4492 set X $ac_compile
4493 ac_compiler=$2
4494 for ac_option in --version -v -V -qversion; do
4495 { { ac_try="$ac_compiler $ac_option >&5"
4496 case "(($ac_try" in
4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4499 esac
4500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4501 $as_echo "$ac_try_echo"; } >&5
4502 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4503 ac_status=$?
4504 if test -s conftest.err; then
4505 sed '10a\
4506 ... rest of stderr output deleted ...
4507 10q' conftest.err >conftest.er1
4508 cat conftest.er1 >&5
4509 rm -f conftest.er1 conftest.err
4510 fi
4511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4512 test $ac_status = 0; }
4513 done
4514
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4516 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4517 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4518 $as_echo_n "(cached) " >&6
4519 else
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4522
4523 int
4524 main ()
4525 {
4526 #ifndef __GNUC__
4527 choke me
4528 #endif
4529
4530 ;
4531 return 0;
4532 }
4533 _ACEOF
4534 if ac_fn_cxx_try_compile "$LINENO"; then :
4535 ac_compiler_gnu=yes
4536 else
4537 ac_compiler_gnu=no
4538 fi
4539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4540 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4541
4542 fi
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4544 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4545 if test $ac_compiler_gnu = yes; then
4546 GXX=yes
4547 else
4548 GXX=
4549 fi
4550 ac_test_CXXFLAGS=${CXXFLAGS+set}
4551 ac_save_CXXFLAGS=$CXXFLAGS
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4553 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4554 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4555 $as_echo_n "(cached) " >&6
4556 else
4557 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4558 ac_cxx_werror_flag=yes
4559 ac_cv_prog_cxx_g=no
4560 CXXFLAGS="-g"
4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4563
4564 int
4565 main ()
4566 {
4567
4568 ;
4569 return 0;
4570 }
4571 _ACEOF
4572 if ac_fn_cxx_try_compile "$LINENO"; then :
4573 ac_cv_prog_cxx_g=yes
4574 else
4575 CXXFLAGS=""
4576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577 /* end confdefs.h. */
4578
4579 int
4580 main ()
4581 {
4582
4583 ;
4584 return 0;
4585 }
4586 _ACEOF
4587 if ac_fn_cxx_try_compile "$LINENO"; then :
4588
4589 else
4590 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4591 CXXFLAGS="-g"
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h. */
4594
4595 int
4596 main ()
4597 {
4598
4599 ;
4600 return 0;
4601 }
4602 _ACEOF
4603 if ac_fn_cxx_try_compile "$LINENO"; then :
4604 ac_cv_prog_cxx_g=yes
4605 fi
4606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 fi
4608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4609 fi
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4612 fi
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4614 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4615 if test "$ac_test_CXXFLAGS" = set; then
4616 CXXFLAGS=$ac_save_CXXFLAGS
4617 elif test $ac_cv_prog_cxx_g = yes; then
4618 if test "$GXX" = yes; then
4619 CXXFLAGS="-g -O2"
4620 else
4621 CXXFLAGS="-g"
4622 fi
4623 else
4624 if test "$GXX" = yes; then
4625 CXXFLAGS="-O2"
4626 else
4627 CXXFLAGS=
4628 fi
4629 fi
4630 ac_ext=c
4631 ac_cpp='$CPP $CPPFLAGS'
4632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4635
4636
4637
4638
4639 if test -n "$ac_tool_prefix"; then
4640 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4641 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 if test -n "$GNATBIND"; then
4648 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4652 do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4657 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 break 2
4660 fi
4661 done
4662 done
4663 IFS=$as_save_IFS
4664
4665 fi
4666 fi
4667 GNATBIND=$ac_cv_prog_GNATBIND
4668 if test -n "$GNATBIND"; then
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4670 $as_echo "$GNATBIND" >&6; }
4671 else
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673 $as_echo "no" >&6; }
4674 fi
4675
4676
4677 fi
4678 if test -z "$ac_cv_prog_GNATBIND"; then
4679 ac_ct_GNATBIND=$GNATBIND
4680 # Extract the first word of "gnatbind", so it can be a program name with args.
4681 set dummy gnatbind; ac_word=$2
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4683 $as_echo_n "checking for $ac_word... " >&6; }
4684 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4685 $as_echo_n "(cached) " >&6
4686 else
4687 if test -n "$ac_ct_GNATBIND"; then
4688 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4689 else
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH
4692 do
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4697 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 break 2
4700 fi
4701 done
4702 done
4703 IFS=$as_save_IFS
4704
4705 fi
4706 fi
4707 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4708 if test -n "$ac_ct_GNATBIND"; then
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4710 $as_echo "$ac_ct_GNATBIND" >&6; }
4711 else
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713 $as_echo "no" >&6; }
4714 fi
4715
4716 if test "x$ac_ct_GNATBIND" = x; then
4717 GNATBIND="no"
4718 else
4719 case $cross_compiling:$ac_tool_warned in
4720 yes:)
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4723 ac_tool_warned=yes ;;
4724 esac
4725 GNATBIND=$ac_ct_GNATBIND
4726 fi
4727 else
4728 GNATBIND="$ac_cv_prog_GNATBIND"
4729 fi
4730
4731 if test -n "$ac_tool_prefix"; then
4732 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4733 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4735 $as_echo_n "checking for $ac_word... " >&6; }
4736 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4737 $as_echo_n "(cached) " >&6
4738 else
4739 if test -n "$GNATMAKE"; then
4740 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4741 else
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 for as_dir in $PATH
4744 do
4745 IFS=$as_save_IFS
4746 test -z "$as_dir" && as_dir=.
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4749 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 break 2
4752 fi
4753 done
4754 done
4755 IFS=$as_save_IFS
4756
4757 fi
4758 fi
4759 GNATMAKE=$ac_cv_prog_GNATMAKE
4760 if test -n "$GNATMAKE"; then
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4762 $as_echo "$GNATMAKE" >&6; }
4763 else
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765 $as_echo "no" >&6; }
4766 fi
4767
4768
4769 fi
4770 if test -z "$ac_cv_prog_GNATMAKE"; then
4771 ac_ct_GNATMAKE=$GNATMAKE
4772 # Extract the first word of "gnatmake", so it can be a program name with args.
4773 set dummy gnatmake; ac_word=$2
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4775 $as_echo_n "checking for $ac_word... " >&6; }
4776 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4777 $as_echo_n "(cached) " >&6
4778 else
4779 if test -n "$ac_ct_GNATMAKE"; then
4780 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4781 else
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH
4784 do
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4789 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 break 2
4792 fi
4793 done
4794 done
4795 IFS=$as_save_IFS
4796
4797 fi
4798 fi
4799 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4800 if test -n "$ac_ct_GNATMAKE"; then
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4802 $as_echo "$ac_ct_GNATMAKE" >&6; }
4803 else
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805 $as_echo "no" >&6; }
4806 fi
4807
4808 if test "x$ac_ct_GNATMAKE" = x; then
4809 GNATMAKE="no"
4810 else
4811 case $cross_compiling:$ac_tool_warned in
4812 yes:)
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4815 ac_tool_warned=yes ;;
4816 esac
4817 GNATMAKE=$ac_ct_GNATMAKE
4818 fi
4819 else
4820 GNATMAKE="$ac_cv_prog_GNATMAKE"
4821 fi
4822
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4824 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4825 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4826 $as_echo_n "(cached) " >&6
4827 else
4828 cat >conftest.adb <<EOF
4829 procedure conftest is begin null; end conftest;
4830 EOF
4831 acx_cv_cc_gcc_supports_ada=no
4832 # There is a bug in old released versions of GCC which causes the
4833 # driver to exit successfully when the appropriate language module
4834 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4835 # Therefore we must check for the error message as well as an
4836 # unsuccessful exit.
4837 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4838 # given a .adb file, but produce no object file. So we must check
4839 # if an object file was really produced to guard against this.
4840 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4841 if test x"$errors" = x && test -f conftest.$ac_objext; then
4842 acx_cv_cc_gcc_supports_ada=yes
4843 fi
4844 rm -f conftest.*
4845 fi
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4847 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4848
4849 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4850 have_gnat=yes
4851 else
4852 have_gnat=no
4853 fi
4854
4855
4856 # autoconf is lame and doesn't give us any substitution variable for this.
4857 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4858 NO_MINUS_C_MINUS_O=yes
4859 else
4860 OUTPUT_OPTION='-o $@'
4861 fi
4862
4863
4864
4865 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4866 # optimizations to be activated explicitly by the toplevel.
4867 case "$CC" in
4868 */prev-gcc/xgcc*) ;;
4869 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4870 esac
4871
4872
4873 # Determine PICFLAG for target gnatlib.
4874
4875
4876
4877
4878 case "${target}" in
4879 # PIC is the default on some targets or must not be used.
4880 *-*-darwin*)
4881 # PIC is the default on this platform
4882 # Common symbols not allowed in MH_DYLIB files
4883 PICFLAG_FOR_TARGET=-fno-common
4884 ;;
4885 alpha*-dec-osf5*)
4886 # PIC is the default.
4887 ;;
4888 hppa*64*-*-hpux*)
4889 # PIC is the default for 64-bit PA HP-UX.
4890 ;;
4891 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4892 ;;
4893 i[34567]86-*-interix[3-9]*)
4894 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4895 # Instead, we relocate shared libraries at runtime.
4896 ;;
4897 i[34567]86-*-nto-qnx*)
4898 # QNX uses GNU C++, but need to define -shared option too, otherwise
4899 # it will coredump.
4900 PICFLAG_FOR_TARGET='-fPIC -shared'
4901 ;;
4902 i[34567]86-pc-msdosdjgpp*)
4903 # DJGPP does not support shared libraries at all.
4904 ;;
4905 ia64*-*-hpux*)
4906 # On IA64 HP-UX, PIC is the default but the pic flag
4907 # sets the default TLS model and affects inlining.
4908 PICFLAG_FOR_TARGET=-fPIC
4909 ;;
4910 mips-sgi-irix6*)
4911 # PIC is the default.
4912 ;;
4913 rs6000-ibm-aix* | powerpc-ibm-aix*)
4914 # All AIX code is PIC.
4915 ;;
4916
4917 # Some targets support both -fPIC and -fpic, but prefer the latter.
4918 # FIXME: Why?
4919 i[34567]86-*-* | x86_64-*-*)
4920 PICFLAG_FOR_TARGET=-fpic
4921 ;;
4922 m68k-*-*)
4923 PICFLAG_FOR_TARGET=-fpic
4924 ;;
4925 # FIXME: Override -fPIC default in libgcc only?
4926 sh-*-linux* | sh[2346lbe]*-*-linux*)
4927 PICFLAG_FOR_TARGET=-fpic
4928 ;;
4929 # FIXME: Simplify to sh*-*-netbsd*?
4930 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4931 sh64-*-netbsd* | sh64l*-*-netbsd*)
4932 PICFLAG_FOR_TARGET=-fpic
4933 ;;
4934 # Default to -fPIC unless specified otherwise.
4935 *)
4936 PICFLAG_FOR_TARGET=-fPIC
4937 ;;
4938 esac
4939
4940 # If the user explicitly uses -fpic/-fPIC, keep that.
4941 case "${CFLAGS_FOR_TARGET}" in
4942 *-fpic*)
4943 PICFLAG_FOR_TARGET=-fpic
4944 ;;
4945 *-fPIC*)
4946 PICFLAG_FOR_TARGET=-fPIC
4947 ;;
4948 esac
4949
4950
4951
4952 # -------------------------
4953 # Check C compiler features
4954 # -------------------------
4955
4956
4957 ac_ext=c
4958 ac_cpp='$CPP $CPPFLAGS'
4959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4963 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4964 # On Suns, sometimes $CPP names a directory.
4965 if test -n "$CPP" && test -d "$CPP"; then
4966 CPP=
4967 fi
4968 if test -z "$CPP"; then
4969 if test "${ac_cv_prog_CPP+set}" = set; then :
4970 $as_echo_n "(cached) " >&6
4971 else
4972 # Double quotes because CPP needs to be expanded
4973 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4974 do
4975 ac_preproc_ok=false
4976 for ac_c_preproc_warn_flag in '' yes
4977 do
4978 # Use a header file that comes with gcc, so configuring glibc
4979 # with a fresh cross-compiler works.
4980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4981 # <limits.h> exists even on freestanding compilers.
4982 # On the NeXT, cc -E runs the code through the compiler's parser,
4983 # not just through cpp. "Syntax error" is here to catch this case.
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4986 #ifdef __STDC__
4987 # include <limits.h>
4988 #else
4989 # include <assert.h>
4990 #endif
4991 Syntax error
4992 _ACEOF
4993 if ac_fn_c_try_cpp "$LINENO"; then :
4994
4995 else
4996 # Broken: fails on valid input.
4997 continue
4998 fi
4999 rm -f conftest.err conftest.$ac_ext
5000
5001 # OK, works on sane cases. Now check whether nonexistent headers
5002 # can be detected and how.
5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5005 #include <ac_nonexistent.h>
5006 _ACEOF
5007 if ac_fn_c_try_cpp "$LINENO"; then :
5008 # Broken: success on invalid input.
5009 continue
5010 else
5011 # Passes both tests.
5012 ac_preproc_ok=:
5013 break
5014 fi
5015 rm -f conftest.err conftest.$ac_ext
5016
5017 done
5018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5019 rm -f conftest.err conftest.$ac_ext
5020 if $ac_preproc_ok; then :
5021 break
5022 fi
5023
5024 done
5025 ac_cv_prog_CPP=$CPP
5026
5027 fi
5028 CPP=$ac_cv_prog_CPP
5029 else
5030 ac_cv_prog_CPP=$CPP
5031 fi
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5033 $as_echo "$CPP" >&6; }
5034 ac_preproc_ok=false
5035 for ac_c_preproc_warn_flag in '' yes
5036 do
5037 # Use a header file that comes with gcc, so configuring glibc
5038 # with a fresh cross-compiler works.
5039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5040 # <limits.h> exists even on freestanding compilers.
5041 # On the NeXT, cc -E runs the code through the compiler's parser,
5042 # not just through cpp. "Syntax error" is here to catch this case.
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5045 #ifdef __STDC__
5046 # include <limits.h>
5047 #else
5048 # include <assert.h>
5049 #endif
5050 Syntax error
5051 _ACEOF
5052 if ac_fn_c_try_cpp "$LINENO"; then :
5053
5054 else
5055 # Broken: fails on valid input.
5056 continue
5057 fi
5058 rm -f conftest.err conftest.$ac_ext
5059
5060 # OK, works on sane cases. Now check whether nonexistent headers
5061 # can be detected and how.
5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063 /* end confdefs.h. */
5064 #include <ac_nonexistent.h>
5065 _ACEOF
5066 if ac_fn_c_try_cpp "$LINENO"; then :
5067 # Broken: success on invalid input.
5068 continue
5069 else
5070 # Passes both tests.
5071 ac_preproc_ok=:
5072 break
5073 fi
5074 rm -f conftest.err conftest.$ac_ext
5075
5076 done
5077 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5078 rm -f conftest.err conftest.$ac_ext
5079 if $ac_preproc_ok; then :
5080
5081 else
5082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5084 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5085 See \`config.log' for more details." "$LINENO" 5; }
5086 fi
5087
5088 ac_ext=c
5089 ac_cpp='$CPP $CPPFLAGS'
5090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5093
5094
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5096 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5097 if test "${ac_cv_path_GREP+set}" = set; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 if test -z "$GREP"; then
5101 ac_path_GREP_found=false
5102 # Loop through the user's path and test for each of PROGNAME-LIST
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5105 do
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_prog in grep ggrep; do
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5111 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5112 # Check for GNU ac_path_GREP and select it if it is found.
5113 # Check for GNU $ac_path_GREP
5114 case `"$ac_path_GREP" --version 2>&1` in
5115 *GNU*)
5116 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5117 *)
5118 ac_count=0
5119 $as_echo_n 0123456789 >"conftest.in"
5120 while :
5121 do
5122 cat "conftest.in" "conftest.in" >"conftest.tmp"
5123 mv "conftest.tmp" "conftest.in"
5124 cp "conftest.in" "conftest.nl"
5125 $as_echo 'GREP' >> "conftest.nl"
5126 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5128 as_fn_arith $ac_count + 1 && ac_count=$as_val
5129 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5130 # Best one so far, save it but keep looking for a better one
5131 ac_cv_path_GREP="$ac_path_GREP"
5132 ac_path_GREP_max=$ac_count
5133 fi
5134 # 10*(2^10) chars as input seems more than enough
5135 test $ac_count -gt 10 && break
5136 done
5137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5138 esac
5139
5140 $ac_path_GREP_found && break 3
5141 done
5142 done
5143 done
5144 IFS=$as_save_IFS
5145 if test -z "$ac_cv_path_GREP"; then
5146 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5147 fi
5148 else
5149 ac_cv_path_GREP=$GREP
5150 fi
5151
5152 fi
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5154 $as_echo "$ac_cv_path_GREP" >&6; }
5155 GREP="$ac_cv_path_GREP"
5156
5157
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5159 $as_echo_n "checking for egrep... " >&6; }
5160 if test "${ac_cv_path_EGREP+set}" = set; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5164 then ac_cv_path_EGREP="$GREP -E"
5165 else
5166 if test -z "$EGREP"; then
5167 ac_path_EGREP_found=false
5168 # Loop through the user's path and test for each of PROGNAME-LIST
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5171 do
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_prog in egrep; do
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5177 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5178 # Check for GNU ac_path_EGREP and select it if it is found.
5179 # Check for GNU $ac_path_EGREP
5180 case `"$ac_path_EGREP" --version 2>&1` in
5181 *GNU*)
5182 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5183 *)
5184 ac_count=0
5185 $as_echo_n 0123456789 >"conftest.in"
5186 while :
5187 do
5188 cat "conftest.in" "conftest.in" >"conftest.tmp"
5189 mv "conftest.tmp" "conftest.in"
5190 cp "conftest.in" "conftest.nl"
5191 $as_echo 'EGREP' >> "conftest.nl"
5192 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5194 as_fn_arith $ac_count + 1 && ac_count=$as_val
5195 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5196 # Best one so far, save it but keep looking for a better one
5197 ac_cv_path_EGREP="$ac_path_EGREP"
5198 ac_path_EGREP_max=$ac_count
5199 fi
5200 # 10*(2^10) chars as input seems more than enough
5201 test $ac_count -gt 10 && break
5202 done
5203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5204 esac
5205
5206 $ac_path_EGREP_found && break 3
5207 done
5208 done
5209 done
5210 IFS=$as_save_IFS
5211 if test -z "$ac_cv_path_EGREP"; then
5212 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5213 fi
5214 else
5215 ac_cv_path_EGREP=$EGREP
5216 fi
5217
5218 fi
5219 fi
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5221 $as_echo "$ac_cv_path_EGREP" >&6; }
5222 EGREP="$ac_cv_path_EGREP"
5223
5224
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5226 $as_echo_n "checking for ANSI C header files... " >&6; }
5227 if test "${ac_cv_header_stdc+set}" = set; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h. */
5232 #include <stdlib.h>
5233 #include <stdarg.h>
5234 #include <string.h>
5235 #include <float.h>
5236
5237 int
5238 main ()
5239 {
5240
5241 ;
5242 return 0;
5243 }
5244 _ACEOF
5245 if ac_fn_c_try_compile "$LINENO"; then :
5246 ac_cv_header_stdc=yes
5247 else
5248 ac_cv_header_stdc=no
5249 fi
5250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5251
5252 if test $ac_cv_header_stdc = yes; then
5253 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255 /* end confdefs.h. */
5256 #include <string.h>
5257
5258 _ACEOF
5259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5260 $EGREP "memchr" >/dev/null 2>&1; then :
5261
5262 else
5263 ac_cv_header_stdc=no
5264 fi
5265 rm -f conftest*
5266
5267 fi
5268
5269 if test $ac_cv_header_stdc = yes; then
5270 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5273 #include <stdlib.h>
5274
5275 _ACEOF
5276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5277 $EGREP "free" >/dev/null 2>&1; then :
5278
5279 else
5280 ac_cv_header_stdc=no
5281 fi
5282 rm -f conftest*
5283
5284 fi
5285
5286 if test $ac_cv_header_stdc = yes; then
5287 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5288 if test "$cross_compiling" = yes; then :
5289 :
5290 else
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293 #include <ctype.h>
5294 #include <stdlib.h>
5295 #if ((' ' & 0x0FF) == 0x020)
5296 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5297 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5298 #else
5299 # define ISLOWER(c) \
5300 (('a' <= (c) && (c) <= 'i') \
5301 || ('j' <= (c) && (c) <= 'r') \
5302 || ('s' <= (c) && (c) <= 'z'))
5303 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5304 #endif
5305
5306 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5307 int
5308 main ()
5309 {
5310 int i;
5311 for (i = 0; i < 256; i++)
5312 if (XOR (islower (i), ISLOWER (i))
5313 || toupper (i) != TOUPPER (i))
5314 return 2;
5315 return 0;
5316 }
5317 _ACEOF
5318 if ac_fn_c_try_run "$LINENO"; then :
5319
5320 else
5321 ac_cv_header_stdc=no
5322 fi
5323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5324 conftest.$ac_objext conftest.beam conftest.$ac_ext
5325 fi
5326
5327 fi
5328 fi
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5330 $as_echo "$ac_cv_header_stdc" >&6; }
5331 if test $ac_cv_header_stdc = yes; then
5332
5333 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5334
5335 fi
5336
5337 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5338 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5339 inttypes.h stdint.h unistd.h
5340 do :
5341 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5342 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5343 "
5344 eval as_val=\$$as_ac_Header
5345 if test "x$as_val" = x""yes; then :
5346 cat >>confdefs.h <<_ACEOF
5347 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5348 _ACEOF
5349
5350 fi
5351
5352 done
5353
5354
5355
5356 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5357 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5358 MINIX=yes
5359 else
5360 MINIX=
5361 fi
5362
5363
5364 if test "$MINIX" = yes; then
5365
5366 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5367
5368
5369 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5370
5371
5372 $as_echo "#define _MINIX 1" >>confdefs.h
5373
5374 fi
5375
5376
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5378 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5379 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5380 $as_echo_n "(cached) " >&6
5381 else
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h. */
5384
5385 # define __EXTENSIONS__ 1
5386 $ac_includes_default
5387 int
5388 main ()
5389 {
5390
5391 ;
5392 return 0;
5393 }
5394 _ACEOF
5395 if ac_fn_c_try_compile "$LINENO"; then :
5396 ac_cv_safe_to_define___extensions__=yes
5397 else
5398 ac_cv_safe_to_define___extensions__=no
5399 fi
5400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401 fi
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5403 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5404 test $ac_cv_safe_to_define___extensions__ = yes &&
5405 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5406
5407 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5408
5409 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5410
5411 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5412
5413 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5414
5415
5416 ac_ext=c
5417 ac_cpp='$CPP $CPPFLAGS'
5418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5422 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5423 # On Suns, sometimes $CPP names a directory.
5424 if test -n "$CPP" && test -d "$CPP"; then
5425 CPP=
5426 fi
5427 if test -z "$CPP"; then
5428 if test "${ac_cv_prog_CPP+set}" = set; then :
5429 $as_echo_n "(cached) " >&6
5430 else
5431 # Double quotes because CPP needs to be expanded
5432 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5433 do
5434 ac_preproc_ok=false
5435 for ac_c_preproc_warn_flag in '' yes
5436 do
5437 # Use a header file that comes with gcc, so configuring glibc
5438 # with a fresh cross-compiler works.
5439 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5440 # <limits.h> exists even on freestanding compilers.
5441 # On the NeXT, cc -E runs the code through the compiler's parser,
5442 # not just through cpp. "Syntax error" is here to catch this case.
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5445 #ifdef __STDC__
5446 # include <limits.h>
5447 #else
5448 # include <assert.h>
5449 #endif
5450 Syntax error
5451 _ACEOF
5452 if ac_fn_c_try_cpp "$LINENO"; then :
5453
5454 else
5455 # Broken: fails on valid input.
5456 continue
5457 fi
5458 rm -f conftest.err conftest.$ac_ext
5459
5460 # OK, works on sane cases. Now check whether nonexistent headers
5461 # can be detected and how.
5462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463 /* end confdefs.h. */
5464 #include <ac_nonexistent.h>
5465 _ACEOF
5466 if ac_fn_c_try_cpp "$LINENO"; then :
5467 # Broken: success on invalid input.
5468 continue
5469 else
5470 # Passes both tests.
5471 ac_preproc_ok=:
5472 break
5473 fi
5474 rm -f conftest.err conftest.$ac_ext
5475
5476 done
5477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5478 rm -f conftest.err conftest.$ac_ext
5479 if $ac_preproc_ok; then :
5480 break
5481 fi
5482
5483 done
5484 ac_cv_prog_CPP=$CPP
5485
5486 fi
5487 CPP=$ac_cv_prog_CPP
5488 else
5489 ac_cv_prog_CPP=$CPP
5490 fi
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5492 $as_echo "$CPP" >&6; }
5493 ac_preproc_ok=false
5494 for ac_c_preproc_warn_flag in '' yes
5495 do
5496 # Use a header file that comes with gcc, so configuring glibc
5497 # with a fresh cross-compiler works.
5498 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5499 # <limits.h> exists even on freestanding compilers.
5500 # On the NeXT, cc -E runs the code through the compiler's parser,
5501 # not just through cpp. "Syntax error" is here to catch this case.
5502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503 /* end confdefs.h. */
5504 #ifdef __STDC__
5505 # include <limits.h>
5506 #else
5507 # include <assert.h>
5508 #endif
5509 Syntax error
5510 _ACEOF
5511 if ac_fn_c_try_cpp "$LINENO"; then :
5512
5513 else
5514 # Broken: fails on valid input.
5515 continue
5516 fi
5517 rm -f conftest.err conftest.$ac_ext
5518
5519 # OK, works on sane cases. Now check whether nonexistent headers
5520 # can be detected and how.
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5523 #include <ac_nonexistent.h>
5524 _ACEOF
5525 if ac_fn_c_try_cpp "$LINENO"; then :
5526 # Broken: success on invalid input.
5527 continue
5528 else
5529 # Passes both tests.
5530 ac_preproc_ok=:
5531 break
5532 fi
5533 rm -f conftest.err conftest.$ac_ext
5534
5535 done
5536 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5537 rm -f conftest.err conftest.$ac_ext
5538 if $ac_preproc_ok; then :
5539
5540 else
5541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5543 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5544 See \`config.log' for more details." "$LINENO" 5; }
5545 fi
5546
5547 ac_ext=c
5548 ac_cpp='$CPP $CPPFLAGS'
5549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5552
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5554 $as_echo_n "checking for inline... " >&6; }
5555 if test "${ac_cv_c_inline+set}" = set; then :
5556 $as_echo_n "(cached) " >&6
5557 else
5558 ac_cv_c_inline=no
5559 for ac_kw in inline __inline__ __inline; do
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5562 #ifndef __cplusplus
5563 typedef int foo_t;
5564 static $ac_kw foo_t static_foo () {return 0; }
5565 $ac_kw foo_t foo () {return 0; }
5566 #endif
5567
5568 _ACEOF
5569 if ac_fn_c_try_compile "$LINENO"; then :
5570 ac_cv_c_inline=$ac_kw
5571 fi
5572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 test "$ac_cv_c_inline" != no && break
5574 done
5575
5576 fi
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5578 $as_echo "$ac_cv_c_inline" >&6; }
5579
5580 case $ac_cv_c_inline in
5581 inline | yes) ;;
5582 *)
5583 case $ac_cv_c_inline in
5584 no) ac_val=;;
5585 *) ac_val=$ac_cv_c_inline;;
5586 esac
5587 cat >>confdefs.h <<_ACEOF
5588 #ifndef __cplusplus
5589 #define inline $ac_val
5590 #endif
5591 _ACEOF
5592 ;;
5593 esac
5594
5595
5596 # Check whether --enable-largefile was given.
5597 if test "${enable_largefile+set}" = set; then :
5598 enableval=$enable_largefile;
5599 fi
5600
5601 if test "$enable_largefile" != no; then
5602
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5604 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5605 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 ac_cv_sys_largefile_CC=no
5609 if test "$GCC" != yes; then
5610 ac_save_CC=$CC
5611 while :; do
5612 # IRIX 6.2 and later do not support large files by default,
5613 # so use the C compiler's -n32 option if that helps.
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5616 #include <sys/types.h>
5617 /* Check that off_t can represent 2**63 - 1 correctly.
5618 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5619 since some C++ compilers masquerading as C compilers
5620 incorrectly reject 9223372036854775807. */
5621 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5622 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5623 && LARGE_OFF_T % 2147483647 == 1)
5624 ? 1 : -1];
5625 int
5626 main ()
5627 {
5628
5629 ;
5630 return 0;
5631 }
5632 _ACEOF
5633 if ac_fn_c_try_compile "$LINENO"; then :
5634 break
5635 fi
5636 rm -f core conftest.err conftest.$ac_objext
5637 CC="$CC -n32"
5638 if ac_fn_c_try_compile "$LINENO"; then :
5639 ac_cv_sys_largefile_CC=' -n32'; break
5640 fi
5641 rm -f core conftest.err conftest.$ac_objext
5642 break
5643 done
5644 CC=$ac_save_CC
5645 rm -f conftest.$ac_ext
5646 fi
5647 fi
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5649 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5650 if test "$ac_cv_sys_largefile_CC" != no; then
5651 CC=$CC$ac_cv_sys_largefile_CC
5652 fi
5653
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5655 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5656 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5657 $as_echo_n "(cached) " >&6
5658 else
5659 while :; do
5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661 /* end confdefs.h. */
5662 #include <sys/types.h>
5663 /* Check that off_t can represent 2**63 - 1 correctly.
5664 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5665 since some C++ compilers masquerading as C compilers
5666 incorrectly reject 9223372036854775807. */
5667 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5668 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5669 && LARGE_OFF_T % 2147483647 == 1)
5670 ? 1 : -1];
5671 int
5672 main ()
5673 {
5674
5675 ;
5676 return 0;
5677 }
5678 _ACEOF
5679 if ac_fn_c_try_compile "$LINENO"; then :
5680 ac_cv_sys_file_offset_bits=no; break
5681 fi
5682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684 /* end confdefs.h. */
5685 #define _FILE_OFFSET_BITS 64
5686 #include <sys/types.h>
5687 /* Check that off_t can represent 2**63 - 1 correctly.
5688 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5689 since some C++ compilers masquerading as C compilers
5690 incorrectly reject 9223372036854775807. */
5691 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5692 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5693 && LARGE_OFF_T % 2147483647 == 1)
5694 ? 1 : -1];
5695 int
5696 main ()
5697 {
5698
5699 ;
5700 return 0;
5701 }
5702 _ACEOF
5703 if ac_fn_c_try_compile "$LINENO"; then :
5704 ac_cv_sys_file_offset_bits=64; break
5705 fi
5706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5707 ac_cv_sys_file_offset_bits=unknown
5708 break
5709 done
5710 fi
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5712 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5713 case $ac_cv_sys_file_offset_bits in #(
5714 no | unknown) ;;
5715 *)
5716 cat >>confdefs.h <<_ACEOF
5717 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5718 _ACEOF
5719 ;;
5720 esac
5721 rm -rf conftest*
5722 if test $ac_cv_sys_file_offset_bits = unknown; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5724 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5725 if test "${ac_cv_sys_large_files+set}" = set; then :
5726 $as_echo_n "(cached) " >&6
5727 else
5728 while :; do
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5731 #include <sys/types.h>
5732 /* Check that off_t can represent 2**63 - 1 correctly.
5733 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5734 since some C++ compilers masquerading as C compilers
5735 incorrectly reject 9223372036854775807. */
5736 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5737 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5738 && LARGE_OFF_T % 2147483647 == 1)
5739 ? 1 : -1];
5740 int
5741 main ()
5742 {
5743
5744 ;
5745 return 0;
5746 }
5747 _ACEOF
5748 if ac_fn_c_try_compile "$LINENO"; then :
5749 ac_cv_sys_large_files=no; break
5750 fi
5751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5753 /* end confdefs.h. */
5754 #define _LARGE_FILES 1
5755 #include <sys/types.h>
5756 /* Check that off_t can represent 2**63 - 1 correctly.
5757 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5758 since some C++ compilers masquerading as C compilers
5759 incorrectly reject 9223372036854775807. */
5760 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5761 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5762 && LARGE_OFF_T % 2147483647 == 1)
5763 ? 1 : -1];
5764 int
5765 main ()
5766 {
5767
5768 ;
5769 return 0;
5770 }
5771 _ACEOF
5772 if ac_fn_c_try_compile "$LINENO"; then :
5773 ac_cv_sys_large_files=1; break
5774 fi
5775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776 ac_cv_sys_large_files=unknown
5777 break
5778 done
5779 fi
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5781 $as_echo "$ac_cv_sys_large_files" >&6; }
5782 case $ac_cv_sys_large_files in #(
5783 no | unknown) ;;
5784 *)
5785 cat >>confdefs.h <<_ACEOF
5786 #define _LARGE_FILES $ac_cv_sys_large_files
5787 _ACEOF
5788 ;;
5789 esac
5790 rm -rf conftest*
5791 fi
5792 fi
5793
5794
5795 # sizeof(char) is 1 by definition.
5796 # The cast to long int works around a bug in the HP C Compiler
5797 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5798 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5799 # This bug is HP SR number 8606223364.
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5801 $as_echo_n "checking size of void *... " >&6; }
5802 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5803 $as_echo_n "(cached) " >&6
5804 else
5805 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5806
5807 else
5808 if test "$ac_cv_type_void_p" = yes; then
5809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5811 { as_fn_set_status 77
5812 as_fn_error "cannot compute sizeof (void *)
5813 See \`config.log' for more details." "$LINENO" 5; }; }
5814 else
5815 ac_cv_sizeof_void_p=0
5816 fi
5817 fi
5818
5819 fi
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5821 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5822
5823
5824
5825 cat >>confdefs.h <<_ACEOF
5826 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5827 _ACEOF
5828
5829
5830 # The cast to long int works around a bug in the HP C Compiler
5831 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5832 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5833 # This bug is HP SR number 8606223364.
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5835 $as_echo_n "checking size of short... " >&6; }
5836 if test "${ac_cv_sizeof_short+set}" = set; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5840
5841 else
5842 if test "$ac_cv_type_short" = yes; then
5843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5845 { as_fn_set_status 77
5846 as_fn_error "cannot compute sizeof (short)
5847 See \`config.log' for more details." "$LINENO" 5; }; }
5848 else
5849 ac_cv_sizeof_short=0
5850 fi
5851 fi
5852
5853 fi
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5855 $as_echo "$ac_cv_sizeof_short" >&6; }
5856
5857
5858
5859 cat >>confdefs.h <<_ACEOF
5860 #define SIZEOF_SHORT $ac_cv_sizeof_short
5861 _ACEOF
5862
5863
5864 # The cast to long int works around a bug in the HP C Compiler
5865 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5866 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5867 # This bug is HP SR number 8606223364.
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5869 $as_echo_n "checking size of int... " >&6; }
5870 if test "${ac_cv_sizeof_int+set}" = set; then :
5871 $as_echo_n "(cached) " >&6
5872 else
5873 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5874
5875 else
5876 if test "$ac_cv_type_int" = yes; then
5877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5879 { as_fn_set_status 77
5880 as_fn_error "cannot compute sizeof (int)
5881 See \`config.log' for more details." "$LINENO" 5; }; }
5882 else
5883 ac_cv_sizeof_int=0
5884 fi
5885 fi
5886
5887 fi
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5889 $as_echo "$ac_cv_sizeof_int" >&6; }
5890
5891
5892
5893 cat >>confdefs.h <<_ACEOF
5894 #define SIZEOF_INT $ac_cv_sizeof_int
5895 _ACEOF
5896
5897
5898 # The cast to long int works around a bug in the HP C Compiler
5899 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5900 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5901 # This bug is HP SR number 8606223364.
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5903 $as_echo_n "checking size of long... " >&6; }
5904 if test "${ac_cv_sizeof_long+set}" = set; then :
5905 $as_echo_n "(cached) " >&6
5906 else
5907 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5908
5909 else
5910 if test "$ac_cv_type_long" = yes; then
5911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5913 { as_fn_set_status 77
5914 as_fn_error "cannot compute sizeof (long)
5915 See \`config.log' for more details." "$LINENO" 5; }; }
5916 else
5917 ac_cv_sizeof_long=0
5918 fi
5919 fi
5920
5921 fi
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5923 $as_echo "$ac_cv_sizeof_long" >&6; }
5924
5925
5926
5927 cat >>confdefs.h <<_ACEOF
5928 #define SIZEOF_LONG $ac_cv_sizeof_long
5929 _ACEOF
5930
5931
5932 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5933 if test "x$ac_cv_type_long_long" = x""yes; then :
5934
5935 cat >>confdefs.h <<_ACEOF
5936 #define HAVE_LONG_LONG 1
5937 _ACEOF
5938
5939 # The cast to long int works around a bug in the HP C Compiler
5940 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5941 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5942 # This bug is HP SR number 8606223364.
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5944 $as_echo_n "checking size of long long... " >&6; }
5945 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5946 $as_echo_n "(cached) " >&6
5947 else
5948 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5949
5950 else
5951 if test "$ac_cv_type_long_long" = yes; then
5952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5954 { as_fn_set_status 77
5955 as_fn_error "cannot compute sizeof (long long)
5956 See \`config.log' for more details." "$LINENO" 5; }; }
5957 else
5958 ac_cv_sizeof_long_long=0
5959 fi
5960 fi
5961
5962 fi
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5964 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5965
5966
5967
5968 cat >>confdefs.h <<_ACEOF
5969 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5970 _ACEOF
5971
5972
5973 fi
5974
5975 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5976 if test "x$ac_cv_type___int64" = x""yes; then :
5977
5978 cat >>confdefs.h <<_ACEOF
5979 #define HAVE___INT64 1
5980 _ACEOF
5981
5982 # The cast to long int works around a bug in the HP C Compiler
5983 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5984 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5985 # This bug is HP SR number 8606223364.
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5987 $as_echo_n "checking size of __int64... " >&6; }
5988 if test "${ac_cv_sizeof___int64+set}" = set; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5992
5993 else
5994 if test "$ac_cv_type___int64" = yes; then
5995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5997 { as_fn_set_status 77
5998 as_fn_error "cannot compute sizeof (__int64)
5999 See \`config.log' for more details." "$LINENO" 5; }; }
6000 else
6001 ac_cv_sizeof___int64=0
6002 fi
6003 fi
6004
6005 fi
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6007 $as_echo "$ac_cv_sizeof___int64" >&6; }
6008
6009
6010
6011 cat >>confdefs.h <<_ACEOF
6012 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6013 _ACEOF
6014
6015
6016 fi
6017
6018 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6019 case $ac_cv_c_int8_t in #(
6020 no|yes) ;; #(
6021 *)
6022
6023 cat >>confdefs.h <<_ACEOF
6024 #define int8_t $ac_cv_c_int8_t
6025 _ACEOF
6026 ;;
6027 esac
6028
6029 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6030 case $ac_cv_c_int16_t in #(
6031 no|yes) ;; #(
6032 *)
6033
6034 cat >>confdefs.h <<_ACEOF
6035 #define int16_t $ac_cv_c_int16_t
6036 _ACEOF
6037 ;;
6038 esac
6039
6040 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6041 case $ac_cv_c_int32_t in #(
6042 no|yes) ;; #(
6043 *)
6044
6045 cat >>confdefs.h <<_ACEOF
6046 #define int32_t $ac_cv_c_int32_t
6047 _ACEOF
6048 ;;
6049 esac
6050
6051 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6052 case $ac_cv_c_int64_t in #(
6053 no|yes) ;; #(
6054 *)
6055
6056 cat >>confdefs.h <<_ACEOF
6057 #define int64_t $ac_cv_c_int64_t
6058 _ACEOF
6059 ;;
6060 esac
6061
6062
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6064 $as_echo_n "checking for long long int... " >&6; }
6065 if test "${ac_cv_type_long_long_int+set}" = set; then :
6066 $as_echo_n "(cached) " >&6
6067 else
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6070
6071 /* For now, do not test the preprocessor; as of 2007 there are too many
6072 implementations with broken preprocessors. Perhaps this can
6073 be revisited in 2012. In the meantime, code should not expect
6074 #if to work with literals wider than 32 bits. */
6075 /* Test literals. */
6076 long long int ll = 9223372036854775807ll;
6077 long long int nll = -9223372036854775807LL;
6078 unsigned long long int ull = 18446744073709551615ULL;
6079 /* Test constant expressions. */
6080 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6081 ? 1 : -1)];
6082 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6083 ? 1 : -1)];
6084 int i = 63;
6085 int
6086 main ()
6087 {
6088 /* Test availability of runtime routines for shift and division. */
6089 long long int llmax = 9223372036854775807ll;
6090 unsigned long long int ullmax = 18446744073709551615ull;
6091 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6092 | (llmax / ll) | (llmax % ll)
6093 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6094 | (ullmax / ull) | (ullmax % ull));
6095 ;
6096 return 0;
6097 }
6098
6099 _ACEOF
6100 if ac_fn_c_try_link "$LINENO"; then :
6101 if test "$cross_compiling" = yes; then :
6102 ac_cv_type_long_long_int=yes
6103 else
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h. */
6106 #include <limits.h>
6107 #ifndef LLONG_MAX
6108 # define HALF \
6109 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6110 # define LLONG_MAX (HALF - 1 + HALF)
6111 #endif
6112 int
6113 main ()
6114 {
6115 long long int n = 1;
6116 int i;
6117 for (i = 0; ; i++)
6118 {
6119 long long int m = n << i;
6120 if (m >> i != n)
6121 return 1;
6122 if (LLONG_MAX / 2 < m)
6123 break;
6124 }
6125 return 0;
6126 ;
6127 return 0;
6128 }
6129 _ACEOF
6130 if ac_fn_c_try_run "$LINENO"; then :
6131 ac_cv_type_long_long_int=yes
6132 else
6133 ac_cv_type_long_long_int=no
6134 fi
6135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6136 conftest.$ac_objext conftest.beam conftest.$ac_ext
6137 fi
6138
6139 else
6140 ac_cv_type_long_long_int=no
6141 fi
6142 rm -f core conftest.err conftest.$ac_objext \
6143 conftest$ac_exeext conftest.$ac_ext
6144 fi
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6146 $as_echo "$ac_cv_type_long_long_int" >&6; }
6147 if test $ac_cv_type_long_long_int = yes; then
6148
6149 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6150
6151 fi
6152
6153
6154
6155 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6156 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6157
6158 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6159
6160 else
6161 test $ac_cv_type_long_long_int = yes \
6162 && ac_type='long long int' \
6163 || ac_type='long int'
6164
6165 cat >>confdefs.h <<_ACEOF
6166 #define intmax_t $ac_type
6167 _ACEOF
6168
6169 fi
6170
6171
6172
6173 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6174 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6175
6176 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6177
6178 else
6179 for ac_type in 'int' 'long int' 'long long int'; do
6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h. */
6182 $ac_includes_default
6183 int
6184 main ()
6185 {
6186 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6187 test_array [0] = 0
6188
6189 ;
6190 return 0;
6191 }
6192 _ACEOF
6193 if ac_fn_c_try_compile "$LINENO"; then :
6194
6195 cat >>confdefs.h <<_ACEOF
6196 #define intptr_t $ac_type
6197 _ACEOF
6198
6199 ac_type=
6200 fi
6201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202 test -z "$ac_type" && break
6203 done
6204 fi
6205
6206
6207 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6208 case $ac_cv_c_uint8_t in #(
6209 no|yes) ;; #(
6210 *)
6211
6212 $as_echo "#define _UINT8_T 1" >>confdefs.h
6213
6214
6215 cat >>confdefs.h <<_ACEOF
6216 #define uint8_t $ac_cv_c_uint8_t
6217 _ACEOF
6218 ;;
6219 esac
6220
6221 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6222 case $ac_cv_c_uint16_t in #(
6223 no|yes) ;; #(
6224 *)
6225
6226
6227 cat >>confdefs.h <<_ACEOF
6228 #define uint16_t $ac_cv_c_uint16_t
6229 _ACEOF
6230 ;;
6231 esac
6232
6233 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6234 case $ac_cv_c_uint32_t in #(
6235 no|yes) ;; #(
6236 *)
6237
6238 $as_echo "#define _UINT32_T 1" >>confdefs.h
6239
6240
6241 cat >>confdefs.h <<_ACEOF
6242 #define uint32_t $ac_cv_c_uint32_t
6243 _ACEOF
6244 ;;
6245 esac
6246
6247 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6248 case $ac_cv_c_uint64_t in #(
6249 no|yes) ;; #(
6250 *)
6251
6252 $as_echo "#define _UINT64_T 1" >>confdefs.h
6253
6254
6255 cat >>confdefs.h <<_ACEOF
6256 #define uint64_t $ac_cv_c_uint64_t
6257 _ACEOF
6258 ;;
6259 esac
6260
6261
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6263 $as_echo_n "checking for unsigned long long int... " >&6; }
6264 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6265 $as_echo_n "(cached) " >&6
6266 else
6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6269
6270 /* For now, do not test the preprocessor; as of 2007 there are too many
6271 implementations with broken preprocessors. Perhaps this can
6272 be revisited in 2012. In the meantime, code should not expect
6273 #if to work with literals wider than 32 bits. */
6274 /* Test literals. */
6275 long long int ll = 9223372036854775807ll;
6276 long long int nll = -9223372036854775807LL;
6277 unsigned long long int ull = 18446744073709551615ULL;
6278 /* Test constant expressions. */
6279 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6280 ? 1 : -1)];
6281 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6282 ? 1 : -1)];
6283 int i = 63;
6284 int
6285 main ()
6286 {
6287 /* Test availability of runtime routines for shift and division. */
6288 long long int llmax = 9223372036854775807ll;
6289 unsigned long long int ullmax = 18446744073709551615ull;
6290 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6291 | (llmax / ll) | (llmax % ll)
6292 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6293 | (ullmax / ull) | (ullmax % ull));
6294 ;
6295 return 0;
6296 }
6297
6298 _ACEOF
6299 if ac_fn_c_try_link "$LINENO"; then :
6300 ac_cv_type_unsigned_long_long_int=yes
6301 else
6302 ac_cv_type_unsigned_long_long_int=no
6303 fi
6304 rm -f core conftest.err conftest.$ac_objext \
6305 conftest$ac_exeext conftest.$ac_ext
6306 fi
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6308 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6309 if test $ac_cv_type_unsigned_long_long_int = yes; then
6310
6311 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6312
6313 fi
6314
6315
6316
6317 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6318 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6319
6320 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6321
6322 else
6323 test $ac_cv_type_unsigned_long_long_int = yes \
6324 && ac_type='unsigned long long int' \
6325 || ac_type='unsigned long int'
6326
6327 cat >>confdefs.h <<_ACEOF
6328 #define uintmax_t $ac_type
6329 _ACEOF
6330
6331 fi
6332
6333
6334
6335 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6336 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6337
6338 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6339
6340 else
6341 for ac_type in 'unsigned int' 'unsigned long int' \
6342 'unsigned long long int'; do
6343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h. */
6345 $ac_includes_default
6346 int
6347 main ()
6348 {
6349 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6350 test_array [0] = 0
6351
6352 ;
6353 return 0;
6354 }
6355 _ACEOF
6356 if ac_fn_c_try_compile "$LINENO"; then :
6357
6358 cat >>confdefs.h <<_ACEOF
6359 #define uintptr_t $ac_type
6360 _ACEOF
6361
6362 ac_type=
6363 fi
6364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6365 test -z "$ac_type" && break
6366 done
6367 fi
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383 # ---------------------
6384 # Warnings and checking
6385 # ---------------------
6386
6387 # Check $CC warning features (if it's GCC).
6388 # We want to use -pedantic, but we don't want warnings about
6389 # * 'long long'
6390 # * variadic macros
6391 # * overlong strings
6392 # * C++11 narrowing conversions in { }
6393 # So, we only use -pedantic if we can disable those warnings.
6394
6395 loose_warn=
6396 save_CFLAGS="$CFLAGS"
6397 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6398 # Do the check with the no- prefix removed since gcc silently
6399 # accepts any -Wno-* option on purpose
6400 case $real_option in
6401 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6402 *) option=$real_option ;;
6403 esac
6404 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6405
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6407 $as_echo_n "checking whether $CC supports $option... " >&6; }
6408 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6409 $as_echo_n "(cached) " >&6
6410 else
6411 CFLAGS="$option"
6412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6413 /* end confdefs.h. */
6414
6415 int
6416 main ()
6417 {
6418
6419 ;
6420 return 0;
6421 }
6422 _ACEOF
6423 if ac_fn_c_try_compile "$LINENO"; then :
6424 eval "$as_acx_Woption=yes"
6425 else
6426 eval "$as_acx_Woption=no"
6427 fi
6428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429
6430 fi
6431 eval ac_res=\$$as_acx_Woption
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6433 $as_echo "$ac_res" >&6; }
6434 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6435 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6436 fi
6437 done
6438 CFLAGS="$save_CFLAGS"
6439
6440 c_loose_warn=
6441 save_CFLAGS="$CFLAGS"
6442 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6443 # Do the check with the no- prefix removed since gcc silently
6444 # accepts any -Wno-* option on purpose
6445 case $real_option in
6446 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6447 *) option=$real_option ;;
6448 esac
6449 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6450
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6452 $as_echo_n "checking whether $CC supports $option... " >&6; }
6453 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456 CFLAGS="$option"
6457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h. */
6459
6460 int
6461 main ()
6462 {
6463
6464 ;
6465 return 0;
6466 }
6467 _ACEOF
6468 if ac_fn_c_try_compile "$LINENO"; then :
6469 eval "$as_acx_Woption=yes"
6470 else
6471 eval "$as_acx_Woption=no"
6472 fi
6473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6474
6475 fi
6476 eval ac_res=\$$as_acx_Woption
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6478 $as_echo "$ac_res" >&6; }
6479 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6480 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6481 fi
6482 done
6483 CFLAGS="$save_CFLAGS"
6484
6485 strict_warn=
6486 save_CFLAGS="$CFLAGS"
6487 for real_option in -Wmissing-format-attribute; do
6488 # Do the check with the no- prefix removed since gcc silently
6489 # accepts any -Wno-* option on purpose
6490 case $real_option in
6491 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6492 *) option=$real_option ;;
6493 esac
6494 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6495
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6497 $as_echo_n "checking whether $CC supports $option... " >&6; }
6498 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6501 CFLAGS="$option"
6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6504
6505 int
6506 main ()
6507 {
6508
6509 ;
6510 return 0;
6511 }
6512 _ACEOF
6513 if ac_fn_c_try_compile "$LINENO"; then :
6514 eval "$as_acx_Woption=yes"
6515 else
6516 eval "$as_acx_Woption=no"
6517 fi
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519
6520 fi
6521 eval ac_res=\$$as_acx_Woption
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6523 $as_echo "$ac_res" >&6; }
6524 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6525 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6526 fi
6527 done
6528 CFLAGS="$save_CFLAGS"
6529
6530 c_strict_warn=
6531 save_CFLAGS="$CFLAGS"
6532 for real_option in -Wold-style-definition -Wc++-compat; do
6533 # Do the check with the no- prefix removed since gcc silently
6534 # accepts any -Wno-* option on purpose
6535 case $real_option in
6536 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6537 *) option=$real_option ;;
6538 esac
6539 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6540
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6542 $as_echo_n "checking whether $CC supports $option... " >&6; }
6543 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6544 $as_echo_n "(cached) " >&6
6545 else
6546 CFLAGS="$option"
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6549
6550 int
6551 main ()
6552 {
6553
6554 ;
6555 return 0;
6556 }
6557 _ACEOF
6558 if ac_fn_c_try_compile "$LINENO"; then :
6559 eval "$as_acx_Woption=yes"
6560 else
6561 eval "$as_acx_Woption=no"
6562 fi
6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564
6565 fi
6566 eval ac_res=\$$as_acx_Woption
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6568 $as_echo "$ac_res" >&6; }
6569 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6570 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6571 fi
6572 done
6573 CFLAGS="$save_CFLAGS"
6574
6575 # Do the check with the no- prefix removed from the warning options
6576 # since gcc silently accepts any -Wno-* option on purpose
6577 if test "$GCC" = yes; then :
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6579 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6580 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6581 $as_echo_n "(cached) " >&6
6582 else
6583 save_CFLAGS="$CFLAGS"
6584 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586 /* end confdefs.h. */
6587
6588 int
6589 main ()
6590 {
6591
6592 ;
6593 return 0;
6594 }
6595 _ACEOF
6596 if ac_fn_c_try_compile "$LINENO"; then :
6597 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6598 else
6599 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6600 fi
6601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602 CFLAGS="$save_CFLAGS"
6603 fi
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6605 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6606 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6607 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6608 fi
6609
6610 fi
6611
6612 # Check whether --enable-werror-always was given.
6613 if test "${enable_werror_always+set}" = set; then :
6614 enableval=$enable_werror_always;
6615 else
6616 enable_werror_always=no
6617 fi
6618
6619 if test $enable_werror_always = yes; then :
6620 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6621 fi
6622
6623
6624
6625 # The above macros do nothing if the compiler is not GCC. However, the
6626 # Makefile has more goo to add other flags, so these variables are used
6627 # to enable warnings only for GCC.
6628 warn_cflags=
6629 warn_cxxflags=
6630 if test "x$GCC" = "xyes"; then
6631 warn_cflags='$(GCC_WARN_CFLAGS)'
6632 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6633 fi
6634
6635
6636
6637 # Disable exceptions and RTTI if building with g++
6638 noexception_flags=
6639 save_CFLAGS="$CFLAGS"
6640 for real_option in -fno-exceptions -fno-rtti; do
6641 # Do the check with the no- prefix removed since gcc silently
6642 # accepts any -Wno-* option on purpose
6643 case $real_option in
6644 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6645 *) option=$real_option ;;
6646 esac
6647 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6648
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6650 $as_echo_n "checking whether $CC supports $option... " >&6; }
6651 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6652 $as_echo_n "(cached) " >&6
6653 else
6654 CFLAGS="$option"
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656 /* end confdefs.h. */
6657
6658 int
6659 main ()
6660 {
6661
6662 ;
6663 return 0;
6664 }
6665 _ACEOF
6666 if ac_fn_c_try_compile "$LINENO"; then :
6667 eval "$as_acx_Woption=yes"
6668 else
6669 eval "$as_acx_Woption=no"
6670 fi
6671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6672
6673 fi
6674 eval ac_res=\$$as_acx_Woption
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6676 $as_echo "$ac_res" >&6; }
6677 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6678 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6679 fi
6680 done
6681 CFLAGS="$save_CFLAGS"
6682
6683
6684 # Enable expensive internal checks
6685 is_release=
6686 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6687 is_release=yes
6688 fi
6689
6690 # Check whether --enable-checking was given.
6691 if test "${enable_checking+set}" = set; then :
6692 enableval=$enable_checking; ac_checking_flags="${enableval}"
6693 else
6694
6695 # Determine the default checks.
6696 if test x$is_release = x ; then
6697 ac_checking_flags=yes
6698 else
6699 ac_checking_flags=release
6700 fi
6701 fi
6702
6703 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6704 for check in release $ac_checking_flags
6705 do
6706 case $check in
6707 # these set all the flags to specific states
6708 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6709 ac_fold_checking= ; ac_gc_checking=1 ;
6710 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6711 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6712 ac_tree_checking=1 ; ac_valgrind_checking= ;
6713 ac_types_checking=1 ;;
6714 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6715 ac_fold_checking= ; ac_gc_checking= ;
6716 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6717 ac_rtlflag_checking= ; ac_runtime_checking= ;
6718 ac_tree_checking= ; ac_valgrind_checking= ;
6719 ac_types_checking= ;;
6720 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6721 ac_fold_checking=1 ; ac_gc_checking=1 ;
6722 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6723 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6724 ac_tree_checking=1 ; ac_valgrind_checking= ;
6725 ac_types_checking=1 ;;
6726 release) ac_assert_checking=1 ; 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=1 ;
6730 ac_tree_checking= ; ac_valgrind_checking= ;
6731 ac_types_checking= ;;
6732 # these enable particular checks
6733 assert) ac_assert_checking=1 ;;
6734 df) ac_df_checking=1 ;;
6735 fold) ac_fold_checking=1 ;;
6736 gc) ac_gc_checking=1 ;;
6737 gcac) ac_gc_always_collect=1 ;;
6738 gimple) ac_gimple_checking=1 ;;
6739 misc) ac_checking=1 ;;
6740 rtl) ac_rtl_checking=1 ;;
6741 rtlflag) ac_rtlflag_checking=1 ;;
6742 runtime) ac_runtime_checking=1 ;;
6743 tree) ac_tree_checking=1 ;;
6744 types) ac_types_checking=1 ;;
6745 valgrind) ac_valgrind_checking=1 ;;
6746 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6747 esac
6748 done
6749 IFS="$ac_save_IFS"
6750
6751 nocommon_flag=""
6752 if test x$ac_checking != x ; then
6753
6754 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6755
6756 nocommon_flag=-fno-common
6757 fi
6758
6759 if test x$ac_df_checking != x ; then
6760
6761 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6762
6763 fi
6764 if test x$ac_assert_checking != x ; then
6765
6766 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6767
6768 fi
6769 if test x$ac_gimple_checking != x ; then
6770
6771 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6772
6773 fi
6774
6775 if test x$ac_runtime_checking != x ; then
6776
6777 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6778
6779 fi
6780 if test x$ac_tree_checking != x ; then
6781
6782 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6783
6784 TREEBROWSER=tree-browser.o
6785 fi
6786 if test x$ac_types_checking != x ; then
6787
6788 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6789
6790 fi
6791
6792 if test x$ac_rtl_checking != x ; then
6793
6794 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6795
6796 fi
6797 if test x$ac_rtlflag_checking != x ; then
6798
6799 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6800
6801 fi
6802 if test x$ac_gc_checking != x ; then
6803
6804 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6805
6806 fi
6807 if test x$ac_gc_always_collect != x ; then
6808
6809 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6810
6811 fi
6812 if test x$ac_fold_checking != x ; then
6813
6814 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6815
6816 fi
6817 valgrind_path_defines=
6818 valgrind_command=
6819
6820 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6821 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6822 have_valgrind_h=yes
6823 else
6824 have_valgrind_h=no
6825 fi
6826
6827
6828
6829 if test x$ac_valgrind_checking != x ; then
6830 # It is certainly possible that there's valgrind but no valgrind.h.
6831 # GCC relies on making annotations so we must have both.
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6833 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h. */
6836 #include <valgrind/memcheck.h>
6837 #ifndef VALGRIND_DISCARD
6838 #error VALGRIND_DISCARD not defined
6839 #endif
6840 _ACEOF
6841 if ac_fn_c_try_cpp "$LINENO"; then :
6842 gcc_cv_header_valgrind_memcheck_h=yes
6843 else
6844 gcc_cv_header_valgrind_memcheck_h=no
6845 fi
6846 rm -f conftest.err conftest.$ac_ext
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6848 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6850 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6853 #include <memcheck.h>
6854 #ifndef VALGRIND_DISCARD
6855 #error VALGRIND_DISCARD not defined
6856 #endif
6857 _ACEOF
6858 if ac_fn_c_try_cpp "$LINENO"; then :
6859 gcc_cv_header_memcheck_h=yes
6860 else
6861 gcc_cv_header_memcheck_h=no
6862 fi
6863 rm -f conftest.err conftest.$ac_ext
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6865 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6866
6867 # Prepare PATH_SEPARATOR.
6868 # The user is always right.
6869 if test "${PATH_SEPARATOR+set}" != set; then
6870 echo "#! /bin/sh" >conf$$.sh
6871 echo "exit 0" >>conf$$.sh
6872 chmod +x conf$$.sh
6873 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6874 PATH_SEPARATOR=';'
6875 else
6876 PATH_SEPARATOR=:
6877 fi
6878 rm -f conf$$.sh
6879 fi
6880
6881 # Find out how to test for executable files. Don't use a zero-byte file,
6882 # as systems may use methods other than mode bits to determine executability.
6883 cat >conf$$.file <<_ASEOF
6884 #! /bin/sh
6885 exit 0
6886 _ASEOF
6887 chmod +x conf$$.file
6888 if test -x conf$$.file >/dev/null 2>&1; then
6889 ac_executable_p="test -x"
6890 else
6891 ac_executable_p="test -f"
6892 fi
6893 rm -f conf$$.file
6894
6895 # Extract the first word of "valgrind", so it can be a program name with args.
6896 set dummy valgrind; ac_word=$2
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898 $as_echo_n "checking for $ac_word... " >&6; }
6899 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 case "$valgrind_path" in
6903 [\\/]* | ?:[\\/]*)
6904 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6905 ;;
6906 *)
6907 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6908 for ac_dir in $PATH; do
6909 IFS="$ac_save_IFS"
6910 test -z "$ac_dir" && ac_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6913 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6914 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6915 break 2
6916 fi
6917 fi
6918 done
6919 done
6920 IFS="$ac_save_IFS"
6921 ;;
6922 esac
6923 fi
6924 valgrind_path="$ac_cv_path_valgrind_path"
6925 if test -n "$valgrind_path"; then
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6927 $as_echo "$valgrind_path" >&6; }
6928 else
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930 $as_echo "no" >&6; }
6931 fi
6932
6933 if test "x$valgrind_path" = "x" \
6934 || (test $have_valgrind_h = no \
6935 && test $gcc_cv_header_memcheck_h = no \
6936 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6937 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6938 fi
6939 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6940 valgrind_command="$valgrind_path -q"
6941
6942 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6943
6944 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6945
6946 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6947
6948 fi
6949 if test $gcc_cv_header_memcheck_h = yes; then
6950
6951 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6952
6953 fi
6954 fi
6955
6956
6957
6958 # Enable code coverage collection
6959 # Check whether --enable-coverage was given.
6960 if test "${enable_coverage+set}" = set; then :
6961 enableval=$enable_coverage; case "${enableval}" in
6962 yes|noopt)
6963 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6964 ;;
6965 opt)
6966 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6967 ;;
6968 no)
6969 # a.k.a. --disable-coverage
6970 coverage_flags=""
6971 ;;
6972 *)
6973 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6974 ;;
6975 esac
6976 else
6977 coverage_flags=""
6978 fi
6979
6980
6981
6982 # Check whether --enable-gather-detailed-mem-stats was given.
6983 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6984 enableval=$enable_gather_detailed_mem_stats;
6985 else
6986 enable_gather_detailed_mem_stats=no
6987 fi
6988
6989 if test x$enable_gather_detailed_mem_stats = xyes ; then
6990
6991 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6992
6993 fi
6994
6995 # -------------------------------
6996 # Miscenalleous configure options
6997 # -------------------------------
6998
6999 # See if we are building gcc with C++.
7000 # Check whether --enable-build-with-cxx was given.
7001 if test "${enable_build_with_cxx+set}" = set; then :
7002 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
7003 else
7004 ENABLE_BUILD_WITH_CXX=no
7005 fi
7006
7007
7008 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
7009
7010 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
7011
7012 fi
7013
7014 # With stabs
7015
7016 # Check whether --with-stabs was given.
7017 if test "${with_stabs+set}" = set; then :
7018 withval=$with_stabs; stabs="$with_stabs"
7019 else
7020 stabs=no
7021 fi
7022
7023
7024 # Determine whether or not multilibs are enabled.
7025 # Check whether --enable-multilib was given.
7026 if test "${enable_multilib+set}" = set; then :
7027 enableval=$enable_multilib;
7028 else
7029 enable_multilib=yes
7030 fi
7031
7032
7033
7034 # Enable __cxa_atexit for C++.
7035 # Check whether --enable-__cxa_atexit was given.
7036 if test "${enable___cxa_atexit+set}" = set; then :
7037 enableval=$enable___cxa_atexit;
7038 fi
7039
7040
7041 # Enable C extension for decimal float if target supports it.
7042
7043 # Check whether --enable-decimal-float was given.
7044 if test "${enable_decimal_float+set}" = set; then :
7045 enableval=$enable_decimal_float;
7046 case $enable_decimal_float in
7047 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7048 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7049 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7050 esac
7051
7052 else
7053
7054 case $target in
7055 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7056 i?86*-*-mingw* | x86_64*-*-mingw* | \
7057 i?86*-*-cygwin*)
7058 enable_decimal_float=yes
7059 ;;
7060 *)
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7062 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7063 enable_decimal_float=no
7064 ;;
7065 esac
7066
7067 fi
7068
7069
7070 # x86's use BID format instead of DPD
7071 case x$enable_decimal_float in
7072 xyes)
7073 case $target in
7074 i?86*-*-* | x86_64*-*-*)
7075 enable_decimal_float=bid
7076 ;;
7077 *)
7078 enable_decimal_float=dpd
7079 ;;
7080 esac
7081 default_decimal_float=$enable_decimal_float
7082 ;;
7083 xno)
7084 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7085 # dependency on libdecnumber.
7086 default_decimal_float=dpd
7087 ;;
7088 esac
7089
7090
7091
7092
7093 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7094
7095 cat >>confdefs.h <<_ACEOF
7096 #define ENABLE_DECIMAL_FLOAT $dfp
7097 _ACEOF
7098
7099
7100 # Use default_decimal_float for dependency.
7101 enable_decimal_float=$default_decimal_float
7102
7103 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7104
7105 cat >>confdefs.h <<_ACEOF
7106 #define ENABLE_DECIMAL_BID_FORMAT $bid
7107 _ACEOF
7108
7109
7110 # Enable C extension for fixed-point arithmetic.
7111 # Check whether --enable-fixed-point was given.
7112 if test "${enable_fixed_point+set}" = set; then :
7113 enableval=$enable_fixed_point;
7114 else
7115
7116 case $target in
7117 arm*)
7118 enable_fixed_point=yes
7119 ;;
7120
7121 mips*-*-*)
7122 enable_fixed_point=yes
7123 ;;
7124 *)
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7126 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7127 enable_fixed_point=no
7128 ;;
7129 esac
7130
7131 fi
7132
7133
7134
7135 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7136
7137 cat >>confdefs.h <<_ACEOF
7138 #define ENABLE_FIXED_POINT $fixedpoint
7139 _ACEOF
7140
7141
7142 # Enable threads
7143 # Pass with no value to take the default
7144 # Pass with a value to specify a thread package
7145 # Check whether --enable-threads was given.
7146 if test "${enable_threads+set}" = set; then :
7147 enableval=$enable_threads;
7148 else
7149 enable_threads=''
7150 fi
7151
7152
7153 # Check whether --enable-tls was given.
7154 if test "${enable_tls+set}" = set; then :
7155 enableval=$enable_tls;
7156 case $enable_tls in
7157 yes | no) ;;
7158 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7159 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7160 esac
7161
7162 else
7163 enable_tls=''
7164 fi
7165
7166
7167 # Check whether --enable-objc-gc was given.
7168 if test "${enable_objc_gc+set}" = set; then :
7169 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7170 objc_boehm_gc=''
7171 else
7172 objc_boehm_gc=1
7173 fi
7174 else
7175 objc_boehm_gc=''
7176 fi
7177
7178
7179
7180 # Check whether --with-dwarf2 was given.
7181 if test "${with_dwarf2+set}" = set; then :
7182 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7183 else
7184 dwarf2=no
7185 fi
7186
7187
7188 # Check whether --enable-shared was given.
7189 if test "${enable_shared+set}" = set; then :
7190 enableval=$enable_shared;
7191 case $enable_shared in
7192 yes | no) ;;
7193 *)
7194 enable_shared=no
7195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7196 for pkg in $enableval; do
7197 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7198 enable_shared=yes
7199 fi
7200 done
7201 IFS="$ac_save_ifs"
7202 ;;
7203 esac
7204
7205 else
7206 enable_shared=yes
7207 fi
7208
7209
7210
7211
7212 # Check whether --with-native-system-header-dir was given.
7213 if test "${with_native_system_header_dir+set}" = set; then :
7214 withval=$with_native_system_header_dir;
7215 case ${with_native_system_header_dir} in
7216 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7217 /* | [A-Za-z]:[\\/]*) ;;
7218 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7219 esac
7220 configured_native_system_header_dir="${withval}"
7221
7222 else
7223 configured_native_system_header_dir=
7224 fi
7225
7226
7227
7228 # Check whether --with-build-sysroot was given.
7229 if test "${with_build_sysroot+set}" = set; then :
7230 withval=$with_build_sysroot; if test x"$withval" != x ; then
7231 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7232 fi
7233 else
7234 SYSROOT_CFLAGS_FOR_TARGET=
7235 fi
7236
7237
7238
7239
7240 # Check whether --with-sysroot was given.
7241 if test "${with_sysroot+set}" = set; then :
7242 withval=$with_sysroot;
7243 case ${with_sysroot} in
7244 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7245 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7246 esac
7247
7248 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7249 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7250
7251 if test "x$prefix" = xNONE; then
7252 test_prefix=/usr/local
7253 else
7254 test_prefix=$prefix
7255 fi
7256 if test "x$exec_prefix" = xNONE; then
7257 test_exec_prefix=$test_prefix
7258 else
7259 test_exec_prefix=$exec_prefix
7260 fi
7261 case ${TARGET_SYSTEM_ROOT} in
7262 "${test_prefix}"|"${test_prefix}/"*|\
7263 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7264 '${prefix}'|'${prefix}/'*|\
7265 '${exec_prefix}'|'${exec_prefix}/'*)
7266 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7267 TARGET_SYSTEM_ROOT_DEFINE="$t"
7268 ;;
7269 esac
7270
7271 else
7272
7273 TARGET_SYSTEM_ROOT=
7274 TARGET_SYSTEM_ROOT_DEFINE=
7275 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7276
7277 fi
7278
7279
7280
7281
7282
7283
7284 # Check whether --with-specs was given.
7285 if test "${with_specs+set}" = set; then :
7286 withval=$with_specs; CONFIGURE_SPECS=$withval
7287 else
7288 CONFIGURE_SPECS=
7289
7290 fi
7291
7292
7293
7294
7295
7296 # Check whether --with-pkgversion was given.
7297 if test "${with_pkgversion+set}" = set; then :
7298 withval=$with_pkgversion; case "$withval" in
7299 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7300 no) PKGVERSION= ;;
7301 *) PKGVERSION="($withval) " ;;
7302 esac
7303 else
7304 PKGVERSION="(GCC) "
7305
7306 fi
7307
7308
7309
7310
7311
7312 # Check whether --with-bugurl was given.
7313 if test "${with_bugurl+set}" = set; then :
7314 withval=$with_bugurl; case "$withval" in
7315 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7316 no) BUGURL=
7317 ;;
7318 *) BUGURL="$withval"
7319 ;;
7320 esac
7321 else
7322 BUGURL="http://gcc.gnu.org/bugs.html"
7323
7324 fi
7325
7326 case ${BUGURL} in
7327 "")
7328 REPORT_BUGS_TO=
7329 REPORT_BUGS_TEXI=
7330 ;;
7331 *)
7332 REPORT_BUGS_TO="<$BUGURL>"
7333 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7334 ;;
7335 esac;
7336
7337
7338
7339
7340 # Sanity check enable_languages in case someone does not run the toplevel
7341 # configure # script.
7342 # Check whether --enable-languages was given.
7343 if test "${enable_languages+set}" = set; then :
7344 enableval=$enable_languages; case ,${enable_languages}, in
7345 ,,|,yes,)
7346 # go safe -- we cannot be much sure without the toplevel
7347 # configure's
7348 # analysis of which target libs are present and usable
7349 enable_languages=c
7350 ;;
7351 *,all,*)
7352 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7353 ;;
7354 *,c,*)
7355 ;;
7356 *)
7357 enable_languages=c,${enable_languages}
7358 ;;
7359 esac
7360 else
7361 enable_languages=c
7362 fi
7363
7364
7365
7366 # Check whether --with-multilib-list was given.
7367 if test "${with_multilib_list+set}" = set; then :
7368 withval=$with_multilib_list; :
7369 else
7370 with_multilib_list=default
7371 fi
7372
7373
7374 # -------------------------
7375 # Checks for other programs
7376 # -------------------------
7377
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7379 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7380 set x ${MAKE-make}
7381 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7382 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7383 $as_echo_n "(cached) " >&6
7384 else
7385 cat >conftest.make <<\_ACEOF
7386 SHELL = /bin/sh
7387 all:
7388 @echo '@@@%%%=$(MAKE)=@@@%%%'
7389 _ACEOF
7390 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7391 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7392 *@@@%%%=?*=@@@%%%*)
7393 eval ac_cv_prog_make_${ac_make}_set=yes;;
7394 *)
7395 eval ac_cv_prog_make_${ac_make}_set=no;;
7396 esac
7397 rm -f conftest.make
7398 fi
7399 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7401 $as_echo "yes" >&6; }
7402 SET_MAKE=
7403 else
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405 $as_echo "no" >&6; }
7406 SET_MAKE="MAKE=${MAKE-make}"
7407 fi
7408
7409
7410 # Find some useful tools
7411 for ac_prog in gawk mawk nawk awk
7412 do
7413 # Extract the first word of "$ac_prog", so it can be a program name with args.
7414 set dummy $ac_prog; ac_word=$2
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7416 $as_echo_n "checking for $ac_word... " >&6; }
7417 if test "${ac_cv_prog_AWK+set}" = set; then :
7418 $as_echo_n "(cached) " >&6
7419 else
7420 if test -n "$AWK"; then
7421 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7422 else
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 for as_dir in $PATH
7425 do
7426 IFS=$as_save_IFS
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7430 ac_cv_prog_AWK="$ac_prog"
7431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 break 2
7433 fi
7434 done
7435 done
7436 IFS=$as_save_IFS
7437
7438 fi
7439 fi
7440 AWK=$ac_cv_prog_AWK
7441 if test -n "$AWK"; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7443 $as_echo "$AWK" >&6; }
7444 else
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 $as_echo "no" >&6; }
7447 fi
7448
7449
7450 test -n "$AWK" && break
7451 done
7452
7453 # We need awk to create options.c and options.h.
7454 # Bail out if it's missing.
7455 case ${AWK} in
7456 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7457 esac
7458
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7460 $as_echo_n "checking whether ln -s works... " >&6; }
7461 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7462 $as_echo_n "(cached) " >&6
7463 else
7464 rm -f conftestdata_t
7465 echo >conftestdata_f
7466 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7467 then
7468 gcc_cv_prog_LN_S="ln -s"
7469 else
7470 if ln conftestdata_f conftestdata_t 2>/dev/null
7471 then
7472 gcc_cv_prog_LN_S=ln
7473 else
7474 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7475 then
7476 gcc_cv_prog_LN_S="cp -p"
7477 else
7478 gcc_cv_prog_LN_S=cp
7479 fi
7480 fi
7481 fi
7482 rm -f conftestdata_f conftestdata_t
7483
7484 fi
7485 LN_S="$gcc_cv_prog_LN_S"
7486 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7488 $as_echo "yes" >&6; }
7489 else
7490 if test "$gcc_cv_prog_LN_S" = "ln"; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7492 $as_echo "no, using ln" >&6; }
7493 else
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7495 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7496 fi
7497 fi
7498
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7500 $as_echo_n "checking whether ln works... " >&6; }
7501 if test "${acx_cv_prog_LN+set}" = set; then :
7502 $as_echo_n "(cached) " >&6
7503 else
7504 rm -f conftestdata_t
7505 echo >conftestdata_f
7506 if ln conftestdata_f conftestdata_t 2>/dev/null
7507 then
7508 acx_cv_prog_LN=ln
7509 else
7510 acx_cv_prog_LN=no
7511 fi
7512 rm -f conftestdata_f conftestdata_t
7513
7514 fi
7515 if test $acx_cv_prog_LN = no; then
7516 LN="$LN_S"
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7518 $as_echo "no, using $LN" >&6; }
7519 else
7520 LN="$acx_cv_prog_LN"
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7522 $as_echo "yes" >&6; }
7523 fi
7524
7525 if test -n "$ac_tool_prefix"; then
7526 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7527 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7529 $as_echo_n "checking for $ac_word... " >&6; }
7530 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7531 $as_echo_n "(cached) " >&6
7532 else
7533 if test -n "$RANLIB"; then
7534 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7535 else
7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537 for as_dir in $PATH
7538 do
7539 IFS=$as_save_IFS
7540 test -z "$as_dir" && as_dir=.
7541 for ac_exec_ext in '' $ac_executable_extensions; do
7542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7543 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7545 break 2
7546 fi
7547 done
7548 done
7549 IFS=$as_save_IFS
7550
7551 fi
7552 fi
7553 RANLIB=$ac_cv_prog_RANLIB
7554 if test -n "$RANLIB"; then
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7556 $as_echo "$RANLIB" >&6; }
7557 else
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559 $as_echo "no" >&6; }
7560 fi
7561
7562
7563 fi
7564 if test -z "$ac_cv_prog_RANLIB"; then
7565 ac_ct_RANLIB=$RANLIB
7566 # Extract the first word of "ranlib", so it can be a program name with args.
7567 set dummy ranlib; ac_word=$2
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7569 $as_echo_n "checking for $ac_word... " >&6; }
7570 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7571 $as_echo_n "(cached) " >&6
7572 else
7573 if test -n "$ac_ct_RANLIB"; then
7574 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7575 else
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577 for as_dir in $PATH
7578 do
7579 IFS=$as_save_IFS
7580 test -z "$as_dir" && as_dir=.
7581 for ac_exec_ext in '' $ac_executable_extensions; do
7582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7583 ac_cv_prog_ac_ct_RANLIB="ranlib"
7584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7585 break 2
7586 fi
7587 done
7588 done
7589 IFS=$as_save_IFS
7590
7591 fi
7592 fi
7593 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7594 if test -n "$ac_ct_RANLIB"; then
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7596 $as_echo "$ac_ct_RANLIB" >&6; }
7597 else
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599 $as_echo "no" >&6; }
7600 fi
7601
7602 if test "x$ac_ct_RANLIB" = x; then
7603 RANLIB=":"
7604 else
7605 case $cross_compiling:$ac_tool_warned in
7606 yes:)
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7609 ac_tool_warned=yes ;;
7610 esac
7611 RANLIB=$ac_ct_RANLIB
7612 fi
7613 else
7614 RANLIB="$ac_cv_prog_RANLIB"
7615 fi
7616
7617 ranlib_flags=""
7618
7619
7620 # Find a good install program. We prefer a C program (faster),
7621 # so one script is as good as another. But avoid the broken or
7622 # incompatible versions:
7623 # SysV /etc/install, /usr/sbin/install
7624 # SunOS /usr/etc/install
7625 # IRIX /sbin/install
7626 # AIX /bin/install
7627 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7628 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7629 # ./install, which can be erroneously created by make from ./install.sh.
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7631 $as_echo_n "checking for a BSD compatible install... " >&6; }
7632 if test -z "$INSTALL"; then
7633 if test "${ac_cv_path_install+set}" = set; then :
7634 $as_echo_n "(cached) " >&6
7635 else
7636 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7637 for ac_dir in $PATH; do
7638 # Account for people who put trailing slashes in PATH elements.
7639 case "$ac_dir/" in
7640 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7641 *)
7642 # OSF1 and SCO ODT 3.0 have their own names for install.
7643 for ac_prog in ginstall scoinst install; do
7644 if test -f $ac_dir/$ac_prog; then
7645 if test $ac_prog = install &&
7646 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7647 # AIX install. It has an incompatible calling convention.
7648 # OSF/1 installbsd also uses dspmsg, but is usable.
7649 :
7650 else
7651 ac_cv_path_install="$ac_dir/$ac_prog -c"
7652 break 2
7653 fi
7654 fi
7655 done
7656 ;;
7657 esac
7658 done
7659 IFS="$ac_save_IFS"
7660
7661 fi
7662 if test "${ac_cv_path_install+set}" = set; then
7663 INSTALL="$ac_cv_path_install"
7664 else
7665 # As a last resort, use the slow shell script. We don't cache a
7666 # path for INSTALL within a source directory, because that will
7667 # break other packages using the cache if that directory is
7668 # removed, or if the path is relative.
7669 INSTALL="$ac_install_sh"
7670 fi
7671 fi
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7673 $as_echo "$INSTALL" >&6; }
7674
7675 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7676 # It thinks the first close brace ends the variable substitution.
7677 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7678
7679 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7680
7681
7682 # See if cmp has --ignore-initial.
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7684 $as_echo_n "checking for cmp's capabilities... " >&6; }
7685 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7686 $as_echo_n "(cached) " >&6
7687 else
7688 echo abfoo >t1
7689 echo cdfoo >t2
7690 gcc_cv_prog_cmp_skip=slowcompare
7691 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7692 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7693 :
7694 else
7695 gcc_cv_prog_cmp_skip=gnucompare
7696 fi
7697 fi
7698 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7699 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7700 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7701 :
7702 else
7703 gcc_cv_prog_cmp_skip=fastcompare
7704 fi
7705 fi
7706 fi
7707 rm t1 t2
7708
7709 fi
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7711 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7712 make_compare_target=$gcc_cv_prog_cmp_skip
7713
7714
7715
7716 # See if we have the mktemp command.
7717 # Extract the first word of "mktemp", so it can be a program name with args.
7718 set dummy mktemp; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7722 $as_echo_n "(cached) " >&6
7723 else
7724 if test -n "$have_mktemp_command"; then
7725 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7726 else
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7729 do
7730 IFS=$as_save_IFS
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7734 ac_cv_prog_have_mktemp_command="yes"
7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 break 2
7737 fi
7738 done
7739 done
7740 IFS=$as_save_IFS
7741
7742 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7743 fi
7744 fi
7745 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7746 if test -n "$have_mktemp_command"; then
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7748 $as_echo "$have_mktemp_command" >&6; }
7749 else
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751 $as_echo "no" >&6; }
7752 fi
7753
7754
7755
7756 # See if makeinfo has been installed and is modern enough
7757 # that we can use it.
7758
7759 # Extract the first word of "makeinfo", so it can be a program name with args.
7760 set dummy makeinfo; ac_word=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
7765 else
7766 if test -n "$MAKEINFO"; then
7767 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7768 else
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 for as_dir in $PATH
7771 do
7772 IFS=$as_save_IFS
7773 test -z "$as_dir" && as_dir=.
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7776 ac_cv_prog_MAKEINFO="makeinfo"
7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7778 break 2
7779 fi
7780 done
7781 done
7782 IFS=$as_save_IFS
7783
7784 fi
7785 fi
7786 MAKEINFO=$ac_cv_prog_MAKEINFO
7787 if test -n "$MAKEINFO"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7789 $as_echo "$MAKEINFO" >&6; }
7790 else
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7793 fi
7794
7795
7796 if test -n "$MAKEINFO"; then
7797 # Found it, now check the version.
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7799 $as_echo_n "checking for modern makeinfo... " >&6; }
7800 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7801 $as_echo_n "(cached) " >&6
7802 else
7803 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7804 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7805
7806 case $ac_prog_version in
7807 '') gcc_cv_prog_makeinfo_modern=no;;
7808 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7809 *) gcc_cv_prog_makeinfo_modern=no;;
7810 esac
7811
7812 fi
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7814 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7815 else
7816 gcc_cv_prog_makeinfo_modern=no
7817 fi
7818 if test $gcc_cv_prog_makeinfo_modern = no; then
7819 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7820 fi
7821
7822 if test $gcc_cv_prog_makeinfo_modern = no; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7824 *** Makeinfo is missing or too old.
7825 *** Info documentation will not be built." >&5
7826 $as_echo "$as_me: WARNING:
7827 *** Makeinfo is missing or too old.
7828 *** Info documentation will not be built." >&2;}
7829 BUILD_INFO=
7830 else
7831 BUILD_INFO=info
7832 fi
7833
7834
7835 # Is pod2man recent enough to regenerate manpages?
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7837 $as_echo_n "checking for recent Pod::Man... " >&6; }
7838 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7840 $as_echo "yes" >&6; }
7841 GENERATED_MANPAGES=generated-manpages
7842 else
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7845 GENERATED_MANPAGES=
7846 fi
7847
7848
7849 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7850
7851 # How about lex?
7852 for ac_prog in flex
7853 do
7854 # Extract the first word of "$ac_prog", so it can be a program name with args.
7855 set dummy $ac_prog; ac_word=$2
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7857 $as_echo_n "checking for $ac_word... " >&6; }
7858 if test "${ac_cv_prog_FLEX+set}" = set; then :
7859 $as_echo_n "(cached) " >&6
7860 else
7861 if test -n "$FLEX"; then
7862 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7863 else
7864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865 for as_dir in $PATH
7866 do
7867 IFS=$as_save_IFS
7868 test -z "$as_dir" && as_dir=.
7869 for ac_exec_ext in '' $ac_executable_extensions; do
7870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7871 ac_cv_prog_FLEX="$ac_prog"
7872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7873 break 2
7874 fi
7875 done
7876 done
7877 IFS=$as_save_IFS
7878
7879 fi
7880 fi
7881 FLEX=$ac_cv_prog_FLEX
7882 if test -n "$FLEX"; then
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7884 $as_echo "$FLEX" >&6; }
7885 else
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7887 $as_echo "no" >&6; }
7888 fi
7889
7890
7891 test -n "$FLEX" && break
7892 done
7893 test -n "$FLEX" || FLEX="$MISSING flex"
7894
7895
7896 # Bison?
7897 for ac_prog in bison
7898 do
7899 # Extract the first word of "$ac_prog", so it can be a program name with args.
7900 set dummy $ac_prog; ac_word=$2
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902 $as_echo_n "checking for $ac_word... " >&6; }
7903 if test "${ac_cv_prog_BISON+set}" = set; then :
7904 $as_echo_n "(cached) " >&6
7905 else
7906 if test -n "$BISON"; then
7907 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7908 else
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 for as_dir in $PATH
7911 do
7912 IFS=$as_save_IFS
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7916 ac_cv_prog_BISON="$ac_prog"
7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 break 2
7919 fi
7920 done
7921 done
7922 IFS=$as_save_IFS
7923
7924 fi
7925 fi
7926 BISON=$ac_cv_prog_BISON
7927 if test -n "$BISON"; then
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7929 $as_echo "$BISON" >&6; }
7930 else
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932 $as_echo "no" >&6; }
7933 fi
7934
7935
7936 test -n "$BISON" && break
7937 done
7938 test -n "$BISON" || BISON="$MISSING bison"
7939
7940
7941 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7942 # check for build == host before using them.
7943
7944 # NM
7945 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7946 && test -d ../binutils ; then
7947 NM='${objdir}/../binutils/nm-new'
7948 else
7949 # Extract the first word of "nm", so it can be a program name with args.
7950 set dummy nm; ac_word=$2
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7952 $as_echo_n "checking for $ac_word... " >&6; }
7953 if test "${ac_cv_prog_NM+set}" = set; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7956 if test -n "$NM"; then
7957 ac_cv_prog_NM="$NM" # Let the user override the test.
7958 else
7959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960 for as_dir in $PATH
7961 do
7962 IFS=$as_save_IFS
7963 test -z "$as_dir" && as_dir=.
7964 for ac_exec_ext in '' $ac_executable_extensions; do
7965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7966 ac_cv_prog_NM="nm"
7967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7968 break 2
7969 fi
7970 done
7971 done
7972 IFS=$as_save_IFS
7973
7974 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7975 fi
7976 fi
7977 NM=$ac_cv_prog_NM
7978 if test -n "$NM"; then
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7980 $as_echo "$NM" >&6; }
7981 else
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983 $as_echo "no" >&6; }
7984 fi
7985
7986
7987 fi
7988
7989 # AR
7990 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7991 && test -d ../binutils ; then
7992 AR='${objdir}/../binutils/ar'
7993 else
7994 # Extract the first word of "ar", so it can be a program name with args.
7995 set dummy ar; ac_word=$2
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7997 $as_echo_n "checking for $ac_word... " >&6; }
7998 if test "${ac_cv_prog_AR+set}" = set; then :
7999 $as_echo_n "(cached) " >&6
8000 else
8001 if test -n "$AR"; then
8002 ac_cv_prog_AR="$AR" # Let the user override the test.
8003 else
8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005 for as_dir in $PATH
8006 do
8007 IFS=$as_save_IFS
8008 test -z "$as_dir" && as_dir=.
8009 for ac_exec_ext in '' $ac_executable_extensions; do
8010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8011 ac_cv_prog_AR="ar"
8012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8013 break 2
8014 fi
8015 done
8016 done
8017 IFS=$as_save_IFS
8018
8019 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8020 fi
8021 fi
8022 AR=$ac_cv_prog_AR
8023 if test -n "$AR"; then
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8025 $as_echo "$AR" >&6; }
8026 else
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 $as_echo "no" >&6; }
8029 fi
8030
8031
8032 fi
8033
8034
8035 # --------------------
8036 # Checks for C headers
8037 # --------------------
8038
8039 # Need to reject headers which give warnings, so that the -Werror bootstrap
8040 # works later. *sigh* This needs to come before all header checks.
8041
8042 ac_c_preproc_warn_flag=yes
8043
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8045 $as_echo_n "checking for ANSI C header files... " >&6; }
8046 if test "${ac_cv_header_stdc+set}" = set; then :
8047 $as_echo_n "(cached) " >&6
8048 else
8049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050 /* end confdefs.h. */
8051 #include <stdlib.h>
8052 #include <stdarg.h>
8053 #include <string.h>
8054 #include <float.h>
8055
8056 int
8057 main ()
8058 {
8059
8060 ;
8061 return 0;
8062 }
8063 _ACEOF
8064 if ac_fn_c_try_compile "$LINENO"; then :
8065 ac_cv_header_stdc=yes
8066 else
8067 ac_cv_header_stdc=no
8068 fi
8069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8070
8071 if test $ac_cv_header_stdc = yes; then
8072 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074 /* end confdefs.h. */
8075 #include <string.h>
8076
8077 _ACEOF
8078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8079 $EGREP "memchr" >/dev/null 2>&1; then :
8080
8081 else
8082 ac_cv_header_stdc=no
8083 fi
8084 rm -f conftest*
8085
8086 fi
8087
8088 if test $ac_cv_header_stdc = yes; then
8089 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091 /* end confdefs.h. */
8092 #include <stdlib.h>
8093
8094 _ACEOF
8095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8096 $EGREP "free" >/dev/null 2>&1; then :
8097
8098 else
8099 ac_cv_header_stdc=no
8100 fi
8101 rm -f conftest*
8102
8103 fi
8104
8105 if test $ac_cv_header_stdc = yes; then
8106 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8107 if test "$cross_compiling" = yes; then :
8108 :
8109 else
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8112 #include <ctype.h>
8113 #include <stdlib.h>
8114 #if ((' ' & 0x0FF) == 0x020)
8115 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8116 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8117 #else
8118 # define ISLOWER(c) \
8119 (('a' <= (c) && (c) <= 'i') \
8120 || ('j' <= (c) && (c) <= 'r') \
8121 || ('s' <= (c) && (c) <= 'z'))
8122 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8123 #endif
8124
8125 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8126 int
8127 main ()
8128 {
8129 int i;
8130 for (i = 0; i < 256; i++)
8131 if (XOR (islower (i), ISLOWER (i))
8132 || toupper (i) != TOUPPER (i))
8133 return 2;
8134 return 0;
8135 }
8136 _ACEOF
8137 if ac_fn_c_try_run "$LINENO"; then :
8138
8139 else
8140 ac_cv_header_stdc=no
8141 fi
8142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8143 conftest.$ac_objext conftest.beam conftest.$ac_ext
8144 fi
8145
8146 fi
8147 fi
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8149 $as_echo "$ac_cv_header_stdc" >&6; }
8150 if test $ac_cv_header_stdc = yes; then
8151
8152 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8153
8154 fi
8155
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8157 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8158 if test "${ac_cv_header_time+set}" = set; then :
8159 $as_echo_n "(cached) " >&6
8160 else
8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8163 #include <sys/types.h>
8164 #include <sys/time.h>
8165 #include <time.h>
8166
8167 int
8168 main ()
8169 {
8170 if ((struct tm *) 0)
8171 return 0;
8172 ;
8173 return 0;
8174 }
8175 _ACEOF
8176 if ac_fn_c_try_compile "$LINENO"; then :
8177 ac_cv_header_time=yes
8178 else
8179 ac_cv_header_time=no
8180 fi
8181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8182 fi
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8184 $as_echo "$ac_cv_header_time" >&6; }
8185 if test $ac_cv_header_time = yes; then
8186
8187 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8188
8189 fi
8190
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8192 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8193 if test "${gcc_cv_header_string+set}" = set; then :
8194 $as_echo_n "(cached) " >&6
8195 else
8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h. */
8198 #include <string.h>
8199 #include <strings.h>
8200 int
8201 main ()
8202 {
8203
8204 ;
8205 return 0;
8206 }
8207 _ACEOF
8208 if ac_fn_c_try_compile "$LINENO"; then :
8209 gcc_cv_header_string=yes
8210 else
8211 gcc_cv_header_string=no
8212 fi
8213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8214 fi
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8216 $as_echo "$gcc_cv_header_string" >&6; }
8217 if test $gcc_cv_header_string = yes; then
8218
8219 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8220
8221 fi
8222
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8224 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8225 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8226 $as_echo_n "(cached) " >&6
8227 else
8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h. */
8230 #include <sys/types.h>
8231 #include <sys/wait.h>
8232 #ifndef WEXITSTATUS
8233 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8234 #endif
8235 #ifndef WIFEXITED
8236 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8237 #endif
8238
8239 int
8240 main ()
8241 {
8242 int s;
8243 wait (&s);
8244 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8245 ;
8246 return 0;
8247 }
8248 _ACEOF
8249 if ac_fn_c_try_compile "$LINENO"; then :
8250 ac_cv_header_sys_wait_h=yes
8251 else
8252 ac_cv_header_sys_wait_h=no
8253 fi
8254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8255 fi
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8257 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8258 if test $ac_cv_header_sys_wait_h = yes; then
8259
8260 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8261
8262 fi
8263
8264 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8265 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8266 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8267 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8268 do :
8269 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8270 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8271 eval as_val=\$$as_ac_Header
8272 if test "x$as_val" = x""yes; then :
8273 cat >>confdefs.h <<_ACEOF
8274 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8275 _ACEOF
8276
8277 fi
8278 done
8279
8280
8281 # Check for thread headers.
8282 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8283 if test "x$ac_cv_header_thread_h" = x""yes; then :
8284 have_thread_h=yes
8285 else
8286 have_thread_h=
8287 fi
8288
8289 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8290 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8291 have_pthread_h=yes
8292 else
8293 have_pthread_h=
8294 fi
8295
8296
8297 # These tests can't be done till we know if we have limits.h.
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8299 $as_echo_n "checking for CHAR_BIT... " >&6; }
8300 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8301 $as_echo_n "(cached) " >&6
8302 else
8303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8304 /* end confdefs.h. */
8305 #ifdef HAVE_LIMITS_H
8306 #include <limits.h>
8307 #endif
8308 #ifdef CHAR_BIT
8309 found
8310 #endif
8311 _ACEOF
8312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8313 $EGREP "found" >/dev/null 2>&1; then :
8314 gcc_cv_decl_char_bit=yes
8315 else
8316 gcc_cv_decl_char_bit=no
8317 fi
8318 rm -f conftest*
8319
8320
8321 fi
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8323 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8324 if test $gcc_cv_decl_char_bit = no; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8326 $as_echo_n "checking number of bits in a byte... " >&6; }
8327 if test "${gcc_cv_c_nbby+set}" = set; then :
8328 $as_echo_n "(cached) " >&6
8329 else
8330 i=8
8331 gcc_cv_c_nbby=
8332 while test $i -lt 65; do
8333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334 /* end confdefs.h. */
8335
8336 int
8337 main ()
8338 {
8339 switch(0) {
8340 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8341 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8342 ; }
8343 ;
8344 return 0;
8345 }
8346 _ACEOF
8347 if ac_fn_c_try_compile "$LINENO"; then :
8348 gcc_cv_c_nbby=$i; break
8349 fi
8350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8351 i=`expr $i + 1`
8352 done
8353 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8354
8355 fi
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8357 $as_echo "$gcc_cv_c_nbby" >&6; }
8358 if test $gcc_cv_c_nbby = failed; then
8359 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8360 else
8361
8362 cat >>confdefs.h <<_ACEOF
8363 #define CHAR_BIT $gcc_cv_c_nbby
8364 _ACEOF
8365
8366 fi
8367 fi
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8369 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8370 if test "${ac_cv_c_bigendian+set}" = set; then :
8371 $as_echo_n "(cached) " >&6
8372 else
8373 ac_cv_c_bigendian=unknown
8374 # See if we're dealing with a universal compiler.
8375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8376 /* end confdefs.h. */
8377 #ifndef __APPLE_CC__
8378 not a universal capable compiler
8379 #endif
8380 typedef int dummy;
8381
8382 _ACEOF
8383 if ac_fn_c_try_compile "$LINENO"; then :
8384
8385 # Check for potential -arch flags. It is not universal unless
8386 # there are at least two -arch flags with different values.
8387 ac_arch=
8388 ac_prev=
8389 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8390 if test -n "$ac_prev"; then
8391 case $ac_word in
8392 i?86 | x86_64 | ppc | ppc64)
8393 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8394 ac_arch=$ac_word
8395 else
8396 ac_cv_c_bigendian=universal
8397 break
8398 fi
8399 ;;
8400 esac
8401 ac_prev=
8402 elif test "x$ac_word" = "x-arch"; then
8403 ac_prev=arch
8404 fi
8405 done
8406 fi
8407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8408 if test $ac_cv_c_bigendian = unknown; then
8409 # See if sys/param.h defines the BYTE_ORDER macro.
8410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h. */
8412 #include <sys/types.h>
8413 #include <sys/param.h>
8414
8415 int
8416 main ()
8417 {
8418 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8419 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8420 && LITTLE_ENDIAN)
8421 bogus endian macros
8422 #endif
8423
8424 ;
8425 return 0;
8426 }
8427 _ACEOF
8428 if ac_fn_c_try_compile "$LINENO"; then :
8429 # It does; now see whether it defined to BIG_ENDIAN or not.
8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8432 #include <sys/types.h>
8433 #include <sys/param.h>
8434
8435 int
8436 main ()
8437 {
8438 #if BYTE_ORDER != BIG_ENDIAN
8439 not big endian
8440 #endif
8441
8442 ;
8443 return 0;
8444 }
8445 _ACEOF
8446 if ac_fn_c_try_compile "$LINENO"; then :
8447 ac_cv_c_bigendian=yes
8448 else
8449 ac_cv_c_bigendian=no
8450 fi
8451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8452 fi
8453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8454 fi
8455 if test $ac_cv_c_bigendian = unknown; then
8456 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h. */
8459 #include <limits.h>
8460
8461 int
8462 main ()
8463 {
8464 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8465 bogus endian macros
8466 #endif
8467
8468 ;
8469 return 0;
8470 }
8471 _ACEOF
8472 if ac_fn_c_try_compile "$LINENO"; then :
8473 # It does; now see whether it defined to _BIG_ENDIAN or not.
8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8476 #include <limits.h>
8477
8478 int
8479 main ()
8480 {
8481 #ifndef _BIG_ENDIAN
8482 not big endian
8483 #endif
8484
8485 ;
8486 return 0;
8487 }
8488 _ACEOF
8489 if ac_fn_c_try_compile "$LINENO"; then :
8490 ac_cv_c_bigendian=yes
8491 else
8492 ac_cv_c_bigendian=no
8493 fi
8494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8495 fi
8496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8497 fi
8498 if test $ac_cv_c_bigendian = unknown; then
8499 # Compile a test program.
8500 if test "$cross_compiling" = yes; then :
8501 # Try to guess by grepping values from an object file.
8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h. */
8504 short int ascii_mm[] =
8505 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8506 short int ascii_ii[] =
8507 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8508 int use_ascii (int i) {
8509 return ascii_mm[i] + ascii_ii[i];
8510 }
8511 short int ebcdic_ii[] =
8512 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8513 short int ebcdic_mm[] =
8514 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8515 int use_ebcdic (int i) {
8516 return ebcdic_mm[i] + ebcdic_ii[i];
8517 }
8518 extern int foo;
8519
8520 int
8521 main ()
8522 {
8523 return use_ascii (foo) == use_ebcdic (foo);
8524 ;
8525 return 0;
8526 }
8527 _ACEOF
8528 if ac_fn_c_try_compile "$LINENO"; then :
8529 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8530 ac_cv_c_bigendian=yes
8531 fi
8532 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8533 if test "$ac_cv_c_bigendian" = unknown; then
8534 ac_cv_c_bigendian=no
8535 else
8536 # finding both strings is unlikely to happen, but who knows?
8537 ac_cv_c_bigendian=unknown
8538 fi
8539 fi
8540 fi
8541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8542 else
8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h. */
8545 $ac_includes_default
8546 int
8547 main ()
8548 {
8549
8550 /* Are we little or big endian? From Harbison&Steele. */
8551 union
8552 {
8553 long int l;
8554 char c[sizeof (long int)];
8555 } u;
8556 u.l = 1;
8557 return u.c[sizeof (long int) - 1] == 1;
8558
8559 ;
8560 return 0;
8561 }
8562 _ACEOF
8563 if ac_fn_c_try_run "$LINENO"; then :
8564 ac_cv_c_bigendian=no
8565 else
8566 ac_cv_c_bigendian=yes
8567 fi
8568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8569 conftest.$ac_objext conftest.beam conftest.$ac_ext
8570 fi
8571
8572 fi
8573 fi
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8575 $as_echo "$ac_cv_c_bigendian" >&6; }
8576 case $ac_cv_c_bigendian in #(
8577 yes)
8578 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8579 ;; #(
8580 no)
8581 ;; #(
8582 universal)
8583
8584 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8585
8586 ;; #(
8587 *)
8588 as_fn_error "unknown endianness
8589 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8590 esac
8591
8592
8593 # ----------------------
8594 # Checks for C++ headers
8595 # ----------------------
8596
8597 ac_ext=cpp
8598 ac_cpp='$CXXCPP $CPPFLAGS'
8599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8603 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8604 if test -z "$CXXCPP"; then
8605 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8606 $as_echo_n "(cached) " >&6
8607 else
8608 # Double quotes because CXXCPP needs to be expanded
8609 for CXXCPP in "$CXX -E" "/lib/cpp"
8610 do
8611 ac_preproc_ok=false
8612 for ac_cxx_preproc_warn_flag in '' yes
8613 do
8614 # Use a header file that comes with gcc, so configuring glibc
8615 # with a fresh cross-compiler works.
8616 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8617 # <limits.h> exists even on freestanding compilers.
8618 # On the NeXT, cc -E runs the code through the compiler's parser,
8619 # not just through cpp. "Syntax error" is here to catch this case.
8620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8621 /* end confdefs.h. */
8622 #ifdef __STDC__
8623 # include <limits.h>
8624 #else
8625 # include <assert.h>
8626 #endif
8627 Syntax error
8628 _ACEOF
8629 if ac_fn_cxx_try_cpp "$LINENO"; then :
8630
8631 else
8632 # Broken: fails on valid input.
8633 continue
8634 fi
8635 rm -f conftest.err conftest.$ac_ext
8636
8637 # OK, works on sane cases. Now check whether nonexistent headers
8638 # can be detected and how.
8639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8640 /* end confdefs.h. */
8641 #include <ac_nonexistent.h>
8642 _ACEOF
8643 if ac_fn_cxx_try_cpp "$LINENO"; then :
8644 # Broken: success on invalid input.
8645 continue
8646 else
8647 # Passes both tests.
8648 ac_preproc_ok=:
8649 break
8650 fi
8651 rm -f conftest.err conftest.$ac_ext
8652
8653 done
8654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8655 rm -f conftest.err conftest.$ac_ext
8656 if $ac_preproc_ok; then :
8657 break
8658 fi
8659
8660 done
8661 ac_cv_prog_CXXCPP=$CXXCPP
8662
8663 fi
8664 CXXCPP=$ac_cv_prog_CXXCPP
8665 else
8666 ac_cv_prog_CXXCPP=$CXXCPP
8667 fi
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8669 $as_echo "$CXXCPP" >&6; }
8670 ac_preproc_ok=false
8671 for ac_cxx_preproc_warn_flag in '' yes
8672 do
8673 # Use a header file that comes with gcc, so configuring glibc
8674 # with a fresh cross-compiler works.
8675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8676 # <limits.h> exists even on freestanding compilers.
8677 # On the NeXT, cc -E runs the code through the compiler's parser,
8678 # not just through cpp. "Syntax error" is here to catch this case.
8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h. */
8681 #ifdef __STDC__
8682 # include <limits.h>
8683 #else
8684 # include <assert.h>
8685 #endif
8686 Syntax error
8687 _ACEOF
8688 if ac_fn_cxx_try_cpp "$LINENO"; then :
8689
8690 else
8691 # Broken: fails on valid input.
8692 continue
8693 fi
8694 rm -f conftest.err conftest.$ac_ext
8695
8696 # OK, works on sane cases. Now check whether nonexistent headers
8697 # can be detected and how.
8698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699 /* end confdefs.h. */
8700 #include <ac_nonexistent.h>
8701 _ACEOF
8702 if ac_fn_cxx_try_cpp "$LINENO"; then :
8703 # Broken: success on invalid input.
8704 continue
8705 else
8706 # Passes both tests.
8707 ac_preproc_ok=:
8708 break
8709 fi
8710 rm -f conftest.err conftest.$ac_ext
8711
8712 done
8713 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8714 rm -f conftest.err conftest.$ac_ext
8715 if $ac_preproc_ok; then :
8716
8717 else
8718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8721 See \`config.log' for more details." >&5
8722 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8723 See \`config.log' for more details." >&2;}; }
8724 fi
8725
8726 ac_ext=c
8727 ac_cpp='$CPP $CPPFLAGS'
8728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8731
8732
8733 ac_ext=cpp
8734 ac_cpp='$CXXCPP $CPPFLAGS'
8735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8738
8739
8740
8741
8742 for ac_header in unordered_map
8743 do :
8744 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8745 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8746 cat >>confdefs.h <<_ACEOF
8747 #define HAVE_UNORDERED_MAP 1
8748 _ACEOF
8749
8750 fi
8751 done
8752
8753 for ac_header in tr1/unordered_map
8754 do :
8755 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8756 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8757 cat >>confdefs.h <<_ACEOF
8758 #define HAVE_TR1_UNORDERED_MAP 1
8759 _ACEOF
8760
8761 fi
8762 done
8763
8764 for ac_header in ext/hash_map
8765 do :
8766 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8767 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8768 cat >>confdefs.h <<_ACEOF
8769 #define HAVE_EXT_HASH_MAP 1
8770 _ACEOF
8771
8772 fi
8773 done
8774
8775
8776 ac_ext=c
8777 ac_cpp='$CPP $CPPFLAGS'
8778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8781
8782
8783 # --------
8784 # UNSORTED
8785 # --------
8786
8787
8788 # These libraries may be used by collect2.
8789 # We may need a special search path to get them linked.
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8791 $as_echo_n "checking for collect2 libraries... " >&6; }
8792 if test "${gcc_cv_collect2_libs+set}" = set; then :
8793 $as_echo_n "(cached) " >&6
8794 else
8795 save_LIBS="$LIBS"
8796 for libs in '' -lld -lmld \
8797 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8798 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8799 do
8800 LIBS="$libs"
8801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h. */
8803
8804 /* Override any GCC internal prototype to avoid an error.
8805 Use char because int might match the return type of a GCC
8806 builtin and then its argument prototype would still apply. */
8807 #ifdef __cplusplus
8808 extern "C"
8809 #endif
8810 char ldopen ();
8811 int
8812 main ()
8813 {
8814 return ldopen ();
8815 ;
8816 return 0;
8817 }
8818 _ACEOF
8819 if ac_fn_c_try_link "$LINENO"; then :
8820 gcc_cv_collect2_libs="$libs"; break
8821 fi
8822 rm -f core conftest.err conftest.$ac_objext \
8823 conftest$ac_exeext conftest.$ac_ext
8824 done
8825 LIBS="$save_LIBS"
8826 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8827 fi
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8829 $as_echo "$gcc_cv_collect2_libs" >&6; }
8830 case $gcc_cv_collect2_libs in
8831 "none required") ;;
8832 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8833 esac
8834
8835
8836 # When building Ada code on Alpha, we need exc_resume which is usually in
8837 # -lexc. So test for it.
8838 save_LIBS="$LIBS"
8839 LIBS=
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8841 $as_echo_n "checking for library containing exc_resume... " >&6; }
8842 if test "${ac_cv_search_exc_resume+set}" = set; then :
8843 $as_echo_n "(cached) " >&6
8844 else
8845 ac_func_search_save_LIBS=$LIBS
8846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847 /* end confdefs.h. */
8848
8849 /* Override any GCC internal prototype to avoid an error.
8850 Use char because int might match the return type of a GCC
8851 builtin and then its argument prototype would still apply. */
8852 #ifdef __cplusplus
8853 extern "C"
8854 #endif
8855 char exc_resume ();
8856 int
8857 main ()
8858 {
8859 return exc_resume ();
8860 ;
8861 return 0;
8862 }
8863 _ACEOF
8864 for ac_lib in '' exc; do
8865 if test -z "$ac_lib"; then
8866 ac_res="none required"
8867 else
8868 ac_res=-l$ac_lib
8869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8870 fi
8871 if ac_fn_c_try_link "$LINENO"; then :
8872 ac_cv_search_exc_resume=$ac_res
8873 fi
8874 rm -f core conftest.err conftest.$ac_objext \
8875 conftest$ac_exeext
8876 if test "${ac_cv_search_exc_resume+set}" = set; then :
8877 break
8878 fi
8879 done
8880 if test "${ac_cv_search_exc_resume+set}" = set; then :
8881
8882 else
8883 ac_cv_search_exc_resume=no
8884 fi
8885 rm conftest.$ac_ext
8886 LIBS=$ac_func_search_save_LIBS
8887 fi
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8889 $as_echo "$ac_cv_search_exc_resume" >&6; }
8890 ac_res=$ac_cv_search_exc_resume
8891 if test "$ac_res" != no; then :
8892 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8893
8894 fi
8895
8896 GNAT_LIBEXC="$LIBS"
8897 LIBS="$save_LIBS"
8898
8899
8900 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8901 save_LIBS="$LIBS"
8902 LIBS=
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8904 $as_echo_n "checking for library containing kstat_open... " >&6; }
8905 if test "${ac_cv_search_kstat_open+set}" = set; then :
8906 $as_echo_n "(cached) " >&6
8907 else
8908 ac_func_search_save_LIBS=$LIBS
8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8911
8912 /* Override any GCC internal prototype to avoid an error.
8913 Use char because int might match the return type of a GCC
8914 builtin and then its argument prototype would still apply. */
8915 #ifdef __cplusplus
8916 extern "C"
8917 #endif
8918 char kstat_open ();
8919 int
8920 main ()
8921 {
8922 return kstat_open ();
8923 ;
8924 return 0;
8925 }
8926 _ACEOF
8927 for ac_lib in '' kstat; do
8928 if test -z "$ac_lib"; then
8929 ac_res="none required"
8930 else
8931 ac_res=-l$ac_lib
8932 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8933 fi
8934 if ac_fn_c_try_link "$LINENO"; then :
8935 ac_cv_search_kstat_open=$ac_res
8936 fi
8937 rm -f core conftest.err conftest.$ac_objext \
8938 conftest$ac_exeext
8939 if test "${ac_cv_search_kstat_open+set}" = set; then :
8940 break
8941 fi
8942 done
8943 if test "${ac_cv_search_kstat_open+set}" = set; then :
8944
8945 else
8946 ac_cv_search_kstat_open=no
8947 fi
8948 rm conftest.$ac_ext
8949 LIBS=$ac_func_search_save_LIBS
8950 fi
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8952 $as_echo "$ac_cv_search_kstat_open" >&6; }
8953 ac_res=$ac_cv_search_kstat_open
8954 if test "$ac_res" != no; then :
8955 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8956
8957 fi
8958
8959 EXTRA_GCC_LIBS="$LIBS"
8960 LIBS="$save_LIBS"
8961
8962
8963 # Some systems put ldexp and frexp in libm instead of libc; assume
8964 # they're both in the same place. jcf-dump needs them.
8965 save_LIBS="$LIBS"
8966 LIBS=
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8968 $as_echo_n "checking for library containing ldexp... " >&6; }
8969 if test "${ac_cv_search_ldexp+set}" = set; then :
8970 $as_echo_n "(cached) " >&6
8971 else
8972 ac_func_search_save_LIBS=$LIBS
8973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974 /* end confdefs.h. */
8975
8976 /* Override any GCC internal prototype to avoid an error.
8977 Use char because int might match the return type of a GCC
8978 builtin and then its argument prototype would still apply. */
8979 #ifdef __cplusplus
8980 extern "C"
8981 #endif
8982 char ldexp ();
8983 int
8984 main ()
8985 {
8986 return ldexp ();
8987 ;
8988 return 0;
8989 }
8990 _ACEOF
8991 for ac_lib in '' m; do
8992 if test -z "$ac_lib"; then
8993 ac_res="none required"
8994 else
8995 ac_res=-l$ac_lib
8996 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8997 fi
8998 if ac_fn_c_try_link "$LINENO"; then :
8999 ac_cv_search_ldexp=$ac_res
9000 fi
9001 rm -f core conftest.err conftest.$ac_objext \
9002 conftest$ac_exeext
9003 if test "${ac_cv_search_ldexp+set}" = set; then :
9004 break
9005 fi
9006 done
9007 if test "${ac_cv_search_ldexp+set}" = set; then :
9008
9009 else
9010 ac_cv_search_ldexp=no
9011 fi
9012 rm conftest.$ac_ext
9013 LIBS=$ac_func_search_save_LIBS
9014 fi
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9016 $as_echo "$ac_cv_search_ldexp" >&6; }
9017 ac_res=$ac_cv_search_ldexp
9018 if test "$ac_res" != no; then :
9019 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9020
9021 fi
9022
9023 LDEXP_LIB="$LIBS"
9024 LIBS="$save_LIBS"
9025
9026
9027 # Use <inttypes.h> only if it exists,
9028 # doesn't clash with <sys/types.h>, and declares intmax_t.
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9030 $as_echo_n "checking for inttypes.h... " >&6; }
9031 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9032 $as_echo_n "(cached) " >&6
9033 else
9034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9035 /* end confdefs.h. */
9036 #include <sys/types.h>
9037 #include <inttypes.h>
9038 int
9039 main ()
9040 {
9041 intmax_t i = -1;
9042 ;
9043 return 0;
9044 }
9045 _ACEOF
9046 if ac_fn_c_try_compile "$LINENO"; then :
9047 gcc_cv_header_inttypes_h=yes
9048 else
9049 gcc_cv_header_inttypes_h=no
9050 fi
9051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9052 fi
9053
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9055 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9056 if test $gcc_cv_header_inttypes_h = yes; then
9057
9058 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9059
9060 fi
9061
9062
9063
9064 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9065 sysconf strsignal getrusage nl_langinfo \
9066 gettimeofday mbstowcs wcswidth mmap setlocale \
9067 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
9068 do :
9069 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9070 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9071 eval as_val=\$$as_ac_var
9072 if test "x$as_val" = x""yes; then :
9073 cat >>confdefs.h <<_ACEOF
9074 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9075 _ACEOF
9076
9077 fi
9078 done
9079
9080
9081 if test x$ac_cv_func_mbstowcs = xyes; then
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9083 $as_echo_n "checking whether mbstowcs works... " >&6; }
9084 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9085 $as_echo_n "(cached) " >&6
9086 else
9087 if test "$cross_compiling" = yes; then :
9088 gcc_cv_func_mbstowcs_works=yes
9089 else
9090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9091 /* end confdefs.h. */
9092 #include <stdlib.h>
9093 int main()
9094 {
9095 mbstowcs(0, "", 0);
9096 return 0;
9097 }
9098 _ACEOF
9099 if ac_fn_c_try_run "$LINENO"; then :
9100 gcc_cv_func_mbstowcs_works=yes
9101 else
9102 gcc_cv_func_mbstowcs_works=no
9103 fi
9104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9105 conftest.$ac_objext conftest.beam conftest.$ac_ext
9106 fi
9107
9108 fi
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9110 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9111 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9112
9113 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9114
9115 fi
9116 fi
9117
9118 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9119 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9120
9121 else
9122
9123 cat >>confdefs.h <<_ACEOF
9124 #define ssize_t int
9125 _ACEOF
9126
9127 fi
9128
9129 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9130 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9131
9132 else
9133
9134 cat >>confdefs.h <<_ACEOF
9135 #define caddr_t char *
9136 _ACEOF
9137
9138 fi
9139
9140
9141
9142 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9143 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9144 gcc_header_sys_mman_h=yes
9145 else
9146 gcc_header_sys_mman_h=no
9147 fi
9148
9149 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9150 if test "x$ac_cv_func_mmap" = x""yes; then :
9151 gcc_func_mmap=yes
9152 else
9153 gcc_func_mmap=no
9154 fi
9155
9156 if test "$gcc_header_sys_mman_h" != yes \
9157 || test "$gcc_func_mmap" != yes; then
9158 gcc_cv_func_mmap_file=no
9159 gcc_cv_func_mmap_dev_zero=no
9160 gcc_cv_func_mmap_anon=no
9161 else
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9163 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9164 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9165 $as_echo_n "(cached) " >&6
9166 else
9167 # Add a system to this blacklist if
9168 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9169 # memory area containing the same data that you'd get if you applied
9170 # read() to the same fd. The only system known to have a problem here
9171 # is VMS, where text files have record structure.
9172 case "$host_os" in
9173 *vms* | ultrix*)
9174 gcc_cv_func_mmap_file=no ;;
9175 *)
9176 gcc_cv_func_mmap_file=yes;;
9177 esac
9178 fi
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9180 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9182 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9183 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9184 $as_echo_n "(cached) " >&6
9185 else
9186 # Add a system to this blacklist if it has mmap() but /dev/zero
9187 # does not exist, or if mmapping /dev/zero does not give anonymous
9188 # zeroed pages with both the following properties:
9189 # 1. If you map N consecutive pages in with one call, and then
9190 # unmap any subset of those pages, the pages that were not
9191 # explicitly unmapped remain accessible.
9192 # 2. If you map two adjacent blocks of memory and then unmap them
9193 # both at once, they must both go away.
9194 # Systems known to be in this category are Windows (all variants),
9195 # VMS, and Darwin.
9196 case "$host_os" in
9197 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9198 gcc_cv_func_mmap_dev_zero=no ;;
9199 *)
9200 gcc_cv_func_mmap_dev_zero=yes;;
9201 esac
9202 fi
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9204 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9205
9206 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9208 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9209 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9210 $as_echo_n "(cached) " >&6
9211 else
9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9214 #include <sys/types.h>
9215 #include <sys/mman.h>
9216 #include <unistd.h>
9217
9218 #ifndef MAP_ANONYMOUS
9219 #define MAP_ANONYMOUS MAP_ANON
9220 #endif
9221
9222 int
9223 main ()
9224 {
9225 int n = MAP_ANONYMOUS;
9226 ;
9227 return 0;
9228 }
9229 _ACEOF
9230 if ac_fn_c_try_compile "$LINENO"; then :
9231 gcc_cv_decl_map_anon=yes
9232 else
9233 gcc_cv_decl_map_anon=no
9234 fi
9235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9236 fi
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9238 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9239
9240 if test $gcc_cv_decl_map_anon = no; then
9241 gcc_cv_func_mmap_anon=no
9242 else
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9244 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9245 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9246 $as_echo_n "(cached) " >&6
9247 else
9248 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9249 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9250 # doesn't give anonymous zeroed pages with the same properties listed
9251 # above for use of /dev/zero.
9252 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9253 case "$host_os" in
9254 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9255 gcc_cv_func_mmap_anon=no ;;
9256 *)
9257 gcc_cv_func_mmap_anon=yes;;
9258 esac
9259 fi
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9261 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9262 fi
9263 fi
9264
9265 if test $gcc_cv_func_mmap_file = yes; then
9266
9267 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9268
9269 fi
9270 if test $gcc_cv_func_mmap_dev_zero = yes; then
9271
9272 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9273
9274 fi
9275 if test $gcc_cv_func_mmap_anon = yes; then
9276
9277 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9278
9279 fi
9280
9281
9282 case "${host}" in
9283 *-*-*vms*)
9284 # Under VMS, vfork works very differently than on Unix. The standard test
9285 # won't work, and it isn't easily adaptable. It makes more sense to
9286 # just force it.
9287 ac_cv_func_vfork_works=yes
9288 ;;
9289 esac
9290 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9291 if test "x$ac_cv_type_pid_t" = x""yes; then :
9292
9293 else
9294
9295 cat >>confdefs.h <<_ACEOF
9296 #define pid_t int
9297 _ACEOF
9298
9299 fi
9300
9301 for ac_header in vfork.h
9302 do :
9303 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9304 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9305 cat >>confdefs.h <<_ACEOF
9306 #define HAVE_VFORK_H 1
9307 _ACEOF
9308
9309 fi
9310 done
9311
9312 for ac_func in fork vfork
9313 do :
9314 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9315 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9316 eval as_val=\$$as_ac_var
9317 if test "x$as_val" = x""yes; then :
9318 cat >>confdefs.h <<_ACEOF
9319 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9320 _ACEOF
9321
9322 fi
9323 done
9324
9325 if test "x$ac_cv_func_fork" = xyes; then
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9327 $as_echo_n "checking for working fork... " >&6; }
9328 if test "${ac_cv_func_fork_works+set}" = set; then :
9329 $as_echo_n "(cached) " >&6
9330 else
9331 if test "$cross_compiling" = yes; then :
9332 ac_cv_func_fork_works=cross
9333 else
9334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h. */
9336 $ac_includes_default
9337 int
9338 main ()
9339 {
9340
9341 /* By Ruediger Kuhlmann. */
9342 return fork () < 0;
9343
9344 ;
9345 return 0;
9346 }
9347 _ACEOF
9348 if ac_fn_c_try_run "$LINENO"; then :
9349 ac_cv_func_fork_works=yes
9350 else
9351 ac_cv_func_fork_works=no
9352 fi
9353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9354 conftest.$ac_objext conftest.beam conftest.$ac_ext
9355 fi
9356
9357 fi
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9359 $as_echo "$ac_cv_func_fork_works" >&6; }
9360
9361 else
9362 ac_cv_func_fork_works=$ac_cv_func_fork
9363 fi
9364 if test "x$ac_cv_func_fork_works" = xcross; then
9365 case $host in
9366 *-*-amigaos* | *-*-msdosdjgpp*)
9367 # Override, as these systems have only a dummy fork() stub
9368 ac_cv_func_fork_works=no
9369 ;;
9370 *)
9371 ac_cv_func_fork_works=yes
9372 ;;
9373 esac
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9375 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9376 fi
9377 ac_cv_func_vfork_works=$ac_cv_func_vfork
9378 if test "x$ac_cv_func_vfork" = xyes; then
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9380 $as_echo_n "checking for working vfork... " >&6; }
9381 if test "${ac_cv_func_vfork_works+set}" = set; then :
9382 $as_echo_n "(cached) " >&6
9383 else
9384 if test "$cross_compiling" = yes; then :
9385 ac_cv_func_vfork_works=cross
9386 else
9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9389 /* Thanks to Paul Eggert for this test. */
9390 $ac_includes_default
9391 #include <sys/wait.h>
9392 #ifdef HAVE_VFORK_H
9393 # include <vfork.h>
9394 #endif
9395 /* On some sparc systems, changes by the child to local and incoming
9396 argument registers are propagated back to the parent. The compiler
9397 is told about this with #include <vfork.h>, but some compilers
9398 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9399 static variable whose address is put into a register that is
9400 clobbered by the vfork. */
9401 static void
9402 #ifdef __cplusplus
9403 sparc_address_test (int arg)
9404 # else
9405 sparc_address_test (arg) int arg;
9406 #endif
9407 {
9408 static pid_t child;
9409 if (!child) {
9410 child = vfork ();
9411 if (child < 0) {
9412 perror ("vfork");
9413 _exit(2);
9414 }
9415 if (!child) {
9416 arg = getpid();
9417 write(-1, "", 0);
9418 _exit (arg);
9419 }
9420 }
9421 }
9422
9423 int
9424 main ()
9425 {
9426 pid_t parent = getpid ();
9427 pid_t child;
9428
9429 sparc_address_test (0);
9430
9431 child = vfork ();
9432
9433 if (child == 0) {
9434 /* Here is another test for sparc vfork register problems. This
9435 test uses lots of local variables, at least as many local
9436 variables as main has allocated so far including compiler
9437 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9438 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9439 reuse the register of parent for one of the local variables,
9440 since it will think that parent can't possibly be used any more
9441 in this routine. Assigning to the local variable will thus
9442 munge parent in the parent process. */
9443 pid_t
9444 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9445 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9446 /* Convince the compiler that p..p7 are live; otherwise, it might
9447 use the same hardware register for all 8 local variables. */
9448 if (p != p1 || p != p2 || p != p3 || p != p4
9449 || p != p5 || p != p6 || p != p7)
9450 _exit(1);
9451
9452 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9453 from child file descriptors. If the child closes a descriptor
9454 before it execs or exits, this munges the parent's descriptor
9455 as well. Test for this by closing stdout in the child. */
9456 _exit(close(fileno(stdout)) != 0);
9457 } else {
9458 int status;
9459 struct stat st;
9460
9461 while (wait(&status) != child)
9462 ;
9463 return (
9464 /* Was there some problem with vforking? */
9465 child < 0
9466
9467 /* Did the child fail? (This shouldn't happen.) */
9468 || status
9469
9470 /* Did the vfork/compiler bug occur? */
9471 || parent != getpid()
9472
9473 /* Did the file descriptor bug occur? */
9474 || fstat(fileno(stdout), &st) != 0
9475 );
9476 }
9477 }
9478 _ACEOF
9479 if ac_fn_c_try_run "$LINENO"; then :
9480 ac_cv_func_vfork_works=yes
9481 else
9482 ac_cv_func_vfork_works=no
9483 fi
9484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9485 conftest.$ac_objext conftest.beam conftest.$ac_ext
9486 fi
9487
9488 fi
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9490 $as_echo "$ac_cv_func_vfork_works" >&6; }
9491
9492 fi;
9493 if test "x$ac_cv_func_fork_works" = xcross; then
9494 ac_cv_func_vfork_works=$ac_cv_func_vfork
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9496 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9497 fi
9498
9499 if test "x$ac_cv_func_vfork_works" = xyes; then
9500
9501 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9502
9503 else
9504
9505 $as_echo "#define vfork fork" >>confdefs.h
9506
9507 fi
9508 if test "x$ac_cv_func_fork_works" = xyes; then
9509
9510 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9511
9512 fi
9513
9514
9515 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9516 # iconv() prototype.
9517
9518 if test "X$prefix" = "XNONE"; then
9519 acl_final_prefix="$ac_default_prefix"
9520 else
9521 acl_final_prefix="$prefix"
9522 fi
9523 if test "X$exec_prefix" = "XNONE"; then
9524 acl_final_exec_prefix='${prefix}'
9525 else
9526 acl_final_exec_prefix="$exec_prefix"
9527 fi
9528 acl_save_prefix="$prefix"
9529 prefix="$acl_final_prefix"
9530 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9531 prefix="$acl_save_prefix"
9532
9533
9534 # Check whether --with-gnu-ld was given.
9535 if test "${with_gnu_ld+set}" = set; then :
9536 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9537 else
9538 with_gnu_ld=no
9539 fi
9540
9541 # Prepare PATH_SEPARATOR.
9542 # The user is always right.
9543 if test "${PATH_SEPARATOR+set}" != set; then
9544 echo "#! /bin/sh" >conf$$.sh
9545 echo "exit 0" >>conf$$.sh
9546 chmod +x conf$$.sh
9547 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9548 PATH_SEPARATOR=';'
9549 else
9550 PATH_SEPARATOR=:
9551 fi
9552 rm -f conf$$.sh
9553 fi
9554 ac_prog=ld
9555 if test "$GCC" = yes; then
9556 # Check if gcc -print-prog-name=ld gives a path.
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9558 $as_echo_n "checking for ld used by GCC... " >&6; }
9559 case $host in
9560 *-*-mingw*)
9561 # gcc leaves a trailing carriage return which upsets mingw
9562 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9563 *)
9564 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9565 esac
9566 case $ac_prog in
9567 # Accept absolute paths.
9568 [\\/]* | [A-Za-z]:[\\/]*)
9569 re_direlt='/[^/][^/]*/\.\./'
9570 # Canonicalize the path of ld
9571 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9572 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9573 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9574 done
9575 test -z "$LD" && LD="$ac_prog"
9576 ;;
9577 "")
9578 # If it fails, then pretend we aren't using GCC.
9579 ac_prog=ld
9580 ;;
9581 *)
9582 # If it is relative, then search for the first ld in PATH.
9583 with_gnu_ld=unknown
9584 ;;
9585 esac
9586 elif test "$with_gnu_ld" = yes; then
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9588 $as_echo_n "checking for GNU ld... " >&6; }
9589 else
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9591 $as_echo_n "checking for non-GNU ld... " >&6; }
9592 fi
9593 if test "${acl_cv_path_LD+set}" = set; then :
9594 $as_echo_n "(cached) " >&6
9595 else
9596 if test -z "$LD"; then
9597 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9598 for ac_dir in $PATH; do
9599 test -z "$ac_dir" && ac_dir=.
9600 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9601 acl_cv_path_LD="$ac_dir/$ac_prog"
9602 # Check to see if the program is GNU ld. I'd rather use --version,
9603 # but apparently some GNU ld's only accept -v.
9604 # Break only if it was the GNU/non-GNU ld that we prefer.
9605 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9606 test "$with_gnu_ld" != no && break
9607 else
9608 test "$with_gnu_ld" != yes && break
9609 fi
9610 fi
9611 done
9612 IFS="$ac_save_ifs"
9613 else
9614 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9615 fi
9616 fi
9617
9618 LD="$acl_cv_path_LD"
9619 if test -n "$LD"; then
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9621 $as_echo "$LD" >&6; }
9622 else
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9624 $as_echo "no" >&6; }
9625 fi
9626 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9628 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9629 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9630 $as_echo_n "(cached) " >&6
9631 else
9632 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9633 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9634 acl_cv_prog_gnu_ld=yes
9635 else
9636 acl_cv_prog_gnu_ld=no
9637 fi
9638 fi
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9640 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9641 with_gnu_ld=$acl_cv_prog_gnu_ld
9642
9643
9644
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9646 $as_echo_n "checking for shared library run path origin... " >&6; }
9647 if test "${acl_cv_rpath+set}" = set; then :
9648 $as_echo_n "(cached) " >&6
9649 else
9650
9651 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9652 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9653 . ./conftest.sh
9654 rm -f ./conftest.sh
9655 acl_cv_rpath=done
9656
9657 fi
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9659 $as_echo "$acl_cv_rpath" >&6; }
9660 wl="$acl_cv_wl"
9661 libext="$acl_cv_libext"
9662 shlibext="$acl_cv_shlibext"
9663 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9664 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9665 hardcode_direct="$acl_cv_hardcode_direct"
9666 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9667 # Check whether --enable-rpath was given.
9668 if test "${enable_rpath+set}" = set; then :
9669 enableval=$enable_rpath; :
9670 else
9671 enable_rpath=yes
9672 fi
9673
9674
9675
9676
9677
9678
9679
9680
9681 use_additional=yes
9682
9683 acl_save_prefix="$prefix"
9684 prefix="$acl_final_prefix"
9685 acl_save_exec_prefix="$exec_prefix"
9686 exec_prefix="$acl_final_exec_prefix"
9687
9688 eval additional_includedir=\"$includedir\"
9689 eval additional_libdir=\"$libdir\"
9690
9691 exec_prefix="$acl_save_exec_prefix"
9692 prefix="$acl_save_prefix"
9693
9694
9695 # Check whether --with-libiconv-prefix was given.
9696 if test "${with_libiconv_prefix+set}" = set; then :
9697 withval=$with_libiconv_prefix;
9698 if test "X$withval" = "Xno"; then
9699 use_additional=no
9700 else
9701 if test "X$withval" = "X"; then
9702
9703 acl_save_prefix="$prefix"
9704 prefix="$acl_final_prefix"
9705 acl_save_exec_prefix="$exec_prefix"
9706 exec_prefix="$acl_final_exec_prefix"
9707
9708 eval additional_includedir=\"$includedir\"
9709 eval additional_libdir=\"$libdir\"
9710
9711 exec_prefix="$acl_save_exec_prefix"
9712 prefix="$acl_save_prefix"
9713
9714 else
9715 additional_includedir="$withval/include"
9716 additional_libdir="$withval/lib"
9717 fi
9718 fi
9719
9720 fi
9721
9722 LIBICONV=
9723 LTLIBICONV=
9724 INCICONV=
9725 rpathdirs=
9726 ltrpathdirs=
9727 names_already_handled=
9728 names_next_round='iconv '
9729 while test -n "$names_next_round"; do
9730 names_this_round="$names_next_round"
9731 names_next_round=
9732 for name in $names_this_round; do
9733 already_handled=
9734 for n in $names_already_handled; do
9735 if test "$n" = "$name"; then
9736 already_handled=yes
9737 break
9738 fi
9739 done
9740 if test -z "$already_handled"; then
9741 names_already_handled="$names_already_handled $name"
9742 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9743 eval value=\"\$HAVE_LIB$uppername\"
9744 if test -n "$value"; then
9745 if test "$value" = yes; then
9746 eval value=\"\$LIB$uppername\"
9747 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9748 eval value=\"\$LTLIB$uppername\"
9749 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9750 else
9751 :
9752 fi
9753 else
9754 found_dir=
9755 found_la=
9756 found_so=
9757 found_a=
9758 if test $use_additional = yes; then
9759 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9760 found_dir="$additional_libdir"
9761 found_so="$additional_libdir/lib$name.$shlibext"
9762 if test -f "$additional_libdir/lib$name.la"; then
9763 found_la="$additional_libdir/lib$name.la"
9764 fi
9765 else
9766 if test -f "$additional_libdir/lib$name.$libext"; then
9767 found_dir="$additional_libdir"
9768 found_a="$additional_libdir/lib$name.$libext"
9769 if test -f "$additional_libdir/lib$name.la"; then
9770 found_la="$additional_libdir/lib$name.la"
9771 fi
9772 fi
9773 fi
9774 fi
9775 if test "X$found_dir" = "X"; then
9776 for x in $LDFLAGS $LTLIBICONV; do
9777
9778 acl_save_prefix="$prefix"
9779 prefix="$acl_final_prefix"
9780 acl_save_exec_prefix="$exec_prefix"
9781 exec_prefix="$acl_final_exec_prefix"
9782 eval x=\"$x\"
9783 exec_prefix="$acl_save_exec_prefix"
9784 prefix="$acl_save_prefix"
9785
9786 case "$x" in
9787 -L*)
9788 dir=`echo "X$x" | sed -e 's/^X-L//'`
9789 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9790 found_dir="$dir"
9791 found_so="$dir/lib$name.$shlibext"
9792 if test -f "$dir/lib$name.la"; then
9793 found_la="$dir/lib$name.la"
9794 fi
9795 else
9796 if test -f "$dir/lib$name.$libext"; then
9797 found_dir="$dir"
9798 found_a="$dir/lib$name.$libext"
9799 if test -f "$dir/lib$name.la"; then
9800 found_la="$dir/lib$name.la"
9801 fi
9802 fi
9803 fi
9804 ;;
9805 esac
9806 if test "X$found_dir" != "X"; then
9807 break
9808 fi
9809 done
9810 fi
9811 if test "X$found_dir" != "X"; then
9812 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9813 if test "X$found_so" != "X"; then
9814 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9815 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9816 else
9817 haveit=
9818 for x in $ltrpathdirs; do
9819 if test "X$x" = "X$found_dir"; then
9820 haveit=yes
9821 break
9822 fi
9823 done
9824 if test -z "$haveit"; then
9825 ltrpathdirs="$ltrpathdirs $found_dir"
9826 fi
9827 if test "$hardcode_direct" = yes; then
9828 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9829 else
9830 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9831 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9832 haveit=
9833 for x in $rpathdirs; do
9834 if test "X$x" = "X$found_dir"; then
9835 haveit=yes
9836 break
9837 fi
9838 done
9839 if test -z "$haveit"; then
9840 rpathdirs="$rpathdirs $found_dir"
9841 fi
9842 else
9843 haveit=
9844 for x in $LDFLAGS $LIBICONV; do
9845
9846 acl_save_prefix="$prefix"
9847 prefix="$acl_final_prefix"
9848 acl_save_exec_prefix="$exec_prefix"
9849 exec_prefix="$acl_final_exec_prefix"
9850 eval x=\"$x\"
9851 exec_prefix="$acl_save_exec_prefix"
9852 prefix="$acl_save_prefix"
9853
9854 if test "X$x" = "X-L$found_dir"; then
9855 haveit=yes
9856 break
9857 fi
9858 done
9859 if test -z "$haveit"; then
9860 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9861 fi
9862 if test "$hardcode_minus_L" != no; then
9863 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9864 else
9865 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9866 fi
9867 fi
9868 fi
9869 fi
9870 else
9871 if test "X$found_a" != "X"; then
9872 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9873 else
9874 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9875 fi
9876 fi
9877 additional_includedir=
9878 case "$found_dir" in
9879 */lib | */lib/)
9880 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9881 additional_includedir="$basedir/include"
9882 ;;
9883 esac
9884 if test "X$additional_includedir" != "X"; then
9885 if test "X$additional_includedir" != "X/usr/include"; then
9886 haveit=
9887 if test "X$additional_includedir" = "X/usr/local/include"; then
9888 if test -n "$GCC"; then
9889 case $host_os in
9890 linux*) haveit=yes;;
9891 esac
9892 fi
9893 fi
9894 if test -z "$haveit"; then
9895 for x in $CPPFLAGS $INCICONV; do
9896
9897 acl_save_prefix="$prefix"
9898 prefix="$acl_final_prefix"
9899 acl_save_exec_prefix="$exec_prefix"
9900 exec_prefix="$acl_final_exec_prefix"
9901 eval x=\"$x\"
9902 exec_prefix="$acl_save_exec_prefix"
9903 prefix="$acl_save_prefix"
9904
9905 if test "X$x" = "X-I$additional_includedir"; then
9906 haveit=yes
9907 break
9908 fi
9909 done
9910 if test -z "$haveit"; then
9911 if test -d "$additional_includedir"; then
9912 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9913 fi
9914 fi
9915 fi
9916 fi
9917 fi
9918 if test -n "$found_la"; then
9919 save_libdir="$libdir"
9920 case "$found_la" in
9921 */* | *\\*) . "$found_la" ;;
9922 *) . "./$found_la" ;;
9923 esac
9924 libdir="$save_libdir"
9925 for dep in $dependency_libs; do
9926 case "$dep" in
9927 -L*)
9928 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9929 if test "X$additional_libdir" != "X/usr/lib"; then
9930 haveit=
9931 if test "X$additional_libdir" = "X/usr/local/lib"; then
9932 if test -n "$GCC"; then
9933 case $host_os in
9934 linux*) haveit=yes;;
9935 esac
9936 fi
9937 fi
9938 if test -z "$haveit"; then
9939 haveit=
9940 for x in $LDFLAGS $LIBICONV; do
9941
9942 acl_save_prefix="$prefix"
9943 prefix="$acl_final_prefix"
9944 acl_save_exec_prefix="$exec_prefix"
9945 exec_prefix="$acl_final_exec_prefix"
9946 eval x=\"$x\"
9947 exec_prefix="$acl_save_exec_prefix"
9948 prefix="$acl_save_prefix"
9949
9950 if test "X$x" = "X-L$additional_libdir"; then
9951 haveit=yes
9952 break
9953 fi
9954 done
9955 if test -z "$haveit"; then
9956 if test -d "$additional_libdir"; then
9957 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9958 fi
9959 fi
9960 haveit=
9961 for x in $LDFLAGS $LTLIBICONV; 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 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9979 fi
9980 fi
9981 fi
9982 fi
9983 ;;
9984 -R*)
9985 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9986 if test "$enable_rpath" != no; then
9987 haveit=
9988 for x in $rpathdirs; do
9989 if test "X$x" = "X$dir"; then
9990 haveit=yes
9991 break
9992 fi
9993 done
9994 if test -z "$haveit"; then
9995 rpathdirs="$rpathdirs $dir"
9996 fi
9997 haveit=
9998 for x in $ltrpathdirs; do
9999 if test "X$x" = "X$dir"; then
10000 haveit=yes
10001 break
10002 fi
10003 done
10004 if test -z "$haveit"; then
10005 ltrpathdirs="$ltrpathdirs $dir"
10006 fi
10007 fi
10008 ;;
10009 -l*)
10010 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10011 ;;
10012 *.la)
10013 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10014 ;;
10015 *)
10016 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10017 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10018 ;;
10019 esac
10020 done
10021 fi
10022 else
10023 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10024 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10025 fi
10026 fi
10027 fi
10028 done
10029 done
10030 if test "X$rpathdirs" != "X"; then
10031 if test -n "$hardcode_libdir_separator"; then
10032 alldirs=
10033 for found_dir in $rpathdirs; do
10034 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10035 done
10036 acl_save_libdir="$libdir"
10037 libdir="$alldirs"
10038 eval flag=\"$hardcode_libdir_flag_spec\"
10039 libdir="$acl_save_libdir"
10040 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10041 else
10042 for found_dir in $rpathdirs; do
10043 acl_save_libdir="$libdir"
10044 libdir="$found_dir"
10045 eval flag=\"$hardcode_libdir_flag_spec\"
10046 libdir="$acl_save_libdir"
10047 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10048 done
10049 fi
10050 fi
10051 if test "X$ltrpathdirs" != "X"; then
10052 for found_dir in $ltrpathdirs; do
10053 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10054 done
10055 fi
10056
10057
10058 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10059 ac_ext=cpp
10060 ac_cpp='$CXXCPP $CPPFLAGS'
10061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10064
10065
10066
10067
10068
10069
10070 am_save_CPPFLAGS="$CPPFLAGS"
10071
10072 for element in $INCICONV; do
10073 haveit=
10074 for x in $CPPFLAGS; do
10075
10076 acl_save_prefix="$prefix"
10077 prefix="$acl_final_prefix"
10078 acl_save_exec_prefix="$exec_prefix"
10079 exec_prefix="$acl_final_exec_prefix"
10080 eval x=\"$x\"
10081 exec_prefix="$acl_save_exec_prefix"
10082 prefix="$acl_save_prefix"
10083
10084 if test "X$x" = "X$element"; then
10085 haveit=yes
10086 break
10087 fi
10088 done
10089 if test -z "$haveit"; then
10090 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10091 fi
10092 done
10093
10094
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10096 $as_echo_n "checking for iconv... " >&6; }
10097 if test "${am_cv_func_iconv+set}" = set; then :
10098 $as_echo_n "(cached) " >&6
10099 else
10100
10101 am_cv_func_iconv="no, consider installing GNU libiconv"
10102 am_cv_lib_iconv=no
10103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104 /* end confdefs.h. */
10105 #include <stdlib.h>
10106 #include <iconv.h>
10107 int
10108 main ()
10109 {
10110 iconv_t cd = iconv_open("","");
10111 iconv(cd,NULL,NULL,NULL,NULL);
10112 iconv_close(cd);
10113 ;
10114 return 0;
10115 }
10116 _ACEOF
10117 if ac_fn_cxx_try_link "$LINENO"; then :
10118 am_cv_func_iconv=yes
10119 fi
10120 rm -f core conftest.err conftest.$ac_objext \
10121 conftest$ac_exeext conftest.$ac_ext
10122 if test "$am_cv_func_iconv" != yes; then
10123 am_save_LIBS="$LIBS"
10124 LIBS="$LIBS $LIBICONV"
10125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126 /* end confdefs.h. */
10127 #include <stdlib.h>
10128 #include <iconv.h>
10129 int
10130 main ()
10131 {
10132 iconv_t cd = iconv_open("","");
10133 iconv(cd,NULL,NULL,NULL,NULL);
10134 iconv_close(cd);
10135 ;
10136 return 0;
10137 }
10138 _ACEOF
10139 if ac_fn_cxx_try_link "$LINENO"; then :
10140 am_cv_lib_iconv=yes
10141 am_cv_func_iconv=yes
10142 fi
10143 rm -f core conftest.err conftest.$ac_objext \
10144 conftest$ac_exeext conftest.$ac_ext
10145 LIBS="$am_save_LIBS"
10146 fi
10147
10148 fi
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10150 $as_echo "$am_cv_func_iconv" >&6; }
10151 if test "$am_cv_func_iconv" = yes; then
10152
10153 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10154
10155 fi
10156 if test "$am_cv_lib_iconv" = yes; then
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10158 $as_echo_n "checking how to link with libiconv... " >&6; }
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10160 $as_echo "$LIBICONV" >&6; }
10161 else
10162 CPPFLAGS="$am_save_CPPFLAGS"
10163 LIBICONV=
10164 LTLIBICONV=
10165 fi
10166
10167
10168
10169 if test "$am_cv_func_iconv" = yes; then
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10171 $as_echo_n "checking for iconv declaration... " >&6; }
10172 if test "${am_cv_proto_iconv+set}" = set; then :
10173 $as_echo_n "(cached) " >&6
10174 else
10175
10176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10177 /* end confdefs.h. */
10178
10179 #include <stdlib.h>
10180 #include <iconv.h>
10181 extern
10182 #ifdef __cplusplus
10183 "C"
10184 #endif
10185 #if defined(__STDC__) || defined(__cplusplus)
10186 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10187 #else
10188 size_t iconv();
10189 #endif
10190
10191 int
10192 main ()
10193 {
10194
10195 ;
10196 return 0;
10197 }
10198 _ACEOF
10199 if ac_fn_cxx_try_compile "$LINENO"; then :
10200 am_cv_proto_iconv_arg1=""
10201 else
10202 am_cv_proto_iconv_arg1="const"
10203 fi
10204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10205 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);"
10206 fi
10207
10208 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10210 }$am_cv_proto_iconv" >&5
10211 $as_echo "${ac_t:-
10212 }$am_cv_proto_iconv" >&6; }
10213
10214 cat >>confdefs.h <<_ACEOF
10215 #define ICONV_CONST $am_cv_proto_iconv_arg1
10216 _ACEOF
10217
10218 fi
10219
10220 ac_ext=c
10221 ac_cpp='$CPP $CPPFLAGS'
10222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10225
10226 else
10227
10228
10229
10230
10231
10232 am_save_CPPFLAGS="$CPPFLAGS"
10233
10234 for element in $INCICONV; do
10235 haveit=
10236 for x in $CPPFLAGS; do
10237
10238 acl_save_prefix="$prefix"
10239 prefix="$acl_final_prefix"
10240 acl_save_exec_prefix="$exec_prefix"
10241 exec_prefix="$acl_final_exec_prefix"
10242 eval x=\"$x\"
10243 exec_prefix="$acl_save_exec_prefix"
10244 prefix="$acl_save_prefix"
10245
10246 if test "X$x" = "X$element"; then
10247 haveit=yes
10248 break
10249 fi
10250 done
10251 if test -z "$haveit"; then
10252 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10253 fi
10254 done
10255
10256
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10258 $as_echo_n "checking for iconv... " >&6; }
10259 if test "${am_cv_func_iconv+set}" = set; then :
10260 $as_echo_n "(cached) " >&6
10261 else
10262
10263 am_cv_func_iconv="no, consider installing GNU libiconv"
10264 am_cv_lib_iconv=no
10265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10266 /* end confdefs.h. */
10267 #include <stdlib.h>
10268 #include <iconv.h>
10269 int
10270 main ()
10271 {
10272 iconv_t cd = iconv_open("","");
10273 iconv(cd,NULL,NULL,NULL,NULL);
10274 iconv_close(cd);
10275 ;
10276 return 0;
10277 }
10278 _ACEOF
10279 if ac_fn_c_try_link "$LINENO"; then :
10280 am_cv_func_iconv=yes
10281 fi
10282 rm -f core conftest.err conftest.$ac_objext \
10283 conftest$ac_exeext conftest.$ac_ext
10284 if test "$am_cv_func_iconv" != yes; then
10285 am_save_LIBS="$LIBS"
10286 LIBS="$LIBS $LIBICONV"
10287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10288 /* end confdefs.h. */
10289 #include <stdlib.h>
10290 #include <iconv.h>
10291 int
10292 main ()
10293 {
10294 iconv_t cd = iconv_open("","");
10295 iconv(cd,NULL,NULL,NULL,NULL);
10296 iconv_close(cd);
10297 ;
10298 return 0;
10299 }
10300 _ACEOF
10301 if ac_fn_c_try_link "$LINENO"; then :
10302 am_cv_lib_iconv=yes
10303 am_cv_func_iconv=yes
10304 fi
10305 rm -f core conftest.err conftest.$ac_objext \
10306 conftest$ac_exeext conftest.$ac_ext
10307 LIBS="$am_save_LIBS"
10308 fi
10309
10310 fi
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10312 $as_echo "$am_cv_func_iconv" >&6; }
10313 if test "$am_cv_func_iconv" = yes; then
10314
10315 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10316
10317 fi
10318 if test "$am_cv_lib_iconv" = yes; then
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10320 $as_echo_n "checking how to link with libiconv... " >&6; }
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10322 $as_echo "$LIBICONV" >&6; }
10323 else
10324 CPPFLAGS="$am_save_CPPFLAGS"
10325 LIBICONV=
10326 LTLIBICONV=
10327 fi
10328
10329
10330
10331 if test "$am_cv_func_iconv" = yes; then
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10333 $as_echo_n "checking for iconv declaration... " >&6; }
10334 if test "${am_cv_proto_iconv+set}" = set; then :
10335 $as_echo_n "(cached) " >&6
10336 else
10337
10338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10339 /* end confdefs.h. */
10340
10341 #include <stdlib.h>
10342 #include <iconv.h>
10343 extern
10344 #ifdef __cplusplus
10345 "C"
10346 #endif
10347 #if defined(__STDC__) || defined(__cplusplus)
10348 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10349 #else
10350 size_t iconv();
10351 #endif
10352
10353 int
10354 main ()
10355 {
10356
10357 ;
10358 return 0;
10359 }
10360 _ACEOF
10361 if ac_fn_c_try_compile "$LINENO"; then :
10362 am_cv_proto_iconv_arg1=""
10363 else
10364 am_cv_proto_iconv_arg1="const"
10365 fi
10366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10367 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);"
10368 fi
10369
10370 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10372 }$am_cv_proto_iconv" >&5
10373 $as_echo "${ac_t:-
10374 }$am_cv_proto_iconv" >&6; }
10375
10376 cat >>confdefs.h <<_ACEOF
10377 #define ICONV_CONST $am_cv_proto_iconv_arg1
10378 _ACEOF
10379
10380 fi
10381
10382 fi
10383
10384 # Until we have in-tree GNU iconv:
10385 LIBICONV_DEP=
10386
10387
10388
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10390 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10391 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10392 $as_echo_n "(cached) " >&6
10393 else
10394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10395 /* end confdefs.h. */
10396 #include <locale.h>
10397 int
10398 main ()
10399 {
10400 return LC_MESSAGES
10401 ;
10402 return 0;
10403 }
10404 _ACEOF
10405 if ac_fn_c_try_link "$LINENO"; then :
10406 am_cv_val_LC_MESSAGES=yes
10407 else
10408 am_cv_val_LC_MESSAGES=no
10409 fi
10410 rm -f core conftest.err conftest.$ac_objext \
10411 conftest$ac_exeext conftest.$ac_ext
10412 fi
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10414 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10415 if test $am_cv_val_LC_MESSAGES = yes; then
10416
10417 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10418
10419 fi
10420
10421
10422
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10424 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10425 if test "${am_cv_langinfo_codeset+set}" = set; then :
10426 $as_echo_n "(cached) " >&6
10427 else
10428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429 /* end confdefs.h. */
10430 #include <langinfo.h>
10431 int
10432 main ()
10433 {
10434 char* cs = nl_langinfo(CODESET);
10435 ;
10436 return 0;
10437 }
10438 _ACEOF
10439 if ac_fn_c_try_link "$LINENO"; then :
10440 am_cv_langinfo_codeset=yes
10441 else
10442 am_cv_langinfo_codeset=no
10443 fi
10444 rm -f core conftest.err conftest.$ac_objext \
10445 conftest$ac_exeext conftest.$ac_ext
10446
10447 fi
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10449 $as_echo "$am_cv_langinfo_codeset" >&6; }
10450 if test $am_cv_langinfo_codeset = yes; then
10451
10452 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10453
10454 fi
10455
10456
10457 # We will need to find libiberty.h and ansidecl.h
10458 saved_CFLAGS="$CFLAGS"
10459 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10460 saved_CXXFLAGS="$CXXFLAGS"
10461 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10462 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10463 strsignal strstr stpcpy strverscmp \
10464 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10465 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
10466 do
10467 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10469 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10470 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10471 $as_echo_n "(cached) " >&6
10472 else
10473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10474 /* end confdefs.h. */
10475 #undef $ac_tr_decl
10476 #define $ac_tr_decl 1
10477
10478 #include "ansidecl.h"
10479 #include "system.h"
10480
10481 int
10482 main ()
10483 {
10484 #ifndef $ac_func
10485 char *(*pfn) = (char *(*)) $ac_func ;
10486 #endif
10487 ;
10488 return 0;
10489 }
10490 _ACEOF
10491 if ac_fn_c_try_compile "$LINENO"; then :
10492 eval "gcc_cv_have_decl_$ac_func=yes"
10493 else
10494 eval "gcc_cv_have_decl_$ac_func=no"
10495 fi
10496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10497 fi
10498
10499 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10501 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10502 #define $ac_tr_decl 1
10503 _ACEOF
10504
10505 else
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10507 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10508 #define $ac_tr_decl 0
10509 _ACEOF
10510
10511 fi
10512
10513 done
10514
10515
10516 for ac_func in getrlimit setrlimit getrusage
10517 do
10518 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10520 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10521 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10522 $as_echo_n "(cached) " >&6
10523 else
10524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525 /* end confdefs.h. */
10526 #undef $ac_tr_decl
10527 #define $ac_tr_decl 1
10528
10529 #include "ansidecl.h"
10530 #include "system.h"
10531 #ifdef HAVE_SYS_RESOURCE_H
10532 #include <sys/resource.h>
10533 #endif
10534
10535
10536 int
10537 main ()
10538 {
10539 #ifndef $ac_func
10540 char *(*pfn) = (char *(*)) $ac_func ;
10541 #endif
10542 ;
10543 return 0;
10544 }
10545 _ACEOF
10546 if ac_fn_c_try_compile "$LINENO"; then :
10547 eval "gcc_cv_have_decl_$ac_func=yes"
10548 else
10549 eval "gcc_cv_have_decl_$ac_func=no"
10550 fi
10551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10552 fi
10553
10554 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10556 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10557 #define $ac_tr_decl 1
10558 _ACEOF
10559
10560 else
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10563 #define $ac_tr_decl 0
10564 _ACEOF
10565
10566 fi
10567
10568 done
10569
10570
10571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10572 /* end confdefs.h. */
10573
10574 #include "ansidecl.h"
10575 #include "system.h"
10576 #ifdef HAVE_SYS_RESOURCE_H
10577 #include <sys/resource.h>
10578 #endif
10579
10580 int
10581 main ()
10582 {
10583 rlim_t l = 0;
10584 ;
10585 return 0;
10586 }
10587 _ACEOF
10588 if ac_fn_c_try_compile "$LINENO"; then :
10589
10590 else
10591
10592 $as_echo "#define rlim_t long" >>confdefs.h
10593
10594 fi
10595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10596
10597 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10598 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10599 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10600 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10601 for ac_func in ldgetname
10602 do
10603 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10605 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10606 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10607 $as_echo_n "(cached) " >&6
10608 else
10609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10610 /* end confdefs.h. */
10611 #undef $ac_tr_decl
10612 #define $ac_tr_decl 1
10613
10614 #include "ansidecl.h"
10615 #include "system.h"
10616 #ifdef HAVE_LDFCN_H
10617 #undef FREAD
10618 #undef FWRITE
10619 #include <ldfcn.h>
10620 #endif
10621
10622
10623 int
10624 main ()
10625 {
10626 #ifndef $ac_func
10627 char *(*pfn) = (char *(*)) $ac_func ;
10628 #endif
10629 ;
10630 return 0;
10631 }
10632 _ACEOF
10633 if ac_fn_c_try_compile "$LINENO"; then :
10634 eval "gcc_cv_have_decl_$ac_func=yes"
10635 else
10636 eval "gcc_cv_have_decl_$ac_func=no"
10637 fi
10638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10639 fi
10640
10641 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10643 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10644 #define $ac_tr_decl 1
10645 _ACEOF
10646
10647 else
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10649 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10650 #define $ac_tr_decl 0
10651 _ACEOF
10652
10653 fi
10654
10655 done
10656
10657
10658 for ac_func in times
10659 do
10660 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10662 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10663 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10664 $as_echo_n "(cached) " >&6
10665 else
10666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667 /* end confdefs.h. */
10668 #undef $ac_tr_decl
10669 #define $ac_tr_decl 1
10670
10671 #include "ansidecl.h"
10672 #include "system.h"
10673 #ifdef HAVE_SYS_TIMES_H
10674 #include <sys/times.h>
10675 #endif
10676
10677
10678 int
10679 main ()
10680 {
10681 #ifndef $ac_func
10682 char *(*pfn) = (char *(*)) $ac_func ;
10683 #endif
10684 ;
10685 return 0;
10686 }
10687 _ACEOF
10688 if ac_fn_c_try_compile "$LINENO"; then :
10689 eval "gcc_cv_have_decl_$ac_func=yes"
10690 else
10691 eval "gcc_cv_have_decl_$ac_func=no"
10692 fi
10693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10694 fi
10695
10696 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10698 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10699 #define $ac_tr_decl 1
10700 _ACEOF
10701
10702 else
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10704 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10705 #define $ac_tr_decl 0
10706 _ACEOF
10707
10708 fi
10709
10710 done
10711
10712
10713 for ac_func in sigaltstack
10714 do
10715 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10717 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10718 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10719 $as_echo_n "(cached) " >&6
10720 else
10721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10722 /* end confdefs.h. */
10723 #undef $ac_tr_decl
10724 #define $ac_tr_decl 1
10725
10726 #include "ansidecl.h"
10727 #include "system.h"
10728 #include <signal.h>
10729
10730
10731 int
10732 main ()
10733 {
10734 #ifndef $ac_func
10735 char *(*pfn) = (char *(*)) $ac_func ;
10736 #endif
10737 ;
10738 return 0;
10739 }
10740 _ACEOF
10741 if ac_fn_c_try_compile "$LINENO"; then :
10742 eval "gcc_cv_have_decl_$ac_func=yes"
10743 else
10744 eval "gcc_cv_have_decl_$ac_func=no"
10745 fi
10746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10747 fi
10748
10749 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10751 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10752 #define $ac_tr_decl 1
10753 _ACEOF
10754
10755 else
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10757 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10758 #define $ac_tr_decl 0
10759 _ACEOF
10760
10761 fi
10762
10763 done
10764
10765
10766 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10767 # prototype.
10768 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10769 ac_ext=cpp
10770 ac_cpp='$CXXCPP $CPPFLAGS'
10771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10774
10775 for ac_func in madvise
10776 do
10777 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10779 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10780 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10781 $as_echo_n "(cached) " >&6
10782 else
10783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10784 /* end confdefs.h. */
10785 #undef $ac_tr_decl
10786 #define $ac_tr_decl 1
10787
10788 #include "ansidecl.h"
10789 #include "system.h"
10790
10791
10792 int
10793 main ()
10794 {
10795 #ifndef $ac_func
10796 char *(*pfn) = (char *(*)) $ac_func ;
10797 #endif
10798 ;
10799 return 0;
10800 }
10801 _ACEOF
10802 if ac_fn_cxx_try_compile "$LINENO"; then :
10803 eval "gcc_cv_have_decl_$ac_func=yes"
10804 else
10805 eval "gcc_cv_have_decl_$ac_func=no"
10806 fi
10807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10808 fi
10809
10810 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10812 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10813 #define $ac_tr_decl 1
10814 _ACEOF
10815
10816 else
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10818 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10819 #define $ac_tr_decl 0
10820 _ACEOF
10821
10822 fi
10823
10824 done
10825
10826 ac_ext=c
10827 ac_cpp='$CPP $CPPFLAGS'
10828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10831
10832 else
10833 for ac_func in madvise
10834 do
10835 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10837 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10838 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10839 $as_echo_n "(cached) " >&6
10840 else
10841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10842 /* end confdefs.h. */
10843 #undef $ac_tr_decl
10844 #define $ac_tr_decl 1
10845
10846 #include "ansidecl.h"
10847 #include "system.h"
10848
10849
10850 int
10851 main ()
10852 {
10853 #ifndef $ac_func
10854 char *(*pfn) = (char *(*)) $ac_func ;
10855 #endif
10856 ;
10857 return 0;
10858 }
10859 _ACEOF
10860 if ac_fn_c_try_compile "$LINENO"; then :
10861 eval "gcc_cv_have_decl_$ac_func=yes"
10862 else
10863 eval "gcc_cv_have_decl_$ac_func=no"
10864 fi
10865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10866 fi
10867
10868 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10870 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10871 #define $ac_tr_decl 1
10872 _ACEOF
10873
10874 else
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10876 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10877 #define $ac_tr_decl 0
10878 _ACEOF
10879
10880 fi
10881
10882 done
10883
10884
10885 fi
10886
10887 # More time-related stuff.
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10889 $as_echo_n "checking for struct tms... " >&6; }
10890 if test "${ac_cv_struct_tms+set}" = set; then :
10891 $as_echo_n "(cached) " >&6
10892 else
10893
10894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895 /* end confdefs.h. */
10896
10897 #include "ansidecl.h"
10898 #include "system.h"
10899 #ifdef HAVE_SYS_TIMES_H
10900 #include <sys/times.h>
10901 #endif
10902
10903 int
10904 main ()
10905 {
10906 struct tms tms;
10907 ;
10908 return 0;
10909 }
10910 _ACEOF
10911 if ac_fn_c_try_compile "$LINENO"; then :
10912 ac_cv_struct_tms=yes
10913 else
10914 ac_cv_struct_tms=no
10915 fi
10916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10917 fi
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10919 $as_echo "$ac_cv_struct_tms" >&6; }
10920 if test $ac_cv_struct_tms = yes; then
10921
10922 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10923
10924 fi
10925
10926 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10927 # revisit after autoconf 2.50.
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10929 $as_echo_n "checking for clock_t... " >&6; }
10930 if test "${gcc_cv_type_clock_t+set}" = set; then :
10931 $as_echo_n "(cached) " >&6
10932 else
10933
10934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10935 /* end confdefs.h. */
10936
10937 #include "ansidecl.h"
10938 #include "system.h"
10939
10940 int
10941 main ()
10942 {
10943 clock_t x;
10944 ;
10945 return 0;
10946 }
10947 _ACEOF
10948 if ac_fn_c_try_compile "$LINENO"; then :
10949 gcc_cv_type_clock_t=yes
10950 else
10951 gcc_cv_type_clock_t=no
10952 fi
10953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10954 fi
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10956 $as_echo "$gcc_cv_type_clock_t" >&6; }
10957 if test $gcc_cv_type_clock_t = yes; then
10958
10959 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10960
10961 fi
10962
10963 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10964 CFLAGS="$saved_CFLAGS"
10965 CXXFLAGS="$saved_CXXFLAGS"
10966
10967 # mkdir takes a single argument on some systems.
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10969 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10970 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10971 $as_echo_n "(cached) " >&6
10972 else
10973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10974 /* end confdefs.h. */
10975
10976 #include <sys/types.h>
10977 #ifdef HAVE_SYS_STAT_H
10978 # include <sys/stat.h>
10979 #endif
10980 #ifdef HAVE_UNISTD_H
10981 # include <unistd.h>
10982 #endif
10983 #ifdef HAVE_DIRECT_H
10984 # include <direct.h>
10985 #endif
10986 int
10987 main ()
10988 {
10989 mkdir ("foo", 0);
10990 ;
10991 return 0;
10992 }
10993 _ACEOF
10994 if ac_fn_c_try_compile "$LINENO"; then :
10995 gcc_cv_mkdir_takes_one_arg=no
10996 else
10997 gcc_cv_mkdir_takes_one_arg=yes
10998 fi
10999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11000 fi
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11002 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11003 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11004
11005 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11006
11007 fi
11008
11009
11010 # File extensions
11011 manext='.1'
11012 objext='.o'
11013
11014
11015
11016 # With Setjmp/Longjmp based exception handling.
11017 # Check whether --enable-sjlj-exceptions was given.
11018 if test "${enable_sjlj_exceptions+set}" = set; then :
11019 enableval=$enable_sjlj_exceptions; case $target in
11020 *-*-hpux10*)
11021 if test $enableval != yes; then
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11023 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11024 enableval=yes
11025 fi
11026 ;;
11027 esac
11028 force_sjlj_exceptions=yes
11029 else
11030 case $target in
11031 *-*-hpux10*)
11032 force_sjlj_exceptions=yes
11033 enableval=yes
11034 ;;
11035 *)
11036 force_sjlj_exceptions=no
11037 ;;
11038 esac
11039 fi
11040
11041 if test $force_sjlj_exceptions = yes; then
11042 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11043
11044 cat >>confdefs.h <<_ACEOF
11045 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11046 _ACEOF
11047
11048 fi
11049
11050 # --------------------------------------------------------
11051 # Build, host, and target specific configuration fragments
11052 # --------------------------------------------------------
11053
11054 # Collect build-machine-specific information.
11055 . ${srcdir}/config.build
11056
11057 # Collect host-machine-specific information.
11058 . ${srcdir}/config.host
11059
11060 target_gtfiles=
11061
11062 # Collect target-machine-specific information.
11063 . ${srcdir}/config.gcc
11064
11065 extra_objs="${host_extra_objs} ${extra_objs}"
11066 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11067
11068 # Default the target-machine variables that were not explicitly set.
11069 if test x"$tm_file" = x
11070 then tm_file=$cpu_type/$cpu_type.h; fi
11071
11072 if test x"$extra_headers" = x
11073 then extra_headers=; fi
11074
11075 if test x$md_file = x
11076 then md_file=$cpu_type/$cpu_type.md; fi
11077
11078 if test x$out_file = x
11079 then out_file=$cpu_type/$cpu_type.c; fi
11080
11081 if test x"$tmake_file" = x
11082 then tmake_file=$cpu_type/t-$cpu_type
11083 fi
11084
11085 # Support --enable-initfini-array.
11086 if test x$enable_initfini_array != xno; then
11087 tm_file="${tm_file} initfini-array.h"
11088 fi
11089
11090 if test x"$dwarf2" = xyes
11091 then tm_file="$tm_file tm-dwarf2.h"
11092 fi
11093
11094 # Say what files are being used for the output code and MD file.
11095 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11096 echo "Using \`$srcdir/config/$md_file' as machine description file."
11097
11098 # If any of the xm_file variables contain nonexistent files, warn
11099 # about them and drop them.
11100
11101 bx=
11102 for x in $build_xm_file; do
11103 if test -f $srcdir/config/$x
11104 then bx="$bx $x"
11105 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11106 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11107 fi
11108 done
11109 build_xm_file="$bx"
11110
11111 hx=
11112 for x in $host_xm_file; do
11113 if test -f $srcdir/config/$x
11114 then hx="$hx $x"
11115 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11116 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11117 fi
11118 done
11119 host_xm_file="$hx"
11120
11121 tx=
11122 for x in $xm_file; do
11123 if test -f $srcdir/config/$x
11124 then tx="$tx $x"
11125 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11126 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11127 fi
11128 done
11129 xm_file="$tx"
11130
11131 count=a
11132 for f in $tm_file; do
11133 count=${count}x
11134 done
11135 if test $count = ax; then
11136 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11137 else
11138 echo "Using the following target machine macro files:"
11139 for f in $tm_file; do
11140 echo " $srcdir/config/$f"
11141 done
11142 fi
11143
11144 if test x$need_64bit_hwint = xyes; then
11145
11146 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11147
11148 fi
11149
11150 if test x$use_long_long_for_widest_fast_int = xyes; then
11151
11152 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11153
11154 fi
11155
11156 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11157
11158 cat >>confdefs.h <<_ACEOF
11159 #define HAVE_GNU_LD $gnu_ld_bool
11160 _ACEOF
11161
11162
11163 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11164
11165 cat >>confdefs.h <<_ACEOF
11166 #define HAVE_GNU_AS $gnu_as_bool
11167 _ACEOF
11168
11169
11170 count=a
11171 for f in $host_xm_file; do
11172 count=${count}x
11173 done
11174 if test $count = a; then
11175 :
11176 elif test $count = ax; then
11177 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11178 else
11179 echo "Using the following host machine macro files:"
11180 for f in $host_xm_file; do
11181 echo " $srcdir/config/$f"
11182 done
11183 fi
11184 echo "Using ${out_host_hook_obj} for host machine hooks."
11185
11186 if test "$host_xm_file" != "$build_xm_file"; then
11187 count=a
11188 for f in $build_xm_file; do
11189 count=${count}x
11190 done
11191 if test $count = a; then
11192 :
11193 elif test $count = ax; then
11194 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11195 else
11196 echo "Using the following build machine macro files:"
11197 for f in $build_xm_file; do
11198 echo " $srcdir/config/$f"
11199 done
11200 fi
11201 fi
11202
11203 if test -n "$configured_native_system_header_dir"; then
11204 native_system_header_dir=$configured_native_system_header_dir
11205 fi
11206 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11207
11208
11209 case ${host} in
11210 powerpc*-*-darwin*)
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11212 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11213 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11214 $as_echo_n "(cached) " >&6
11215 else
11216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11217 /* end confdefs.h. */
11218
11219 #include <sys/cdefs.h>
11220 #include <sys/signal.h>
11221 #include <ucontext.h>
11222 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11223
11224 _ACEOF
11225 if ac_fn_c_try_compile "$LINENO"; then :
11226 gcc_cv_mcontext_underscores=no
11227 else
11228 gcc_cv_mcontext_underscores=yes
11229 fi
11230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11231 fi
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11233 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11234 if test $gcc_cv_mcontext_underscores = yes; then
11235
11236 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11237
11238 fi
11239 ;;
11240 esac
11241
11242 # ---------
11243 # Threading
11244 # ---------
11245
11246 # Check if a valid thread package
11247 case ${enable_threads} in
11248 "" | no)
11249 # No threads
11250 target_thread_file='single'
11251 ;;
11252 yes)
11253 # default
11254 target_thread_file='single'
11255 ;;
11256 aix | dce | lynx | mipssde | posix | rtems | \
11257 single | tpf | vxworks | win32)
11258 target_thread_file=${enable_threads}
11259 ;;
11260 *)
11261 echo "${enable_threads} is an unknown thread package" 1>&2
11262 exit 1
11263 ;;
11264 esac
11265
11266 if test x${thread_file} = x; then
11267 # No thread file set by target-specific clauses in config.gcc,
11268 # so use file chosen by default logic above
11269 thread_file=${target_thread_file}
11270 fi
11271
11272 # --------
11273 # UNSORTED
11274 # --------
11275
11276 use_cxa_atexit=no
11277 if test x$enable___cxa_atexit = xyes || \
11278 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11279 if test x$host = x$target; then
11280 case $host in
11281 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11282 # keyed to flag_use_cxa_atexit
11283 *-*-mingw32*)
11284 use_cxa_atexit=yes
11285 ;;
11286 *)
11287 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11288 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11289 use_cxa_atexit=yes
11290 else
11291 echo "__cxa_atexit can't be enabled on this target"
11292 fi
11293
11294 ;;
11295 esac
11296 else
11297 # We can't check for __cxa_atexit when building a cross, so assume
11298 # it is available
11299 use_cxa_atexit=yes
11300 fi
11301 if test x$use_cxa_atexit = xyes; then
11302
11303 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11304
11305 fi
11306 fi
11307
11308 # Look for a file containing extra machine modes.
11309 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11310 extra_modes_file='$(srcdir)'/config/${extra_modes}
11311
11312
11313 cat >>confdefs.h <<_ACEOF
11314 #define EXTRA_MODES_FILE "config/$extra_modes"
11315 _ACEOF
11316
11317 fi
11318
11319 # Convert extra_options into a form suitable for Makefile use.
11320 extra_opt_files=
11321 all_opt_files=
11322 for f in $extra_options; do
11323 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11324 all_opt_files="$all_opt_files $srcdir/config/$f"
11325 done
11326
11327
11328 # auto-host.h is the file containing items generated by autoconf and is
11329 # the first file included by config.h.
11330 # If host=build, it is correct to have bconfig include auto-host.h
11331 # as well. If host!=build, we are in error and need to do more
11332 # work to find out the build config parameters.
11333 if test x$host = x$build
11334 then
11335 build_auto=auto-host.h
11336 else
11337 # We create a subdir, then run autoconf in the subdir.
11338 # To prevent recursion we set host and build for the new
11339 # invocation of configure to the build for this invocation
11340 # of configure.
11341 tempdir=build.$$
11342 rm -rf $tempdir
11343 mkdir $tempdir
11344 cd $tempdir
11345 case ${srcdir} in
11346 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11347 *) realsrcdir=../${srcdir};;
11348 esac
11349 saved_CFLAGS="${CFLAGS}"
11350 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11351 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11352 ${realsrcdir}/configure \
11353 --enable-languages=${enable_languages-all} \
11354 --target=$target_alias --host=$build_alias --build=$build_alias
11355 CFLAGS="${saved_CFLAGS}"
11356
11357 # We just finished tests for the build machine, so rename
11358 # the file auto-build.h in the gcc directory.
11359 mv auto-host.h ../auto-build.h
11360 cd ..
11361 rm -rf $tempdir
11362 build_auto=auto-build.h
11363 fi
11364
11365
11366 tm_file="${tm_file} defaults.h"
11367 tm_p_file="${tm_p_file} tm-preds.h"
11368 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11369 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11370 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11371 # put this back in temporarily.
11372 xm_file="auto-host.h ansidecl.h ${xm_file}"
11373
11374 # --------
11375 # UNSORTED
11376 # --------
11377
11378 # Compile in configure arguments.
11379 if test -f configargs.h ; then
11380 # Being re-configured.
11381 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11382 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11383 else
11384 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11385 fi
11386
11387 # Double all backslashes and backslash all quotes to turn
11388 # gcc_config_arguments into a C string.
11389 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11390 $gcc_config_arguments
11391 EOF
11392 gcc_config_arguments_str=`cat conftest.out`
11393 rm -f conftest.out
11394
11395 cat > configargs.h <<EOF
11396 /* Generated automatically. */
11397 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11398 static const char thread_model[] = "$thread_file";
11399
11400 static const struct {
11401 const char *name, *value;
11402 } configure_default_options[] = $configure_default_options;
11403 EOF
11404
11405 gcc_BASEVER=`cat $srcdir/BASE-VER`
11406 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11407 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11408 if test -f $srcdir/REVISION ; then
11409 gcc_REVISION=`cat $srcdir/REVISION`
11410 else
11411 gcc_REVISION=""
11412 fi
11413 cat > plugin-version.h <<EOF
11414 #include "configargs.h"
11415
11416 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11417 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11418 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11419 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11420
11421 static char basever[] = "$gcc_BASEVER";
11422 static char datestamp[] = "$gcc_DATESTAMP";
11423 static char devphase[] = "$gcc_DEVPHASE";
11424 static char revision[] = "$gcc_REVISION";
11425
11426 /* FIXME plugins: We should make the version information more precise.
11427 One way to do is to add a checksum. */
11428
11429 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11430 devphase, revision,
11431 configuration_arguments};
11432 EOF
11433
11434 # Internationalization
11435 # If we haven't got the data from the intl directory,
11436 # assume NLS is disabled.
11437 USE_NLS=no
11438 LIBINTL=
11439 LIBINTL_DEP=
11440 INCINTL=
11441 XGETTEXT=
11442 GMSGFMT=
11443 POSUB=
11444
11445 if test -f ../intl/config.intl; then
11446 . ../intl/config.intl
11447 fi
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11449 $as_echo_n "checking whether NLS is requested... " >&6; }
11450 if test x"$USE_NLS" != xyes; then
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11452 $as_echo "no" >&6; }
11453 else
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11455 $as_echo "yes" >&6; }
11456
11457 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11458
11459
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11461 $as_echo_n "checking for catalogs to be installed... " >&6; }
11462 # Look for .po and .gmo files in the source directory.
11463 CATALOGS=
11464 XLINGUAS=
11465 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11466 # If there aren't any .gmo files the shell will give us the
11467 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11468 # weeded out.
11469 case "$cat" in *\**)
11470 continue;;
11471 esac
11472 # The quadruple backslash is collapsed to a double backslash
11473 # by the backticks, then collapsed again by the double quotes,
11474 # leaving us with one backslash in the sed expression (right
11475 # before the dot that mustn't act as a wildcard).
11476 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11477 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11478 # The user is allowed to set LINGUAS to a list of languages to
11479 # install catalogs for. If it's empty that means "all of them."
11480 if test "x$LINGUAS" = x; then
11481 CATALOGS="$CATALOGS $cat"
11482 XLINGUAS="$XLINGUAS $lang"
11483 else
11484 case "$LINGUAS" in *$lang*)
11485 CATALOGS="$CATALOGS $cat"
11486 XLINGUAS="$XLINGUAS $lang"
11487 ;;
11488 esac
11489 fi
11490 done
11491 LINGUAS="$XLINGUAS"
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11493 $as_echo "$LINGUAS" >&6; }
11494
11495
11496 DATADIRNAME=share
11497
11498 INSTOBJEXT=.mo
11499
11500 GENCAT=gencat
11501
11502 CATOBJEXT=.gmo
11503
11504 fi
11505
11506 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11507 # -liconv on the link line twice.
11508 case "$LIBINTL" in *$LIBICONV*)
11509 LIBICONV= ;;
11510 esac
11511
11512 # Check whether --enable-secureplt was given.
11513 if test "${enable_secureplt+set}" = set; then :
11514 enableval=$enable_secureplt;
11515 fi
11516
11517
11518 # Check whether --enable-leading-mingw64-underscores was given.
11519 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11520 enableval=$enable_leading_mingw64_underscores;
11521 fi
11522
11523 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11524
11525 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11526
11527 fi
11528
11529 # Check whether --enable-cld was given.
11530 if test "${enable_cld+set}" = set; then :
11531 enableval=$enable_cld;
11532 else
11533 enable_cld=no
11534 fi
11535
11536
11537 # Check whether --enable-frame-pointer was given.
11538 if test "${enable_frame_pointer+set}" = set; then :
11539 enableval=$enable_frame_pointer;
11540 else
11541
11542 case $target_os in
11543 linux* | darwin[8912]*)
11544 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11545 # DWARF2.
11546 enable_frame_pointer=no
11547 ;;
11548 *)
11549 enable_frame_pointer=yes
11550 ;;
11551 esac
11552
11553 fi
11554
11555
11556 # Windows32 Registry support for specifying GCC installation paths.
11557 # Check whether --enable-win32-registry was given.
11558 if test "${enable_win32_registry+set}" = set; then :
11559 enableval=$enable_win32_registry;
11560 fi
11561
11562
11563 case $host_os in
11564 win32 | pe | cygwin* | mingw32* | uwin*)
11565 if test "x$enable_win32_registry" != xno; then
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11567 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11568 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11569 $as_echo_n "(cached) " >&6
11570 else
11571 ac_func_search_save_LIBS=$LIBS
11572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11573 /* end confdefs.h. */
11574
11575 /* Override any GCC internal prototype to avoid an error.
11576 Use char because int might match the return type of a GCC
11577 builtin and then its argument prototype would still apply. */
11578 #ifdef __cplusplus
11579 extern "C"
11580 #endif
11581 char RegOpenKeyExA ();
11582 int
11583 main ()
11584 {
11585 return RegOpenKeyExA ();
11586 ;
11587 return 0;
11588 }
11589 _ACEOF
11590 for ac_lib in '' advapi32; do
11591 if test -z "$ac_lib"; then
11592 ac_res="none required"
11593 else
11594 ac_res=-l$ac_lib
11595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11596 fi
11597 if ac_fn_c_try_link "$LINENO"; then :
11598 ac_cv_search_RegOpenKeyExA=$ac_res
11599 fi
11600 rm -f core conftest.err conftest.$ac_objext \
11601 conftest$ac_exeext
11602 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11603 break
11604 fi
11605 done
11606 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11607
11608 else
11609 ac_cv_search_RegOpenKeyExA=no
11610 fi
11611 rm conftest.$ac_ext
11612 LIBS=$ac_func_search_save_LIBS
11613 fi
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11615 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11616 ac_res=$ac_cv_search_RegOpenKeyExA
11617 if test "$ac_res" != no; then :
11618 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11619
11620 else
11621 enable_win32_registry=no
11622 fi
11623
11624 fi
11625
11626 if test "x$enable_win32_registry" != xno; then
11627
11628 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11629
11630
11631 if test "x$enable_win32_registry" != xyes \
11632 && test "x$enable_win32_registry" != x; then
11633
11634 cat >>confdefs.h <<_ACEOF
11635 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11636 _ACEOF
11637
11638 fi
11639 fi
11640 ;;
11641 esac
11642
11643 # Get an absolute path to the GCC top-level source directory
11644 holddir=`${PWDCMD-pwd}`
11645 cd $srcdir
11646 topdir=`${PWDCMD-pwd}`
11647 cd $holddir
11648
11649 # Conditionalize the makefile for this host machine.
11650 xmake_file=
11651 for f in ${host_xmake_file}
11652 do
11653 if test -f ${srcdir}/config/$f
11654 then
11655 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11656 fi
11657 done
11658
11659 # Conditionalize the makefile for this target machine.
11660 tmake_file_=
11661 for f in ${tmake_file}
11662 do
11663 if test -f ${srcdir}/config/$f
11664 then
11665 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11666 fi
11667 done
11668 tmake_file="${tmake_file_}"
11669
11670 out_object_file=`basename $out_file .c`.o
11671 common_out_object_file=`basename $common_out_file .c`.o
11672
11673 tm_file_list="options.h"
11674 tm_include_list="options.h insn-constants.h"
11675 for f in $tm_file; do
11676 case $f in
11677 ./* )
11678 f=`echo $f | sed 's/^..//'`
11679 tm_file_list="${tm_file_list} $f"
11680 tm_include_list="${tm_include_list} $f"
11681 ;;
11682 defaults.h )
11683 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11684 tm_include_list="${tm_include_list} $f"
11685 ;;
11686 * )
11687 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11688 tm_include_list="${tm_include_list} config/$f"
11689 ;;
11690 esac
11691 done
11692
11693 tm_p_file_list=
11694 tm_p_include_list=
11695 for f in $tm_p_file; do
11696 case $f in
11697 tm-preds.h )
11698 tm_p_file_list="${tm_p_file_list} $f"
11699 tm_p_include_list="${tm_p_include_list} $f"
11700 ;;
11701 * )
11702 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11703 tm_p_include_list="${tm_p_include_list} config/$f"
11704 esac
11705 done
11706
11707 xm_file_list=
11708 xm_include_list=
11709 for f in $xm_file; do
11710 case $f in
11711 ansidecl.h )
11712 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11713 xm_include_list="${xm_include_list} $f"
11714 ;;
11715 auto-host.h )
11716 xm_file_list="${xm_file_list} $f"
11717 xm_include_list="${xm_include_list} $f"
11718 ;;
11719 * )
11720 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11721 xm_include_list="${xm_include_list} config/$f"
11722 ;;
11723 esac
11724 done
11725
11726 host_xm_file_list=
11727 host_xm_include_list=
11728 for f in $host_xm_file; do
11729 case $f in
11730 ansidecl.h )
11731 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11732 host_xm_include_list="${host_xm_include_list} $f"
11733 ;;
11734 auto-host.h )
11735 host_xm_file_list="${host_xm_file_list} $f"
11736 host_xm_include_list="${host_xm_include_list} $f"
11737 ;;
11738 * )
11739 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11740 host_xm_include_list="${host_xm_include_list} config/$f"
11741 ;;
11742 esac
11743 done
11744
11745 build_xm_file_list=
11746 for f in $build_xm_file; do
11747 case $f in
11748 ansidecl.h )
11749 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11750 build_xm_include_list="${build_xm_include_list} $f"
11751 ;;
11752 auto-build.h | auto-host.h )
11753 build_xm_file_list="${build_xm_file_list} $f"
11754 build_xm_include_list="${build_xm_include_list} $f"
11755 ;;
11756 * )
11757 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11758 build_xm_include_list="${build_xm_include_list} config/$f"
11759 ;;
11760 esac
11761 done
11762
11763 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11764 # cross-compiler which does not use the native headers and libraries.
11765 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11766 CROSS=
11767 ALL=all.internal
11768 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11769
11770 if test "x$with_build_sysroot" != x; then
11771 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11772 else
11773 # This value is used, even on a native system, because
11774 # CROSS_SYSTEM_HEADER_DIR is just
11775 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11776 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11777 fi
11778
11779 if test x$host != x$target
11780 then
11781 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11782 ALL=all.cross
11783 SYSTEM_HEADER_DIR=$build_system_header_dir
11784 case "$host","$target" in
11785 # Darwin crosses can use the host system's libraries and headers,
11786 # because of the fat library support. Of course, it must be the
11787 # same version of Darwin on both sides. Allow the user to
11788 # just say --target=foo-darwin without a version number to mean
11789 # "the version on this system".
11790 *-*-darwin*,*-*-darwin*)
11791 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11792 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11793 if test $hostos = $targetos -o $targetos = darwin ; then
11794 CROSS=
11795 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11796 with_headers=yes
11797 fi
11798 ;;
11799
11800 i?86-*-*,x86_64-*-* \
11801 | powerpc*-*-*,powerpc64*-*-*)
11802 CROSS="$CROSS -DNATIVE_CROSS" ;;
11803 esac
11804
11805 case $target in
11806 *-*-mingw*)
11807 if test "x$with_headers" = x; then
11808 with_headers=yes
11809 fi
11810 ;;
11811 *)
11812 ;;
11813 esac
11814 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11815 SYSTEM_HEADER_DIR=$build_system_header_dir
11816 fi
11817
11818 # If this is a cross-compiler that does not
11819 # have its own set of headers then define
11820 # inhibit_libc
11821
11822 # If this is using newlib, without having the headers available now,
11823 # then define inhibit_libc in LIBGCC2_CFLAGS.
11824 # This prevents libgcc2 from containing any code which requires libc
11825 # support.
11826 : ${inhibit_libc=false}
11827 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11828 test x$with_newlib = xyes ; } &&
11829 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11830 inhibit_libc=true
11831 fi
11832
11833
11834 # When building gcc with a cross-compiler, we need to adjust things so
11835 # that the generator programs are still built with the native compiler.
11836 # Also, we cannot run fixincludes.
11837
11838 # These are the normal (build=host) settings:
11839 CC_FOR_BUILD='$(CC)'
11840 CXX_FOR_BUILD='$(CXX)'
11841 BUILD_CFLAGS='$(ALL_CFLAGS)'
11842 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11843 BUILD_LDFLAGS='$(LDFLAGS)'
11844 STMP_FIXINC=stmp-fixinc
11845
11846 # And these apply if build != host, or we are generating coverage data
11847 if test x$build != x$host || test "x$coverage_flags" != x
11848 then
11849 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11850 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11851 fi
11852
11853 # Expand extra_headers to include complete path.
11854 # This substitutes for lots of t-* files.
11855 extra_headers_list=
11856 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11857 for file in ${extra_headers} ; do
11858 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11859 done
11860
11861 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11862 if test x"$use_gcc_tgmath" = xyes
11863 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11864 fi
11865
11866 # Define collect2 in Makefile.
11867 case $host_can_use_collect2 in
11868 no) collect2= ;;
11869 *) collect2='collect2$(exeext)' ;;
11870 esac
11871
11872
11873 # Add a definition of USE_COLLECT2 if system wants one.
11874 case $use_collect2 in
11875 no) use_collect2= ;;
11876 "") ;;
11877 *)
11878 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11879 xm_defines="${xm_defines} USE_COLLECT2"
11880 case $host_can_use_collect2 in
11881 no)
11882 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11883 ;;
11884 esac
11885 ;;
11886 esac
11887
11888
11889 cat >>confdefs.h <<_ACEOF
11890 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11891 _ACEOF
11892
11893
11894 # ---------------------------
11895 # Assembler & linker features
11896 # ---------------------------
11897
11898 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11899 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11900 # However when ld-new is first executed from the build tree, libtool will
11901 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11902 # to the build tree. While doing this we need to use the previous-stage
11903 # linker, or we have an infinite loop. The presence of a shell script as
11904 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11905 # the gcc/collect-ld script. So we need to know how libtool works, or
11906 # exec-tool will fail.
11907
11908
11909 case `pwd` in
11910 *\ * | *\ *)
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11912 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11913 esac
11914
11915
11916
11917 macro_version='2.2.7a'
11918 macro_revision='1.3134'
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932 ltmain="$ac_aux_dir/ltmain.sh"
11933
11934 # Backslashify metacharacters that are still active within
11935 # double-quoted strings.
11936 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11937
11938 # Same as above, but do not quote variable references.
11939 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11940
11941 # Sed substitution to delay expansion of an escaped shell variable in a
11942 # double_quote_subst'ed string.
11943 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11944
11945 # Sed substitution to delay expansion of an escaped single quote.
11946 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11947
11948 # Sed substitution to avoid accidental globbing in evaled expressions
11949 no_glob_subst='s/\*/\\\*/g'
11950
11951 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11952 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11953 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11954
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11956 $as_echo_n "checking how to print strings... " >&6; }
11957 # Test print first, because it will be a builtin if present.
11958 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11959 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11960 ECHO='print -r --'
11961 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11962 ECHO='printf %s\n'
11963 else
11964 # Use this function as a fallback that always works.
11965 func_fallback_echo ()
11966 {
11967 eval 'cat <<_LTECHO_EOF
11968 $1
11969 _LTECHO_EOF'
11970 }
11971 ECHO='func_fallback_echo'
11972 fi
11973
11974 # func_echo_all arg...
11975 # Invoke $ECHO with all args, space-separated.
11976 func_echo_all ()
11977 {
11978 $ECHO ""
11979 }
11980
11981 case "$ECHO" in
11982 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11983 $as_echo "printf" >&6; } ;;
11984 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11985 $as_echo "print -r" >&6; } ;;
11986 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11987 $as_echo "cat" >&6; } ;;
11988 esac
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12004 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12005 if test "${ac_cv_path_SED+set}" = set; then :
12006 $as_echo_n "(cached) " >&6
12007 else
12008 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12009 for ac_i in 1 2 3 4 5 6 7; do
12010 ac_script="$ac_script$as_nl$ac_script"
12011 done
12012 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12013 { ac_script=; unset ac_script;}
12014 if test -z "$SED"; then
12015 ac_path_SED_found=false
12016 # Loop through the user's path and test for each of PROGNAME-LIST
12017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12018 for as_dir in $PATH
12019 do
12020 IFS=$as_save_IFS
12021 test -z "$as_dir" && as_dir=.
12022 for ac_prog in sed gsed; do
12023 for ac_exec_ext in '' $ac_executable_extensions; do
12024 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12025 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12026 # Check for GNU ac_path_SED and select it if it is found.
12027 # Check for GNU $ac_path_SED
12028 case `"$ac_path_SED" --version 2>&1` in
12029 *GNU*)
12030 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12031 *)
12032 ac_count=0
12033 $as_echo_n 0123456789 >"conftest.in"
12034 while :
12035 do
12036 cat "conftest.in" "conftest.in" >"conftest.tmp"
12037 mv "conftest.tmp" "conftest.in"
12038 cp "conftest.in" "conftest.nl"
12039 $as_echo '' >> "conftest.nl"
12040 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12041 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12042 as_fn_arith $ac_count + 1 && ac_count=$as_val
12043 if test $ac_count -gt ${ac_path_SED_max-0}; then
12044 # Best one so far, save it but keep looking for a better one
12045 ac_cv_path_SED="$ac_path_SED"
12046 ac_path_SED_max=$ac_count
12047 fi
12048 # 10*(2^10) chars as input seems more than enough
12049 test $ac_count -gt 10 && break
12050 done
12051 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12052 esac
12053
12054 $ac_path_SED_found && break 3
12055 done
12056 done
12057 done
12058 IFS=$as_save_IFS
12059 if test -z "$ac_cv_path_SED"; then
12060 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12061 fi
12062 else
12063 ac_cv_path_SED=$SED
12064 fi
12065
12066 fi
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12068 $as_echo "$ac_cv_path_SED" >&6; }
12069 SED="$ac_cv_path_SED"
12070 rm -f conftest.sed
12071
12072 test -z "$SED" && SED=sed
12073 Xsed="$SED -e 1s/^X//"
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12086 $as_echo_n "checking for fgrep... " >&6; }
12087 if test "${ac_cv_path_FGREP+set}" = set; then :
12088 $as_echo_n "(cached) " >&6
12089 else
12090 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12091 then ac_cv_path_FGREP="$GREP -F"
12092 else
12093 if test -z "$FGREP"; then
12094 ac_path_FGREP_found=false
12095 # Loop through the user's path and test for each of PROGNAME-LIST
12096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12097 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12098 do
12099 IFS=$as_save_IFS
12100 test -z "$as_dir" && as_dir=.
12101 for ac_prog in fgrep; do
12102 for ac_exec_ext in '' $ac_executable_extensions; do
12103 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12104 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12105 # Check for GNU ac_path_FGREP and select it if it is found.
12106 # Check for GNU $ac_path_FGREP
12107 case `"$ac_path_FGREP" --version 2>&1` in
12108 *GNU*)
12109 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12110 *)
12111 ac_count=0
12112 $as_echo_n 0123456789 >"conftest.in"
12113 while :
12114 do
12115 cat "conftest.in" "conftest.in" >"conftest.tmp"
12116 mv "conftest.tmp" "conftest.in"
12117 cp "conftest.in" "conftest.nl"
12118 $as_echo 'FGREP' >> "conftest.nl"
12119 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12120 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12121 as_fn_arith $ac_count + 1 && ac_count=$as_val
12122 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12123 # Best one so far, save it but keep looking for a better one
12124 ac_cv_path_FGREP="$ac_path_FGREP"
12125 ac_path_FGREP_max=$ac_count
12126 fi
12127 # 10*(2^10) chars as input seems more than enough
12128 test $ac_count -gt 10 && break
12129 done
12130 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12131 esac
12132
12133 $ac_path_FGREP_found && break 3
12134 done
12135 done
12136 done
12137 IFS=$as_save_IFS
12138 if test -z "$ac_cv_path_FGREP"; then
12139 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12140 fi
12141 else
12142 ac_cv_path_FGREP=$FGREP
12143 fi
12144
12145 fi
12146 fi
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12148 $as_echo "$ac_cv_path_FGREP" >&6; }
12149 FGREP="$ac_cv_path_FGREP"
12150
12151
12152 test -z "$GREP" && GREP=grep
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172 # Check whether --with-gnu-ld was given.
12173 if test "${with_gnu_ld+set}" = set; then :
12174 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12175 else
12176 with_gnu_ld=no
12177 fi
12178
12179 ac_prog=ld
12180 if test "$GCC" = yes; then
12181 # Check if gcc -print-prog-name=ld gives a path.
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12183 $as_echo_n "checking for ld used by $CC... " >&6; }
12184 case $host in
12185 *-*-mingw*)
12186 # gcc leaves a trailing carriage return which upsets mingw
12187 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12188 *)
12189 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12190 esac
12191 case $ac_prog in
12192 # Accept absolute paths.
12193 [\\/]* | ?:[\\/]*)
12194 re_direlt='/[^/][^/]*/\.\./'
12195 # Canonicalize the pathname of ld
12196 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12197 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12198 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12199 done
12200 test -z "$LD" && LD="$ac_prog"
12201 ;;
12202 "")
12203 # If it fails, then pretend we aren't using GCC.
12204 ac_prog=ld
12205 ;;
12206 *)
12207 # If it is relative, then search for the first ld in PATH.
12208 with_gnu_ld=unknown
12209 ;;
12210 esac
12211 elif test "$with_gnu_ld" = yes; then
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12213 $as_echo_n "checking for GNU ld... " >&6; }
12214 else
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12216 $as_echo_n "checking for non-GNU ld... " >&6; }
12217 fi
12218 if test "${lt_cv_path_LD+set}" = set; then :
12219 $as_echo_n "(cached) " >&6
12220 else
12221 if test -z "$LD"; then
12222 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12223 for ac_dir in $PATH; do
12224 IFS="$lt_save_ifs"
12225 test -z "$ac_dir" && ac_dir=.
12226 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12227 lt_cv_path_LD="$ac_dir/$ac_prog"
12228 # Check to see if the program is GNU ld. I'd rather use --version,
12229 # but apparently some variants of GNU ld only accept -v.
12230 # Break only if it was the GNU/non-GNU ld that we prefer.
12231 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12232 *GNU* | *'with BFD'*)
12233 test "$with_gnu_ld" != no && break
12234 ;;
12235 *)
12236 test "$with_gnu_ld" != yes && break
12237 ;;
12238 esac
12239 fi
12240 done
12241 IFS="$lt_save_ifs"
12242 else
12243 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12244 fi
12245 fi
12246
12247 LD="$lt_cv_path_LD"
12248 if test -n "$LD"; then
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12250 $as_echo "$LD" >&6; }
12251 else
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12253 $as_echo "no" >&6; }
12254 fi
12255 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12257 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12258 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12259 $as_echo_n "(cached) " >&6
12260 else
12261 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12262 case `$LD -v 2>&1 </dev/null` in
12263 *GNU* | *'with BFD'*)
12264 lt_cv_prog_gnu_ld=yes
12265 ;;
12266 *)
12267 lt_cv_prog_gnu_ld=no
12268 ;;
12269 esac
12270 fi
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12272 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12273 with_gnu_ld=$lt_cv_prog_gnu_ld
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12284 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12285 if test "${lt_cv_path_NM+set}" = set; then :
12286 $as_echo_n "(cached) " >&6
12287 else
12288 if test -n "$NM"; then
12289 # Let the user override the test.
12290 lt_cv_path_NM="$NM"
12291 else
12292 lt_nm_to_check="${ac_tool_prefix}nm"
12293 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12294 lt_nm_to_check="$lt_nm_to_check nm"
12295 fi
12296 for lt_tmp_nm in $lt_nm_to_check; do
12297 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12298 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12299 IFS="$lt_save_ifs"
12300 test -z "$ac_dir" && ac_dir=.
12301 tmp_nm="$ac_dir/$lt_tmp_nm"
12302 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12303 # Check to see if the nm accepts a BSD-compat flag.
12304 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12305 # nm: unknown option "B" ignored
12306 # Tru64's nm complains that /dev/null is an invalid object file
12307 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12308 */dev/null* | *'Invalid file or object type'*)
12309 lt_cv_path_NM="$tmp_nm -B"
12310 break
12311 ;;
12312 *)
12313 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12314 */dev/null*)
12315 lt_cv_path_NM="$tmp_nm -p"
12316 break
12317 ;;
12318 *)
12319 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12320 continue # so that we can try to find one that supports BSD flags
12321 ;;
12322 esac
12323 ;;
12324 esac
12325 fi
12326 done
12327 IFS="$lt_save_ifs"
12328 done
12329 : ${lt_cv_path_NM=no}
12330 fi
12331 fi
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12333 $as_echo "$lt_cv_path_NM" >&6; }
12334 if test "$lt_cv_path_NM" != "no"; then
12335 NM="$lt_cv_path_NM"
12336 else
12337 # Didn't find any BSD compatible name lister, look for dumpbin.
12338 if test -n "$DUMPBIN"; then :
12339 # Let the user override the test.
12340 else
12341 if test -n "$ac_tool_prefix"; then
12342 for ac_prog in dumpbin "link -dump"
12343 do
12344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12347 $as_echo_n "checking for $ac_word... " >&6; }
12348 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12349 $as_echo_n "(cached) " >&6
12350 else
12351 if test -n "$DUMPBIN"; then
12352 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12353 else
12354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12355 for as_dir in $PATH
12356 do
12357 IFS=$as_save_IFS
12358 test -z "$as_dir" && as_dir=.
12359 for ac_exec_ext in '' $ac_executable_extensions; do
12360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12361 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12363 break 2
12364 fi
12365 done
12366 done
12367 IFS=$as_save_IFS
12368
12369 fi
12370 fi
12371 DUMPBIN=$ac_cv_prog_DUMPBIN
12372 if test -n "$DUMPBIN"; then
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12374 $as_echo "$DUMPBIN" >&6; }
12375 else
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12377 $as_echo "no" >&6; }
12378 fi
12379
12380
12381 test -n "$DUMPBIN" && break
12382 done
12383 fi
12384 if test -z "$DUMPBIN"; then
12385 ac_ct_DUMPBIN=$DUMPBIN
12386 for ac_prog in dumpbin "link -dump"
12387 do
12388 # Extract the first word of "$ac_prog", so it can be a program name with args.
12389 set dummy $ac_prog; ac_word=$2
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12391 $as_echo_n "checking for $ac_word... " >&6; }
12392 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12393 $as_echo_n "(cached) " >&6
12394 else
12395 if test -n "$ac_ct_DUMPBIN"; then
12396 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12397 else
12398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12399 for as_dir in $PATH
12400 do
12401 IFS=$as_save_IFS
12402 test -z "$as_dir" && as_dir=.
12403 for ac_exec_ext in '' $ac_executable_extensions; do
12404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12405 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12407 break 2
12408 fi
12409 done
12410 done
12411 IFS=$as_save_IFS
12412
12413 fi
12414 fi
12415 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12416 if test -n "$ac_ct_DUMPBIN"; then
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12418 $as_echo "$ac_ct_DUMPBIN" >&6; }
12419 else
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421 $as_echo "no" >&6; }
12422 fi
12423
12424
12425 test -n "$ac_ct_DUMPBIN" && break
12426 done
12427
12428 if test "x$ac_ct_DUMPBIN" = x; then
12429 DUMPBIN=":"
12430 else
12431 case $cross_compiling:$ac_tool_warned in
12432 yes:)
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12435 ac_tool_warned=yes ;;
12436 esac
12437 DUMPBIN=$ac_ct_DUMPBIN
12438 fi
12439 fi
12440
12441 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12442 *COFF*)
12443 DUMPBIN="$DUMPBIN -symbols"
12444 ;;
12445 *)
12446 DUMPBIN=:
12447 ;;
12448 esac
12449 fi
12450
12451 if test "$DUMPBIN" != ":"; then
12452 NM="$DUMPBIN"
12453 fi
12454 fi
12455 test -z "$NM" && NM=nm
12456
12457
12458
12459
12460
12461
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12463 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12464 if test "${lt_cv_nm_interface+set}" = set; then :
12465 $as_echo_n "(cached) " >&6
12466 else
12467 lt_cv_nm_interface="BSD nm"
12468 echo "int some_variable = 0;" > conftest.$ac_ext
12469 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12470 (eval "$ac_compile" 2>conftest.err)
12471 cat conftest.err >&5
12472 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12473 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12474 cat conftest.err >&5
12475 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12476 cat conftest.out >&5
12477 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12478 lt_cv_nm_interface="MS dumpbin"
12479 fi
12480 rm -f conftest*
12481 fi
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12483 $as_echo "$lt_cv_nm_interface" >&6; }
12484
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12486 $as_echo_n "checking whether ln -s works... " >&6; }
12487 LN_S=$as_ln_s
12488 if test "$LN_S" = "ln -s"; then
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12490 $as_echo "yes" >&6; }
12491 else
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12493 $as_echo "no, using $LN_S" >&6; }
12494 fi
12495
12496 # find the maximum length of command line arguments
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12498 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12499 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12500 $as_echo_n "(cached) " >&6
12501 else
12502 i=0
12503 teststring="ABCD"
12504
12505 case $build_os in
12506 msdosdjgpp*)
12507 # On DJGPP, this test can blow up pretty badly due to problems in libc
12508 # (any single argument exceeding 2000 bytes causes a buffer overrun
12509 # during glob expansion). Even if it were fixed, the result of this
12510 # check would be larger than it should be.
12511 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12512 ;;
12513
12514 gnu*)
12515 # Under GNU Hurd, this test is not required because there is
12516 # no limit to the length of command line arguments.
12517 # Libtool will interpret -1 as no limit whatsoever
12518 lt_cv_sys_max_cmd_len=-1;
12519 ;;
12520
12521 cygwin* | mingw* | cegcc*)
12522 # On Win9x/ME, this test blows up -- it succeeds, but takes
12523 # about 5 minutes as the teststring grows exponentially.
12524 # Worse, since 9x/ME are not pre-emptively multitasking,
12525 # you end up with a "frozen" computer, even though with patience
12526 # the test eventually succeeds (with a max line length of 256k).
12527 # Instead, let's just punt: use the minimum linelength reported by
12528 # all of the supported platforms: 8192 (on NT/2K/XP).
12529 lt_cv_sys_max_cmd_len=8192;
12530 ;;
12531
12532 mint*)
12533 # On MiNT this can take a long time and run out of memory.
12534 lt_cv_sys_max_cmd_len=8192;
12535 ;;
12536
12537 amigaos*)
12538 # On AmigaOS with pdksh, this test takes hours, literally.
12539 # So we just punt and use a minimum line length of 8192.
12540 lt_cv_sys_max_cmd_len=8192;
12541 ;;
12542
12543 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12544 # This has been around since 386BSD, at least. Likely further.
12545 if test -x /sbin/sysctl; then
12546 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12547 elif test -x /usr/sbin/sysctl; then
12548 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12549 else
12550 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12551 fi
12552 # And add a safety zone
12553 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12554 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12555 ;;
12556
12557 interix*)
12558 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12559 lt_cv_sys_max_cmd_len=196608
12560 ;;
12561
12562 osf*)
12563 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12564 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12565 # nice to cause kernel panics so lets avoid the loop below.
12566 # First set a reasonable default.
12567 lt_cv_sys_max_cmd_len=16384
12568 #
12569 if test -x /sbin/sysconfig; then
12570 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12571 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12572 esac
12573 fi
12574 ;;
12575 sco3.2v5*)
12576 lt_cv_sys_max_cmd_len=102400
12577 ;;
12578 sysv5* | sco5v6* | sysv4.2uw2*)
12579 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12580 if test -n "$kargmax"; then
12581 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12582 else
12583 lt_cv_sys_max_cmd_len=32768
12584 fi
12585 ;;
12586 *)
12587 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12588 if test -n "$lt_cv_sys_max_cmd_len"; then
12589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12590 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12591 else
12592 # Make teststring a little bigger before we do anything with it.
12593 # a 1K string should be a reasonable start.
12594 for i in 1 2 3 4 5 6 7 8 ; do
12595 teststring=$teststring$teststring
12596 done
12597 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12598 # If test is not a shell built-in, we'll probably end up computing a
12599 # maximum length that is only half of the actual maximum length, but
12600 # we can't tell.
12601 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12602 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12603 test $i != 17 # 1/2 MB should be enough
12604 do
12605 i=`expr $i + 1`
12606 teststring=$teststring$teststring
12607 done
12608 # Only check the string length outside the loop.
12609 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12610 teststring=
12611 # Add a significant safety factor because C++ compilers can tack on
12612 # massive amounts of additional arguments before passing them to the
12613 # linker. It appears as though 1/2 is a usable value.
12614 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12615 fi
12616 ;;
12617 esac
12618
12619 fi
12620
12621 if test -n $lt_cv_sys_max_cmd_len ; then
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12623 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12624 else
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12626 $as_echo "none" >&6; }
12627 fi
12628 max_cmd_len=$lt_cv_sys_max_cmd_len
12629
12630
12631
12632
12633
12634
12635 : ${CP="cp -f"}
12636 : ${MV="mv -f"}
12637 : ${RM="rm -f"}
12638
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12640 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12641 # Try some XSI features
12642 xsi_shell=no
12643 ( _lt_dummy="a/b/c"
12644 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12645 = c,a/b,, \
12646 && eval 'test $(( 1 + 1 )) -eq 2 \
12647 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12648 && xsi_shell=yes
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12650 $as_echo "$xsi_shell" >&6; }
12651
12652
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12654 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12655 lt_shell_append=no
12656 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12657 >/dev/null 2>&1 \
12658 && lt_shell_append=yes
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12660 $as_echo "$lt_shell_append" >&6; }
12661
12662
12663 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12664 lt_unset=unset
12665 else
12666 lt_unset=false
12667 fi
12668
12669
12670
12671
12672
12673 # test EBCDIC or ASCII
12674 case `echo X|tr X '\101'` in
12675 A) # ASCII based system
12676 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12677 lt_SP2NL='tr \040 \012'
12678 lt_NL2SP='tr \015\012 \040\040'
12679 ;;
12680 *) # EBCDIC based system
12681 lt_SP2NL='tr \100 \n'
12682 lt_NL2SP='tr \r\n \100\100'
12683 ;;
12684 esac
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12695 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12696 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12697 $as_echo_n "(cached) " >&6
12698 else
12699 lt_cv_ld_reload_flag='-r'
12700 fi
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12702 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12703 reload_flag=$lt_cv_ld_reload_flag
12704 case $reload_flag in
12705 "" | " "*) ;;
12706 *) reload_flag=" $reload_flag" ;;
12707 esac
12708 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12709 case $host_os in
12710 darwin*)
12711 if test "$GCC" = yes; then
12712 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12713 else
12714 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12715 fi
12716 ;;
12717 esac
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727 if test -n "$ac_tool_prefix"; then
12728 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12729 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12731 $as_echo_n "checking for $ac_word... " >&6; }
12732 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12733 $as_echo_n "(cached) " >&6
12734 else
12735 if test -n "$OBJDUMP"; then
12736 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12737 else
12738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12739 for as_dir in $PATH
12740 do
12741 IFS=$as_save_IFS
12742 test -z "$as_dir" && as_dir=.
12743 for ac_exec_ext in '' $ac_executable_extensions; do
12744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12745 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12747 break 2
12748 fi
12749 done
12750 done
12751 IFS=$as_save_IFS
12752
12753 fi
12754 fi
12755 OBJDUMP=$ac_cv_prog_OBJDUMP
12756 if test -n "$OBJDUMP"; then
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12758 $as_echo "$OBJDUMP" >&6; }
12759 else
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12761 $as_echo "no" >&6; }
12762 fi
12763
12764
12765 fi
12766 if test -z "$ac_cv_prog_OBJDUMP"; then
12767 ac_ct_OBJDUMP=$OBJDUMP
12768 # Extract the first word of "objdump", so it can be a program name with args.
12769 set dummy objdump; ac_word=$2
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12771 $as_echo_n "checking for $ac_word... " >&6; }
12772 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12773 $as_echo_n "(cached) " >&6
12774 else
12775 if test -n "$ac_ct_OBJDUMP"; then
12776 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12777 else
12778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12779 for as_dir in $PATH
12780 do
12781 IFS=$as_save_IFS
12782 test -z "$as_dir" && as_dir=.
12783 for ac_exec_ext in '' $ac_executable_extensions; do
12784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12785 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12787 break 2
12788 fi
12789 done
12790 done
12791 IFS=$as_save_IFS
12792
12793 fi
12794 fi
12795 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12796 if test -n "$ac_ct_OBJDUMP"; then
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12798 $as_echo "$ac_ct_OBJDUMP" >&6; }
12799 else
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12801 $as_echo "no" >&6; }
12802 fi
12803
12804 if test "x$ac_ct_OBJDUMP" = x; then
12805 OBJDUMP="false"
12806 else
12807 case $cross_compiling:$ac_tool_warned in
12808 yes:)
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12811 ac_tool_warned=yes ;;
12812 esac
12813 OBJDUMP=$ac_ct_OBJDUMP
12814 fi
12815 else
12816 OBJDUMP="$ac_cv_prog_OBJDUMP"
12817 fi
12818
12819 test -z "$OBJDUMP" && OBJDUMP=objdump
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12830 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12831 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12832 $as_echo_n "(cached) " >&6
12833 else
12834 lt_cv_file_magic_cmd='$MAGIC_CMD'
12835 lt_cv_file_magic_test_file=
12836 lt_cv_deplibs_check_method='unknown'
12837 # Need to set the preceding variable on all platforms that support
12838 # interlibrary dependencies.
12839 # 'none' -- dependencies not supported.
12840 # `unknown' -- same as none, but documents that we really don't know.
12841 # 'pass_all' -- all dependencies passed with no checks.
12842 # 'test_compile' -- check by making test program.
12843 # 'file_magic [[regex]]' -- check by looking for files in library path
12844 # which responds to the $file_magic_cmd with a given extended regex.
12845 # If you have `file' or equivalent on your system and you're not sure
12846 # whether `pass_all' will *always* work, you probably want this one.
12847
12848 case $host_os in
12849 aix[4-9]*)
12850 lt_cv_deplibs_check_method=pass_all
12851 ;;
12852
12853 beos*)
12854 lt_cv_deplibs_check_method=pass_all
12855 ;;
12856
12857 bsdi[45]*)
12858 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12859 lt_cv_file_magic_cmd='/usr/bin/file -L'
12860 lt_cv_file_magic_test_file=/shlib/libc.so
12861 ;;
12862
12863 cygwin*)
12864 # func_win32_libid is a shell function defined in ltmain.sh
12865 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12866 lt_cv_file_magic_cmd='func_win32_libid'
12867 ;;
12868
12869 mingw* | pw32*)
12870 # Base MSYS/MinGW do not provide the 'file' command needed by
12871 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12872 # unless we find 'file', for example because we are cross-compiling.
12873 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12874 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12875 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12876 lt_cv_file_magic_cmd='func_win32_libid'
12877 else
12878 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12879 lt_cv_file_magic_cmd='$OBJDUMP -f'
12880 fi
12881 ;;
12882
12883 cegcc*)
12884 # use the weaker test based on 'objdump'. See mingw*.
12885 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12886 lt_cv_file_magic_cmd='$OBJDUMP -f'
12887 ;;
12888
12889 darwin* | rhapsody*)
12890 lt_cv_deplibs_check_method=pass_all
12891 ;;
12892
12893 freebsd* | dragonfly*)
12894 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12895 case $host_cpu in
12896 i*86 )
12897 # Not sure whether the presence of OpenBSD here was a mistake.
12898 # Let's accept both of them until this is cleared up.
12899 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12900 lt_cv_file_magic_cmd=/usr/bin/file
12901 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12902 ;;
12903 esac
12904 else
12905 lt_cv_deplibs_check_method=pass_all
12906 fi
12907 ;;
12908
12909 gnu*)
12910 lt_cv_deplibs_check_method=pass_all
12911 ;;
12912
12913 haiku*)
12914 lt_cv_deplibs_check_method=pass_all
12915 ;;
12916
12917 hpux10.20* | hpux11*)
12918 lt_cv_file_magic_cmd=/usr/bin/file
12919 case $host_cpu in
12920 ia64*)
12921 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12922 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12923 ;;
12924 hppa*64*)
12925 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]'
12926 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12927 ;;
12928 *)
12929 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12930 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12931 ;;
12932 esac
12933 ;;
12934
12935 interix[3-9]*)
12936 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12937 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12938 ;;
12939
12940 irix5* | irix6* | nonstopux*)
12941 case $LD in
12942 *-32|*"-32 ") libmagic=32-bit;;
12943 *-n32|*"-n32 ") libmagic=N32;;
12944 *-64|*"-64 ") libmagic=64-bit;;
12945 *) libmagic=never-match;;
12946 esac
12947 lt_cv_deplibs_check_method=pass_all
12948 ;;
12949
12950 # This must be Linux ELF.
12951 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12952 lt_cv_deplibs_check_method=pass_all
12953 ;;
12954
12955 netbsd*)
12956 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12957 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12958 else
12959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12960 fi
12961 ;;
12962
12963 newos6*)
12964 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12965 lt_cv_file_magic_cmd=/usr/bin/file
12966 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12967 ;;
12968
12969 *nto* | *qnx*)
12970 lt_cv_deplibs_check_method=pass_all
12971 ;;
12972
12973 openbsd*)
12974 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12976 else
12977 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12978 fi
12979 ;;
12980
12981 osf3* | osf4* | osf5*)
12982 lt_cv_deplibs_check_method=pass_all
12983 ;;
12984
12985 rdos*)
12986 lt_cv_deplibs_check_method=pass_all
12987 ;;
12988
12989 solaris*)
12990 lt_cv_deplibs_check_method=pass_all
12991 ;;
12992
12993 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12994 lt_cv_deplibs_check_method=pass_all
12995 ;;
12996
12997 sysv4 | sysv4.3*)
12998 case $host_vendor in
12999 motorola)
13000 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]'
13001 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13002 ;;
13003 ncr)
13004 lt_cv_deplibs_check_method=pass_all
13005 ;;
13006 sequent)
13007 lt_cv_file_magic_cmd='/bin/file'
13008 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13009 ;;
13010 sni)
13011 lt_cv_file_magic_cmd='/bin/file'
13012 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13013 lt_cv_file_magic_test_file=/lib/libc.so
13014 ;;
13015 siemens)
13016 lt_cv_deplibs_check_method=pass_all
13017 ;;
13018 pc)
13019 lt_cv_deplibs_check_method=pass_all
13020 ;;
13021 esac
13022 ;;
13023
13024 tpf*)
13025 lt_cv_deplibs_check_method=pass_all
13026 ;;
13027 esac
13028
13029 fi
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13031 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13032 file_magic_cmd=$lt_cv_file_magic_cmd
13033 deplibs_check_method=$lt_cv_deplibs_check_method
13034 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047 if test -n "$ac_tool_prefix"; then
13048 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13049 set dummy ${ac_tool_prefix}ar; ac_word=$2
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13051 $as_echo_n "checking for $ac_word... " >&6; }
13052 if test "${ac_cv_prog_AR+set}" = set; then :
13053 $as_echo_n "(cached) " >&6
13054 else
13055 if test -n "$AR"; then
13056 ac_cv_prog_AR="$AR" # Let the user override the test.
13057 else
13058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13059 for as_dir in $PATH
13060 do
13061 IFS=$as_save_IFS
13062 test -z "$as_dir" && as_dir=.
13063 for ac_exec_ext in '' $ac_executable_extensions; do
13064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13065 ac_cv_prog_AR="${ac_tool_prefix}ar"
13066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13067 break 2
13068 fi
13069 done
13070 done
13071 IFS=$as_save_IFS
13072
13073 fi
13074 fi
13075 AR=$ac_cv_prog_AR
13076 if test -n "$AR"; then
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13078 $as_echo "$AR" >&6; }
13079 else
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13081 $as_echo "no" >&6; }
13082 fi
13083
13084
13085 fi
13086 if test -z "$ac_cv_prog_AR"; then
13087 ac_ct_AR=$AR
13088 # Extract the first word of "ar", so it can be a program name with args.
13089 set dummy ar; ac_word=$2
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13091 $as_echo_n "checking for $ac_word... " >&6; }
13092 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13093 $as_echo_n "(cached) " >&6
13094 else
13095 if test -n "$ac_ct_AR"; then
13096 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13097 else
13098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13099 for as_dir in $PATH
13100 do
13101 IFS=$as_save_IFS
13102 test -z "$as_dir" && as_dir=.
13103 for ac_exec_ext in '' $ac_executable_extensions; do
13104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13105 ac_cv_prog_ac_ct_AR="ar"
13106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13107 break 2
13108 fi
13109 done
13110 done
13111 IFS=$as_save_IFS
13112
13113 fi
13114 fi
13115 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13116 if test -n "$ac_ct_AR"; then
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13118 $as_echo "$ac_ct_AR" >&6; }
13119 else
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13121 $as_echo "no" >&6; }
13122 fi
13123
13124 if test "x$ac_ct_AR" = x; then
13125 AR="false"
13126 else
13127 case $cross_compiling:$ac_tool_warned in
13128 yes:)
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13131 ac_tool_warned=yes ;;
13132 esac
13133 AR=$ac_ct_AR
13134 fi
13135 else
13136 AR="$ac_cv_prog_AR"
13137 fi
13138
13139 test -z "$AR" && AR=ar
13140 test -z "$AR_FLAGS" && AR_FLAGS=cru
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152 if test -n "$ac_tool_prefix"; then
13153 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13154 set dummy ${ac_tool_prefix}strip; ac_word=$2
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13156 $as_echo_n "checking for $ac_word... " >&6; }
13157 if test "${ac_cv_prog_STRIP+set}" = set; then :
13158 $as_echo_n "(cached) " >&6
13159 else
13160 if test -n "$STRIP"; then
13161 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13162 else
13163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13164 for as_dir in $PATH
13165 do
13166 IFS=$as_save_IFS
13167 test -z "$as_dir" && as_dir=.
13168 for ac_exec_ext in '' $ac_executable_extensions; do
13169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13170 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13172 break 2
13173 fi
13174 done
13175 done
13176 IFS=$as_save_IFS
13177
13178 fi
13179 fi
13180 STRIP=$ac_cv_prog_STRIP
13181 if test -n "$STRIP"; then
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13183 $as_echo "$STRIP" >&6; }
13184 else
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13186 $as_echo "no" >&6; }
13187 fi
13188
13189
13190 fi
13191 if test -z "$ac_cv_prog_STRIP"; then
13192 ac_ct_STRIP=$STRIP
13193 # Extract the first word of "strip", so it can be a program name with args.
13194 set dummy strip; ac_word=$2
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13196 $as_echo_n "checking for $ac_word... " >&6; }
13197 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13198 $as_echo_n "(cached) " >&6
13199 else
13200 if test -n "$ac_ct_STRIP"; then
13201 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13202 else
13203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13204 for as_dir in $PATH
13205 do
13206 IFS=$as_save_IFS
13207 test -z "$as_dir" && as_dir=.
13208 for ac_exec_ext in '' $ac_executable_extensions; do
13209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13210 ac_cv_prog_ac_ct_STRIP="strip"
13211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13212 break 2
13213 fi
13214 done
13215 done
13216 IFS=$as_save_IFS
13217
13218 fi
13219 fi
13220 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13221 if test -n "$ac_ct_STRIP"; then
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13223 $as_echo "$ac_ct_STRIP" >&6; }
13224 else
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226 $as_echo "no" >&6; }
13227 fi
13228
13229 if test "x$ac_ct_STRIP" = x; then
13230 STRIP=":"
13231 else
13232 case $cross_compiling:$ac_tool_warned in
13233 yes:)
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13236 ac_tool_warned=yes ;;
13237 esac
13238 STRIP=$ac_ct_STRIP
13239 fi
13240 else
13241 STRIP="$ac_cv_prog_STRIP"
13242 fi
13243
13244 test -z "$STRIP" && STRIP=:
13245
13246
13247
13248
13249
13250
13251 if test -n "$ac_tool_prefix"; then
13252 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13253 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13255 $as_echo_n "checking for $ac_word... " >&6; }
13256 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13257 $as_echo_n "(cached) " >&6
13258 else
13259 if test -n "$RANLIB"; then
13260 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13261 else
13262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13263 for as_dir in $PATH
13264 do
13265 IFS=$as_save_IFS
13266 test -z "$as_dir" && as_dir=.
13267 for ac_exec_ext in '' $ac_executable_extensions; do
13268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13269 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13271 break 2
13272 fi
13273 done
13274 done
13275 IFS=$as_save_IFS
13276
13277 fi
13278 fi
13279 RANLIB=$ac_cv_prog_RANLIB
13280 if test -n "$RANLIB"; then
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13282 $as_echo "$RANLIB" >&6; }
13283 else
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13285 $as_echo "no" >&6; }
13286 fi
13287
13288
13289 fi
13290 if test -z "$ac_cv_prog_RANLIB"; then
13291 ac_ct_RANLIB=$RANLIB
13292 # Extract the first word of "ranlib", so it can be a program name with args.
13293 set dummy ranlib; ac_word=$2
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13295 $as_echo_n "checking for $ac_word... " >&6; }
13296 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13297 $as_echo_n "(cached) " >&6
13298 else
13299 if test -n "$ac_ct_RANLIB"; then
13300 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13301 else
13302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13303 for as_dir in $PATH
13304 do
13305 IFS=$as_save_IFS
13306 test -z "$as_dir" && as_dir=.
13307 for ac_exec_ext in '' $ac_executable_extensions; do
13308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13309 ac_cv_prog_ac_ct_RANLIB="ranlib"
13310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13311 break 2
13312 fi
13313 done
13314 done
13315 IFS=$as_save_IFS
13316
13317 fi
13318 fi
13319 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13320 if test -n "$ac_ct_RANLIB"; then
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13322 $as_echo "$ac_ct_RANLIB" >&6; }
13323 else
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13325 $as_echo "no" >&6; }
13326 fi
13327
13328 if test "x$ac_ct_RANLIB" = x; then
13329 RANLIB=":"
13330 else
13331 case $cross_compiling:$ac_tool_warned in
13332 yes:)
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13335 ac_tool_warned=yes ;;
13336 esac
13337 RANLIB=$ac_ct_RANLIB
13338 fi
13339 else
13340 RANLIB="$ac_cv_prog_RANLIB"
13341 fi
13342
13343 test -z "$RANLIB" && RANLIB=:
13344
13345
13346
13347
13348
13349
13350 # Determine commands to create old-style static archives.
13351 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13352 old_postinstall_cmds='chmod 644 $oldlib'
13353 old_postuninstall_cmds=
13354
13355 if test -n "$RANLIB"; then
13356 case $host_os in
13357 openbsd*)
13358 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13359 ;;
13360 *)
13361 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13362 ;;
13363 esac
13364 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13365 fi
13366
13367 case $host_os in
13368 darwin*)
13369 lock_old_archive_extraction=yes ;;
13370 *)
13371 lock_old_archive_extraction=no ;;
13372 esac
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412 # If no C compiler was specified, use CC.
13413 LTCC=${LTCC-"$CC"}
13414
13415 # If no C compiler flags were specified, use CFLAGS.
13416 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13417
13418 # Allow CC to be a program name with arguments.
13419 compiler=$CC
13420
13421
13422 # Check for command to grab the raw symbol name followed by C symbol from nm.
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13424 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13425 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13426 $as_echo_n "(cached) " >&6
13427 else
13428
13429 # These are sane defaults that work on at least a few old systems.
13430 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13431
13432 # Character class describing NM global symbol codes.
13433 symcode='[BCDEGRST]'
13434
13435 # Regexp to match symbols that can be accessed directly from C.
13436 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13437
13438 # Define system-specific variables.
13439 case $host_os in
13440 aix*)
13441 symcode='[BCDT]'
13442 ;;
13443 cygwin* | mingw* | pw32* | cegcc*)
13444 symcode='[ABCDGISTW]'
13445 ;;
13446 hpux*)
13447 if test "$host_cpu" = ia64; then
13448 symcode='[ABCDEGRST]'
13449 fi
13450 ;;
13451 irix* | nonstopux*)
13452 symcode='[BCDEGRST]'
13453 ;;
13454 osf*)
13455 symcode='[BCDEGQRST]'
13456 ;;
13457 solaris*)
13458 symcode='[BDRT]'
13459 ;;
13460 sco3.2v5*)
13461 symcode='[DT]'
13462 ;;
13463 sysv4.2uw2*)
13464 symcode='[DT]'
13465 ;;
13466 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13467 symcode='[ABDT]'
13468 ;;
13469 sysv4)
13470 symcode='[DFNSTU]'
13471 ;;
13472 esac
13473
13474 # If we're using GNU nm, then use its standard symbol codes.
13475 case `$NM -V 2>&1` in
13476 *GNU* | *'with BFD'*)
13477 symcode='[ABCDGIRSTW]' ;;
13478 esac
13479
13480 # Transform an extracted symbol line into a proper C declaration.
13481 # Some systems (esp. on ia64) link data and code symbols differently,
13482 # so use this general approach.
13483 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13484
13485 # Transform an extracted symbol line into symbol name and symbol address
13486 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13487 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'"
13488
13489 # Handle CRLF in mingw tool chain
13490 opt_cr=
13491 case $build_os in
13492 mingw*)
13493 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13494 ;;
13495 esac
13496
13497 # Try without a prefix underscore, then with it.
13498 for ac_symprfx in "" "_"; do
13499
13500 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13501 symxfrm="\\1 $ac_symprfx\\2 \\2"
13502
13503 # Write the raw and C identifiers.
13504 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13505 # Fake it for dumpbin and say T for any non-static function
13506 # and D for any global variable.
13507 # Also find C++ and __fastcall symbols from MSVC++,
13508 # which start with @ or ?.
13509 lt_cv_sys_global_symbol_pipe="$AWK '"\
13510 " {last_section=section; section=\$ 3};"\
13511 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13512 " \$ 0!~/External *\|/{next};"\
13513 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13514 " {if(hide[section]) next};"\
13515 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13516 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13517 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13518 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13519 " ' prfx=^$ac_symprfx"
13520 else
13521 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13522 fi
13523
13524 # Check to see that the pipe works correctly.
13525 pipe_works=no
13526
13527 rm -f conftest*
13528 cat > conftest.$ac_ext <<_LT_EOF
13529 #ifdef __cplusplus
13530 extern "C" {
13531 #endif
13532 char nm_test_var;
13533 void nm_test_func(void);
13534 void nm_test_func(void){}
13535 #ifdef __cplusplus
13536 }
13537 #endif
13538 int main(){nm_test_var='a';nm_test_func();return(0);}
13539 _LT_EOF
13540
13541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13542 (eval $ac_compile) 2>&5
13543 ac_status=$?
13544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13545 test $ac_status = 0; }; then
13546 # Now try to grab the symbols.
13547 nlist=conftest.nm
13548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13549 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13550 ac_status=$?
13551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13552 test $ac_status = 0; } && test -s "$nlist"; then
13553 # Try sorting and uniquifying the output.
13554 if sort "$nlist" | uniq > "$nlist"T; then
13555 mv -f "$nlist"T "$nlist"
13556 else
13557 rm -f "$nlist"T
13558 fi
13559
13560 # Make sure that we snagged all the symbols we need.
13561 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13562 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13563 cat <<_LT_EOF > conftest.$ac_ext
13564 #ifdef __cplusplus
13565 extern "C" {
13566 #endif
13567
13568 _LT_EOF
13569 # Now generate the symbol file.
13570 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13571
13572 cat <<_LT_EOF >> conftest.$ac_ext
13573
13574 /* The mapping between symbol names and symbols. */
13575 const struct {
13576 const char *name;
13577 void *address;
13578 }
13579 lt__PROGRAM__LTX_preloaded_symbols[] =
13580 {
13581 { "@PROGRAM@", (void *) 0 },
13582 _LT_EOF
13583 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13584 cat <<\_LT_EOF >> conftest.$ac_ext
13585 {0, (void *) 0}
13586 };
13587
13588 /* This works around a problem in FreeBSD linker */
13589 #ifdef FREEBSD_WORKAROUND
13590 static const void *lt_preloaded_setup() {
13591 return lt__PROGRAM__LTX_preloaded_symbols;
13592 }
13593 #endif
13594
13595 #ifdef __cplusplus
13596 }
13597 #endif
13598 _LT_EOF
13599 # Now try linking the two files.
13600 mv conftest.$ac_objext conftstm.$ac_objext
13601 lt_save_LIBS="$LIBS"
13602 lt_save_CFLAGS="$CFLAGS"
13603 LIBS="conftstm.$ac_objext"
13604 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13606 (eval $ac_link) 2>&5
13607 ac_status=$?
13608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13609 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13610 pipe_works=yes
13611 fi
13612 LIBS="$lt_save_LIBS"
13613 CFLAGS="$lt_save_CFLAGS"
13614 else
13615 echo "cannot find nm_test_func in $nlist" >&5
13616 fi
13617 else
13618 echo "cannot find nm_test_var in $nlist" >&5
13619 fi
13620 else
13621 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13622 fi
13623 else
13624 echo "$progname: failed program was:" >&5
13625 cat conftest.$ac_ext >&5
13626 fi
13627 rm -rf conftest* conftst*
13628
13629 # Do not use the global_symbol_pipe unless it works.
13630 if test "$pipe_works" = yes; then
13631 break
13632 else
13633 lt_cv_sys_global_symbol_pipe=
13634 fi
13635 done
13636
13637 fi
13638
13639 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13640 lt_cv_sys_global_symbol_to_cdecl=
13641 fi
13642 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13644 $as_echo "failed" >&6; }
13645 else
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13647 $as_echo "ok" >&6; }
13648 fi
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671 # Check whether --enable-libtool-lock was given.
13672 if test "${enable_libtool_lock+set}" = set; then :
13673 enableval=$enable_libtool_lock;
13674 fi
13675
13676 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13677
13678 # Some flags need to be propagated to the compiler or linker for good
13679 # libtool support.
13680 case $host in
13681 ia64-*-hpux*)
13682 # Find out which ABI we are using.
13683 echo 'int i;' > conftest.$ac_ext
13684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13685 (eval $ac_compile) 2>&5
13686 ac_status=$?
13687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13688 test $ac_status = 0; }; then
13689 case `/usr/bin/file conftest.$ac_objext` in
13690 *ELF-32*)
13691 HPUX_IA64_MODE="32"
13692 ;;
13693 *ELF-64*)
13694 HPUX_IA64_MODE="64"
13695 ;;
13696 esac
13697 fi
13698 rm -rf conftest*
13699 ;;
13700 *-*-irix6*)
13701 # Find out which ABI we are using.
13702 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13704 (eval $ac_compile) 2>&5
13705 ac_status=$?
13706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13707 test $ac_status = 0; }; then
13708 if test "$lt_cv_prog_gnu_ld" = yes; then
13709 case `/usr/bin/file conftest.$ac_objext` in
13710 *32-bit*)
13711 LD="${LD-ld} -melf32bsmip"
13712 ;;
13713 *N32*)
13714 LD="${LD-ld} -melf32bmipn32"
13715 ;;
13716 *64-bit*)
13717 LD="${LD-ld} -melf64bmip"
13718 ;;
13719 esac
13720 else
13721 case `/usr/bin/file conftest.$ac_objext` in
13722 *32-bit*)
13723 LD="${LD-ld} -32"
13724 ;;
13725 *N32*)
13726 LD="${LD-ld} -n32"
13727 ;;
13728 *64-bit*)
13729 LD="${LD-ld} -64"
13730 ;;
13731 esac
13732 fi
13733 fi
13734 rm -rf conftest*
13735 ;;
13736
13737 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13738 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13739 # Find out which ABI we are using.
13740 echo 'int i;' > conftest.$ac_ext
13741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13742 (eval $ac_compile) 2>&5
13743 ac_status=$?
13744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13745 test $ac_status = 0; }; then
13746 case `/usr/bin/file conftest.o` in
13747 *32-bit*)
13748 case $host in
13749 x86_64-*kfreebsd*-gnu)
13750 LD="${LD-ld} -m elf_i386_fbsd"
13751 ;;
13752 x86_64-*linux*)
13753 case `/usr/bin/file conftest.o` in
13754 *x86-64*)
13755 LD="${LD-ld} -m elf32_x86_64"
13756 ;;
13757 *)
13758 LD="${LD-ld} -m elf_i386"
13759 ;;
13760 esac
13761 ;;
13762 ppc64-*linux*|powerpc64-*linux*)
13763 LD="${LD-ld} -m elf32ppclinux"
13764 ;;
13765 s390x-*linux*)
13766 LD="${LD-ld} -m elf_s390"
13767 ;;
13768 sparc64-*linux*)
13769 LD="${LD-ld} -m elf32_sparc"
13770 ;;
13771 esac
13772 ;;
13773 *64-bit*)
13774 case $host in
13775 x86_64-*kfreebsd*-gnu)
13776 LD="${LD-ld} -m elf_x86_64_fbsd"
13777 ;;
13778 x86_64-*linux*)
13779 LD="${LD-ld} -m elf_x86_64"
13780 ;;
13781 ppc*-*linux*|powerpc*-*linux*)
13782 LD="${LD-ld} -m elf64ppc"
13783 ;;
13784 s390*-*linux*|s390*-*tpf*)
13785 LD="${LD-ld} -m elf64_s390"
13786 ;;
13787 sparc*-*linux*)
13788 LD="${LD-ld} -m elf64_sparc"
13789 ;;
13790 esac
13791 ;;
13792 esac
13793 fi
13794 rm -rf conftest*
13795 ;;
13796
13797 *-*-sco3.2v5*)
13798 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13799 SAVE_CFLAGS="$CFLAGS"
13800 CFLAGS="$CFLAGS -belf"
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13802 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13803 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13804 $as_echo_n "(cached) " >&6
13805 else
13806 ac_ext=c
13807 ac_cpp='$CPP $CPPFLAGS'
13808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13811
13812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813 /* end confdefs.h. */
13814
13815 int
13816 main ()
13817 {
13818
13819 ;
13820 return 0;
13821 }
13822 _ACEOF
13823 if ac_fn_c_try_link "$LINENO"; then :
13824 lt_cv_cc_needs_belf=yes
13825 else
13826 lt_cv_cc_needs_belf=no
13827 fi
13828 rm -f core conftest.err conftest.$ac_objext \
13829 conftest$ac_exeext conftest.$ac_ext
13830 ac_ext=c
13831 ac_cpp='$CPP $CPPFLAGS'
13832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13835
13836 fi
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13838 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13839 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13840 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13841 CFLAGS="$SAVE_CFLAGS"
13842 fi
13843 ;;
13844 sparc*-*solaris*)
13845 # Find out which ABI we are using.
13846 echo 'int i;' > conftest.$ac_ext
13847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13848 (eval $ac_compile) 2>&5
13849 ac_status=$?
13850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13851 test $ac_status = 0; }; then
13852 case `/usr/bin/file conftest.o` in
13853 *64-bit*)
13854 case $lt_cv_prog_gnu_ld in
13855 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13856 *)
13857 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13858 LD="${LD-ld} -64"
13859 fi
13860 ;;
13861 esac
13862 ;;
13863 esac
13864 fi
13865 rm -rf conftest*
13866 ;;
13867 esac
13868
13869 need_locks="$enable_libtool_lock"
13870
13871
13872 case $host_os in
13873 rhapsody* | darwin*)
13874 if test -n "$ac_tool_prefix"; then
13875 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13876 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13878 $as_echo_n "checking for $ac_word... " >&6; }
13879 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13880 $as_echo_n "(cached) " >&6
13881 else
13882 if test -n "$DSYMUTIL"; then
13883 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13884 else
13885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13886 for as_dir in $PATH
13887 do
13888 IFS=$as_save_IFS
13889 test -z "$as_dir" && as_dir=.
13890 for ac_exec_ext in '' $ac_executable_extensions; do
13891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13892 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13894 break 2
13895 fi
13896 done
13897 done
13898 IFS=$as_save_IFS
13899
13900 fi
13901 fi
13902 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13903 if test -n "$DSYMUTIL"; then
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13905 $as_echo "$DSYMUTIL" >&6; }
13906 else
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13908 $as_echo "no" >&6; }
13909 fi
13910
13911
13912 fi
13913 if test -z "$ac_cv_prog_DSYMUTIL"; then
13914 ac_ct_DSYMUTIL=$DSYMUTIL
13915 # Extract the first word of "dsymutil", so it can be a program name with args.
13916 set dummy dsymutil; ac_word=$2
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13918 $as_echo_n "checking for $ac_word... " >&6; }
13919 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13920 $as_echo_n "(cached) " >&6
13921 else
13922 if test -n "$ac_ct_DSYMUTIL"; then
13923 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13924 else
13925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13926 for as_dir in $PATH
13927 do
13928 IFS=$as_save_IFS
13929 test -z "$as_dir" && as_dir=.
13930 for ac_exec_ext in '' $ac_executable_extensions; do
13931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13932 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13934 break 2
13935 fi
13936 done
13937 done
13938 IFS=$as_save_IFS
13939
13940 fi
13941 fi
13942 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13943 if test -n "$ac_ct_DSYMUTIL"; then
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13945 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13946 else
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13948 $as_echo "no" >&6; }
13949 fi
13950
13951 if test "x$ac_ct_DSYMUTIL" = x; then
13952 DSYMUTIL=":"
13953 else
13954 case $cross_compiling:$ac_tool_warned in
13955 yes:)
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13958 ac_tool_warned=yes ;;
13959 esac
13960 DSYMUTIL=$ac_ct_DSYMUTIL
13961 fi
13962 else
13963 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13964 fi
13965
13966 if test -n "$ac_tool_prefix"; then
13967 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13968 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13970 $as_echo_n "checking for $ac_word... " >&6; }
13971 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13972 $as_echo_n "(cached) " >&6
13973 else
13974 if test -n "$NMEDIT"; then
13975 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13976 else
13977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13978 for as_dir in $PATH
13979 do
13980 IFS=$as_save_IFS
13981 test -z "$as_dir" && as_dir=.
13982 for ac_exec_ext in '' $ac_executable_extensions; do
13983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13984 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13986 break 2
13987 fi
13988 done
13989 done
13990 IFS=$as_save_IFS
13991
13992 fi
13993 fi
13994 NMEDIT=$ac_cv_prog_NMEDIT
13995 if test -n "$NMEDIT"; then
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13997 $as_echo "$NMEDIT" >&6; }
13998 else
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14000 $as_echo "no" >&6; }
14001 fi
14002
14003
14004 fi
14005 if test -z "$ac_cv_prog_NMEDIT"; then
14006 ac_ct_NMEDIT=$NMEDIT
14007 # Extract the first word of "nmedit", so it can be a program name with args.
14008 set dummy nmedit; ac_word=$2
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14010 $as_echo_n "checking for $ac_word... " >&6; }
14011 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14012 $as_echo_n "(cached) " >&6
14013 else
14014 if test -n "$ac_ct_NMEDIT"; then
14015 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14016 else
14017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14018 for as_dir in $PATH
14019 do
14020 IFS=$as_save_IFS
14021 test -z "$as_dir" && as_dir=.
14022 for ac_exec_ext in '' $ac_executable_extensions; do
14023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14024 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14026 break 2
14027 fi
14028 done
14029 done
14030 IFS=$as_save_IFS
14031
14032 fi
14033 fi
14034 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14035 if test -n "$ac_ct_NMEDIT"; then
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14037 $as_echo "$ac_ct_NMEDIT" >&6; }
14038 else
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14040 $as_echo "no" >&6; }
14041 fi
14042
14043 if test "x$ac_ct_NMEDIT" = x; then
14044 NMEDIT=":"
14045 else
14046 case $cross_compiling:$ac_tool_warned in
14047 yes:)
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14050 ac_tool_warned=yes ;;
14051 esac
14052 NMEDIT=$ac_ct_NMEDIT
14053 fi
14054 else
14055 NMEDIT="$ac_cv_prog_NMEDIT"
14056 fi
14057
14058 if test -n "$ac_tool_prefix"; then
14059 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14060 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14062 $as_echo_n "checking for $ac_word... " >&6; }
14063 if test "${ac_cv_prog_LIPO+set}" = set; then :
14064 $as_echo_n "(cached) " >&6
14065 else
14066 if test -n "$LIPO"; then
14067 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14068 else
14069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14070 for as_dir in $PATH
14071 do
14072 IFS=$as_save_IFS
14073 test -z "$as_dir" && as_dir=.
14074 for ac_exec_ext in '' $ac_executable_extensions; do
14075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14076 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14078 break 2
14079 fi
14080 done
14081 done
14082 IFS=$as_save_IFS
14083
14084 fi
14085 fi
14086 LIPO=$ac_cv_prog_LIPO
14087 if test -n "$LIPO"; then
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14089 $as_echo "$LIPO" >&6; }
14090 else
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14092 $as_echo "no" >&6; }
14093 fi
14094
14095
14096 fi
14097 if test -z "$ac_cv_prog_LIPO"; then
14098 ac_ct_LIPO=$LIPO
14099 # Extract the first word of "lipo", so it can be a program name with args.
14100 set dummy lipo; ac_word=$2
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14102 $as_echo_n "checking for $ac_word... " >&6; }
14103 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14104 $as_echo_n "(cached) " >&6
14105 else
14106 if test -n "$ac_ct_LIPO"; then
14107 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14108 else
14109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14110 for as_dir in $PATH
14111 do
14112 IFS=$as_save_IFS
14113 test -z "$as_dir" && as_dir=.
14114 for ac_exec_ext in '' $ac_executable_extensions; do
14115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14116 ac_cv_prog_ac_ct_LIPO="lipo"
14117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14118 break 2
14119 fi
14120 done
14121 done
14122 IFS=$as_save_IFS
14123
14124 fi
14125 fi
14126 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14127 if test -n "$ac_ct_LIPO"; then
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14129 $as_echo "$ac_ct_LIPO" >&6; }
14130 else
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14132 $as_echo "no" >&6; }
14133 fi
14134
14135 if test "x$ac_ct_LIPO" = x; then
14136 LIPO=":"
14137 else
14138 case $cross_compiling:$ac_tool_warned in
14139 yes:)
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14142 ac_tool_warned=yes ;;
14143 esac
14144 LIPO=$ac_ct_LIPO
14145 fi
14146 else
14147 LIPO="$ac_cv_prog_LIPO"
14148 fi
14149
14150 if test -n "$ac_tool_prefix"; then
14151 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14152 set dummy ${ac_tool_prefix}otool; ac_word=$2
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14154 $as_echo_n "checking for $ac_word... " >&6; }
14155 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14156 $as_echo_n "(cached) " >&6
14157 else
14158 if test -n "$OTOOL"; then
14159 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14160 else
14161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14162 for as_dir in $PATH
14163 do
14164 IFS=$as_save_IFS
14165 test -z "$as_dir" && as_dir=.
14166 for ac_exec_ext in '' $ac_executable_extensions; do
14167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14168 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14170 break 2
14171 fi
14172 done
14173 done
14174 IFS=$as_save_IFS
14175
14176 fi
14177 fi
14178 OTOOL=$ac_cv_prog_OTOOL
14179 if test -n "$OTOOL"; then
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14181 $as_echo "$OTOOL" >&6; }
14182 else
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14184 $as_echo "no" >&6; }
14185 fi
14186
14187
14188 fi
14189 if test -z "$ac_cv_prog_OTOOL"; then
14190 ac_ct_OTOOL=$OTOOL
14191 # Extract the first word of "otool", so it can be a program name with args.
14192 set dummy otool; ac_word=$2
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14194 $as_echo_n "checking for $ac_word... " >&6; }
14195 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14196 $as_echo_n "(cached) " >&6
14197 else
14198 if test -n "$ac_ct_OTOOL"; then
14199 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14200 else
14201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14202 for as_dir in $PATH
14203 do
14204 IFS=$as_save_IFS
14205 test -z "$as_dir" && as_dir=.
14206 for ac_exec_ext in '' $ac_executable_extensions; do
14207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14208 ac_cv_prog_ac_ct_OTOOL="otool"
14209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14210 break 2
14211 fi
14212 done
14213 done
14214 IFS=$as_save_IFS
14215
14216 fi
14217 fi
14218 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14219 if test -n "$ac_ct_OTOOL"; then
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14221 $as_echo "$ac_ct_OTOOL" >&6; }
14222 else
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14224 $as_echo "no" >&6; }
14225 fi
14226
14227 if test "x$ac_ct_OTOOL" = x; then
14228 OTOOL=":"
14229 else
14230 case $cross_compiling:$ac_tool_warned in
14231 yes:)
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14234 ac_tool_warned=yes ;;
14235 esac
14236 OTOOL=$ac_ct_OTOOL
14237 fi
14238 else
14239 OTOOL="$ac_cv_prog_OTOOL"
14240 fi
14241
14242 if test -n "$ac_tool_prefix"; then
14243 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14244 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14246 $as_echo_n "checking for $ac_word... " >&6; }
14247 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14248 $as_echo_n "(cached) " >&6
14249 else
14250 if test -n "$OTOOL64"; then
14251 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14252 else
14253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14254 for as_dir in $PATH
14255 do
14256 IFS=$as_save_IFS
14257 test -z "$as_dir" && as_dir=.
14258 for ac_exec_ext in '' $ac_executable_extensions; do
14259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14260 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14262 break 2
14263 fi
14264 done
14265 done
14266 IFS=$as_save_IFS
14267
14268 fi
14269 fi
14270 OTOOL64=$ac_cv_prog_OTOOL64
14271 if test -n "$OTOOL64"; then
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14273 $as_echo "$OTOOL64" >&6; }
14274 else
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14276 $as_echo "no" >&6; }
14277 fi
14278
14279
14280 fi
14281 if test -z "$ac_cv_prog_OTOOL64"; then
14282 ac_ct_OTOOL64=$OTOOL64
14283 # Extract the first word of "otool64", so it can be a program name with args.
14284 set dummy otool64; ac_word=$2
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14286 $as_echo_n "checking for $ac_word... " >&6; }
14287 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14288 $as_echo_n "(cached) " >&6
14289 else
14290 if test -n "$ac_ct_OTOOL64"; then
14291 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14292 else
14293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14294 for as_dir in $PATH
14295 do
14296 IFS=$as_save_IFS
14297 test -z "$as_dir" && as_dir=.
14298 for ac_exec_ext in '' $ac_executable_extensions; do
14299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14300 ac_cv_prog_ac_ct_OTOOL64="otool64"
14301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14302 break 2
14303 fi
14304 done
14305 done
14306 IFS=$as_save_IFS
14307
14308 fi
14309 fi
14310 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14311 if test -n "$ac_ct_OTOOL64"; then
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14313 $as_echo "$ac_ct_OTOOL64" >&6; }
14314 else
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14316 $as_echo "no" >&6; }
14317 fi
14318
14319 if test "x$ac_ct_OTOOL64" = x; then
14320 OTOOL64=":"
14321 else
14322 case $cross_compiling:$ac_tool_warned in
14323 yes:)
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14326 ac_tool_warned=yes ;;
14327 esac
14328 OTOOL64=$ac_ct_OTOOL64
14329 fi
14330 else
14331 OTOOL64="$ac_cv_prog_OTOOL64"
14332 fi
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
14359
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14361 $as_echo_n "checking for -single_module linker flag... " >&6; }
14362 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14363 $as_echo_n "(cached) " >&6
14364 else
14365 lt_cv_apple_cc_single_mod=no
14366 if test -z "${LT_MULTI_MODULE}"; then
14367 # By default we will add the -single_module flag. You can override
14368 # by either setting the environment variable LT_MULTI_MODULE
14369 # non-empty at configure time, or by adding -multi_module to the
14370 # link flags.
14371 rm -rf libconftest.dylib*
14372 echo "int foo(void){return 1;}" > conftest.c
14373 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14374 -dynamiclib -Wl,-single_module conftest.c" >&5
14375 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14376 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14377 _lt_result=$?
14378 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14379 lt_cv_apple_cc_single_mod=yes
14380 else
14381 cat conftest.err >&5
14382 fi
14383 rm -rf libconftest.dylib*
14384 rm -f conftest.*
14385 fi
14386 fi
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14388 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14390 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14391 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14392 $as_echo_n "(cached) " >&6
14393 else
14394 lt_cv_ld_exported_symbols_list=no
14395 save_LDFLAGS=$LDFLAGS
14396 echo "_main" > conftest.sym
14397 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14399 /* end confdefs.h. */
14400
14401 int
14402 main ()
14403 {
14404
14405 ;
14406 return 0;
14407 }
14408 _ACEOF
14409 if ac_fn_c_try_link "$LINENO"; then :
14410 lt_cv_ld_exported_symbols_list=yes
14411 else
14412 lt_cv_ld_exported_symbols_list=no
14413 fi
14414 rm -f core conftest.err conftest.$ac_objext \
14415 conftest$ac_exeext conftest.$ac_ext
14416 LDFLAGS="$save_LDFLAGS"
14417
14418 fi
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14420 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14422 $as_echo_n "checking for -force_load linker flag... " >&6; }
14423 if test "${lt_cv_ld_force_load+set}" = set; then :
14424 $as_echo_n "(cached) " >&6
14425 else
14426 lt_cv_ld_force_load=no
14427 cat > conftest.c << _LT_EOF
14428 int forced_loaded() { return 2;}
14429 _LT_EOF
14430 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14431 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14432 echo "$AR cru libconftest.a conftest.o" >&5
14433 $AR cru libconftest.a conftest.o 2>&5
14434 cat > conftest.c << _LT_EOF
14435 int main() { return 0;}
14436 _LT_EOF
14437 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14438 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14439 _lt_result=$?
14440 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14441 lt_cv_ld_force_load=yes
14442 else
14443 cat conftest.err >&5
14444 fi
14445 rm -f conftest.err libconftest.a conftest conftest.c
14446 rm -rf conftest.dSYM
14447
14448 fi
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14450 $as_echo "$lt_cv_ld_force_load" >&6; }
14451 case $host_os in
14452 rhapsody* | darwin1.[012])
14453 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14454 darwin1.*)
14455 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14456 darwin*) # darwin 5.x on
14457 # if running on 10.5 or later, the deployment target defaults
14458 # to the OS version, if on x86, and 10.4, the deployment
14459 # target defaults to 10.4. Don't you love it?
14460 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14461 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14462 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14463 10.[012]*)
14464 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14465 10.*)
14466 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14467 esac
14468 ;;
14469 esac
14470 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14471 _lt_dar_single_mod='$single_module'
14472 fi
14473 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14474 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14475 else
14476 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14477 fi
14478 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14479 _lt_dsymutil='~$DSYMUTIL $lib || :'
14480 else
14481 _lt_dsymutil=
14482 fi
14483 ;;
14484 esac
14485
14486 for ac_header in dlfcn.h
14487 do :
14488 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14489 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14490 cat >>confdefs.h <<_ACEOF
14491 #define HAVE_DLFCN_H 1
14492 _ACEOF
14493
14494 fi
14495 done
14496
14497
14498
14499
14500
14501 # Set options
14502
14503
14504
14505 enable_dlopen=no
14506
14507
14508 enable_win32_dll=no
14509
14510
14511 # Check whether --enable-shared was given.
14512 if test "${enable_shared+set}" = set; then :
14513 enableval=$enable_shared; p=${PACKAGE-default}
14514 case $enableval in
14515 yes) enable_shared=yes ;;
14516 no) enable_shared=no ;;
14517 *)
14518 enable_shared=no
14519 # Look at the argument we got. We use all the common list separators.
14520 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14521 for pkg in $enableval; do
14522 IFS="$lt_save_ifs"
14523 if test "X$pkg" = "X$p"; then
14524 enable_shared=yes
14525 fi
14526 done
14527 IFS="$lt_save_ifs"
14528 ;;
14529 esac
14530 else
14531 enable_shared=yes
14532 fi
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542 # Check whether --enable-static was given.
14543 if test "${enable_static+set}" = set; then :
14544 enableval=$enable_static; p=${PACKAGE-default}
14545 case $enableval in
14546 yes) enable_static=yes ;;
14547 no) enable_static=no ;;
14548 *)
14549 enable_static=no
14550 # Look at the argument we got. We use all the common list separators.
14551 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14552 for pkg in $enableval; do
14553 IFS="$lt_save_ifs"
14554 if test "X$pkg" = "X$p"; then
14555 enable_static=yes
14556 fi
14557 done
14558 IFS="$lt_save_ifs"
14559 ;;
14560 esac
14561 else
14562 enable_static=yes
14563 fi
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574 # Check whether --with-pic was given.
14575 if test "${with_pic+set}" = set; then :
14576 withval=$with_pic; pic_mode="$withval"
14577 else
14578 pic_mode=default
14579 fi
14580
14581
14582 test -z "$pic_mode" && pic_mode=default
14583
14584
14585
14586
14587
14588
14589
14590 # Check whether --enable-fast-install was given.
14591 if test "${enable_fast_install+set}" = set; then :
14592 enableval=$enable_fast_install; p=${PACKAGE-default}
14593 case $enableval in
14594 yes) enable_fast_install=yes ;;
14595 no) enable_fast_install=no ;;
14596 *)
14597 enable_fast_install=no
14598 # Look at the argument we got. We use all the common list separators.
14599 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14600 for pkg in $enableval; do
14601 IFS="$lt_save_ifs"
14602 if test "X$pkg" = "X$p"; then
14603 enable_fast_install=yes
14604 fi
14605 done
14606 IFS="$lt_save_ifs"
14607 ;;
14608 esac
14609 else
14610 enable_fast_install=yes
14611 fi
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623 # This can be used to rebuild libtool when needed
14624 LIBTOOL_DEPS="$ltmain"
14625
14626 # Always use our own libtool.
14627 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
14653
14654 test -z "$LN_S" && LN_S="ln -s"
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669 if test -n "${ZSH_VERSION+set}" ; then
14670 setopt NO_GLOB_SUBST
14671 fi
14672
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14674 $as_echo_n "checking for objdir... " >&6; }
14675 if test "${lt_cv_objdir+set}" = set; then :
14676 $as_echo_n "(cached) " >&6
14677 else
14678 rm -f .libs 2>/dev/null
14679 mkdir .libs 2>/dev/null
14680 if test -d .libs; then
14681 lt_cv_objdir=.libs
14682 else
14683 # MS-DOS does not allow filenames that begin with a dot.
14684 lt_cv_objdir=_libs
14685 fi
14686 rmdir .libs 2>/dev/null
14687 fi
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14689 $as_echo "$lt_cv_objdir" >&6; }
14690 objdir=$lt_cv_objdir
14691
14692
14693
14694
14695
14696 cat >>confdefs.h <<_ACEOF
14697 #define LT_OBJDIR "$lt_cv_objdir/"
14698 _ACEOF
14699
14700
14701
14702
14703 case $host_os in
14704 aix3*)
14705 # AIX sometimes has problems with the GCC collect2 program. For some
14706 # reason, if we set the COLLECT_NAMES environment variable, the problems
14707 # vanish in a puff of smoke.
14708 if test "X${COLLECT_NAMES+set}" != Xset; then
14709 COLLECT_NAMES=
14710 export COLLECT_NAMES
14711 fi
14712 ;;
14713 esac
14714
14715 # Global variables:
14716 ofile=libtool
14717 can_build_shared=yes
14718
14719 # All known linkers require a `.a' archive for static linking (except MSVC,
14720 # which needs '.lib').
14721 libext=a
14722
14723 with_gnu_ld="$lt_cv_prog_gnu_ld"
14724
14725 old_CC="$CC"
14726 old_CFLAGS="$CFLAGS"
14727
14728 # Set sane defaults for various variables
14729 test -z "$CC" && CC=cc
14730 test -z "$LTCC" && LTCC=$CC
14731 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14732 test -z "$LD" && LD=ld
14733 test -z "$ac_objext" && ac_objext=o
14734
14735 for cc_temp in $compiler""; do
14736 case $cc_temp in
14737 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14738 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14739 \-*) ;;
14740 *) break;;
14741 esac
14742 done
14743 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14744
14745
14746 # Only perform the check for file, if the check method requires it
14747 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14748 case $deplibs_check_method in
14749 file_magic*)
14750 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14752 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14753 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14754 $as_echo_n "(cached) " >&6
14755 else
14756 case $MAGIC_CMD in
14757 [\\/*] | ?:[\\/]*)
14758 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14759 ;;
14760 *)
14761 lt_save_MAGIC_CMD="$MAGIC_CMD"
14762 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14763 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14764 for ac_dir in $ac_dummy; do
14765 IFS="$lt_save_ifs"
14766 test -z "$ac_dir" && ac_dir=.
14767 if test -f $ac_dir/${ac_tool_prefix}file; then
14768 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14769 if test -n "$file_magic_test_file"; then
14770 case $deplibs_check_method in
14771 "file_magic "*)
14772 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14773 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14774 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14775 $EGREP "$file_magic_regex" > /dev/null; then
14776 :
14777 else
14778 cat <<_LT_EOF 1>&2
14779
14780 *** Warning: the command libtool uses to detect shared libraries,
14781 *** $file_magic_cmd, produces output that libtool cannot recognize.
14782 *** The result is that libtool may fail to recognize shared libraries
14783 *** as such. This will affect the creation of libtool libraries that
14784 *** depend on shared libraries, but programs linked with such libtool
14785 *** libraries will work regardless of this problem. Nevertheless, you
14786 *** may want to report the problem to your system manager and/or to
14787 *** bug-libtool@gnu.org
14788
14789 _LT_EOF
14790 fi ;;
14791 esac
14792 fi
14793 break
14794 fi
14795 done
14796 IFS="$lt_save_ifs"
14797 MAGIC_CMD="$lt_save_MAGIC_CMD"
14798 ;;
14799 esac
14800 fi
14801
14802 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14803 if test -n "$MAGIC_CMD"; then
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14805 $as_echo "$MAGIC_CMD" >&6; }
14806 else
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14808 $as_echo "no" >&6; }
14809 fi
14810
14811
14812
14813
14814
14815 if test -z "$lt_cv_path_MAGIC_CMD"; then
14816 if test -n "$ac_tool_prefix"; then
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14818 $as_echo_n "checking for file... " >&6; }
14819 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14820 $as_echo_n "(cached) " >&6
14821 else
14822 case $MAGIC_CMD in
14823 [\\/*] | ?:[\\/]*)
14824 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14825 ;;
14826 *)
14827 lt_save_MAGIC_CMD="$MAGIC_CMD"
14828 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14829 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14830 for ac_dir in $ac_dummy; do
14831 IFS="$lt_save_ifs"
14832 test -z "$ac_dir" && ac_dir=.
14833 if test -f $ac_dir/file; then
14834 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14835 if test -n "$file_magic_test_file"; then
14836 case $deplibs_check_method in
14837 "file_magic "*)
14838 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14839 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14840 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14841 $EGREP "$file_magic_regex" > /dev/null; then
14842 :
14843 else
14844 cat <<_LT_EOF 1>&2
14845
14846 *** Warning: the command libtool uses to detect shared libraries,
14847 *** $file_magic_cmd, produces output that libtool cannot recognize.
14848 *** The result is that libtool may fail to recognize shared libraries
14849 *** as such. This will affect the creation of libtool libraries that
14850 *** depend on shared libraries, but programs linked with such libtool
14851 *** libraries will work regardless of this problem. Nevertheless, you
14852 *** may want to report the problem to your system manager and/or to
14853 *** bug-libtool@gnu.org
14854
14855 _LT_EOF
14856 fi ;;
14857 esac
14858 fi
14859 break
14860 fi
14861 done
14862 IFS="$lt_save_ifs"
14863 MAGIC_CMD="$lt_save_MAGIC_CMD"
14864 ;;
14865 esac
14866 fi
14867
14868 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14869 if test -n "$MAGIC_CMD"; then
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14871 $as_echo "$MAGIC_CMD" >&6; }
14872 else
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14874 $as_echo "no" >&6; }
14875 fi
14876
14877
14878 else
14879 MAGIC_CMD=:
14880 fi
14881 fi
14882
14883 fi
14884 ;;
14885 esac
14886
14887 # Use C for the default configuration in the libtool script
14888
14889 lt_save_CC="$CC"
14890 ac_ext=c
14891 ac_cpp='$CPP $CPPFLAGS'
14892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14895
14896
14897 # Source file extension for C test sources.
14898 ac_ext=c
14899
14900 # Object file extension for compiled C test sources.
14901 objext=o
14902 objext=$objext
14903
14904 # Code to be used in simple compile tests
14905 lt_simple_compile_test_code="int some_variable = 0;"
14906
14907 # Code to be used in simple link tests
14908 lt_simple_link_test_code='int main(){return(0);}'
14909
14910
14911
14912
14913
14914
14915
14916 # If no C compiler was specified, use CC.
14917 LTCC=${LTCC-"$CC"}
14918
14919 # If no C compiler flags were specified, use CFLAGS.
14920 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14921
14922 # Allow CC to be a program name with arguments.
14923 compiler=$CC
14924
14925 # Save the default compiler, since it gets overwritten when the other
14926 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14927 compiler_DEFAULT=$CC
14928
14929 # save warnings/boilerplate of simple test code
14930 ac_outfile=conftest.$ac_objext
14931 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14932 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14933 _lt_compiler_boilerplate=`cat conftest.err`
14934 $RM conftest*
14935
14936 ac_outfile=conftest.$ac_objext
14937 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14938 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14939 _lt_linker_boilerplate=`cat conftest.err`
14940 $RM -r conftest*
14941
14942
14943 ## CAVEAT EMPTOR:
14944 ## There is no encapsulation within the following macros, do not change
14945 ## the running order or otherwise move them around unless you know exactly
14946 ## what you are doing...
14947 if test -n "$compiler"; then
14948
14949 lt_prog_compiler_no_builtin_flag=
14950
14951 if test "$GCC" = yes; then
14952 case $cc_basename in
14953 nvcc*)
14954 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14955 *)
14956 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14957 esac
14958
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14960 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14961 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14962 $as_echo_n "(cached) " >&6
14963 else
14964 lt_cv_prog_compiler_rtti_exceptions=no
14965 ac_outfile=conftest.$ac_objext
14966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14967 lt_compiler_flag="-fno-rtti -fno-exceptions"
14968 # Insert the option either (1) after the last *FLAGS variable, or
14969 # (2) before a word containing "conftest.", or (3) at the end.
14970 # Note that $ac_compile itself does not contain backslashes and begins
14971 # with a dollar sign (not a hyphen), so the echo should work correctly.
14972 # The option is referenced via a variable to avoid confusing sed.
14973 lt_compile=`echo "$ac_compile" | $SED \
14974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14976 -e 's:$: $lt_compiler_flag:'`
14977 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14978 (eval "$lt_compile" 2>conftest.err)
14979 ac_status=$?
14980 cat conftest.err >&5
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 if (exit $ac_status) && test -s "$ac_outfile"; then
14983 # The compiler can only warn and ignore the option if not recognized
14984 # So say no if there are warnings other than the usual output.
14985 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14986 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14987 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14988 lt_cv_prog_compiler_rtti_exceptions=yes
14989 fi
14990 fi
14991 $RM conftest*
14992
14993 fi
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14995 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14996
14997 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14998 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14999 else
15000 :
15001 fi
15002
15003 fi
15004
15005
15006
15007
15008
15009
15010 lt_prog_compiler_wl=
15011 lt_prog_compiler_pic=
15012 lt_prog_compiler_static=
15013
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15015 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15016
15017 if test "$GCC" = yes; then
15018 lt_prog_compiler_wl='-Wl,'
15019 lt_prog_compiler_static='-static'
15020
15021 case $host_os in
15022 aix*)
15023 # All AIX code is PIC.
15024 if test "$host_cpu" = ia64; then
15025 # AIX 5 now supports IA64 processor
15026 lt_prog_compiler_static='-Bstatic'
15027 fi
15028 ;;
15029
15030 amigaos*)
15031 case $host_cpu in
15032 powerpc)
15033 # see comment about AmigaOS4 .so support
15034 lt_prog_compiler_pic='-fPIC'
15035 ;;
15036 m68k)
15037 # FIXME: we need at least 68020 code to build shared libraries, but
15038 # adding the `-m68020' flag to GCC prevents building anything better,
15039 # like `-m68040'.
15040 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15041 ;;
15042 esac
15043 ;;
15044
15045 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15046 # PIC is the default for these OSes.
15047 ;;
15048
15049 mingw* | cygwin* | pw32* | os2* | cegcc*)
15050 # This hack is so that the source file can tell whether it is being
15051 # built for inclusion in a dll (and should export symbols for example).
15052 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15053 # (--disable-auto-import) libraries
15054 lt_prog_compiler_pic='-DDLL_EXPORT'
15055 ;;
15056
15057 darwin* | rhapsody*)
15058 # PIC is the default on this platform
15059 # Common symbols not allowed in MH_DYLIB files
15060 lt_prog_compiler_pic='-fno-common'
15061 ;;
15062
15063 haiku*)
15064 # PIC is the default for Haiku.
15065 # The "-static" flag exists, but is broken.
15066 lt_prog_compiler_static=
15067 ;;
15068
15069 hpux*)
15070 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15071 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15072 # sets the default TLS model and affects inlining.
15073 case $host_cpu in
15074 hppa*64*)
15075 # +Z the default
15076 ;;
15077 *)
15078 lt_prog_compiler_pic='-fPIC'
15079 ;;
15080 esac
15081 ;;
15082
15083 interix[3-9]*)
15084 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15085 # Instead, we relocate shared libraries at runtime.
15086 ;;
15087
15088 msdosdjgpp*)
15089 # Just because we use GCC doesn't mean we suddenly get shared libraries
15090 # on systems that don't support them.
15091 lt_prog_compiler_can_build_shared=no
15092 enable_shared=no
15093 ;;
15094
15095 *nto* | *qnx*)
15096 # QNX uses GNU C++, but need to define -shared option too, otherwise
15097 # it will coredump.
15098 lt_prog_compiler_pic='-fPIC -shared'
15099 ;;
15100
15101 sysv4*MP*)
15102 if test -d /usr/nec; then
15103 lt_prog_compiler_pic=-Kconform_pic
15104 fi
15105 ;;
15106
15107 *)
15108 lt_prog_compiler_pic='-fPIC'
15109 ;;
15110 esac
15111
15112 case $cc_basename in
15113 nvcc*) # Cuda Compiler Driver 2.2
15114 lt_prog_compiler_wl='-Xlinker '
15115 lt_prog_compiler_pic='-Xcompiler -fPIC'
15116 ;;
15117 esac
15118 else
15119 # PORTME Check for flag to pass linker flags through the system compiler.
15120 case $host_os in
15121 aix*)
15122 lt_prog_compiler_wl='-Wl,'
15123 if test "$host_cpu" = ia64; then
15124 # AIX 5 now supports IA64 processor
15125 lt_prog_compiler_static='-Bstatic'
15126 else
15127 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15128 fi
15129 ;;
15130
15131 mingw* | cygwin* | pw32* | os2* | cegcc*)
15132 # This hack is so that the source file can tell whether it is being
15133 # built for inclusion in a dll (and should export symbols for example).
15134 lt_prog_compiler_pic='-DDLL_EXPORT'
15135 ;;
15136
15137 hpux9* | hpux10* | hpux11*)
15138 lt_prog_compiler_wl='-Wl,'
15139 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15140 # not for PA HP-UX.
15141 case $host_cpu in
15142 hppa*64*|ia64*)
15143 # +Z the default
15144 ;;
15145 *)
15146 lt_prog_compiler_pic='+Z'
15147 ;;
15148 esac
15149 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15150 lt_prog_compiler_static='${wl}-a ${wl}archive'
15151 ;;
15152
15153 irix5* | irix6* | nonstopux*)
15154 lt_prog_compiler_wl='-Wl,'
15155 # PIC (with -KPIC) is the default.
15156 lt_prog_compiler_static='-non_shared'
15157 ;;
15158
15159 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15160 case $cc_basename in
15161 # old Intel for x86_64 which still supported -KPIC.
15162 ecc*)
15163 lt_prog_compiler_wl='-Wl,'
15164 lt_prog_compiler_pic='-KPIC'
15165 lt_prog_compiler_static='-static'
15166 ;;
15167 # icc used to be incompatible with GCC.
15168 # ICC 10 doesn't accept -KPIC any more.
15169 icc* | ifort*)
15170 lt_prog_compiler_wl='-Wl,'
15171 lt_prog_compiler_pic='-fPIC'
15172 lt_prog_compiler_static='-static'
15173 ;;
15174 # Lahey Fortran 8.1.
15175 lf95*)
15176 lt_prog_compiler_wl='-Wl,'
15177 lt_prog_compiler_pic='--shared'
15178 lt_prog_compiler_static='--static'
15179 ;;
15180 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15181 # Portland Group compilers (*not* the Pentium gcc compiler,
15182 # which looks to be a dead project)
15183 lt_prog_compiler_wl='-Wl,'
15184 lt_prog_compiler_pic='-fpic'
15185 lt_prog_compiler_static='-Bstatic'
15186 ;;
15187 ccc*)
15188 lt_prog_compiler_wl='-Wl,'
15189 # All Alpha code is PIC.
15190 lt_prog_compiler_static='-non_shared'
15191 ;;
15192 xl* | bgxl* | bgf* | mpixl*)
15193 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15194 lt_prog_compiler_wl='-Wl,'
15195 lt_prog_compiler_pic='-qpic'
15196 lt_prog_compiler_static='-qstaticlink'
15197 ;;
15198 *)
15199 case `$CC -V 2>&1 | sed 5q` in
15200 *Sun\ F* | *Sun*Fortran*)
15201 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15202 lt_prog_compiler_pic='-KPIC'
15203 lt_prog_compiler_static='-Bstatic'
15204 lt_prog_compiler_wl=''
15205 ;;
15206 *Sun\ C*)
15207 # Sun C 5.9
15208 lt_prog_compiler_pic='-KPIC'
15209 lt_prog_compiler_static='-Bstatic'
15210 lt_prog_compiler_wl='-Wl,'
15211 ;;
15212 esac
15213 ;;
15214 esac
15215 ;;
15216
15217 newsos6)
15218 lt_prog_compiler_pic='-KPIC'
15219 lt_prog_compiler_static='-Bstatic'
15220 ;;
15221
15222 *nto* | *qnx*)
15223 # QNX uses GNU C++, but need to define -shared option too, otherwise
15224 # it will coredump.
15225 lt_prog_compiler_pic='-fPIC -shared'
15226 ;;
15227
15228 osf3* | osf4* | osf5*)
15229 lt_prog_compiler_wl='-Wl,'
15230 # All OSF/1 code is PIC.
15231 lt_prog_compiler_static='-non_shared'
15232 ;;
15233
15234 rdos*)
15235 lt_prog_compiler_static='-non_shared'
15236 ;;
15237
15238 solaris*)
15239 lt_prog_compiler_pic='-KPIC'
15240 lt_prog_compiler_static='-Bstatic'
15241 case $cc_basename in
15242 f77* | f90* | f95*)
15243 lt_prog_compiler_wl='-Qoption ld ';;
15244 *)
15245 lt_prog_compiler_wl='-Wl,';;
15246 esac
15247 ;;
15248
15249 sunos4*)
15250 lt_prog_compiler_wl='-Qoption ld '
15251 lt_prog_compiler_pic='-PIC'
15252 lt_prog_compiler_static='-Bstatic'
15253 ;;
15254
15255 sysv4 | sysv4.2uw2* | sysv4.3*)
15256 lt_prog_compiler_wl='-Wl,'
15257 lt_prog_compiler_pic='-KPIC'
15258 lt_prog_compiler_static='-Bstatic'
15259 ;;
15260
15261 sysv4*MP*)
15262 if test -d /usr/nec ;then
15263 lt_prog_compiler_pic='-Kconform_pic'
15264 lt_prog_compiler_static='-Bstatic'
15265 fi
15266 ;;
15267
15268 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15269 lt_prog_compiler_wl='-Wl,'
15270 lt_prog_compiler_pic='-KPIC'
15271 lt_prog_compiler_static='-Bstatic'
15272 ;;
15273
15274 unicos*)
15275 lt_prog_compiler_wl='-Wl,'
15276 lt_prog_compiler_can_build_shared=no
15277 ;;
15278
15279 uts4*)
15280 lt_prog_compiler_pic='-pic'
15281 lt_prog_compiler_static='-Bstatic'
15282 ;;
15283
15284 *)
15285 lt_prog_compiler_can_build_shared=no
15286 ;;
15287 esac
15288 fi
15289
15290 case $host_os in
15291 # For platforms which do not support PIC, -DPIC is meaningless:
15292 *djgpp*)
15293 lt_prog_compiler_pic=
15294 ;;
15295 *)
15296 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15297 ;;
15298 esac
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15300 $as_echo "$lt_prog_compiler_pic" >&6; }
15301
15302
15303
15304
15305
15306
15307 #
15308 # Check to make sure the PIC flag actually works.
15309 #
15310 if test -n "$lt_prog_compiler_pic"; then
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15312 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15313 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15314 $as_echo_n "(cached) " >&6
15315 else
15316 lt_cv_prog_compiler_pic_works=no
15317 ac_outfile=conftest.$ac_objext
15318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15319 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15320 # Insert the option either (1) after the last *FLAGS variable, or
15321 # (2) before a word containing "conftest.", or (3) at the end.
15322 # Note that $ac_compile itself does not contain backslashes and begins
15323 # with a dollar sign (not a hyphen), so the echo should work correctly.
15324 # The option is referenced via a variable to avoid confusing sed.
15325 lt_compile=`echo "$ac_compile" | $SED \
15326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15328 -e 's:$: $lt_compiler_flag:'`
15329 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15330 (eval "$lt_compile" 2>conftest.err)
15331 ac_status=$?
15332 cat conftest.err >&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 if (exit $ac_status) && test -s "$ac_outfile"; then
15335 # The compiler can only warn and ignore the option if not recognized
15336 # So say no if there are warnings other than the usual output.
15337 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15339 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15340 lt_cv_prog_compiler_pic_works=yes
15341 fi
15342 fi
15343 $RM conftest*
15344
15345 fi
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15347 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15348
15349 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15350 case $lt_prog_compiler_pic in
15351 "" | " "*) ;;
15352 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15353 esac
15354 else
15355 lt_prog_compiler_pic=
15356 lt_prog_compiler_can_build_shared=no
15357 fi
15358
15359 fi
15360
15361
15362
15363
15364
15365
15366 #
15367 # Check to make sure the static flag actually works.
15368 #
15369 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15371 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15372 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15373 $as_echo_n "(cached) " >&6
15374 else
15375 lt_cv_prog_compiler_static_works=no
15376 save_LDFLAGS="$LDFLAGS"
15377 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15378 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15379 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15380 # The linker can only warn and ignore the option if not recognized
15381 # So say no if there are warnings
15382 if test -s conftest.err; then
15383 # Append any errors to the config.log.
15384 cat conftest.err 1>&5
15385 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15386 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15387 if diff conftest.exp conftest.er2 >/dev/null; then
15388 lt_cv_prog_compiler_static_works=yes
15389 fi
15390 else
15391 lt_cv_prog_compiler_static_works=yes
15392 fi
15393 fi
15394 $RM -r conftest*
15395 LDFLAGS="$save_LDFLAGS"
15396
15397 fi
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15399 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15400
15401 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15402 :
15403 else
15404 lt_prog_compiler_static=
15405 fi
15406
15407
15408
15409
15410
15411
15412
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15414 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15415 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15416 $as_echo_n "(cached) " >&6
15417 else
15418 lt_cv_prog_compiler_c_o=no
15419 $RM -r conftest 2>/dev/null
15420 mkdir conftest
15421 cd conftest
15422 mkdir out
15423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15424
15425 lt_compiler_flag="-o out/conftest2.$ac_objext"
15426 # Insert the option either (1) after the last *FLAGS variable, or
15427 # (2) before a word containing "conftest.", or (3) at the end.
15428 # Note that $ac_compile itself does not contain backslashes and begins
15429 # with a dollar sign (not a hyphen), so the echo should work correctly.
15430 lt_compile=`echo "$ac_compile" | $SED \
15431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15433 -e 's:$: $lt_compiler_flag:'`
15434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15435 (eval "$lt_compile" 2>out/conftest.err)
15436 ac_status=$?
15437 cat out/conftest.err >&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15440 then
15441 # The compiler can only warn and ignore the option if not recognized
15442 # So say no if there are warnings
15443 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15444 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15445 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15446 lt_cv_prog_compiler_c_o=yes
15447 fi
15448 fi
15449 chmod u+w . 2>&5
15450 $RM conftest*
15451 # SGI C++ compiler will create directory out/ii_files/ for
15452 # template instantiation
15453 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15454 $RM out/* && rmdir out
15455 cd ..
15456 $RM -r conftest
15457 $RM conftest*
15458
15459 fi
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15461 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15462
15463
15464
15465
15466
15467
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15469 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15470 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15471 $as_echo_n "(cached) " >&6
15472 else
15473 lt_cv_prog_compiler_c_o=no
15474 $RM -r conftest 2>/dev/null
15475 mkdir conftest
15476 cd conftest
15477 mkdir out
15478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15479
15480 lt_compiler_flag="-o out/conftest2.$ac_objext"
15481 # Insert the option either (1) after the last *FLAGS variable, or
15482 # (2) before a word containing "conftest.", or (3) at the end.
15483 # Note that $ac_compile itself does not contain backslashes and begins
15484 # with a dollar sign (not a hyphen), so the echo should work correctly.
15485 lt_compile=`echo "$ac_compile" | $SED \
15486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15488 -e 's:$: $lt_compiler_flag:'`
15489 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15490 (eval "$lt_compile" 2>out/conftest.err)
15491 ac_status=$?
15492 cat out/conftest.err >&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15495 then
15496 # The compiler can only warn and ignore the option if not recognized
15497 # So say no if there are warnings
15498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15499 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15500 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15501 lt_cv_prog_compiler_c_o=yes
15502 fi
15503 fi
15504 chmod u+w . 2>&5
15505 $RM conftest*
15506 # SGI C++ compiler will create directory out/ii_files/ for
15507 # template instantiation
15508 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15509 $RM out/* && rmdir out
15510 cd ..
15511 $RM -r conftest
15512 $RM conftest*
15513
15514 fi
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15516 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15517
15518
15519
15520
15521 hard_links="nottested"
15522 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15523 # do not overwrite the value of need_locks provided by the user
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15525 $as_echo_n "checking if we can lock with hard links... " >&6; }
15526 hard_links=yes
15527 $RM conftest*
15528 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15529 touch conftest.a
15530 ln conftest.a conftest.b 2>&5 || hard_links=no
15531 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15533 $as_echo "$hard_links" >&6; }
15534 if test "$hard_links" = no; then
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15536 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15537 need_locks=warn
15538 fi
15539 else
15540 need_locks=no
15541 fi
15542
15543
15544
15545
15546
15547
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15549 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15550
15551 runpath_var=
15552 allow_undefined_flag=
15553 always_export_symbols=no
15554 archive_cmds=
15555 archive_expsym_cmds=
15556 compiler_needs_object=no
15557 enable_shared_with_static_runtimes=no
15558 export_dynamic_flag_spec=
15559 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15560 hardcode_automatic=no
15561 hardcode_direct=no
15562 hardcode_direct_absolute=no
15563 hardcode_libdir_flag_spec=
15564 hardcode_libdir_flag_spec_ld=
15565 hardcode_libdir_separator=
15566 hardcode_minus_L=no
15567 hardcode_shlibpath_var=unsupported
15568 inherit_rpath=no
15569 link_all_deplibs=unknown
15570 module_cmds=
15571 module_expsym_cmds=
15572 old_archive_from_new_cmds=
15573 old_archive_from_expsyms_cmds=
15574 thread_safe_flag_spec=
15575 whole_archive_flag_spec=
15576 # include_expsyms should be a list of space-separated symbols to be *always*
15577 # included in the symbol list
15578 include_expsyms=
15579 # exclude_expsyms can be an extended regexp of symbols to exclude
15580 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15581 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15582 # as well as any symbol that contains `d'.
15583 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15584 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15585 # platforms (ab)use it in PIC code, but their linkers get confused if
15586 # the symbol is explicitly referenced. Since portable code cannot
15587 # rely on this symbol name, it's probably fine to never include it in
15588 # preloaded symbol tables.
15589 # Exclude shared library initialization/finalization symbols.
15590 extract_expsyms_cmds=
15591
15592 case $host_os in
15593 cygwin* | mingw* | pw32* | cegcc*)
15594 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15595 # When not using gcc, we currently assume that we are using
15596 # Microsoft Visual C++.
15597 if test "$GCC" != yes; then
15598 with_gnu_ld=no
15599 fi
15600 ;;
15601 interix*)
15602 # we just hope/assume this is gcc and not c89 (= MSVC++)
15603 with_gnu_ld=yes
15604 ;;
15605 openbsd*)
15606 with_gnu_ld=no
15607 ;;
15608 esac
15609
15610 ld_shlibs=yes
15611
15612 # On some targets, GNU ld is compatible enough with the native linker
15613 # that we're better off using the native interface for both.
15614 lt_use_gnu_ld_interface=no
15615 if test "$with_gnu_ld" = yes; then
15616 case $host_os in
15617 aix*)
15618 # The AIX port of GNU ld has always aspired to compatibility
15619 # with the native linker. However, as the warning in the GNU ld
15620 # block says, versions before 2.19.5* couldn't really create working
15621 # shared libraries, regardless of the interface used.
15622 case `$LD -v 2>&1` in
15623 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15624 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15625 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15626 *)
15627 lt_use_gnu_ld_interface=yes
15628 ;;
15629 esac
15630 ;;
15631 *)
15632 lt_use_gnu_ld_interface=yes
15633 ;;
15634 esac
15635 fi
15636
15637 if test "$lt_use_gnu_ld_interface" = yes; then
15638 # If archive_cmds runs LD, not CC, wlarc should be empty
15639 wlarc='${wl}'
15640
15641 # Set some defaults for GNU ld with shared library support. These
15642 # are reset later if shared libraries are not supported. Putting them
15643 # here allows them to be overridden if necessary.
15644 runpath_var=LD_RUN_PATH
15645 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15646 export_dynamic_flag_spec='${wl}--export-dynamic'
15647 # ancient GNU ld didn't support --whole-archive et. al.
15648 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15649 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15650 else
15651 whole_archive_flag_spec=
15652 fi
15653 supports_anon_versioning=no
15654 case `$LD -v 2>&1` in
15655 *GNU\ gold*) supports_anon_versioning=yes ;;
15656 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15657 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15658 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15659 *\ 2.11.*) ;; # other 2.11 versions
15660 *) supports_anon_versioning=yes ;;
15661 esac
15662
15663 # See if GNU ld supports shared libraries.
15664 case $host_os in
15665 aix[3-9]*)
15666 # On AIX/PPC, the GNU linker is very broken
15667 if test "$host_cpu" != ia64; then
15668 ld_shlibs=no
15669 cat <<_LT_EOF 1>&2
15670
15671 *** Warning: the GNU linker, at least up to release 2.19, is reported
15672 *** to be unable to reliably create shared libraries on AIX.
15673 *** Therefore, libtool is disabling shared libraries support. If you
15674 *** really care for shared libraries, you may want to install binutils
15675 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15676 *** You will then need to restart the configuration process.
15677
15678 _LT_EOF
15679 fi
15680 ;;
15681
15682 amigaos*)
15683 case $host_cpu in
15684 powerpc)
15685 # see comment about AmigaOS4 .so support
15686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15687 archive_expsym_cmds=''
15688 ;;
15689 m68k)
15690 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)'
15691 hardcode_libdir_flag_spec='-L$libdir'
15692 hardcode_minus_L=yes
15693 ;;
15694 esac
15695 ;;
15696
15697 beos*)
15698 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15699 allow_undefined_flag=unsupported
15700 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15701 # support --undefined. This deserves some investigation. FIXME
15702 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15703 else
15704 ld_shlibs=no
15705 fi
15706 ;;
15707
15708 cygwin* | mingw* | pw32* | cegcc*)
15709 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15710 # as there is no search path for DLLs.
15711 hardcode_libdir_flag_spec='-L$libdir'
15712 export_dynamic_flag_spec='${wl}--export-all-symbols'
15713 allow_undefined_flag=unsupported
15714 always_export_symbols=no
15715 enable_shared_with_static_runtimes=yes
15716 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15717
15718 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15719 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15720 # If the export-symbols file already is a .def file (1st line
15721 # is EXPORTS), use it as is; otherwise, prepend...
15722 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15723 cp $export_symbols $output_objdir/$soname.def;
15724 else
15725 echo EXPORTS > $output_objdir/$soname.def;
15726 cat $export_symbols >> $output_objdir/$soname.def;
15727 fi~
15728 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15729 else
15730 ld_shlibs=no
15731 fi
15732 ;;
15733
15734 haiku*)
15735 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15736 link_all_deplibs=yes
15737 ;;
15738
15739 interix[3-9]*)
15740 hardcode_direct=no
15741 hardcode_shlibpath_var=no
15742 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15743 export_dynamic_flag_spec='${wl}-E'
15744 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15745 # Instead, shared libraries are loaded at an image base (0x10000000 by
15746 # default) and relocated if they conflict, which is a slow very memory
15747 # consuming and fragmenting process. To avoid this, we pick a random,
15748 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15749 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15750 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15751 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'
15752 ;;
15753
15754 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15755 tmp_diet=no
15756 if test "$host_os" = linux-dietlibc; then
15757 case $cc_basename in
15758 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15759 esac
15760 fi
15761 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15762 && test "$tmp_diet" = no
15763 then
15764 tmp_addflag=
15765 tmp_sharedflag='-shared'
15766 case $cc_basename,$host_cpu in
15767 pgcc*) # Portland Group C compiler
15768 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'
15769 tmp_addflag=' $pic_flag'
15770 ;;
15771 pgf77* | pgf90* | pgf95* | pgfortran*)
15772 # Portland Group f77 and f90 compilers
15773 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'
15774 tmp_addflag=' $pic_flag -Mnomain' ;;
15775 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15776 tmp_addflag=' -i_dynamic' ;;
15777 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15778 tmp_addflag=' -i_dynamic -nofor_main' ;;
15779 ifc* | ifort*) # Intel Fortran compiler
15780 tmp_addflag=' -nofor_main' ;;
15781 lf95*) # Lahey Fortran 8.1
15782 whole_archive_flag_spec=
15783 tmp_sharedflag='--shared' ;;
15784 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15785 tmp_sharedflag='-qmkshrobj'
15786 tmp_addflag= ;;
15787 nvcc*) # Cuda Compiler Driver 2.2
15788 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'
15789 compiler_needs_object=yes
15790 ;;
15791 esac
15792 case `$CC -V 2>&1 | sed 5q` in
15793 *Sun\ C*) # Sun C 5.9
15794 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'
15795 compiler_needs_object=yes
15796 tmp_sharedflag='-G' ;;
15797 *Sun\ F*) # Sun Fortran 8.3
15798 tmp_sharedflag='-G' ;;
15799 esac
15800 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15801
15802 if test "x$supports_anon_versioning" = xyes; then
15803 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15804 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15805 echo "local: *; };" >> $output_objdir/$libname.ver~
15806 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15807 fi
15808
15809 case $cc_basename in
15810 xlf* | bgf* | bgxlf* | mpixlf*)
15811 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15812 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15813 hardcode_libdir_flag_spec=
15814 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15815 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15816 if test "x$supports_anon_versioning" = xyes; then
15817 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15818 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15819 echo "local: *; };" >> $output_objdir/$libname.ver~
15820 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15821 fi
15822 ;;
15823 esac
15824 else
15825 ld_shlibs=no
15826 fi
15827 ;;
15828
15829 netbsd*)
15830 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15831 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15832 wlarc=
15833 else
15834 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15835 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15836 fi
15837 ;;
15838
15839 solaris*)
15840 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15841 ld_shlibs=no
15842 cat <<_LT_EOF 1>&2
15843
15844 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15845 *** create shared libraries on Solaris systems. Therefore, libtool
15846 *** is disabling shared libraries support. We urge you to upgrade GNU
15847 *** binutils to release 2.9.1 or newer. Another option is to modify
15848 *** your PATH or compiler configuration so that the native linker is
15849 *** used, and then restart.
15850
15851 _LT_EOF
15852 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15853 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15854 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15855 else
15856 ld_shlibs=no
15857 fi
15858 ;;
15859
15860 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15861 case `$LD -v 2>&1` in
15862 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15863 ld_shlibs=no
15864 cat <<_LT_EOF 1>&2
15865
15866 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15867 *** reliably create shared libraries on SCO systems. Therefore, libtool
15868 *** is disabling shared libraries support. We urge you to upgrade GNU
15869 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15870 *** your PATH or compiler configuration so that the native linker is
15871 *** used, and then restart.
15872
15873 _LT_EOF
15874 ;;
15875 *)
15876 # For security reasons, it is highly recommended that you always
15877 # use absolute paths for naming shared libraries, and exclude the
15878 # DT_RUNPATH tag from executables and libraries. But doing so
15879 # requires that you compile everything twice, which is a pain.
15880 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15881 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15883 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15884 else
15885 ld_shlibs=no
15886 fi
15887 ;;
15888 esac
15889 ;;
15890
15891 sunos4*)
15892 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15893 wlarc=
15894 hardcode_direct=yes
15895 hardcode_shlibpath_var=no
15896 ;;
15897
15898 *)
15899 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15901 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15902 else
15903 ld_shlibs=no
15904 fi
15905 ;;
15906 esac
15907
15908 if test "$ld_shlibs" = no; then
15909 runpath_var=
15910 hardcode_libdir_flag_spec=
15911 export_dynamic_flag_spec=
15912 whole_archive_flag_spec=
15913 fi
15914 else
15915 # PORTME fill in a description of your system's linker (not GNU ld)
15916 case $host_os in
15917 aix3*)
15918 allow_undefined_flag=unsupported
15919 always_export_symbols=yes
15920 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'
15921 # Note: this linker hardcodes the directories in LIBPATH if there
15922 # are no directories specified by -L.
15923 hardcode_minus_L=yes
15924 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15925 # Neither direct hardcoding nor static linking is supported with a
15926 # broken collect2.
15927 hardcode_direct=unsupported
15928 fi
15929 ;;
15930
15931 aix[4-9]*)
15932 if test "$host_cpu" = ia64; then
15933 # On IA64, the linker does run time linking by default, so we don't
15934 # have to do anything special.
15935 aix_use_runtimelinking=no
15936 exp_sym_flag='-Bexport'
15937 no_entry_flag=""
15938 else
15939 # If we're using GNU nm, then we don't want the "-C" option.
15940 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15941 # Also, AIX nm treats weak defined symbols like other global
15942 # defined symbols, whereas GNU nm marks them as "W".
15943 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15944 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'
15945 else
15946 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'
15947 fi
15948 aix_use_runtimelinking=no
15949
15950 # Test if we are trying to use run time linking or normal
15951 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15952 # need to do runtime linking.
15953 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15954 for ld_flag in $LDFLAGS; do
15955 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15956 aix_use_runtimelinking=yes
15957 break
15958 fi
15959 done
15960 ;;
15961 esac
15962
15963 exp_sym_flag='-bexport'
15964 no_entry_flag='-bnoentry'
15965 fi
15966
15967 # When large executables or shared objects are built, AIX ld can
15968 # have problems creating the table of contents. If linking a library
15969 # or program results in "error TOC overflow" add -mminimal-toc to
15970 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15971 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15972
15973 archive_cmds=''
15974 hardcode_direct=yes
15975 hardcode_direct_absolute=yes
15976 hardcode_libdir_separator=':'
15977 link_all_deplibs=yes
15978 file_list_spec='${wl}-f,'
15979
15980 if test "$GCC" = yes; then
15981 case $host_os in aix4.[012]|aix4.[012].*)
15982 # We only want to do this on AIX 4.2 and lower, the check
15983 # below for broken collect2 doesn't work under 4.3+
15984 collect2name=`${CC} -print-prog-name=collect2`
15985 if test -f "$collect2name" &&
15986 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15987 then
15988 # We have reworked collect2
15989 :
15990 else
15991 # We have old collect2
15992 hardcode_direct=unsupported
15993 # It fails to find uninstalled libraries when the uninstalled
15994 # path is not listed in the libpath. Setting hardcode_minus_L
15995 # to unsupported forces relinking
15996 hardcode_minus_L=yes
15997 hardcode_libdir_flag_spec='-L$libdir'
15998 hardcode_libdir_separator=
15999 fi
16000 ;;
16001 esac
16002 shared_flag='-shared'
16003 if test "$aix_use_runtimelinking" = yes; then
16004 shared_flag="$shared_flag "'${wl}-G'
16005 fi
16006 else
16007 # not using gcc
16008 if test "$host_cpu" = ia64; then
16009 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16010 # chokes on -Wl,-G. The following line is correct:
16011 shared_flag='-G'
16012 else
16013 if test "$aix_use_runtimelinking" = yes; then
16014 shared_flag='${wl}-G'
16015 else
16016 shared_flag='${wl}-bM:SRE'
16017 fi
16018 fi
16019 fi
16020
16021 export_dynamic_flag_spec='${wl}-bexpall'
16022 # It seems that -bexpall does not export symbols beginning with
16023 # underscore (_), so it is better to generate a list of symbols to export.
16024 always_export_symbols=yes
16025 if test "$aix_use_runtimelinking" = yes; then
16026 # Warning - without using the other runtime loading flags (-brtl),
16027 # -berok will link without error, but may produce a broken library.
16028 allow_undefined_flag='-berok'
16029 # Determine the default libpath from the value encoded in an
16030 # empty executable.
16031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16032 /* end confdefs.h. */
16033
16034 int
16035 main ()
16036 {
16037
16038 ;
16039 return 0;
16040 }
16041 _ACEOF
16042 if ac_fn_c_try_link "$LINENO"; then :
16043
16044 lt_aix_libpath_sed='
16045 /Import File Strings/,/^$/ {
16046 /^0/ {
16047 s/^0 *\(.*\)$/\1/
16048 p
16049 }
16050 }'
16051 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16052 # Check for a 64-bit object if we didn't find anything.
16053 if test -z "$aix_libpath"; then
16054 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16055 fi
16056 fi
16057 rm -f core conftest.err conftest.$ac_objext \
16058 conftest$ac_exeext conftest.$ac_ext
16059 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16060
16061 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16062 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"
16063 else
16064 if test "$host_cpu" = ia64; then
16065 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16066 allow_undefined_flag="-z nodefs"
16067 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"
16068 else
16069 # Determine the default libpath from the value encoded in an
16070 # empty executable.
16071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16072 /* end confdefs.h. */
16073
16074 int
16075 main ()
16076 {
16077
16078 ;
16079 return 0;
16080 }
16081 _ACEOF
16082 if ac_fn_c_try_link "$LINENO"; then :
16083
16084 lt_aix_libpath_sed='
16085 /Import File Strings/,/^$/ {
16086 /^0/ {
16087 s/^0 *\(.*\)$/\1/
16088 p
16089 }
16090 }'
16091 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16092 # Check for a 64-bit object if we didn't find anything.
16093 if test -z "$aix_libpath"; then
16094 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16095 fi
16096 fi
16097 rm -f core conftest.err conftest.$ac_objext \
16098 conftest$ac_exeext conftest.$ac_ext
16099 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16100
16101 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16102 # Warning - without using the other run time loading flags,
16103 # -berok will link without error, but may produce a broken library.
16104 no_undefined_flag=' ${wl}-bernotok'
16105 allow_undefined_flag=' ${wl}-berok'
16106 if test "$with_gnu_ld" = yes; then
16107 # We only use this code for GNU lds that support --whole-archive.
16108 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16109 else
16110 # Exported symbols can be pulled into shared objects from archives
16111 whole_archive_flag_spec='$convenience'
16112 fi
16113 archive_cmds_need_lc=yes
16114 # This is similar to how AIX traditionally builds its shared libraries.
16115 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'
16116 fi
16117 fi
16118 ;;
16119
16120 amigaos*)
16121 case $host_cpu in
16122 powerpc)
16123 # see comment about AmigaOS4 .so support
16124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16125 archive_expsym_cmds=''
16126 ;;
16127 m68k)
16128 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)'
16129 hardcode_libdir_flag_spec='-L$libdir'
16130 hardcode_minus_L=yes
16131 ;;
16132 esac
16133 ;;
16134
16135 bsdi[45]*)
16136 export_dynamic_flag_spec=-rdynamic
16137 ;;
16138
16139 cygwin* | mingw* | pw32* | cegcc*)
16140 # When not using gcc, we currently assume that we are using
16141 # Microsoft Visual C++.
16142 # hardcode_libdir_flag_spec is actually meaningless, as there is
16143 # no search path for DLLs.
16144 hardcode_libdir_flag_spec=' '
16145 allow_undefined_flag=unsupported
16146 # Tell ltmain to make .lib files, not .a files.
16147 libext=lib
16148 # Tell ltmain to make .dll files, not .so files.
16149 shrext_cmds=".dll"
16150 # FIXME: Setting linknames here is a bad hack.
16151 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16152 # The linker will automatically build a .lib file if we build a DLL.
16153 old_archive_from_new_cmds='true'
16154 # FIXME: Should let the user specify the lib program.
16155 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16156 fix_srcfile_path='`cygpath -w "$srcfile"`'
16157 enable_shared_with_static_runtimes=yes
16158 ;;
16159
16160 darwin* | rhapsody*)
16161
16162
16163 archive_cmds_need_lc=no
16164 hardcode_direct=no
16165 hardcode_automatic=yes
16166 hardcode_shlibpath_var=unsupported
16167 if test "$lt_cv_ld_force_load" = "yes"; then
16168 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\"`'
16169 else
16170 whole_archive_flag_spec=''
16171 fi
16172 link_all_deplibs=yes
16173 allow_undefined_flag="$_lt_dar_allow_undefined"
16174 case $cc_basename in
16175 ifort*) _lt_dar_can_shared=yes ;;
16176 *) _lt_dar_can_shared=$GCC ;;
16177 esac
16178 if test "$_lt_dar_can_shared" = "yes"; then
16179 output_verbose_link_cmd=func_echo_all
16180 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16181 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16182 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}"
16183 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}"
16184
16185 else
16186 ld_shlibs=no
16187 fi
16188
16189 ;;
16190
16191 dgux*)
16192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16193 hardcode_libdir_flag_spec='-L$libdir'
16194 hardcode_shlibpath_var=no
16195 ;;
16196
16197 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16198 # support. Future versions do this automatically, but an explicit c++rt0.o
16199 # does not break anything, and helps significantly (at the cost of a little
16200 # extra space).
16201 freebsd2.2*)
16202 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16203 hardcode_libdir_flag_spec='-R$libdir'
16204 hardcode_direct=yes
16205 hardcode_shlibpath_var=no
16206 ;;
16207
16208 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16209 freebsd2.*)
16210 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16211 hardcode_direct=yes
16212 hardcode_minus_L=yes
16213 hardcode_shlibpath_var=no
16214 ;;
16215
16216 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16217 freebsd* | dragonfly*)
16218 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16219 hardcode_libdir_flag_spec='-R$libdir'
16220 hardcode_direct=yes
16221 hardcode_shlibpath_var=no
16222 ;;
16223
16224 hpux9*)
16225 if test "$GCC" = yes; then
16226 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'
16227 else
16228 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'
16229 fi
16230 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16231 hardcode_libdir_separator=:
16232 hardcode_direct=yes
16233
16234 # hardcode_minus_L: Not really in the search PATH,
16235 # but as the default location of the library.
16236 hardcode_minus_L=yes
16237 export_dynamic_flag_spec='${wl}-E'
16238 ;;
16239
16240 hpux10*)
16241 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16242 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16243 else
16244 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16245 fi
16246 if test "$with_gnu_ld" = no; then
16247 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16248 hardcode_libdir_flag_spec_ld='+b $libdir'
16249 hardcode_libdir_separator=:
16250 hardcode_direct=yes
16251 hardcode_direct_absolute=yes
16252 export_dynamic_flag_spec='${wl}-E'
16253 # hardcode_minus_L: Not really in the search PATH,
16254 # but as the default location of the library.
16255 hardcode_minus_L=yes
16256 fi
16257 ;;
16258
16259 hpux11*)
16260 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16261 case $host_cpu in
16262 hppa*64*)
16263 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16264 ;;
16265 ia64*)
16266 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16267 ;;
16268 *)
16269 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16270 ;;
16271 esac
16272 else
16273 case $host_cpu in
16274 hppa*64*)
16275 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16276 ;;
16277 ia64*)
16278 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16279 ;;
16280 *)
16281
16282 # Older versions of the 11.00 compiler do not understand -b yet
16283 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16285 $as_echo_n "checking if $CC understands -b... " >&6; }
16286 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16287 $as_echo_n "(cached) " >&6
16288 else
16289 lt_cv_prog_compiler__b=no
16290 save_LDFLAGS="$LDFLAGS"
16291 LDFLAGS="$LDFLAGS -b"
16292 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16293 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16294 # The linker can only warn and ignore the option if not recognized
16295 # So say no if there are warnings
16296 if test -s conftest.err; then
16297 # Append any errors to the config.log.
16298 cat conftest.err 1>&5
16299 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16300 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16301 if diff conftest.exp conftest.er2 >/dev/null; then
16302 lt_cv_prog_compiler__b=yes
16303 fi
16304 else
16305 lt_cv_prog_compiler__b=yes
16306 fi
16307 fi
16308 $RM -r conftest*
16309 LDFLAGS="$save_LDFLAGS"
16310
16311 fi
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16313 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16314
16315 if test x"$lt_cv_prog_compiler__b" = xyes; then
16316 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16317 else
16318 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16319 fi
16320
16321 ;;
16322 esac
16323 fi
16324 if test "$with_gnu_ld" = no; then
16325 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16326 hardcode_libdir_separator=:
16327
16328 case $host_cpu in
16329 hppa*64*|ia64*)
16330 hardcode_direct=no
16331 hardcode_shlibpath_var=no
16332 ;;
16333 *)
16334 hardcode_direct=yes
16335 hardcode_direct_absolute=yes
16336 export_dynamic_flag_spec='${wl}-E'
16337
16338 # hardcode_minus_L: Not really in the search PATH,
16339 # but as the default location of the library.
16340 hardcode_minus_L=yes
16341 ;;
16342 esac
16343 fi
16344 ;;
16345
16346 irix5* | irix6* | nonstopux*)
16347 if test "$GCC" = yes; then
16348 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'
16349 # Try to use the -exported_symbol ld option, if it does not
16350 # work, assume that -exports_file does not work either and
16351 # implicitly export all symbols.
16352 save_LDFLAGS="$LDFLAGS"
16353 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16355 /* end confdefs.h. */
16356 int foo(void) {}
16357 _ACEOF
16358 if ac_fn_c_try_link "$LINENO"; then :
16359 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'
16360
16361 fi
16362 rm -f core conftest.err conftest.$ac_objext \
16363 conftest$ac_exeext conftest.$ac_ext
16364 LDFLAGS="$save_LDFLAGS"
16365 else
16366 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'
16367 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'
16368 fi
16369 archive_cmds_need_lc='no'
16370 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16371 hardcode_libdir_separator=:
16372 inherit_rpath=yes
16373 link_all_deplibs=yes
16374 ;;
16375
16376 netbsd*)
16377 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16378 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16379 else
16380 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16381 fi
16382 hardcode_libdir_flag_spec='-R$libdir'
16383 hardcode_direct=yes
16384 hardcode_shlibpath_var=no
16385 ;;
16386
16387 newsos6)
16388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16389 hardcode_direct=yes
16390 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16391 hardcode_libdir_separator=:
16392 hardcode_shlibpath_var=no
16393 ;;
16394
16395 *nto* | *qnx*)
16396 ;;
16397
16398 openbsd*)
16399 if test -f /usr/libexec/ld.so; then
16400 hardcode_direct=yes
16401 hardcode_shlibpath_var=no
16402 hardcode_direct_absolute=yes
16403 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16404 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16405 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16406 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16407 export_dynamic_flag_spec='${wl}-E'
16408 else
16409 case $host_os in
16410 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16411 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16412 hardcode_libdir_flag_spec='-R$libdir'
16413 ;;
16414 *)
16415 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16416 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16417 ;;
16418 esac
16419 fi
16420 else
16421 ld_shlibs=no
16422 fi
16423 ;;
16424
16425 os2*)
16426 hardcode_libdir_flag_spec='-L$libdir'
16427 hardcode_minus_L=yes
16428 allow_undefined_flag=unsupported
16429 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'
16430 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16431 ;;
16432
16433 osf3*)
16434 if test "$GCC" = yes; then
16435 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16436 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'
16437 else
16438 allow_undefined_flag=' -expect_unresolved \*'
16439 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'
16440 fi
16441 archive_cmds_need_lc='no'
16442 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16443 hardcode_libdir_separator=:
16444 ;;
16445
16446 osf4* | osf5*) # as osf3* with the addition of -msym flag
16447 if test "$GCC" = yes; then
16448 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16449 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'
16450 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16451 else
16452 allow_undefined_flag=' -expect_unresolved \*'
16453 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'
16454 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~
16455 $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'
16456
16457 # Both c and cxx compiler support -rpath directly
16458 hardcode_libdir_flag_spec='-rpath $libdir'
16459 fi
16460 archive_cmds_need_lc='no'
16461 hardcode_libdir_separator=:
16462 ;;
16463
16464 solaris*)
16465 no_undefined_flag=' -z defs'
16466 if test "$GCC" = yes; then
16467 wlarc='${wl}'
16468 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16469 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16470 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16471 else
16472 case `$CC -V 2>&1` in
16473 *"Compilers 5.0"*)
16474 wlarc=''
16475 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16476 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16477 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16478 ;;
16479 *)
16480 wlarc='${wl}'
16481 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16482 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16483 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16484 ;;
16485 esac
16486 fi
16487 hardcode_libdir_flag_spec='-R$libdir'
16488 hardcode_shlibpath_var=no
16489 case $host_os in
16490 solaris2.[0-5] | solaris2.[0-5].*) ;;
16491 *)
16492 # The compiler driver will combine and reorder linker options,
16493 # but understands `-z linker_flag'. GCC discards it without `$wl',
16494 # but is careful enough not to reorder.
16495 # Supported since Solaris 2.6 (maybe 2.5.1?)
16496 if test "$GCC" = yes; then
16497 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16498 else
16499 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16500 fi
16501 ;;
16502 esac
16503 link_all_deplibs=yes
16504 ;;
16505
16506 sunos4*)
16507 if test "x$host_vendor" = xsequent; then
16508 # Use $CC to link under sequent, because it throws in some extra .o
16509 # files that make .init and .fini sections work.
16510 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16511 else
16512 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16513 fi
16514 hardcode_libdir_flag_spec='-L$libdir'
16515 hardcode_direct=yes
16516 hardcode_minus_L=yes
16517 hardcode_shlibpath_var=no
16518 ;;
16519
16520 sysv4)
16521 case $host_vendor in
16522 sni)
16523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16524 hardcode_direct=yes # is this really true???
16525 ;;
16526 siemens)
16527 ## LD is ld it makes a PLAMLIB
16528 ## CC just makes a GrossModule.
16529 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16530 reload_cmds='$CC -r -o $output$reload_objs'
16531 hardcode_direct=no
16532 ;;
16533 motorola)
16534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16535 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16536 ;;
16537 esac
16538 runpath_var='LD_RUN_PATH'
16539 hardcode_shlibpath_var=no
16540 ;;
16541
16542 sysv4.3*)
16543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16544 hardcode_shlibpath_var=no
16545 export_dynamic_flag_spec='-Bexport'
16546 ;;
16547
16548 sysv4*MP*)
16549 if test -d /usr/nec; then
16550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16551 hardcode_shlibpath_var=no
16552 runpath_var=LD_RUN_PATH
16553 hardcode_runpath_var=yes
16554 ld_shlibs=yes
16555 fi
16556 ;;
16557
16558 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16559 no_undefined_flag='${wl}-z,text'
16560 archive_cmds_need_lc=no
16561 hardcode_shlibpath_var=no
16562 runpath_var='LD_RUN_PATH'
16563
16564 if test "$GCC" = yes; then
16565 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16566 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16567 else
16568 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16569 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16570 fi
16571 ;;
16572
16573 sysv5* | sco3.2v5* | sco5v6*)
16574 # Note: We can NOT use -z defs as we might desire, because we do not
16575 # link with -lc, and that would cause any symbols used from libc to
16576 # always be unresolved, which means just about no library would
16577 # ever link correctly. If we're not using GNU ld we use -z text
16578 # though, which does catch some bad symbols but isn't as heavy-handed
16579 # as -z defs.
16580 no_undefined_flag='${wl}-z,text'
16581 allow_undefined_flag='${wl}-z,nodefs'
16582 archive_cmds_need_lc=no
16583 hardcode_shlibpath_var=no
16584 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16585 hardcode_libdir_separator=':'
16586 link_all_deplibs=yes
16587 export_dynamic_flag_spec='${wl}-Bexport'
16588 runpath_var='LD_RUN_PATH'
16589
16590 if test "$GCC" = yes; then
16591 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16592 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16593 else
16594 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16595 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16596 fi
16597 ;;
16598
16599 uts4*)
16600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16601 hardcode_libdir_flag_spec='-L$libdir'
16602 hardcode_shlibpath_var=no
16603 ;;
16604
16605 *)
16606 ld_shlibs=no
16607 ;;
16608 esac
16609
16610 if test x$host_vendor = xsni; then
16611 case $host in
16612 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16613 export_dynamic_flag_spec='${wl}-Blargedynsym'
16614 ;;
16615 esac
16616 fi
16617 fi
16618
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16620 $as_echo "$ld_shlibs" >&6; }
16621 test "$ld_shlibs" = no && can_build_shared=no
16622
16623 with_gnu_ld=$with_gnu_ld
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639 #
16640 # Do we need to explicitly link libc?
16641 #
16642 case "x$archive_cmds_need_lc" in
16643 x|xyes)
16644 # Assume -lc should be added
16645 archive_cmds_need_lc=yes
16646
16647 if test "$enable_shared" = yes && test "$GCC" = yes; then
16648 case $archive_cmds in
16649 *'~'*)
16650 # FIXME: we may have to deal with multi-command sequences.
16651 ;;
16652 '$CC '*)
16653 # Test whether the compiler implicitly links with -lc since on some
16654 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16655 # to ld, don't add -lc before -lgcc.
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16657 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16658 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16659 $as_echo_n "(cached) " >&6
16660 else
16661 $RM conftest*
16662 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16663
16664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16665 (eval $ac_compile) 2>&5
16666 ac_status=$?
16667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16668 test $ac_status = 0; } 2>conftest.err; then
16669 soname=conftest
16670 lib=conftest
16671 libobjs=conftest.$ac_objext
16672 deplibs=
16673 wl=$lt_prog_compiler_wl
16674 pic_flag=$lt_prog_compiler_pic
16675 compiler_flags=-v
16676 linker_flags=-v
16677 verstring=
16678 output_objdir=.
16679 libname=conftest
16680 lt_save_allow_undefined_flag=$allow_undefined_flag
16681 allow_undefined_flag=
16682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16683 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16684 ac_status=$?
16685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16686 test $ac_status = 0; }
16687 then
16688 lt_cv_archive_cmds_need_lc=no
16689 else
16690 lt_cv_archive_cmds_need_lc=yes
16691 fi
16692 allow_undefined_flag=$lt_save_allow_undefined_flag
16693 else
16694 cat conftest.err 1>&5
16695 fi
16696 $RM conftest*
16697
16698 fi
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16700 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16701 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16702 ;;
16703 esac
16704 fi
16705 ;;
16706 esac
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
16863
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16865 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16866
16867 if test "$GCC" = yes; then
16868 case $host_os in
16869 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16870 *) lt_awk_arg="/^libraries:/" ;;
16871 esac
16872 case $host_os in
16873 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16874 *) lt_sed_strip_eq="s,=/,/,g" ;;
16875 esac
16876 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16877 case $lt_search_path_spec in
16878 *\;*)
16879 # if the path contains ";" then we assume it to be the separator
16880 # otherwise default to the standard path separator (i.e. ":") - it is
16881 # assumed that no part of a normal pathname contains ";" but that should
16882 # okay in the real world where ";" in dirpaths is itself problematic.
16883 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16884 ;;
16885 *)
16886 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16887 ;;
16888 esac
16889 # Ok, now we have the path, separated by spaces, we can step through it
16890 # and add multilib dir if necessary.
16891 lt_tmp_lt_search_path_spec=
16892 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16893 for lt_sys_path in $lt_search_path_spec; do
16894 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16895 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16896 else
16897 test -d "$lt_sys_path" && \
16898 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16899 fi
16900 done
16901 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16902 BEGIN {RS=" "; FS="/|\n";} {
16903 lt_foo="";
16904 lt_count=0;
16905 for (lt_i = NF; lt_i > 0; lt_i--) {
16906 if ($lt_i != "" && $lt_i != ".") {
16907 if ($lt_i == "..") {
16908 lt_count++;
16909 } else {
16910 if (lt_count == 0) {
16911 lt_foo="/" $lt_i lt_foo;
16912 } else {
16913 lt_count--;
16914 }
16915 }
16916 }
16917 }
16918 if (lt_foo != "") { lt_freq[lt_foo]++; }
16919 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16920 }'`
16921 # AWK program above erroneously prepends '/' to C:/dos/paths
16922 # for these hosts.
16923 case $host_os in
16924 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16925 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16926 esac
16927 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16928 else
16929 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16930 fi
16931 library_names_spec=
16932 libname_spec='lib$name'
16933 soname_spec=
16934 shrext_cmds=".so"
16935 postinstall_cmds=
16936 postuninstall_cmds=
16937 finish_cmds=
16938 finish_eval=
16939 shlibpath_var=
16940 shlibpath_overrides_runpath=unknown
16941 version_type=none
16942 dynamic_linker="$host_os ld.so"
16943 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16944 need_lib_prefix=unknown
16945 hardcode_into_libs=no
16946
16947 # when you set need_version to no, make sure it does not cause -set_version
16948 # flags to be left without arguments
16949 need_version=unknown
16950
16951 case $host_os in
16952 aix3*)
16953 version_type=linux
16954 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16955 shlibpath_var=LIBPATH
16956
16957 # AIX 3 has no versioning support, so we append a major version to the name.
16958 soname_spec='${libname}${release}${shared_ext}$major'
16959 ;;
16960
16961 aix[4-9]*)
16962 version_type=linux
16963 need_lib_prefix=no
16964 need_version=no
16965 hardcode_into_libs=yes
16966 if test "$host_cpu" = ia64; then
16967 # AIX 5 supports IA64
16968 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16969 shlibpath_var=LD_LIBRARY_PATH
16970 else
16971 # With GCC up to 2.95.x, collect2 would create an import file
16972 # for dependence libraries. The import file would start with
16973 # the line `#! .'. This would cause the generated library to
16974 # depend on `.', always an invalid library. This was fixed in
16975 # development snapshots of GCC prior to 3.0.
16976 case $host_os in
16977 aix4 | aix4.[01] | aix4.[01].*)
16978 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16979 echo ' yes '
16980 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16981 :
16982 else
16983 can_build_shared=no
16984 fi
16985 ;;
16986 esac
16987 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16988 # soname into executable. Probably we can add versioning support to
16989 # collect2, so additional links can be useful in future.
16990 if test "$aix_use_runtimelinking" = yes; then
16991 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16992 # instead of lib<name>.a to let people know that these are not
16993 # typical AIX shared libraries.
16994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16995 else
16996 # We preserve .a as extension for shared libraries through AIX4.2
16997 # and later when we are not doing run time linking.
16998 library_names_spec='${libname}${release}.a $libname.a'
16999 soname_spec='${libname}${release}${shared_ext}$major'
17000 fi
17001 shlibpath_var=LIBPATH
17002 fi
17003 ;;
17004
17005 amigaos*)
17006 case $host_cpu in
17007 powerpc)
17008 # Since July 2007 AmigaOS4 officially supports .so libraries.
17009 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17011 ;;
17012 m68k)
17013 library_names_spec='$libname.ixlibrary $libname.a'
17014 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17015 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'
17016 ;;
17017 esac
17018 ;;
17019
17020 beos*)
17021 library_names_spec='${libname}${shared_ext}'
17022 dynamic_linker="$host_os ld.so"
17023 shlibpath_var=LIBRARY_PATH
17024 ;;
17025
17026 bsdi[45]*)
17027 version_type=linux
17028 need_version=no
17029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17030 soname_spec='${libname}${release}${shared_ext}$major'
17031 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17032 shlibpath_var=LD_LIBRARY_PATH
17033 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17034 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17035 # the default ld.so.conf also contains /usr/contrib/lib and
17036 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17037 # libtool to hard-code these into programs
17038 ;;
17039
17040 cygwin* | mingw* | pw32* | cegcc*)
17041 version_type=windows
17042 shrext_cmds=".dll"
17043 need_version=no
17044 need_lib_prefix=no
17045
17046 case $GCC,$host_os in
17047 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17048 library_names_spec='$libname.dll.a'
17049 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17050 postinstall_cmds='base_file=`basename \${file}`~
17051 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17052 dldir=$destdir/`dirname \$dlpath`~
17053 test -d \$dldir || mkdir -p \$dldir~
17054 $install_prog $dir/$dlname \$dldir/$dlname~
17055 chmod a+x \$dldir/$dlname~
17056 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17057 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17058 fi'
17059 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17060 dlpath=$dir/\$dldll~
17061 $RM \$dlpath'
17062 shlibpath_overrides_runpath=yes
17063
17064 case $host_os in
17065 cygwin*)
17066 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17067 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17068
17069 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17070 ;;
17071 mingw* | cegcc*)
17072 # MinGW DLLs use traditional 'lib' prefix
17073 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17074 ;;
17075 pw32*)
17076 # pw32 DLLs use 'pw' prefix rather than 'lib'
17077 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17078 ;;
17079 esac
17080 ;;
17081
17082 *)
17083 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17084 ;;
17085 esac
17086 dynamic_linker='Win32 ld.exe'
17087 # FIXME: first we should search . and the directory the executable is in
17088 shlibpath_var=PATH
17089 ;;
17090
17091 darwin* | rhapsody*)
17092 dynamic_linker="$host_os dyld"
17093 version_type=darwin
17094 need_lib_prefix=no
17095 need_version=no
17096 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17097 soname_spec='${libname}${release}${major}$shared_ext'
17098 shlibpath_overrides_runpath=yes
17099 shlibpath_var=DYLD_LIBRARY_PATH
17100 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17101
17102 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17103 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17104 ;;
17105
17106 dgux*)
17107 version_type=linux
17108 need_lib_prefix=no
17109 need_version=no
17110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17111 soname_spec='${libname}${release}${shared_ext}$major'
17112 shlibpath_var=LD_LIBRARY_PATH
17113 ;;
17114
17115 freebsd* | dragonfly*)
17116 # DragonFly does not have aout. When/if they implement a new
17117 # versioning mechanism, adjust this.
17118 if test -x /usr/bin/objformat; then
17119 objformat=`/usr/bin/objformat`
17120 else
17121 case $host_os in
17122 freebsd[23].*) objformat=aout ;;
17123 *) objformat=elf ;;
17124 esac
17125 fi
17126 version_type=freebsd-$objformat
17127 case $version_type in
17128 freebsd-elf*)
17129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17130 need_version=no
17131 need_lib_prefix=no
17132 ;;
17133 freebsd-*)
17134 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17135 need_version=yes
17136 ;;
17137 esac
17138 shlibpath_var=LD_LIBRARY_PATH
17139 case $host_os in
17140 freebsd2.*)
17141 shlibpath_overrides_runpath=yes
17142 ;;
17143 freebsd3.[01]* | freebsdelf3.[01]*)
17144 shlibpath_overrides_runpath=yes
17145 hardcode_into_libs=yes
17146 ;;
17147 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17148 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17149 shlibpath_overrides_runpath=no
17150 hardcode_into_libs=yes
17151 ;;
17152 *) # from 4.6 on, and DragonFly
17153 shlibpath_overrides_runpath=yes
17154 hardcode_into_libs=yes
17155 ;;
17156 esac
17157 ;;
17158
17159 gnu*)
17160 version_type=linux
17161 need_lib_prefix=no
17162 need_version=no
17163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17164 soname_spec='${libname}${release}${shared_ext}$major'
17165 shlibpath_var=LD_LIBRARY_PATH
17166 hardcode_into_libs=yes
17167 ;;
17168
17169 haiku*)
17170 version_type=linux
17171 need_lib_prefix=no
17172 need_version=no
17173 dynamic_linker="$host_os runtime_loader"
17174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17175 soname_spec='${libname}${release}${shared_ext}$major'
17176 shlibpath_var=LIBRARY_PATH
17177 shlibpath_overrides_runpath=yes
17178 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17179 hardcode_into_libs=yes
17180 ;;
17181
17182 hpux9* | hpux10* | hpux11*)
17183 # Give a soname corresponding to the major version so that dld.sl refuses to
17184 # link against other versions.
17185 version_type=sunos
17186 need_lib_prefix=no
17187 need_version=no
17188 case $host_cpu in
17189 ia64*)
17190 shrext_cmds='.so'
17191 hardcode_into_libs=yes
17192 dynamic_linker="$host_os dld.so"
17193 shlibpath_var=LD_LIBRARY_PATH
17194 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17196 soname_spec='${libname}${release}${shared_ext}$major'
17197 if test "X$HPUX_IA64_MODE" = X32; then
17198 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17199 else
17200 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17201 fi
17202 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17203 ;;
17204 hppa*64*)
17205 shrext_cmds='.sl'
17206 hardcode_into_libs=yes
17207 dynamic_linker="$host_os dld.sl"
17208 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17209 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17211 soname_spec='${libname}${release}${shared_ext}$major'
17212 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17213 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17214 ;;
17215 *)
17216 shrext_cmds='.sl'
17217 dynamic_linker="$host_os dld.sl"
17218 shlibpath_var=SHLIB_PATH
17219 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17221 soname_spec='${libname}${release}${shared_ext}$major'
17222 ;;
17223 esac
17224 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17225 postinstall_cmds='chmod 555 $lib'
17226 # or fails outright, so override atomically:
17227 install_override_mode=555
17228 ;;
17229
17230 interix[3-9]*)
17231 version_type=linux
17232 need_lib_prefix=no
17233 need_version=no
17234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17235 soname_spec='${libname}${release}${shared_ext}$major'
17236 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17237 shlibpath_var=LD_LIBRARY_PATH
17238 shlibpath_overrides_runpath=no
17239 hardcode_into_libs=yes
17240 ;;
17241
17242 irix5* | irix6* | nonstopux*)
17243 case $host_os in
17244 nonstopux*) version_type=nonstopux ;;
17245 *)
17246 if test "$lt_cv_prog_gnu_ld" = yes; then
17247 version_type=linux
17248 else
17249 version_type=irix
17250 fi ;;
17251 esac
17252 need_lib_prefix=no
17253 need_version=no
17254 soname_spec='${libname}${release}${shared_ext}$major'
17255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17256 case $host_os in
17257 irix5* | nonstopux*)
17258 libsuff= shlibsuff=
17259 ;;
17260 *)
17261 case $LD in # libtool.m4 will add one of these switches to LD
17262 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17263 libsuff= shlibsuff= libmagic=32-bit;;
17264 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17265 libsuff=32 shlibsuff=N32 libmagic=N32;;
17266 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17267 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17268 *) libsuff= shlibsuff= libmagic=never-match;;
17269 esac
17270 ;;
17271 esac
17272 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17273 shlibpath_overrides_runpath=no
17274 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17275 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17276 hardcode_into_libs=yes
17277 ;;
17278
17279 # No shared lib support for Linux oldld, aout, or coff.
17280 linux*oldld* | linux*aout* | linux*coff*)
17281 dynamic_linker=no
17282 ;;
17283
17284 # This must be Linux ELF.
17285 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17286 version_type=linux
17287 need_lib_prefix=no
17288 need_version=no
17289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17290 soname_spec='${libname}${release}${shared_ext}$major'
17291 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17292 shlibpath_var=LD_LIBRARY_PATH
17293 shlibpath_overrides_runpath=no
17294
17295 # Some binutils ld are patched to set DT_RUNPATH
17296 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17297 $as_echo_n "(cached) " >&6
17298 else
17299 lt_cv_shlibpath_overrides_runpath=no
17300 save_LDFLAGS=$LDFLAGS
17301 save_libdir=$libdir
17302 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17303 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17305 /* end confdefs.h. */
17306
17307 int
17308 main ()
17309 {
17310
17311 ;
17312 return 0;
17313 }
17314 _ACEOF
17315 if ac_fn_c_try_link "$LINENO"; then :
17316 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17317 lt_cv_shlibpath_overrides_runpath=yes
17318 fi
17319 fi
17320 rm -f core conftest.err conftest.$ac_objext \
17321 conftest$ac_exeext conftest.$ac_ext
17322 LDFLAGS=$save_LDFLAGS
17323 libdir=$save_libdir
17324
17325 fi
17326
17327 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17328
17329 # This implies no fast_install, which is unacceptable.
17330 # Some rework will be needed to allow for fast_install
17331 # before this can be enabled.
17332 hardcode_into_libs=yes
17333
17334 # Append ld.so.conf contents to the search path
17335 if test -f /etc/ld.so.conf; then
17336 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' ' '`
17337 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17338 fi
17339
17340 # We used to test for /lib/ld.so.1 and disable shared libraries on
17341 # powerpc, because MkLinux only supported shared libraries with the
17342 # GNU dynamic linker. Since this was broken with cross compilers,
17343 # most powerpc-linux boxes support dynamic linking these days and
17344 # people can always --disable-shared, the test was removed, and we
17345 # assume the GNU/Linux dynamic linker is in use.
17346 dynamic_linker='GNU/Linux ld.so'
17347 ;;
17348
17349 netbsd*)
17350 version_type=sunos
17351 need_lib_prefix=no
17352 need_version=no
17353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17356 dynamic_linker='NetBSD (a.out) ld.so'
17357 else
17358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17359 soname_spec='${libname}${release}${shared_ext}$major'
17360 dynamic_linker='NetBSD ld.elf_so'
17361 fi
17362 shlibpath_var=LD_LIBRARY_PATH
17363 shlibpath_overrides_runpath=yes
17364 hardcode_into_libs=yes
17365 ;;
17366
17367 newsos6)
17368 version_type=linux
17369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17370 shlibpath_var=LD_LIBRARY_PATH
17371 shlibpath_overrides_runpath=yes
17372 ;;
17373
17374 *nto* | *qnx*)
17375 version_type=qnx
17376 need_lib_prefix=no
17377 need_version=no
17378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17379 soname_spec='${libname}${release}${shared_ext}$major'
17380 shlibpath_var=LD_LIBRARY_PATH
17381 shlibpath_overrides_runpath=no
17382 hardcode_into_libs=yes
17383 dynamic_linker='ldqnx.so'
17384 ;;
17385
17386 openbsd*)
17387 version_type=sunos
17388 sys_lib_dlsearch_path_spec="/usr/lib"
17389 need_lib_prefix=no
17390 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17391 case $host_os in
17392 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17393 *) need_version=no ;;
17394 esac
17395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17397 shlibpath_var=LD_LIBRARY_PATH
17398 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17399 case $host_os in
17400 openbsd2.[89] | openbsd2.[89].*)
17401 shlibpath_overrides_runpath=no
17402 ;;
17403 *)
17404 shlibpath_overrides_runpath=yes
17405 ;;
17406 esac
17407 else
17408 shlibpath_overrides_runpath=yes
17409 fi
17410 ;;
17411
17412 os2*)
17413 libname_spec='$name'
17414 shrext_cmds=".dll"
17415 need_lib_prefix=no
17416 library_names_spec='$libname${shared_ext} $libname.a'
17417 dynamic_linker='OS/2 ld.exe'
17418 shlibpath_var=LIBPATH
17419 ;;
17420
17421 osf3* | osf4* | osf5*)
17422 version_type=osf
17423 need_lib_prefix=no
17424 need_version=no
17425 soname_spec='${libname}${release}${shared_ext}$major'
17426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17427 shlibpath_var=LD_LIBRARY_PATH
17428 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17429 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17430 ;;
17431
17432 rdos*)
17433 dynamic_linker=no
17434 ;;
17435
17436 solaris*)
17437 version_type=linux
17438 need_lib_prefix=no
17439 need_version=no
17440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17441 soname_spec='${libname}${release}${shared_ext}$major'
17442 shlibpath_var=LD_LIBRARY_PATH
17443 shlibpath_overrides_runpath=yes
17444 hardcode_into_libs=yes
17445 # ldd complains unless libraries are executable
17446 postinstall_cmds='chmod +x $lib'
17447 ;;
17448
17449 sunos4*)
17450 version_type=sunos
17451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17452 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17453 shlibpath_var=LD_LIBRARY_PATH
17454 shlibpath_overrides_runpath=yes
17455 if test "$with_gnu_ld" = yes; then
17456 need_lib_prefix=no
17457 fi
17458 need_version=yes
17459 ;;
17460
17461 sysv4 | sysv4.3*)
17462 version_type=linux
17463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17464 soname_spec='${libname}${release}${shared_ext}$major'
17465 shlibpath_var=LD_LIBRARY_PATH
17466 case $host_vendor in
17467 sni)
17468 shlibpath_overrides_runpath=no
17469 need_lib_prefix=no
17470 runpath_var=LD_RUN_PATH
17471 ;;
17472 siemens)
17473 need_lib_prefix=no
17474 ;;
17475 motorola)
17476 need_lib_prefix=no
17477 need_version=no
17478 shlibpath_overrides_runpath=no
17479 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17480 ;;
17481 esac
17482 ;;
17483
17484 sysv4*MP*)
17485 if test -d /usr/nec ;then
17486 version_type=linux
17487 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17488 soname_spec='$libname${shared_ext}.$major'
17489 shlibpath_var=LD_LIBRARY_PATH
17490 fi
17491 ;;
17492
17493 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17494 version_type=freebsd-elf
17495 need_lib_prefix=no
17496 need_version=no
17497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17498 soname_spec='${libname}${release}${shared_ext}$major'
17499 shlibpath_var=LD_LIBRARY_PATH
17500 shlibpath_overrides_runpath=yes
17501 hardcode_into_libs=yes
17502 if test "$with_gnu_ld" = yes; then
17503 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17504 else
17505 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17506 case $host_os in
17507 sco3.2v5*)
17508 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17509 ;;
17510 esac
17511 fi
17512 sys_lib_dlsearch_path_spec='/usr/lib'
17513 ;;
17514
17515 tpf*)
17516 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17517 version_type=linux
17518 need_lib_prefix=no
17519 need_version=no
17520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17521 shlibpath_var=LD_LIBRARY_PATH
17522 shlibpath_overrides_runpath=no
17523 hardcode_into_libs=yes
17524 ;;
17525
17526 uts4*)
17527 version_type=linux
17528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17529 soname_spec='${libname}${release}${shared_ext}$major'
17530 shlibpath_var=LD_LIBRARY_PATH
17531 ;;
17532
17533 *)
17534 dynamic_linker=no
17535 ;;
17536 esac
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17538 $as_echo "$dynamic_linker" >&6; }
17539 test "$dynamic_linker" = no && can_build_shared=no
17540
17541 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17542 if test "$GCC" = yes; then
17543 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17544 fi
17545
17546 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17547 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17548 fi
17549 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17550 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17551 fi
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
17643
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17645 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17646 hardcode_action=
17647 if test -n "$hardcode_libdir_flag_spec" ||
17648 test -n "$runpath_var" ||
17649 test "X$hardcode_automatic" = "Xyes" ; then
17650
17651 # We can hardcode non-existent directories.
17652 if test "$hardcode_direct" != no &&
17653 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17654 # have to relink, otherwise we might link with an installed library
17655 # when we should be linking with a yet-to-be-installed one
17656 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17657 test "$hardcode_minus_L" != no; then
17658 # Linking always hardcodes the temporary library directory.
17659 hardcode_action=relink
17660 else
17661 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17662 hardcode_action=immediate
17663 fi
17664 else
17665 # We cannot hardcode anything, or else we can only hardcode existing
17666 # directories.
17667 hardcode_action=unsupported
17668 fi
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17670 $as_echo "$hardcode_action" >&6; }
17671
17672 if test "$hardcode_action" = relink ||
17673 test "$inherit_rpath" = yes; then
17674 # Fast installation is not supported
17675 enable_fast_install=no
17676 elif test "$shlibpath_overrides_runpath" = yes ||
17677 test "$enable_shared" = no; then
17678 # Fast installation is not necessary
17679 enable_fast_install=needless
17680 fi
17681
17682
17683
17684
17685
17686
17687 if test "x$enable_dlopen" != xyes; then
17688 enable_dlopen=unknown
17689 enable_dlopen_self=unknown
17690 enable_dlopen_self_static=unknown
17691 else
17692 lt_cv_dlopen=no
17693 lt_cv_dlopen_libs=
17694
17695 case $host_os in
17696 beos*)
17697 lt_cv_dlopen="load_add_on"
17698 lt_cv_dlopen_libs=
17699 lt_cv_dlopen_self=yes
17700 ;;
17701
17702 mingw* | pw32* | cegcc*)
17703 lt_cv_dlopen="LoadLibrary"
17704 lt_cv_dlopen_libs=
17705 ;;
17706
17707 cygwin*)
17708 lt_cv_dlopen="dlopen"
17709 lt_cv_dlopen_libs=
17710 ;;
17711
17712 darwin*)
17713 # if libdl is installed we need to link against it
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17715 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17716 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17717 $as_echo_n "(cached) " >&6
17718 else
17719 ac_check_lib_save_LIBS=$LIBS
17720 LIBS="-ldl $LIBS"
17721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17722 /* end confdefs.h. */
17723
17724 /* Override any GCC internal prototype to avoid an error.
17725 Use char because int might match the return type of a GCC
17726 builtin and then its argument prototype would still apply. */
17727 #ifdef __cplusplus
17728 extern "C"
17729 #endif
17730 char dlopen ();
17731 int
17732 main ()
17733 {
17734 return dlopen ();
17735 ;
17736 return 0;
17737 }
17738 _ACEOF
17739 if ac_fn_c_try_link "$LINENO"; then :
17740 ac_cv_lib_dl_dlopen=yes
17741 else
17742 ac_cv_lib_dl_dlopen=no
17743 fi
17744 rm -f core conftest.err conftest.$ac_objext \
17745 conftest$ac_exeext conftest.$ac_ext
17746 LIBS=$ac_check_lib_save_LIBS
17747 fi
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17749 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17750 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17751 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17752 else
17753
17754 lt_cv_dlopen="dyld"
17755 lt_cv_dlopen_libs=
17756 lt_cv_dlopen_self=yes
17757
17758 fi
17759
17760 ;;
17761
17762 *)
17763 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17764 if test "x$ac_cv_func_shl_load" = x""yes; then :
17765 lt_cv_dlopen="shl_load"
17766 else
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17768 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17769 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17770 $as_echo_n "(cached) " >&6
17771 else
17772 ac_check_lib_save_LIBS=$LIBS
17773 LIBS="-ldld $LIBS"
17774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17775 /* end confdefs.h. */
17776
17777 /* Override any GCC internal prototype to avoid an error.
17778 Use char because int might match the return type of a GCC
17779 builtin and then its argument prototype would still apply. */
17780 #ifdef __cplusplus
17781 extern "C"
17782 #endif
17783 char shl_load ();
17784 int
17785 main ()
17786 {
17787 return shl_load ();
17788 ;
17789 return 0;
17790 }
17791 _ACEOF
17792 if ac_fn_c_try_link "$LINENO"; then :
17793 ac_cv_lib_dld_shl_load=yes
17794 else
17795 ac_cv_lib_dld_shl_load=no
17796 fi
17797 rm -f core conftest.err conftest.$ac_objext \
17798 conftest$ac_exeext conftest.$ac_ext
17799 LIBS=$ac_check_lib_save_LIBS
17800 fi
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17802 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17803 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17804 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17805 else
17806 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17807 if test "x$ac_cv_func_dlopen" = x""yes; then :
17808 lt_cv_dlopen="dlopen"
17809 else
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17811 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17812 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17813 $as_echo_n "(cached) " >&6
17814 else
17815 ac_check_lib_save_LIBS=$LIBS
17816 LIBS="-ldl $LIBS"
17817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17818 /* end confdefs.h. */
17819
17820 /* Override any GCC internal prototype to avoid an error.
17821 Use char because int might match the return type of a GCC
17822 builtin and then its argument prototype would still apply. */
17823 #ifdef __cplusplus
17824 extern "C"
17825 #endif
17826 char dlopen ();
17827 int
17828 main ()
17829 {
17830 return dlopen ();
17831 ;
17832 return 0;
17833 }
17834 _ACEOF
17835 if ac_fn_c_try_link "$LINENO"; then :
17836 ac_cv_lib_dl_dlopen=yes
17837 else
17838 ac_cv_lib_dl_dlopen=no
17839 fi
17840 rm -f core conftest.err conftest.$ac_objext \
17841 conftest$ac_exeext conftest.$ac_ext
17842 LIBS=$ac_check_lib_save_LIBS
17843 fi
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17845 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17846 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17847 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17848 else
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17850 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17851 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17852 $as_echo_n "(cached) " >&6
17853 else
17854 ac_check_lib_save_LIBS=$LIBS
17855 LIBS="-lsvld $LIBS"
17856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17857 /* end confdefs.h. */
17858
17859 /* Override any GCC internal prototype to avoid an error.
17860 Use char because int might match the return type of a GCC
17861 builtin and then its argument prototype would still apply. */
17862 #ifdef __cplusplus
17863 extern "C"
17864 #endif
17865 char dlopen ();
17866 int
17867 main ()
17868 {
17869 return dlopen ();
17870 ;
17871 return 0;
17872 }
17873 _ACEOF
17874 if ac_fn_c_try_link "$LINENO"; then :
17875 ac_cv_lib_svld_dlopen=yes
17876 else
17877 ac_cv_lib_svld_dlopen=no
17878 fi
17879 rm -f core conftest.err conftest.$ac_objext \
17880 conftest$ac_exeext conftest.$ac_ext
17881 LIBS=$ac_check_lib_save_LIBS
17882 fi
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17884 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17885 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17886 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17887 else
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17889 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17890 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17891 $as_echo_n "(cached) " >&6
17892 else
17893 ac_check_lib_save_LIBS=$LIBS
17894 LIBS="-ldld $LIBS"
17895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17896 /* end confdefs.h. */
17897
17898 /* Override any GCC internal prototype to avoid an error.
17899 Use char because int might match the return type of a GCC
17900 builtin and then its argument prototype would still apply. */
17901 #ifdef __cplusplus
17902 extern "C"
17903 #endif
17904 char dld_link ();
17905 int
17906 main ()
17907 {
17908 return dld_link ();
17909 ;
17910 return 0;
17911 }
17912 _ACEOF
17913 if ac_fn_c_try_link "$LINENO"; then :
17914 ac_cv_lib_dld_dld_link=yes
17915 else
17916 ac_cv_lib_dld_dld_link=no
17917 fi
17918 rm -f core conftest.err conftest.$ac_objext \
17919 conftest$ac_exeext conftest.$ac_ext
17920 LIBS=$ac_check_lib_save_LIBS
17921 fi
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17923 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17924 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17925 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17926 fi
17927
17928
17929 fi
17930
17931
17932 fi
17933
17934
17935 fi
17936
17937
17938 fi
17939
17940
17941 fi
17942
17943 ;;
17944 esac
17945
17946 if test "x$lt_cv_dlopen" != xno; then
17947 enable_dlopen=yes
17948 else
17949 enable_dlopen=no
17950 fi
17951
17952 case $lt_cv_dlopen in
17953 dlopen)
17954 save_CPPFLAGS="$CPPFLAGS"
17955 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17956
17957 save_LDFLAGS="$LDFLAGS"
17958 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17959
17960 save_LIBS="$LIBS"
17961 LIBS="$lt_cv_dlopen_libs $LIBS"
17962
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17964 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17965 if test "${lt_cv_dlopen_self+set}" = set; then :
17966 $as_echo_n "(cached) " >&6
17967 else
17968 if test "$cross_compiling" = yes; then :
17969 lt_cv_dlopen_self=cross
17970 else
17971 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17972 lt_status=$lt_dlunknown
17973 cat > conftest.$ac_ext <<_LT_EOF
17974 #line 17974 "configure"
17975 #include "confdefs.h"
17976
17977 #if HAVE_DLFCN_H
17978 #include <dlfcn.h>
17979 #endif
17980
17981 #include <stdio.h>
17982
17983 #ifdef RTLD_GLOBAL
17984 # define LT_DLGLOBAL RTLD_GLOBAL
17985 #else
17986 # ifdef DL_GLOBAL
17987 # define LT_DLGLOBAL DL_GLOBAL
17988 # else
17989 # define LT_DLGLOBAL 0
17990 # endif
17991 #endif
17992
17993 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17994 find out it does not work in some platform. */
17995 #ifndef LT_DLLAZY_OR_NOW
17996 # ifdef RTLD_LAZY
17997 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17998 # else
17999 # ifdef DL_LAZY
18000 # define LT_DLLAZY_OR_NOW DL_LAZY
18001 # else
18002 # ifdef RTLD_NOW
18003 # define LT_DLLAZY_OR_NOW RTLD_NOW
18004 # else
18005 # ifdef DL_NOW
18006 # define LT_DLLAZY_OR_NOW DL_NOW
18007 # else
18008 # define LT_DLLAZY_OR_NOW 0
18009 # endif
18010 # endif
18011 # endif
18012 # endif
18013 #endif
18014
18015 /* When -fvisbility=hidden is used, assume the code has been annotated
18016 correspondingly for the symbols needed. */
18017 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18018 void fnord () __attribute__((visibility("default")));
18019 #endif
18020
18021 void fnord () { int i=42; }
18022 int main ()
18023 {
18024 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18025 int status = $lt_dlunknown;
18026
18027 if (self)
18028 {
18029 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18030 else
18031 {
18032 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18033 else puts (dlerror ());
18034 }
18035 /* dlclose (self); */
18036 }
18037 else
18038 puts (dlerror ());
18039
18040 return status;
18041 }
18042 _LT_EOF
18043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18044 (eval $ac_link) 2>&5
18045 ac_status=$?
18046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18047 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18048 (./conftest; exit; ) >&5 2>/dev/null
18049 lt_status=$?
18050 case x$lt_status in
18051 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18052 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18053 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18054 esac
18055 else :
18056 # compilation failed
18057 lt_cv_dlopen_self=no
18058 fi
18059 fi
18060 rm -fr conftest*
18061
18062
18063 fi
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18065 $as_echo "$lt_cv_dlopen_self" >&6; }
18066
18067 if test "x$lt_cv_dlopen_self" = xyes; then
18068 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18070 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18071 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18072 $as_echo_n "(cached) " >&6
18073 else
18074 if test "$cross_compiling" = yes; then :
18075 lt_cv_dlopen_self_static=cross
18076 else
18077 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18078 lt_status=$lt_dlunknown
18079 cat > conftest.$ac_ext <<_LT_EOF
18080 #line 18080 "configure"
18081 #include "confdefs.h"
18082
18083 #if HAVE_DLFCN_H
18084 #include <dlfcn.h>
18085 #endif
18086
18087 #include <stdio.h>
18088
18089 #ifdef RTLD_GLOBAL
18090 # define LT_DLGLOBAL RTLD_GLOBAL
18091 #else
18092 # ifdef DL_GLOBAL
18093 # define LT_DLGLOBAL DL_GLOBAL
18094 # else
18095 # define LT_DLGLOBAL 0
18096 # endif
18097 #endif
18098
18099 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18100 find out it does not work in some platform. */
18101 #ifndef LT_DLLAZY_OR_NOW
18102 # ifdef RTLD_LAZY
18103 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18104 # else
18105 # ifdef DL_LAZY
18106 # define LT_DLLAZY_OR_NOW DL_LAZY
18107 # else
18108 # ifdef RTLD_NOW
18109 # define LT_DLLAZY_OR_NOW RTLD_NOW
18110 # else
18111 # ifdef DL_NOW
18112 # define LT_DLLAZY_OR_NOW DL_NOW
18113 # else
18114 # define LT_DLLAZY_OR_NOW 0
18115 # endif
18116 # endif
18117 # endif
18118 # endif
18119 #endif
18120
18121 /* When -fvisbility=hidden is used, assume the code has been annotated
18122 correspondingly for the symbols needed. */
18123 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18124 void fnord () __attribute__((visibility("default")));
18125 #endif
18126
18127 void fnord () { int i=42; }
18128 int main ()
18129 {
18130 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18131 int status = $lt_dlunknown;
18132
18133 if (self)
18134 {
18135 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18136 else
18137 {
18138 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18139 else puts (dlerror ());
18140 }
18141 /* dlclose (self); */
18142 }
18143 else
18144 puts (dlerror ());
18145
18146 return status;
18147 }
18148 _LT_EOF
18149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18150 (eval $ac_link) 2>&5
18151 ac_status=$?
18152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18153 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18154 (./conftest; exit; ) >&5 2>/dev/null
18155 lt_status=$?
18156 case x$lt_status in
18157 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18158 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18159 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18160 esac
18161 else :
18162 # compilation failed
18163 lt_cv_dlopen_self_static=no
18164 fi
18165 fi
18166 rm -fr conftest*
18167
18168
18169 fi
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18171 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18172 fi
18173
18174 CPPFLAGS="$save_CPPFLAGS"
18175 LDFLAGS="$save_LDFLAGS"
18176 LIBS="$save_LIBS"
18177 ;;
18178 esac
18179
18180 case $lt_cv_dlopen_self in
18181 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18182 *) enable_dlopen_self=unknown ;;
18183 esac
18184
18185 case $lt_cv_dlopen_self_static in
18186 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18187 *) enable_dlopen_self_static=unknown ;;
18188 esac
18189 fi
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207 striplib=
18208 old_striplib=
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18210 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18211 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18212 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18213 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18215 $as_echo "yes" >&6; }
18216 else
18217 # FIXME - insert some real tests, host_os isn't really good enough
18218 case $host_os in
18219 darwin*)
18220 if test -n "$STRIP" ; then
18221 striplib="$STRIP -x"
18222 old_striplib="$STRIP -S"
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18224 $as_echo "yes" >&6; }
18225 else
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18227 $as_echo "no" >&6; }
18228 fi
18229 ;;
18230 *)
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18232 $as_echo "no" >&6; }
18233 ;;
18234 esac
18235 fi
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248 # Report which library types will actually be built
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18250 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18252 $as_echo "$can_build_shared" >&6; }
18253
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18255 $as_echo_n "checking whether to build shared libraries... " >&6; }
18256 test "$can_build_shared" = "no" && enable_shared=no
18257
18258 # On AIX, shared libraries and static libraries use the same namespace, and
18259 # are all built from PIC.
18260 case $host_os in
18261 aix3*)
18262 test "$enable_shared" = yes && enable_static=no
18263 if test -n "$RANLIB"; then
18264 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18265 postinstall_cmds='$RANLIB $lib'
18266 fi
18267 ;;
18268
18269 aix[4-9]*)
18270 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18271 test "$enable_shared" = yes && enable_static=no
18272 fi
18273 ;;
18274 esac
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18276 $as_echo "$enable_shared" >&6; }
18277
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18279 $as_echo_n "checking whether to build static libraries... " >&6; }
18280 # Make sure either enable_shared or enable_static is yes.
18281 test "$enable_shared" = yes || enable_static=yes
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18283 $as_echo "$enable_static" >&6; }
18284
18285
18286
18287
18288 fi
18289 ac_ext=c
18290 ac_cpp='$CPP $CPPFLAGS'
18291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18294
18295 CC="$lt_save_CC"
18296
18297 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18298 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18299 (test "X$CXX" != "Xg++"))) ; then
18300 ac_ext=cpp
18301 ac_cpp='$CXXCPP $CPPFLAGS'
18302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18306 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18307 if test -z "$CXXCPP"; then
18308 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18309 $as_echo_n "(cached) " >&6
18310 else
18311 # Double quotes because CXXCPP needs to be expanded
18312 for CXXCPP in "$CXX -E" "/lib/cpp"
18313 do
18314 ac_preproc_ok=false
18315 for ac_cxx_preproc_warn_flag in '' yes
18316 do
18317 # Use a header file that comes with gcc, so configuring glibc
18318 # with a fresh cross-compiler works.
18319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18320 # <limits.h> exists even on freestanding compilers.
18321 # On the NeXT, cc -E runs the code through the compiler's parser,
18322 # not just through cpp. "Syntax error" is here to catch this case.
18323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18324 /* end confdefs.h. */
18325 #ifdef __STDC__
18326 # include <limits.h>
18327 #else
18328 # include <assert.h>
18329 #endif
18330 Syntax error
18331 _ACEOF
18332 if ac_fn_cxx_try_cpp "$LINENO"; then :
18333
18334 else
18335 # Broken: fails on valid input.
18336 continue
18337 fi
18338 rm -f conftest.err conftest.$ac_ext
18339
18340 # OK, works on sane cases. Now check whether nonexistent headers
18341 # can be detected and how.
18342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18343 /* end confdefs.h. */
18344 #include <ac_nonexistent.h>
18345 _ACEOF
18346 if ac_fn_cxx_try_cpp "$LINENO"; then :
18347 # Broken: success on invalid input.
18348 continue
18349 else
18350 # Passes both tests.
18351 ac_preproc_ok=:
18352 break
18353 fi
18354 rm -f conftest.err conftest.$ac_ext
18355
18356 done
18357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18358 rm -f conftest.err conftest.$ac_ext
18359 if $ac_preproc_ok; then :
18360 break
18361 fi
18362
18363 done
18364 ac_cv_prog_CXXCPP=$CXXCPP
18365
18366 fi
18367 CXXCPP=$ac_cv_prog_CXXCPP
18368 else
18369 ac_cv_prog_CXXCPP=$CXXCPP
18370 fi
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18372 $as_echo "$CXXCPP" >&6; }
18373 ac_preproc_ok=false
18374 for ac_cxx_preproc_warn_flag in '' yes
18375 do
18376 # Use a header file that comes with gcc, so configuring glibc
18377 # with a fresh cross-compiler works.
18378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18379 # <limits.h> exists even on freestanding compilers.
18380 # On the NeXT, cc -E runs the code through the compiler's parser,
18381 # not just through cpp. "Syntax error" is here to catch this case.
18382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18383 /* end confdefs.h. */
18384 #ifdef __STDC__
18385 # include <limits.h>
18386 #else
18387 # include <assert.h>
18388 #endif
18389 Syntax error
18390 _ACEOF
18391 if ac_fn_cxx_try_cpp "$LINENO"; then :
18392
18393 else
18394 # Broken: fails on valid input.
18395 continue
18396 fi
18397 rm -f conftest.err conftest.$ac_ext
18398
18399 # OK, works on sane cases. Now check whether nonexistent headers
18400 # can be detected and how.
18401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18402 /* end confdefs.h. */
18403 #include <ac_nonexistent.h>
18404 _ACEOF
18405 if ac_fn_cxx_try_cpp "$LINENO"; then :
18406 # Broken: success on invalid input.
18407 continue
18408 else
18409 # Passes both tests.
18410 ac_preproc_ok=:
18411 break
18412 fi
18413 rm -f conftest.err conftest.$ac_ext
18414
18415 done
18416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18417 rm -f conftest.err conftest.$ac_ext
18418 if $ac_preproc_ok; then :
18419
18420 else
18421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18423 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18424 See \`config.log' for more details." "$LINENO" 5; }
18425 fi
18426
18427 ac_ext=c
18428 ac_cpp='$CPP $CPPFLAGS'
18429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18432
18433 else
18434 _lt_caught_CXX_error=yes
18435 fi
18436
18437 ac_ext=cpp
18438 ac_cpp='$CXXCPP $CPPFLAGS'
18439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18442
18443 archive_cmds_need_lc_CXX=no
18444 allow_undefined_flag_CXX=
18445 always_export_symbols_CXX=no
18446 archive_expsym_cmds_CXX=
18447 compiler_needs_object_CXX=no
18448 export_dynamic_flag_spec_CXX=
18449 hardcode_direct_CXX=no
18450 hardcode_direct_absolute_CXX=no
18451 hardcode_libdir_flag_spec_CXX=
18452 hardcode_libdir_flag_spec_ld_CXX=
18453 hardcode_libdir_separator_CXX=
18454 hardcode_minus_L_CXX=no
18455 hardcode_shlibpath_var_CXX=unsupported
18456 hardcode_automatic_CXX=no
18457 inherit_rpath_CXX=no
18458 module_cmds_CXX=
18459 module_expsym_cmds_CXX=
18460 link_all_deplibs_CXX=unknown
18461 old_archive_cmds_CXX=$old_archive_cmds
18462 reload_flag_CXX=$reload_flag
18463 reload_cmds_CXX=$reload_cmds
18464 no_undefined_flag_CXX=
18465 whole_archive_flag_spec_CXX=
18466 enable_shared_with_static_runtimes_CXX=no
18467
18468 # Source file extension for C++ test sources.
18469 ac_ext=cpp
18470
18471 # Object file extension for compiled C++ test sources.
18472 objext=o
18473 objext_CXX=$objext
18474
18475 # No sense in running all these tests if we already determined that
18476 # the CXX compiler isn't working. Some variables (like enable_shared)
18477 # are currently assumed to apply to all compilers on this platform,
18478 # and will be corrupted by setting them based on a non-working compiler.
18479 if test "$_lt_caught_CXX_error" != yes; then
18480 # Code to be used in simple compile tests
18481 lt_simple_compile_test_code="int some_variable = 0;"
18482
18483 # Code to be used in simple link tests
18484 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18485
18486 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18487
18488
18489
18490
18491
18492
18493 # If no C compiler was specified, use CC.
18494 LTCC=${LTCC-"$CC"}
18495
18496 # If no C compiler flags were specified, use CFLAGS.
18497 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18498
18499 # Allow CC to be a program name with arguments.
18500 compiler=$CC
18501
18502
18503 # save warnings/boilerplate of simple test code
18504 ac_outfile=conftest.$ac_objext
18505 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18506 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18507 _lt_compiler_boilerplate=`cat conftest.err`
18508 $RM conftest*
18509
18510 ac_outfile=conftest.$ac_objext
18511 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18512 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18513 _lt_linker_boilerplate=`cat conftest.err`
18514 $RM -r conftest*
18515
18516
18517 # Allow CC to be a program name with arguments.
18518 lt_save_CC=$CC
18519 lt_save_LD=$LD
18520 lt_save_GCC=$GCC
18521 GCC=$GXX
18522 lt_save_with_gnu_ld=$with_gnu_ld
18523 lt_save_path_LD=$lt_cv_path_LD
18524 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18525 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18526 else
18527 $as_unset lt_cv_prog_gnu_ld
18528 fi
18529 if test -n "${lt_cv_path_LDCXX+set}"; then
18530 lt_cv_path_LD=$lt_cv_path_LDCXX
18531 else
18532 $as_unset lt_cv_path_LD
18533 fi
18534 test -z "${LDCXX+set}" || LD=$LDCXX
18535 CC=${CXX-"c++"}
18536 compiler=$CC
18537 compiler_CXX=$CC
18538 for cc_temp in $compiler""; do
18539 case $cc_temp in
18540 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18541 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18542 \-*) ;;
18543 *) break;;
18544 esac
18545 done
18546 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18547
18548
18549 if test -n "$compiler"; then
18550 # We don't want -fno-exception when compiling C++ code, so set the
18551 # no_builtin_flag separately
18552 if test "$GXX" = yes; then
18553 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18554 else
18555 lt_prog_compiler_no_builtin_flag_CXX=
18556 fi
18557
18558 if test "$GXX" = yes; then
18559 # Set up default GNU C++ configuration
18560
18561
18562
18563 # Check whether --with-gnu-ld was given.
18564 if test "${with_gnu_ld+set}" = set; then :
18565 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18566 else
18567 with_gnu_ld=no
18568 fi
18569
18570 ac_prog=ld
18571 if test "$GCC" = yes; then
18572 # Check if gcc -print-prog-name=ld gives a path.
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18574 $as_echo_n "checking for ld used by $CC... " >&6; }
18575 case $host in
18576 *-*-mingw*)
18577 # gcc leaves a trailing carriage return which upsets mingw
18578 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18579 *)
18580 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18581 esac
18582 case $ac_prog in
18583 # Accept absolute paths.
18584 [\\/]* | ?:[\\/]*)
18585 re_direlt='/[^/][^/]*/\.\./'
18586 # Canonicalize the pathname of ld
18587 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18588 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18589 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18590 done
18591 test -z "$LD" && LD="$ac_prog"
18592 ;;
18593 "")
18594 # If it fails, then pretend we aren't using GCC.
18595 ac_prog=ld
18596 ;;
18597 *)
18598 # If it is relative, then search for the first ld in PATH.
18599 with_gnu_ld=unknown
18600 ;;
18601 esac
18602 elif test "$with_gnu_ld" = yes; then
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18604 $as_echo_n "checking for GNU ld... " >&6; }
18605 else
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18607 $as_echo_n "checking for non-GNU ld... " >&6; }
18608 fi
18609 if test "${lt_cv_path_LD+set}" = set; then :
18610 $as_echo_n "(cached) " >&6
18611 else
18612 if test -z "$LD"; then
18613 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18614 for ac_dir in $PATH; do
18615 IFS="$lt_save_ifs"
18616 test -z "$ac_dir" && ac_dir=.
18617 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18618 lt_cv_path_LD="$ac_dir/$ac_prog"
18619 # Check to see if the program is GNU ld. I'd rather use --version,
18620 # but apparently some variants of GNU ld only accept -v.
18621 # Break only if it was the GNU/non-GNU ld that we prefer.
18622 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18623 *GNU* | *'with BFD'*)
18624 test "$with_gnu_ld" != no && break
18625 ;;
18626 *)
18627 test "$with_gnu_ld" != yes && break
18628 ;;
18629 esac
18630 fi
18631 done
18632 IFS="$lt_save_ifs"
18633 else
18634 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18635 fi
18636 fi
18637
18638 LD="$lt_cv_path_LD"
18639 if test -n "$LD"; then
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18641 $as_echo "$LD" >&6; }
18642 else
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18644 $as_echo "no" >&6; }
18645 fi
18646 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18648 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18649 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18650 $as_echo_n "(cached) " >&6
18651 else
18652 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18653 case `$LD -v 2>&1 </dev/null` in
18654 *GNU* | *'with BFD'*)
18655 lt_cv_prog_gnu_ld=yes
18656 ;;
18657 *)
18658 lt_cv_prog_gnu_ld=no
18659 ;;
18660 esac
18661 fi
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18663 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18664 with_gnu_ld=$lt_cv_prog_gnu_ld
18665
18666
18667
18668
18669
18670
18671
18672 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18673 # archiving commands below assume that GNU ld is being used.
18674 if test "$with_gnu_ld" = yes; then
18675 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18676 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'
18677
18678 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18679 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18680
18681 # If archive_cmds runs LD, not CC, wlarc should be empty
18682 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18683 # investigate it a little bit more. (MM)
18684 wlarc='${wl}'
18685
18686 # ancient GNU ld didn't support --whole-archive et. al.
18687 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18688 $GREP 'no-whole-archive' > /dev/null; then
18689 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18690 else
18691 whole_archive_flag_spec_CXX=
18692 fi
18693 else
18694 with_gnu_ld=no
18695 wlarc=
18696
18697 # A generic and very simple default shared library creation
18698 # command for GNU C++ for the case where it uses the native
18699 # linker, instead of GNU ld. If possible, this setting should
18700 # overridden to take advantage of the native linker features on
18701 # the platform it is being used on.
18702 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18703 fi
18704
18705 # Commands to make compiler produce verbose output that lists
18706 # what "hidden" libraries, object files and flags are used when
18707 # linking a shared library.
18708 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18709
18710 else
18711 GXX=no
18712 with_gnu_ld=no
18713 wlarc=
18714 fi
18715
18716 # PORTME: fill in a description of your system's C++ link characteristics
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18718 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18719 ld_shlibs_CXX=yes
18720 case $host_os in
18721 aix3*)
18722 # FIXME: insert proper C++ library support
18723 ld_shlibs_CXX=no
18724 ;;
18725 aix[4-9]*)
18726 if test "$host_cpu" = ia64; then
18727 # On IA64, the linker does run time linking by default, so we don't
18728 # have to do anything special.
18729 aix_use_runtimelinking=no
18730 exp_sym_flag='-Bexport'
18731 no_entry_flag=""
18732 else
18733 aix_use_runtimelinking=no
18734
18735 # Test if we are trying to use run time linking or normal
18736 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18737 # need to do runtime linking.
18738 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18739 for ld_flag in $LDFLAGS; do
18740 case $ld_flag in
18741 *-brtl*)
18742 aix_use_runtimelinking=yes
18743 break
18744 ;;
18745 esac
18746 done
18747 ;;
18748 esac
18749
18750 exp_sym_flag='-bexport'
18751 no_entry_flag='-bnoentry'
18752 fi
18753
18754 # When large executables or shared objects are built, AIX ld can
18755 # have problems creating the table of contents. If linking a library
18756 # or program results in "error TOC overflow" add -mminimal-toc to
18757 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18758 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18759
18760 archive_cmds_CXX=''
18761 hardcode_direct_CXX=yes
18762 hardcode_direct_absolute_CXX=yes
18763 hardcode_libdir_separator_CXX=':'
18764 link_all_deplibs_CXX=yes
18765 file_list_spec_CXX='${wl}-f,'
18766
18767 if test "$GXX" = yes; then
18768 case $host_os in aix4.[012]|aix4.[012].*)
18769 # We only want to do this on AIX 4.2 and lower, the check
18770 # below for broken collect2 doesn't work under 4.3+
18771 collect2name=`${CC} -print-prog-name=collect2`
18772 if test -f "$collect2name" &&
18773 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18774 then
18775 # We have reworked collect2
18776 :
18777 else
18778 # We have old collect2
18779 hardcode_direct_CXX=unsupported
18780 # It fails to find uninstalled libraries when the uninstalled
18781 # path is not listed in the libpath. Setting hardcode_minus_L
18782 # to unsupported forces relinking
18783 hardcode_minus_L_CXX=yes
18784 hardcode_libdir_flag_spec_CXX='-L$libdir'
18785 hardcode_libdir_separator_CXX=
18786 fi
18787 esac
18788 shared_flag='-shared'
18789 if test "$aix_use_runtimelinking" = yes; then
18790 shared_flag="$shared_flag "'${wl}-G'
18791 fi
18792 else
18793 # not using gcc
18794 if test "$host_cpu" = ia64; then
18795 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18796 # chokes on -Wl,-G. The following line is correct:
18797 shared_flag='-G'
18798 else
18799 if test "$aix_use_runtimelinking" = yes; then
18800 shared_flag='${wl}-G'
18801 else
18802 shared_flag='${wl}-bM:SRE'
18803 fi
18804 fi
18805 fi
18806
18807 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18808 # It seems that -bexpall does not export symbols beginning with
18809 # underscore (_), so it is better to generate a list of symbols to
18810 # export.
18811 always_export_symbols_CXX=yes
18812 if test "$aix_use_runtimelinking" = yes; then
18813 # Warning - without using the other runtime loading flags (-brtl),
18814 # -berok will link without error, but may produce a broken library.
18815 allow_undefined_flag_CXX='-berok'
18816 # Determine the default libpath from the value encoded in an empty
18817 # executable.
18818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18819 /* end confdefs.h. */
18820
18821 int
18822 main ()
18823 {
18824
18825 ;
18826 return 0;
18827 }
18828 _ACEOF
18829 if ac_fn_cxx_try_link "$LINENO"; then :
18830
18831 lt_aix_libpath_sed='
18832 /Import File Strings/,/^$/ {
18833 /^0/ {
18834 s/^0 *\(.*\)$/\1/
18835 p
18836 }
18837 }'
18838 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18839 # Check for a 64-bit object if we didn't find anything.
18840 if test -z "$aix_libpath"; then
18841 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18842 fi
18843 fi
18844 rm -f core conftest.err conftest.$ac_objext \
18845 conftest$ac_exeext conftest.$ac_ext
18846 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18847
18848 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18849
18850 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"
18851 else
18852 if test "$host_cpu" = ia64; then
18853 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18854 allow_undefined_flag_CXX="-z nodefs"
18855 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"
18856 else
18857 # Determine the default libpath from the value encoded in an
18858 # empty executable.
18859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18860 /* end confdefs.h. */
18861
18862 int
18863 main ()
18864 {
18865
18866 ;
18867 return 0;
18868 }
18869 _ACEOF
18870 if ac_fn_cxx_try_link "$LINENO"; then :
18871
18872 lt_aix_libpath_sed='
18873 /Import File Strings/,/^$/ {
18874 /^0/ {
18875 s/^0 *\(.*\)$/\1/
18876 p
18877 }
18878 }'
18879 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18880 # Check for a 64-bit object if we didn't find anything.
18881 if test -z "$aix_libpath"; then
18882 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18883 fi
18884 fi
18885 rm -f core conftest.err conftest.$ac_objext \
18886 conftest$ac_exeext conftest.$ac_ext
18887 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18888
18889 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18890 # Warning - without using the other run time loading flags,
18891 # -berok will link without error, but may produce a broken library.
18892 no_undefined_flag_CXX=' ${wl}-bernotok'
18893 allow_undefined_flag_CXX=' ${wl}-berok'
18894 if test "$with_gnu_ld" = yes; then
18895 # We only use this code for GNU lds that support --whole-archive.
18896 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18897 else
18898 # Exported symbols can be pulled into shared objects from archives
18899 whole_archive_flag_spec_CXX='$convenience'
18900 fi
18901 archive_cmds_need_lc_CXX=yes
18902 # This is similar to how AIX traditionally builds its shared
18903 # libraries.
18904 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'
18905 fi
18906 fi
18907 ;;
18908
18909 beos*)
18910 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18911 allow_undefined_flag_CXX=unsupported
18912 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18913 # support --undefined. This deserves some investigation. FIXME
18914 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18915 else
18916 ld_shlibs_CXX=no
18917 fi
18918 ;;
18919
18920 chorus*)
18921 case $cc_basename in
18922 *)
18923 # FIXME: insert proper C++ library support
18924 ld_shlibs_CXX=no
18925 ;;
18926 esac
18927 ;;
18928
18929 cygwin* | mingw* | pw32* | cegcc*)
18930 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18931 # as there is no search path for DLLs.
18932 hardcode_libdir_flag_spec_CXX='-L$libdir'
18933 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18934 allow_undefined_flag_CXX=unsupported
18935 always_export_symbols_CXX=no
18936 enable_shared_with_static_runtimes_CXX=yes
18937
18938 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18939 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'
18940 # If the export-symbols file already is a .def file (1st line
18941 # is EXPORTS), use it as is; otherwise, prepend...
18942 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18943 cp $export_symbols $output_objdir/$soname.def;
18944 else
18945 echo EXPORTS > $output_objdir/$soname.def;
18946 cat $export_symbols >> $output_objdir/$soname.def;
18947 fi~
18948 $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'
18949 else
18950 ld_shlibs_CXX=no
18951 fi
18952 ;;
18953 darwin* | rhapsody*)
18954
18955
18956 archive_cmds_need_lc_CXX=no
18957 hardcode_direct_CXX=no
18958 hardcode_automatic_CXX=yes
18959 hardcode_shlibpath_var_CXX=unsupported
18960 if test "$lt_cv_ld_force_load" = "yes"; then
18961 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\"`'
18962 else
18963 whole_archive_flag_spec_CXX=''
18964 fi
18965 link_all_deplibs_CXX=yes
18966 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18967 case $cc_basename in
18968 ifort*) _lt_dar_can_shared=yes ;;
18969 *) _lt_dar_can_shared=$GCC ;;
18970 esac
18971 if test "$_lt_dar_can_shared" = "yes"; then
18972 output_verbose_link_cmd=func_echo_all
18973 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}"
18974 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18975 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}"
18976 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}"
18977 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18978 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}"
18979 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}"
18980 fi
18981
18982 else
18983 ld_shlibs_CXX=no
18984 fi
18985
18986 ;;
18987
18988 dgux*)
18989 case $cc_basename in
18990 ec++*)
18991 # FIXME: insert proper C++ library support
18992 ld_shlibs_CXX=no
18993 ;;
18994 ghcx*)
18995 # Green Hills C++ Compiler
18996 # FIXME: insert proper C++ library support
18997 ld_shlibs_CXX=no
18998 ;;
18999 *)
19000 # FIXME: insert proper C++ library support
19001 ld_shlibs_CXX=no
19002 ;;
19003 esac
19004 ;;
19005
19006 freebsd2.*)
19007 # C++ shared libraries reported to be fairly broken before
19008 # switch to ELF
19009 ld_shlibs_CXX=no
19010 ;;
19011
19012 freebsd-elf*)
19013 archive_cmds_need_lc_CXX=no
19014 ;;
19015
19016 freebsd* | dragonfly*)
19017 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19018 # conventions
19019 ld_shlibs_CXX=yes
19020 ;;
19021
19022 gnu*)
19023 ;;
19024
19025 haiku*)
19026 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19027 link_all_deplibs_CXX=yes
19028 ;;
19029
19030 hpux9*)
19031 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19032 hardcode_libdir_separator_CXX=:
19033 export_dynamic_flag_spec_CXX='${wl}-E'
19034 hardcode_direct_CXX=yes
19035 hardcode_minus_L_CXX=yes # Not in the search PATH,
19036 # but as the default
19037 # location of the library.
19038
19039 case $cc_basename in
19040 CC*)
19041 # FIXME: insert proper C++ library support
19042 ld_shlibs_CXX=no
19043 ;;
19044 aCC*)
19045 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'
19046 # Commands to make compiler produce verbose output that lists
19047 # what "hidden" libraries, object files and flags are used when
19048 # linking a shared library.
19049 #
19050 # There doesn't appear to be a way to prevent this compiler from
19051 # explicitly linking system object files so we need to strip them
19052 # from the output so that they don't get included in the library
19053 # dependencies.
19054 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"'
19055 ;;
19056 *)
19057 if test "$GXX" = yes; then
19058 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'
19059 else
19060 # FIXME: insert proper C++ library support
19061 ld_shlibs_CXX=no
19062 fi
19063 ;;
19064 esac
19065 ;;
19066
19067 hpux10*|hpux11*)
19068 if test $with_gnu_ld = no; then
19069 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19070 hardcode_libdir_separator_CXX=:
19071
19072 case $host_cpu in
19073 hppa*64*|ia64*)
19074 ;;
19075 *)
19076 export_dynamic_flag_spec_CXX='${wl}-E'
19077 ;;
19078 esac
19079 fi
19080 case $host_cpu in
19081 hppa*64*|ia64*)
19082 hardcode_direct_CXX=no
19083 hardcode_shlibpath_var_CXX=no
19084 ;;
19085 *)
19086 hardcode_direct_CXX=yes
19087 hardcode_direct_absolute_CXX=yes
19088 hardcode_minus_L_CXX=yes # Not in the search PATH,
19089 # but as the default
19090 # location of the library.
19091 ;;
19092 esac
19093
19094 case $cc_basename in
19095 CC*)
19096 # FIXME: insert proper C++ library support
19097 ld_shlibs_CXX=no
19098 ;;
19099 aCC*)
19100 case $host_cpu in
19101 hppa*64*)
19102 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19103 ;;
19104 ia64*)
19105 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19106 ;;
19107 *)
19108 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19109 ;;
19110 esac
19111 # Commands to make compiler produce verbose output that lists
19112 # what "hidden" libraries, object files and flags are used when
19113 # linking a shared library.
19114 #
19115 # There doesn't appear to be a way to prevent this compiler from
19116 # explicitly linking system object files so we need to strip them
19117 # from the output so that they don't get included in the library
19118 # dependencies.
19119 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"'
19120 ;;
19121 *)
19122 if test "$GXX" = yes; then
19123 if test $with_gnu_ld = no; then
19124 case $host_cpu in
19125 hppa*64*)
19126 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19127 ;;
19128 ia64*)
19129 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19130 ;;
19131 *)
19132 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'
19133 ;;
19134 esac
19135 fi
19136 else
19137 # FIXME: insert proper C++ library support
19138 ld_shlibs_CXX=no
19139 fi
19140 ;;
19141 esac
19142 ;;
19143
19144 interix[3-9]*)
19145 hardcode_direct_CXX=no
19146 hardcode_shlibpath_var_CXX=no
19147 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19148 export_dynamic_flag_spec_CXX='${wl}-E'
19149 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19150 # Instead, shared libraries are loaded at an image base (0x10000000 by
19151 # default) and relocated if they conflict, which is a slow very memory
19152 # consuming and fragmenting process. To avoid this, we pick a random,
19153 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19154 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19155 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'
19156 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'
19157 ;;
19158 irix5* | irix6*)
19159 case $cc_basename in
19160 CC*)
19161 # SGI C++
19162 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'
19163
19164 # Archives containing C++ object files must be created using
19165 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19166 # necessary to make sure instantiated templates are included
19167 # in the archive.
19168 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19169 ;;
19170 *)
19171 if test "$GXX" = yes; then
19172 if test "$with_gnu_ld" = no; then
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"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19174 else
19175 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'
19176 fi
19177 fi
19178 link_all_deplibs_CXX=yes
19179 ;;
19180 esac
19181 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19182 hardcode_libdir_separator_CXX=:
19183 inherit_rpath_CXX=yes
19184 ;;
19185
19186 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19187 case $cc_basename in
19188 KCC*)
19189 # Kuck and Associates, Inc. (KAI) C++ Compiler
19190
19191 # KCC will only create a shared library if the output file
19192 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19193 # to its proper name (with version) after linking.
19194 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'
19195 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'
19196 # Commands to make compiler produce verbose output that lists
19197 # what "hidden" libraries, object files and flags are used when
19198 # linking a shared library.
19199 #
19200 # There doesn't appear to be a way to prevent this compiler from
19201 # explicitly linking system object files so we need to strip them
19202 # from the output so that they don't get included in the library
19203 # dependencies.
19204 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"'
19205
19206 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19207 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19208
19209 # Archives containing C++ object files must be created using
19210 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19211 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19212 ;;
19213 icpc* | ecpc* )
19214 # Intel C++
19215 with_gnu_ld=yes
19216 # version 8.0 and above of icpc choke on multiply defined symbols
19217 # if we add $predep_objects and $postdep_objects, however 7.1 and
19218 # earlier do not add the objects themselves.
19219 case `$CC -V 2>&1` in
19220 *"Version 7."*)
19221 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19222 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'
19223 ;;
19224 *) # Version 8.0 or newer
19225 tmp_idyn=
19226 case $host_cpu in
19227 ia64*) tmp_idyn=' -i_dynamic';;
19228 esac
19229 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19230 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'
19231 ;;
19232 esac
19233 archive_cmds_need_lc_CXX=no
19234 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19235 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19236 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19237 ;;
19238 pgCC* | pgcpp*)
19239 # Portland Group C++ compiler
19240 case `$CC -V` in
19241 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19242 prelink_cmds_CXX='tpldir=Template.dir~
19243 rm -rf $tpldir~
19244 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19245 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19246 old_archive_cmds_CXX='tpldir=Template.dir~
19247 rm -rf $tpldir~
19248 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19249 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19250 $RANLIB $oldlib'
19251 archive_cmds_CXX='tpldir=Template.dir~
19252 rm -rf $tpldir~
19253 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19254 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19255 archive_expsym_cmds_CXX='tpldir=Template.dir~
19256 rm -rf $tpldir~
19257 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19258 $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'
19259 ;;
19260 *) # Version 6 and above use weak symbols
19261 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19262 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'
19263 ;;
19264 esac
19265
19266 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19267 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19268 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'
19269 ;;
19270 cxx*)
19271 # Compaq C++
19272 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19273 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'
19274
19275 runpath_var=LD_RUN_PATH
19276 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19277 hardcode_libdir_separator_CXX=:
19278
19279 # Commands to make compiler produce verbose output that lists
19280 # what "hidden" libraries, object files and flags are used when
19281 # linking a shared library.
19282 #
19283 # There doesn't appear to be a way to prevent this compiler from
19284 # explicitly linking system object files so we need to strip them
19285 # from the output so that they don't get included in the library
19286 # dependencies.
19287 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'
19288 ;;
19289 xl* | mpixl* | bgxl*)
19290 # IBM XL 8.0 on PPC, with GNU ld
19291 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19292 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19293 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19294 if test "x$supports_anon_versioning" = xyes; then
19295 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19296 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19297 echo "local: *; };" >> $output_objdir/$libname.ver~
19298 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19299 fi
19300 ;;
19301 *)
19302 case `$CC -V 2>&1 | sed 5q` in
19303 *Sun\ C*)
19304 # Sun C++ 5.9
19305 no_undefined_flag_CXX=' -zdefs'
19306 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19307 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'
19308 hardcode_libdir_flag_spec_CXX='-R$libdir'
19309 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'
19310 compiler_needs_object_CXX=yes
19311
19312 # Not sure whether something based on
19313 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19314 # would be better.
19315 output_verbose_link_cmd='func_echo_all'
19316
19317 # Archives containing C++ object files must be created using
19318 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19319 # necessary to make sure instantiated templates are included
19320 # in the archive.
19321 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19322 ;;
19323 esac
19324 ;;
19325 esac
19326 ;;
19327
19328 lynxos*)
19329 # FIXME: insert proper C++ library support
19330 ld_shlibs_CXX=no
19331 ;;
19332
19333 m88k*)
19334 # FIXME: insert proper C++ library support
19335 ld_shlibs_CXX=no
19336 ;;
19337
19338 mvs*)
19339 case $cc_basename in
19340 cxx*)
19341 # FIXME: insert proper C++ library support
19342 ld_shlibs_CXX=no
19343 ;;
19344 *)
19345 # FIXME: insert proper C++ library support
19346 ld_shlibs_CXX=no
19347 ;;
19348 esac
19349 ;;
19350
19351 netbsd*)
19352 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19353 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19354 wlarc=
19355 hardcode_libdir_flag_spec_CXX='-R$libdir'
19356 hardcode_direct_CXX=yes
19357 hardcode_shlibpath_var_CXX=no
19358 fi
19359 # Workaround some broken pre-1.5 toolchains
19360 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19361 ;;
19362
19363 *nto* | *qnx*)
19364 ld_shlibs_CXX=yes
19365 ;;
19366
19367 openbsd2*)
19368 # C++ shared libraries are fairly broken
19369 ld_shlibs_CXX=no
19370 ;;
19371
19372 openbsd*)
19373 if test -f /usr/libexec/ld.so; then
19374 hardcode_direct_CXX=yes
19375 hardcode_shlibpath_var_CXX=no
19376 hardcode_direct_absolute_CXX=yes
19377 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19378 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19379 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19380 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19381 export_dynamic_flag_spec_CXX='${wl}-E'
19382 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19383 fi
19384 output_verbose_link_cmd=func_echo_all
19385 else
19386 ld_shlibs_CXX=no
19387 fi
19388 ;;
19389
19390 osf3* | osf4* | osf5*)
19391 case $cc_basename in
19392 KCC*)
19393 # Kuck and Associates, Inc. (KAI) C++ Compiler
19394
19395 # KCC will only create a shared library if the output file
19396 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19397 # to its proper name (with version) after linking.
19398 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'
19399
19400 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19401 hardcode_libdir_separator_CXX=:
19402
19403 # Archives containing C++ object files must be created using
19404 # the KAI C++ compiler.
19405 case $host in
19406 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19407 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19408 esac
19409 ;;
19410 RCC*)
19411 # Rational C++ 2.4.1
19412 # FIXME: insert proper C++ library support
19413 ld_shlibs_CXX=no
19414 ;;
19415 cxx*)
19416 case $host in
19417 osf3*)
19418 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19419 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'
19420 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19421 ;;
19422 *)
19423 allow_undefined_flag_CXX=' -expect_unresolved \*'
19424 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'
19425 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19426 echo "-hidden">> $lib.exp~
19427 $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~
19428 $RM $lib.exp'
19429 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19430 ;;
19431 esac
19432
19433 hardcode_libdir_separator_CXX=:
19434
19435 # Commands to make compiler produce verbose output that lists
19436 # what "hidden" libraries, object files and flags are used when
19437 # linking a shared library.
19438 #
19439 # There doesn't appear to be a way to prevent this compiler from
19440 # explicitly linking system object files so we need to strip them
19441 # from the output so that they don't get included in the library
19442 # dependencies.
19443 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"'
19444 ;;
19445 *)
19446 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19447 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19448 case $host in
19449 osf3*)
19450 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'
19451 ;;
19452 *)
19453 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'
19454 ;;
19455 esac
19456
19457 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19458 hardcode_libdir_separator_CXX=:
19459
19460 # Commands to make compiler produce verbose output that lists
19461 # what "hidden" libraries, object files and flags are used when
19462 # linking a shared library.
19463 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19464
19465 else
19466 # FIXME: insert proper C++ library support
19467 ld_shlibs_CXX=no
19468 fi
19469 ;;
19470 esac
19471 ;;
19472
19473 psos*)
19474 # FIXME: insert proper C++ library support
19475 ld_shlibs_CXX=no
19476 ;;
19477
19478 sunos4*)
19479 case $cc_basename in
19480 CC*)
19481 # Sun C++ 4.x
19482 # FIXME: insert proper C++ library support
19483 ld_shlibs_CXX=no
19484 ;;
19485 lcc*)
19486 # Lucid
19487 # FIXME: insert proper C++ library support
19488 ld_shlibs_CXX=no
19489 ;;
19490 *)
19491 # FIXME: insert proper C++ library support
19492 ld_shlibs_CXX=no
19493 ;;
19494 esac
19495 ;;
19496
19497 solaris*)
19498 case $cc_basename in
19499 CC*)
19500 # Sun C++ 4.2, 5.x and Centerline C++
19501 archive_cmds_need_lc_CXX=yes
19502 no_undefined_flag_CXX=' -zdefs'
19503 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19504 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19505 $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'
19506
19507 hardcode_libdir_flag_spec_CXX='-R$libdir'
19508 hardcode_shlibpath_var_CXX=no
19509 case $host_os in
19510 solaris2.[0-5] | solaris2.[0-5].*) ;;
19511 *)
19512 # The compiler driver will combine and reorder linker options,
19513 # but understands `-z linker_flag'.
19514 # Supported since Solaris 2.6 (maybe 2.5.1?)
19515 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19516 ;;
19517 esac
19518 link_all_deplibs_CXX=yes
19519
19520 output_verbose_link_cmd='func_echo_all'
19521
19522 # Archives containing C++ object files must be created using
19523 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19524 # necessary to make sure instantiated templates are included
19525 # in the archive.
19526 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19527 ;;
19528 gcx*)
19529 # Green Hills C++ Compiler
19530 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19531
19532 # The C++ compiler must be used to create the archive.
19533 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19534 ;;
19535 *)
19536 # GNU C++ compiler with Solaris linker
19537 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19538 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19539 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19540 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19541 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19542 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19543
19544 # Commands to make compiler produce verbose output that lists
19545 # what "hidden" libraries, object files and flags are used when
19546 # linking a shared library.
19547 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19548 else
19549 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19550 # platform.
19551 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19552 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19553 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19554
19555 # Commands to make compiler produce verbose output that lists
19556 # what "hidden" libraries, object files and flags are used when
19557 # linking a shared library.
19558 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19559 fi
19560
19561 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19562 case $host_os in
19563 solaris2.[0-5] | solaris2.[0-5].*) ;;
19564 *)
19565 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19566 ;;
19567 esac
19568 fi
19569 ;;
19570 esac
19571 ;;
19572
19573 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19574 no_undefined_flag_CXX='${wl}-z,text'
19575 archive_cmds_need_lc_CXX=no
19576 hardcode_shlibpath_var_CXX=no
19577 runpath_var='LD_RUN_PATH'
19578
19579 case $cc_basename in
19580 CC*)
19581 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19582 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19583 ;;
19584 *)
19585 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19586 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19587 ;;
19588 esac
19589 ;;
19590
19591 sysv5* | sco3.2v5* | sco5v6*)
19592 # Note: We can NOT use -z defs as we might desire, because we do not
19593 # link with -lc, and that would cause any symbols used from libc to
19594 # always be unresolved, which means just about no library would
19595 # ever link correctly. If we're not using GNU ld we use -z text
19596 # though, which does catch some bad symbols but isn't as heavy-handed
19597 # as -z defs.
19598 no_undefined_flag_CXX='${wl}-z,text'
19599 allow_undefined_flag_CXX='${wl}-z,nodefs'
19600 archive_cmds_need_lc_CXX=no
19601 hardcode_shlibpath_var_CXX=no
19602 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19603 hardcode_libdir_separator_CXX=':'
19604 link_all_deplibs_CXX=yes
19605 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19606 runpath_var='LD_RUN_PATH'
19607
19608 case $cc_basename in
19609 CC*)
19610 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19611 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19612 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19613 '"$old_archive_cmds_CXX"
19614 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19615 '"$reload_cmds_CXX"
19616 ;;
19617 *)
19618 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19619 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19620 ;;
19621 esac
19622 ;;
19623
19624 tandem*)
19625 case $cc_basename in
19626 NCC*)
19627 # NonStop-UX NCC 3.20
19628 # FIXME: insert proper C++ library support
19629 ld_shlibs_CXX=no
19630 ;;
19631 *)
19632 # FIXME: insert proper C++ library support
19633 ld_shlibs_CXX=no
19634 ;;
19635 esac
19636 ;;
19637
19638 vxworks*)
19639 # FIXME: insert proper C++ library support
19640 ld_shlibs_CXX=no
19641 ;;
19642
19643 *)
19644 # FIXME: insert proper C++ library support
19645 ld_shlibs_CXX=no
19646 ;;
19647 esac
19648
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19650 $as_echo "$ld_shlibs_CXX" >&6; }
19651 test "$ld_shlibs_CXX" = no && can_build_shared=no
19652
19653 GCC_CXX="$GXX"
19654 LD_CXX="$LD"
19655
19656 ## CAVEAT EMPTOR:
19657 ## There is no encapsulation within the following macros, do not change
19658 ## the running order or otherwise move them around unless you know exactly
19659 ## what you are doing...
19660 # Dependencies to place before and after the object being linked:
19661 predep_objects_CXX=
19662 postdep_objects_CXX=
19663 predeps_CXX=
19664 postdeps_CXX=
19665 compiler_lib_search_path_CXX=
19666
19667 cat > conftest.$ac_ext <<_LT_EOF
19668 class Foo
19669 {
19670 public:
19671 Foo (void) { a = 0; }
19672 private:
19673 int a;
19674 };
19675 _LT_EOF
19676
19677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19678 (eval $ac_compile) 2>&5
19679 ac_status=$?
19680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19681 test $ac_status = 0; }; then
19682 # Parse the compiler output and extract the necessary
19683 # objects, libraries and library flags.
19684
19685 # Sentinel used to keep track of whether or not we are before
19686 # the conftest object file.
19687 pre_test_object_deps_done=no
19688
19689 for p in `eval "$output_verbose_link_cmd"`; do
19690 case $p in
19691
19692 -L* | -R* | -l*)
19693 # Some compilers place space between "-{L,R}" and the path.
19694 # Remove the space.
19695 if test $p = "-L" ||
19696 test $p = "-R"; then
19697 prev=$p
19698 continue
19699 else
19700 prev=
19701 fi
19702
19703 if test "$pre_test_object_deps_done" = no; then
19704 case $p in
19705 -L* | -R*)
19706 # Internal compiler library paths should come after those
19707 # provided the user. The postdeps already come after the
19708 # user supplied libs so there is no need to process them.
19709 if test -z "$compiler_lib_search_path_CXX"; then
19710 compiler_lib_search_path_CXX="${prev}${p}"
19711 else
19712 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19713 fi
19714 ;;
19715 # The "-l" case would never come before the object being
19716 # linked, so don't bother handling this case.
19717 esac
19718 else
19719 if test -z "$postdeps_CXX"; then
19720 postdeps_CXX="${prev}${p}"
19721 else
19722 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19723 fi
19724 fi
19725 ;;
19726
19727 *.$objext)
19728 # This assumes that the test object file only shows up
19729 # once in the compiler output.
19730 if test "$p" = "conftest.$objext"; then
19731 pre_test_object_deps_done=yes
19732 continue
19733 fi
19734
19735 if test "$pre_test_object_deps_done" = no; then
19736 if test -z "$predep_objects_CXX"; then
19737 predep_objects_CXX="$p"
19738 else
19739 predep_objects_CXX="$predep_objects_CXX $p"
19740 fi
19741 else
19742 if test -z "$postdep_objects_CXX"; then
19743 postdep_objects_CXX="$p"
19744 else
19745 postdep_objects_CXX="$postdep_objects_CXX $p"
19746 fi
19747 fi
19748 ;;
19749
19750 *) ;; # Ignore the rest.
19751
19752 esac
19753 done
19754
19755 # Clean up.
19756 rm -f a.out a.exe
19757 else
19758 echo "libtool.m4: error: problem compiling CXX test program"
19759 fi
19760
19761 $RM -f confest.$objext
19762
19763 # PORTME: override above test on systems where it is broken
19764 case $host_os in
19765 interix[3-9]*)
19766 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19767 # hack all around it, let's just trust "g++" to DTRT.
19768 predep_objects_CXX=
19769 postdep_objects_CXX=
19770 postdeps_CXX=
19771 ;;
19772
19773 linux*)
19774 case `$CC -V 2>&1 | sed 5q` in
19775 *Sun\ C*)
19776 # Sun C++ 5.9
19777
19778 # The more standards-conforming stlport4 library is
19779 # incompatible with the Cstd library. Avoid specifying
19780 # it if it's in CXXFLAGS. Ignore libCrun as
19781 # -library=stlport4 depends on it.
19782 case " $CXX $CXXFLAGS " in
19783 *" -library=stlport4 "*)
19784 solaris_use_stlport4=yes
19785 ;;
19786 esac
19787
19788 if test "$solaris_use_stlport4" != yes; then
19789 postdeps_CXX='-library=Cstd -library=Crun'
19790 fi
19791 ;;
19792 esac
19793 ;;
19794
19795 solaris*)
19796 case $cc_basename in
19797 CC*)
19798 # The more standards-conforming stlport4 library is
19799 # incompatible with the Cstd library. Avoid specifying
19800 # it if it's in CXXFLAGS. Ignore libCrun as
19801 # -library=stlport4 depends on it.
19802 case " $CXX $CXXFLAGS " in
19803 *" -library=stlport4 "*)
19804 solaris_use_stlport4=yes
19805 ;;
19806 esac
19807
19808 # Adding this requires a known-good setup of shared libraries for
19809 # Sun compiler versions before 5.6, else PIC objects from an old
19810 # archive will be linked into the output, leading to subtle bugs.
19811 if test "$solaris_use_stlport4" != yes; then
19812 postdeps_CXX='-library=Cstd -library=Crun'
19813 fi
19814 ;;
19815 esac
19816 ;;
19817 esac
19818
19819
19820 case " $postdeps_CXX " in
19821 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19822 esac
19823 compiler_lib_search_dirs_CXX=
19824 if test -n "${compiler_lib_search_path_CXX}"; then
19825 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19826 fi
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
19857
19858 lt_prog_compiler_wl_CXX=
19859 lt_prog_compiler_pic_CXX=
19860 lt_prog_compiler_static_CXX=
19861
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19863 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19864
19865 # C++ specific cases for pic, static, wl, etc.
19866 if test "$GXX" = yes; then
19867 lt_prog_compiler_wl_CXX='-Wl,'
19868 lt_prog_compiler_static_CXX='-static'
19869
19870 case $host_os in
19871 aix*)
19872 # All AIX code is PIC.
19873 if test "$host_cpu" = ia64; then
19874 # AIX 5 now supports IA64 processor
19875 lt_prog_compiler_static_CXX='-Bstatic'
19876 fi
19877 ;;
19878
19879 amigaos*)
19880 case $host_cpu in
19881 powerpc)
19882 # see comment about AmigaOS4 .so support
19883 lt_prog_compiler_pic_CXX='-fPIC'
19884 ;;
19885 m68k)
19886 # FIXME: we need at least 68020 code to build shared libraries, but
19887 # adding the `-m68020' flag to GCC prevents building anything better,
19888 # like `-m68040'.
19889 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19890 ;;
19891 esac
19892 ;;
19893
19894 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19895 # PIC is the default for these OSes.
19896 ;;
19897 mingw* | cygwin* | os2* | pw32* | cegcc*)
19898 # This hack is so that the source file can tell whether it is being
19899 # built for inclusion in a dll (and should export symbols for example).
19900 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19901 # (--disable-auto-import) libraries
19902 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19903 ;;
19904 darwin* | rhapsody*)
19905 # PIC is the default on this platform
19906 # Common symbols not allowed in MH_DYLIB files
19907 lt_prog_compiler_pic_CXX='-fno-common'
19908 ;;
19909 *djgpp*)
19910 # DJGPP does not support shared libraries at all
19911 lt_prog_compiler_pic_CXX=
19912 ;;
19913 haiku*)
19914 # PIC is the default for Haiku.
19915 # The "-static" flag exists, but is broken.
19916 lt_prog_compiler_static_CXX=
19917 ;;
19918 interix[3-9]*)
19919 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19920 # Instead, we relocate shared libraries at runtime.
19921 ;;
19922 sysv4*MP*)
19923 if test -d /usr/nec; then
19924 lt_prog_compiler_pic_CXX=-Kconform_pic
19925 fi
19926 ;;
19927 hpux*)
19928 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19929 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19930 # sets the default TLS model and affects inlining.
19931 case $host_cpu in
19932 hppa*64*)
19933 ;;
19934 *)
19935 lt_prog_compiler_pic_CXX='-fPIC'
19936 ;;
19937 esac
19938 ;;
19939 *qnx* | *nto*)
19940 # QNX uses GNU C++, but need to define -shared option too, otherwise
19941 # it will coredump.
19942 lt_prog_compiler_pic_CXX='-fPIC -shared'
19943 ;;
19944 *)
19945 lt_prog_compiler_pic_CXX='-fPIC'
19946 ;;
19947 esac
19948 else
19949 case $host_os in
19950 aix[4-9]*)
19951 # All AIX code is PIC.
19952 if test "$host_cpu" = ia64; then
19953 # AIX 5 now supports IA64 processor
19954 lt_prog_compiler_static_CXX='-Bstatic'
19955 else
19956 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19957 fi
19958 ;;
19959 chorus*)
19960 case $cc_basename in
19961 cxch68*)
19962 # Green Hills C++ Compiler
19963 # _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"
19964 ;;
19965 esac
19966 ;;
19967 dgux*)
19968 case $cc_basename in
19969 ec++*)
19970 lt_prog_compiler_pic_CXX='-KPIC'
19971 ;;
19972 ghcx*)
19973 # Green Hills C++ Compiler
19974 lt_prog_compiler_pic_CXX='-pic'
19975 ;;
19976 *)
19977 ;;
19978 esac
19979 ;;
19980 freebsd* | dragonfly*)
19981 # FreeBSD uses GNU C++
19982 ;;
19983 hpux9* | hpux10* | hpux11*)
19984 case $cc_basename in
19985 CC*)
19986 lt_prog_compiler_wl_CXX='-Wl,'
19987 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19988 if test "$host_cpu" != ia64; then
19989 lt_prog_compiler_pic_CXX='+Z'
19990 fi
19991 ;;
19992 aCC*)
19993 lt_prog_compiler_wl_CXX='-Wl,'
19994 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19995 case $host_cpu in
19996 hppa*64*|ia64*)
19997 # +Z the default
19998 ;;
19999 *)
20000 lt_prog_compiler_pic_CXX='+Z'
20001 ;;
20002 esac
20003 ;;
20004 *)
20005 ;;
20006 esac
20007 ;;
20008 interix*)
20009 # This is c89, which is MS Visual C++ (no shared libs)
20010 # Anyone wants to do a port?
20011 ;;
20012 irix5* | irix6* | nonstopux*)
20013 case $cc_basename in
20014 CC*)
20015 lt_prog_compiler_wl_CXX='-Wl,'
20016 lt_prog_compiler_static_CXX='-non_shared'
20017 # CC pic flag -KPIC is the default.
20018 ;;
20019 *)
20020 ;;
20021 esac
20022 ;;
20023 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20024 case $cc_basename in
20025 KCC*)
20026 # KAI C++ Compiler
20027 lt_prog_compiler_wl_CXX='--backend -Wl,'
20028 lt_prog_compiler_pic_CXX='-fPIC'
20029 ;;
20030 ecpc* )
20031 # old Intel C++ for x86_64 which still supported -KPIC.
20032 lt_prog_compiler_wl_CXX='-Wl,'
20033 lt_prog_compiler_pic_CXX='-KPIC'
20034 lt_prog_compiler_static_CXX='-static'
20035 ;;
20036 icpc* )
20037 # Intel C++, used to be incompatible with GCC.
20038 # ICC 10 doesn't accept -KPIC any more.
20039 lt_prog_compiler_wl_CXX='-Wl,'
20040 lt_prog_compiler_pic_CXX='-fPIC'
20041 lt_prog_compiler_static_CXX='-static'
20042 ;;
20043 pgCC* | pgcpp*)
20044 # Portland Group C++ compiler
20045 lt_prog_compiler_wl_CXX='-Wl,'
20046 lt_prog_compiler_pic_CXX='-fpic'
20047 lt_prog_compiler_static_CXX='-Bstatic'
20048 ;;
20049 cxx*)
20050 # Compaq C++
20051 # Make sure the PIC flag is empty. It appears that all Alpha
20052 # Linux and Compaq Tru64 Unix objects are PIC.
20053 lt_prog_compiler_pic_CXX=
20054 lt_prog_compiler_static_CXX='-non_shared'
20055 ;;
20056 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20057 # IBM XL 8.0, 9.0 on PPC and BlueGene
20058 lt_prog_compiler_wl_CXX='-Wl,'
20059 lt_prog_compiler_pic_CXX='-qpic'
20060 lt_prog_compiler_static_CXX='-qstaticlink'
20061 ;;
20062 *)
20063 case `$CC -V 2>&1 | sed 5q` in
20064 *Sun\ C*)
20065 # Sun C++ 5.9
20066 lt_prog_compiler_pic_CXX='-KPIC'
20067 lt_prog_compiler_static_CXX='-Bstatic'
20068 lt_prog_compiler_wl_CXX='-Qoption ld '
20069 ;;
20070 esac
20071 ;;
20072 esac
20073 ;;
20074 lynxos*)
20075 ;;
20076 m88k*)
20077 ;;
20078 mvs*)
20079 case $cc_basename in
20080 cxx*)
20081 lt_prog_compiler_pic_CXX='-W c,exportall'
20082 ;;
20083 *)
20084 ;;
20085 esac
20086 ;;
20087 netbsd*)
20088 ;;
20089 *qnx* | *nto*)
20090 # QNX uses GNU C++, but need to define -shared option too, otherwise
20091 # it will coredump.
20092 lt_prog_compiler_pic_CXX='-fPIC -shared'
20093 ;;
20094 osf3* | osf4* | osf5*)
20095 case $cc_basename in
20096 KCC*)
20097 lt_prog_compiler_wl_CXX='--backend -Wl,'
20098 ;;
20099 RCC*)
20100 # Rational C++ 2.4.1
20101 lt_prog_compiler_pic_CXX='-pic'
20102 ;;
20103 cxx*)
20104 # Digital/Compaq C++
20105 lt_prog_compiler_wl_CXX='-Wl,'
20106 # Make sure the PIC flag is empty. It appears that all Alpha
20107 # Linux and Compaq Tru64 Unix objects are PIC.
20108 lt_prog_compiler_pic_CXX=
20109 lt_prog_compiler_static_CXX='-non_shared'
20110 ;;
20111 *)
20112 ;;
20113 esac
20114 ;;
20115 psos*)
20116 ;;
20117 solaris*)
20118 case $cc_basename in
20119 CC*)
20120 # Sun C++ 4.2, 5.x and Centerline C++
20121 lt_prog_compiler_pic_CXX='-KPIC'
20122 lt_prog_compiler_static_CXX='-Bstatic'
20123 lt_prog_compiler_wl_CXX='-Qoption ld '
20124 ;;
20125 gcx*)
20126 # Green Hills C++ Compiler
20127 lt_prog_compiler_pic_CXX='-PIC'
20128 ;;
20129 *)
20130 ;;
20131 esac
20132 ;;
20133 sunos4*)
20134 case $cc_basename in
20135 CC*)
20136 # Sun C++ 4.x
20137 lt_prog_compiler_pic_CXX='-pic'
20138 lt_prog_compiler_static_CXX='-Bstatic'
20139 ;;
20140 lcc*)
20141 # Lucid
20142 lt_prog_compiler_pic_CXX='-pic'
20143 ;;
20144 *)
20145 ;;
20146 esac
20147 ;;
20148 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20149 case $cc_basename in
20150 CC*)
20151 lt_prog_compiler_wl_CXX='-Wl,'
20152 lt_prog_compiler_pic_CXX='-KPIC'
20153 lt_prog_compiler_static_CXX='-Bstatic'
20154 ;;
20155 esac
20156 ;;
20157 tandem*)
20158 case $cc_basename in
20159 NCC*)
20160 # NonStop-UX NCC 3.20
20161 lt_prog_compiler_pic_CXX='-KPIC'
20162 ;;
20163 *)
20164 ;;
20165 esac
20166 ;;
20167 vxworks*)
20168 ;;
20169 *)
20170 lt_prog_compiler_can_build_shared_CXX=no
20171 ;;
20172 esac
20173 fi
20174
20175 case $host_os in
20176 # For platforms which do not support PIC, -DPIC is meaningless:
20177 *djgpp*)
20178 lt_prog_compiler_pic_CXX=
20179 ;;
20180 *)
20181 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20182 ;;
20183 esac
20184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20185 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20186
20187
20188
20189 #
20190 # Check to make sure the PIC flag actually works.
20191 #
20192 if test -n "$lt_prog_compiler_pic_CXX"; then
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20194 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20195 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20196 $as_echo_n "(cached) " >&6
20197 else
20198 lt_cv_prog_compiler_pic_works_CXX=no
20199 ac_outfile=conftest.$ac_objext
20200 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20201 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20202 # Insert the option either (1) after the last *FLAGS variable, or
20203 # (2) before a word containing "conftest.", or (3) at the end.
20204 # Note that $ac_compile itself does not contain backslashes and begins
20205 # with a dollar sign (not a hyphen), so the echo should work correctly.
20206 # The option is referenced via a variable to avoid confusing sed.
20207 lt_compile=`echo "$ac_compile" | $SED \
20208 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20210 -e 's:$: $lt_compiler_flag:'`
20211 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20212 (eval "$lt_compile" 2>conftest.err)
20213 ac_status=$?
20214 cat conftest.err >&5
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 if (exit $ac_status) && test -s "$ac_outfile"; then
20217 # The compiler can only warn and ignore the option if not recognized
20218 # So say no if there are warnings other than the usual output.
20219 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20220 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20221 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20222 lt_cv_prog_compiler_pic_works_CXX=yes
20223 fi
20224 fi
20225 $RM conftest*
20226
20227 fi
20228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20229 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20230
20231 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20232 case $lt_prog_compiler_pic_CXX in
20233 "" | " "*) ;;
20234 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20235 esac
20236 else
20237 lt_prog_compiler_pic_CXX=
20238 lt_prog_compiler_can_build_shared_CXX=no
20239 fi
20240
20241 fi
20242
20243
20244
20245 #
20246 # Check to make sure the static flag actually works.
20247 #
20248 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20250 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20251 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20252 $as_echo_n "(cached) " >&6
20253 else
20254 lt_cv_prog_compiler_static_works_CXX=no
20255 save_LDFLAGS="$LDFLAGS"
20256 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20257 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20258 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20259 # The linker can only warn and ignore the option if not recognized
20260 # So say no if there are warnings
20261 if test -s conftest.err; then
20262 # Append any errors to the config.log.
20263 cat conftest.err 1>&5
20264 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20265 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20266 if diff conftest.exp conftest.er2 >/dev/null; then
20267 lt_cv_prog_compiler_static_works_CXX=yes
20268 fi
20269 else
20270 lt_cv_prog_compiler_static_works_CXX=yes
20271 fi
20272 fi
20273 $RM -r conftest*
20274 LDFLAGS="$save_LDFLAGS"
20275
20276 fi
20277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20278 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20279
20280 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20281 :
20282 else
20283 lt_prog_compiler_static_CXX=
20284 fi
20285
20286
20287
20288
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20290 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20291 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20292 $as_echo_n "(cached) " >&6
20293 else
20294 lt_cv_prog_compiler_c_o_CXX=no
20295 $RM -r conftest 2>/dev/null
20296 mkdir conftest
20297 cd conftest
20298 mkdir out
20299 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20300
20301 lt_compiler_flag="-o out/conftest2.$ac_objext"
20302 # Insert the option either (1) after the last *FLAGS variable, or
20303 # (2) before a word containing "conftest.", or (3) at the end.
20304 # Note that $ac_compile itself does not contain backslashes and begins
20305 # with a dollar sign (not a hyphen), so the echo should work correctly.
20306 lt_compile=`echo "$ac_compile" | $SED \
20307 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20308 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20309 -e 's:$: $lt_compiler_flag:'`
20310 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20311 (eval "$lt_compile" 2>out/conftest.err)
20312 ac_status=$?
20313 cat out/conftest.err >&5
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20316 then
20317 # The compiler can only warn and ignore the option if not recognized
20318 # So say no if there are warnings
20319 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20320 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20321 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20322 lt_cv_prog_compiler_c_o_CXX=yes
20323 fi
20324 fi
20325 chmod u+w . 2>&5
20326 $RM conftest*
20327 # SGI C++ compiler will create directory out/ii_files/ for
20328 # template instantiation
20329 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20330 $RM out/* && rmdir out
20331 cd ..
20332 $RM -r conftest
20333 $RM conftest*
20334
20335 fi
20336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20337 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20338
20339
20340
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20342 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20343 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20344 $as_echo_n "(cached) " >&6
20345 else
20346 lt_cv_prog_compiler_c_o_CXX=no
20347 $RM -r conftest 2>/dev/null
20348 mkdir conftest
20349 cd conftest
20350 mkdir out
20351 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20352
20353 lt_compiler_flag="-o out/conftest2.$ac_objext"
20354 # Insert the option either (1) after the last *FLAGS variable, or
20355 # (2) before a word containing "conftest.", or (3) at the end.
20356 # Note that $ac_compile itself does not contain backslashes and begins
20357 # with a dollar sign (not a hyphen), so the echo should work correctly.
20358 lt_compile=`echo "$ac_compile" | $SED \
20359 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20360 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20361 -e 's:$: $lt_compiler_flag:'`
20362 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20363 (eval "$lt_compile" 2>out/conftest.err)
20364 ac_status=$?
20365 cat out/conftest.err >&5
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20368 then
20369 # The compiler can only warn and ignore the option if not recognized
20370 # So say no if there are warnings
20371 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20372 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20373 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20374 lt_cv_prog_compiler_c_o_CXX=yes
20375 fi
20376 fi
20377 chmod u+w . 2>&5
20378 $RM conftest*
20379 # SGI C++ compiler will create directory out/ii_files/ for
20380 # template instantiation
20381 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20382 $RM out/* && rmdir out
20383 cd ..
20384 $RM -r conftest
20385 $RM conftest*
20386
20387 fi
20388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20389 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20390
20391
20392
20393
20394 hard_links="nottested"
20395 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20396 # do not overwrite the value of need_locks provided by the user
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20398 $as_echo_n "checking if we can lock with hard links... " >&6; }
20399 hard_links=yes
20400 $RM conftest*
20401 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20402 touch conftest.a
20403 ln conftest.a conftest.b 2>&5 || hard_links=no
20404 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20406 $as_echo "$hard_links" >&6; }
20407 if test "$hard_links" = no; then
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20409 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20410 need_locks=warn
20411 fi
20412 else
20413 need_locks=no
20414 fi
20415
20416
20417
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20419 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20420
20421 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20422 case $host_os in
20423 aix[4-9]*)
20424 # If we're using GNU nm, then we don't want the "-C" option.
20425 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20426 # Also, AIX nm treats weak defined symbols like other global defined
20427 # symbols, whereas GNU nm marks them as "W".
20428 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20429 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'
20430 else
20431 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'
20432 fi
20433 ;;
20434 pw32*)
20435 export_symbols_cmds_CXX="$ltdll_cmds"
20436 ;;
20437 cygwin* | mingw* | cegcc*)
20438 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'
20439 ;;
20440 *)
20441 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20442 ;;
20443 esac
20444 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20445
20446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20447 $as_echo "$ld_shlibs_CXX" >&6; }
20448 test "$ld_shlibs_CXX" = no && can_build_shared=no
20449
20450 with_gnu_ld_CXX=$with_gnu_ld
20451
20452
20453
20454
20455
20456
20457 #
20458 # Do we need to explicitly link libc?
20459 #
20460 case "x$archive_cmds_need_lc_CXX" in
20461 x|xyes)
20462 # Assume -lc should be added
20463 archive_cmds_need_lc_CXX=yes
20464
20465 if test "$enable_shared" = yes && test "$GCC" = yes; then
20466 case $archive_cmds_CXX in
20467 *'~'*)
20468 # FIXME: we may have to deal with multi-command sequences.
20469 ;;
20470 '$CC '*)
20471 # Test whether the compiler implicitly links with -lc since on some
20472 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20473 # to ld, don't add -lc before -lgcc.
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20475 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20476 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20477 $as_echo_n "(cached) " >&6
20478 else
20479 $RM conftest*
20480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20481
20482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20483 (eval $ac_compile) 2>&5
20484 ac_status=$?
20485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20486 test $ac_status = 0; } 2>conftest.err; then
20487 soname=conftest
20488 lib=conftest
20489 libobjs=conftest.$ac_objext
20490 deplibs=
20491 wl=$lt_prog_compiler_wl_CXX
20492 pic_flag=$lt_prog_compiler_pic_CXX
20493 compiler_flags=-v
20494 linker_flags=-v
20495 verstring=
20496 output_objdir=.
20497 libname=conftest
20498 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20499 allow_undefined_flag_CXX=
20500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20501 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20502 ac_status=$?
20503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20504 test $ac_status = 0; }
20505 then
20506 lt_cv_archive_cmds_need_lc_CXX=no
20507 else
20508 lt_cv_archive_cmds_need_lc_CXX=yes
20509 fi
20510 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20511 else
20512 cat conftest.err 1>&5
20513 fi
20514 $RM conftest*
20515
20516 fi
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20518 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20519 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20520 ;;
20521 esac
20522 fi
20523 ;;
20524 esac
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
20588
20589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20590 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20591
20592 library_names_spec=
20593 libname_spec='lib$name'
20594 soname_spec=
20595 shrext_cmds=".so"
20596 postinstall_cmds=
20597 postuninstall_cmds=
20598 finish_cmds=
20599 finish_eval=
20600 shlibpath_var=
20601 shlibpath_overrides_runpath=unknown
20602 version_type=none
20603 dynamic_linker="$host_os ld.so"
20604 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20605 need_lib_prefix=unknown
20606 hardcode_into_libs=no
20607
20608 # when you set need_version to no, make sure it does not cause -set_version
20609 # flags to be left without arguments
20610 need_version=unknown
20611
20612 case $host_os in
20613 aix3*)
20614 version_type=linux
20615 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20616 shlibpath_var=LIBPATH
20617
20618 # AIX 3 has no versioning support, so we append a major version to the name.
20619 soname_spec='${libname}${release}${shared_ext}$major'
20620 ;;
20621
20622 aix[4-9]*)
20623 version_type=linux
20624 need_lib_prefix=no
20625 need_version=no
20626 hardcode_into_libs=yes
20627 if test "$host_cpu" = ia64; then
20628 # AIX 5 supports IA64
20629 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20630 shlibpath_var=LD_LIBRARY_PATH
20631 else
20632 # With GCC up to 2.95.x, collect2 would create an import file
20633 # for dependence libraries. The import file would start with
20634 # the line `#! .'. This would cause the generated library to
20635 # depend on `.', always an invalid library. This was fixed in
20636 # development snapshots of GCC prior to 3.0.
20637 case $host_os in
20638 aix4 | aix4.[01] | aix4.[01].*)
20639 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20640 echo ' yes '
20641 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20642 :
20643 else
20644 can_build_shared=no
20645 fi
20646 ;;
20647 esac
20648 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20649 # soname into executable. Probably we can add versioning support to
20650 # collect2, so additional links can be useful in future.
20651 if test "$aix_use_runtimelinking" = yes; then
20652 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20653 # instead of lib<name>.a to let people know that these are not
20654 # typical AIX shared libraries.
20655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20656 else
20657 # We preserve .a as extension for shared libraries through AIX4.2
20658 # and later when we are not doing run time linking.
20659 library_names_spec='${libname}${release}.a $libname.a'
20660 soname_spec='${libname}${release}${shared_ext}$major'
20661 fi
20662 shlibpath_var=LIBPATH
20663 fi
20664 ;;
20665
20666 amigaos*)
20667 case $host_cpu in
20668 powerpc)
20669 # Since July 2007 AmigaOS4 officially supports .so libraries.
20670 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20672 ;;
20673 m68k)
20674 library_names_spec='$libname.ixlibrary $libname.a'
20675 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20676 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'
20677 ;;
20678 esac
20679 ;;
20680
20681 beos*)
20682 library_names_spec='${libname}${shared_ext}'
20683 dynamic_linker="$host_os ld.so"
20684 shlibpath_var=LIBRARY_PATH
20685 ;;
20686
20687 bsdi[45]*)
20688 version_type=linux
20689 need_version=no
20690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20691 soname_spec='${libname}${release}${shared_ext}$major'
20692 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20693 shlibpath_var=LD_LIBRARY_PATH
20694 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20695 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20696 # the default ld.so.conf also contains /usr/contrib/lib and
20697 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20698 # libtool to hard-code these into programs
20699 ;;
20700
20701 cygwin* | mingw* | pw32* | cegcc*)
20702 version_type=windows
20703 shrext_cmds=".dll"
20704 need_version=no
20705 need_lib_prefix=no
20706
20707 case $GCC,$host_os in
20708 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20709 library_names_spec='$libname.dll.a'
20710 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20711 postinstall_cmds='base_file=`basename \${file}`~
20712 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20713 dldir=$destdir/`dirname \$dlpath`~
20714 test -d \$dldir || mkdir -p \$dldir~
20715 $install_prog $dir/$dlname \$dldir/$dlname~
20716 chmod a+x \$dldir/$dlname~
20717 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20718 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20719 fi'
20720 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20721 dlpath=$dir/\$dldll~
20722 $RM \$dlpath'
20723 shlibpath_overrides_runpath=yes
20724
20725 case $host_os in
20726 cygwin*)
20727 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20728 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20729
20730 ;;
20731 mingw* | cegcc*)
20732 # MinGW DLLs use traditional 'lib' prefix
20733 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20734 ;;
20735 pw32*)
20736 # pw32 DLLs use 'pw' prefix rather than 'lib'
20737 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20738 ;;
20739 esac
20740 ;;
20741
20742 *)
20743 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20744 ;;
20745 esac
20746 dynamic_linker='Win32 ld.exe'
20747 # FIXME: first we should search . and the directory the executable is in
20748 shlibpath_var=PATH
20749 ;;
20750
20751 darwin* | rhapsody*)
20752 dynamic_linker="$host_os dyld"
20753 version_type=darwin
20754 need_lib_prefix=no
20755 need_version=no
20756 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20757 soname_spec='${libname}${release}${major}$shared_ext'
20758 shlibpath_overrides_runpath=yes
20759 shlibpath_var=DYLD_LIBRARY_PATH
20760 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20761
20762 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20763 ;;
20764
20765 dgux*)
20766 version_type=linux
20767 need_lib_prefix=no
20768 need_version=no
20769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20770 soname_spec='${libname}${release}${shared_ext}$major'
20771 shlibpath_var=LD_LIBRARY_PATH
20772 ;;
20773
20774 freebsd* | dragonfly*)
20775 # DragonFly does not have aout. When/if they implement a new
20776 # versioning mechanism, adjust this.
20777 if test -x /usr/bin/objformat; then
20778 objformat=`/usr/bin/objformat`
20779 else
20780 case $host_os in
20781 freebsd[23].*) objformat=aout ;;
20782 *) objformat=elf ;;
20783 esac
20784 fi
20785 version_type=freebsd-$objformat
20786 case $version_type in
20787 freebsd-elf*)
20788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20789 need_version=no
20790 need_lib_prefix=no
20791 ;;
20792 freebsd-*)
20793 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20794 need_version=yes
20795 ;;
20796 esac
20797 shlibpath_var=LD_LIBRARY_PATH
20798 case $host_os in
20799 freebsd2.*)
20800 shlibpath_overrides_runpath=yes
20801 ;;
20802 freebsd3.[01]* | freebsdelf3.[01]*)
20803 shlibpath_overrides_runpath=yes
20804 hardcode_into_libs=yes
20805 ;;
20806 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20807 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20808 shlibpath_overrides_runpath=no
20809 hardcode_into_libs=yes
20810 ;;
20811 *) # from 4.6 on, and DragonFly
20812 shlibpath_overrides_runpath=yes
20813 hardcode_into_libs=yes
20814 ;;
20815 esac
20816 ;;
20817
20818 gnu*)
20819 version_type=linux
20820 need_lib_prefix=no
20821 need_version=no
20822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20823 soname_spec='${libname}${release}${shared_ext}$major'
20824 shlibpath_var=LD_LIBRARY_PATH
20825 hardcode_into_libs=yes
20826 ;;
20827
20828 haiku*)
20829 version_type=linux
20830 need_lib_prefix=no
20831 need_version=no
20832 dynamic_linker="$host_os runtime_loader"
20833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20834 soname_spec='${libname}${release}${shared_ext}$major'
20835 shlibpath_var=LIBRARY_PATH
20836 shlibpath_overrides_runpath=yes
20837 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20838 hardcode_into_libs=yes
20839 ;;
20840
20841 hpux9* | hpux10* | hpux11*)
20842 # Give a soname corresponding to the major version so that dld.sl refuses to
20843 # link against other versions.
20844 version_type=sunos
20845 need_lib_prefix=no
20846 need_version=no
20847 case $host_cpu in
20848 ia64*)
20849 shrext_cmds='.so'
20850 hardcode_into_libs=yes
20851 dynamic_linker="$host_os dld.so"
20852 shlibpath_var=LD_LIBRARY_PATH
20853 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20855 soname_spec='${libname}${release}${shared_ext}$major'
20856 if test "X$HPUX_IA64_MODE" = X32; then
20857 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20858 else
20859 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20860 fi
20861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20862 ;;
20863 hppa*64*)
20864 shrext_cmds='.sl'
20865 hardcode_into_libs=yes
20866 dynamic_linker="$host_os dld.sl"
20867 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20868 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20870 soname_spec='${libname}${release}${shared_ext}$major'
20871 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20872 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20873 ;;
20874 *)
20875 shrext_cmds='.sl'
20876 dynamic_linker="$host_os dld.sl"
20877 shlibpath_var=SHLIB_PATH
20878 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20880 soname_spec='${libname}${release}${shared_ext}$major'
20881 ;;
20882 esac
20883 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20884 postinstall_cmds='chmod 555 $lib'
20885 # or fails outright, so override atomically:
20886 install_override_mode=555
20887 ;;
20888
20889 interix[3-9]*)
20890 version_type=linux
20891 need_lib_prefix=no
20892 need_version=no
20893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20894 soname_spec='${libname}${release}${shared_ext}$major'
20895 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20896 shlibpath_var=LD_LIBRARY_PATH
20897 shlibpath_overrides_runpath=no
20898 hardcode_into_libs=yes
20899 ;;
20900
20901 irix5* | irix6* | nonstopux*)
20902 case $host_os in
20903 nonstopux*) version_type=nonstopux ;;
20904 *)
20905 if test "$lt_cv_prog_gnu_ld" = yes; then
20906 version_type=linux
20907 else
20908 version_type=irix
20909 fi ;;
20910 esac
20911 need_lib_prefix=no
20912 need_version=no
20913 soname_spec='${libname}${release}${shared_ext}$major'
20914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20915 case $host_os in
20916 irix5* | nonstopux*)
20917 libsuff= shlibsuff=
20918 ;;
20919 *)
20920 case $LD in # libtool.m4 will add one of these switches to LD
20921 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20922 libsuff= shlibsuff= libmagic=32-bit;;
20923 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20924 libsuff=32 shlibsuff=N32 libmagic=N32;;
20925 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20926 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20927 *) libsuff= shlibsuff= libmagic=never-match;;
20928 esac
20929 ;;
20930 esac
20931 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20932 shlibpath_overrides_runpath=no
20933 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20934 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20935 hardcode_into_libs=yes
20936 ;;
20937
20938 # No shared lib support for Linux oldld, aout, or coff.
20939 linux*oldld* | linux*aout* | linux*coff*)
20940 dynamic_linker=no
20941 ;;
20942
20943 # This must be Linux ELF.
20944 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20945 version_type=linux
20946 need_lib_prefix=no
20947 need_version=no
20948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20949 soname_spec='${libname}${release}${shared_ext}$major'
20950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20951 shlibpath_var=LD_LIBRARY_PATH
20952 shlibpath_overrides_runpath=no
20953
20954 # Some binutils ld are patched to set DT_RUNPATH
20955 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20956 $as_echo_n "(cached) " >&6
20957 else
20958 lt_cv_shlibpath_overrides_runpath=no
20959 save_LDFLAGS=$LDFLAGS
20960 save_libdir=$libdir
20961 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20962 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20964 /* end confdefs.h. */
20965
20966 int
20967 main ()
20968 {
20969
20970 ;
20971 return 0;
20972 }
20973 _ACEOF
20974 if ac_fn_cxx_try_link "$LINENO"; then :
20975 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20976 lt_cv_shlibpath_overrides_runpath=yes
20977 fi
20978 fi
20979 rm -f core conftest.err conftest.$ac_objext \
20980 conftest$ac_exeext conftest.$ac_ext
20981 LDFLAGS=$save_LDFLAGS
20982 libdir=$save_libdir
20983
20984 fi
20985
20986 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20987
20988 # This implies no fast_install, which is unacceptable.
20989 # Some rework will be needed to allow for fast_install
20990 # before this can be enabled.
20991 hardcode_into_libs=yes
20992
20993 # Append ld.so.conf contents to the search path
20994 if test -f /etc/ld.so.conf; then
20995 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' ' '`
20996 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20997 fi
20998
20999 # We used to test for /lib/ld.so.1 and disable shared libraries on
21000 # powerpc, because MkLinux only supported shared libraries with the
21001 # GNU dynamic linker. Since this was broken with cross compilers,
21002 # most powerpc-linux boxes support dynamic linking these days and
21003 # people can always --disable-shared, the test was removed, and we
21004 # assume the GNU/Linux dynamic linker is in use.
21005 dynamic_linker='GNU/Linux ld.so'
21006 ;;
21007
21008 netbsd*)
21009 version_type=sunos
21010 need_lib_prefix=no
21011 need_version=no
21012 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21014 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21015 dynamic_linker='NetBSD (a.out) ld.so'
21016 else
21017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21018 soname_spec='${libname}${release}${shared_ext}$major'
21019 dynamic_linker='NetBSD ld.elf_so'
21020 fi
21021 shlibpath_var=LD_LIBRARY_PATH
21022 shlibpath_overrides_runpath=yes
21023 hardcode_into_libs=yes
21024 ;;
21025
21026 newsos6)
21027 version_type=linux
21028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21029 shlibpath_var=LD_LIBRARY_PATH
21030 shlibpath_overrides_runpath=yes
21031 ;;
21032
21033 *nto* | *qnx*)
21034 version_type=qnx
21035 need_lib_prefix=no
21036 need_version=no
21037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21038 soname_spec='${libname}${release}${shared_ext}$major'
21039 shlibpath_var=LD_LIBRARY_PATH
21040 shlibpath_overrides_runpath=no
21041 hardcode_into_libs=yes
21042 dynamic_linker='ldqnx.so'
21043 ;;
21044
21045 openbsd*)
21046 version_type=sunos
21047 sys_lib_dlsearch_path_spec="/usr/lib"
21048 need_lib_prefix=no
21049 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21050 case $host_os in
21051 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21052 *) need_version=no ;;
21053 esac
21054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21055 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21056 shlibpath_var=LD_LIBRARY_PATH
21057 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21058 case $host_os in
21059 openbsd2.[89] | openbsd2.[89].*)
21060 shlibpath_overrides_runpath=no
21061 ;;
21062 *)
21063 shlibpath_overrides_runpath=yes
21064 ;;
21065 esac
21066 else
21067 shlibpath_overrides_runpath=yes
21068 fi
21069 ;;
21070
21071 os2*)
21072 libname_spec='$name'
21073 shrext_cmds=".dll"
21074 need_lib_prefix=no
21075 library_names_spec='$libname${shared_ext} $libname.a'
21076 dynamic_linker='OS/2 ld.exe'
21077 shlibpath_var=LIBPATH
21078 ;;
21079
21080 osf3* | osf4* | osf5*)
21081 version_type=osf
21082 need_lib_prefix=no
21083 need_version=no
21084 soname_spec='${libname}${release}${shared_ext}$major'
21085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21086 shlibpath_var=LD_LIBRARY_PATH
21087 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21088 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21089 ;;
21090
21091 rdos*)
21092 dynamic_linker=no
21093 ;;
21094
21095 solaris*)
21096 version_type=linux
21097 need_lib_prefix=no
21098 need_version=no
21099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21100 soname_spec='${libname}${release}${shared_ext}$major'
21101 shlibpath_var=LD_LIBRARY_PATH
21102 shlibpath_overrides_runpath=yes
21103 hardcode_into_libs=yes
21104 # ldd complains unless libraries are executable
21105 postinstall_cmds='chmod +x $lib'
21106 ;;
21107
21108 sunos4*)
21109 version_type=sunos
21110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21111 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21112 shlibpath_var=LD_LIBRARY_PATH
21113 shlibpath_overrides_runpath=yes
21114 if test "$with_gnu_ld" = yes; then
21115 need_lib_prefix=no
21116 fi
21117 need_version=yes
21118 ;;
21119
21120 sysv4 | sysv4.3*)
21121 version_type=linux
21122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21123 soname_spec='${libname}${release}${shared_ext}$major'
21124 shlibpath_var=LD_LIBRARY_PATH
21125 case $host_vendor in
21126 sni)
21127 shlibpath_overrides_runpath=no
21128 need_lib_prefix=no
21129 runpath_var=LD_RUN_PATH
21130 ;;
21131 siemens)
21132 need_lib_prefix=no
21133 ;;
21134 motorola)
21135 need_lib_prefix=no
21136 need_version=no
21137 shlibpath_overrides_runpath=no
21138 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21139 ;;
21140 esac
21141 ;;
21142
21143 sysv4*MP*)
21144 if test -d /usr/nec ;then
21145 version_type=linux
21146 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21147 soname_spec='$libname${shared_ext}.$major'
21148 shlibpath_var=LD_LIBRARY_PATH
21149 fi
21150 ;;
21151
21152 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21153 version_type=freebsd-elf
21154 need_lib_prefix=no
21155 need_version=no
21156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21157 soname_spec='${libname}${release}${shared_ext}$major'
21158 shlibpath_var=LD_LIBRARY_PATH
21159 shlibpath_overrides_runpath=yes
21160 hardcode_into_libs=yes
21161 if test "$with_gnu_ld" = yes; then
21162 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21163 else
21164 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21165 case $host_os in
21166 sco3.2v5*)
21167 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21168 ;;
21169 esac
21170 fi
21171 sys_lib_dlsearch_path_spec='/usr/lib'
21172 ;;
21173
21174 tpf*)
21175 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21176 version_type=linux
21177 need_lib_prefix=no
21178 need_version=no
21179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21180 shlibpath_var=LD_LIBRARY_PATH
21181 shlibpath_overrides_runpath=no
21182 hardcode_into_libs=yes
21183 ;;
21184
21185 uts4*)
21186 version_type=linux
21187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21188 soname_spec='${libname}${release}${shared_ext}$major'
21189 shlibpath_var=LD_LIBRARY_PATH
21190 ;;
21191
21192 *)
21193 dynamic_linker=no
21194 ;;
21195 esac
21196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21197 $as_echo "$dynamic_linker" >&6; }
21198 test "$dynamic_linker" = no && can_build_shared=no
21199
21200 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21201 if test "$GCC" = yes; then
21202 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21203 fi
21204
21205 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21206 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21207 fi
21208 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21209 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21210 fi
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
21248
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21250 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21251 hardcode_action_CXX=
21252 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21253 test -n "$runpath_var_CXX" ||
21254 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21255
21256 # We can hardcode non-existent directories.
21257 if test "$hardcode_direct_CXX" != no &&
21258 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21259 # have to relink, otherwise we might link with an installed library
21260 # when we should be linking with a yet-to-be-installed one
21261 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21262 test "$hardcode_minus_L_CXX" != no; then
21263 # Linking always hardcodes the temporary library directory.
21264 hardcode_action_CXX=relink
21265 else
21266 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21267 hardcode_action_CXX=immediate
21268 fi
21269 else
21270 # We cannot hardcode anything, or else we can only hardcode existing
21271 # directories.
21272 hardcode_action_CXX=unsupported
21273 fi
21274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21275 $as_echo "$hardcode_action_CXX" >&6; }
21276
21277 if test "$hardcode_action_CXX" = relink ||
21278 test "$inherit_rpath_CXX" = yes; then
21279 # Fast installation is not supported
21280 enable_fast_install=no
21281 elif test "$shlibpath_overrides_runpath" = yes ||
21282 test "$enable_shared" = no; then
21283 # Fast installation is not necessary
21284 enable_fast_install=needless
21285 fi
21286
21287
21288
21289
21290
21291
21292
21293 fi # test -n "$compiler"
21294
21295 CC=$lt_save_CC
21296 LDCXX=$LD
21297 LD=$lt_save_LD
21298 GCC=$lt_save_GCC
21299 with_gnu_ld=$lt_save_with_gnu_ld
21300 lt_cv_path_LDCXX=$lt_cv_path_LD
21301 lt_cv_path_LD=$lt_save_path_LD
21302 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21303 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21304 fi # test "$_lt_caught_CXX_error" != yes
21305
21306 ac_ext=c
21307 ac_cpp='$CPP $CPPFLAGS'
21308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327 # Only expand once:
21328
21329
21330
21331
21332
21333 # Identify the assembler which will work hand-in-glove with the newly
21334 # built GCC, so that we can examine its features. This is the assembler
21335 # which will be driven by the driver program.
21336 #
21337 # If build != host, and we aren't building gas in-tree, we identify a
21338 # build->target assembler and hope that it will have the same features
21339 # as the host->target assembler we'll be using.
21340 gcc_cv_gas_major_version=
21341 gcc_cv_gas_minor_version=
21342 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21343
21344 if test "${gcc_cv_as+set}" = set; then :
21345
21346 else
21347
21348 if test -x "$DEFAULT_ASSEMBLER"; then
21349 gcc_cv_as="$DEFAULT_ASSEMBLER"
21350 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21351 && test -f ../gas/Makefile \
21352 && test x$build = x$host; then
21353 gcc_cv_as=../gas/as-new$build_exeext
21354 elif test -x as$build_exeext; then
21355 # Build using assembler in the current directory.
21356 gcc_cv_as=./as$build_exeext
21357 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21358 gcc_cv_as="$AS_FOR_TARGET"
21359 else
21360 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21361 set dummy $AS_FOR_TARGET; ac_word=$2
21362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21363 $as_echo_n "checking for $ac_word... " >&6; }
21364 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21365 $as_echo_n "(cached) " >&6
21366 else
21367 case $gcc_cv_as in
21368 [\\/]* | ?:[\\/]*)
21369 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21370 ;;
21371 *)
21372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21373 for as_dir in $PATH
21374 do
21375 IFS=$as_save_IFS
21376 test -z "$as_dir" && as_dir=.
21377 for ac_exec_ext in '' $ac_executable_extensions; do
21378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21379 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21381 break 2
21382 fi
21383 done
21384 done
21385 IFS=$as_save_IFS
21386
21387 ;;
21388 esac
21389 fi
21390 gcc_cv_as=$ac_cv_path_gcc_cv_as
21391 if test -n "$gcc_cv_as"; then
21392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21393 $as_echo "$gcc_cv_as" >&6; }
21394 else
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21396 $as_echo "no" >&6; }
21397 fi
21398
21399
21400 fi
21401 fi
21402
21403 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21404
21405 case "$ORIGINAL_AS_FOR_TARGET" in
21406 ./as | ./as$build_exeext) ;;
21407 *) ac_config_files="$ac_config_files as:exec-tool.in"
21408 ;;
21409 esac
21410
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21412 $as_echo_n "checking what assembler to use... " >&6; }
21413 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21414 # Single tree build which includes gas. We want to prefer it
21415 # over whatever linker top-level may have detected, since
21416 # we'll use what we're building after installation anyway.
21417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21418 $as_echo "newly built gas" >&6; }
21419 in_tree_gas=yes
21420 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21421 for f in $gcc_cv_as_bfd_srcdir/configure \
21422 $gcc_cv_as_gas_srcdir/configure \
21423 $gcc_cv_as_gas_srcdir/configure.in \
21424 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21425 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21426 if test x$gcc_cv_gas_version != x; then
21427 break
21428 fi
21429 done
21430 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21431 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21432 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21433 case $gcc_cv_gas_patch_version in
21434 "") gcc_cv_gas_patch_version="0" ;;
21435 esac
21436 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21437 + $gcc_cv_gas_minor_version \) \* 1000 \
21438 + $gcc_cv_gas_patch_version`
21439
21440 in_tree_gas_is_elf=no
21441 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21442 || (grep 'obj_format = multi' ../gas/Makefile \
21443 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21444 then
21445 in_tree_gas_is_elf=yes
21446 fi
21447 else
21448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21449 $as_echo "$gcc_cv_as" >&6; }
21450 in_tree_gas=no
21451 fi
21452
21453 # Identify the linker which will work hand-in-glove with the newly
21454 # built GCC, so that we can examine its features. This is the linker
21455 # which will be driven by the driver program.
21456 #
21457 # If build != host, and we aren't building gas in-tree, we identify a
21458 # build->target linker and hope that it will have the same features
21459 # as the host->target linker we'll be using.
21460 gcc_cv_gld_major_version=
21461 gcc_cv_gld_minor_version=
21462 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21463 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21464
21465 if test "${gcc_cv_ld+set}" = set; then :
21466
21467 else
21468
21469 if test -x "$DEFAULT_LINKER"; then
21470 gcc_cv_ld="$DEFAULT_LINKER"
21471 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21472 && test -f ../ld/Makefile \
21473 && test x$build = x$host; then
21474 gcc_cv_ld=../ld/ld-new$build_exeext
21475 elif test -x collect-ld$build_exeext; then
21476 # Build using linker in the current directory.
21477 gcc_cv_ld=./collect-ld$build_exeext
21478 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21479 gcc_cv_ld="$LD_FOR_TARGET"
21480 else
21481 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21482 set dummy $LD_FOR_TARGET; ac_word=$2
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21484 $as_echo_n "checking for $ac_word... " >&6; }
21485 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21486 $as_echo_n "(cached) " >&6
21487 else
21488 case $gcc_cv_ld in
21489 [\\/]* | ?:[\\/]*)
21490 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21491 ;;
21492 *)
21493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21494 for as_dir in $PATH
21495 do
21496 IFS=$as_save_IFS
21497 test -z "$as_dir" && as_dir=.
21498 for ac_exec_ext in '' $ac_executable_extensions; do
21499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21500 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21502 break 2
21503 fi
21504 done
21505 done
21506 IFS=$as_save_IFS
21507
21508 ;;
21509 esac
21510 fi
21511 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21512 if test -n "$gcc_cv_ld"; then
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21514 $as_echo "$gcc_cv_ld" >&6; }
21515 else
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21517 $as_echo "no" >&6; }
21518 fi
21519
21520
21521 fi
21522 fi
21523
21524 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21525 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21526
21527 # Check whether --with-plugin-ld was given.
21528 if test "${with_plugin_ld+set}" = set; then :
21529 withval=$with_plugin_ld; if test x"$withval" != x; then
21530 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21531 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21532 fi
21533 fi
21534
21535
21536
21537 cat >>confdefs.h <<_ACEOF
21538 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21539 _ACEOF
21540
21541
21542 # Check to see if we are using gold instead of ld
21543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21544 $as_echo_n "checking whether we are using gold... " >&6; }
21545 ld_is_gold=no
21546 if test x$gcc_cv_ld != x; then
21547 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21548 | grep "GNU gold" > /dev/null; then
21549 ld_is_gold=yes
21550 fi
21551 fi
21552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21553 $as_echo "$ld_is_gold" >&6; }
21554
21555 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21556
21557 case "$ORIGINAL_LD_FOR_TARGET" in
21558 ./collect-ld | ./collect-ld$build_exeext) ;;
21559 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21560 ;;
21561 esac
21562
21563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21564 $as_echo_n "checking what linker to use... " >&6; }
21565 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21566 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21567 # Single tree build which includes ld. We want to prefer it
21568 # over whatever linker top-level may have detected, since
21569 # we'll use what we're building after installation anyway.
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21571 $as_echo "newly built ld" >&6; }
21572 in_tree_ld=yes
21573 in_tree_ld_is_elf=no
21574 if (grep 'EMUL = .*elf' ../ld/Makefile \
21575 || grep 'EMUL = .*linux' ../ld/Makefile \
21576 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21577 in_tree_ld_is_elf=yes
21578 elif test "$ld_is_gold" = yes; then
21579 in_tree_ld_is_elf=yes
21580 fi
21581 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
21582 do
21583 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21584 if test x$gcc_cv_gld_version != x; then
21585 break
21586 fi
21587 done
21588 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21589 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21590 else
21591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21592 $as_echo "$gcc_cv_ld" >&6; }
21593 in_tree_ld=no
21594 fi
21595
21596 # Figure out what nm we will be using.
21597 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21598 if test "${gcc_cv_nm+set}" = set; then :
21599
21600 else
21601
21602 if test -f $gcc_cv_binutils_srcdir/configure.in \
21603 && test -f ../binutils/Makefile \
21604 && test x$build = x$host; then
21605 gcc_cv_nm=../binutils/nm-new$build_exeext
21606 elif test -x nm$build_exeext; then
21607 gcc_cv_nm=./nm$build_exeext
21608 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21609 gcc_cv_nm="$NM_FOR_TARGET"
21610 else
21611 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21612 set dummy $NM_FOR_TARGET; ac_word=$2
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21614 $as_echo_n "checking for $ac_word... " >&6; }
21615 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21616 $as_echo_n "(cached) " >&6
21617 else
21618 case $gcc_cv_nm in
21619 [\\/]* | ?:[\\/]*)
21620 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21621 ;;
21622 *)
21623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21624 for as_dir in $PATH
21625 do
21626 IFS=$as_save_IFS
21627 test -z "$as_dir" && as_dir=.
21628 for ac_exec_ext in '' $ac_executable_extensions; do
21629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21630 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21632 break 2
21633 fi
21634 done
21635 done
21636 IFS=$as_save_IFS
21637
21638 ;;
21639 esac
21640 fi
21641 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21642 if test -n "$gcc_cv_nm"; then
21643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21644 $as_echo "$gcc_cv_nm" >&6; }
21645 else
21646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21647 $as_echo "no" >&6; }
21648 fi
21649
21650
21651 fi
21652 fi
21653
21654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21655 $as_echo_n "checking what nm to use... " >&6; }
21656 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21657 # Single tree build which includes binutils.
21658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21659 $as_echo "newly built nm" >&6; }
21660 in_tree_nm=yes
21661 else
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21663 $as_echo "$gcc_cv_nm" >&6; }
21664 in_tree_nm=no
21665 fi
21666
21667 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21668
21669 case "$ORIGINAL_NM_FOR_TARGET" in
21670 ./nm | ./nm$build_exeext) ;;
21671 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21672 ;;
21673 esac
21674
21675
21676 # Figure out what objdump we will be using.
21677 if test "${gcc_cv_objdump+set}" = set; then :
21678
21679 else
21680
21681 if test -f $gcc_cv_binutils_srcdir/configure.in \
21682 && test -f ../binutils/Makefile \
21683 && test x$build = x$host; then
21684 # Single tree build which includes binutils.
21685 gcc_cv_objdump=../binutils/objdump$build_exeext
21686 elif test -x objdump$build_exeext; then
21687 gcc_cv_objdump=./objdump$build_exeext
21688 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21689 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21690 else
21691 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21692 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21694 $as_echo_n "checking for $ac_word... " >&6; }
21695 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21696 $as_echo_n "(cached) " >&6
21697 else
21698 case $gcc_cv_objdump in
21699 [\\/]* | ?:[\\/]*)
21700 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21701 ;;
21702 *)
21703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21704 for as_dir in $PATH
21705 do
21706 IFS=$as_save_IFS
21707 test -z "$as_dir" && as_dir=.
21708 for ac_exec_ext in '' $ac_executable_extensions; do
21709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21710 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21712 break 2
21713 fi
21714 done
21715 done
21716 IFS=$as_save_IFS
21717
21718 ;;
21719 esac
21720 fi
21721 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21722 if test -n "$gcc_cv_objdump"; then
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21724 $as_echo "$gcc_cv_objdump" >&6; }
21725 else
21726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21727 $as_echo "no" >&6; }
21728 fi
21729
21730
21731 fi
21732 fi
21733
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21735 $as_echo_n "checking what objdump to use... " >&6; }
21736 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21737 # Single tree build which includes binutils.
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21739 $as_echo "newly built objdump" >&6; }
21740 elif test x$gcc_cv_objdump = x; then
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21742 $as_echo "not found" >&6; }
21743 else
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21745 $as_echo "$gcc_cv_objdump" >&6; }
21746 fi
21747
21748 # Figure out what readelf we will be using.
21749 if test "${gcc_cv_readelf+set}" = set; then :
21750
21751 else
21752
21753 if test -f $gcc_cv_binutils_srcdir/configure.in \
21754 && test -f ../binutils/Makefile \
21755 && test x$build = x$host; then
21756 # Single tree build which includes binutils.
21757 gcc_cv_readelf=../binutils/readelf$build_exeext
21758 elif test -x readelf$build_exeext; then
21759 gcc_cv_readelf=./readelf$build_exeext
21760 else
21761 # Extract the first word of "readelf", so it can be a program name with args.
21762 set dummy readelf; ac_word=$2
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21764 $as_echo_n "checking for $ac_word... " >&6; }
21765 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21766 $as_echo_n "(cached) " >&6
21767 else
21768 case $gcc_cv_readelf in
21769 [\\/]* | ?:[\\/]*)
21770 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21771 ;;
21772 *)
21773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21774 for as_dir in $PATH
21775 do
21776 IFS=$as_save_IFS
21777 test -z "$as_dir" && as_dir=.
21778 for ac_exec_ext in '' $ac_executable_extensions; do
21779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21780 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21782 break 2
21783 fi
21784 done
21785 done
21786 IFS=$as_save_IFS
21787
21788 ;;
21789 esac
21790 fi
21791 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21792 if test -n "$gcc_cv_readelf"; then
21793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21794 $as_echo "$gcc_cv_readelf" >&6; }
21795 else
21796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21797 $as_echo "no" >&6; }
21798 fi
21799
21800
21801 fi
21802 fi
21803
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21805 $as_echo_n "checking what readelf to use... " >&6; }
21806 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21807 # Single tree build which includes binutils.
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21809 $as_echo "newly built readelf" >&6; }
21810 elif test x$gcc_cv_readelf = x; then
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21812 $as_echo "not found" >&6; }
21813 else
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21815 $as_echo "$gcc_cv_readelf" >&6; }
21816 fi
21817
21818 # Figure out what assembler alignment features are present.
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21820 $as_echo_n "checking assembler flags... " >&6; }
21821 if test "${gcc_cv_as_flags+set}" = set; then :
21822 $as_echo_n "(cached) " >&6
21823 else
21824 case "$target" in
21825 i[34567]86-*-linux*)
21826 gcc_cv_as_flags="--32"
21827 ;;
21828 powerpc*-*-darwin*)
21829 gcc_cv_as_flags="-arch ppc"
21830 ;;
21831 *)
21832 gcc_cv_as_flags=" "
21833 ;;
21834 esac
21835 fi
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21837 $as_echo "$gcc_cv_as_flags" >&6; }
21838
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21840 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21841 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21842 $as_echo_n "(cached) " >&6
21843 else
21844 gcc_cv_as_balign_and_p2align=no
21845 if test $in_tree_gas = yes; then
21846 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21847 then gcc_cv_as_balign_and_p2align=yes
21848 fi
21849 elif test x$gcc_cv_as != x; then
21850 $as_echo '.balign 4
21851 .p2align 2' > conftest.s
21852 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21854 (eval $ac_try) 2>&5
21855 ac_status=$?
21856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21857 test $ac_status = 0; }; }
21858 then
21859 gcc_cv_as_balign_and_p2align=yes
21860 else
21861 echo "configure: failed program was" >&5
21862 cat conftest.s >&5
21863 fi
21864 rm -f conftest.o conftest.s
21865 fi
21866 fi
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21868 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21869 if test $gcc_cv_as_balign_and_p2align = yes; then
21870
21871 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21872
21873 fi
21874
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21876 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21877 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21878 $as_echo_n "(cached) " >&6
21879 else
21880 gcc_cv_as_max_skip_p2align=no
21881 if test $in_tree_gas = yes; then
21882 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21883 then gcc_cv_as_max_skip_p2align=yes
21884 fi
21885 elif test x$gcc_cv_as != x; then
21886 $as_echo '.p2align 4,,7' > conftest.s
21887 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21889 (eval $ac_try) 2>&5
21890 ac_status=$?
21891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21892 test $ac_status = 0; }; }
21893 then
21894 gcc_cv_as_max_skip_p2align=yes
21895 else
21896 echo "configure: failed program was" >&5
21897 cat conftest.s >&5
21898 fi
21899 rm -f conftest.o conftest.s
21900 fi
21901 fi
21902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21903 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21904 if test $gcc_cv_as_max_skip_p2align = yes; then
21905
21906 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21907
21908 fi
21909
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21911 $as_echo_n "checking assembler for .literal16... " >&6; }
21912 if test "${gcc_cv_as_literal16+set}" = set; then :
21913 $as_echo_n "(cached) " >&6
21914 else
21915 gcc_cv_as_literal16=no
21916 if test $in_tree_gas = yes; then
21917 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21918 then gcc_cv_as_literal16=yes
21919 fi
21920 elif test x$gcc_cv_as != x; then
21921 $as_echo '.literal16' > conftest.s
21922 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21924 (eval $ac_try) 2>&5
21925 ac_status=$?
21926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21927 test $ac_status = 0; }; }
21928 then
21929 gcc_cv_as_literal16=yes
21930 else
21931 echo "configure: failed program was" >&5
21932 cat conftest.s >&5
21933 fi
21934 rm -f conftest.o conftest.s
21935 fi
21936 fi
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21938 $as_echo "$gcc_cv_as_literal16" >&6; }
21939 if test $gcc_cv_as_literal16 = yes; then
21940
21941 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21942
21943 fi
21944
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21946 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21947 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21948 $as_echo_n "(cached) " >&6
21949 else
21950 gcc_cv_as_subsection_m1=no
21951 if test $in_tree_gas = yes; then
21952 if test $in_tree_gas_is_elf = yes \
21953 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21954 then gcc_cv_as_subsection_m1=yes
21955 fi
21956 elif test x$gcc_cv_as != x; then
21957 $as_echo 'conftest_label1: .word 0
21958 .subsection -1
21959 conftest_label2: .word 0
21960 .previous' > conftest.s
21961 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21963 (eval $ac_try) 2>&5
21964 ac_status=$?
21965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21966 test $ac_status = 0; }; }
21967 then
21968 if test x$gcc_cv_nm != x; then
21969 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21970 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21971 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21972 then :
21973 else gcc_cv_as_subsection_m1=yes
21974 fi
21975 rm -f conftest.nm1 conftest.nm2
21976 fi
21977 else
21978 echo "configure: failed program was" >&5
21979 cat conftest.s >&5
21980 fi
21981 rm -f conftest.o conftest.s
21982 fi
21983 fi
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21985 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21986 if test $gcc_cv_as_subsection_m1 = yes; then
21987
21988 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21989
21990 fi
21991
21992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21993 $as_echo_n "checking assembler for .weak... " >&6; }
21994 if test "${gcc_cv_as_weak+set}" = set; then :
21995 $as_echo_n "(cached) " >&6
21996 else
21997 gcc_cv_as_weak=no
21998 if test $in_tree_gas = yes; then
21999 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22000 then gcc_cv_as_weak=yes
22001 fi
22002 elif test x$gcc_cv_as != x; then
22003 $as_echo ' .weak foobar' > conftest.s
22004 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22006 (eval $ac_try) 2>&5
22007 ac_status=$?
22008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22009 test $ac_status = 0; }; }
22010 then
22011 gcc_cv_as_weak=yes
22012 else
22013 echo "configure: failed program was" >&5
22014 cat conftest.s >&5
22015 fi
22016 rm -f conftest.o conftest.s
22017 fi
22018 fi
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22020 $as_echo "$gcc_cv_as_weak" >&6; }
22021 if test $gcc_cv_as_weak = yes; then
22022
22023 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22024
22025 fi
22026
22027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22028 $as_echo_n "checking assembler for .weakref... " >&6; }
22029 if test "${gcc_cv_as_weakref+set}" = set; then :
22030 $as_echo_n "(cached) " >&6
22031 else
22032 gcc_cv_as_weakref=no
22033 if test $in_tree_gas = yes; then
22034 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22035 then gcc_cv_as_weakref=yes
22036 fi
22037 elif test x$gcc_cv_as != x; then
22038 $as_echo ' .weakref foobar, barfnot' > conftest.s
22039 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22041 (eval $ac_try) 2>&5
22042 ac_status=$?
22043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22044 test $ac_status = 0; }; }
22045 then
22046 gcc_cv_as_weakref=yes
22047 else
22048 echo "configure: failed program was" >&5
22049 cat conftest.s >&5
22050 fi
22051 rm -f conftest.o conftest.s
22052 fi
22053 fi
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22055 $as_echo "$gcc_cv_as_weakref" >&6; }
22056 if test $gcc_cv_as_weakref = yes; then
22057
22058 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22059
22060 fi
22061
22062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22063 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22064 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22065 $as_echo_n "(cached) " >&6
22066 else
22067 gcc_cv_as_nsubspa_comdat=no
22068 if test $in_tree_gas = yes; then
22069 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22070 then gcc_cv_as_nsubspa_comdat=yes
22071 fi
22072 elif test x$gcc_cv_as != x; then
22073 $as_echo ' .SPACE $TEXT$
22074 .NSUBSPA $CODE$,COMDAT' > conftest.s
22075 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22077 (eval $ac_try) 2>&5
22078 ac_status=$?
22079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22080 test $ac_status = 0; }; }
22081 then
22082 gcc_cv_as_nsubspa_comdat=yes
22083 else
22084 echo "configure: failed program was" >&5
22085 cat conftest.s >&5
22086 fi
22087 rm -f conftest.o conftest.s
22088 fi
22089 fi
22090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22091 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22092 if test $gcc_cv_as_nsubspa_comdat = yes; then
22093
22094 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22095
22096 fi
22097
22098 # .hidden needs to be supported in both the assembler and the linker,
22099 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22100 # This is irritatingly difficult to feature test for; we have to check the
22101 # date string after the version number. If we've got an in-tree
22102 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22103 # to be safe.
22104 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22106 $as_echo_n "checking assembler for .hidden... " >&6; }
22107 if test "${gcc_cv_as_hidden+set}" = set; then :
22108 $as_echo_n "(cached) " >&6
22109 else
22110 gcc_cv_as_hidden=no
22111 if test $in_tree_gas = yes; then
22112 if test $in_tree_gas_is_elf = yes \
22113 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22114 then gcc_cv_as_hidden=yes
22115 fi
22116 elif test x$gcc_cv_as != x; then
22117 $as_echo ' .hidden foobar
22118 foobar:' > conftest.s
22119 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22121 (eval $ac_try) 2>&5
22122 ac_status=$?
22123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22124 test $ac_status = 0; }; }
22125 then
22126
22127 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22128 # STV_HIDDEN, so disable .hidden support if so.
22129 case "${target}" in
22130 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22131 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22132 cat > conftest.s <<EOF
22133 .globl hidden
22134 .hidden hidden
22135 hidden:
22136 .globl default
22137 .set default,hidden
22138 EOF
22139 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22140 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22141 grep '\.hidden default' > /dev/null; then
22142 gcc_cv_as_hidden=no
22143 else
22144 gcc_cv_as_hidden=yes
22145 fi
22146 else
22147 # Assume bug is present if objdump is missing.
22148 gcc_cv_as_hidden=no
22149 fi
22150 ;;
22151 *)
22152 gcc_cv_as_hidden=yes
22153 ;;
22154 esac
22155 else
22156 echo "configure: failed program was" >&5
22157 cat conftest.s >&5
22158 fi
22159 rm -f conftest.o conftest.s
22160 fi
22161 fi
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22163 $as_echo "$gcc_cv_as_hidden" >&6; }
22164
22165 case "${target}" in
22166 *-*-darwin*)
22167 # Darwin as has some visibility support, though with a different syntax.
22168 gcc_cv_as_hidden=yes
22169 ;;
22170 esac
22171
22172 # gnu_indirect_function type is an extension proposed at
22173 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22174 # selection of function implementation
22175 # Check whether --enable-gnu-indirect-function was given.
22176 if test "${enable_gnu_indirect_function+set}" = set; then :
22177 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22178 yes | no) ;;
22179 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22180 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22181 esac
22182 else
22183 enable_gnu_indirect_function="$default_gnu_indirect_function"
22184 fi
22185
22186 if test x$enable_gnu_indirect_function = xyes; then
22187
22188 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22189
22190 fi
22191
22192 if test $in_tree_ld != yes ; then
22193 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22194 if echo "$ld_ver" | grep GNU > /dev/null; then
22195 if test x"$ld_is_gold" = xyes; then
22196 # GNU gold --version looks like this:
22197 #
22198 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22199 #
22200 # We extract the binutils version which is more familiar and specific
22201 # than the gold version.
22202 ld_vers=`echo $ld_ver | sed -n \
22203 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22204 else
22205 # GNU ld --version looks like this:
22206 #
22207 # GNU ld (GNU Binutils) 2.21.51.20110225
22208 ld_vers=`echo $ld_ver | sed -n \
22209 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22210 fi
22211 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'`
22212 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22213 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22214 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22215 else
22216 case "${target}" in
22217 *-*-solaris2*)
22218 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22219 # format.
22220 #
22221 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22222 # /usr/ccs/bin/ld has been configured.
22223 ld_ver=`$gcc_cv_ld -V 2>&1`
22224 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22225 ld_vers=`echo $ld_ver | sed -n \
22226 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22227 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22228 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22229 fi
22230 ;;
22231 esac
22232 fi
22233 fi
22234
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22236 $as_echo_n "checking linker for .hidden support... " >&6; }
22237 if test "${gcc_cv_ld_hidden+set}" = set; then :
22238 $as_echo_n "(cached) " >&6
22239 else
22240 if test $in_tree_ld = yes ; then
22241 gcc_cv_ld_hidden=no
22242 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 \
22243 && test $in_tree_ld_is_elf = yes; then
22244 gcc_cv_ld_hidden=yes
22245 fi
22246 else
22247 gcc_cv_ld_hidden=yes
22248 if test x"$ld_is_gold" = xyes; then
22249 :
22250 elif echo "$ld_ver" | grep GNU > /dev/null; then
22251 if test 0"$ld_date" -lt 20020404; then
22252 if test -n "$ld_date"; then
22253 # If there was date string, but was earlier than 2002-04-04, fail
22254 gcc_cv_ld_hidden=no
22255 elif test -z "$ld_vers"; then
22256 # If there was no date string nor ld version number, something is wrong
22257 gcc_cv_ld_hidden=no
22258 else
22259 test -z "$ld_vers_patch" && ld_vers_patch=0
22260 if test "$ld_vers_major" -lt 2; then
22261 gcc_cv_ld_hidden=no
22262 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22263 gcc_cv_ld_hidden="no"
22264 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22265 gcc_cv_ld_hidden=no
22266 fi
22267 fi
22268 fi
22269 else
22270 case "${target}" in
22271 *-*-darwin*)
22272 # Darwin ld has some visibility support.
22273 gcc_cv_ld_hidden=yes
22274 ;;
22275 hppa64*-*-hpux* | ia64*-*-hpux*)
22276 gcc_cv_ld_hidden=yes
22277 ;;
22278 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22279 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22280 # .symbolic was only added in Solaris 9 12/02.
22281 gcc_cv_ld_hidden=yes
22282 ;;
22283 *)
22284 gcc_cv_ld_hidden=no
22285 ;;
22286 esac
22287 fi
22288 fi
22289 fi
22290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22291 $as_echo "$gcc_cv_ld_hidden" >&6; }
22292 libgcc_visibility=no
22293
22294
22295 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22296 libgcc_visibility=yes
22297
22298 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22299
22300 fi
22301
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22303 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22304 gcc_cv_ld_ro_rw_mix=unknown
22305 if test $in_tree_ld = yes ; then
22306 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 \
22307 && test $in_tree_ld_is_elf = yes; then
22308 gcc_cv_ld_ro_rw_mix=read-write
22309 fi
22310 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22311 echo '.section myfoosect, "a"' > conftest1.s
22312 echo '.section myfoosect, "aw"' > conftest2.s
22313 echo '.byte 1' >> conftest2.s
22314 echo '.section myfoosect, "a"' > conftest3.s
22315 echo '.byte 0' >> conftest3.s
22316 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22317 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22318 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22319 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22320 conftest2.o conftest3.o > /dev/null 2>&1; then
22321 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22322 | sed -e '/myfoosect/!d' -e N`
22323 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22324 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22325 gcc_cv_ld_ro_rw_mix=read-only
22326 else
22327 gcc_cv_ld_ro_rw_mix=read-write
22328 fi
22329 fi
22330 fi
22331 rm -f conftest.* conftest[123].*
22332 fi
22333 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22334
22335 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22336
22337 fi
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22339 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22340
22341 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22342 case "${target}" in
22343 *-*-solaris2*)
22344 #
22345 # Solaris 2 ld -V output looks like this for a regular version:
22346 #
22347 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22348 #
22349 # but test versions add stuff at the end:
22350 #
22351 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22352 #
22353 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22354 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22355 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22356 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22357 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22358 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22359 fi
22360 ;;
22361 esac
22362 fi
22363
22364 # Check whether --enable-initfini-array was given.
22365 if test "${enable_initfini_array+set}" = set; then :
22366 enableval=$enable_initfini_array;
22367 else
22368
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22370 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22371 if test "${gcc_cv_initfini_array+set}" = set; then :
22372 $as_echo_n "(cached) " >&6
22373 else
22374 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22375 case "${target}" in
22376 ia64-*)
22377 if test "$cross_compiling" = yes; then :
22378 gcc_cv_initfini_array=no
22379 else
22380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22381 /* end confdefs.h. */
22382
22383 #ifndef __ELF__
22384 #error Not an ELF OS
22385 #endif
22386 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22387 if it can be used. */
22388 static int x = -1;
22389 int main (void) { return x; }
22390 int foo (void) { x = 0; }
22391 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22392
22393 _ACEOF
22394 if ac_fn_c_try_run "$LINENO"; then :
22395 gcc_cv_initfini_array=yes
22396 else
22397 gcc_cv_initfini_array=no
22398 fi
22399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22400 conftest.$ac_objext conftest.beam conftest.$ac_ext
22401 fi
22402 ;;
22403 *)
22404 gcc_cv_initfini_array=no
22405 if test $in_tree_ld = yes ; then
22406 if test "$gcc_cv_gld_major_version" -eq 2 \
22407 -a "$gcc_cv_gld_minor_version" -ge 22 \
22408 -o "$gcc_cv_gld_major_version" -gt 2 \
22409 && test $in_tree_ld_is_elf = yes; then
22410 gcc_cv_initfini_array=yes
22411 fi
22412 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22413 cat > conftest.s <<\EOF
22414 .section .dtors,"a",%progbits
22415 .balign 4
22416 .byte 'A', 'A', 'A', 'A'
22417 .section .ctors,"a",%progbits
22418 .balign 4
22419 .byte 'B', 'B', 'B', 'B'
22420 .section .fini_array.65530,"a",%progbits
22421 .balign 4
22422 .byte 'C', 'C', 'C', 'C'
22423 .section .init_array.65530,"a",%progbits
22424 .balign 4
22425 .byte 'D', 'D', 'D', 'D'
22426 .section .dtors.64528,"a",%progbits
22427 .balign 4
22428 .byte 'E', 'E', 'E', 'E'
22429 .section .ctors.64528,"a",%progbits
22430 .balign 4
22431 .byte 'F', 'F', 'F', 'F'
22432 .section .fini_array.01005,"a",%progbits
22433 .balign 4
22434 .byte 'G', 'G', 'G', 'G'
22435 .section .init_array.01005,"a",%progbits
22436 .balign 4
22437 .byte 'H', 'H', 'H', 'H'
22438 .text
22439 .globl _start
22440 _start:
22441 EOF
22442 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22443 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22444 && $gcc_cv_objdump -s -j .init_array conftest \
22445 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22446 && $gcc_cv_objdump -s -j .fini_array conftest \
22447 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22448 gcc_cv_initfini_array=yes
22449 fi
22450 rm -f conftest conftest.*
22451 fi
22452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22453 /* end confdefs.h. */
22454
22455 #ifndef __ELF__
22456 # error Not an ELF OS
22457 #endif
22458 #include <stdlib.h>
22459 #if defined __GLIBC_PREREQ
22460 # if __GLIBC_PREREQ (2, 4)
22461 # else
22462 # error GLIBC 2.4 required
22463 # endif
22464 #else
22465 # if defined __sun__ && defined __svr4__
22466 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22467 # else
22468 # error The C library not known to support .init_array/.fini_array
22469 # endif
22470 #endif
22471
22472 _ACEOF
22473 if ac_fn_c_try_cpp "$LINENO"; then :
22474
22475 else
22476 gcc_cv_initfini_array=no
22477 fi
22478 rm -f conftest.err conftest.$ac_ext;;
22479 esac
22480 else
22481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22482 $as_echo_n "checking cross compile... guessing... " >&6; }
22483 gcc_cv_initfini_array=no
22484 fi
22485 fi
22486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22487 $as_echo "$gcc_cv_initfini_array" >&6; }
22488 enable_initfini_array=$gcc_cv_initfini_array
22489
22490 fi
22491
22492 if test $enable_initfini_array = yes; then
22493
22494 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22495
22496 fi
22497
22498 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22500 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22501 if test "${gcc_cv_as_leb128+set}" = set; then :
22502 $as_echo_n "(cached) " >&6
22503 else
22504 gcc_cv_as_leb128=no
22505 if test $in_tree_gas = yes; then
22506 if test $in_tree_gas_is_elf = yes \
22507 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22508 then gcc_cv_as_leb128=yes
22509 fi
22510 elif test x$gcc_cv_as != x; then
22511 $as_echo ' .data
22512 .uleb128 L2 - L1
22513 L1:
22514 .uleb128 1280
22515 .sleb128 -1010
22516 L2:' > conftest.s
22517 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22519 (eval $ac_try) 2>&5
22520 ac_status=$?
22521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22522 test $ac_status = 0; }; }
22523 then
22524 # GAS versions before 2.11 do not support uleb128,
22525 # despite appearing to.
22526 # ??? There exists an elf-specific test that will crash
22527 # the assembler. Perhaps it's better to figure out whether
22528 # arbitrary sections are supported and try the test.
22529 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22530 if echo "$as_ver" | grep GNU > /dev/null; then
22531 as_vers=`echo $as_ver | sed -n \
22532 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22533 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22534 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22535 if test $as_major -eq 2 && test $as_minor -lt 11
22536 then :
22537 else gcc_cv_as_leb128=yes
22538 fi
22539 fi
22540 else
22541 echo "configure: failed program was" >&5
22542 cat conftest.s >&5
22543 fi
22544 rm -f conftest.o conftest.s
22545 fi
22546 fi
22547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22548 $as_echo "$gcc_cv_as_leb128" >&6; }
22549 if test $gcc_cv_as_leb128 = yes; then
22550
22551 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22552
22553 fi
22554
22555 # Check if we have assembler support for unwind directives.
22556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22557 $as_echo_n "checking assembler for cfi directives... " >&6; }
22558 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22559 $as_echo_n "(cached) " >&6
22560 else
22561 gcc_cv_as_cfi_directive=no
22562 if test x$gcc_cv_as != x; then
22563 $as_echo ' .text
22564 .cfi_startproc
22565 .cfi_offset 0, 0
22566 .cfi_same_value 1
22567 .cfi_def_cfa 1, 2
22568 .cfi_escape 1, 2, 3, 4, 5
22569 .cfi_endproc' > conftest.s
22570 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22572 (eval $ac_try) 2>&5
22573 ac_status=$?
22574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22575 test $ac_status = 0; }; }
22576 then
22577 case "$target" in
22578 *-*-solaris*)
22579 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22580 # read-only and read-write sections, we need to make sure that the
22581 # assembler used emits read-write .eh_frame sections.
22582 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22583 if test "x$gcc_cv_objdump" != x; then
22584 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22585 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22586 gcc_cv_as_cfi_directive=no
22587 else
22588 case "$target" in
22589 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22590 # On Solaris/x86, make sure that GCC and gas agree on using
22591 # read-only .eh_frame sections for 64-bit.
22592 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22593 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22594 sed -e /.eh_frame/!d -e N | \
22595 grep READONLY > /dev/null; then
22596 gcc_cv_as_cfi_directive=yes
22597 else
22598 gcc_cv_as_cfi_directive=no
22599 fi
22600 ;;
22601 *)
22602 gcc_cv_as_cfi_directive=yes
22603 ;;
22604 esac
22605 fi
22606 else
22607 # no objdump, err on the side of caution
22608 gcc_cv_as_cfi_directive=no
22609 fi
22610 else
22611 gcc_cv_as_cfi_directive=yes
22612 fi
22613 ;;
22614 *-*-*)
22615 gcc_cv_as_cfi_directive=yes
22616 ;;
22617 esac
22618 else
22619 echo "configure: failed program was" >&5
22620 cat conftest.s >&5
22621 fi
22622 rm -f conftest.o conftest.s
22623 fi
22624 fi
22625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22626 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22627
22628 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22630 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22631 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22632 $as_echo_n "(cached) " >&6
22633 else
22634 gcc_cv_as_cfi_advance_working=no
22635 if test x$gcc_cv_as != x; then
22636 $as_echo ' .text
22637 .cfi_startproc
22638 .cfi_adjust_cfa_offset 64
22639 .skip 75040, 0
22640 .cfi_adjust_cfa_offset 128
22641 .cfi_endproc' > conftest.s
22642 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22644 (eval $ac_try) 2>&5
22645 ac_status=$?
22646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22647 test $ac_status = 0; }; }
22648 then
22649
22650 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22651 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22652 gcc_cv_as_cfi_advance_working=yes
22653 fi
22654
22655 else
22656 echo "configure: failed program was" >&5
22657 cat conftest.s >&5
22658 fi
22659 rm -f conftest.o conftest.s
22660 fi
22661 fi
22662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22663 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22664
22665 else
22666 # no objdump, err on the side of caution
22667 gcc_cv_as_cfi_advance_working=no
22668 fi
22669
22670
22671 cat >>confdefs.h <<_ACEOF
22672 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22673 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22674 _ACEOF
22675
22676
22677
22678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22679 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22680 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22681 $as_echo_n "(cached) " >&6
22682 else
22683 gcc_cv_as_cfi_personality_directive=no
22684 if test x$gcc_cv_as != x; then
22685 $as_echo ' .text
22686 .cfi_startproc
22687 .cfi_personality 0, symbol
22688 .cfi_endproc' > conftest.s
22689 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22691 (eval $ac_try) 2>&5
22692 ac_status=$?
22693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22694 test $ac_status = 0; }; }
22695 then
22696 gcc_cv_as_cfi_personality_directive=yes
22697 else
22698 echo "configure: failed program was" >&5
22699 cat conftest.s >&5
22700 fi
22701 rm -f conftest.o conftest.s
22702 fi
22703 fi
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22705 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22706
22707
22708 cat >>confdefs.h <<_ACEOF
22709 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22710 then echo 1; else echo 0; fi`
22711 _ACEOF
22712
22713
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22715 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22716 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22717 $as_echo_n "(cached) " >&6
22718 else
22719 gcc_cv_as_cfi_sections_directive=no
22720 if test x$gcc_cv_as != x; then
22721 $as_echo ' .text
22722 .cfi_sections .debug_frame, .eh_frame
22723 .cfi_startproc
22724 .cfi_endproc' > conftest.s
22725 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22727 (eval $ac_try) 2>&5
22728 ac_status=$?
22729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22730 test $ac_status = 0; }; }
22731 then
22732 case $target_os in
22733 win32 | pe | cygwin* | mingw32* | uwin*)
22734 # Need to check that we generated the correct relocation for the
22735 # .debug_frame section. This was fixed for binutils 2.21.
22736 gcc_cv_as_cfi_sections_directive=no
22737 if test "x$gcc_cv_objdump" != x; then
22738 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22739 grep secrel > /dev/null; then
22740 gcc_cv_as_cfi_sections_directive=yes
22741 fi
22742 fi
22743 ;;
22744 *)
22745 gcc_cv_as_cfi_sections_directive=yes
22746 ;;
22747 esac
22748 else
22749 echo "configure: failed program was" >&5
22750 cat conftest.s >&5
22751 fi
22752 rm -f conftest.o conftest.s
22753 fi
22754 fi
22755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22756 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22757
22758
22759
22760 cat >>confdefs.h <<_ACEOF
22761 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22762 then echo 1; else echo 0; fi`
22763 _ACEOF
22764
22765
22766 # GAS versions up to and including 2.11.0 may mis-optimize
22767 # .eh_frame data.
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22769 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22770 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22771 $as_echo_n "(cached) " >&6
22772 else
22773 gcc_cv_as_eh_frame=no
22774 if test $in_tree_gas = yes; then
22775 if test $in_tree_gas_is_elf = yes \
22776 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22777 then gcc_cv_as_eh_frame=yes
22778 fi
22779 elif test x$gcc_cv_as != x; then
22780 $as_echo ' .text
22781 .LFB1:
22782 .4byte 0
22783 .L1:
22784 .4byte 0
22785 .LFE1:
22786 .section .eh_frame,"aw",@progbits
22787 __FRAME_BEGIN__:
22788 .4byte .LECIE1-.LSCIE1
22789 .LSCIE1:
22790 .4byte 0x0
22791 .byte 0x1
22792 .ascii "z\0"
22793 .byte 0x1
22794 .byte 0x78
22795 .byte 0x1a
22796 .byte 0x0
22797 .byte 0x4
22798 .4byte 1
22799 .p2align 1
22800 .LECIE1:
22801 .LSFDE1:
22802 .4byte .LEFDE1-.LASFDE1
22803 .LASFDE1:
22804 .4byte .LASFDE1-__FRAME_BEGIN__
22805 .4byte .LFB1
22806 .4byte .LFE1-.LFB1
22807 .byte 0x4
22808 .4byte .LFE1-.LFB1
22809 .byte 0x4
22810 .4byte .L1-.LFB1
22811 .LEFDE1:' > conftest.s
22812 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22814 (eval $ac_try) 2>&5
22815 ac_status=$?
22816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22817 test $ac_status = 0; }; }
22818 then
22819 cat > conftest.lit <<EOF
22820 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22821 0010 01000000 12000000 18000000 00000000 ................
22822 0020 08000000 04080000 0044 .........D
22823 EOF
22824 cat > conftest.big <<EOF
22825 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22826 0010 00000001 00000012 00000018 00000000 ................
22827 0020 00000008 04000000 0844 .........D
22828 EOF
22829 # If the assembler didn't choke, and we can objdump,
22830 # and we got the correct data, then succeed.
22831 # The text in the here-document typically retains its unix-style line
22832 # endings, while the output of objdump will use host line endings.
22833 # Therefore, use diff -b for the comparisons.
22834 if test x$gcc_cv_objdump != x \
22835 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22836 | tail -3 > conftest.got \
22837 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22838 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22839 then
22840 gcc_cv_as_eh_frame=yes
22841 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22843 (eval $ac_try) 2>&5
22844 ac_status=$?
22845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22846 test $ac_status = 0; }; }; then
22847 gcc_cv_as_eh_frame=buggy
22848 else
22849 # Uh oh, what do we do now?
22850 gcc_cv_as_eh_frame=no
22851 fi
22852 else
22853 echo "configure: failed program was" >&5
22854 cat conftest.s >&5
22855 fi
22856 rm -f conftest.o conftest.s
22857 fi
22858 fi
22859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22860 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22861
22862
22863 if test $gcc_cv_as_eh_frame = buggy; then
22864
22865 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22866
22867 fi
22868
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22870 $as_echo_n "checking assembler for section merging support... " >&6; }
22871 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22872 $as_echo_n "(cached) " >&6
22873 else
22874 gcc_cv_as_shf_merge=no
22875 if test $in_tree_gas = yes; then
22876 if test $in_tree_gas_is_elf = yes \
22877 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22878 then gcc_cv_as_shf_merge=yes
22879 fi
22880 elif test x$gcc_cv_as != x; then
22881 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22882 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22884 (eval $ac_try) 2>&5
22885 ac_status=$?
22886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22887 test $ac_status = 0; }; }
22888 then
22889 gcc_cv_as_shf_merge=yes
22890 else
22891 echo "configure: failed program was" >&5
22892 cat conftest.s >&5
22893 fi
22894 rm -f conftest.o conftest.s
22895 fi
22896 fi
22897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22898 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22899
22900 if test $gcc_cv_as_shf_merge = no; then
22901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22902 $as_echo_n "checking assembler for section merging support... " >&6; }
22903 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22904 $as_echo_n "(cached) " >&6
22905 else
22906 gcc_cv_as_shf_merge=no
22907 if test $in_tree_gas = yes; then
22908 if test $in_tree_gas_is_elf = yes \
22909 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22910 then gcc_cv_as_shf_merge=yes
22911 fi
22912 elif test x$gcc_cv_as != x; then
22913 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22914 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22916 (eval $ac_try) 2>&5
22917 ac_status=$?
22918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22919 test $ac_status = 0; }; }
22920 then
22921 gcc_cv_as_shf_merge=yes
22922 else
22923 echo "configure: failed program was" >&5
22924 cat conftest.s >&5
22925 fi
22926 rm -f conftest.o conftest.s
22927 fi
22928 fi
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22930 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22931
22932 fi
22933
22934 cat >>confdefs.h <<_ACEOF
22935 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22936 _ACEOF
22937
22938
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22940 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22941 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22942 $as_echo_n "(cached) " >&6
22943 else
22944 gcc_cv_as_comdat_group=no
22945 if test $in_tree_gas = yes; then
22946 if test $in_tree_gas_is_elf = yes \
22947 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22948 then gcc_cv_as_comdat_group=yes
22949 fi
22950 elif test x$gcc_cv_as != x; then
22951 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22952 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22954 (eval $ac_try) 2>&5
22955 ac_status=$?
22956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22957 test $ac_status = 0; }; }
22958 then
22959 gcc_cv_as_comdat_group=yes
22960 else
22961 echo "configure: failed program was" >&5
22962 cat conftest.s >&5
22963 fi
22964 rm -f conftest.o conftest.s
22965 fi
22966 fi
22967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22968 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22969
22970 if test $gcc_cv_as_comdat_group = yes; then
22971 gcc_cv_as_comdat_group_percent=no
22972 gcc_cv_as_comdat_group_group=no
22973 else
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22975 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22976 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22977 $as_echo_n "(cached) " >&6
22978 else
22979 gcc_cv_as_comdat_group_percent=no
22980 if test $in_tree_gas = yes; then
22981 if test $in_tree_gas_is_elf = yes \
22982 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22983 then gcc_cv_as_comdat_group_percent=yes
22984 fi
22985 elif test x$gcc_cv_as != x; then
22986 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22987 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22989 (eval $ac_try) 2>&5
22990 ac_status=$?
22991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22992 test $ac_status = 0; }; }
22993 then
22994 gcc_cv_as_comdat_group_percent=yes
22995 else
22996 echo "configure: failed program was" >&5
22997 cat conftest.s >&5
22998 fi
22999 rm -f conftest.o conftest.s
23000 fi
23001 fi
23002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23003 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23004
23005 if test $gcc_cv_as_comdat_group_percent = yes; then
23006 gcc_cv_as_comdat_group_group=no
23007 else
23008 case "${target}" in
23009 # Sun as uses a completely different syntax.
23010 *-*-solaris2*)
23011 case "${target}" in
23012 sparc*-*-solaris2*)
23013 conftest_s='
23014 .group foo,".text%foo",#comdat
23015 .section ".text%foo", #alloc,#execinstr,#progbits
23016 .globl foo
23017 foo:
23018 '
23019 ;;
23020 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23021 conftest_s='
23022 .group foo,.text%foo,#comdat
23023 .section .text%foo, "ax", @progbits
23024 .globl foo
23025 foo:
23026 '
23027 ;;
23028 esac
23029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23030 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23031 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23032 $as_echo_n "(cached) " >&6
23033 else
23034 gcc_cv_as_comdat_group_group=no
23035 if test x$gcc_cv_as != x; then
23036 $as_echo "$conftest_s" > conftest.s
23037 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23039 (eval $ac_try) 2>&5
23040 ac_status=$?
23041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23042 test $ac_status = 0; }; }
23043 then
23044 gcc_cv_as_comdat_group_group=yes
23045 else
23046 echo "configure: failed program was" >&5
23047 cat conftest.s >&5
23048 fi
23049 rm -f conftest.o conftest.s
23050 fi
23051 fi
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23053 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23054
23055 ;;
23056 esac
23057 fi
23058 fi
23059 if test x"$ld_is_gold" = xyes; then
23060 comdat_group=yes
23061 elif test $in_tree_ld = yes ; then
23062 comdat_group=no
23063 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 \
23064 && test $in_tree_ld_is_elf = yes; then
23065 comdat_group=yes
23066 fi
23067 elif echo "$ld_ver" | grep GNU > /dev/null; then
23068 comdat_group=yes
23069 if test 0"$ld_date" -lt 20050308; then
23070 if test -n "$ld_date"; then
23071 # If there was date string, but was earlier than 2005-03-08, fail
23072 comdat_group=no
23073 elif test "$ld_vers_major" -lt 2; then
23074 comdat_group=no
23075 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23076 comdat_group=no
23077 fi
23078 fi
23079 else
23080 case "${target}" in
23081 *-*-solaris2.1[1-9]*)
23082 comdat_group=no
23083 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23084 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23085 # version 1.688.
23086 #
23087 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23088 # least ld version 1.2267.
23089 if test "$ld_vers_major" -gt 1; then
23090 comdat_group=yes
23091 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23092 comdat_group=yes
23093 elif test "$ld_vers_minor" -ge 2267; then
23094 comdat_group=yes
23095 fi
23096 ;;
23097 *)
23098 # Assume linkers other than GNU ld don't support COMDAT group.
23099 comdat_group=no
23100 ;;
23101 esac
23102 fi
23103 # Allow overriding the automatic COMDAT group tests above.
23104 # Check whether --enable-comdat was given.
23105 if test "${enable_comdat+set}" = set; then :
23106 enableval=$enable_comdat; comdat_group="$enable_comdat"
23107 fi
23108
23109 if test $comdat_group = no; then
23110 gcc_cv_as_comdat_group=no
23111 gcc_cv_as_comdat_group_percent=no
23112 gcc_cv_as_comdat_group_group=no
23113 fi
23114
23115 cat >>confdefs.h <<_ACEOF
23116 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23117 || test $gcc_cv_as_comdat_group_percent = yes \
23118 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23119 _ACEOF
23120
23121
23122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23123 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23124 if test "${gcc_cv_as_discriminator+set}" = set; then :
23125 $as_echo_n "(cached) " >&6
23126 else
23127 gcc_cv_as_discriminator=no
23128 if test $in_tree_gas = yes; then
23129 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23130 then gcc_cv_as_discriminator=yes
23131 fi
23132 elif test x$gcc_cv_as != x; then
23133 $as_echo ' .text
23134 .file 1 "conf.c"
23135 .loc 1 1 0 discriminator 1' > conftest.s
23136 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23138 (eval $ac_try) 2>&5
23139 ac_status=$?
23140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23141 test $ac_status = 0; }; }
23142 then
23143 gcc_cv_as_discriminator=yes
23144 else
23145 echo "configure: failed program was" >&5
23146 cat conftest.s >&5
23147 fi
23148 rm -f conftest.o conftest.s
23149 fi
23150 fi
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23152 $as_echo "$gcc_cv_as_discriminator" >&6; }
23153 if test $gcc_cv_as_discriminator = yes; then
23154
23155 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23156
23157 fi
23158
23159 # Thread-local storage - the check is heavily parameterized.
23160 conftest_s=
23161 tls_first_major=
23162 tls_first_minor=
23163 tls_as_opt=
23164 case "$target" in
23165 alpha*-*-*)
23166 conftest_s='
23167 .section ".tdata","awT",@progbits
23168 foo: .long 25
23169 .text
23170 ldq $27,__tls_get_addr($29) !literal!1
23171 lda $16,foo($29) !tlsgd!1
23172 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23173 ldq $27,__tls_get_addr($29) !literal!2
23174 lda $16,foo($29) !tlsldm!2
23175 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23176 ldq $1,foo($29) !gotdtprel
23177 ldah $2,foo($29) !dtprelhi
23178 lda $3,foo($2) !dtprello
23179 lda $4,foo($29) !dtprel
23180 ldq $1,foo($29) !gottprel
23181 ldah $2,foo($29) !tprelhi
23182 lda $3,foo($2) !tprello
23183 lda $4,foo($29) !tprel'
23184 tls_first_major=2
23185 tls_first_minor=13
23186 tls_as_opt=--fatal-warnings
23187 ;;
23188 cris-*-*|crisv32-*-*)
23189 conftest_s='
23190 .section ".tdata","awT",@progbits
23191 x: .long 25
23192 .text
23193 move.d x:IE,$r10
23194 nop'
23195 tls_first_major=2
23196 tls_first_minor=20
23197 tls_as_opt=--fatal-warnings
23198 ;;
23199 frv*-*-*)
23200 conftest_s='
23201 .section ".tdata","awT",@progbits
23202 x: .long 25
23203 .text
23204 call #gettlsoff(x)'
23205 tls_first_major=2
23206 tls_first_minor=14
23207 ;;
23208 hppa*-*-linux*)
23209 conftest_s='
23210 t1: .reg %r20
23211 t2: .reg %r21
23212 gp: .reg %r19
23213 .section ".tdata","awT",@progbits
23214 foo: .long 25
23215 .text
23216 .align 4
23217 addil LT%foo-$tls_gdidx$,gp
23218 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23219 b __tls_get_addr
23220 nop
23221 addil LT%foo-$tls_ldidx$,gp
23222 b __tls_get_addr
23223 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23224 addil LR%foo-$tls_dtpoff$,%ret0
23225 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23226 mfctl %cr27,%t1
23227 addil LT%foo-$tls_ieoff$,gp
23228 ldw RT%foo-$tls_ieoff$(%r1),%t2
23229 add %t1,%t2,%t3
23230 mfctl %cr27,%t1
23231 addil LR%foo-$tls_leoff$,%t1
23232 ldo RR%foo-$tls_leoff$(%r1),%t2'
23233 tls_first_major=2
23234 tls_first_minor=15
23235 tls_as_opt=--fatal-warnings
23236 ;;
23237 arm*-*-*)
23238 conftest_s='
23239 .section ".tdata","awT",%progbits
23240 foo: .long 25
23241 .text
23242 .word foo(gottpoff)
23243 .word foo(tpoff)
23244 .word foo(tlsgd)
23245 .word foo(tlsldm)
23246 .word foo(tlsldo)'
23247 tls_first_major=2
23248 tls_first_minor=17
23249 ;;
23250 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23251 case "$target" in
23252 i[34567]86-*-solaris2.*)
23253 on_solaris=yes
23254 tga_func=___tls_get_addr
23255 ;;
23256 x86_64-*-solaris2.1[0-9]*)
23257 on_solaris=yes
23258 tga_func=__tls_get_addr
23259 ;;
23260 *)
23261 on_solaris=no
23262 ;;
23263 esac
23264 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23265 conftest_s='
23266 .section .tdata,"awt",@progbits'
23267 tls_first_major=0
23268 tls_first_minor=0
23269
23270 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23271
23272 else
23273 conftest_s='
23274 .section ".tdata","awT",@progbits'
23275 tls_first_major=2
23276 tls_first_minor=14
23277 tls_as_opt="--fatal-warnings"
23278 fi
23279 conftest_s="$conftest_s
23280 foo: .long 25
23281 .text
23282 movl %gs:0, %eax
23283 leal foo@tlsgd(,%ebx,1), %eax
23284 leal foo@tlsldm(%ebx), %eax
23285 leal foo@dtpoff(%eax), %edx
23286 movl foo@gottpoff(%ebx), %eax
23287 subl foo@gottpoff(%ebx), %eax
23288 addl foo@gotntpoff(%ebx), %eax
23289 movl foo@indntpoff, %eax
23290 movl \$foo@tpoff, %eax
23291 subl \$foo@tpoff, %eax
23292 leal foo@ntpoff(%ecx), %eax"
23293 ;;
23294 x86_64-*-*)
23295 conftest_s='
23296 .section ".tdata","awT",@progbits
23297 foo: .long 25
23298 .text
23299 movq %fs:0, %rax
23300 leaq foo@TLSGD(%rip), %rdi
23301 leaq foo@TLSLD(%rip), %rdi
23302 leaq foo@DTPOFF(%rax), %rdx
23303 movq foo@GOTTPOFF(%rip), %rax
23304 movq $foo@TPOFF, %rax'
23305 tls_first_major=2
23306 tls_first_minor=14
23307 tls_as_opt=--fatal-warnings
23308 ;;
23309 ia64-*-*)
23310 conftest_s='
23311 .section ".tdata","awT",@progbits
23312 foo: data8 25
23313 .text
23314 addl r16 = @ltoff(@dtpmod(foo#)), gp
23315 addl r17 = @ltoff(@dtprel(foo#)), gp
23316 addl r18 = @ltoff(@tprel(foo#)), gp
23317 addl r19 = @dtprel(foo#), gp
23318 adds r21 = @dtprel(foo#), r13
23319 movl r23 = @dtprel(foo#)
23320 addl r20 = @tprel(foo#), gp
23321 adds r22 = @tprel(foo#), r13
23322 movl r24 = @tprel(foo#)'
23323 tls_first_major=2
23324 tls_first_minor=13
23325 tls_as_opt=--fatal-warnings
23326 ;;
23327 mips*-*-*)
23328 conftest_s='
23329 .section .tdata,"awT",@progbits
23330 x:
23331 .word 2
23332 .text
23333 addiu $4, $28, %tlsgd(x)
23334 addiu $4, $28, %tlsldm(x)
23335 lui $4, %dtprel_hi(x)
23336 addiu $4, $4, %dtprel_lo(x)
23337 lw $4, %gottprel(x)($28)
23338 lui $4, %tprel_hi(x)
23339 addiu $4, $4, %tprel_lo(x)'
23340 tls_first_major=2
23341 tls_first_minor=16
23342 tls_as_opt='-32 --fatal-warnings'
23343 ;;
23344 m68k-*-*)
23345 conftest_s='
23346 .section .tdata,"awT",@progbits
23347 x:
23348 .word 2
23349 .text
23350 foo:
23351 move.l x@TLSGD(%a5),%a0
23352 move.l x@TLSLDM(%a5),%a0
23353 move.l x@TLSLDO(%a5),%a0
23354 move.l x@TLSIE(%a5),%a0
23355 move.l x@TLSLE(%a5),%a0'
23356 tls_first_major=2
23357 tls_first_minor=19
23358 tls_as_opt='--fatal-warnings'
23359 ;;
23360 powerpc-*-*)
23361 conftest_s='
23362 .section ".tdata","awT",@progbits
23363 .align 2
23364 ld0: .space 4
23365 ld1: .space 4
23366 x1: .space 4
23367 x2: .space 4
23368 x3: .space 4
23369 .text
23370 addi 3,31,ld0@got@tlsgd
23371 bl __tls_get_addr
23372 addi 3,31,x1@got@tlsld
23373 bl __tls_get_addr
23374 addi 9,3,x1@dtprel
23375 addis 9,3,x2@dtprel@ha
23376 addi 9,9,x2@dtprel@l
23377 lwz 9,x3@got@tprel(31)
23378 add 9,9,x@tls
23379 addi 9,2,x1@tprel
23380 addis 9,2,x2@tprel@ha
23381 addi 9,9,x2@tprel@l'
23382 tls_first_major=2
23383 tls_first_minor=14
23384 tls_as_opt="-a32 --fatal-warnings"
23385 ;;
23386 powerpc64-*-*)
23387 conftest_s='
23388 .section ".tdata","awT",@progbits
23389 .align 3
23390 ld0: .space 8
23391 ld1: .space 8
23392 x1: .space 8
23393 x2: .space 8
23394 x3: .space 8
23395 .text
23396 addi 3,2,ld0@got@tlsgd
23397 bl .__tls_get_addr
23398 nop
23399 addi 3,2,ld1@toc
23400 bl .__tls_get_addr
23401 nop
23402 addi 3,2,x1@got@tlsld
23403 bl .__tls_get_addr
23404 nop
23405 addi 9,3,x1@dtprel
23406 bl .__tls_get_addr
23407 nop
23408 addis 9,3,x2@dtprel@ha
23409 addi 9,9,x2@dtprel@l
23410 bl .__tls_get_addr
23411 nop
23412 ld 9,x3@got@dtprel(2)
23413 add 9,9,3
23414 bl .__tls_get_addr
23415 nop'
23416 tls_first_major=2
23417 tls_first_minor=14
23418 tls_as_opt="-a64 --fatal-warnings"
23419 ;;
23420 s390-*-*)
23421 conftest_s='
23422 .section ".tdata","awT",@progbits
23423 foo: .long 25
23424 .text
23425 .long foo@TLSGD
23426 .long foo@TLSLDM
23427 .long foo@DTPOFF
23428 .long foo@NTPOFF
23429 .long foo@GOTNTPOFF
23430 .long foo@INDNTPOFF
23431 l %r1,foo@GOTNTPOFF(%r12)
23432 l %r1,0(%r1):tls_load:foo
23433 bas %r14,0(%r1,%r13):tls_gdcall:foo
23434 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23435 tls_first_major=2
23436 tls_first_minor=14
23437 tls_as_opt="-m31 --fatal-warnings"
23438 ;;
23439 s390x-*-*)
23440 conftest_s='
23441 .section ".tdata","awT",@progbits
23442 foo: .long 25
23443 .text
23444 .quad foo@TLSGD
23445 .quad foo@TLSLDM
23446 .quad foo@DTPOFF
23447 .quad foo@NTPOFF
23448 .quad foo@GOTNTPOFF
23449 lg %r1,foo@GOTNTPOFF(%r12)
23450 larl %r1,foo@INDNTPOFF
23451 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23452 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23453 tls_first_major=2
23454 tls_first_minor=14
23455 tls_as_opt="-m64 -Aesame --fatal-warnings"
23456 ;;
23457 sh-*-* | sh[34]-*-*)
23458 conftest_s='
23459 .section ".tdata","awT",@progbits
23460 foo: .long 25
23461 .text
23462 .long foo@TLSGD
23463 .long foo@TLSLDM
23464 .long foo@DTPOFF
23465 .long foo@GOTTPOFF
23466 .long foo@TPOFF'
23467 tls_first_major=2
23468 tls_first_minor=13
23469 tls_as_opt=--fatal-warnings
23470 ;;
23471 sparc*-*-*)
23472 case "$target" in
23473 sparc*-sun-solaris2.*)
23474 on_solaris=yes
23475 tga_func=__tls_get_addr
23476 ;;
23477 *)
23478 on_solaris=no
23479 ;;
23480 esac
23481 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23482 conftest_s='
23483 .section ".tdata",#alloc,#write,#tls'
23484 tls_first_major=0
23485 tls_first_minor=0
23486 else
23487 conftest_s='
23488 .section ".tdata","awT",@progbits'
23489 tls_first_major=2
23490 tls_first_minor=14
23491 tls_as_opt="-32 --fatal-warnings"
23492 fi
23493 conftest_s="$conftest_s
23494 foo: .long 25
23495 .text
23496 sethi %tgd_hi22(foo), %o0
23497 add %o0, %tgd_lo10(foo), %o1
23498 add %l7, %o1, %o0, %tgd_add(foo)
23499 call __tls_get_addr, %tgd_call(foo)
23500 sethi %tldm_hi22(foo), %l1
23501 add %l1, %tldm_lo10(foo), %l2
23502 add %l7, %l2, %o0, %tldm_add(foo)
23503 call __tls_get_addr, %tldm_call(foo)
23504 sethi %tldo_hix22(foo), %l3
23505 xor %l3, %tldo_lox10(foo), %l4
23506 add %o0, %l4, %l5, %tldo_add(foo)
23507 sethi %tie_hi22(foo), %o3
23508 add %o3, %tie_lo10(foo), %o3
23509 ld [%l7 + %o3], %o2, %tie_ld(foo)
23510 add %g7, %o2, %o4, %tie_add(foo)
23511 sethi %tle_hix22(foo), %l1
23512 xor %l1, %tle_lox10(foo), %o5
23513 ld [%g7 + %o5], %o1"
23514 ;;
23515 tilepro*-*-*)
23516 conftest_s='
23517 .section ".tdata","awT",@progbits
23518 foo: .long 25
23519 .text
23520 addli r0, zero, tls_gd(foo)
23521 auli r0, zero, tls_gd_ha16(foo)
23522 addli r0, r0, tls_gd_lo16(foo)
23523 jal __tls_get_addr
23524 addli r0, zero, tls_ie(foo)
23525 auli r0, r0, tls_ie_ha16(foo)
23526 addli r0, r0, tls_ie_lo16(foo)'
23527 tls_first_major=2
23528 tls_first_minor=22
23529 tls_as_opt="--fatal-warnings"
23530 ;;
23531 tilegx*-*-*)
23532 conftest_s='
23533 .section ".tdata","awT",@progbits
23534 foo: .long 25
23535 .text
23536 shl16insli r0, zero, hw0_last_tls_gd(foo)
23537 shl16insli r0, zero, hw1_last_tls_gd(foo)
23538 shl16insli r0, r0, hw0_tls_gd(foo)
23539 jal __tls_get_addr
23540 shl16insli r0, zero, hw1_last_tls_ie(foo)
23541 shl16insli r0, r0, hw0_tls_ie(foo)'
23542 tls_first_major=2
23543 tls_first_minor=22
23544 tls_as_opt="--fatal-warnings"
23545 ;;
23546 xtensa*-*-*)
23547 conftest_s='
23548 .section ".tdata","awT",@progbits
23549 foo: .long 25
23550 .text
23551 movi a8, foo@TLSFUNC
23552 movi a10, foo@TLSARG
23553 callx8.tls a8, foo@TLSCALL'
23554 tls_first_major=2
23555 tls_first_minor=19
23556 ;;
23557 esac
23558 set_have_as_tls=no
23559 if test "x$enable_tls" = xno ; then
23560 : # TLS explicitly disabled.
23561 elif test "x$enable_tls" = xyes ; then
23562 set_have_as_tls=yes # TLS explicitly enabled.
23563 elif test -z "$tls_first_major"; then
23564 : # If we don't have a check, assume no support.
23565 else
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23567 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23568 if test "${gcc_cv_as_tls+set}" = set; then :
23569 $as_echo_n "(cached) " >&6
23570 else
23571 gcc_cv_as_tls=no
23572 if test $in_tree_gas = yes; then
23573 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23574 then gcc_cv_as_tls=yes
23575 fi
23576 elif test x$gcc_cv_as != x; then
23577 $as_echo "$conftest_s" > conftest.s
23578 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23580 (eval $ac_try) 2>&5
23581 ac_status=$?
23582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23583 test $ac_status = 0; }; }
23584 then
23585 gcc_cv_as_tls=yes
23586 else
23587 echo "configure: failed program was" >&5
23588 cat conftest.s >&5
23589 fi
23590 rm -f conftest.o conftest.s
23591 fi
23592 fi
23593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23594 $as_echo "$gcc_cv_as_tls" >&6; }
23595 if test $gcc_cv_as_tls = yes; then
23596 set_have_as_tls=yes
23597 fi
23598 fi
23599 case "$target" in
23600 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23601 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23602 # Sun style that Sun ld and GCC don't support any longer.
23603 *-*-solaris2.*)
23604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23605 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23606 ld_tls_support=no
23607 # Check ld and ld.so.1 TLS support.
23608 if echo "$ld_ver" | grep GNU > /dev/null; then
23609 # Assume all interesting versions of GNU ld have TLS support.
23610 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23611 ld_tls_support=yes
23612 else
23613 case "$target" in
23614 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23615 i?86-*-solaris2.9)
23616 min_tls_ld_vers_minor=374
23617 ;;
23618 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23619 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23620 min_tls_ld_vers_minor=343
23621 ;;
23622 esac
23623 if test "$ld_vers_major" -gt 1 || \
23624 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23625 ld_tls_support=yes
23626 else
23627 set_have_as_tls=no
23628 fi
23629 fi
23630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23631 $as_echo "$ld_tls_support" >&6; }
23632
23633 save_LIBS="$LIBS"
23634 save_LDFLAGS="$LDFLAGS"
23635 LIBS=
23636 LDFLAGS=
23637
23638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23639 $as_echo_n "checking library containing $tga_func... " >&6; }
23640 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23641 # (32-bit x86) only lived in libthread, so check for that. Keep
23642 # set_have_as_tls if found, disable if not.
23643 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23645 $as_echo_n "checking for library containing $tga_func... " >&6; }
23646 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23647 $as_echo_n "(cached) " >&6
23648 else
23649 ac_func_search_save_LIBS=$LIBS
23650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23651 /* end confdefs.h. */
23652
23653 /* Override any GCC internal prototype to avoid an error.
23654 Use char because int might match the return type of a GCC
23655 builtin and then its argument prototype would still apply. */
23656 #ifdef __cplusplus
23657 extern "C"
23658 #endif
23659 char $tga_func ();
23660 int
23661 main ()
23662 {
23663 return $tga_func ();
23664 ;
23665 return 0;
23666 }
23667 _ACEOF
23668 for ac_lib in '' thread; do
23669 if test -z "$ac_lib"; then
23670 ac_res="none required"
23671 else
23672 ac_res=-l$ac_lib
23673 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23674 fi
23675 if ac_fn_c_try_link "$LINENO"; then :
23676 eval "$as_ac_Search=\$ac_res"
23677 fi
23678 rm -f core conftest.err conftest.$ac_objext \
23679 conftest$ac_exeext
23680 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23681 break
23682 fi
23683 done
23684 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23685
23686 else
23687 eval "$as_ac_Search=no"
23688 fi
23689 rm conftest.$ac_ext
23690 LIBS=$ac_func_search_save_LIBS
23691 fi
23692 eval ac_res=\$$as_ac_Search
23693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23694 $as_echo "$ac_res" >&6; }
23695 eval ac_res=\$$as_ac_Search
23696 if test "$ac_res" != no; then :
23697 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23698
23699 else
23700 set_have_as_tls=no
23701 fi
23702
23703 # Clear LIBS if we cannot support TLS.
23704 if test $set_have_as_tls = no; then
23705 LIBS=
23706 fi
23707 # Always define LIB_TLS_SPEC, even without TLS support.
23708
23709 cat >>confdefs.h <<_ACEOF
23710 #define LIB_TLS_SPEC "$LIBS"
23711 _ACEOF
23712
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23714 $as_echo "$LIBS" >&6; }
23715
23716 LIBS="$save_LIBS"
23717 LDFLAGS="$save_LDFLAGS"
23718 ;;
23719 esac
23720 if test $set_have_as_tls = yes ; then
23721
23722 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23723
23724 fi
23725
23726 # Target-specific assembler checks.
23727
23728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23729 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23730 gcc_cv_ld_static_dynamic=no
23731 gcc_cv_ld_static_option='-Bstatic'
23732 gcc_cv_ld_dynamic_option='-Bdynamic'
23733 if test $in_tree_ld = yes ; then
23734 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
23735 gcc_cv_ld_static_dynamic=yes
23736 fi
23737 elif test x$gcc_cv_ld != x; then
23738 # Check if linker supports -Bstatic/-Bdynamic option
23739 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23740 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23741 gcc_cv_ld_static_dynamic=yes
23742 else
23743 case "$target" in
23744 # HP-UX ld uses -a flags to select between shared and archive.
23745 *-*-hpux*)
23746 if test x"$gnu_ld" = xno; then
23747 gcc_cv_ld_static_dynamic=yes
23748 gcc_cv_ld_static_option="-aarchive_shared"
23749 gcc_cv_ld_dynamic_option="-adefault"
23750 fi
23751 ;;
23752 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23753 *-*-solaris2*)
23754 gcc_cv_ld_static_dynamic=yes
23755 ;;
23756 esac
23757 fi
23758 fi
23759 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23760
23761 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23762
23763
23764 cat >>confdefs.h <<_ACEOF
23765 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23766 _ACEOF
23767
23768
23769 cat >>confdefs.h <<_ACEOF
23770 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23771 _ACEOF
23772
23773 fi
23774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23775 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23776
23777 if test x"$demangler_in_ld" = xyes; then
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23779 $as_echo_n "checking linker --demangle support... " >&6; }
23780 gcc_cv_ld_demangle=no
23781 if test $in_tree_ld = yes; then
23782 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 \
23783 gcc_cv_ld_demangle=yes
23784 fi
23785 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23786 # Check if the GNU linker supports --demangle option
23787 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23788 gcc_cv_ld_demangle=yes
23789 fi
23790 fi
23791 if test x"$gcc_cv_ld_demangle" = xyes; then
23792
23793 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23794
23795 fi
23796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23797 $as_echo "$gcc_cv_ld_demangle" >&6; }
23798 fi
23799
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23801 $as_echo_n "checking linker plugin support... " >&6; }
23802 gcc_cv_lto_plugin=0
23803 if test -f liblto_plugin.la; then
23804 save_ld_ver="$ld_ver"
23805 save_ld_vers_major="$ld_vers_major"
23806 save_ld_vers_minor="$ld_vers_minor"
23807 save_ld_is_gold="$ld_is_gold"
23808
23809 ld_is_gold=no
23810
23811 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23812 ld_ver="GNU ld"
23813 # FIXME: ld_is_gold?
23814 ld_vers_major="$gcc_cv_gld_major_version"
23815 ld_vers_minor="$gcc_cv_gld_minor_version"
23816 else
23817 # Determine plugin linker version.
23818 # FIXME: Partial duplicate from above, generalize.
23819 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23820 if echo "$ld_ver" | grep GNU > /dev/null; then
23821 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23822 ld_is_gold=yes
23823 ld_vers=`echo $ld_ver | sed -n \
23824 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23825 else
23826 ld_vers=`echo $ld_ver | sed -n \
23827 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23828 fi
23829 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23830 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23831 fi
23832 fi
23833
23834 # Determine plugin support.
23835 if echo "$ld_ver" | grep GNU > /dev/null; then
23836 # Require GNU ld or gold 2.21+ for plugin support by default.
23837 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23838 gcc_cv_lto_plugin=2
23839 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23840 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23841 gcc_cv_lto_plugin=1
23842 fi
23843 fi
23844
23845 ld_ver="$save_ld_ver"
23846 ld_vers_major="$save_ld_vers_major"
23847 ld_vers_minor="$save_ld_vers_minor"
23848 ld_is_gold="$save_ld_is_gold"
23849 fi
23850
23851 cat >>confdefs.h <<_ACEOF
23852 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23853 _ACEOF
23854
23855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23856 $as_echo "$gcc_cv_lto_plugin" >&6; }
23857
23858 case "$target" in
23859 # All TARGET_ABI_OSF targets.
23860 alpha*-*-linux* | alpha*-*-*bsd*)
23861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23862 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23863 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23864 $as_echo_n "(cached) " >&6
23865 else
23866 gcc_cv_as_alpha_explicit_relocs=no
23867 if test $in_tree_gas = yes; then
23868 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23869 then gcc_cv_as_alpha_explicit_relocs=yes
23870 fi
23871 elif test x$gcc_cv_as != x; then
23872 $as_echo ' .set nomacro
23873 .text
23874 extbl $3, $2, $3 !lituse_bytoff!1
23875 ldq $2, a($29) !literal!1
23876 ldq $4, b($29) !literal!2
23877 ldq_u $3, 0($2) !lituse_base!1
23878 ldq $27, f($29) !literal!5
23879 jsr $26, ($27), f !lituse_jsr!5
23880 ldah $29, 0($26) !gpdisp!3
23881 lda $0, c($29) !gprel
23882 ldah $1, d($29) !gprelhigh
23883 lda $1, d($1) !gprellow
23884 lda $29, 0($29) !gpdisp!3' > conftest.s
23885 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23887 (eval $ac_try) 2>&5
23888 ac_status=$?
23889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23890 test $ac_status = 0; }; }
23891 then
23892 gcc_cv_as_alpha_explicit_relocs=yes
23893 else
23894 echo "configure: failed program was" >&5
23895 cat conftest.s >&5
23896 fi
23897 rm -f conftest.o conftest.s
23898 fi
23899 fi
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23901 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23902 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23903
23904 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23905
23906 fi
23907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23908 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23909 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23910 $as_echo_n "(cached) " >&6
23911 else
23912 gcc_cv_as_alpha_jsrdirect_relocs=no
23913 if test $in_tree_gas = yes; then
23914 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23915 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23916 fi
23917 elif test x$gcc_cv_as != x; then
23918 $as_echo ' .set nomacro
23919 .text
23920 ldq $27, a($29) !literal!1
23921 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23922 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23924 (eval $ac_try) 2>&5
23925 ac_status=$?
23926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23927 test $ac_status = 0; }; }
23928 then
23929 gcc_cv_as_alpha_jsrdirect_relocs=yes
23930 else
23931 echo "configure: failed program was" >&5
23932 cat conftest.s >&5
23933 fi
23934 rm -f conftest.o conftest.s
23935 fi
23936 fi
23937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23938 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23939 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23940
23941 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23942
23943 fi
23944 ;;
23945
23946 cris-*-*)
23947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23948 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23949 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23950 $as_echo_n "(cached) " >&6
23951 else
23952 gcc_cv_as_cris_no_mul_bug=no
23953 if test $in_tree_gas = yes; then
23954 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23955 then gcc_cv_as_cris_no_mul_bug=yes
23956 fi
23957 elif test x$gcc_cv_as != x; then
23958 $as_echo '.text' > conftest.s
23959 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23961 (eval $ac_try) 2>&5
23962 ac_status=$?
23963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23964 test $ac_status = 0; }; }
23965 then
23966 gcc_cv_as_cris_no_mul_bug=yes
23967 else
23968 echo "configure: failed program was" >&5
23969 cat conftest.s >&5
23970 fi
23971 rm -f conftest.o conftest.s
23972 fi
23973 fi
23974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23975 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23976 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23977
23978 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23979
23980 fi
23981 ;;
23982
23983 sparc*-*-*)
23984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23985 $as_echo_n "checking assembler for .register... " >&6; }
23986 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23987 $as_echo_n "(cached) " >&6
23988 else
23989 gcc_cv_as_sparc_register_op=no
23990 if test x$gcc_cv_as != x; then
23991 $as_echo '.register %g2, #scratch' > conftest.s
23992 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23994 (eval $ac_try) 2>&5
23995 ac_status=$?
23996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23997 test $ac_status = 0; }; }
23998 then
23999 gcc_cv_as_sparc_register_op=yes
24000 else
24001 echo "configure: failed program was" >&5
24002 cat conftest.s >&5
24003 fi
24004 rm -f conftest.o conftest.s
24005 fi
24006 fi
24007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24008 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24009 if test $gcc_cv_as_sparc_register_op = yes; then
24010
24011 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24012
24013 fi
24014
24015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24016 $as_echo_n "checking assembler for -relax option... " >&6; }
24017 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24018 $as_echo_n "(cached) " >&6
24019 else
24020 gcc_cv_as_sparc_relax=no
24021 if test x$gcc_cv_as != x; then
24022 $as_echo '.text' > conftest.s
24023 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24025 (eval $ac_try) 2>&5
24026 ac_status=$?
24027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24028 test $ac_status = 0; }; }
24029 then
24030 gcc_cv_as_sparc_relax=yes
24031 else
24032 echo "configure: failed program was" >&5
24033 cat conftest.s >&5
24034 fi
24035 rm -f conftest.o conftest.s
24036 fi
24037 fi
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24039 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24040 if test $gcc_cv_as_sparc_relax = yes; then
24041
24042 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24043
24044 fi
24045
24046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24047 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24048 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24049 $as_echo_n "(cached) " >&6
24050 else
24051 gcc_cv_as_sparc_gotdata_op=no
24052 if test x$gcc_cv_as != x; then
24053 $as_echo '.text
24054 .align 4
24055 foo:
24056 nop
24057 bar:
24058 sethi %gdop_hix22(foo), %g1
24059 xor %g1, %gdop_lox10(foo), %g1
24060 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24061 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24063 (eval $ac_try) 2>&5
24064 ac_status=$?
24065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24066 test $ac_status = 0; }; }
24067 then
24068 if test x$gcc_cv_ld != x \
24069 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24070 if test x$gcc_cv_objdump != x; then
24071 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24072 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24073 gcc_cv_as_sparc_gotdata_op=no
24074 else
24075 gcc_cv_as_sparc_gotdata_op=yes
24076 fi
24077 fi
24078 fi
24079 rm -f conftest
24080 else
24081 echo "configure: failed program was" >&5
24082 cat conftest.s >&5
24083 fi
24084 rm -f conftest.o conftest.s
24085 fi
24086 fi
24087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24088 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24089 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24090
24091 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24092
24093 fi
24094
24095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24096 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24097 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24098 $as_echo_n "(cached) " >&6
24099 else
24100 gcc_cv_as_sparc_ua_pcrel=no
24101 if test x$gcc_cv_as != x; then
24102 $as_echo '.text
24103 foo:
24104 nop
24105 .data
24106 .align 4
24107 .byte 0
24108 .uaword %r_disp32(foo)' > conftest.s
24109 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24111 (eval $ac_try) 2>&5
24112 ac_status=$?
24113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24114 test $ac_status = 0; }; }
24115 then
24116 if test x$gcc_cv_ld != x \
24117 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24118 gcc_cv_as_sparc_ua_pcrel=yes
24119 fi
24120 rm -f conftest
24121 else
24122 echo "configure: failed program was" >&5
24123 cat conftest.s >&5
24124 fi
24125 rm -f conftest.o conftest.s
24126 fi
24127 fi
24128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24129 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24130 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24131
24132 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24133
24134
24135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24136 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24137 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24138 $as_echo_n "(cached) " >&6
24139 else
24140 gcc_cv_as_sparc_ua_pcrel_hidden=no
24141 if test x$gcc_cv_as != x; then
24142 $as_echo '.data
24143 .align 4
24144 .byte 0x31
24145 .uaword %r_disp32(foo)
24146 .byte 0x32, 0x33, 0x34
24147 .global foo
24148 .hidden foo
24149 foo:
24150 .skip 4' > conftest.s
24151 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24153 (eval $ac_try) 2>&5
24154 ac_status=$?
24155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24156 test $ac_status = 0; }; }
24157 then
24158 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24159 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24160 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24161 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24162 if $gcc_cv_objdump -R conftest 2> /dev/null \
24163 | grep 'DISP32' > /dev/null 2>&1; then
24164 :
24165 else
24166 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24167 fi
24168 fi
24169 rm -f conftest
24170 else
24171 echo "configure: failed program was" >&5
24172 cat conftest.s >&5
24173 fi
24174 rm -f conftest.o conftest.s
24175 fi
24176 fi
24177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24178 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24179 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24180
24181 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24182
24183 fi
24184
24185 fi # unaligned pcrel relocs
24186
24187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24188 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24189 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24190 $as_echo_n "(cached) " >&6
24191 else
24192 gcc_cv_as_sparc_offsetable_lo10=no
24193 if test x$gcc_cv_as != x; then
24194 $as_echo '.text
24195 or %g1, %lo(ab) + 12, %g1
24196 or %g1, %lo(ab + 12), %g1' > conftest.s
24197 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24199 (eval $ac_try) 2>&5
24200 ac_status=$?
24201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24202 test $ac_status = 0; }; }
24203 then
24204 if test x$gcc_cv_objdump != x \
24205 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24206 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24207 gcc_cv_as_sparc_offsetable_lo10=yes
24208 fi
24209 else
24210 echo "configure: failed program was" >&5
24211 cat conftest.s >&5
24212 fi
24213 rm -f conftest.o conftest.s
24214 fi
24215 fi
24216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24217 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24218 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24219
24220 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24221
24222 fi
24223
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24225 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24226 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24227 $as_echo_n "(cached) " >&6
24228 else
24229 gcc_cv_as_sparc_fmaf=no
24230 if test x$gcc_cv_as != x; then
24231 $as_echo '.text
24232 .register %g2, #scratch
24233 .register %g3, #scratch
24234 .align 4
24235 fmaddd %f0, %f2, %f4, %f6
24236 addxccc %g1, %g2, %g3
24237 fsrl32 %f2, %f4, %f8
24238 fnaddd %f10, %f12, %f14' > conftest.s
24239 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24241 (eval $ac_try) 2>&5
24242 ac_status=$?
24243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24244 test $ac_status = 0; }; }
24245 then
24246 gcc_cv_as_sparc_fmaf=yes
24247 else
24248 echo "configure: failed program was" >&5
24249 cat conftest.s >&5
24250 fi
24251 rm -f conftest.o conftest.s
24252 fi
24253 fi
24254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24255 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24256 if test $gcc_cv_as_sparc_fmaf = yes; then
24257
24258 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24259
24260 fi
24261 ;;
24262
24263 i[34567]86-*-* | x86_64-*-*)
24264 case $target_os in
24265 cygwin*)
24266 # Full C++ conformance when using a shared libstdc++-v3 requires some
24267 # support from the Cygwin DLL, which in more recent versions exports
24268 # wrappers to aid in interposing and redirecting operators new, delete,
24269 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24270 # are configuring for a version of Cygwin that exports the wrappers.
24271 if test x$host = x$target; then
24272 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24273 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24274 gcc_ac_cygwin_dll_wrappers=yes
24275 else
24276 gcc_ac_cygwin_dll_wrappers=no
24277 fi
24278
24279 else
24280 # Can't check presence of libc functions during cross-compile, so
24281 # we just have to assume we're building for an up-to-date target.
24282 gcc_ac_cygwin_dll_wrappers=yes
24283 fi
24284
24285 cat >>confdefs.h <<_ACEOF
24286 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24287 _ACEOF
24288
24289 esac
24290 case $target_os in
24291 cygwin* | pe | mingw32* | interix*)
24292 # Recent binutils allows the three-operand form of ".comm" on PE. This
24293 # definition is used unconditionally to initialise the default state of
24294 # the target option variable that governs usage of the feature.
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24296 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24297 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24298 $as_echo_n "(cached) " >&6
24299 else
24300 gcc_cv_as_comm_has_align=no
24301 if test $in_tree_gas = yes; then
24302 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24303 then gcc_cv_as_comm_has_align=yes
24304 fi
24305 elif test x$gcc_cv_as != x; then
24306 $as_echo '.comm foo,1,32' > conftest.s
24307 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24309 (eval $ac_try) 2>&5
24310 ac_status=$?
24311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24312 test $ac_status = 0; }; }
24313 then
24314 gcc_cv_as_comm_has_align=yes
24315 else
24316 echo "configure: failed program was" >&5
24317 cat conftest.s >&5
24318 fi
24319 rm -f conftest.o conftest.s
24320 fi
24321 fi
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24323 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24324
24325
24326 cat >>confdefs.h <<_ACEOF
24327 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24328 _ACEOF
24329
24330 # Used for DWARF 2 in PE
24331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24332 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24333 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24334 $as_echo_n "(cached) " >&6
24335 else
24336 gcc_cv_as_ix86_pe_secrel32=no
24337 if test $in_tree_gas = yes; then
24338 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24339 then gcc_cv_as_ix86_pe_secrel32=yes
24340 fi
24341 elif test x$gcc_cv_as != x; then
24342 $as_echo '.text
24343 foo: nop
24344 .data
24345 .secrel32 foo' > conftest.s
24346 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24348 (eval $ac_try) 2>&5
24349 ac_status=$?
24350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24351 test $ac_status = 0; }; }
24352 then
24353 if test x$gcc_cv_ld != x \
24354 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24355 gcc_cv_as_ix86_pe_secrel32=yes
24356 fi
24357 rm -f conftest
24358 else
24359 echo "configure: failed program was" >&5
24360 cat conftest.s >&5
24361 fi
24362 rm -f conftest.o conftest.s
24363 fi
24364 fi
24365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24366 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24367 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24368
24369 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24370
24371 fi
24372 # Test if the assembler supports the extended form of the .section
24373 # directive that specifies section alignment. LTO support uses this,
24374 # but normally only after installation, so we warn but don't fail the
24375 # configure if LTO is enabled but the assembler does not support it.
24376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24377 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24378 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24379 $as_echo_n "(cached) " >&6
24380 else
24381 gcc_cv_as_section_has_align=no
24382 if test $in_tree_gas = yes; then
24383 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24384 then gcc_cv_as_section_has_align=yes
24385 fi
24386 elif test x$gcc_cv_as != x; then
24387 $as_echo '.section lto_test,"dr0"' > conftest.s
24388 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24390 (eval $ac_try) 2>&5
24391 ac_status=$?
24392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24393 test $ac_status = 0; }; }
24394 then
24395 gcc_cv_as_section_has_align=yes
24396 else
24397 echo "configure: failed program was" >&5
24398 cat conftest.s >&5
24399 fi
24400 rm -f conftest.o conftest.s
24401 fi
24402 fi
24403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24404 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24405
24406 if test x$gcc_cv_as_section_has_align != xyes; then
24407 case ",$enable_languages," in
24408 *,lto,*)
24409 { $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
24410 $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;}
24411 ;;
24412 esac
24413 fi
24414 # Test if the assembler supports the section flag 'e' for specifying
24415 # an excluded section.
24416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24417 $as_echo_n "checking assembler for .section with e... " >&6; }
24418 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24419 $as_echo_n "(cached) " >&6
24420 else
24421 gcc_cv_as_section_has_e=no
24422 if test $in_tree_gas = yes; then
24423 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24424 then gcc_cv_as_section_has_e=yes
24425 fi
24426 elif test x$gcc_cv_as != x; then
24427 $as_echo '.section foo1,"e"
24428 .byte 0,0,0,0' > conftest.s
24429 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24431 (eval $ac_try) 2>&5
24432 ac_status=$?
24433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24434 test $ac_status = 0; }; }
24435 then
24436 gcc_cv_as_section_has_e=yes
24437 else
24438 echo "configure: failed program was" >&5
24439 cat conftest.s >&5
24440 fi
24441 rm -f conftest.o conftest.s
24442 fi
24443 fi
24444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24445 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24446
24447
24448 cat >>confdefs.h <<_ACEOF
24449 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24450 _ACEOF
24451
24452 ;;
24453 esac
24454
24455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24456 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24457 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24458 $as_echo_n "(cached) " >&6
24459 else
24460 gcc_cv_as_ix86_filds=no
24461 if test x$gcc_cv_as != x; then
24462 $as_echo 'filds mem; fists mem' > conftest.s
24463 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_ix86_filds=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_ix86_filds" >&5
24479 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24480 if test $gcc_cv_as_ix86_filds = yes; then
24481
24482 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24483
24484 fi
24485
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24487 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24488 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24489 $as_echo_n "(cached) " >&6
24490 else
24491 gcc_cv_as_ix86_fildq=no
24492 if test x$gcc_cv_as != x; then
24493 $as_echo 'fildq mem; fistpq mem' > conftest.s
24494 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24496 (eval $ac_try) 2>&5
24497 ac_status=$?
24498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24499 test $ac_status = 0; }; }
24500 then
24501 gcc_cv_as_ix86_fildq=yes
24502 else
24503 echo "configure: failed program was" >&5
24504 cat conftest.s >&5
24505 fi
24506 rm -f conftest.o conftest.s
24507 fi
24508 fi
24509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24510 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24511 if test $gcc_cv_as_ix86_fildq = yes; then
24512
24513 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24514
24515 fi
24516
24517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24518 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24519 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24520 $as_echo_n "(cached) " >&6
24521 else
24522 gcc_cv_as_ix86_cmov_sun_syntax=no
24523 if test x$gcc_cv_as != x; then
24524 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24525 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24527 (eval $ac_try) 2>&5
24528 ac_status=$?
24529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24530 test $ac_status = 0; }; }
24531 then
24532 gcc_cv_as_ix86_cmov_sun_syntax=yes
24533 else
24534 echo "configure: failed program was" >&5
24535 cat conftest.s >&5
24536 fi
24537 rm -f conftest.o conftest.s
24538 fi
24539 fi
24540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24541 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24542 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24543
24544 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24545
24546 fi
24547
24548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24549 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24550 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24551 $as_echo_n "(cached) " >&6
24552 else
24553 gcc_cv_as_ix86_ffreep=no
24554 if test x$gcc_cv_as != x; then
24555 $as_echo 'ffreep %st(1)' > conftest.s
24556 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24558 (eval $ac_try) 2>&5
24559 ac_status=$?
24560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24561 test $ac_status = 0; }; }
24562 then
24563 gcc_cv_as_ix86_ffreep=yes
24564 else
24565 echo "configure: failed program was" >&5
24566 cat conftest.s >&5
24567 fi
24568 rm -f conftest.o conftest.s
24569 fi
24570 fi
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24572 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24573 if test $gcc_cv_as_ix86_ffreep = yes; then
24574
24575 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24576
24577 fi
24578
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24580 $as_echo_n "checking assembler for .quad directive... " >&6; }
24581 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24582 $as_echo_n "(cached) " >&6
24583 else
24584 gcc_cv_as_ix86_quad=no
24585 if test x$gcc_cv_as != x; then
24586 $as_echo '.quad 0' > conftest.s
24587 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24589 (eval $ac_try) 2>&5
24590 ac_status=$?
24591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24592 test $ac_status = 0; }; }
24593 then
24594 gcc_cv_as_ix86_quad=yes
24595 else
24596 echo "configure: failed program was" >&5
24597 cat conftest.s >&5
24598 fi
24599 rm -f conftest.o conftest.s
24600 fi
24601 fi
24602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24603 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24604 if test $gcc_cv_as_ix86_quad = yes; then
24605
24606 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24607
24608 fi
24609
24610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24611 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24612 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24613 $as_echo_n "(cached) " >&6
24614 else
24615 gcc_cv_as_ix86_sahf=no
24616 if test x$gcc_cv_as != x; then
24617 $as_echo '.code64
24618 sahf' > conftest.s
24619 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24621 (eval $ac_try) 2>&5
24622 ac_status=$?
24623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24624 test $ac_status = 0; }; }
24625 then
24626 gcc_cv_as_ix86_sahf=yes
24627 else
24628 echo "configure: failed program was" >&5
24629 cat conftest.s >&5
24630 fi
24631 rm -f conftest.o conftest.s
24632 fi
24633 fi
24634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24635 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24636 if test $gcc_cv_as_ix86_sahf = yes; then
24637
24638 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24639
24640 fi
24641
24642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24643 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24644 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24645 $as_echo_n "(cached) " >&6
24646 else
24647 gcc_cv_as_ix86_hle=no
24648 if test x$gcc_cv_as != x; then
24649 $as_echo '.code64
24650 lock xacquire cmpxchg %esi, (%rcx)
24651 ' > conftest.s
24652 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24654 (eval $ac_try) 2>&5
24655 ac_status=$?
24656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24657 test $ac_status = 0; }; }
24658 then
24659 gcc_cv_as_ix86_hle=yes
24660 else
24661 echo "configure: failed program was" >&5
24662 cat conftest.s >&5
24663 fi
24664 rm -f conftest.o conftest.s
24665 fi
24666 fi
24667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24668 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24669 if test $gcc_cv_as_ix86_hle = yes; then
24670
24671 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24672
24673 fi
24674
24675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24676 $as_echo_n "checking assembler for swap suffix... " >&6; }
24677 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24678 $as_echo_n "(cached) " >&6
24679 else
24680 gcc_cv_as_ix86_swap=no
24681 if test x$gcc_cv_as != x; then
24682 $as_echo 'movl.s %esp, %ebp' > conftest.s
24683 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24685 (eval $ac_try) 2>&5
24686 ac_status=$?
24687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24688 test $ac_status = 0; }; }
24689 then
24690 gcc_cv_as_ix86_swap=yes
24691 else
24692 echo "configure: failed program was" >&5
24693 cat conftest.s >&5
24694 fi
24695 rm -f conftest.o conftest.s
24696 fi
24697 fi
24698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24699 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24700 if test $gcc_cv_as_ix86_swap = yes; then
24701
24702 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24703
24704 fi
24705
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24707 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24708 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24709 $as_echo_n "(cached) " >&6
24710 else
24711 gcc_cv_as_ix86_diff_sect_delta=no
24712 if test x$gcc_cv_as != x; then
24713 $as_echo '.section .rodata
24714 .L1:
24715 .long .L2-.L1
24716 .long .L3-.L1
24717 .text
24718 .L3: nop
24719 .L2: nop' > conftest.s
24720 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24722 (eval $ac_try) 2>&5
24723 ac_status=$?
24724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24725 test $ac_status = 0; }; }
24726 then
24727 gcc_cv_as_ix86_diff_sect_delta=yes
24728 else
24729 echo "configure: failed program was" >&5
24730 cat conftest.s >&5
24731 fi
24732 rm -f conftest.o conftest.s
24733 fi
24734 fi
24735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24736 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24737 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24738
24739 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24740
24741 fi
24742
24743 # These two are used unconditionally by i386.[ch]; it is to be defined
24744 # to 1 if the feature is present, 0 otherwise.
24745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24746 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24747 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24748 $as_echo_n "(cached) " >&6
24749 else
24750 gcc_cv_as_ix86_gotoff_in_data=no
24751 if test $in_tree_gas = yes; then
24752 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24753 then gcc_cv_as_ix86_gotoff_in_data=yes
24754 fi
24755 elif test x$gcc_cv_as != x; then
24756 $as_echo ' .text
24757 .L0:
24758 nop
24759 .data
24760 .long .L0@GOTOFF' > conftest.s
24761 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24763 (eval $ac_try) 2>&5
24764 ac_status=$?
24765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24766 test $ac_status = 0; }; }
24767 then
24768 gcc_cv_as_ix86_gotoff_in_data=yes
24769 else
24770 echo "configure: failed program was" >&5
24771 cat conftest.s >&5
24772 fi
24773 rm -f conftest.o conftest.s
24774 fi
24775 fi
24776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24777 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24778
24779
24780 cat >>confdefs.h <<_ACEOF
24781 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24782 _ACEOF
24783
24784
24785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24786 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24787 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24788 $as_echo_n "(cached) " >&6
24789 else
24790 gcc_cv_as_ix86_rep_lock_prefix=no
24791 if test x$gcc_cv_as != x; then
24792 $as_echo 'rep movsl
24793 lock addl %edi, (%eax,%esi)
24794 lock orl $0, (%esp)' > conftest.s
24795 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24797 (eval $ac_try) 2>&5
24798 ac_status=$?
24799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24800 test $ac_status = 0; }; }
24801 then
24802 gcc_cv_as_ix86_rep_lock_prefix=yes
24803 else
24804 echo "configure: failed program was" >&5
24805 cat conftest.s >&5
24806 fi
24807 rm -f conftest.o conftest.s
24808 fi
24809 fi
24810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24811 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24812 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24813
24814 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24815
24816 fi
24817
24818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24819 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24820 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24821 $as_echo_n "(cached) " >&6
24822 else
24823 gcc_cv_as_ix86_tlsgdplt=no
24824 if test x$gcc_cv_as != x; then
24825 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24826 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24828 (eval $ac_try) 2>&5
24829 ac_status=$?
24830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24831 test $ac_status = 0; }; }
24832 then
24833 if test x$gcc_cv_ld != x \
24834 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24835 gcc_cv_as_ix86_tlsgdplt=yes
24836 fi
24837 rm -f conftest
24838 else
24839 echo "configure: failed program was" >&5
24840 cat conftest.s >&5
24841 fi
24842 rm -f conftest.o conftest.s
24843 fi
24844 fi
24845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24846 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24847 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24848
24849 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24850
24851 fi
24852
24853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24854 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24855 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24856 $as_echo_n "(cached) " >&6
24857 else
24858 gcc_cv_as_ix86_tlsldmplt=no
24859 if test x$gcc_cv_as != x; then
24860 $as_echo 'tls_ld:
24861 call tls_ld@tlsldmplt' > conftest.s
24862 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24864 (eval $ac_try) 2>&5
24865 ac_status=$?
24866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24867 test $ac_status = 0; }; }
24868 then
24869 if test x$gcc_cv_ld != x \
24870 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24871 gcc_cv_as_ix86_tlsldmplt=yes
24872 fi
24873 rm -f conftest
24874 else
24875 echo "configure: failed program was" >&5
24876 cat conftest.s >&5
24877 fi
24878 rm -f conftest.o conftest.s
24879 fi
24880 fi
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24882 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24883 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24884
24885 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24886
24887 fi
24888
24889 ;;
24890
24891 ia64*-*-*)
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24893 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24894 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24895 $as_echo_n "(cached) " >&6
24896 else
24897 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24898 if test $in_tree_gas = yes; then
24899 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24900 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24901 fi
24902 elif test x$gcc_cv_as != x; then
24903 $as_echo ' .text
24904 addl r15 = @ltoffx(x#), gp
24905 ;;
24906 ld8.mov r16 = [r15], x#' > conftest.s
24907 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24909 (eval $ac_try) 2>&5
24910 ac_status=$?
24911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24912 test $ac_status = 0; }; }
24913 then
24914 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24915 else
24916 echo "configure: failed program was" >&5
24917 cat conftest.s >&5
24918 fi
24919 rm -f conftest.o conftest.s
24920 fi
24921 fi
24922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24923 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24924 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24925
24926 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24927
24928 fi
24929
24930 ;;
24931
24932 powerpc*-*-*)
24933 case $target in
24934 *-*-aix*) conftest_s=' .machine "pwr5"
24935 .csect .text[PR]
24936 mfcr 3,128';;
24937 *-*-darwin*)
24938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24939 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24940 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24941 $as_echo_n "(cached) " >&6
24942 else
24943 gcc_cv_as_machine_directive=no
24944 if test x$gcc_cv_as != x; then
24945 $as_echo ' .machine ppc7400' > conftest.s
24946 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24948 (eval $ac_try) 2>&5
24949 ac_status=$?
24950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24951 test $ac_status = 0; }; }
24952 then
24953 gcc_cv_as_machine_directive=yes
24954 else
24955 echo "configure: failed program was" >&5
24956 cat conftest.s >&5
24957 fi
24958 rm -f conftest.o conftest.s
24959 fi
24960 fi
24961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24962 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24963
24964 if test x$gcc_cv_as_machine_directive != xyes; then
24965 echo "*** This target requires an assembler supporting \".machine\"" >&2
24966 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24967 test x$build = x$target && exit 1
24968 fi
24969 conftest_s=' .text
24970 mfcr r3,128';;
24971 *) conftest_s=' .machine power4
24972 .text
24973 mfcr 3,128';;
24974 esac
24975
24976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24977 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24978 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24979 $as_echo_n "(cached) " >&6
24980 else
24981 gcc_cv_as_powerpc_mfcrf=no
24982 if test $in_tree_gas = yes; then
24983 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24984 then gcc_cv_as_powerpc_mfcrf=yes
24985 fi
24986 elif test x$gcc_cv_as != x; then
24987 $as_echo "$conftest_s" > 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_powerpc_mfcrf=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_powerpc_mfcrf" >&5
25004 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25005 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25006
25007 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25008
25009 fi
25010
25011 case $target in
25012 *-*-aix*) conftest_s=' .machine "pwr5"
25013 .csect .text[PR]
25014 popcntb 3,3';;
25015 *) conftest_s=' .machine power5
25016 .text
25017 popcntb 3,3';;
25018 esac
25019
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25021 $as_echo_n "checking assembler for popcntb support... " >&6; }
25022 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25023 $as_echo_n "(cached) " >&6
25024 else
25025 gcc_cv_as_powerpc_popcntb=no
25026 if test $in_tree_gas = yes; then
25027 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25028 then gcc_cv_as_powerpc_popcntb=yes
25029 fi
25030 elif test x$gcc_cv_as != x; then
25031 $as_echo "$conftest_s" > conftest.s
25032 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25034 (eval $ac_try) 2>&5
25035 ac_status=$?
25036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25037 test $ac_status = 0; }; }
25038 then
25039 gcc_cv_as_powerpc_popcntb=yes
25040 else
25041 echo "configure: failed program was" >&5
25042 cat conftest.s >&5
25043 fi
25044 rm -f conftest.o conftest.s
25045 fi
25046 fi
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25048 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25049 if test $gcc_cv_as_powerpc_popcntb = yes; then
25050
25051 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25052
25053 fi
25054
25055 case $target in
25056 *-*-aix*) conftest_s=' .machine "pwr5x"
25057 .csect .text[PR]
25058 frin 1,1';;
25059 *) conftest_s=' .machine power5
25060 .text
25061 frin 1,1';;
25062 esac
25063
25064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25065 $as_echo_n "checking assembler for fp round support... " >&6; }
25066 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25067 $as_echo_n "(cached) " >&6
25068 else
25069 gcc_cv_as_powerpc_fprnd=no
25070 if test $in_tree_gas = yes; then
25071 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25072 then gcc_cv_as_powerpc_fprnd=yes
25073 fi
25074 elif test x$gcc_cv_as != x; then
25075 $as_echo "$conftest_s" > conftest.s
25076 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25078 (eval $ac_try) 2>&5
25079 ac_status=$?
25080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25081 test $ac_status = 0; }; }
25082 then
25083 gcc_cv_as_powerpc_fprnd=yes
25084 else
25085 echo "configure: failed program was" >&5
25086 cat conftest.s >&5
25087 fi
25088 rm -f conftest.o conftest.s
25089 fi
25090 fi
25091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25092 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25093 if test $gcc_cv_as_powerpc_fprnd = yes; then
25094
25095 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25096
25097 fi
25098
25099 case $target in
25100 *-*-aix*) conftest_s=' .machine "pwr6"
25101 .csect .text[PR]
25102 mffgpr 1,3';;
25103 *) conftest_s=' .machine power6
25104 .text
25105 mffgpr 1,3';;
25106 esac
25107
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25109 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25110 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25111 $as_echo_n "(cached) " >&6
25112 else
25113 gcc_cv_as_powerpc_mfpgpr=no
25114 if test $in_tree_gas = yes; then
25115 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25116 then gcc_cv_as_powerpc_mfpgpr=yes
25117 fi
25118 elif test x$gcc_cv_as != x; then
25119 $as_echo "$conftest_s" > conftest.s
25120 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25122 (eval $ac_try) 2>&5
25123 ac_status=$?
25124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25125 test $ac_status = 0; }; }
25126 then
25127 gcc_cv_as_powerpc_mfpgpr=yes
25128 else
25129 echo "configure: failed program was" >&5
25130 cat conftest.s >&5
25131 fi
25132 rm -f conftest.o conftest.s
25133 fi
25134 fi
25135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25136 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25137 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25138
25139 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25140
25141 fi
25142
25143 case $target in
25144 *-*-aix*) conftest_s=' .csect .text[PR]
25145 LCF..0:
25146 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25147 *-*-darwin*)
25148 conftest_s=' .text
25149 LCF0:
25150 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25151 *) conftest_s=' .text
25152 .LCF0:
25153 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25154 esac
25155
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25157 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25158 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25159 $as_echo_n "(cached) " >&6
25160 else
25161 gcc_cv_as_powerpc_rel16=no
25162 if test $in_tree_gas = yes; then
25163 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25164 then gcc_cv_as_powerpc_rel16=yes
25165 fi
25166 elif test x$gcc_cv_as != x; then
25167 $as_echo "$conftest_s" > conftest.s
25168 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25170 (eval $ac_try) 2>&5
25171 ac_status=$?
25172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25173 test $ac_status = 0; }; }
25174 then
25175 gcc_cv_as_powerpc_rel16=yes
25176 else
25177 echo "configure: failed program was" >&5
25178 cat conftest.s >&5
25179 fi
25180 rm -f conftest.o conftest.s
25181 fi
25182 fi
25183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25184 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25185 if test $gcc_cv_as_powerpc_rel16 = yes; then
25186
25187 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25188
25189 fi
25190
25191 case $target in
25192 *-*-aix*) conftest_s=' .machine "pwr6"
25193 .csect .text[PR]
25194 cmpb 3,4,5';;
25195 *) conftest_s=' .machine power6
25196 .text
25197 cmpb 3,4,5';;
25198 esac
25199
25200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25201 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25202 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25203 $as_echo_n "(cached) " >&6
25204 else
25205 gcc_cv_as_powerpc_cmpb=no
25206 if test $in_tree_gas = yes; then
25207 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25208 then gcc_cv_as_powerpc_cmpb=yes
25209 fi
25210 elif test x$gcc_cv_as != x; then
25211 $as_echo "$conftest_s" > conftest.s
25212 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25214 (eval $ac_try) 2>&5
25215 ac_status=$?
25216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25217 test $ac_status = 0; }; }
25218 then
25219 gcc_cv_as_powerpc_cmpb=yes
25220 else
25221 echo "configure: failed program was" >&5
25222 cat conftest.s >&5
25223 fi
25224 rm -f conftest.o conftest.s
25225 fi
25226 fi
25227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25228 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25229 if test $gcc_cv_as_powerpc_cmpb = yes; then
25230
25231 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25232
25233 fi
25234
25235 case $target in
25236 *-*-aix*) conftest_s=' .machine "pwr6"
25237 .csect .text[PR]
25238 dadd 1,2,3';;
25239 *) conftest_s=' .machine power6
25240 .text
25241 dadd 1,2,3';;
25242 esac
25243
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25245 $as_echo_n "checking assembler for decimal float support... " >&6; }
25246 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25247 $as_echo_n "(cached) " >&6
25248 else
25249 gcc_cv_as_powerpc_dfp=no
25250 if test $in_tree_gas = yes; then
25251 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25252 then gcc_cv_as_powerpc_dfp=yes
25253 fi
25254 elif test x$gcc_cv_as != x; then
25255 $as_echo "$conftest_s" > conftest.s
25256 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25258 (eval $ac_try) 2>&5
25259 ac_status=$?
25260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25261 test $ac_status = 0; }; }
25262 then
25263 gcc_cv_as_powerpc_dfp=yes
25264 else
25265 echo "configure: failed program was" >&5
25266 cat conftest.s >&5
25267 fi
25268 rm -f conftest.o conftest.s
25269 fi
25270 fi
25271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25272 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25273 if test $gcc_cv_as_powerpc_dfp = yes; then
25274
25275 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25276
25277 fi
25278
25279 case $target in
25280 *-*-aix*) conftest_s=' .machine "pwr7"
25281 .csect .text[PR]
25282 lxvd2x 1,2,3';;
25283 *) conftest_s=' .machine power7
25284 .text
25285 lxvd2x 1,2,3';;
25286 esac
25287
25288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25289 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25290 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25291 $as_echo_n "(cached) " >&6
25292 else
25293 gcc_cv_as_powerpc_vsx=no
25294 if test $in_tree_gas = yes; then
25295 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25296 then gcc_cv_as_powerpc_vsx=yes
25297 fi
25298 elif test x$gcc_cv_as != x; then
25299 $as_echo "$conftest_s" > conftest.s
25300 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25302 (eval $ac_try) 2>&5
25303 ac_status=$?
25304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25305 test $ac_status = 0; }; }
25306 then
25307 gcc_cv_as_powerpc_vsx=yes
25308 else
25309 echo "configure: failed program was" >&5
25310 cat conftest.s >&5
25311 fi
25312 rm -f conftest.o conftest.s
25313 fi
25314 fi
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25316 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25317 if test $gcc_cv_as_powerpc_vsx = yes; then
25318
25319 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25320
25321 fi
25322
25323 case $target in
25324 *-*-aix*) conftest_s=' .machine "pwr7"
25325 .csect .text[PR]
25326 popcntd 3,3';;
25327 *) conftest_s=' .machine power7
25328 .text
25329 popcntd 3,3';;
25330 esac
25331
25332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25333 $as_echo_n "checking assembler for popcntd support... " >&6; }
25334 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25335 $as_echo_n "(cached) " >&6
25336 else
25337 gcc_cv_as_powerpc_popcntd=no
25338 if test $in_tree_gas = yes; then
25339 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25340 then gcc_cv_as_powerpc_popcntd=yes
25341 fi
25342 elif test x$gcc_cv_as != x; then
25343 $as_echo "$conftest_s" > conftest.s
25344 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25346 (eval $ac_try) 2>&5
25347 ac_status=$?
25348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25349 test $ac_status = 0; }; }
25350 then
25351 gcc_cv_as_powerpc_popcntd=yes
25352 else
25353 echo "configure: failed program was" >&5
25354 cat conftest.s >&5
25355 fi
25356 rm -f conftest.o conftest.s
25357 fi
25358 fi
25359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25360 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25361 if test $gcc_cv_as_powerpc_popcntd = yes; then
25362
25363 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25364
25365 fi
25366
25367 case $target in
25368 *-*-aix*) conftest_s=' .csect .text[PR]
25369 lwsync';;
25370 *) conftest_s=' .text
25371 lwsync';;
25372 esac
25373
25374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25375 $as_echo_n "checking assembler for lwsync support... " >&6; }
25376 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25377 $as_echo_n "(cached) " >&6
25378 else
25379 gcc_cv_as_powerpc_lwsync=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_lwsync=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_lwsync=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_lwsync" >&5
25402 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25403 if test $gcc_cv_as_powerpc_lwsync = yes; then
25404
25405 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25406
25407 fi
25408
25409 case $target in
25410 *-*-aix*) conftest_s=' .machine "476"
25411 .csect .text[PR]
25412 dci 0';;
25413 *) conftest_s=' .machine "476"
25414 .text
25415 dci 0';;
25416 esac
25417
25418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25419 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25420 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25421 $as_echo_n "(cached) " >&6
25422 else
25423 gcc_cv_as_powerpc_dci=no
25424 if test $in_tree_gas = yes; then
25425 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25426 then gcc_cv_as_powerpc_dci=yes
25427 fi
25428 elif test x$gcc_cv_as != x; then
25429 $as_echo "$conftest_s" > conftest.s
25430 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25432 (eval $ac_try) 2>&5
25433 ac_status=$?
25434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25435 test $ac_status = 0; }; }
25436 then
25437 gcc_cv_as_powerpc_dci=yes
25438 else
25439 echo "configure: failed program was" >&5
25440 cat conftest.s >&5
25441 fi
25442 rm -f conftest.o conftest.s
25443 fi
25444 fi
25445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25446 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25447 if test $gcc_cv_as_powerpc_dci = yes; then
25448
25449 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25450
25451 fi
25452
25453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25454 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25455 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25456 $as_echo_n "(cached) " >&6
25457 else
25458 gcc_cv_as_powerpc_gnu_attribute=no
25459 if test $in_tree_gas = yes; then
25460 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25461 then gcc_cv_as_powerpc_gnu_attribute=yes
25462 fi
25463 elif test x$gcc_cv_as != x; then
25464 $as_echo '.gnu_attribute 4,1' > conftest.s
25465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25467 (eval $ac_try) 2>&5
25468 ac_status=$?
25469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25470 test $ac_status = 0; }; }
25471 then
25472 gcc_cv_as_powerpc_gnu_attribute=yes
25473 else
25474 echo "configure: failed program was" >&5
25475 cat conftest.s >&5
25476 fi
25477 rm -f conftest.o conftest.s
25478 fi
25479 fi
25480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25481 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25482 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25483
25484 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25485
25486 fi
25487
25488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25489 $as_echo_n "checking assembler for tls marker support... " >&6; }
25490 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25491 $as_echo_n "(cached) " >&6
25492 else
25493 gcc_cv_as_powerpc_tls_markers=no
25494 if test $in_tree_gas = yes; then
25495 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25496 then gcc_cv_as_powerpc_tls_markers=yes
25497 fi
25498 elif test x$gcc_cv_as != x; then
25499 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25500 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25502 (eval $ac_try) 2>&5
25503 ac_status=$?
25504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25505 test $ac_status = 0; }; }
25506 then
25507 gcc_cv_as_powerpc_tls_markers=yes
25508 else
25509 echo "configure: failed program was" >&5
25510 cat conftest.s >&5
25511 fi
25512 rm -f conftest.o conftest.s
25513 fi
25514 fi
25515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25516 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25517 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25518
25519 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25520
25521 fi
25522
25523 case $target in
25524 *-*-aix*)
25525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25526 $as_echo_n "checking assembler for .ref support... " >&6; }
25527 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25528 $as_echo_n "(cached) " >&6
25529 else
25530 gcc_cv_as_aix_ref=no
25531 if test $in_tree_gas = yes; then
25532 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25533 then :
25534 fi
25535 elif test x$gcc_cv_as != x; then
25536 $as_echo ' .csect stuff[rw]
25537 stuff:
25538 .long 1
25539 .extern sym
25540 .ref sym
25541 ' > 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_aix_ref=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_aix_ref" >&5
25558 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25559 if test $gcc_cv_as_aix_ref = yes; then
25560
25561 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25562
25563 fi
25564 ;;
25565 esac
25566 ;;
25567
25568 mips*-*-*)
25569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25570 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25571 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25572 $as_echo_n "(cached) " >&6
25573 else
25574 gcc_cv_as_mips_explicit_relocs=no
25575 if test $in_tree_gas = yes; then
25576 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25577 then gcc_cv_as_mips_explicit_relocs=yes
25578 fi
25579 elif test x$gcc_cv_as != x; then
25580 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25581 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25583 (eval $ac_try) 2>&5
25584 ac_status=$?
25585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25586 test $ac_status = 0; }; }
25587 then
25588 gcc_cv_as_mips_explicit_relocs=yes
25589 else
25590 echo "configure: failed program was" >&5
25591 cat conftest.s >&5
25592 fi
25593 rm -f conftest.o conftest.s
25594 fi
25595 fi
25596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25597 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25598 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25599 if test x$target_cpu_default = x
25600 then target_cpu_default=MASK_EXPLICIT_RELOCS
25601 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25602 fi
25603 fi
25604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25605 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25606 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25607 $as_echo_n "(cached) " >&6
25608 else
25609 gcc_cv_as_mips_no_shared=no
25610 if test $in_tree_gas = yes; then
25611 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25612 then gcc_cv_as_mips_no_shared=yes
25613 fi
25614 elif test x$gcc_cv_as != x; then
25615 $as_echo 'nop' > conftest.s
25616 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25618 (eval $ac_try) 2>&5
25619 ac_status=$?
25620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25621 test $ac_status = 0; }; }
25622 then
25623 gcc_cv_as_mips_no_shared=yes
25624 else
25625 echo "configure: failed program was" >&5
25626 cat conftest.s >&5
25627 fi
25628 rm -f conftest.o conftest.s
25629 fi
25630 fi
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25632 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25633 if test $gcc_cv_as_mips_no_shared = yes; then
25634
25635 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25636
25637 fi
25638
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25640 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25641 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25642 $as_echo_n "(cached) " >&6
25643 else
25644 gcc_cv_as_mips_gnu_attribute=no
25645 if test $in_tree_gas = yes; then
25646 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25647 then gcc_cv_as_mips_gnu_attribute=yes
25648 fi
25649 elif test x$gcc_cv_as != x; then
25650 $as_echo '.gnu_attribute 4,1' > conftest.s
25651 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25653 (eval $ac_try) 2>&5
25654 ac_status=$?
25655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25656 test $ac_status = 0; }; }
25657 then
25658 gcc_cv_as_mips_gnu_attribute=yes
25659 else
25660 echo "configure: failed program was" >&5
25661 cat conftest.s >&5
25662 fi
25663 rm -f conftest.o conftest.s
25664 fi
25665 fi
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25667 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25668 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25669
25670 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25671
25672 fi
25673
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25675 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25676 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25677 $as_echo_n "(cached) " >&6
25678 else
25679 gcc_cv_as_mips_dtprelword=no
25680 if test $in_tree_gas = yes; then
25681 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25682 then gcc_cv_as_mips_dtprelword=yes
25683 fi
25684 elif test x$gcc_cv_as != x; then
25685 $as_echo '.section .tdata,"awT",@progbits
25686 x:
25687 .word 2
25688 .text
25689 .dtprelword x+0x8000' > conftest.s
25690 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25692 (eval $ac_try) 2>&5
25693 ac_status=$?
25694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25695 test $ac_status = 0; }; }
25696 then
25697 gcc_cv_as_mips_dtprelword=yes
25698 else
25699 echo "configure: failed program was" >&5
25700 cat conftest.s >&5
25701 fi
25702 rm -f conftest.o conftest.s
25703 fi
25704 fi
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25706 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25707 if test $gcc_cv_as_mips_dtprelword = yes; then
25708
25709 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25710
25711 fi
25712
25713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25714 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25715 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25716 $as_echo_n "(cached) " >&6
25717 else
25718 gcc_cv_as_mips_dspr1_mult=no
25719 if test x$gcc_cv_as != x; then
25720 $as_echo ' .set mips32r2
25721 .set nodspr2
25722 .set dsp
25723 madd $ac3,$4,$5
25724 maddu $ac3,$4,$5
25725 msub $ac3,$4,$5
25726 msubu $ac3,$4,$5
25727 mult $ac3,$4,$5
25728 multu $ac3,$4,$5' > conftest.s
25729 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25731 (eval $ac_try) 2>&5
25732 ac_status=$?
25733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25734 test $ac_status = 0; }; }
25735 then
25736 gcc_cv_as_mips_dspr1_mult=yes
25737 else
25738 echo "configure: failed program was" >&5
25739 cat conftest.s >&5
25740 fi
25741 rm -f conftest.o conftest.s
25742 fi
25743 fi
25744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25745 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25746 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25747
25748 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25749
25750 fi
25751
25752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25753 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25754 gcc_cv_as_ld_jalr_reloc=no
25755 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25756 if test $in_tree_ld = yes ; then
25757 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 \
25758 && test $in_tree_ld_is_elf = yes; then
25759 gcc_cv_as_ld_jalr_reloc=yes
25760 fi
25761 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25762 echo ' .ent x' > conftest.s
25763 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25764 echo ' ld $25,%call16(y)($28)' >> conftest.s
25765 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25766 echo '1: jalr $25' >> conftest.s
25767 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25768 echo '1: jalr $25' >> conftest.s
25769 echo ' .end x' >> conftest.s
25770 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25771 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25772 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25773 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25774 gcc_cv_as_ld_jalr_reloc=yes
25775 fi
25776 fi
25777 rm -f conftest.*
25778 fi
25779 fi
25780 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25781 if test x$target_cpu_default = x; then
25782 target_cpu_default=MASK_RELAX_PIC_CALLS
25783 else
25784 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25785 fi
25786 fi
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25788 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25789
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25791 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25792 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25793 $as_echo_n "(cached) " >&6
25794 else
25795 gcc_cv_ld_mips_personality_relaxation=no
25796 if test $in_tree_ld = yes ; then
25797 if test "$gcc_cv_gld_major_version" -eq 2 \
25798 -a "$gcc_cv_gld_minor_version" -ge 21 \
25799 -o "$gcc_cv_gld_major_version" -gt 2; then
25800 gcc_cv_ld_mips_personality_relaxation=yes
25801 fi
25802 elif test x$gcc_cv_as != x \
25803 -a x$gcc_cv_ld != x \
25804 -a x$gcc_cv_readelf != x ; then
25805 cat > conftest.s <<EOF
25806 .cfi_startproc
25807 .cfi_personality 0x80,indirect_ptr
25808 .ent test
25809 test:
25810 nop
25811 .end test
25812 .cfi_endproc
25813
25814 .section .data,"aw",@progbits
25815 indirect_ptr:
25816 .dc.a personality
25817 EOF
25818 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25819 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25820 if $gcc_cv_readelf -d conftest 2>&1 \
25821 | grep TEXTREL > /dev/null 2>&1; then
25822 :
25823 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25824 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25825 :
25826 else
25827 gcc_cv_ld_mips_personality_relaxation=yes
25828 fi
25829 fi
25830 fi
25831 rm -f conftest.s conftest.o conftest
25832 fi
25833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25834 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25835 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25836
25837 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25838
25839 fi
25840 ;;
25841 esac
25842
25843 # Mips and HP-UX need the GNU assembler.
25844 # Linux on IA64 might be able to use the Intel assembler.
25845
25846 case "$target" in
25847 mips*-*-* | *-*-hpux* )
25848 if test x$gas_flag = xyes \
25849 || test x"$host" != x"$build" \
25850 || test ! -x "$gcc_cv_as" \
25851 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25852 :
25853 else
25854 echo "*** This configuration requires the GNU assembler" >&2
25855 exit 1
25856 fi
25857 ;;
25858 esac
25859
25860 # ??? Not all targets support dwarf2 debug_line, even within a version
25861 # of gas. Moreover, we need to emit a valid instruction to trigger any
25862 # info to the output file. So, as supported targets are added to gas 2.11,
25863 # add some instruction here to (also) show we expect this might work.
25864 # ??? Once 2.11 is released, probably need to add first known working
25865 # version to the per-target configury.
25866 case "$cpu_type" in
25867 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25868 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
25869 insn="nop"
25870 ;;
25871 ia64 | s390)
25872 insn="nop 0"
25873 ;;
25874 mmix)
25875 insn="swym 0"
25876 ;;
25877 esac
25878 if test x"$insn" != x; then
25879 conftest_s="\
25880 .file 1 \"conftest.s\"
25881 .loc 1 3 0
25882 $insn"
25883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25884 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25885 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25886 $as_echo_n "(cached) " >&6
25887 else
25888 gcc_cv_as_dwarf2_debug_line=no
25889 if test $in_tree_gas = yes; then
25890 if test $in_tree_gas_is_elf = yes \
25891 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25892 then gcc_cv_as_dwarf2_debug_line=yes
25893 fi
25894 elif test x$gcc_cv_as != x; then
25895 $as_echo "$conftest_s" > conftest.s
25896 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25898 (eval $ac_try) 2>&5
25899 ac_status=$?
25900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25901 test $ac_status = 0; }; }
25902 then
25903 if test x$gcc_cv_objdump != x \
25904 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25905 | grep debug_line > /dev/null 2>&1; then
25906 gcc_cv_as_dwarf2_debug_line=yes
25907 fi
25908 else
25909 echo "configure: failed program was" >&5
25910 cat conftest.s >&5
25911 fi
25912 rm -f conftest.o conftest.s
25913 fi
25914 fi
25915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25916 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25917
25918
25919 # The .debug_line file table must be in the exact order that
25920 # we specified the files, since these indices are also used
25921 # by DW_AT_decl_file. Approximate this test by testing if
25922 # the assembler bitches if the same index is assigned twice.
25923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25924 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25925 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25926 $as_echo_n "(cached) " >&6
25927 else
25928 gcc_cv_as_dwarf2_file_buggy=no
25929 if test x$gcc_cv_as != x; then
25930 $as_echo ' .file 1 "foo.s"
25931 .file 1 "bar.s"' > conftest.s
25932 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25934 (eval $ac_try) 2>&5
25935 ac_status=$?
25936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25937 test $ac_status = 0; }; }
25938 then
25939 gcc_cv_as_dwarf2_file_buggy=yes
25940 else
25941 echo "configure: failed program was" >&5
25942 cat conftest.s >&5
25943 fi
25944 rm -f conftest.o conftest.s
25945 fi
25946 fi
25947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25948 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25949
25950
25951 if test $gcc_cv_as_dwarf2_debug_line = yes \
25952 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25953
25954 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25955
25956 fi
25957
25958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25959 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25960 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25961 $as_echo_n "(cached) " >&6
25962 else
25963 gcc_cv_as_gdwarf2_flag=no
25964 if test $in_tree_gas = yes; then
25965 if test $in_tree_gas_is_elf = yes \
25966 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25967 then gcc_cv_as_gdwarf2_flag=yes
25968 fi
25969 elif test x$gcc_cv_as != x; then
25970 $as_echo "$insn" > conftest.s
25971 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25973 (eval $ac_try) 2>&5
25974 ac_status=$?
25975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25976 test $ac_status = 0; }; }
25977 then
25978 gcc_cv_as_gdwarf2_flag=yes
25979 else
25980 echo "configure: failed program was" >&5
25981 cat conftest.s >&5
25982 fi
25983 rm -f conftest.o conftest.s
25984 fi
25985 fi
25986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25987 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25988 if test $gcc_cv_as_gdwarf2_flag = yes; then
25989
25990 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25991
25992 fi
25993
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25995 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25996 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25997 $as_echo_n "(cached) " >&6
25998 else
25999 gcc_cv_as_gstabs_flag=no
26000 if test $in_tree_gas = yes; then
26001 if test $in_tree_gas_is_elf = yes \
26002 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26003 then gcc_cv_as_gstabs_flag=yes
26004 fi
26005 elif test x$gcc_cv_as != x; then
26006 $as_echo "$insn" > conftest.s
26007 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26009 (eval $ac_try) 2>&5
26010 ac_status=$?
26011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26012 test $ac_status = 0; }; }
26013 then
26014 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26015 # and warns about it, but still exits successfully. So check for
26016 # this.
26017 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26019 (eval $ac_try) 2>&5
26020 ac_status=$?
26021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26022 test $ac_status = 0; }; }
26023 then :
26024 else gcc_cv_as_gstabs_flag=yes
26025 fi
26026 else
26027 echo "configure: failed program was" >&5
26028 cat conftest.s >&5
26029 fi
26030 rm -f conftest.o conftest.s
26031 fi
26032 fi
26033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26034 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26035 if test $gcc_cv_as_gstabs_flag = yes; then
26036
26037 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26038
26039 fi
26040
26041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26042 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26043 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26044 $as_echo_n "(cached) " >&6
26045 else
26046 gcc_cv_as_debug_prefix_map_flag=no
26047 if test $in_tree_gas = yes; then
26048 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26049 then gcc_cv_as_debug_prefix_map_flag=yes
26050 fi
26051 elif test x$gcc_cv_as != x; then
26052 $as_echo "$insn" > conftest.s
26053 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26055 (eval $ac_try) 2>&5
26056 ac_status=$?
26057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26058 test $ac_status = 0; }; }
26059 then
26060 gcc_cv_as_debug_prefix_map_flag=yes
26061 else
26062 echo "configure: failed program was" >&5
26063 cat conftest.s >&5
26064 fi
26065 rm -f conftest.o conftest.s
26066 fi
26067 fi
26068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26069 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26070 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26071
26072 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26073
26074 fi
26075 fi
26076
26077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26078 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26079 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26080 $as_echo_n "(cached) " >&6
26081 else
26082 gcc_cv_as_lcomm_with_alignment=no
26083 if test x$gcc_cv_as != x; then
26084 $as_echo '.lcomm bar,4,16' > conftest.s
26085 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26087 (eval $ac_try) 2>&5
26088 ac_status=$?
26089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26090 test $ac_status = 0; }; }
26091 then
26092 gcc_cv_as_lcomm_with_alignment=yes
26093 else
26094 echo "configure: failed program was" >&5
26095 cat conftest.s >&5
26096 fi
26097 rm -f conftest.o conftest.s
26098 fi
26099 fi
26100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26101 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26102 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26103
26104 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26105
26106 fi
26107
26108 # Check whether --enable-gnu-unique-object was given.
26109 if test "${enable_gnu_unique_object+set}" = set; then :
26110 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26111 yes | no) ;;
26112 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26113 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26114 esac
26115 else
26116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26117 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26118 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26119 $as_echo_n "(cached) " >&6
26120 else
26121 gcc_cv_as_gnu_unique_object=no
26122 if test $in_tree_gas = yes; then
26123 if test $in_tree_gas_is_elf = yes \
26124 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26125 then gcc_cv_as_gnu_unique_object=yes
26126 fi
26127 elif test x$gcc_cv_as != x; then
26128 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26129 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26131 (eval $ac_try) 2>&5
26132 ac_status=$?
26133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26134 test $ac_status = 0; }; }
26135 then
26136 gcc_cv_as_gnu_unique_object=yes
26137 else
26138 echo "configure: failed program was" >&5
26139 cat conftest.s >&5
26140 fi
26141 rm -f conftest.o conftest.s
26142 fi
26143 fi
26144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26145 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26146 if test $gcc_cv_as_gnu_unique_object = yes; then
26147 # We need to unquote above to to use the definition from config.gcc.
26148 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26149 if test x$host = x$build -a x$host = x$target &&
26150 ldd --version 2>/dev/null &&
26151 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26152 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26153 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26154 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26155 if test "$glibcnum" -ge 2011 ; then
26156 enable_gnu_unique_object=yes
26157 fi
26158 fi
26159 fi
26160 fi
26161
26162 if test x$enable_gnu_unique_object = xyes; then
26163
26164 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26165
26166 fi
26167
26168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26169 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26170 if test "${gcc_cv_as_line_zero+set}" = set; then :
26171 $as_echo_n "(cached) " >&6
26172 else
26173 gcc_cv_as_line_zero=no
26174 if test $in_tree_gas = yes; then
26175 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26176 then gcc_cv_as_line_zero=yes
26177 fi
26178 elif test "x$gcc_cv_as" != x; then
26179 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26180 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26182 (eval $ac_try) 2>&5
26183 ac_status=$?
26184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26185 test $ac_status = 0; }; } &&
26186 test "x`cat conftest.out`" = x
26187 then
26188 gcc_cv_as_line_zero=yes
26189 else
26190 echo "configure: failed program was" >&5
26191 cat conftest.s >&5
26192 echo "configure: error output was" >&5
26193 cat conftest.out >&5
26194 fi
26195 rm -f conftest.o conftest.s conftest.out
26196 fi
26197 fi
26198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26199 $as_echo "$gcc_cv_as_line_zero" >&6; }
26200 if test "x$gcc_cv_as_line_zero" = xyes; then
26201
26202 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26203
26204 fi
26205
26206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26207 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26208 gcc_cv_ld_eh_frame_hdr=no
26209 if test $in_tree_ld = yes ; then
26210 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 \
26211 && test $in_tree_ld_is_elf = yes; then
26212 gcc_cv_ld_eh_frame_hdr=yes
26213 fi
26214 elif test x$gcc_cv_ld != x; then
26215 if echo "$ld_ver" | grep GNU > /dev/null; then
26216 # Check if linker supports --eh-frame-hdr option
26217 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26218 gcc_cv_ld_eh_frame_hdr=yes
26219 fi
26220 else
26221 case "$target" in
26222 *-*-solaris2*)
26223 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26224 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26225 gcc_cv_ld_eh_frame_hdr=yes
26226 fi
26227 ;;
26228 esac
26229 fi
26230 fi
26231
26232 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26233
26234 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26235
26236 fi
26237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26238 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26239
26240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26241 $as_echo_n "checking linker position independent executable support... " >&6; }
26242 gcc_cv_ld_pie=no
26243 if test $in_tree_ld = yes ; then
26244 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 \
26245 && test $in_tree_ld_is_elf = yes; then
26246 gcc_cv_ld_pie=yes
26247 fi
26248 elif test x$gcc_cv_ld != x; then
26249 # Check if linker supports -pie option
26250 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26251 gcc_cv_ld_pie=yes
26252 fi
26253 fi
26254 if test x"$gcc_cv_ld_pie" = xyes; then
26255
26256 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26257
26258 fi
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26260 $as_echo "$gcc_cv_ld_pie" >&6; }
26261
26262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26263 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26264 gcc_cv_ld_eh_gc_sections=no
26265 if test $in_tree_ld = yes ; then
26266 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 \
26267 && test $in_tree_ld_is_elf = yes; then
26268 gcc_cv_ld_eh_gc_sections=yes
26269 fi
26270 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26271 cat > conftest.s <<EOF
26272 .section .text
26273 .globl _start
26274 .type _start, @function
26275 _start:
26276 .long foo
26277 .size _start, .-_start
26278 .section .text.foo,"ax",@progbits
26279 .type foo, @function
26280 foo:
26281 .long 0
26282 .size foo, .-foo
26283 .section .gcc_except_table.foo,"a",@progbits
26284 .L0:
26285 .long 0
26286 .section .eh_frame,"a",@progbits
26287 .long .L0
26288 EOF
26289 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26290 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26291 | grep "gc-sections option ignored" > /dev/null; then
26292 gcc_cv_ld_eh_gc_sections=no
26293 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26294 | grep gcc_except_table > /dev/null; then
26295 gcc_cv_ld_eh_gc_sections=yes
26296 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26297 if test x$gcc_cv_as_comdat_group != xyes; then
26298 gcc_cv_ld_eh_gc_sections=no
26299 cat > conftest.s <<EOF
26300 .section .text
26301 .globl _start
26302 .type _start, @function
26303 _start:
26304 .long foo
26305 .size _start, .-_start
26306 .section .gnu.linkonce.t.foo,"ax",@progbits
26307 .type foo, @function
26308 foo:
26309 .long 0
26310 .size foo, .-foo
26311 .section .gcc_except_table.foo,"a",@progbits
26312 .L0:
26313 .long 0
26314 .section .eh_frame,"a",@progbits
26315 .long .L0
26316 EOF
26317 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26318 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26319 | grep "gc-sections option ignored" > /dev/null; then
26320 gcc_cv_ld_eh_gc_sections=no
26321 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26322 | grep gcc_except_table > /dev/null; then
26323 gcc_cv_ld_eh_gc_sections=yes
26324 fi
26325 fi
26326 fi
26327 fi
26328 fi
26329 rm -f conftest.s conftest.o conftest
26330 fi
26331 case "$target" in
26332 hppa*-*-linux*)
26333 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26334 gcc_cv_ld_eh_gc_sections=no
26335 ;;
26336 esac
26337 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26338
26339 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26340
26341 fi
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26343 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26344
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26346 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26347 gcc_cv_ld_eh_gc_sections_bug=no
26348 if test $in_tree_ld = yes ; then
26349 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 \
26350 && test $in_tree_ld_is_elf = yes; then
26351 gcc_cv_ld_eh_gc_sections_bug=yes
26352 fi
26353 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
26354 gcc_cv_ld_eh_gc_sections_bug=yes
26355 cat > conftest.s <<EOF
26356 .section .text
26357 .globl _start
26358 .type _start, @function
26359 _start:
26360 .long foo
26361 .size _start, .-_start
26362 .section .text.startup.foo,"ax",@progbits
26363 .type foo, @function
26364 foo:
26365 .long 0
26366 .size foo, .-foo
26367 .section .gcc_except_table.foo,"a",@progbits
26368 .L0:
26369 .long 0
26370 .section .eh_frame,"a",@progbits
26371 .long .L0
26372 EOF
26373 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26374 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26375 | grep "gc-sections option ignored" > /dev/null; then
26376 :
26377 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26378 | grep gcc_except_table > /dev/null; then
26379 gcc_cv_ld_eh_gc_sections_bug=no
26380 fi
26381 fi
26382 rm -f conftest.s conftest.o conftest
26383 fi
26384 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26385
26386 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26387
26388 fi
26389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26390 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26391
26392 # --------
26393 # UNSORTED
26394 # --------
26395
26396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26397 $as_echo_n "checking linker --as-needed support... " >&6; }
26398 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26399 $as_echo_n "(cached) " >&6
26400 else
26401 gcc_cv_ld_as_needed=no
26402 if test $in_tree_ld = yes ; then
26403 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 \
26404 && test $in_tree_ld_is_elf = yes; then
26405 gcc_cv_ld_as_needed=yes
26406 fi
26407 elif test x$gcc_cv_ld != x; then
26408 # Check if linker supports --as-needed and --no-as-needed options
26409 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26410 gcc_cv_ld_as_needed=yes
26411 fi
26412 fi
26413
26414 fi
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26416 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26417 if test x"$gcc_cv_ld_as_needed" = xyes; then
26418
26419 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26420
26421 fi
26422
26423 case "$target:$tm_file" in
26424 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26425 case "$target" in
26426 *-*-linux*)
26427 emul_name="-melf64ppc"
26428 ;;
26429 *-*-freebsd*)
26430 emul_name="-melf64ppc_fbsd"
26431 ;;
26432 esac
26433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26434 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26435 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26436 $as_echo_n "(cached) " >&6
26437 else
26438 gcc_cv_ld_no_dot_syms=no
26439 if test $in_tree_ld = yes ; then
26440 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
26441 gcc_cv_ld_no_dot_syms=yes
26442 fi
26443 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26444 cat > conftest1.s <<EOF
26445 .text
26446 bl .foo
26447 EOF
26448 cat > conftest2.s <<EOF
26449 .section ".opd","aw"
26450 .align 3
26451 .globl foo
26452 .type foo,@function
26453 foo:
26454 .quad .LEfoo,.TOC.@tocbase,0
26455 .text
26456 .LEfoo:
26457 blr
26458 .size foo,.-.LEfoo
26459 EOF
26460 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26461 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26462 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26463 gcc_cv_ld_no_dot_syms=yes
26464 fi
26465 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26466 fi
26467
26468 fi
26469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26470 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26471 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26472
26473 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26474
26475 fi
26476
26477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26478 $as_echo_n "checking linker large toc support... " >&6; }
26479 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26480 $as_echo_n "(cached) " >&6
26481 else
26482 gcc_cv_ld_large_toc=no
26483 if test $in_tree_ld = yes ; then
26484 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
26485 gcc_cv_ld_large_toc=yes
26486 fi
26487 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26488 cat > conftest.s <<EOF
26489 .section ".tbss","awT",@nobits
26490 .align 3
26491 ie0: .space 8
26492 .global _start
26493 .text
26494 _start:
26495 addis 9,13,ie0@got@tprel@ha
26496 ld 9,ie0@got@tprel@l(9)
26497 EOF
26498 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26499 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26500 gcc_cv_ld_large_toc=yes
26501 fi
26502 rm -f conftest conftest.o conftest.s
26503 fi
26504
26505 fi
26506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26507 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26508 if test x"$gcc_cv_ld_large_toc" = xyes; then
26509
26510 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26511
26512 fi
26513 ;;
26514 esac
26515
26516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26517 $as_echo_n "checking linker --build-id support... " >&6; }
26518 if test "${gcc_cv_ld_buildid+set}" = set; then :
26519 $as_echo_n "(cached) " >&6
26520 else
26521 gcc_cv_ld_buildid=no
26522 if test $in_tree_ld = yes ; then
26523 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26524 "$gcc_cv_gld_minor_version" -ge 18 -o \
26525 "$gcc_cv_gld_major_version" -gt 2 \
26526 && test $in_tree_ld_is_elf = yes; then
26527 gcc_cv_ld_buildid=yes
26528 fi
26529 elif test x$gcc_cv_ld != x; then
26530 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26531 gcc_cv_ld_buildid=yes
26532 fi
26533 fi
26534 fi
26535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26536 $as_echo "$gcc_cv_ld_buildid" >&6; }
26537 if test x"$gcc_cv_ld_buildid" = xyes; then
26538
26539 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26540
26541 fi
26542
26543 # Check whether --enable-linker-build-id was given.
26544 if test "${enable_linker_build_id+set}" = set; then :
26545 enableval=$enable_linker_build_id;
26546 else
26547 enable_linker_build_id=no
26548 fi
26549
26550
26551 if test x"$enable_linker_build_id" = xyes; then
26552 if test x"$gcc_cv_ld_buildid" = xyes; then
26553
26554 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26555
26556 else
26557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26558 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26559 fi
26560 fi
26561
26562 # In binutils 2.21, GNU ld gained support for new emulations fully
26563 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26565 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26566 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26567 $as_echo_n "(cached) " >&6
26568 else
26569 gcc_cv_ld_sol2_emulation=no
26570 if test $in_tree_ld = yes ; then
26571 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26572 "$gcc_cv_gld_minor_version" -ge 21 -o \
26573 "$gcc_cv_gld_major_version" -gt 2 \
26574 && test $in_tree_ld_is_elf = yes; then
26575 gcc_cv_ld_sol2_emulation=yes
26576 fi
26577 elif test x$gcc_cv_ld != x; then
26578 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26579 grep _sol2 > /dev/null; then
26580 gcc_cv_ld_sol2_emulation=yes
26581 fi
26582 fi
26583 fi
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26585 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26586 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26587
26588 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26589
26590 fi
26591
26592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26593 $as_echo_n "checking linker --sysroot support... " >&6; }
26594 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26595 $as_echo_n "(cached) " >&6
26596 else
26597 gcc_cv_ld_sysroot=no
26598 if test $in_tree_ld = yes ; then
26599 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
26600 gcc_cv_ld_sysroot=yes
26601 fi
26602 elif test x$gcc_cv_ld != x; then
26603 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26604 gcc_cv_ld_sysroot=yes
26605 fi
26606 fi
26607 fi
26608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26609 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26610 if test x"$gcc_cv_ld_sysroot" = xyes; then
26611
26612 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26613
26614 fi
26615
26616 if test x$with_sysroot = x && test x$host = x$target \
26617 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26618 && test "$prefix" != "NONE"; then
26619
26620 cat >>confdefs.h <<_ACEOF
26621 #define PREFIX_INCLUDE_DIR "$prefix/include"
26622 _ACEOF
26623
26624 fi
26625
26626 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26627 if test "x$with_headers" != x; then
26628 target_header_dir=$with_headers
26629 elif test "x$with_sysroot" = x; then
26630 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26631 elif test "x$with_build_sysroot" != "x"; then
26632 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26633 elif test "x$with_sysroot" = xyes; then
26634 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26635 else
26636 target_header_dir="${with_sysroot}${native_system_header_dir}"
26637 fi
26638 else
26639 target_header_dir=${native_system_header_dir}
26640 fi
26641
26642 # Test for stack protector support in target C library.
26643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26644 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26645 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26646 $as_echo_n "(cached) " >&6
26647 else
26648 gcc_cv_libc_provides_ssp=no
26649 case "$target" in
26650 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26651 # glibc 2.4 and later provides __stack_chk_fail and
26652 # either __stack_chk_guard, or TLS access to stack guard canary.
26653 if test -f $target_header_dir/features.h \
26654 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26655 $target_header_dir/features.h > /dev/null; then
26656 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26657 $target_header_dir/features.h > /dev/null; then
26658 gcc_cv_libc_provides_ssp=yes
26659 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26660 $target_header_dir/features.h > /dev/null \
26661 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26662 $target_header_dir/features.h > /dev/null; then
26663 gcc_cv_libc_provides_ssp=yes
26664 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26665 $target_header_dir/features.h > /dev/null && \
26666 test -f $target_header_dir/bits/uClibc_config.h && \
26667 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26668 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26669 gcc_cv_libc_provides_ssp=yes
26670 fi
26671 # all versions of Bionic support stack protector
26672 elif test -f $target_header_dir/sys/cdefs.h \
26673 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26674 $target_header_dir/sys/cdefs.h > /dev/null; then
26675 gcc_cv_libc_provides_ssp=yes
26676 fi
26677 ;;
26678 *-*-gnu*)
26679 # Avoid complicated tests (see
26680 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26681 # simply assert that glibc does provide this, which is true for all
26682 # realistically usable GNU/Hurd configurations.
26683 gcc_cv_libc_provides_ssp=yes;;
26684 *-*-darwin* | *-*-freebsd*)
26685 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26686 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26687 gcc_cv_libc_provides_ssp=yes
26688 else
26689 echo "no __stack_chk_fail on this target"
26690 fi
26691
26692 ;;
26693 *) gcc_cv_libc_provides_ssp=no ;;
26694 esac
26695 fi
26696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26697 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26698
26699 if test x$gcc_cv_libc_provides_ssp = xyes; then
26700
26701 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26702
26703 fi
26704
26705 # Test for <sys/sdt.h> on the target.
26706
26707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26708 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26709 have_sys_sdt_h=no
26710 if test -f $target_header_dir/sys/sdt.h; then
26711 have_sys_sdt_h=yes
26712
26713 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26714
26715 fi
26716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26717 $as_echo "$have_sys_sdt_h" >&6; }
26718
26719 # Check if TFmode long double should be used by default or not.
26720 # Some glibc targets used DFmode long double, but with glibc 2.4
26721 # and later they can use TFmode.
26722 case "$target" in
26723 powerpc*-*-linux* | \
26724 sparc*-*-linux* | \
26725 s390*-*-linux* | \
26726 alpha*-*-linux*)
26727
26728 # Check whether --with-long-double-128 was given.
26729 if test "${with_long_double_128+set}" = set; then :
26730 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26731 else
26732 gcc_cv_target_ldbl128=no
26733 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26734 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26735 && gcc_cv_target_ldbl128=yes
26736
26737 fi
26738
26739 ;;
26740 esac
26741 if test x$gcc_cv_target_ldbl128 = xyes; then
26742
26743 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26744
26745 fi
26746
26747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26748 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26749 gcc_cv_target_dl_iterate_phdr=unknown
26750 case "$target" in
26751 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26752 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26753 # libdl there, both complicating its use and breaking compatibility
26754 # between Solaris 10 updates.
26755 *-*-solaris2.1[1-9]*)
26756 # <link.h> needs both a dl_iterate_phdr declaration and support for
26757 # compilation with largefile support.
26758 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26759 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26760 gcc_cv_target_dl_iterate_phdr=yes
26761 else
26762 gcc_cv_target_dl_iterate_phdr=no
26763 fi
26764 ;;
26765 esac
26766
26767 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26768
26769 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26770
26771 fi
26772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26773 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26774
26775 # Find out what GC implementation we want, or may, use.
26776
26777 # Check whether --with-gc was given.
26778 if test "${with_gc+set}" = set; then :
26779 withval=$with_gc; case "$withval" in
26780 page)
26781 GGC=ggc-$withval
26782 ;;
26783 zone)
26784 GGC=ggc-$withval
26785
26786 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26787
26788 ;;
26789 *)
26790 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26791 ;;
26792 esac
26793 else
26794 GGC=ggc-page
26795 fi
26796
26797
26798 echo "Using $GGC for garbage collection."
26799
26800 # Libraries to use on the host. This will normally be set by the top
26801 # level Makefile. Here we simply capture the value for our Makefile.
26802 if test -z "${HOST_LIBS+set}"; then
26803 HOST_LIBS=
26804 fi
26805
26806
26807 # Use the system's zlib library.
26808 zlibdir=-L../zlib
26809 zlibinc="-I\$(srcdir)/../zlib"
26810
26811 # Check whether --with-system-zlib was given.
26812 if test "${with_system_zlib+set}" = set; then :
26813 withval=$with_system_zlib; zlibdir=
26814 zlibinc=
26815
26816 fi
26817
26818
26819
26820
26821
26822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26823 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26824 # Check whether --enable-maintainer-mode was given.
26825 if test "${enable_maintainer_mode+set}" = set; then :
26826 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26827 else
26828 maintainer_mode=no
26829 fi
26830
26831
26832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26833 $as_echo "$maintainer_mode" >&6; }
26834
26835 if test "$maintainer_mode" = "yes"; then
26836 MAINT=''
26837 else
26838 MAINT='#'
26839 fi
26840
26841 # --------------
26842 # Language hooks
26843 # --------------
26844
26845 # Make empty files to contain the specs and options for each language.
26846 # Then add #include lines to for a compiler that has specs and/or options.
26847
26848 subdirs=
26849 lang_opt_files=
26850 lang_specs_files=
26851 lang_tree_files=
26852 # These (without "all_") are set in each config-lang.in.
26853 # `language' must be a single word so is spelled singularly.
26854 all_languages=
26855 all_compilers=
26856 all_outputs='Makefile'
26857 # List of language makefile fragments.
26858 all_lang_makefrags=
26859 # Additional files for gengtype
26860 all_gtfiles="$target_gtfiles"
26861
26862 # These are the languages that are set in --enable-languages,
26863 # and are available in the GCC tree.
26864 all_selected_languages=
26865
26866 # Add the language fragments.
26867 # Languages are added via two mechanisms. Some information must be
26868 # recorded in makefile variables, these are defined in config-lang.in.
26869 # We accumulate them and plug them into the main Makefile.
26870 # The other mechanism is a set of hooks for each of the main targets
26871 # like `clean', `install', etc.
26872
26873 language_hooks="Make-hooks"
26874
26875 for lang in ${srcdir}/*/config-lang.in
26876 do
26877 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26878
26879 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26880 if test "x$lang_alias" = x
26881 then
26882 echo "$lang doesn't set \$language." 1>&2
26883 exit 1
26884 fi
26885 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26886 subdirs="$subdirs $subdir"
26887
26888 # $gcc_subdir is where the gcc integration files are to be found
26889 # for a language, both for internal compiler purposes (compiler
26890 # sources implementing front-end to GCC tree converters), and for
26891 # build infrastructure purposes (Make-lang.in, etc.)
26892 #
26893 # This will be <subdir> (relative to $srcdir) if a line like
26894 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26895 # is found in <langdir>/config-lang.in, and will remain <langdir>
26896 # otherwise.
26897 #
26898 # Except for the language alias (fetched above), the regular
26899 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26900 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26901 # only this and the language alias.
26902
26903 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26904 if [ "$gcc_subdir" = "" ]; then
26905 gcc_subdir="$subdir"
26906 fi
26907
26908 case ",$enable_languages," in
26909 *,$lang_alias,*)
26910 all_selected_languages="$all_selected_languages $lang_alias"
26911 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26912 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26913 fi
26914 ;;
26915 esac
26916
26917 language=
26918 boot_language=
26919 compilers=
26920 outputs=
26921 gtfiles=
26922 subdir_requires=
26923 . ${srcdir}/$gcc_subdir/config-lang.in
26924 if test "x$language" = x
26925 then
26926 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26927 exit 1
26928 fi
26929
26930 ok=:
26931 case ",$enable_languages," in
26932 *,$lang_alias,*) ;;
26933 *)
26934 for i in $subdir_requires; do
26935 test -f "${srcdir}/$i/config-lang.in" && continue
26936 ok=false
26937 break
26938 done
26939 ;;
26940 esac
26941 $ok || continue
26942
26943 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26944 if test -f $srcdir/$gcc_subdir/lang.opt; then
26945 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26946 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26947 fi
26948 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26949 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26950 fi
26951 all_languages="$all_languages $language"
26952 all_compilers="$all_compilers $compilers"
26953 all_outputs="$all_outputs $outputs"
26954 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26955 case ",$enable_languages," in
26956 *,lto,*)
26957
26958 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26959
26960 enable_lto=yes
26961
26962 ;;
26963 *) ;;
26964 esac
26965 done
26966
26967 # Pick up gtfiles for c
26968 gtfiles=
26969 . ${srcdir}/c-config-lang.in
26970 all_gtfiles="$all_gtfiles [c] $gtfiles"
26971
26972 check_languages=
26973 for language in $all_selected_languages
26974 do
26975 check_languages="$check_languages check-$language"
26976 done
26977
26978 # We link each language in with a set of hooks, reached indirectly via
26979 # lang.${target}. Only do so for selected languages.
26980
26981 rm -f Make-hooks
26982 touch Make-hooks
26983 target_list="all.cross start.encap rest.encap tags \
26984 install-common install-man install-info install-pdf install-html dvi \
26985 pdf html uninstall info man srcextra srcman srcinfo \
26986 mostlyclean clean distclean maintainer-clean install-plugin"
26987
26988 for t in $target_list
26989 do
26990 x=
26991 for lang in $all_selected_languages
26992 do
26993 x="$x $lang.$t"
26994 done
26995 echo "lang.$t: $x" >> Make-hooks
26996 done
26997
26998 # --------
26999 # Option include files
27000 # --------
27001
27002 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27003 option_includes="option-includes.mk"
27004
27005
27006 # --------
27007 # UNSORTED
27008 # --------
27009
27010 # Create .gdbinit.
27011
27012 echo "dir ." > .gdbinit
27013 echo "dir ${srcdir}" >> .gdbinit
27014 if test x$gdb_needs_out_file_path = xyes
27015 then
27016 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27017 fi
27018 if test "x$subdirs" != x; then
27019 for s in $subdirs
27020 do
27021 echo "dir ${srcdir}/$s" >> .gdbinit
27022 done
27023 fi
27024 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27025
27026 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27027
27028
27029
27030 # Find a directory in which to install a shared libgcc.
27031
27032 # Check whether --enable-version-specific-runtime-libs was given.
27033 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27034 enableval=$enable_version_specific_runtime_libs;
27035 fi
27036
27037
27038 # Substitute configuration variables
27039
27040
27041
27042
27043
27044
27045
27046
27047
27048
27049
27050
27051
27052
27053
27054
27055
27056
27057
27058
27059
27060
27061
27062
27063
27064
27065
27066
27067
27068
27069
27070
27071
27072
27073
27074
27075
27076
27077
27078
27079
27080
27081
27082
27083
27084
27085
27086
27087
27088
27089
27090
27091
27092
27093
27094
27095
27096
27097
27098
27099
27100
27101 # Echo link setup.
27102 if test x${build} = x${host} ; then
27103 if test x${host} = x${target} ; then
27104 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27105 else
27106 echo "Links are now set up to build a cross-compiler" 1>&2
27107 echo " from ${host} to ${target}." 1>&2
27108 fi
27109 else
27110 if test x${host} = x${target} ; then
27111 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27112 echo " for ${target}." 1>&2
27113 else
27114 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27115 echo " from ${host} to ${target}." 1>&2
27116 fi
27117 fi
27118
27119
27120
27121
27122
27123
27124
27125
27126
27127 if test "x${CLOOGLIBS}" != "x" ; then
27128
27129 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27130
27131 fi
27132
27133 # Check for plugin support
27134 # Check whether --enable-plugin was given.
27135 if test "${enable_plugin+set}" = set; then :
27136 enableval=$enable_plugin; enable_plugin=$enableval
27137 else
27138 enable_plugin=yes; default_plugin=yes
27139 fi
27140
27141
27142 pluginlibs=
27143
27144 case "${host}" in
27145 *-*-darwin*)
27146 if test x$build = x$host; then
27147 export_sym_check="nm${exeext} -g"
27148 elif test x$host = x$target; then
27149 export_sym_check="$gcc_cv_nm -g"
27150 else
27151 export_sym_check=
27152 fi
27153 ;;
27154 *)
27155 if test x$build = x$host; then
27156 export_sym_check="objdump${exeext} -T"
27157 elif test x$host = x$target; then
27158 export_sym_check="$gcc_cv_objdump -T"
27159 else
27160 export_sym_check=
27161 fi
27162 ;;
27163 esac
27164
27165 if test x"$enable_plugin" = x"yes"; then
27166
27167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27168 $as_echo_n "checking for exported symbols... " >&6; }
27169 if test "x$export_sym_check" != x; then
27170 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27171 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27172 if $export_sym_check conftest | grep foobar > /dev/null; then
27173 : # No need to use a flag
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27175 $as_echo "yes" >&6; }
27176 else
27177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27178 $as_echo "yes" >&6; }
27179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27180 $as_echo_n "checking for -rdynamic... " >&6; }
27181 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27182 if $export_sym_check conftest | grep foobar > /dev/null; then
27183 plugin_rdynamic=yes
27184 pluginlibs="-rdynamic"
27185 else
27186 plugin_rdynamic=no
27187 enable_plugin=no
27188 fi
27189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27190 $as_echo "$plugin_rdynamic" >&6; }
27191 fi
27192 else
27193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27194 $as_echo "unable to check" >&6; }
27195 fi
27196
27197 # Check -ldl
27198 saved_LIBS="$LIBS"
27199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27200 $as_echo_n "checking for library containing dlopen... " >&6; }
27201 if test "${ac_cv_search_dlopen+set}" = set; then :
27202 $as_echo_n "(cached) " >&6
27203 else
27204 ac_func_search_save_LIBS=$LIBS
27205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27206 /* end confdefs.h. */
27207
27208 /* Override any GCC internal prototype to avoid an error.
27209 Use char because int might match the return type of a GCC
27210 builtin and then its argument prototype would still apply. */
27211 #ifdef __cplusplus
27212 extern "C"
27213 #endif
27214 char dlopen ();
27215 int
27216 main ()
27217 {
27218 return dlopen ();
27219 ;
27220 return 0;
27221 }
27222 _ACEOF
27223 for ac_lib in '' dl; do
27224 if test -z "$ac_lib"; then
27225 ac_res="none required"
27226 else
27227 ac_res=-l$ac_lib
27228 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27229 fi
27230 if ac_fn_c_try_link "$LINENO"; then :
27231 ac_cv_search_dlopen=$ac_res
27232 fi
27233 rm -f core conftest.err conftest.$ac_objext \
27234 conftest$ac_exeext
27235 if test "${ac_cv_search_dlopen+set}" = set; then :
27236 break
27237 fi
27238 done
27239 if test "${ac_cv_search_dlopen+set}" = set; then :
27240
27241 else
27242 ac_cv_search_dlopen=no
27243 fi
27244 rm conftest.$ac_ext
27245 LIBS=$ac_func_search_save_LIBS
27246 fi
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27248 $as_echo "$ac_cv_search_dlopen" >&6; }
27249 ac_res=$ac_cv_search_dlopen
27250 if test "$ac_res" != no; then :
27251 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27252
27253 fi
27254
27255 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27256 pluginlibs="$pluginlibs -ldl"
27257 fi
27258 LIBS="$saved_LIBS"
27259
27260 # Check that we can build shared objects with -fPIC -shared
27261 saved_LDFLAGS="$LDFLAGS"
27262 saved_CFLAGS="$CFLAGS"
27263 case "${host}" in
27264 *-*-darwin*)
27265 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27266 CFLAGS="$CFLAGS -fPIC"
27267 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27268 ;;
27269 *)
27270 CFLAGS="$CFLAGS -fPIC"
27271 LDFLAGS="$LDFLAGS -fPIC -shared"
27272 ;;
27273 esac
27274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27275 $as_echo_n "checking for -fPIC -shared... " >&6; }
27276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27277 /* end confdefs.h. */
27278 extern int X;
27279 int
27280 main ()
27281 {
27282 return X == 0;
27283 ;
27284 return 0;
27285 }
27286 _ACEOF
27287 if ac_fn_c_try_link "$LINENO"; then :
27288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27289 $as_echo "yes" >&6; }; have_pic_shared=yes
27290 else
27291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27292 $as_echo "no" >&6; }; have_pic_shared=no
27293 fi
27294 rm -f core conftest.err conftest.$ac_objext \
27295 conftest$ac_exeext conftest.$ac_ext
27296 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27297 pluginlibs=
27298 enable_plugin=no
27299 fi
27300 LDFLAGS="$saved_LDFLAGS"
27301 CFLAGS="$saved_CFLAGS"
27302
27303 # If plugin support had been requested but not available, fail.
27304 if test x"$enable_plugin" = x"no" ; then
27305 if test x"$default_plugin" != x"yes"; then
27306 as_fn_error "
27307 Building GCC with plugin support requires a host that supports
27308 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27309 fi
27310 fi
27311 fi
27312
27313
27314
27315 if test x"$enable_plugin" = x"yes"; then
27316
27317 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27318
27319 fi
27320
27321
27322 # Check whether --enable-libquadmath-support was given.
27323 if test "${enable_libquadmath_support+set}" = set; then :
27324 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27325 else
27326 ENABLE_LIBQUADMATH_SUPPORT=yes
27327 fi
27328
27329 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27330
27331 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27332
27333 fi
27334
27335
27336 # Specify what hash style to use by default.
27337
27338 # Check whether --with-linker-hash-style was given.
27339 if test "${with_linker_hash_style+set}" = set; then :
27340 withval=$with_linker_hash_style; case x"$withval" in
27341 xsysv)
27342 LINKER_HASH_STYLE=sysv
27343 ;;
27344 xgnu)
27345 LINKER_HASH_STYLE=gnu
27346 ;;
27347 xboth)
27348 LINKER_HASH_STYLE=both
27349 ;;
27350 *)
27351 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27352 ;;
27353 esac
27354 else
27355 LINKER_HASH_STYLE=''
27356 fi
27357
27358 if test x"${LINKER_HASH_STYLE}" != x; then
27359
27360 cat >>confdefs.h <<_ACEOF
27361 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27362 _ACEOF
27363
27364 fi
27365
27366 # Configure the subdirectories
27367 # AC_CONFIG_SUBDIRS($subdirs)
27368
27369 # Create the Makefile
27370 # and configure language subdirectories
27371 ac_config_files="$ac_config_files $all_outputs"
27372
27373
27374 ac_config_commands="$ac_config_commands default"
27375
27376 cat >confcache <<\_ACEOF
27377 # This file is a shell script that caches the results of configure
27378 # tests run on this system so they can be shared between configure
27379 # scripts and configure runs, see configure's option --config-cache.
27380 # It is not useful on other systems. If it contains results you don't
27381 # want to keep, you may remove or edit it.
27382 #
27383 # config.status only pays attention to the cache file if you give it
27384 # the --recheck option to rerun configure.
27385 #
27386 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27387 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27388 # following values.
27389
27390 _ACEOF
27391
27392 # The following way of writing the cache mishandles newlines in values,
27393 # but we know of no workaround that is simple, portable, and efficient.
27394 # So, we kill variables containing newlines.
27395 # Ultrix sh set writes to stderr and can't be redirected directly,
27396 # and sets the high bit in the cache file unless we assign to the vars.
27397 (
27398 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27399 eval ac_val=\$$ac_var
27400 case $ac_val in #(
27401 *${as_nl}*)
27402 case $ac_var in #(
27403 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27404 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27405 esac
27406 case $ac_var in #(
27407 _ | IFS | as_nl) ;; #(
27408 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27409 *) { eval $ac_var=; unset $ac_var;} ;;
27410 esac ;;
27411 esac
27412 done
27413
27414 (set) 2>&1 |
27415 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27416 *${as_nl}ac_space=\ *)
27417 # `set' does not quote correctly, so add quotes: double-quote
27418 # substitution turns \\\\ into \\, and sed turns \\ into \.
27419 sed -n \
27420 "s/'/'\\\\''/g;
27421 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27422 ;; #(
27423 *)
27424 # `set' quotes correctly as required by POSIX, so do not add quotes.
27425 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27426 ;;
27427 esac |
27428 sort
27429 ) |
27430 sed '
27431 /^ac_cv_env_/b end
27432 t clear
27433 :clear
27434 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27435 t end
27436 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27437 :end' >>confcache
27438 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27439 if test -w "$cache_file"; then
27440 test "x$cache_file" != "x/dev/null" &&
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27442 $as_echo "$as_me: updating cache $cache_file" >&6;}
27443 cat confcache >$cache_file
27444 else
27445 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27446 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27447 fi
27448 fi
27449 rm -f confcache
27450
27451 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27452 # Let make expand exec_prefix.
27453 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27454
27455 DEFS=-DHAVE_CONFIG_H
27456
27457 ac_libobjs=
27458 ac_ltlibobjs=
27459 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27460 # 1. Remove the extension, and $U if already installed.
27461 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27462 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27463 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27464 # will be set to the directory where LIBOBJS objects are built.
27465 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27466 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27467 done
27468 LIBOBJS=$ac_libobjs
27469
27470 LTLIBOBJS=$ac_ltlibobjs
27471
27472
27473
27474
27475 : ${CONFIG_STATUS=./config.status}
27476 ac_write_fail=0
27477 ac_clean_files_save=$ac_clean_files
27478 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27480 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27481 as_write_fail=0
27482 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27483 #! $SHELL
27484 # Generated by $as_me.
27485 # Run this file to recreate the current configuration.
27486 # Compiler output produced by configure, useful for debugging
27487 # configure, is in config.log if it exists.
27488
27489 debug=false
27490 ac_cs_recheck=false
27491 ac_cs_silent=false
27492
27493 SHELL=\${CONFIG_SHELL-$SHELL}
27494 export SHELL
27495 _ASEOF
27496 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27497 ## -------------------- ##
27498 ## M4sh Initialization. ##
27499 ## -------------------- ##
27500
27501 # Be more Bourne compatible
27502 DUALCASE=1; export DUALCASE # for MKS sh
27503 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27504 emulate sh
27505 NULLCMD=:
27506 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27507 # is contrary to our usage. Disable this feature.
27508 alias -g '${1+"$@"}'='"$@"'
27509 setopt NO_GLOB_SUBST
27510 else
27511 case `(set -o) 2>/dev/null` in #(
27512 *posix*) :
27513 set -o posix ;; #(
27514 *) :
27515 ;;
27516 esac
27517 fi
27518
27519
27520 as_nl='
27521 '
27522 export as_nl
27523 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27524 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27525 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27526 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27527 # Prefer a ksh shell builtin over an external printf program on Solaris,
27528 # but without wasting forks for bash or zsh.
27529 if test -z "$BASH_VERSION$ZSH_VERSION" \
27530 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27531 as_echo='print -r --'
27532 as_echo_n='print -rn --'
27533 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27534 as_echo='printf %s\n'
27535 as_echo_n='printf %s'
27536 else
27537 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27538 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27539 as_echo_n='/usr/ucb/echo -n'
27540 else
27541 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27542 as_echo_n_body='eval
27543 arg=$1;
27544 case $arg in #(
27545 *"$as_nl"*)
27546 expr "X$arg" : "X\\(.*\\)$as_nl";
27547 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27548 esac;
27549 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27550 '
27551 export as_echo_n_body
27552 as_echo_n='sh -c $as_echo_n_body as_echo'
27553 fi
27554 export as_echo_body
27555 as_echo='sh -c $as_echo_body as_echo'
27556 fi
27557
27558 # The user is always right.
27559 if test "${PATH_SEPARATOR+set}" != set; then
27560 PATH_SEPARATOR=:
27561 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27562 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27563 PATH_SEPARATOR=';'
27564 }
27565 fi
27566
27567
27568 # IFS
27569 # We need space, tab and new line, in precisely that order. Quoting is
27570 # there to prevent editors from complaining about space-tab.
27571 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27572 # splitting by setting IFS to empty value.)
27573 IFS=" "" $as_nl"
27574
27575 # Find who we are. Look in the path if we contain no directory separator.
27576 case $0 in #((
27577 *[\\/]* ) as_myself=$0 ;;
27578 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27579 for as_dir in $PATH
27580 do
27581 IFS=$as_save_IFS
27582 test -z "$as_dir" && as_dir=.
27583 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27584 done
27585 IFS=$as_save_IFS
27586
27587 ;;
27588 esac
27589 # We did not find ourselves, most probably we were run as `sh COMMAND'
27590 # in which case we are not to be found in the path.
27591 if test "x$as_myself" = x; then
27592 as_myself=$0
27593 fi
27594 if test ! -f "$as_myself"; then
27595 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27596 exit 1
27597 fi
27598
27599 # Unset variables that we do not need and which cause bugs (e.g. in
27600 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27601 # suppresses any "Segmentation fault" message there. '((' could
27602 # trigger a bug in pdksh 5.2.14.
27603 for as_var in BASH_ENV ENV MAIL MAILPATH
27604 do eval test x\${$as_var+set} = xset \
27605 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27606 done
27607 PS1='$ '
27608 PS2='> '
27609 PS4='+ '
27610
27611 # NLS nuisances.
27612 LC_ALL=C
27613 export LC_ALL
27614 LANGUAGE=C
27615 export LANGUAGE
27616
27617 # CDPATH.
27618 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27619
27620
27621 # as_fn_error ERROR [LINENO LOG_FD]
27622 # ---------------------------------
27623 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27624 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27625 # script with status $?, using 1 if that was 0.
27626 as_fn_error ()
27627 {
27628 as_status=$?; test $as_status -eq 0 && as_status=1
27629 if test "$3"; then
27630 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27631 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27632 fi
27633 $as_echo "$as_me: error: $1" >&2
27634 as_fn_exit $as_status
27635 } # as_fn_error
27636
27637
27638 # as_fn_set_status STATUS
27639 # -----------------------
27640 # Set $? to STATUS, without forking.
27641 as_fn_set_status ()
27642 {
27643 return $1
27644 } # as_fn_set_status
27645
27646 # as_fn_exit STATUS
27647 # -----------------
27648 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27649 as_fn_exit ()
27650 {
27651 set +e
27652 as_fn_set_status $1
27653 exit $1
27654 } # as_fn_exit
27655
27656 # as_fn_unset VAR
27657 # ---------------
27658 # Portably unset VAR.
27659 as_fn_unset ()
27660 {
27661 { eval $1=; unset $1;}
27662 }
27663 as_unset=as_fn_unset
27664 # as_fn_append VAR VALUE
27665 # ----------------------
27666 # Append the text in VALUE to the end of the definition contained in VAR. Take
27667 # advantage of any shell optimizations that allow amortized linear growth over
27668 # repeated appends, instead of the typical quadratic growth present in naive
27669 # implementations.
27670 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27671 eval 'as_fn_append ()
27672 {
27673 eval $1+=\$2
27674 }'
27675 else
27676 as_fn_append ()
27677 {
27678 eval $1=\$$1\$2
27679 }
27680 fi # as_fn_append
27681
27682 # as_fn_arith ARG...
27683 # ------------------
27684 # Perform arithmetic evaluation on the ARGs, and store the result in the
27685 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27686 # must be portable across $(()) and expr.
27687 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27688 eval 'as_fn_arith ()
27689 {
27690 as_val=$(( $* ))
27691 }'
27692 else
27693 as_fn_arith ()
27694 {
27695 as_val=`expr "$@" || test $? -eq 1`
27696 }
27697 fi # as_fn_arith
27698
27699
27700 if expr a : '\(a\)' >/dev/null 2>&1 &&
27701 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27702 as_expr=expr
27703 else
27704 as_expr=false
27705 fi
27706
27707 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27708 as_basename=basename
27709 else
27710 as_basename=false
27711 fi
27712
27713 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27714 as_dirname=dirname
27715 else
27716 as_dirname=false
27717 fi
27718
27719 as_me=`$as_basename -- "$0" ||
27720 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27721 X"$0" : 'X\(//\)$' \| \
27722 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27723 $as_echo X/"$0" |
27724 sed '/^.*\/\([^/][^/]*\)\/*$/{
27725 s//\1/
27726 q
27727 }
27728 /^X\/\(\/\/\)$/{
27729 s//\1/
27730 q
27731 }
27732 /^X\/\(\/\).*/{
27733 s//\1/
27734 q
27735 }
27736 s/.*/./; q'`
27737
27738 # Avoid depending upon Character Ranges.
27739 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27740 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27741 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27742 as_cr_digits='0123456789'
27743 as_cr_alnum=$as_cr_Letters$as_cr_digits
27744
27745 ECHO_C= ECHO_N= ECHO_T=
27746 case `echo -n x` in #(((((
27747 -n*)
27748 case `echo 'xy\c'` in
27749 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27750 xy) ECHO_C='\c';;
27751 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27752 ECHO_T=' ';;
27753 esac;;
27754 *)
27755 ECHO_N='-n';;
27756 esac
27757
27758 rm -f conf$$ conf$$.exe conf$$.file
27759 if test -d conf$$.dir; then
27760 rm -f conf$$.dir/conf$$.file
27761 else
27762 rm -f conf$$.dir
27763 mkdir conf$$.dir 2>/dev/null
27764 fi
27765 if (echo >conf$$.file) 2>/dev/null; then
27766 if ln -s conf$$.file conf$$ 2>/dev/null; then
27767 as_ln_s='ln -s'
27768 # ... but there are two gotchas:
27769 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27770 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27771 # In both cases, we have to default to `cp -p'.
27772 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27773 as_ln_s='cp -p'
27774 elif ln conf$$.file conf$$ 2>/dev/null; then
27775 as_ln_s=ln
27776 else
27777 as_ln_s='cp -p'
27778 fi
27779 else
27780 as_ln_s='cp -p'
27781 fi
27782 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27783 rmdir conf$$.dir 2>/dev/null
27784
27785
27786 # as_fn_mkdir_p
27787 # -------------
27788 # Create "$as_dir" as a directory, including parents if necessary.
27789 as_fn_mkdir_p ()
27790 {
27791
27792 case $as_dir in #(
27793 -*) as_dir=./$as_dir;;
27794 esac
27795 test -d "$as_dir" || eval $as_mkdir_p || {
27796 as_dirs=
27797 while :; do
27798 case $as_dir in #(
27799 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27800 *) as_qdir=$as_dir;;
27801 esac
27802 as_dirs="'$as_qdir' $as_dirs"
27803 as_dir=`$as_dirname -- "$as_dir" ||
27804 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27805 X"$as_dir" : 'X\(//\)[^/]' \| \
27806 X"$as_dir" : 'X\(//\)$' \| \
27807 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27808 $as_echo X"$as_dir" |
27809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27810 s//\1/
27811 q
27812 }
27813 /^X\(\/\/\)[^/].*/{
27814 s//\1/
27815 q
27816 }
27817 /^X\(\/\/\)$/{
27818 s//\1/
27819 q
27820 }
27821 /^X\(\/\).*/{
27822 s//\1/
27823 q
27824 }
27825 s/.*/./; q'`
27826 test -d "$as_dir" && break
27827 done
27828 test -z "$as_dirs" || eval "mkdir $as_dirs"
27829 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27830
27831
27832 } # as_fn_mkdir_p
27833 if mkdir -p . 2>/dev/null; then
27834 as_mkdir_p='mkdir -p "$as_dir"'
27835 else
27836 test -d ./-p && rmdir ./-p
27837 as_mkdir_p=false
27838 fi
27839
27840 if test -x / >/dev/null 2>&1; then
27841 as_test_x='test -x'
27842 else
27843 if ls -dL / >/dev/null 2>&1; then
27844 as_ls_L_option=L
27845 else
27846 as_ls_L_option=
27847 fi
27848 as_test_x='
27849 eval sh -c '\''
27850 if test -d "$1"; then
27851 test -d "$1/.";
27852 else
27853 case $1 in #(
27854 -*)set "./$1";;
27855 esac;
27856 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27857 ???[sx]*):;;*)false;;esac;fi
27858 '\'' sh
27859 '
27860 fi
27861 as_executable_p=$as_test_x
27862
27863 # Sed expression to map a string onto a valid CPP name.
27864 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27865
27866 # Sed expression to map a string onto a valid variable name.
27867 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27868
27869
27870 exec 6>&1
27871 ## ----------------------------------- ##
27872 ## Main body of $CONFIG_STATUS script. ##
27873 ## ----------------------------------- ##
27874 _ASEOF
27875 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27876
27877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27878 # Save the log message, to keep $0 and so on meaningful, and to
27879 # report actual input values of CONFIG_FILES etc. instead of their
27880 # values after options handling.
27881 ac_log="
27882 This file was extended by $as_me, which was
27883 generated by GNU Autoconf 2.64. Invocation command line was
27884
27885 CONFIG_FILES = $CONFIG_FILES
27886 CONFIG_HEADERS = $CONFIG_HEADERS
27887 CONFIG_LINKS = $CONFIG_LINKS
27888 CONFIG_COMMANDS = $CONFIG_COMMANDS
27889 $ $0 $@
27890
27891 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27892 "
27893
27894 _ACEOF
27895
27896 case $ac_config_files in *"
27897 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27898 esac
27899
27900 case $ac_config_headers in *"
27901 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27902 esac
27903
27904
27905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27906 # Files that config.status was made for.
27907 config_files="$ac_config_files"
27908 config_headers="$ac_config_headers"
27909 config_commands="$ac_config_commands"
27910
27911 _ACEOF
27912
27913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27914 ac_cs_usage="\
27915 \`$as_me' instantiates files and other configuration actions
27916 from templates according to the current configuration. Unless the files
27917 and actions are specified as TAGs, all are instantiated by default.
27918
27919 Usage: $0 [OPTION]... [TAG]...
27920
27921 -h, --help print this help, then exit
27922 -V, --version print version number and configuration settings, then exit
27923 -q, --quiet, --silent
27924 do not print progress messages
27925 -d, --debug don't remove temporary files
27926 --recheck update $as_me by reconfiguring in the same conditions
27927 --file=FILE[:TEMPLATE]
27928 instantiate the configuration file FILE
27929 --header=FILE[:TEMPLATE]
27930 instantiate the configuration header FILE
27931
27932 Configuration files:
27933 $config_files
27934
27935 Configuration headers:
27936 $config_headers
27937
27938 Configuration commands:
27939 $config_commands
27940
27941 Report bugs to the package provider."
27942
27943 _ACEOF
27944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27945 ac_cs_version="\\
27946 config.status
27947 configured by $0, generated by GNU Autoconf 2.64,
27948 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27949
27950 Copyright (C) 2009 Free Software Foundation, Inc.
27951 This config.status script is free software; the Free Software Foundation
27952 gives unlimited permission to copy, distribute and modify it."
27953
27954 ac_pwd='$ac_pwd'
27955 srcdir='$srcdir'
27956 AWK='$AWK'
27957 test -n "\$AWK" || AWK=awk
27958 _ACEOF
27959
27960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27961 # The default lists apply if the user does not specify any file.
27962 ac_need_defaults=:
27963 while test $# != 0
27964 do
27965 case $1 in
27966 --*=*)
27967 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27968 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27969 ac_shift=:
27970 ;;
27971 *)
27972 ac_option=$1
27973 ac_optarg=$2
27974 ac_shift=shift
27975 ;;
27976 esac
27977
27978 case $ac_option in
27979 # Handling of the options.
27980 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27981 ac_cs_recheck=: ;;
27982 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27983 $as_echo "$ac_cs_version"; exit ;;
27984 --debug | --debu | --deb | --de | --d | -d )
27985 debug=: ;;
27986 --file | --fil | --fi | --f )
27987 $ac_shift
27988 case $ac_optarg in
27989 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27990 esac
27991 as_fn_append CONFIG_FILES " '$ac_optarg'"
27992 ac_need_defaults=false;;
27993 --header | --heade | --head | --hea )
27994 $ac_shift
27995 case $ac_optarg in
27996 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27997 esac
27998 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27999 ac_need_defaults=false;;
28000 --he | --h)
28001 # Conflict between --help and --header
28002 as_fn_error "ambiguous option: \`$1'
28003 Try \`$0 --help' for more information.";;
28004 --help | --hel | -h )
28005 $as_echo "$ac_cs_usage"; exit ;;
28006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28007 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28008 ac_cs_silent=: ;;
28009
28010 # This is an error.
28011 -*) as_fn_error "unrecognized option: \`$1'
28012 Try \`$0 --help' for more information." ;;
28013
28014 *) as_fn_append ac_config_targets " $1"
28015 ac_need_defaults=false ;;
28016
28017 esac
28018 shift
28019 done
28020
28021 ac_configure_extra_args=
28022
28023 if $ac_cs_silent; then
28024 exec 6>/dev/null
28025 ac_configure_extra_args="$ac_configure_extra_args --silent"
28026 fi
28027
28028 _ACEOF
28029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28030 if \$ac_cs_recheck; then
28031 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28032 shift
28033 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28034 CONFIG_SHELL='$SHELL'
28035 export CONFIG_SHELL
28036 exec "\$@"
28037 fi
28038
28039 _ACEOF
28040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28041 exec 5>>config.log
28042 {
28043 echo
28044 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28045 ## Running $as_me. ##
28046 _ASBOX
28047 $as_echo "$ac_log"
28048 } >&5
28049
28050 _ACEOF
28051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28052 #
28053 # INIT-COMMANDS
28054 #
28055 subdirs='$subdirs'
28056
28057 _ACEOF
28058
28059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28060
28061 # Handling of arguments.
28062 for ac_config_target in $ac_config_targets
28063 do
28064 case $ac_config_target in
28065 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28066 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28067 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28068 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28069 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28070 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28071
28072 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28073 esac
28074 done
28075
28076
28077 # If the user did not use the arguments to specify the items to instantiate,
28078 # then the envvar interface is used. Set only those that are not.
28079 # We use the long form for the default assignment because of an extremely
28080 # bizarre bug on SunOS 4.1.3.
28081 if $ac_need_defaults; then
28082 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28083 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28084 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28085 fi
28086
28087 # Have a temporary directory for convenience. Make it in the build tree
28088 # simply because there is no reason against having it here, and in addition,
28089 # creating and moving files from /tmp can sometimes cause problems.
28090 # Hook for its removal unless debugging.
28091 # Note that there is a small window in which the directory will not be cleaned:
28092 # after its creation but before its name has been assigned to `$tmp'.
28093 $debug ||
28094 {
28095 tmp=
28096 trap 'exit_status=$?
28097 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28098 ' 0
28099 trap 'as_fn_exit 1' 1 2 13 15
28100 }
28101 # Create a (secure) tmp directory for tmp files.
28102
28103 {
28104 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28105 test -n "$tmp" && test -d "$tmp"
28106 } ||
28107 {
28108 tmp=./conf$$-$RANDOM
28109 (umask 077 && mkdir "$tmp")
28110 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28111
28112 # Set up the scripts for CONFIG_FILES section.
28113 # No need to generate them if there are no CONFIG_FILES.
28114 # This happens for instance with `./config.status config.h'.
28115 if test -n "$CONFIG_FILES"; then
28116
28117 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28118 ac_cs_awk_getline=:
28119 ac_cs_awk_pipe_init=
28120 ac_cs_awk_read_file='
28121 while ((getline aline < (F[key])) > 0)
28122 print(aline)
28123 close(F[key])'
28124 ac_cs_awk_pipe_fini=
28125 else
28126 ac_cs_awk_getline=false
28127 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28128 ac_cs_awk_read_file='
28129 print "|#_!!_#|"
28130 print "cat " F[key] " &&"
28131 '$ac_cs_awk_pipe_init
28132 # The final `:' finishes the AND list.
28133 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28134 fi
28135 ac_cr=`echo X | tr X '\015'`
28136 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28137 # But we know of no other shell where ac_cr would be empty at this
28138 # point, so we can use a bashism as a fallback.
28139 if test "x$ac_cr" = x; then
28140 eval ac_cr=\$\'\\r\'
28141 fi
28142 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28143 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28144 ac_cs_awk_cr='\r'
28145 else
28146 ac_cs_awk_cr=$ac_cr
28147 fi
28148
28149 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28150 _ACEOF
28151
28152 # Create commands to substitute file output variables.
28153 {
28154 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28155 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28156 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28157 echo "_ACAWK" &&
28158 echo "_ACEOF"
28159 } >conf$$files.sh &&
28160 . ./conf$$files.sh ||
28161 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28162 rm -f conf$$files.sh
28163
28164 {
28165 echo "cat >conf$$subs.awk <<_ACEOF" &&
28166 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28167 echo "_ACEOF"
28168 } >conf$$subs.sh ||
28169 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28170 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28171 ac_delim='%!_!# '
28172 for ac_last_try in false false false false false :; do
28173 . ./conf$$subs.sh ||
28174 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28175
28176 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28177 if test $ac_delim_n = $ac_delim_num; then
28178 break
28179 elif $ac_last_try; then
28180 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28181 else
28182 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28183 fi
28184 done
28185 rm -f conf$$subs.sh
28186
28187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28188 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28189 _ACEOF
28190 sed -n '
28191 h
28192 s/^/S["/; s/!.*/"]=/
28193 p
28194 g
28195 s/^[^!]*!//
28196 :repl
28197 t repl
28198 s/'"$ac_delim"'$//
28199 t delim
28200 :nl
28201 h
28202 s/\(.\{148\}\).*/\1/
28203 t more1
28204 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28205 p
28206 n
28207 b repl
28208 :more1
28209 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28210 p
28211 g
28212 s/.\{148\}//
28213 t nl
28214 :delim
28215 h
28216 s/\(.\{148\}\).*/\1/
28217 t more2
28218 s/["\\]/\\&/g; s/^/"/; s/$/"/
28219 p
28220 b
28221 :more2
28222 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28223 p
28224 g
28225 s/.\{148\}//
28226 t delim
28227 ' <conf$$subs.awk | sed '
28228 /^[^""]/{
28229 N
28230 s/\n//
28231 }
28232 ' >>$CONFIG_STATUS || ac_write_fail=1
28233 rm -f conf$$subs.awk
28234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28235 _ACAWK
28236 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28237 for (key in S) S_is_set[key] = 1
28238 FS = "\a"
28239 \$ac_cs_awk_pipe_init
28240 }
28241 {
28242 line = $ 0
28243 nfields = split(line, field, "@")
28244 substed = 0
28245 len = length(field[1])
28246 for (i = 2; i < nfields; i++) {
28247 key = field[i]
28248 keylen = length(key)
28249 if (S_is_set[key]) {
28250 value = S[key]
28251 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28252 len += length(value) + length(field[++i])
28253 substed = 1
28254 } else
28255 len += 1 + keylen
28256 }
28257 if (nfields == 3 && !substed) {
28258 key = field[2]
28259 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28260 \$ac_cs_awk_read_file
28261 next
28262 }
28263 }
28264 print line
28265 }
28266 \$ac_cs_awk_pipe_fini
28267 _ACAWK
28268 _ACEOF
28269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28270 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28271 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28272 else
28273 cat
28274 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28275 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28276 _ACEOF
28277
28278 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28279 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28280 # trailing colons and then remove the whole line if VPATH becomes empty
28281 # (actually we leave an empty line to preserve line numbers).
28282 if test "x$srcdir" = x.; then
28283 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28284 s/:*\$(srcdir):*/:/
28285 s/:*\${srcdir}:*/:/
28286 s/:*@srcdir@:*/:/
28287 s/^\([^=]*=[ ]*\):*/\1/
28288 s/:*$//
28289 s/^[^=]*=[ ]*$//
28290 }'
28291 fi
28292
28293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28294 fi # test -n "$CONFIG_FILES"
28295
28296 # Set up the scripts for CONFIG_HEADERS section.
28297 # No need to generate them if there are no CONFIG_HEADERS.
28298 # This happens for instance with `./config.status Makefile'.
28299 if test -n "$CONFIG_HEADERS"; then
28300 cat >"$tmp/defines.awk" <<\_ACAWK ||
28301 BEGIN {
28302 _ACEOF
28303
28304 # Transform confdefs.h into an awk script `defines.awk', embedded as
28305 # here-document in config.status, that substitutes the proper values into
28306 # config.h.in to produce config.h.
28307
28308 # Create a delimiter string that does not exist in confdefs.h, to ease
28309 # handling of long lines.
28310 ac_delim='%!_!# '
28311 for ac_last_try in false false :; do
28312 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28313 if test -z "$ac_t"; then
28314 break
28315 elif $ac_last_try; then
28316 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28317 else
28318 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28319 fi
28320 done
28321
28322 # For the awk script, D is an array of macro values keyed by name,
28323 # likewise P contains macro parameters if any. Preserve backslash
28324 # newline sequences.
28325
28326 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28327 sed -n '
28328 s/.\{148\}/&'"$ac_delim"'/g
28329 t rset
28330 :rset
28331 s/^[ ]*#[ ]*define[ ][ ]*/ /
28332 t def
28333 d
28334 :def
28335 s/\\$//
28336 t bsnl
28337 s/["\\]/\\&/g
28338 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28339 D["\1"]=" \3"/p
28340 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28341 d
28342 :bsnl
28343 s/["\\]/\\&/g
28344 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28345 D["\1"]=" \3\\\\\\n"\\/p
28346 t cont
28347 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28348 t cont
28349 d
28350 :cont
28351 n
28352 s/.\{148\}/&'"$ac_delim"'/g
28353 t clear
28354 :clear
28355 s/\\$//
28356 t bsnlc
28357 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28358 d
28359 :bsnlc
28360 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28361 b cont
28362 ' <confdefs.h | sed '
28363 s/'"$ac_delim"'/"\\\
28364 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28365
28366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28367 for (key in D) D_is_set[key] = 1
28368 FS = "\a"
28369 }
28370 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28371 line = \$ 0
28372 split(line, arg, " ")
28373 if (arg[1] == "#") {
28374 defundef = arg[2]
28375 mac1 = arg[3]
28376 } else {
28377 defundef = substr(arg[1], 2)
28378 mac1 = arg[2]
28379 }
28380 split(mac1, mac2, "(") #)
28381 macro = mac2[1]
28382 prefix = substr(line, 1, index(line, defundef) - 1)
28383 if (D_is_set[macro]) {
28384 # Preserve the white space surrounding the "#".
28385 print prefix "define", macro P[macro] D[macro]
28386 next
28387 } else {
28388 # Replace #undef with comments. This is necessary, for example,
28389 # in the case of _POSIX_SOURCE, which is predefined and required
28390 # on some systems where configure will not decide to define it.
28391 if (defundef == "undef") {
28392 print "/*", prefix defundef, macro, "*/"
28393 next
28394 }
28395 }
28396 }
28397 { print }
28398 _ACAWK
28399 _ACEOF
28400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28401 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28402 fi # test -n "$CONFIG_HEADERS"
28403
28404
28405 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28406 shift
28407 for ac_tag
28408 do
28409 case $ac_tag in
28410 :[FHLC]) ac_mode=$ac_tag; continue;;
28411 esac
28412 case $ac_mode$ac_tag in
28413 :[FHL]*:*);;
28414 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28415 :[FH]-) ac_tag=-:-;;
28416 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28417 esac
28418 ac_save_IFS=$IFS
28419 IFS=:
28420 set x $ac_tag
28421 IFS=$ac_save_IFS
28422 shift
28423 ac_file=$1
28424 shift
28425
28426 case $ac_mode in
28427 :L) ac_source=$1;;
28428 :[FH])
28429 ac_file_inputs=
28430 for ac_f
28431 do
28432 case $ac_f in
28433 -) ac_f="$tmp/stdin";;
28434 *) # Look for the file first in the build tree, then in the source tree
28435 # (if the path is not absolute). The absolute path cannot be DOS-style,
28436 # because $ac_f cannot contain `:'.
28437 test -f "$ac_f" ||
28438 case $ac_f in
28439 [\\/$]*) false;;
28440 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28441 esac ||
28442 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28443 esac
28444 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28445 as_fn_append ac_file_inputs " '$ac_f'"
28446 done
28447
28448 # Let's still pretend it is `configure' which instantiates (i.e., don't
28449 # use $as_me), people would be surprised to read:
28450 # /* config.h. Generated by config.status. */
28451 configure_input='Generated from '`
28452 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28453 `' by configure.'
28454 if test x"$ac_file" != x-; then
28455 configure_input="$ac_file. $configure_input"
28456 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28457 $as_echo "$as_me: creating $ac_file" >&6;}
28458 fi
28459 # Neutralize special characters interpreted by sed in replacement strings.
28460 case $configure_input in #(
28461 *\&* | *\|* | *\\* )
28462 ac_sed_conf_input=`$as_echo "$configure_input" |
28463 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28464 *) ac_sed_conf_input=$configure_input;;
28465 esac
28466
28467 case $ac_tag in
28468 *:-:* | *:-) cat >"$tmp/stdin" \
28469 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28470 esac
28471 ;;
28472 esac
28473
28474 ac_dir=`$as_dirname -- "$ac_file" ||
28475 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28476 X"$ac_file" : 'X\(//\)[^/]' \| \
28477 X"$ac_file" : 'X\(//\)$' \| \
28478 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28479 $as_echo X"$ac_file" |
28480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28481 s//\1/
28482 q
28483 }
28484 /^X\(\/\/\)[^/].*/{
28485 s//\1/
28486 q
28487 }
28488 /^X\(\/\/\)$/{
28489 s//\1/
28490 q
28491 }
28492 /^X\(\/\).*/{
28493 s//\1/
28494 q
28495 }
28496 s/.*/./; q'`
28497 as_dir="$ac_dir"; as_fn_mkdir_p
28498 ac_builddir=.
28499
28500 case "$ac_dir" in
28501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28502 *)
28503 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28504 # A ".." for each directory in $ac_dir_suffix.
28505 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28506 case $ac_top_builddir_sub in
28507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28509 esac ;;
28510 esac
28511 ac_abs_top_builddir=$ac_pwd
28512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28513 # for backward compatibility:
28514 ac_top_builddir=$ac_top_build_prefix
28515
28516 case $srcdir in
28517 .) # We are building in place.
28518 ac_srcdir=.
28519 ac_top_srcdir=$ac_top_builddir_sub
28520 ac_abs_top_srcdir=$ac_pwd ;;
28521 [\\/]* | ?:[\\/]* ) # Absolute name.
28522 ac_srcdir=$srcdir$ac_dir_suffix;
28523 ac_top_srcdir=$srcdir
28524 ac_abs_top_srcdir=$srcdir ;;
28525 *) # Relative name.
28526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28527 ac_top_srcdir=$ac_top_build_prefix$srcdir
28528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28529 esac
28530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28531
28532
28533 case $ac_mode in
28534 :F)
28535 #
28536 # CONFIG_FILE
28537 #
28538
28539 _ACEOF
28540
28541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28542 # If the template does not know about datarootdir, expand it.
28543 # FIXME: This hack should be removed a few years after 2.60.
28544 ac_datarootdir_hack=; ac_datarootdir_seen=
28545 ac_sed_dataroot='
28546 /datarootdir/ {
28547 p
28548 q
28549 }
28550 /@datadir@/p
28551 /@docdir@/p
28552 /@infodir@/p
28553 /@localedir@/p
28554 /@mandir@/p'
28555 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28556 *datarootdir*) ac_datarootdir_seen=yes;;
28557 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28559 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28560 _ACEOF
28561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28562 ac_datarootdir_hack='
28563 s&@datadir@&$datadir&g
28564 s&@docdir@&$docdir&g
28565 s&@infodir@&$infodir&g
28566 s&@localedir@&$localedir&g
28567 s&@mandir@&$mandir&g
28568 s&\\\${datarootdir}&$datarootdir&g' ;;
28569 esac
28570 _ACEOF
28571
28572 # Neutralize VPATH when `$srcdir' = `.'.
28573 # Shell code in configure.ac might set extrasub.
28574 # FIXME: do we really want to maintain this feature?
28575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28576 ac_sed_extra="$ac_vpsub
28577 $extrasub
28578 _ACEOF
28579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28580 :t
28581 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28582 s|@configure_input@|$ac_sed_conf_input|;t t
28583 s&@top_builddir@&$ac_top_builddir_sub&;t t
28584 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28585 s&@srcdir@&$ac_srcdir&;t t
28586 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28587 s&@top_srcdir@&$ac_top_srcdir&;t t
28588 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28589 s&@builddir@&$ac_builddir&;t t
28590 s&@abs_builddir@&$ac_abs_builddir&;t t
28591 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28592 $ac_datarootdir_hack
28593 "
28594 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28595 if $ac_cs_awk_getline; then
28596 $AWK -f "$tmp/subs.awk"
28597 else
28598 $AWK -f "$tmp/subs.awk" | $SHELL
28599 fi >$tmp/out \
28600 || as_fn_error "could not create $ac_file" "$LINENO" 5
28601
28602 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28603 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28604 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28606 which seems to be undefined. Please make sure it is defined." >&5
28607 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28608 which seems to be undefined. Please make sure it is defined." >&2;}
28609
28610 rm -f "$tmp/stdin"
28611 case $ac_file in
28612 -) cat "$tmp/out" && rm -f "$tmp/out";;
28613 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28614 esac \
28615 || as_fn_error "could not create $ac_file" "$LINENO" 5
28616 ;;
28617 :H)
28618 #
28619 # CONFIG_HEADER
28620 #
28621 if test x"$ac_file" != x-; then
28622 {
28623 $as_echo "/* $configure_input */" \
28624 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28625 } >"$tmp/config.h" \
28626 || as_fn_error "could not create $ac_file" "$LINENO" 5
28627 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28628 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28629 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28630 else
28631 rm -f "$ac_file"
28632 mv "$tmp/config.h" "$ac_file" \
28633 || as_fn_error "could not create $ac_file" "$LINENO" 5
28634 fi
28635 else
28636 $as_echo "/* $configure_input */" \
28637 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28638 || as_fn_error "could not create -" "$LINENO" 5
28639 fi
28640 ;;
28641
28642 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28643 $as_echo "$as_me: executing $ac_file commands" >&6;}
28644 ;;
28645 esac
28646
28647
28648 case $ac_file$ac_mode in
28649 "as":F) chmod +x as ;;
28650 "collect-ld":F) chmod +x collect-ld ;;
28651 "nm":F) chmod +x nm ;;
28652 "default":C)
28653 case ${CONFIG_HEADERS} in
28654 *auto-host.h:config.in*)
28655 echo > cstamp-h ;;
28656 esac
28657 # Make sure all the subdirs exist.
28658 for d in $subdirs doc build common c-family
28659 do
28660 test -d $d || mkdir $d
28661 done
28662 ;;
28663
28664 esac
28665 done # for ac_tag
28666
28667
28668 as_fn_exit 0
28669 _ACEOF
28670 ac_clean_files=$ac_clean_files_save
28671
28672 test $ac_write_fail = 0 ||
28673 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28674
28675
28676 # configure is writing to config.log, and then calls config.status.
28677 # config.status does its own redirection, appending to config.log.
28678 # Unfortunately, on DOS this fails, as config.log is still kept open
28679 # by configure, so config.status won't be able to write to it; its
28680 # output is simply discarded. So we exec the FD to /dev/null,
28681 # effectively closing config.log, so it can be properly (re)opened and
28682 # appended to by config.status. When coming back to configure, we
28683 # need to make the FD available again.
28684 if test "$no_create" != yes; then
28685 ac_cs_success=:
28686 ac_config_status_args=
28687 test "$silent" = yes &&
28688 ac_config_status_args="$ac_config_status_args --quiet"
28689 exec 5>/dev/null
28690 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28691 exec 5>>config.log
28692 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28693 # would make configure fail if this is the last instruction.
28694 $ac_cs_success || as_fn_exit $?
28695 fi
28696 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28698 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28699 fi
28700
28701