]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
Centralize PICFLAG configuration
[thirdparty/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 libgcc_tm_include_list
622 libgcc_tm_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 thread_file
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir
644 gcc_config_arguments
645 float_h_file
646 extra_programs
647 extra_passes
648 extra_parts
649 extra_objs
650 extra_headers_list
651 user_headers_inc_next_post
652 user_headers_inc_next_pre
653 extra_gcc_objs
654 TM_MULTILIB_EXCEPTIONS_CONFIG
655 TM_MULTILIB_CONFIG
656 TM_ENDIAN_CONFIG
657 tmake_file
658 xmake_file
659 cpp_install_dir
660 check_languages
661 build_file_translate
662 build_xm_defines
663 build_xm_include_list
664 build_xm_file_list
665 build_install_headers_dir
666 build_exeext
667 all_selected_languages
668 all_languages
669 all_lang_makefrags
670 all_gtfiles
671 all_compilers
672 srcdir
673 subdirs
674 slibdir
675 dollar
676 gcc_tooldir
677 enable_lto
678 MAINT
679 zlibinc
680 zlibdir
681 HOST_LIBS
682 GGC
683 libgcc_visibility
684 gcc_cv_readelf
685 gcc_cv_objdump
686 ORIGINAL_NM_FOR_TARGET
687 gcc_cv_nm
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
690 gcc_cv_ld
691 ORIGINAL_AS_FOR_TARGET
692 gcc_cv_as
693 enable_fast_install
694 objdir
695 OTOOL64
696 OTOOL
697 LIPO
698 NMEDIT
699 DSYMUTIL
700 STRIP
701 OBJDUMP
702 ac_ct_DUMPBIN
703 DUMPBIN
704 LD
705 FGREP
706 SED
707 LIBTOOL
708 collect2
709 STMP_FIXINC
710 BUILD_LDFLAGS
711 BUILD_CFLAGS
712 CC_FOR_BUILD
713 inhibit_libc
714 SYSTEM_HEADER_DIR
715 ALL
716 CROSS
717 CATOBJEXT
718 GENCAT
719 INSTOBJEXT
720 DATADIRNAME
721 CATALOGS
722 POSUB
723 GMSGFMT
724 XGETTEXT
725 INCINTL
726 LIBINTL_DEP
727 LIBINTL
728 USE_NLS
729 extra_opt_files
730 extra_modes_file
731 gthread_flags
732 objext
733 manext
734 LIBICONV_DEP
735 LTLIBICONV
736 LIBICONV
737 LDEXP_LIB
738 EXTRA_GCC_LIBS
739 GNAT_LIBEXC
740 COLLECT2_LIBS
741 CXXCPP
742 AR
743 NM
744 BISON
745 FLEX
746 GENERATED_MANPAGES
747 BUILD_INFO
748 MAKEINFO
749 have_mktemp_command
750 make_compare_target
751 INSTALL_DATA
752 INSTALL_PROGRAM
753 INSTALL
754 ranlib_flags
755 RANLIB
756 LN
757 LN_S
758 AWK
759 SET_MAKE
760 REPORT_BUGS_TEXI
761 REPORT_BUGS_TO
762 PKGVERSION
763 CONFIGURE_SPECS
764 CROSS_SYSTEM_HEADER_DIR
765 TARGET_SYSTEM_ROOT_DEFINE
766 TARGET_SYSTEM_ROOT
767 enable_shared
768 enable_fixed_point
769 enable_decimal_float
770 enable_multilib
771 ENABLE_BUILD_WITH_CXX
772 coverage_flags
773 valgrind_command
774 valgrind_path_defines
775 valgrind_path
776 TREEBROWSER
777 nocommon_flag
778 warn_cxxflags
779 warn_cflags
780 c_strict_warn
781 strict_warn
782 c_loose_warn
783 loose_warn
784 EGREP
785 GREP
786 CPP
787 PICFLAG_FOR_TARGET
788 OUTPUT_OPTION
789 NO_MINUS_C_MINUS_O
790 GNATMAKE
791 GNATBIND
792 ac_ct_CXX
793 CXXFLAGS
794 CXX
795 OBJEXT
796 EXEEXT
797 ac_ct_CC
798 CPPFLAGS
799 LDFLAGS
800 CFLAGS
801 CC
802 GENINSRC
803 target_subdir
804 host_subdir
805 build_subdir
806 build_libsubdir
807 target_noncanonical
808 target_os
809 target_vendor
810 target_cpu
811 target
812 host_os
813 host_vendor
814 host_cpu
815 host
816 build_os
817 build_vendor
818 build_cpu
819 build
820 target_alias
821 host_alias
822 build_alias
823 LIBS
824 ECHO_T
825 ECHO_N
826 ECHO_C
827 DEFS
828 mandir
829 localedir
830 libdir
831 psdir
832 pdfdir
833 dvidir
834 htmldir
835 infodir
836 docdir
837 oldincludedir
838 includedir
839 localstatedir
840 sharedstatedir
841 sysconfdir
842 datadir
843 datarootdir
844 libexecdir
845 sbindir
846 bindir
847 program_transform_name
848 prefix
849 exec_prefix
850 PACKAGE_URL
851 PACKAGE_BUGREPORT
852 PACKAGE_STRING
853 PACKAGE_VERSION
854 PACKAGE_TARNAME
855 PACKAGE_NAME
856 PATH_SEPARATOR
857 SHELL'
858 ac_subst_files='option_includes
859 language_hooks'
860 ac_user_opts='
861 enable_option_checking
862 with_build_libsubdir
863 with_local_prefix
864 with_gxx_include_dir
865 with_cpp_install_dir
866 enable_generated_files_in_srcdir
867 with_gnu_ld
868 with_ld
869 with_demangler_in_ld
870 with_gnu_as
871 with_as
872 enable_largefile
873 enable_werror_always
874 enable_checking
875 enable_coverage
876 enable_gather_detailed_mem_stats
877 enable_build_with_cxx
878 with_stabs
879 enable_multilib
880 enable___cxa_atexit
881 enable_decimal_float
882 enable_fixed_point
883 enable_threads
884 enable_tls
885 enable_objc_gc
886 with_dwarf2
887 enable_shared
888 with_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_initfini_array
898 enable_sjlj_exceptions
899 enable_secureplt
900 enable_leading_mingw64_underscores
901 enable_cld
902 enable_frame_pointer
903 enable_win32_registry
904 enable_static
905 with_pic
906 enable_fast_install
907 enable_libtool_lock
908 with_plugin_ld
909 enable_gnu_indirect_function
910 enable_comdat
911 enable_gnu_unique_object
912 enable_linker_build_id
913 with_long_double_128
914 with_gc
915 with_system_zlib
916 enable_maintainer_mode
917 enable_version_specific_runtime_libs
918 with_slibdir
919 enable_plugin
920 enable_libquadmath_support
921 with_linker_hash_style
922 '
923 ac_precious_vars='build_alias
924 host_alias
925 target_alias
926 CC
927 CFLAGS
928 LDFLAGS
929 LIBS
930 CPPFLAGS
931 CXX
932 CXXFLAGS
933 CCC
934 CPP
935 CXXCPP
936 GMPLIBS
937 GMPINC
938 PPLLIBS
939 PPLINC
940 CLOOGLIBS
941 CLOOGINC'
942
943
944 # Initialize some variables set by options.
945 ac_init_help=
946 ac_init_version=false
947 ac_unrecognized_opts=
948 ac_unrecognized_sep=
949 # The variables have the same names as the options, with
950 # dashes changed to underlines.
951 cache_file=/dev/null
952 exec_prefix=NONE
953 no_create=
954 no_recursion=
955 prefix=NONE
956 program_prefix=NONE
957 program_suffix=NONE
958 program_transform_name=s,x,x,
959 silent=
960 site=
961 srcdir=
962 verbose=
963 x_includes=NONE
964 x_libraries=NONE
965
966 # Installation directory options.
967 # These are left unexpanded so users can "make install exec_prefix=/foo"
968 # and all the variables that are supposed to be based on exec_prefix
969 # by default will actually change.
970 # Use braces instead of parens because sh, perl, etc. also accept them.
971 # (The list follows the same order as the GNU Coding Standards.)
972 bindir='${exec_prefix}/bin'
973 sbindir='${exec_prefix}/sbin'
974 libexecdir='${exec_prefix}/libexec'
975 datarootdir='${prefix}/share'
976 datadir='${datarootdir}'
977 sysconfdir='${prefix}/etc'
978 sharedstatedir='${prefix}/com'
979 localstatedir='${prefix}/var'
980 includedir='${prefix}/include'
981 oldincludedir='/usr/include'
982 docdir='${datarootdir}/doc/${PACKAGE}'
983 infodir='${datarootdir}/info'
984 htmldir='${docdir}'
985 dvidir='${docdir}'
986 pdfdir='${docdir}'
987 psdir='${docdir}'
988 libdir='${exec_prefix}/lib'
989 localedir='${datarootdir}/locale'
990 mandir='${datarootdir}/man'
991
992 ac_prev=
993 ac_dashdash=
994 for ac_option
995 do
996 # If the previous option needs an argument, assign it.
997 if test -n "$ac_prev"; then
998 eval $ac_prev=\$ac_option
999 ac_prev=
1000 continue
1001 fi
1002
1003 case $ac_option in
1004 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1005 *) ac_optarg=yes ;;
1006 esac
1007
1008 # Accept the important Cygnus configure options, so we can diagnose typos.
1009
1010 case $ac_dashdash$ac_option in
1011 --)
1012 ac_dashdash=yes ;;
1013
1014 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1015 ac_prev=bindir ;;
1016 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1017 bindir=$ac_optarg ;;
1018
1019 -build | --build | --buil | --bui | --bu)
1020 ac_prev=build_alias ;;
1021 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1022 build_alias=$ac_optarg ;;
1023
1024 -cache-file | --cache-file | --cache-fil | --cache-fi \
1025 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1026 ac_prev=cache_file ;;
1027 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1028 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1029 cache_file=$ac_optarg ;;
1030
1031 --config-cache | -C)
1032 cache_file=config.cache ;;
1033
1034 -datadir | --datadir | --datadi | --datad)
1035 ac_prev=datadir ;;
1036 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1037 datadir=$ac_optarg ;;
1038
1039 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1040 | --dataroo | --dataro | --datar)
1041 ac_prev=datarootdir ;;
1042 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1043 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1044 datarootdir=$ac_optarg ;;
1045
1046 -disable-* | --disable-*)
1047 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050 as_fn_error "invalid feature name: $ac_useropt"
1051 ac_useropt_orig=$ac_useropt
1052 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053 case $ac_user_opts in
1054 *"
1055 "enable_$ac_useropt"
1056 "*) ;;
1057 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1058 ac_unrecognized_sep=', ';;
1059 esac
1060 eval enable_$ac_useropt=no ;;
1061
1062 -docdir | --docdir | --docdi | --doc | --do)
1063 ac_prev=docdir ;;
1064 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1065 docdir=$ac_optarg ;;
1066
1067 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1068 ac_prev=dvidir ;;
1069 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1070 dvidir=$ac_optarg ;;
1071
1072 -enable-* | --enable-*)
1073 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076 as_fn_error "invalid feature name: $ac_useropt"
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1080 *"
1081 "enable_$ac_useropt"
1082 "*) ;;
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1085 esac
1086 eval enable_$ac_useropt=\$ac_optarg ;;
1087
1088 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090 | --exec | --exe | --ex)
1091 ac_prev=exec_prefix ;;
1092 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094 | --exec=* | --exe=* | --ex=*)
1095 exec_prefix=$ac_optarg ;;
1096
1097 -gas | --gas | --ga | --g)
1098 # Obsolete; use --with-gas.
1099 with_gas=yes ;;
1100
1101 -help | --help | --hel | --he | -h)
1102 ac_init_help=long ;;
1103 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104 ac_init_help=recursive ;;
1105 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106 ac_init_help=short ;;
1107
1108 -host | --host | --hos | --ho)
1109 ac_prev=host_alias ;;
1110 -host=* | --host=* | --hos=* | --ho=*)
1111 host_alias=$ac_optarg ;;
1112
1113 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114 ac_prev=htmldir ;;
1115 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116 | --ht=*)
1117 htmldir=$ac_optarg ;;
1118
1119 -includedir | --includedir | --includedi | --included | --include \
1120 | --includ | --inclu | --incl | --inc)
1121 ac_prev=includedir ;;
1122 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123 | --includ=* | --inclu=* | --incl=* | --inc=*)
1124 includedir=$ac_optarg ;;
1125
1126 -infodir | --infodir | --infodi | --infod | --info | --inf)
1127 ac_prev=infodir ;;
1128 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129 infodir=$ac_optarg ;;
1130
1131 -libdir | --libdir | --libdi | --libd)
1132 ac_prev=libdir ;;
1133 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134 libdir=$ac_optarg ;;
1135
1136 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137 | --libexe | --libex | --libe)
1138 ac_prev=libexecdir ;;
1139 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140 | --libexe=* | --libex=* | --libe=*)
1141 libexecdir=$ac_optarg ;;
1142
1143 -localedir | --localedir | --localedi | --localed | --locale)
1144 ac_prev=localedir ;;
1145 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146 localedir=$ac_optarg ;;
1147
1148 -localstatedir | --localstatedir | --localstatedi | --localstated \
1149 | --localstate | --localstat | --localsta | --localst | --locals)
1150 ac_prev=localstatedir ;;
1151 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1152 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1153 localstatedir=$ac_optarg ;;
1154
1155 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156 ac_prev=mandir ;;
1157 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158 mandir=$ac_optarg ;;
1159
1160 -nfp | --nfp | --nf)
1161 # Obsolete; use --without-fp.
1162 with_fp=no ;;
1163
1164 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165 | --no-cr | --no-c | -n)
1166 no_create=yes ;;
1167
1168 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170 no_recursion=yes ;;
1171
1172 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174 | --oldin | --oldi | --old | --ol | --o)
1175 ac_prev=oldincludedir ;;
1176 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179 oldincludedir=$ac_optarg ;;
1180
1181 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182 ac_prev=prefix ;;
1183 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184 prefix=$ac_optarg ;;
1185
1186 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187 | --program-pre | --program-pr | --program-p)
1188 ac_prev=program_prefix ;;
1189 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191 program_prefix=$ac_optarg ;;
1192
1193 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194 | --program-suf | --program-su | --program-s)
1195 ac_prev=program_suffix ;;
1196 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198 program_suffix=$ac_optarg ;;
1199
1200 -program-transform-name | --program-transform-name \
1201 | --program-transform-nam | --program-transform-na \
1202 | --program-transform-n | --program-transform- \
1203 | --program-transform | --program-transfor \
1204 | --program-transfo | --program-transf \
1205 | --program-trans | --program-tran \
1206 | --progr-tra | --program-tr | --program-t)
1207 ac_prev=program_transform_name ;;
1208 -program-transform-name=* | --program-transform-name=* \
1209 | --program-transform-nam=* | --program-transform-na=* \
1210 | --program-transform-n=* | --program-transform-=* \
1211 | --program-transform=* | --program-transfor=* \
1212 | --program-transfo=* | --program-transf=* \
1213 | --program-trans=* | --program-tran=* \
1214 | --progr-tra=* | --program-tr=* | --program-t=*)
1215 program_transform_name=$ac_optarg ;;
1216
1217 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218 ac_prev=pdfdir ;;
1219 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220 pdfdir=$ac_optarg ;;
1221
1222 -psdir | --psdir | --psdi | --psd | --ps)
1223 ac_prev=psdir ;;
1224 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225 psdir=$ac_optarg ;;
1226
1227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228 | -silent | --silent | --silen | --sile | --sil)
1229 silent=yes ;;
1230
1231 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232 ac_prev=sbindir ;;
1233 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234 | --sbi=* | --sb=*)
1235 sbindir=$ac_optarg ;;
1236
1237 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239 | --sharedst | --shareds | --shared | --share | --shar \
1240 | --sha | --sh)
1241 ac_prev=sharedstatedir ;;
1242 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245 | --sha=* | --sh=*)
1246 sharedstatedir=$ac_optarg ;;
1247
1248 -site | --site | --sit)
1249 ac_prev=site ;;
1250 -site=* | --site=* | --sit=*)
1251 site=$ac_optarg ;;
1252
1253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254 ac_prev=srcdir ;;
1255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256 srcdir=$ac_optarg ;;
1257
1258 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259 | --syscon | --sysco | --sysc | --sys | --sy)
1260 ac_prev=sysconfdir ;;
1261 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263 sysconfdir=$ac_optarg ;;
1264
1265 -target | --target | --targe | --targ | --tar | --ta | --t)
1266 ac_prev=target_alias ;;
1267 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268 target_alias=$ac_optarg ;;
1269
1270 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271 verbose=yes ;;
1272
1273 -version | --version | --versio | --versi | --vers | -V)
1274 ac_init_version=: ;;
1275
1276 -with-* | --with-*)
1277 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280 as_fn_error "invalid package name: $ac_useropt"
1281 ac_useropt_orig=$ac_useropt
1282 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283 case $ac_user_opts in
1284 *"
1285 "with_$ac_useropt"
1286 "*) ;;
1287 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1288 ac_unrecognized_sep=', ';;
1289 esac
1290 eval with_$ac_useropt=\$ac_optarg ;;
1291
1292 -without-* | --without-*)
1293 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296 as_fn_error "invalid package name: $ac_useropt"
1297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1300 *"
1301 "with_$ac_useropt"
1302 "*) ;;
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1305 esac
1306 eval with_$ac_useropt=no ;;
1307
1308 --x)
1309 # Obsolete; use --with-x.
1310 with_x=yes ;;
1311
1312 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313 | --x-incl | --x-inc | --x-in | --x-i)
1314 ac_prev=x_includes ;;
1315 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1317 x_includes=$ac_optarg ;;
1318
1319 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321 ac_prev=x_libraries ;;
1322 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1324 x_libraries=$ac_optarg ;;
1325
1326 -*) as_fn_error "unrecognized option: \`$ac_option'
1327 Try \`$0 --help' for more information."
1328 ;;
1329
1330 *=*)
1331 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332 # Reject names that are not valid shell variable names.
1333 case $ac_envvar in #(
1334 '' | [0-9]* | *[!_$as_cr_alnum]* )
1335 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1336 esac
1337 eval $ac_envvar=\$ac_optarg
1338 export $ac_envvar ;;
1339
1340 *)
1341 # FIXME: should be removed in autoconf 3.0.
1342 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1344 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1346 ;;
1347
1348 esac
1349 done
1350
1351 if test -n "$ac_prev"; then
1352 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1353 as_fn_error "missing argument to $ac_option"
1354 fi
1355
1356 if test -n "$ac_unrecognized_opts"; then
1357 case $enable_option_checking in
1358 no) ;;
1359 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1360 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1361 esac
1362 fi
1363
1364 # Check all directory arguments for consistency.
1365 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366 datadir sysconfdir sharedstatedir localstatedir includedir \
1367 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368 libdir localedir mandir
1369 do
1370 eval ac_val=\$$ac_var
1371 # Remove trailing slashes.
1372 case $ac_val in
1373 */ )
1374 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1375 eval $ac_var=\$ac_val;;
1376 esac
1377 # Be sure to have absolute directory names.
1378 case $ac_val in
1379 [\\/$]* | ?:[\\/]* ) continue;;
1380 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1381 esac
1382 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1383 done
1384
1385 # There might be people who depend on the old broken behavior: `$host'
1386 # used to hold the argument of --host etc.
1387 # FIXME: To remove some day.
1388 build=$build_alias
1389 host=$host_alias
1390 target=$target_alias
1391
1392 # FIXME: To remove some day.
1393 if test "x$host_alias" != x; then
1394 if test "x$build_alias" = x; then
1395 cross_compiling=maybe
1396 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1397 If a cross compiler is detected then cross compile mode will be used." >&2
1398 elif test "x$build_alias" != "x$host_alias"; then
1399 cross_compiling=yes
1400 fi
1401 fi
1402
1403 ac_tool_prefix=
1404 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1405
1406 test "$silent" = yes && exec 6>/dev/null
1407
1408
1409 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410 ac_ls_di=`ls -di .` &&
1411 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1412 as_fn_error "working directory cannot be determined"
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414 as_fn_error "pwd does not report name of working directory"
1415
1416
1417 # Find the source files, if location was not specified.
1418 if test -z "$srcdir"; then
1419 ac_srcdir_defaulted=yes
1420 # Try the directory containing this script, then the parent directory.
1421 ac_confdir=`$as_dirname -- "$as_myself" ||
1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423 X"$as_myself" : 'X\(//\)[^/]' \| \
1424 X"$as_myself" : 'X\(//\)$' \| \
1425 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426 $as_echo X"$as_myself" |
1427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1428 s//\1/
1429 q
1430 }
1431 /^X\(\/\/\)[^/].*/{
1432 s//\1/
1433 q
1434 }
1435 /^X\(\/\/\)$/{
1436 s//\1/
1437 q
1438 }
1439 /^X\(\/\).*/{
1440 s//\1/
1441 q
1442 }
1443 s/.*/./; q'`
1444 srcdir=$ac_confdir
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1446 srcdir=..
1447 fi
1448 else
1449 ac_srcdir_defaulted=no
1450 fi
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1453 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1454 fi
1455 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1456 ac_abs_confdir=`(
1457 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1458 pwd)`
1459 # When building in place, set srcdir=.
1460 if test "$ac_abs_confdir" = "$ac_pwd"; then
1461 srcdir=.
1462 fi
1463 # Remove unnecessary trailing slashes from srcdir.
1464 # Double slashes in file names in object file debugging info
1465 # mess up M-x gdb in Emacs.
1466 case $srcdir in
1467 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468 esac
1469 for ac_var in $ac_precious_vars; do
1470 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_env_${ac_var}_value=\$${ac_var}
1472 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1474 done
1475
1476 #
1477 # Report the --help message.
1478 #
1479 if test "$ac_init_help" = "long"; then
1480 # Omit some internal or obsolete options to make the list less imposing.
1481 # This message is too long to be a string in the A/UX 3.1 sh.
1482 cat <<_ACEOF
1483 \`configure' configures this package to adapt to many kinds of systems.
1484
1485 Usage: $0 [OPTION]... [VAR=VALUE]...
1486
1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488 VAR=VALUE. See below for descriptions of some of the useful variables.
1489
1490 Defaults for the options are specified in brackets.
1491
1492 Configuration:
1493 -h, --help display this help and exit
1494 --help=short display options specific to this package
1495 --help=recursive display the short help of all the included packages
1496 -V, --version display version information and exit
1497 -q, --quiet, --silent do not print \`checking...' messages
1498 --cache-file=FILE cache test results in FILE [disabled]
1499 -C, --config-cache alias for \`--cache-file=config.cache'
1500 -n, --no-create do not create output files
1501 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1502
1503 Installation directories:
1504 --prefix=PREFIX install architecture-independent files in PREFIX
1505 [$ac_default_prefix]
1506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1507 [PREFIX]
1508
1509 By default, \`make install' will install all the files in
1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512 for instance \`--prefix=\$HOME'.
1513
1514 For better control, use the options below.
1515
1516 Fine tuning of the installation directories:
1517 --bindir=DIR user executables [EPREFIX/bin]
1518 --sbindir=DIR system admin executables [EPREFIX/sbin]
1519 --libexecdir=DIR program executables [EPREFIX/libexec]
1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1523 --libdir=DIR object code libraries [EPREFIX/lib]
1524 --includedir=DIR C header files [PREFIX/include]
1525 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1528 --infodir=DIR info documentation [DATAROOTDIR/info]
1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1530 --mandir=DIR man documentation [DATAROOTDIR/man]
1531 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1532 --htmldir=DIR html documentation [DOCDIR]
1533 --dvidir=DIR dvi documentation [DOCDIR]
1534 --pdfdir=DIR pdf documentation [DOCDIR]
1535 --psdir=DIR ps documentation [DOCDIR]
1536 _ACEOF
1537
1538 cat <<\_ACEOF
1539
1540 Program names:
1541 --program-prefix=PREFIX prepend PREFIX to installed program names
1542 --program-suffix=SUFFIX append SUFFIX to installed program names
1543 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1544
1545 System types:
1546 --build=BUILD configure for building on BUILD [guessed]
1547 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1548 --target=TARGET configure for building compilers for TARGET [HOST]
1549 _ACEOF
1550 fi
1551
1552 if test -n "$ac_init_help"; then
1553
1554 cat <<\_ACEOF
1555
1556 Optional Features:
1557 --disable-option-checking ignore unrecognized --enable/--with options
1558 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1559 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1560 --enable-generated-files-in-srcdir
1561 put copies of generated files in source dir intended
1562 for creating source tarballs for users without
1563 texinfo bison or flex
1564 --disable-largefile omit support for large files
1565 --enable-werror-always enable -Werror despite compiler version
1566 --enable-checking[=LIST]
1567 enable expensive run-time checks. With LIST, enable
1568 only specific categories of checks. Categories are:
1569 yes,no,all,none,release. Flags are:
1570 assert,df,fold,gc,gcac,gimple,misc,
1571 rtlflag,rtl,runtime,tree,valgrind,types
1572 --enable-coverage[=LEVEL]
1573 enable compiler's code coverage collection. Use to
1574 measure compiler performance and locate unused parts
1575 of the compiler. With LEVEL, specify optimization.
1576 Values are opt, noopt, default is noopt
1577 --enable-gather-detailed-mem-stats
1578 enable detailed memory allocation stats gathering
1579 --enable-build-with-cxx build with C++ compiler instead of C compiler
1580 --enable-multilib enable library support for multiple ABIs
1581 --enable-__cxa_atexit enable __cxa_atexit for C++
1582 --enable-decimal-float={no,yes,bid,dpd}
1583 enable decimal float extension to C. Selecting 'bid'
1584 or 'dpd' choses which decimal floating point format
1585 to use
1586 --enable-fixed-point enable fixed-point arithmetic extension to C
1587 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1588 package
1589 --enable-tls enable or disable generation of tls code overriding
1590 the assembler check for tls support
1591 --enable-objc-gc enable the use of Boehm's garbage collector with the
1592 GNU Objective-C runtime
1593 --disable-shared don't provide a shared libgcc
1594 --enable-languages=LIST specify which front-ends to build
1595 --disable-rpath do not hardcode runtime library paths
1596 --enable-initfini-array use .init_array/.fini_array sections
1597 --enable-sjlj-exceptions
1598 arrange to use setjmp/longjmp exception handling
1599 --enable-secureplt enable -msecure-plt by default for PowerPC
1600 --enable-leading-mingw64-underscores
1601 enable leading underscores on 64 bit mingw targets
1602 --enable-cld enable -mcld by default for 32bit x86
1603 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1604 x86
1605 --disable-win32-registry
1606 disable lookup of installation paths in the Registry
1607 on Windows hosts
1608 --enable-win32-registry enable registry lookup (default)
1609 --enable-win32-registry=KEY
1610 use KEY instead of GCC version as the last portion
1611 of the registry key
1612 --enable-shared[=PKGS] build shared libraries [default=yes]
1613 --enable-static[=PKGS] build static libraries [default=yes]
1614 --enable-fast-install[=PKGS]
1615 optimize for fast installation [default=yes]
1616 --disable-libtool-lock avoid locking (might break parallel builds)
1617 --enable-gnu-indirect-function
1618 enable the use of the @gnu_indirect_function to
1619 glibc systems
1620 --enable-comdat enable COMDAT group support
1621 --enable-gnu-unique-object
1622 enable the use of the @gnu_unique_object ELF
1623 extension on glibc systems
1624 --enable-linker-build-id
1625 compiler will always pass --build-id to linker
1626 --enable-maintainer-mode
1627 enable make rules and dependencies not useful (and
1628 sometimes confusing) to the casual installer
1629 --enable-version-specific-runtime-libs
1630 specify that runtime libraries should be installed
1631 in a compiler-specific directory
1632 --enable-plugin enable plugin support
1633 --disable-libquadmath-support
1634 disable libquadmath support for Fortran
1635
1636 Optional Packages:
1637 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1638 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1639 --with-build-libsubdir=DIR Directory where to find libraries for build system
1640 --with-local-prefix=DIR specifies directory to put local include
1641 --with-gxx-include-dir=DIR
1642 specifies directory to put g++ header files
1643 --with-cpp-install-dir=DIR
1644 install the user visible C preprocessor in DIR
1645 (relative to PREFIX) as well as PREFIX/bin
1646 --with-gnu-ld arrange to work with GNU ld
1647 --with-ld arrange to use the specified ld (full pathname)
1648 --with-demangler-in-ld try to use demangler in GNU ld
1649 --with-gnu-as arrange to work with GNU as
1650 --with-as arrange to use the specified as (full pathname)
1651 --with-stabs arrange to use stabs instead of host debug format
1652 --with-dwarf2 force the default debug format to be DWARF 2
1653 --with-build-sysroot=sysroot
1654 use sysroot as the system root during the build
1655 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1656 --with-specs=SPECS add SPECS to driver command-line processing
1657 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1658 --with-bugurl=URL Direct users to URL to report a bug
1659 --with-multilib-list select multilibs (SH and x86-64 only)
1660 --with-gnu-ld assume the C compiler uses GNU ld default=no
1661 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1662 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1663 --with-pic try to use only PIC/non-PIC objects [default=use
1664 both]
1665 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1666 --with-plugin-ld=[ARG] specify the plugin linker
1667 --with-long-double-128 use 128-bit long double by default
1668 --with-gc={page,zone} choose the garbage collection mechanism to use with
1669 the compiler
1670 --with-system-zlib use installed libz
1671 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1672 --with-linker-hash-style={sysv,gnu,both}
1673 specify the linker hash style
1674
1675 Some influential environment variables:
1676 CC C compiler command
1677 CFLAGS C compiler flags
1678 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1679 nonstandard directory <lib dir>
1680 LIBS libraries to pass to the linker, e.g. -l<library>
1681 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1682 you have headers in a nonstandard directory <include dir>
1683 CXX C++ compiler command
1684 CXXFLAGS C++ compiler flags
1685 CPP C preprocessor
1686 CXXCPP C++ preprocessor
1687 GMPLIBS How to link GMP
1688 GMPINC How to find GMP include files
1689 PPLLIBS How to link PPL
1690 PPLINC How to find PPL include files
1691 CLOOGLIBS How to link CLOOG
1692 CLOOGINC How to find CLOOG include files
1693
1694 Use these variables to override the choices made by `configure' or to help
1695 it to find libraries and programs with nonstandard names/locations.
1696
1697 Report bugs to the package provider.
1698 _ACEOF
1699 ac_status=$?
1700 fi
1701
1702 if test "$ac_init_help" = "recursive"; then
1703 # If there are subdirs, report their specific --help.
1704 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1705 test -d "$ac_dir" ||
1706 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1707 continue
1708 ac_builddir=.
1709
1710 case "$ac_dir" in
1711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712 *)
1713 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1714 # A ".." for each directory in $ac_dir_suffix.
1715 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1716 case $ac_top_builddir_sub in
1717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1719 esac ;;
1720 esac
1721 ac_abs_top_builddir=$ac_pwd
1722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1723 # for backward compatibility:
1724 ac_top_builddir=$ac_top_build_prefix
1725
1726 case $srcdir in
1727 .) # We are building in place.
1728 ac_srcdir=.
1729 ac_top_srcdir=$ac_top_builddir_sub
1730 ac_abs_top_srcdir=$ac_pwd ;;
1731 [\\/]* | ?:[\\/]* ) # Absolute name.
1732 ac_srcdir=$srcdir$ac_dir_suffix;
1733 ac_top_srcdir=$srcdir
1734 ac_abs_top_srcdir=$srcdir ;;
1735 *) # Relative name.
1736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1737 ac_top_srcdir=$ac_top_build_prefix$srcdir
1738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1739 esac
1740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1741
1742 cd "$ac_dir" || { ac_status=$?; continue; }
1743 # Check for guested configure.
1744 if test -f "$ac_srcdir/configure.gnu"; then
1745 echo &&
1746 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1747 elif test -f "$ac_srcdir/configure"; then
1748 echo &&
1749 $SHELL "$ac_srcdir/configure" --help=recursive
1750 else
1751 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1752 fi || ac_status=$?
1753 cd "$ac_pwd" || { ac_status=$?; break; }
1754 done
1755 fi
1756
1757 test -n "$ac_init_help" && exit $ac_status
1758 if $ac_init_version; then
1759 cat <<\_ACEOF
1760 configure
1761 generated by GNU Autoconf 2.64
1762
1763 Copyright (C) 2009 Free Software Foundation, Inc.
1764 This configure script is free software; the Free Software Foundation
1765 gives unlimited permission to copy, distribute and modify it.
1766 _ACEOF
1767 exit
1768 fi
1769
1770 ## ------------------------ ##
1771 ## Autoconf initialization. ##
1772 ## ------------------------ ##
1773
1774 # ac_fn_c_try_compile LINENO
1775 # --------------------------
1776 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_compile ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext
1781 if { { ac_try="$ac_compile"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_compile") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1794 fi
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest.$ac_objext; then :
1800 ac_retval=0
1801 else
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1804
1805 ac_retval=1
1806 fi
1807 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1808 return $ac_retval
1809
1810 } # ac_fn_c_try_compile
1811
1812 # ac_fn_cxx_try_compile LINENO
1813 # ----------------------------
1814 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_cxx_try_compile ()
1816 {
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 rm -f conftest.$ac_objext
1819 if { { ac_try="$ac_compile"
1820 case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_compile") 2>conftest.err
1827 ac_status=$?
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1832 fi
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && {
1835 test -z "$ac_cxx_werror_flag" ||
1836 test ! -s conftest.err
1837 } && test -s conftest.$ac_objext; then :
1838 ac_retval=0
1839 else
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1842
1843 ac_retval=1
1844 fi
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846 return $ac_retval
1847
1848 } # ac_fn_cxx_try_compile
1849
1850 # ac_fn_c_try_cpp LINENO
1851 # ----------------------
1852 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_c_try_cpp ()
1854 {
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if { { ac_try="$ac_cpp conftest.$ac_ext"
1857 case "(($ac_try" in
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1864 ac_status=$?
1865 if test -s conftest.err; then
1866 grep -v '^ *+' conftest.err >conftest.er1
1867 cat conftest.er1 >&5
1868 mv -f conftest.er1 conftest.err
1869 fi
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } >/dev/null && {
1872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1873 test ! -s conftest.err
1874 }; then :
1875 ac_retval=0
1876 else
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1879
1880 ac_retval=1
1881 fi
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883 return $ac_retval
1884
1885 } # ac_fn_c_try_cpp
1886
1887 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1888 # -------------------------------------------------------
1889 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1890 # the include files in INCLUDES and setting the cache variable VAR
1891 # accordingly.
1892 ac_fn_c_check_header_mongrel ()
1893 {
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897 $as_echo_n "checking for $2... " >&6; }
1898 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1899 $as_echo_n "(cached) " >&6
1900 fi
1901 eval ac_res=\$$3
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904 else
1905 # Is the header compilable?
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1907 $as_echo_n "checking $2 usability... " >&6; }
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1910 $4
1911 #include <$2>
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914 ac_header_compiler=yes
1915 else
1916 ac_header_compiler=no
1917 fi
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1920 $as_echo "$ac_header_compiler" >&6; }
1921
1922 # Is the header present?
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1924 $as_echo_n "checking $2 presence... " >&6; }
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1927 #include <$2>
1928 _ACEOF
1929 if ac_fn_c_try_cpp "$LINENO"; then :
1930 ac_header_preproc=yes
1931 else
1932 ac_header_preproc=no
1933 fi
1934 rm -f conftest.err conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1936 $as_echo "$ac_header_preproc" >&6; }
1937
1938 # So? What about this header?
1939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1940 yes:no: )
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1942 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945 ;;
1946 no:yes:* )
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1948 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1950 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1952 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1954 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1956 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1957 ;;
1958 esac
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1962 $as_echo_n "(cached) " >&6
1963 else
1964 eval "$3=\$ac_header_compiler"
1965 fi
1966 eval ac_res=\$$3
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 fi
1970 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971
1972 } # ac_fn_c_check_header_mongrel
1973
1974 # ac_fn_c_try_run LINENO
1975 # ----------------------
1976 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1977 # that executables *can* be run.
1978 ac_fn_c_try_run ()
1979 {
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 if { { ac_try="$ac_link"
1982 case "(($ac_try" in
1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984 *) ac_try_echo=$ac_try;;
1985 esac
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_link") 2>&5
1989 ac_status=$?
1990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1992 { { case "(($ac_try" in
1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994 *) ac_try_echo=$ac_try;;
1995 esac
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998 (eval "$ac_try") 2>&5
1999 ac_status=$?
2000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 test $ac_status = 0; }; }; then :
2002 ac_retval=0
2003 else
2004 $as_echo "$as_me: program exited with status $ac_status" >&5
2005 $as_echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2007
2008 ac_retval=$ac_status
2009 fi
2010 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2012 return $ac_retval
2013
2014 } # ac_fn_c_try_run
2015
2016 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2017 # -------------------------------------------------------
2018 # Tests whether HEADER exists and can be compiled using the include files in
2019 # INCLUDES, setting the cache variable VAR accordingly.
2020 ac_fn_c_check_header_compile ()
2021 {
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2024 $as_echo_n "checking for $2... " >&6; }
2025 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2026 $as_echo_n "(cached) " >&6
2027 else
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2030 $4
2031 #include <$2>
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034 eval "$3=yes"
2035 else
2036 eval "$3=no"
2037 fi
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 fi
2040 eval ac_res=\$$3
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2044
2045 } # ac_fn_c_check_header_compile
2046
2047 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2048 # --------------------------------------------
2049 # Tries to find the compile-time value of EXPR in a program that includes
2050 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2051 # computed
2052 ac_fn_c_compute_int ()
2053 {
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 if test "$cross_compiling" = yes; then
2056 # Depending upon the size, compute the lo and hi bounds.
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2059 $4
2060 int
2061 main ()
2062 {
2063 static int test_array [1 - 2 * !(($2) >= 0)];
2064 test_array [0] = 0
2065
2066 ;
2067 return 0;
2068 }
2069 _ACEOF
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071 ac_lo=0 ac_mid=0
2072 while :; do
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2075 $4
2076 int
2077 main ()
2078 {
2079 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2080 test_array [0] = 0
2081
2082 ;
2083 return 0;
2084 }
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087 ac_hi=$ac_mid; break
2088 else
2089 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2090 if test $ac_lo -le $ac_mid; then
2091 ac_lo= ac_hi=
2092 break
2093 fi
2094 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2095 fi
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 done
2098 else
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2101 $4
2102 int
2103 main ()
2104 {
2105 static int test_array [1 - 2 * !(($2) < 0)];
2106 test_array [0] = 0
2107
2108 ;
2109 return 0;
2110 }
2111 _ACEOF
2112 if ac_fn_c_try_compile "$LINENO"; then :
2113 ac_hi=-1 ac_mid=-1
2114 while :; do
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2117 $4
2118 int
2119 main ()
2120 {
2121 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2122 test_array [0] = 0
2123
2124 ;
2125 return 0;
2126 }
2127 _ACEOF
2128 if ac_fn_c_try_compile "$LINENO"; then :
2129 ac_lo=$ac_mid; break
2130 else
2131 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2132 if test $ac_mid -le $ac_hi; then
2133 ac_lo= ac_hi=
2134 break
2135 fi
2136 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2137 fi
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139 done
2140 else
2141 ac_lo= ac_hi=
2142 fi
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 fi
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 # Binary search between lo and hi bounds.
2147 while test "x$ac_lo" != "x$ac_hi"; do
2148 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2151 $4
2152 int
2153 main ()
2154 {
2155 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2156 test_array [0] = 0
2157
2158 ;
2159 return 0;
2160 }
2161 _ACEOF
2162 if ac_fn_c_try_compile "$LINENO"; then :
2163 ac_hi=$ac_mid
2164 else
2165 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2166 fi
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 done
2169 case $ac_lo in #((
2170 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2171 '') ac_retval=1 ;;
2172 esac
2173 else
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2176 $4
2177 static long int longval () { return $2; }
2178 static unsigned long int ulongval () { return $2; }
2179 #include <stdio.h>
2180 #include <stdlib.h>
2181 int
2182 main ()
2183 {
2184
2185 FILE *f = fopen ("conftest.val", "w");
2186 if (! f)
2187 return 1;
2188 if (($2) < 0)
2189 {
2190 long int i = longval ();
2191 if (i != ($2))
2192 return 1;
2193 fprintf (f, "%ld", i);
2194 }
2195 else
2196 {
2197 unsigned long int i = ulongval ();
2198 if (i != ($2))
2199 return 1;
2200 fprintf (f, "%lu", i);
2201 }
2202 /* Do not output a trailing newline, as this causes \r\n confusion
2203 on some platforms. */
2204 return ferror (f) || fclose (f) != 0;
2205
2206 ;
2207 return 0;
2208 }
2209 _ACEOF
2210 if ac_fn_c_try_run "$LINENO"; then :
2211 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2212 else
2213 ac_retval=1
2214 fi
2215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2216 conftest.$ac_objext conftest.beam conftest.$ac_ext
2217 rm -f conftest.val
2218
2219 fi
2220 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2221 return $ac_retval
2222
2223 } # ac_fn_c_compute_int
2224
2225 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2226 # -------------------------------------------
2227 # Tests whether TYPE exists after having included INCLUDES, setting cache
2228 # variable VAR accordingly.
2229 ac_fn_c_check_type ()
2230 {
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233 $as_echo_n "checking for $2... " >&6; }
2234 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2235 $as_echo_n "(cached) " >&6
2236 else
2237 eval "$3=no"
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2240 $4
2241 int
2242 main ()
2243 {
2244 if (sizeof ($2))
2245 return 0;
2246 ;
2247 return 0;
2248 }
2249 _ACEOF
2250 if ac_fn_c_try_compile "$LINENO"; then :
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2253 $4
2254 int
2255 main ()
2256 {
2257 if (sizeof (($2)))
2258 return 0;
2259 ;
2260 return 0;
2261 }
2262 _ACEOF
2263 if ac_fn_c_try_compile "$LINENO"; then :
2264
2265 else
2266 eval "$3=yes"
2267 fi
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 fi
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 fi
2272 eval ac_res=\$$3
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2275 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2276
2277 } # ac_fn_c_check_type
2278
2279 # ac_fn_c_find_intX_t LINENO BITS VAR
2280 # -----------------------------------
2281 # Finds a signed integer type with width BITS, setting cache variable VAR
2282 # accordingly.
2283 ac_fn_c_find_intX_t ()
2284 {
2285 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2287 $as_echo_n "checking for int$2_t... " >&6; }
2288 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2289 $as_echo_n "(cached) " >&6
2290 else
2291 eval "$3=no"
2292 for ac_type in int$2_t 'int' 'long int' \
2293 'long long int' 'short int' 'signed char'; do
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2296 $ac_includes_default
2297 int
2298 main ()
2299 {
2300 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2301 test_array [0] = 0
2302
2303 ;
2304 return 0;
2305 }
2306 _ACEOF
2307 if ac_fn_c_try_compile "$LINENO"; then :
2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2310 $ac_includes_default
2311 int
2312 main ()
2313 {
2314 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2315 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2316 test_array [0] = 0
2317
2318 ;
2319 return 0;
2320 }
2321 _ACEOF
2322 if ac_fn_c_try_compile "$LINENO"; then :
2323
2324 else
2325 case $ac_type in #(
2326 int$2_t) :
2327 eval "$3=yes" ;; #(
2328 *) :
2329 eval "$3=\$ac_type" ;;
2330 esac
2331 fi
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333 fi
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335 eval as_val=\$$3
2336 if test "x$as_val" = x""no; then :
2337
2338 else
2339 break
2340 fi
2341 done
2342 fi
2343 eval ac_res=\$$3
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2345 $as_echo "$ac_res" >&6; }
2346 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2347
2348 } # ac_fn_c_find_intX_t
2349
2350 # ac_fn_c_try_link LINENO
2351 # -----------------------
2352 # Try to link conftest.$ac_ext, and return whether this succeeded.
2353 ac_fn_c_try_link ()
2354 {
2355 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2356 rm -f conftest.$ac_objext conftest$ac_exeext
2357 if { { ac_try="$ac_link"
2358 case "(($ac_try" in
2359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360 *) ac_try_echo=$ac_try;;
2361 esac
2362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2363 $as_echo "$ac_try_echo"; } >&5
2364 (eval "$ac_link") 2>conftest.err
2365 ac_status=$?
2366 if test -s conftest.err; then
2367 grep -v '^ *+' conftest.err >conftest.er1
2368 cat conftest.er1 >&5
2369 mv -f conftest.er1 conftest.err
2370 fi
2371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2372 test $ac_status = 0; } && {
2373 test -z "$ac_c_werror_flag" ||
2374 test ! -s conftest.err
2375 } && test -s conftest$ac_exeext && {
2376 test "$cross_compiling" = yes ||
2377 $as_test_x conftest$ac_exeext
2378 }; then :
2379 ac_retval=0
2380 else
2381 $as_echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2383
2384 ac_retval=1
2385 fi
2386 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2387 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2388 # interfere with the next link command; also delete a directory that is
2389 # left behind by Apple's compiler. We do this before executing the actions.
2390 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2391 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2392 return $ac_retval
2393
2394 } # ac_fn_c_try_link
2395
2396 # ac_fn_c_find_uintX_t LINENO BITS VAR
2397 # ------------------------------------
2398 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2399 # accordingly.
2400 ac_fn_c_find_uintX_t ()
2401 {
2402 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2404 $as_echo_n "checking for uint$2_t... " >&6; }
2405 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2406 $as_echo_n "(cached) " >&6
2407 else
2408 eval "$3=no"
2409 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2410 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2413 $ac_includes_default
2414 int
2415 main ()
2416 {
2417 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2418 test_array [0] = 0
2419
2420 ;
2421 return 0;
2422 }
2423 _ACEOF
2424 if ac_fn_c_try_compile "$LINENO"; then :
2425 case $ac_type in #(
2426 uint$2_t) :
2427 eval "$3=yes" ;; #(
2428 *) :
2429 eval "$3=\$ac_type" ;;
2430 esac
2431 fi
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 eval as_val=\$$3
2434 if test "x$as_val" = x""no; then :
2435
2436 else
2437 break
2438 fi
2439 done
2440 fi
2441 eval ac_res=\$$3
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2443 $as_echo "$ac_res" >&6; }
2444 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2445
2446 } # ac_fn_c_find_uintX_t
2447
2448 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2449 # ----------------------------------------------
2450 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2451 ac_fn_c_check_header_preproc ()
2452 {
2453 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2455 $as_echo_n "checking for $2... " >&6; }
2456 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2457 $as_echo_n "(cached) " >&6
2458 else
2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h. */
2461 #include <$2>
2462 _ACEOF
2463 if ac_fn_c_try_cpp "$LINENO"; then :
2464 eval "$3=yes"
2465 else
2466 eval "$3=no"
2467 fi
2468 rm -f conftest.err conftest.$ac_ext
2469 fi
2470 eval ac_res=\$$3
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2472 $as_echo "$ac_res" >&6; }
2473 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2474
2475 } # ac_fn_c_check_header_preproc
2476
2477 # ac_fn_cxx_try_cpp LINENO
2478 # ------------------------
2479 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2480 ac_fn_cxx_try_cpp ()
2481 {
2482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2483 if { { ac_try="$ac_cpp conftest.$ac_ext"
2484 case "(($ac_try" in
2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486 *) ac_try_echo=$ac_try;;
2487 esac
2488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2489 $as_echo "$ac_try_echo"; } >&5
2490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2491 ac_status=$?
2492 if test -s conftest.err; then
2493 grep -v '^ *+' conftest.err >conftest.er1
2494 cat conftest.er1 >&5
2495 mv -f conftest.er1 conftest.err
2496 fi
2497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2498 test $ac_status = 0; } >/dev/null && {
2499 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2500 test ! -s conftest.err
2501 }; then :
2502 ac_retval=0
2503 else
2504 $as_echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.$ac_ext >&5
2506
2507 ac_retval=1
2508 fi
2509 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2510 return $ac_retval
2511
2512 } # ac_fn_cxx_try_cpp
2513
2514 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2515 # ------------------------------------------------
2516 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2517 ac_fn_cxx_check_header_preproc ()
2518 {
2519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2521 $as_echo_n "checking for $2... " >&6; }
2522 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2523 $as_echo_n "(cached) " >&6
2524 else
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2527 #include <$2>
2528 _ACEOF
2529 if ac_fn_cxx_try_cpp "$LINENO"; then :
2530 eval "$3=yes"
2531 else
2532 eval "$3=no"
2533 fi
2534 rm -f conftest.err conftest.$ac_ext
2535 fi
2536 eval ac_res=\$$3
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2538 $as_echo "$ac_res" >&6; }
2539 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2540
2541 } # ac_fn_cxx_check_header_preproc
2542
2543 # ac_fn_c_check_func LINENO FUNC VAR
2544 # ----------------------------------
2545 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2546 ac_fn_c_check_func ()
2547 {
2548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2550 $as_echo_n "checking for $2... " >&6; }
2551 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2552 $as_echo_n "(cached) " >&6
2553 else
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2556 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2558 #define $2 innocuous_$2
2559
2560 /* System header to define __stub macros and hopefully few prototypes,
2561 which can conflict with char $2 (); below.
2562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2563 <limits.h> exists even on freestanding compilers. */
2564
2565 #ifdef __STDC__
2566 # include <limits.h>
2567 #else
2568 # include <assert.h>
2569 #endif
2570
2571 #undef $2
2572
2573 /* Override any GCC internal prototype to avoid an error.
2574 Use char because int might match the return type of a GCC
2575 builtin and then its argument prototype would still apply. */
2576 #ifdef __cplusplus
2577 extern "C"
2578 #endif
2579 char $2 ();
2580 /* The GNU C library defines this for functions which it implements
2581 to always fail with ENOSYS. Some functions are actually named
2582 something starting with __ and the normal name is an alias. */
2583 #if defined __stub_$2 || defined __stub___$2
2584 choke me
2585 #endif
2586
2587 int
2588 main ()
2589 {
2590 return $2 ();
2591 ;
2592 return 0;
2593 }
2594 _ACEOF
2595 if ac_fn_c_try_link "$LINENO"; then :
2596 eval "$3=yes"
2597 else
2598 eval "$3=no"
2599 fi
2600 rm -f core conftest.err conftest.$ac_objext \
2601 conftest$ac_exeext conftest.$ac_ext
2602 fi
2603 eval ac_res=\$$3
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2605 $as_echo "$ac_res" >&6; }
2606 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2607
2608 } # ac_fn_c_check_func
2609
2610 # ac_fn_cxx_try_link LINENO
2611 # -------------------------
2612 # Try to link conftest.$ac_ext, and return whether this succeeded.
2613 ac_fn_cxx_try_link ()
2614 {
2615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2616 rm -f conftest.$ac_objext conftest$ac_exeext
2617 if { { ac_try="$ac_link"
2618 case "(($ac_try" in
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2621 esac
2622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2623 $as_echo "$ac_try_echo"; } >&5
2624 (eval "$ac_link") 2>conftest.err
2625 ac_status=$?
2626 if test -s conftest.err; then
2627 grep -v '^ *+' conftest.err >conftest.er1
2628 cat conftest.er1 >&5
2629 mv -f conftest.er1 conftest.err
2630 fi
2631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2632 test $ac_status = 0; } && {
2633 test -z "$ac_cxx_werror_flag" ||
2634 test ! -s conftest.err
2635 } && test -s conftest$ac_exeext && {
2636 test "$cross_compiling" = yes ||
2637 $as_test_x conftest$ac_exeext
2638 }; then :
2639 ac_retval=0
2640 else
2641 $as_echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2643
2644 ac_retval=1
2645 fi
2646 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2647 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2648 # interfere with the next link command; also delete a directory that is
2649 # left behind by Apple's compiler. We do this before executing the actions.
2650 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2651 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2652 return $ac_retval
2653
2654 } # ac_fn_cxx_try_link
2655 cat >config.log <<_ACEOF
2656 This file contains any messages produced by compilers while
2657 running configure, to aid debugging if configure makes a mistake.
2658
2659 It was created by $as_me, which was
2660 generated by GNU Autoconf 2.64. Invocation command line was
2661
2662 $ $0 $@
2663
2664 _ACEOF
2665 exec 5>>config.log
2666 {
2667 cat <<_ASUNAME
2668 ## --------- ##
2669 ## Platform. ##
2670 ## --------- ##
2671
2672 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2673 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2674 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2675 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2676 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2677
2678 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2679 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2680
2681 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2682 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2683 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2684 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2685 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2686 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2687 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2688
2689 _ASUNAME
2690
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2693 do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 $as_echo "PATH: $as_dir"
2697 done
2698 IFS=$as_save_IFS
2699
2700 } >&5
2701
2702 cat >&5 <<_ACEOF
2703
2704
2705 ## ----------- ##
2706 ## Core tests. ##
2707 ## ----------- ##
2708
2709 _ACEOF
2710
2711
2712 # Keep a trace of the command line.
2713 # Strip out --no-create and --no-recursion so they do not pile up.
2714 # Strip out --silent because we don't want to record it for future runs.
2715 # Also quote any args containing shell meta-characters.
2716 # Make two passes to allow for proper duplicate-argument suppression.
2717 ac_configure_args=
2718 ac_configure_args0=
2719 ac_configure_args1=
2720 ac_must_keep_next=false
2721 for ac_pass in 1 2
2722 do
2723 for ac_arg
2724 do
2725 case $ac_arg in
2726 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2727 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2728 | -silent | --silent | --silen | --sile | --sil)
2729 continue ;;
2730 *\'*)
2731 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2732 esac
2733 case $ac_pass in
2734 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2735 2)
2736 as_fn_append ac_configure_args1 " '$ac_arg'"
2737 if test $ac_must_keep_next = true; then
2738 ac_must_keep_next=false # Got value, back to normal.
2739 else
2740 case $ac_arg in
2741 *=* | --config-cache | -C | -disable-* | --disable-* \
2742 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2743 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2744 | -with-* | --with-* | -without-* | --without-* | --x)
2745 case "$ac_configure_args0 " in
2746 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2747 esac
2748 ;;
2749 -* ) ac_must_keep_next=true ;;
2750 esac
2751 fi
2752 as_fn_append ac_configure_args " '$ac_arg'"
2753 ;;
2754 esac
2755 done
2756 done
2757 { ac_configure_args0=; unset ac_configure_args0;}
2758 { ac_configure_args1=; unset ac_configure_args1;}
2759
2760 # When interrupted or exit'd, cleanup temporary files, and complete
2761 # config.log. We remove comments because anyway the quotes in there
2762 # would cause problems or look ugly.
2763 # WARNING: Use '\'' to represent an apostrophe within the trap.
2764 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2765 trap 'exit_status=$?
2766 # Save into config.log some information that might help in debugging.
2767 {
2768 echo
2769
2770 cat <<\_ASBOX
2771 ## ---------------- ##
2772 ## Cache variables. ##
2773 ## ---------------- ##
2774 _ASBOX
2775 echo
2776 # The following way of writing the cache mishandles newlines in values,
2777 (
2778 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2779 eval ac_val=\$$ac_var
2780 case $ac_val in #(
2781 *${as_nl}*)
2782 case $ac_var in #(
2783 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2784 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2785 esac
2786 case $ac_var in #(
2787 _ | IFS | as_nl) ;; #(
2788 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2789 *) { eval $ac_var=; unset $ac_var;} ;;
2790 esac ;;
2791 esac
2792 done
2793 (set) 2>&1 |
2794 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2795 *${as_nl}ac_space=\ *)
2796 sed -n \
2797 "s/'\''/'\''\\\\'\'''\''/g;
2798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2799 ;; #(
2800 *)
2801 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2802 ;;
2803 esac |
2804 sort
2805 )
2806 echo
2807
2808 cat <<\_ASBOX
2809 ## ----------------- ##
2810 ## Output variables. ##
2811 ## ----------------- ##
2812 _ASBOX
2813 echo
2814 for ac_var in $ac_subst_vars
2815 do
2816 eval ac_val=\$$ac_var
2817 case $ac_val in
2818 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2819 esac
2820 $as_echo "$ac_var='\''$ac_val'\''"
2821 done | sort
2822 echo
2823
2824 if test -n "$ac_subst_files"; then
2825 cat <<\_ASBOX
2826 ## ------------------- ##
2827 ## File substitutions. ##
2828 ## ------------------- ##
2829 _ASBOX
2830 echo
2831 for ac_var in $ac_subst_files
2832 do
2833 eval ac_val=\$$ac_var
2834 case $ac_val in
2835 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2836 esac
2837 $as_echo "$ac_var='\''$ac_val'\''"
2838 done | sort
2839 echo
2840 fi
2841
2842 if test -s confdefs.h; then
2843 cat <<\_ASBOX
2844 ## ----------- ##
2845 ## confdefs.h. ##
2846 ## ----------- ##
2847 _ASBOX
2848 echo
2849 cat confdefs.h
2850 echo
2851 fi
2852 test "$ac_signal" != 0 &&
2853 $as_echo "$as_me: caught signal $ac_signal"
2854 $as_echo "$as_me: exit $exit_status"
2855 } >&5
2856 rm -f core *.core core.conftest.* &&
2857 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2858 exit $exit_status
2859 ' 0
2860 for ac_signal in 1 2 13 15; do
2861 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2862 done
2863 ac_signal=0
2864
2865 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2866 rm -f -r conftest* confdefs.h
2867
2868 $as_echo "/* confdefs.h */" > confdefs.h
2869
2870 # Predefined preprocessor variables.
2871
2872 cat >>confdefs.h <<_ACEOF
2873 #define PACKAGE_NAME "$PACKAGE_NAME"
2874 _ACEOF
2875
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2878 _ACEOF
2879
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2882 _ACEOF
2883
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_STRING "$PACKAGE_STRING"
2886 _ACEOF
2887
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2890 _ACEOF
2891
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_URL "$PACKAGE_URL"
2894 _ACEOF
2895
2896
2897 # Let the site file select an alternate cache file if it wants to.
2898 # Prefer an explicitly selected file to automatically selected ones.
2899 ac_site_file1=NONE
2900 ac_site_file2=NONE
2901 if test -n "$CONFIG_SITE"; then
2902 ac_site_file1=$CONFIG_SITE
2903 elif test "x$prefix" != xNONE; then
2904 ac_site_file1=$prefix/share/config.site
2905 ac_site_file2=$prefix/etc/config.site
2906 else
2907 ac_site_file1=$ac_default_prefix/share/config.site
2908 ac_site_file2=$ac_default_prefix/etc/config.site
2909 fi
2910 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2911 do
2912 test "x$ac_site_file" = xNONE && continue
2913 if test -r "$ac_site_file"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2915 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2916 sed 's/^/| /' "$ac_site_file" >&5
2917 . "$ac_site_file"
2918 fi
2919 done
2920
2921 if test -r "$cache_file"; then
2922 # Some versions of bash will fail to source /dev/null (special
2923 # files actually), so we avoid doing that.
2924 if test -f "$cache_file"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2926 $as_echo "$as_me: loading cache $cache_file" >&6;}
2927 case $cache_file in
2928 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2929 *) . "./$cache_file";;
2930 esac
2931 fi
2932 else
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2934 $as_echo "$as_me: creating cache $cache_file" >&6;}
2935 >$cache_file
2936 fi
2937
2938 # Check that the precious variables saved in the cache have kept the same
2939 # value.
2940 ac_cache_corrupted=false
2941 for ac_var in $ac_precious_vars; do
2942 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2943 eval ac_new_set=\$ac_env_${ac_var}_set
2944 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2945 eval ac_new_val=\$ac_env_${ac_var}_value
2946 case $ac_old_set,$ac_new_set in
2947 set,)
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2949 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2950 ac_cache_corrupted=: ;;
2951 ,set)
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2953 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2954 ac_cache_corrupted=: ;;
2955 ,);;
2956 *)
2957 if test "x$ac_old_val" != "x$ac_new_val"; then
2958 # differences in whitespace do not lead to failure.
2959 ac_old_val_w=`echo x $ac_old_val`
2960 ac_new_val_w=`echo x $ac_new_val`
2961 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2963 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2964 ac_cache_corrupted=:
2965 else
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2967 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2968 eval $ac_var=\$ac_old_val
2969 fi
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2971 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2973 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2974 fi;;
2975 esac
2976 # Pass precious variables to config.status.
2977 if test "$ac_new_set" = set; then
2978 case $ac_new_val in
2979 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2980 *) ac_arg=$ac_var=$ac_new_val ;;
2981 esac
2982 case " $ac_configure_args " in
2983 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2984 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2985 esac
2986 fi
2987 done
2988 if $ac_cache_corrupted; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2992 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2993 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2994 fi
2995 ## -------------------- ##
2996 ## Main body of script. ##
2997 ## -------------------- ##
2998
2999 ac_ext=c
3000 ac_cpp='$CPP $CPPFLAGS'
3001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3004
3005
3006
3007
3008
3009
3010 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3011
3012
3013 gcc_version=`cat $srcdir/BASE-VER`
3014
3015 # Determine the host, build, and target systems
3016 ac_aux_dir=
3017 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3018 for ac_t in install-sh install.sh shtool; do
3019 if test -f "$ac_dir/$ac_t"; then
3020 ac_aux_dir=$ac_dir
3021 ac_install_sh="$ac_aux_dir/$ac_t -c"
3022 break 2
3023 fi
3024 done
3025 done
3026 if test -z "$ac_aux_dir"; then
3027 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3028 fi
3029
3030 # These three variables are undocumented and unsupported,
3031 # and are intended to be withdrawn in a future Autoconf release.
3032 # They can cause serious problems if a builder's source tree is in a directory
3033 # whose full name contains unusual characters.
3034 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3035 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3036 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3037
3038
3039 # Make sure we can run config.sub.
3040 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3041 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3042
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3044 $as_echo_n "checking build system type... " >&6; }
3045 if test "${ac_cv_build+set}" = set; then :
3046 $as_echo_n "(cached) " >&6
3047 else
3048 ac_build_alias=$build_alias
3049 test "x$ac_build_alias" = x &&
3050 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3051 test "x$ac_build_alias" = x &&
3052 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3053 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3054 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3055
3056 fi
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3058 $as_echo "$ac_cv_build" >&6; }
3059 case $ac_cv_build in
3060 *-*-*) ;;
3061 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3062 esac
3063 build=$ac_cv_build
3064 ac_save_IFS=$IFS; IFS='-'
3065 set x $ac_cv_build
3066 shift
3067 build_cpu=$1
3068 build_vendor=$2
3069 shift; shift
3070 # Remember, the first character of IFS is used to create $*,
3071 # except with old shells:
3072 build_os=$*
3073 IFS=$ac_save_IFS
3074 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3075
3076
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3078 $as_echo_n "checking host system type... " >&6; }
3079 if test "${ac_cv_host+set}" = set; then :
3080 $as_echo_n "(cached) " >&6
3081 else
3082 if test "x$host_alias" = x; then
3083 ac_cv_host=$ac_cv_build
3084 else
3085 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3086 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3087 fi
3088
3089 fi
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3091 $as_echo "$ac_cv_host" >&6; }
3092 case $ac_cv_host in
3093 *-*-*) ;;
3094 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3095 esac
3096 host=$ac_cv_host
3097 ac_save_IFS=$IFS; IFS='-'
3098 set x $ac_cv_host
3099 shift
3100 host_cpu=$1
3101 host_vendor=$2
3102 shift; shift
3103 # Remember, the first character of IFS is used to create $*,
3104 # except with old shells:
3105 host_os=$*
3106 IFS=$ac_save_IFS
3107 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3108
3109
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3111 $as_echo_n "checking target system type... " >&6; }
3112 if test "${ac_cv_target+set}" = set; then :
3113 $as_echo_n "(cached) " >&6
3114 else
3115 if test "x$target_alias" = x; then
3116 ac_cv_target=$ac_cv_host
3117 else
3118 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3119 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3120 fi
3121
3122 fi
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3124 $as_echo "$ac_cv_target" >&6; }
3125 case $ac_cv_target in
3126 *-*-*) ;;
3127 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3128 esac
3129 target=$ac_cv_target
3130 ac_save_IFS=$IFS; IFS='-'
3131 set x $ac_cv_target
3132 shift
3133 target_cpu=$1
3134 target_vendor=$2
3135 shift; shift
3136 # Remember, the first character of IFS is used to create $*,
3137 # except with old shells:
3138 target_os=$*
3139 IFS=$ac_save_IFS
3140 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3141
3142
3143 # The aliases save the names the user supplied, while $host etc.
3144 # will get canonicalized.
3145 test -n "$target_alias" &&
3146 test "$program_prefix$program_suffix$program_transform_name" = \
3147 NONENONEs,x,x, &&
3148 program_prefix=${target_alias}-
3149
3150 # Determine the noncanonical target name, for directory use.
3151 case ${build_alias} in
3152 "") build_noncanonical=${build} ;;
3153 *) build_noncanonical=${build_alias} ;;
3154 esac
3155
3156 case ${host_alias} in
3157 "") host_noncanonical=${build_noncanonical} ;;
3158 *) host_noncanonical=${host_alias} ;;
3159 esac
3160
3161 case ${target_alias} in
3162 "") target_noncanonical=${host_noncanonical} ;;
3163 *) target_noncanonical=${target_alias} ;;
3164 esac
3165
3166
3167
3168
3169 # Determine the target- and build-specific subdirectories
3170
3171 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3172 # have matching libraries, they should use host libraries: Makefile.tpl
3173 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3174 # However, they still use the build modules, because the corresponding
3175 # host modules (e.g. bison) are only built for the host when bootstrap
3176 # finishes. So:
3177 # - build_subdir is where we find build modules, and never changes.
3178 # - build_libsubdir is where we find build libraries, and can be overridden.
3179
3180 # Prefix 'build-' so this never conflicts with target_subdir.
3181 build_subdir="build-${build_noncanonical}"
3182
3183 # Check whether --with-build-libsubdir was given.
3184 if test "${with_build_libsubdir+set}" = set; then :
3185 withval=$with_build_libsubdir; build_libsubdir="$withval"
3186 else
3187 build_libsubdir="$build_subdir"
3188 fi
3189
3190 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3191 if ( test $srcdir = . && test -d gcc ) \
3192 || test -d $srcdir/../host-${host_noncanonical}; then
3193 host_subdir="host-${host_noncanonical}"
3194 else
3195 host_subdir=.
3196 fi
3197 # No prefix.
3198 target_subdir=${target_noncanonical}
3199
3200
3201 # Set program_transform_name
3202 test "$program_prefix" != NONE &&
3203 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3204 # Use a double $ so make ignores it.
3205 test "$program_suffix" != NONE &&
3206 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3207 # Double any \ or $.
3208 # By default was `s,x,x', remove it if useless.
3209 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3210 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3211
3212
3213 # Check for bogus environment variables.
3214 # Test if LIBRARY_PATH contains the notation for the current directory
3215 # since this would lead to problems installing/building glibc.
3216 # LIBRARY_PATH contains the current directory if one of the following
3217 # is true:
3218 # - one of the terminals (":" and ";") is the first or last sign
3219 # - two terminals occur directly after each other
3220 # - the path contains an element with a dot in it
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3222 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3223 case ${LIBRARY_PATH} in
3224 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3225 library_path_setting="contains current directory"
3226 ;;
3227 *)
3228 library_path_setting="ok"
3229 ;;
3230 esac
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3232 $as_echo "$library_path_setting" >&6; }
3233 if test "$library_path_setting" != "ok"; then
3234 as_fn_error "
3235 *** LIBRARY_PATH shouldn't contain the current directory when
3236 *** building gcc. Please change the environment variable
3237 *** and run configure again." "$LINENO" 5
3238 fi
3239
3240 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3241 # since this would lead to problems installing/building glibc.
3242 # GCC_EXEC_PREFIX contains the current directory if one of the following
3243 # is true:
3244 # - one of the terminals (":" and ";") is the first or last sign
3245 # - two terminals occur directly after each other
3246 # - the path contains an element with a dot in it
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3248 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3249 case ${GCC_EXEC_PREFIX} in
3250 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3251 gcc_exec_prefix_setting="contains current directory"
3252 ;;
3253 *)
3254 gcc_exec_prefix_setting="ok"
3255 ;;
3256 esac
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3258 $as_echo "$gcc_exec_prefix_setting" >&6; }
3259 if test "$gcc_exec_prefix_setting" != "ok"; then
3260 as_fn_error "
3261 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3262 *** building gcc. Please change the environment variable
3263 *** and run configure again." "$LINENO" 5
3264 fi
3265
3266 # -----------
3267 # Directories
3268 # -----------
3269
3270 # Specify the local prefix
3271 local_prefix=
3272
3273 # Check whether --with-local-prefix was given.
3274 if test "${with_local_prefix+set}" = set; then :
3275 withval=$with_local_prefix; case "${withval}" in
3276 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3277 no) ;;
3278 *) local_prefix=$with_local_prefix ;;
3279 esac
3280 fi
3281
3282
3283 # Default local prefix if it is empty
3284 if test x$local_prefix = x; then
3285 local_prefix=/usr/local
3286 fi
3287
3288 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3289 # passed in by the toplevel make and thus we'd get different behavior
3290 # depending on where we built the sources.
3291 gcc_gxx_include_dir=
3292 # Specify the g++ header file directory
3293
3294 # Check whether --with-gxx-include-dir was given.
3295 if test "${with_gxx_include_dir+set}" = set; then :
3296 withval=$with_gxx_include_dir; case "${withval}" in
3297 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3298 no) ;;
3299 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3300 esac
3301 fi
3302
3303
3304 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3305 if test x${gcc_gxx_include_dir} = x; then
3306 if test x${enable_version_specific_runtime_libs} = xyes; then
3307 gcc_gxx_include_dir='${libsubdir}/include/c++'
3308 else
3309 libstdcxx_incdir='include/c++/$(version)'
3310 if test x$host != x$target; then
3311 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3312 fi
3313 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3314 fi
3315 fi
3316
3317
3318 # Check whether --with-cpp_install_dir was given.
3319 if test "${with_cpp_install_dir+set}" = set; then :
3320 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3321 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3322 elif test x$withval != xno; then
3323 cpp_install_dir=$withval
3324 fi
3325 fi
3326
3327
3328 # We would like to our source tree to be readonly. However when releases or
3329 # pre-releases are generated, the flex/bison generated files as well as the
3330 # various formats of manuals need to be included along with the rest of the
3331 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3332 # just that.
3333
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3335 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3336 # Check whether --enable-generated-files-in-srcdir was given.
3337 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3338 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3339 else
3340 generated_files_in_srcdir=no
3341 fi
3342
3343
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3345 $as_echo "$generated_files_in_srcdir" >&6; }
3346
3347 if test "$generated_files_in_srcdir" = "yes"; then
3348 GENINSRC=''
3349 else
3350 GENINSRC='#'
3351 fi
3352
3353
3354 # -------------------
3355 # Find default linker
3356 # -------------------
3357
3358 # With GNU ld
3359
3360 # Check whether --with-gnu-ld was given.
3361 if test "${with_gnu_ld+set}" = set; then :
3362 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3363 else
3364 gnu_ld_flag=no
3365 fi
3366
3367
3368 # With pre-defined ld
3369
3370 # Check whether --with-ld was given.
3371 if test "${with_ld+set}" = set; then :
3372 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3373 fi
3374
3375 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3376 if test ! -x "$DEFAULT_LINKER"; then
3377 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3378 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3379 gnu_ld_flag=yes
3380 fi
3381
3382 cat >>confdefs.h <<_ACEOF
3383 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3384 _ACEOF
3385
3386 fi
3387
3388 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3389
3390 cat >>confdefs.h <<_ACEOF
3391 #define HAVE_GNU_LD $gnu_ld
3392 _ACEOF
3393
3394
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3396 $as_echo_n "checking whether a default linker was specified... " >&6; }
3397 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3398 if test x"$gnu_ld_flag" = x"no"; then
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3400 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3401 else
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3403 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3404 fi
3405 else
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3408 fi
3409
3410 # With demangler in GNU ld
3411
3412 # Check whether --with-demangler-in-ld was given.
3413 if test "${with_demangler_in_ld+set}" = set; then :
3414 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3415 else
3416 demangler_in_ld=yes
3417 fi
3418
3419
3420 # ----------------------
3421 # Find default assembler
3422 # ----------------------
3423
3424 # With GNU as
3425
3426 # Check whether --with-gnu-as was given.
3427 if test "${with_gnu_as+set}" = set; then :
3428 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3429 else
3430 gas_flag=no
3431 fi
3432
3433
3434
3435 # Check whether --with-as was given.
3436 if test "${with_as+set}" = set; then :
3437 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3438 fi
3439
3440 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3441 if test ! -x "$DEFAULT_ASSEMBLER"; then
3442 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3443 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3444 gas_flag=yes
3445 fi
3446
3447 cat >>confdefs.h <<_ACEOF
3448 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3449 _ACEOF
3450
3451 fi
3452
3453 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3454
3455 cat >>confdefs.h <<_ACEOF
3456 #define HAVE_GNU_AS $gnu_as
3457 _ACEOF
3458
3459
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3461 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3462 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3463 if test x"$gas_flag" = x"no"; then
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3465 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3466 else
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3468 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3469 fi
3470 else
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 $as_echo "no" >&6; }
3473 fi
3474
3475 # ---------------
3476 # Find C compiler
3477 # ---------------
3478
3479 # If a non-executable a.out is present (e.g. created by GNU as above even if
3480 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3481 # file, even when creating an executable, so an execution test fails.
3482 # Remove possible default executable files to avoid this.
3483 #
3484 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3485 # Autoconf includes it.
3486 rm -f a.out a.exe b.out
3487
3488 # Find the native compiler
3489 ac_ext=c
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494 if test -n "$ac_tool_prefix"; then
3495 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3496 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if test "${ac_cv_prog_CC+set}" = set; then :
3500 $as_echo_n "(cached) " >&6
3501 else
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC="$CC" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3507 do
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 break 2
3515 fi
3516 done
3517 done
3518 IFS=$as_save_IFS
3519
3520 fi
3521 fi
3522 CC=$ac_cv_prog_CC
3523 if test -n "$CC"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3526 else
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3529 fi
3530
3531
3532 fi
3533 if test -z "$ac_cv_prog_CC"; then
3534 ac_ct_CC=$CC
3535 # Extract the first word of "gcc", so it can be a program name with args.
3536 set dummy gcc; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 if test -n "$ac_ct_CC"; then
3543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3547 do
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552 ac_cv_prog_ac_ct_CC="gcc"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3555 fi
3556 done
3557 done
3558 IFS=$as_save_IFS
3559
3560 fi
3561 fi
3562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3563 if test -n "$ac_ct_CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3565 $as_echo "$ac_ct_CC" >&6; }
3566 else
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3569 fi
3570
3571 if test "x$ac_ct_CC" = x; then
3572 CC=""
3573 else
3574 case $cross_compiling:$ac_tool_warned in
3575 yes:)
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3578 ac_tool_warned=yes ;;
3579 esac
3580 CC=$ac_ct_CC
3581 fi
3582 else
3583 CC="$ac_cv_prog_CC"
3584 fi
3585
3586 if test -z "$CC"; then
3587 if test -n "$ac_tool_prefix"; then
3588 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3589 set dummy ${ac_tool_prefix}cc; ac_word=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if test "${ac_cv_prog_CC+set}" = set; then :
3593 $as_echo_n "(cached) " >&6
3594 else
3595 if test -n "$CC"; then
3596 ac_cv_prog_CC="$CC" # Let the user override the test.
3597 else
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3600 do
3601 IFS=$as_save_IFS
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605 ac_cv_prog_CC="${ac_tool_prefix}cc"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 break 2
3608 fi
3609 done
3610 done
3611 IFS=$as_save_IFS
3612
3613 fi
3614 fi
3615 CC=$ac_cv_prog_CC
3616 if test -n "$CC"; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618 $as_echo "$CC" >&6; }
3619 else
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3622 fi
3623
3624
3625 fi
3626 fi
3627 if test -z "$CC"; then
3628 # Extract the first word of "cc", so it can be a program name with args.
3629 set dummy cc; ac_word=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if test "${ac_cv_prog_CC+set}" = set; then :
3633 $as_echo_n "(cached) " >&6
3634 else
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC="$CC" # Let the user override the test.
3637 else
3638 ac_prog_rejected=no
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH
3641 do
3642 IFS=$as_save_IFS
3643 test -z "$as_dir" && as_dir=.
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3647 ac_prog_rejected=yes
3648 continue
3649 fi
3650 ac_cv_prog_CC="cc"
3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 break 2
3653 fi
3654 done
3655 done
3656 IFS=$as_save_IFS
3657
3658 if test $ac_prog_rejected = yes; then
3659 # We found a bogon in the path, so make sure we never use it.
3660 set dummy $ac_cv_prog_CC
3661 shift
3662 if test $# != 0; then
3663 # We chose a different compiler from the bogus one.
3664 # However, it has the same basename, so the bogon will be chosen
3665 # first if we set CC to just the basename; use the full file name.
3666 shift
3667 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3668 fi
3669 fi
3670 fi
3671 fi
3672 CC=$ac_cv_prog_CC
3673 if test -n "$CC"; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675 $as_echo "$CC" >&6; }
3676 else
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3679 fi
3680
3681
3682 fi
3683 if test -z "$CC"; then
3684 if test -n "$ac_tool_prefix"; then
3685 for ac_prog in cl.exe
3686 do
3687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690 $as_echo_n "checking for $ac_word... " >&6; }
3691 if test "${ac_cv_prog_CC+set}" = set; then :
3692 $as_echo_n "(cached) " >&6
3693 else
3694 if test -n "$CC"; then
3695 ac_cv_prog_CC="$CC" # Let the user override the test.
3696 else
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3699 do
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3704 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 break 2
3707 fi
3708 done
3709 done
3710 IFS=$as_save_IFS
3711
3712 fi
3713 fi
3714 CC=$ac_cv_prog_CC
3715 if test -n "$CC"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3717 $as_echo "$CC" >&6; }
3718 else
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3721 fi
3722
3723
3724 test -n "$CC" && break
3725 done
3726 fi
3727 if test -z "$CC"; then
3728 ac_ct_CC=$CC
3729 for ac_prog in cl.exe
3730 do
3731 # Extract the first word of "$ac_prog", so it can be a program name with args.
3732 set dummy $ac_prog; ac_word=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 if test -n "$ac_ct_CC"; then
3739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748 ac_cv_prog_ac_ct_CC="$ac_prog"
3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3750 break 2
3751 fi
3752 done
3753 done
3754 IFS=$as_save_IFS
3755
3756 fi
3757 fi
3758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759 if test -n "$ac_ct_CC"; then
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3761 $as_echo "$ac_ct_CC" >&6; }
3762 else
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3765 fi
3766
3767
3768 test -n "$ac_ct_CC" && break
3769 done
3770
3771 if test "x$ac_ct_CC" = x; then
3772 CC=""
3773 else
3774 case $cross_compiling:$ac_tool_warned in
3775 yes:)
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778 ac_tool_warned=yes ;;
3779 esac
3780 CC=$ac_ct_CC
3781 fi
3782 fi
3783
3784 fi
3785
3786
3787 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789 as_fn_error "no acceptable C compiler found in \$PATH
3790 See \`config.log' for more details." "$LINENO" 5; }
3791
3792 # Provide some information about the compiler.
3793 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3794 set X $ac_compile
3795 ac_compiler=$2
3796 for ac_option in --version -v -V -qversion; do
3797 { { ac_try="$ac_compiler $ac_option >&5"
3798 case "(($ac_try" in
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3801 esac
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3805 ac_status=$?
3806 if test -s conftest.err; then
3807 sed '10a\
3808 ... rest of stderr output deleted ...
3809 10q' conftest.err >conftest.er1
3810 cat conftest.er1 >&5
3811 rm -f conftest.er1 conftest.err
3812 fi
3813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814 test $ac_status = 0; }
3815 done
3816
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3819
3820 int
3821 main ()
3822 {
3823
3824 ;
3825 return 0;
3826 }
3827 _ACEOF
3828 ac_clean_files_save=$ac_clean_files
3829 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3830 # Try to create an executable without -o first, disregard a.out.
3831 # It will help us diagnose broken compilers, and finding out an intuition
3832 # of exeext.
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3834 $as_echo_n "checking for C compiler default output file name... " >&6; }
3835 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3836
3837 # The possible output files:
3838 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3839
3840 ac_rmfiles=
3841 for ac_file in $ac_files
3842 do
3843 case $ac_file in
3844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3845 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3846 esac
3847 done
3848 rm -f $ac_rmfiles
3849
3850 if { { ac_try="$ac_link_default"
3851 case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3854 esac
3855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857 (eval "$ac_link_default") 2>&5
3858 ac_status=$?
3859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860 test $ac_status = 0; }; then :
3861 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3862 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3863 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3864 # so that the user can short-circuit this test for compilers unknown to
3865 # Autoconf.
3866 for ac_file in $ac_files ''
3867 do
3868 test -f "$ac_file" || continue
3869 case $ac_file in
3870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3871 ;;
3872 [ab].out )
3873 # We found the default executable, but exeext='' is most
3874 # certainly right.
3875 break;;
3876 *.* )
3877 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3878 then :; else
3879 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3880 fi
3881 # We set ac_cv_exeext here because the later test for it is not
3882 # safe: cross compilers may not add the suffix if given an `-o'
3883 # argument, so we may need to know it at that point already.
3884 # Even if this section looks crufty: it has the advantage of
3885 # actually working.
3886 break;;
3887 * )
3888 break;;
3889 esac
3890 done
3891 test "$ac_cv_exeext" = no && ac_cv_exeext=
3892
3893 else
3894 ac_file=''
3895 fi
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3897 $as_echo "$ac_file" >&6; }
3898 if test -z "$ac_file"; then :
3899 $as_echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3901
3902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3904 { as_fn_set_status 77
3905 as_fn_error "C compiler cannot create executables
3906 See \`config.log' for more details." "$LINENO" 5; }; }
3907 fi
3908 ac_exeext=$ac_cv_exeext
3909
3910 # Check that the compiler produces executables we can run. If not, either
3911 # the compiler is broken, or we cross compile.
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3913 $as_echo_n "checking whether the C compiler works... " >&6; }
3914 # If not cross compiling, check that we can run a simple program.
3915 if test "$cross_compiling" != yes; then
3916 if { ac_try='./$ac_file'
3917 { { case "(($ac_try" in
3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3920 esac
3921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922 $as_echo "$ac_try_echo"; } >&5
3923 (eval "$ac_try") 2>&5
3924 ac_status=$?
3925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926 test $ac_status = 0; }; }; then
3927 cross_compiling=no
3928 else
3929 if test "$cross_compiling" = maybe; then
3930 cross_compiling=yes
3931 else
3932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3934 as_fn_error "cannot run C compiled programs.
3935 If you meant to cross compile, use \`--host'.
3936 See \`config.log' for more details." "$LINENO" 5; }
3937 fi
3938 fi
3939 fi
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3941 $as_echo "yes" >&6; }
3942
3943 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3944 ac_clean_files=$ac_clean_files_save
3945 # Check that the compiler produces executables we can run. If not, either
3946 # the compiler is broken, or we cross compile.
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3948 $as_echo_n "checking whether we are cross compiling... " >&6; }
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3950 $as_echo "$cross_compiling" >&6; }
3951
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3953 $as_echo_n "checking for suffix of executables... " >&6; }
3954 if { { ac_try="$ac_link"
3955 case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958 esac
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961 (eval "$ac_link") 2>&5
3962 ac_status=$?
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }; then :
3965 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3966 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3967 # work properly (i.e., refer to `conftest.exe'), while it won't with
3968 # `rm'.
3969 for ac_file in conftest.exe conftest conftest.*; do
3970 test -f "$ac_file" || continue
3971 case $ac_file in
3972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3973 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3974 break;;
3975 * ) break;;
3976 esac
3977 done
3978 else
3979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3981 as_fn_error "cannot compute suffix of executables: cannot compile and link
3982 See \`config.log' for more details." "$LINENO" 5; }
3983 fi
3984 rm -f conftest$ac_cv_exeext
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3986 $as_echo "$ac_cv_exeext" >&6; }
3987
3988 rm -f conftest.$ac_ext
3989 EXEEXT=$ac_cv_exeext
3990 ac_exeext=$EXEEXT
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3992 $as_echo_n "checking for suffix of object files... " >&6; }
3993 if test "${ac_cv_objext+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3995 else
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
3998
3999 int
4000 main ()
4001 {
4002
4003 ;
4004 return 0;
4005 }
4006 _ACEOF
4007 rm -f conftest.o conftest.obj
4008 if { { ac_try="$ac_compile"
4009 case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4012 esac
4013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014 $as_echo "$ac_try_echo"; } >&5
4015 (eval "$ac_compile") 2>&5
4016 ac_status=$?
4017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018 test $ac_status = 0; }; then :
4019 for ac_file in conftest.o conftest.obj conftest.*; do
4020 test -f "$ac_file" || continue;
4021 case $ac_file in
4022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4023 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4024 break;;
4025 esac
4026 done
4027 else
4028 $as_echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4030
4031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4033 as_fn_error "cannot compute suffix of object files: cannot compile
4034 See \`config.log' for more details." "$LINENO" 5; }
4035 fi
4036 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4037 fi
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4039 $as_echo "$ac_cv_objext" >&6; }
4040 OBJEXT=$ac_cv_objext
4041 ac_objext=$OBJEXT
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4043 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4044 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
4046 else
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4049
4050 int
4051 main ()
4052 {
4053 #ifndef __GNUC__
4054 choke me
4055 #endif
4056
4057 ;
4058 return 0;
4059 }
4060 _ACEOF
4061 if ac_fn_c_try_compile "$LINENO"; then :
4062 ac_compiler_gnu=yes
4063 else
4064 ac_compiler_gnu=no
4065 fi
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4068
4069 fi
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4071 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4072 if test $ac_compiler_gnu = yes; then
4073 GCC=yes
4074 else
4075 GCC=
4076 fi
4077 ac_test_CFLAGS=${CFLAGS+set}
4078 ac_save_CFLAGS=$CFLAGS
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4080 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4081 if test "${ac_cv_prog_cc_g+set}" = set; then :
4082 $as_echo_n "(cached) " >&6
4083 else
4084 ac_save_c_werror_flag=$ac_c_werror_flag
4085 ac_c_werror_flag=yes
4086 ac_cv_prog_cc_g=no
4087 CFLAGS="-g"
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4090
4091 int
4092 main ()
4093 {
4094
4095 ;
4096 return 0;
4097 }
4098 _ACEOF
4099 if ac_fn_c_try_compile "$LINENO"; then :
4100 ac_cv_prog_cc_g=yes
4101 else
4102 CFLAGS=""
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4105
4106 int
4107 main ()
4108 {
4109
4110 ;
4111 return 0;
4112 }
4113 _ACEOF
4114 if ac_fn_c_try_compile "$LINENO"; then :
4115
4116 else
4117 ac_c_werror_flag=$ac_save_c_werror_flag
4118 CFLAGS="-g"
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4121
4122 int
4123 main ()
4124 {
4125
4126 ;
4127 return 0;
4128 }
4129 _ACEOF
4130 if ac_fn_c_try_compile "$LINENO"; then :
4131 ac_cv_prog_cc_g=yes
4132 fi
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 fi
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 fi
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 ac_c_werror_flag=$ac_save_c_werror_flag
4139 fi
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4141 $as_echo "$ac_cv_prog_cc_g" >&6; }
4142 if test "$ac_test_CFLAGS" = set; then
4143 CFLAGS=$ac_save_CFLAGS
4144 elif test $ac_cv_prog_cc_g = yes; then
4145 if test "$GCC" = yes; then
4146 CFLAGS="-g -O2"
4147 else
4148 CFLAGS="-g"
4149 fi
4150 else
4151 if test "$GCC" = yes; then
4152 CFLAGS="-O2"
4153 else
4154 CFLAGS=
4155 fi
4156 fi
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4158 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4159 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 ac_cv_prog_cc_c89=no
4163 ac_save_CC=$CC
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4166 #include <stdarg.h>
4167 #include <stdio.h>
4168 #include <sys/types.h>
4169 #include <sys/stat.h>
4170 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4171 struct buf { int x; };
4172 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4173 static char *e (p, i)
4174 char **p;
4175 int i;
4176 {
4177 return p[i];
4178 }
4179 static char *f (char * (*g) (char **, int), char **p, ...)
4180 {
4181 char *s;
4182 va_list v;
4183 va_start (v,p);
4184 s = g (p, va_arg (v,int));
4185 va_end (v);
4186 return s;
4187 }
4188
4189 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4190 function prototypes and stuff, but not '\xHH' hex character constants.
4191 These don't provoke an error unfortunately, instead are silently treated
4192 as 'x'. The following induces an error, until -std is added to get
4193 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4194 array size at least. It's necessary to write '\x00'==0 to get something
4195 that's true only with -std. */
4196 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4197
4198 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4199 inside strings and character constants. */
4200 #define FOO(x) 'x'
4201 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4202
4203 int test (int i, double x);
4204 struct s1 {int (*f) (int a);};
4205 struct s2 {int (*f) (double a);};
4206 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4207 int argc;
4208 char **argv;
4209 int
4210 main ()
4211 {
4212 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4213 ;
4214 return 0;
4215 }
4216 _ACEOF
4217 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4218 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4219 do
4220 CC="$ac_save_CC $ac_arg"
4221 if ac_fn_c_try_compile "$LINENO"; then :
4222 ac_cv_prog_cc_c89=$ac_arg
4223 fi
4224 rm -f core conftest.err conftest.$ac_objext
4225 test "x$ac_cv_prog_cc_c89" != "xno" && break
4226 done
4227 rm -f conftest.$ac_ext
4228 CC=$ac_save_CC
4229
4230 fi
4231 # AC_CACHE_VAL
4232 case "x$ac_cv_prog_cc_c89" in
4233 x)
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4235 $as_echo "none needed" >&6; } ;;
4236 xno)
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4238 $as_echo "unsupported" >&6; } ;;
4239 *)
4240 CC="$CC $ac_cv_prog_cc_c89"
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4242 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4243 esac
4244 if test "x$ac_cv_prog_cc_c89" != xno; then :
4245
4246 fi
4247
4248 ac_ext=c
4249 ac_cpp='$CPP $CPPFLAGS'
4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4253
4254 if test "x$CC" != xcc; then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4256 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4257 else
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4259 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4260 fi
4261 set dummy $CC; ac_cc=`$as_echo "$2" |
4262 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4263 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4264 $as_echo_n "(cached) " >&6
4265 else
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4268
4269 int
4270 main ()
4271 {
4272
4273 ;
4274 return 0;
4275 }
4276 _ACEOF
4277 # Make sure it works both with $CC and with simple cc.
4278 # We do the test twice because some compilers refuse to overwrite an
4279 # existing .o file with -o, though they will create one.
4280 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4281 rm -f conftest2.*
4282 if { { case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285 esac
4286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 $as_echo "$ac_try_echo"; } >&5
4288 (eval "$ac_try") 2>&5
4289 ac_status=$?
4290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; } &&
4292 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295 esac
4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 $as_echo "$ac_try_echo"; } >&5
4298 (eval "$ac_try") 2>&5
4299 ac_status=$?
4300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301 test $ac_status = 0; };
4302 then
4303 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4304 if test "x$CC" != xcc; then
4305 # Test first that cc exists at all.
4306 if { ac_try='cc -c conftest.$ac_ext >&5'
4307 { { case "(($ac_try" in
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4310 esac
4311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4312 $as_echo "$ac_try_echo"; } >&5
4313 (eval "$ac_try") 2>&5
4314 ac_status=$?
4315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4316 test $ac_status = 0; }; }; then
4317 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4318 rm -f conftest2.*
4319 if { { case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4322 esac
4323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324 $as_echo "$ac_try_echo"; } >&5
4325 (eval "$ac_try") 2>&5
4326 ac_status=$?
4327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328 test $ac_status = 0; } &&
4329 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4332 esac
4333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4334 $as_echo "$ac_try_echo"; } >&5
4335 (eval "$ac_try") 2>&5
4336 ac_status=$?
4337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4338 test $ac_status = 0; };
4339 then
4340 # cc works too.
4341 :
4342 else
4343 # cc exists but doesn't like -o.
4344 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4345 fi
4346 fi
4347 fi
4348 else
4349 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4350 fi
4351 rm -f core conftest*
4352
4353 fi
4354 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4356 $as_echo "yes" >&6; }
4357 else
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4360
4361 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4362
4363 fi
4364
4365 # expand $ac_aux_dir to an absolute path
4366 am_aux_dir=`cd $ac_aux_dir && pwd`
4367
4368 # FIXME: we rely on the cache variable name because
4369 # there is no other way.
4370 set dummy $CC
4371 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4372 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4373 if test "$am_t" != yes; then
4374 # Losing compiler, so override with the script.
4375 # FIXME: It is wrong to rewrite CC.
4376 # But if we don't then we get into trouble of one sort or another.
4377 # A longer-term fix would be to have automake use am__CC in this case,
4378 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4379 CC="$am_aux_dir/compile $CC"
4380 fi
4381
4382
4383 ac_ext=cpp
4384 ac_cpp='$CXXCPP $CPPFLAGS'
4385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4388 if test -z "$CXX"; then
4389 if test -n "$CCC"; then
4390 CXX=$CCC
4391 else
4392 if test -n "$ac_tool_prefix"; then
4393 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4394 do
4395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398 $as_echo_n "checking for $ac_word... " >&6; }
4399 if test "${ac_cv_prog_CXX+set}" = set; then :
4400 $as_echo_n "(cached) " >&6
4401 else
4402 if test -n "$CXX"; then
4403 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4404 else
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4407 do
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4412 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 break 2
4415 fi
4416 done
4417 done
4418 IFS=$as_save_IFS
4419
4420 fi
4421 fi
4422 CXX=$ac_cv_prog_CXX
4423 if test -n "$CXX"; then
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4425 $as_echo "$CXX" >&6; }
4426 else
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428 $as_echo "no" >&6; }
4429 fi
4430
4431
4432 test -n "$CXX" && break
4433 done
4434 fi
4435 if test -z "$CXX"; then
4436 ac_ct_CXX=$CXX
4437 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4438 do
4439 # Extract the first word of "$ac_prog", so it can be a program name with args.
4440 set dummy $ac_prog; ac_word=$2
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442 $as_echo_n "checking for $ac_word... " >&6; }
4443 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4444 $as_echo_n "(cached) " >&6
4445 else
4446 if test -n "$ac_ct_CXX"; then
4447 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4448 else
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4451 do
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4456 ac_cv_prog_ac_ct_CXX="$ac_prog"
4457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 break 2
4459 fi
4460 done
4461 done
4462 IFS=$as_save_IFS
4463
4464 fi
4465 fi
4466 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4467 if test -n "$ac_ct_CXX"; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4469 $as_echo "$ac_ct_CXX" >&6; }
4470 else
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4473 fi
4474
4475
4476 test -n "$ac_ct_CXX" && break
4477 done
4478
4479 if test "x$ac_ct_CXX" = x; then
4480 CXX="g++"
4481 else
4482 case $cross_compiling:$ac_tool_warned in
4483 yes:)
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4486 ac_tool_warned=yes ;;
4487 esac
4488 CXX=$ac_ct_CXX
4489 fi
4490 fi
4491
4492 fi
4493 fi
4494 # Provide some information about the compiler.
4495 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4496 set X $ac_compile
4497 ac_compiler=$2
4498 for ac_option in --version -v -V -qversion; do
4499 { { ac_try="$ac_compiler $ac_option >&5"
4500 case "(($ac_try" in
4501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4503 esac
4504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4505 $as_echo "$ac_try_echo"; } >&5
4506 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4507 ac_status=$?
4508 if test -s conftest.err; then
4509 sed '10a\
4510 ... rest of stderr output deleted ...
4511 10q' conftest.err >conftest.er1
4512 cat conftest.er1 >&5
4513 rm -f conftest.er1 conftest.err
4514 fi
4515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4516 test $ac_status = 0; }
4517 done
4518
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4520 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4521 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4526
4527 int
4528 main ()
4529 {
4530 #ifndef __GNUC__
4531 choke me
4532 #endif
4533
4534 ;
4535 return 0;
4536 }
4537 _ACEOF
4538 if ac_fn_cxx_try_compile "$LINENO"; then :
4539 ac_compiler_gnu=yes
4540 else
4541 ac_compiler_gnu=no
4542 fi
4543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4544 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4545
4546 fi
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4548 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4549 if test $ac_compiler_gnu = yes; then
4550 GXX=yes
4551 else
4552 GXX=
4553 fi
4554 ac_test_CXXFLAGS=${CXXFLAGS+set}
4555 ac_save_CXXFLAGS=$CXXFLAGS
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4557 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4558 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4562 ac_cxx_werror_flag=yes
4563 ac_cv_prog_cxx_g=no
4564 CXXFLAGS="-g"
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4567
4568 int
4569 main ()
4570 {
4571
4572 ;
4573 return 0;
4574 }
4575 _ACEOF
4576 if ac_fn_cxx_try_compile "$LINENO"; then :
4577 ac_cv_prog_cxx_g=yes
4578 else
4579 CXXFLAGS=""
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h. */
4582
4583 int
4584 main ()
4585 {
4586
4587 ;
4588 return 0;
4589 }
4590 _ACEOF
4591 if ac_fn_cxx_try_compile "$LINENO"; then :
4592
4593 else
4594 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4595 CXXFLAGS="-g"
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4598
4599 int
4600 main ()
4601 {
4602
4603 ;
4604 return 0;
4605 }
4606 _ACEOF
4607 if ac_fn_cxx_try_compile "$LINENO"; then :
4608 ac_cv_prog_cxx_g=yes
4609 fi
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 fi
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 fi
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4616 fi
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4618 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4619 if test "$ac_test_CXXFLAGS" = set; then
4620 CXXFLAGS=$ac_save_CXXFLAGS
4621 elif test $ac_cv_prog_cxx_g = yes; then
4622 if test "$GXX" = yes; then
4623 CXXFLAGS="-g -O2"
4624 else
4625 CXXFLAGS="-g"
4626 fi
4627 else
4628 if test "$GXX" = yes; then
4629 CXXFLAGS="-O2"
4630 else
4631 CXXFLAGS=
4632 fi
4633 fi
4634 ac_ext=c
4635 ac_cpp='$CPP $CPPFLAGS'
4636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4639
4640
4641
4642
4643 if test -n "$ac_tool_prefix"; then
4644 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4645 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647 $as_echo_n "checking for $ac_word... " >&6; }
4648 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4649 $as_echo_n "(cached) " >&6
4650 else
4651 if test -n "$GNATBIND"; then
4652 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4653 else
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4656 do
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 break 2
4664 fi
4665 done
4666 done
4667 IFS=$as_save_IFS
4668
4669 fi
4670 fi
4671 GNATBIND=$ac_cv_prog_GNATBIND
4672 if test -n "$GNATBIND"; then
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4674 $as_echo "$GNATBIND" >&6; }
4675 else
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4678 fi
4679
4680
4681 fi
4682 if test -z "$ac_cv_prog_GNATBIND"; then
4683 ac_ct_GNATBIND=$GNATBIND
4684 # Extract the first word of "gnatbind", so it can be a program name with args.
4685 set dummy gnatbind; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
4690 else
4691 if test -n "$ac_ct_GNATBIND"; then
4692 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 break 2
4704 fi
4705 done
4706 done
4707 IFS=$as_save_IFS
4708
4709 fi
4710 fi
4711 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4712 if test -n "$ac_ct_GNATBIND"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4714 $as_echo "$ac_ct_GNATBIND" >&6; }
4715 else
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4718 fi
4719
4720 if test "x$ac_ct_GNATBIND" = x; then
4721 GNATBIND="no"
4722 else
4723 case $cross_compiling:$ac_tool_warned in
4724 yes:)
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4727 ac_tool_warned=yes ;;
4728 esac
4729 GNATBIND=$ac_ct_GNATBIND
4730 fi
4731 else
4732 GNATBIND="$ac_cv_prog_GNATBIND"
4733 fi
4734
4735 if test -n "$ac_tool_prefix"; then
4736 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4737 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 if test -n "$GNATMAKE"; then
4744 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4756 fi
4757 done
4758 done
4759 IFS=$as_save_IFS
4760
4761 fi
4762 fi
4763 GNATMAKE=$ac_cv_prog_GNATMAKE
4764 if test -n "$GNATMAKE"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4766 $as_echo "$GNATMAKE" >&6; }
4767 else
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4770 fi
4771
4772
4773 fi
4774 if test -z "$ac_cv_prog_GNATMAKE"; then
4775 ac_ct_GNATMAKE=$GNATMAKE
4776 # Extract the first word of "gnatmake", so it can be a program name with args.
4777 set dummy gnatmake; ac_word=$2
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779 $as_echo_n "checking for $ac_word... " >&6; }
4780 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4781 $as_echo_n "(cached) " >&6
4782 else
4783 if test -n "$ac_ct_GNATMAKE"; then
4784 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4785 else
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4788 do
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4793 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 break 2
4796 fi
4797 done
4798 done
4799 IFS=$as_save_IFS
4800
4801 fi
4802 fi
4803 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4804 if test -n "$ac_ct_GNATMAKE"; then
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4806 $as_echo "$ac_ct_GNATMAKE" >&6; }
4807 else
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 $as_echo "no" >&6; }
4810 fi
4811
4812 if test "x$ac_ct_GNATMAKE" = x; then
4813 GNATMAKE="no"
4814 else
4815 case $cross_compiling:$ac_tool_warned in
4816 yes:)
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4819 ac_tool_warned=yes ;;
4820 esac
4821 GNATMAKE=$ac_ct_GNATMAKE
4822 fi
4823 else
4824 GNATMAKE="$ac_cv_prog_GNATMAKE"
4825 fi
4826
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4828 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4829 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4830 $as_echo_n "(cached) " >&6
4831 else
4832 cat >conftest.adb <<EOF
4833 procedure conftest is begin null; end conftest;
4834 EOF
4835 acx_cv_cc_gcc_supports_ada=no
4836 # There is a bug in old released versions of GCC which causes the
4837 # driver to exit successfully when the appropriate language module
4838 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4839 # Therefore we must check for the error message as well as an
4840 # unsuccessful exit.
4841 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4842 # given a .adb file, but produce no object file. So we must check
4843 # if an object file was really produced to guard against this.
4844 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4845 if test x"$errors" = x && test -f conftest.$ac_objext; then
4846 acx_cv_cc_gcc_supports_ada=yes
4847 fi
4848 rm -f conftest.*
4849 fi
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4851 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4852
4853 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4854 have_gnat=yes
4855 else
4856 have_gnat=no
4857 fi
4858
4859
4860 # autoconf is lame and doesn't give us any substitution variable for this.
4861 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4862 NO_MINUS_C_MINUS_O=yes
4863 else
4864 OUTPUT_OPTION='-o $@'
4865 fi
4866
4867
4868
4869 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4870 # optimizations to be activated explicitly by the toplevel.
4871 case "$CC" in
4872 */prev-gcc/xgcc*) ;;
4873 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4874 esac
4875
4876
4877 # Determine PICFLAG for target gnatlib.
4878
4879
4880
4881
4882 case "${target}" in
4883 # PIC is the default on some targets or must not be used.
4884 *-*-darwin*)
4885 # PIC is the default on this platform
4886 # Common symbols not allowed in MH_DYLIB files
4887 PICFLAG_FOR_TARGET=-fno-common
4888 ;;
4889 alpha*-dec-osf5*)
4890 # PIC is the default.
4891 ;;
4892 hppa*64*-*-hpux*)
4893 # PIC is the default for 64-bit PA HP-UX.
4894 ;;
4895 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4896 ;;
4897 i[34567]86-*-interix3*)
4898 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4899 # Instead, we relocate shared libraries at runtime.
4900 ;;
4901 i[34567]86-*-nto-qnx*)
4902 # QNX uses GNU C++, but need to define -shared option too, otherwise
4903 # it will coredump.
4904 PICFLAG_FOR_TARGET='-fPIC -shared'
4905 ;;
4906 i[34567]86-pc-msdosdjgpp*)
4907 # DJGPP does not support shared libraries at all.
4908 ;;
4909 ia64*-*-hpux*)
4910 # On IA64 HP-UX, PIC is the default but the pic flag
4911 # sets the default TLS model and affects inlining.
4912 PICFLAG_FOR_TARGET=-fPIC
4913 ;;
4914 mips-sgi-irix6*)
4915 # PIC is the default.
4916 ;;
4917 rs6000-ibm-aix* | powerpc-ibm-aix*)
4918 # All AIX code is PIC.
4919 ;;
4920
4921 # Some targets support both -fPIC and -fpic, but prefer the latter.
4922 # FIXME: Why?
4923 i[34567]86-*-* | x86_64-*-*)
4924 PICFLAG_FOR_TARGET=-fpic
4925 ;;
4926 m68k-*-*)
4927 PICFLAG_FOR_TARGET=-fpic
4928 ;;
4929 s390*-*-*)
4930 PICFLAG_FOR_TARGET=-fpic
4931 ;;
4932 # FIXME: Override -fPIC default in libgcc only?
4933 sh-*-linux* | sh[2346lbe]*-*-linux*)
4934 PICFLAG_FOR_TARGET=-fpic
4935 ;;
4936 # FIXME: Simplify to sh*-*-netbsd*?
4937 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4938 sh64-*-netbsd* | sh64l*-*-netbsd*)
4939 PICFLAG_FOR_TARGET=-fpic
4940 ;;
4941 # Default to -fPIC unless specified otherwise.
4942 *)
4943 PICFLAG_FOR_TARGET=-fPIC
4944 ;;
4945 esac
4946
4947 # If the user explicitly uses -fpic/-fPIC, keep that.
4948 case "${CFLAGS_FOR_TARGET}" in
4949 *-fpic*)
4950 PICFLAG_FOR_TARGET=-fpic
4951 ;;
4952 *-fPIC*)
4953 PICFLAG_FOR_TARGET=-fPIC
4954 ;;
4955 esac
4956
4957
4958
4959 # -------------------------
4960 # Check C compiler features
4961 # -------------------------
4962
4963
4964 ac_ext=c
4965 ac_cpp='$CPP $CPPFLAGS'
4966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4970 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4971 # On Suns, sometimes $CPP names a directory.
4972 if test -n "$CPP" && test -d "$CPP"; then
4973 CPP=
4974 fi
4975 if test -z "$CPP"; then
4976 if test "${ac_cv_prog_CPP+set}" = set; then :
4977 $as_echo_n "(cached) " >&6
4978 else
4979 # Double quotes because CPP needs to be expanded
4980 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4981 do
4982 ac_preproc_ok=false
4983 for ac_c_preproc_warn_flag in '' yes
4984 do
4985 # Use a header file that comes with gcc, so configuring glibc
4986 # with a fresh cross-compiler works.
4987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4988 # <limits.h> exists even on freestanding compilers.
4989 # On the NeXT, cc -E runs the code through the compiler's parser,
4990 # not just through cpp. "Syntax error" is here to catch this case.
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4993 #ifdef __STDC__
4994 # include <limits.h>
4995 #else
4996 # include <assert.h>
4997 #endif
4998 Syntax error
4999 _ACEOF
5000 if ac_fn_c_try_cpp "$LINENO"; then :
5001
5002 else
5003 # Broken: fails on valid input.
5004 continue
5005 fi
5006 rm -f conftest.err conftest.$ac_ext
5007
5008 # OK, works on sane cases. Now check whether nonexistent headers
5009 # can be detected and how.
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h. */
5012 #include <ac_nonexistent.h>
5013 _ACEOF
5014 if ac_fn_c_try_cpp "$LINENO"; then :
5015 # Broken: success on invalid input.
5016 continue
5017 else
5018 # Passes both tests.
5019 ac_preproc_ok=:
5020 break
5021 fi
5022 rm -f conftest.err conftest.$ac_ext
5023
5024 done
5025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5026 rm -f conftest.err conftest.$ac_ext
5027 if $ac_preproc_ok; then :
5028 break
5029 fi
5030
5031 done
5032 ac_cv_prog_CPP=$CPP
5033
5034 fi
5035 CPP=$ac_cv_prog_CPP
5036 else
5037 ac_cv_prog_CPP=$CPP
5038 fi
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5040 $as_echo "$CPP" >&6; }
5041 ac_preproc_ok=false
5042 for ac_c_preproc_warn_flag in '' yes
5043 do
5044 # Use a header file that comes with gcc, so configuring glibc
5045 # with a fresh cross-compiler works.
5046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5047 # <limits.h> exists even on freestanding compilers.
5048 # On the NeXT, cc -E runs the code through the compiler's parser,
5049 # not just through cpp. "Syntax error" is here to catch this case.
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5052 #ifdef __STDC__
5053 # include <limits.h>
5054 #else
5055 # include <assert.h>
5056 #endif
5057 Syntax error
5058 _ACEOF
5059 if ac_fn_c_try_cpp "$LINENO"; then :
5060
5061 else
5062 # Broken: fails on valid input.
5063 continue
5064 fi
5065 rm -f conftest.err conftest.$ac_ext
5066
5067 # OK, works on sane cases. Now check whether nonexistent headers
5068 # can be detected and how.
5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5070 /* end confdefs.h. */
5071 #include <ac_nonexistent.h>
5072 _ACEOF
5073 if ac_fn_c_try_cpp "$LINENO"; then :
5074 # Broken: success on invalid input.
5075 continue
5076 else
5077 # Passes both tests.
5078 ac_preproc_ok=:
5079 break
5080 fi
5081 rm -f conftest.err conftest.$ac_ext
5082
5083 done
5084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5085 rm -f conftest.err conftest.$ac_ext
5086 if $ac_preproc_ok; then :
5087
5088 else
5089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5091 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5092 See \`config.log' for more details." "$LINENO" 5; }
5093 fi
5094
5095 ac_ext=c
5096 ac_cpp='$CPP $CPPFLAGS'
5097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5100
5101
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5103 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5104 if test "${ac_cv_path_GREP+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 if test -z "$GREP"; then
5108 ac_path_GREP_found=false
5109 # Loop through the user's path and test for each of PROGNAME-LIST
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5112 do
5113 IFS=$as_save_IFS
5114 test -z "$as_dir" && as_dir=.
5115 for ac_prog in grep ggrep; do
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5118 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5119 # Check for GNU ac_path_GREP and select it if it is found.
5120 # Check for GNU $ac_path_GREP
5121 case `"$ac_path_GREP" --version 2>&1` in
5122 *GNU*)
5123 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5124 *)
5125 ac_count=0
5126 $as_echo_n 0123456789 >"conftest.in"
5127 while :
5128 do
5129 cat "conftest.in" "conftest.in" >"conftest.tmp"
5130 mv "conftest.tmp" "conftest.in"
5131 cp "conftest.in" "conftest.nl"
5132 $as_echo 'GREP' >> "conftest.nl"
5133 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5134 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5135 as_fn_arith $ac_count + 1 && ac_count=$as_val
5136 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5137 # Best one so far, save it but keep looking for a better one
5138 ac_cv_path_GREP="$ac_path_GREP"
5139 ac_path_GREP_max=$ac_count
5140 fi
5141 # 10*(2^10) chars as input seems more than enough
5142 test $ac_count -gt 10 && break
5143 done
5144 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5145 esac
5146
5147 $ac_path_GREP_found && break 3
5148 done
5149 done
5150 done
5151 IFS=$as_save_IFS
5152 if test -z "$ac_cv_path_GREP"; then
5153 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5154 fi
5155 else
5156 ac_cv_path_GREP=$GREP
5157 fi
5158
5159 fi
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5161 $as_echo "$ac_cv_path_GREP" >&6; }
5162 GREP="$ac_cv_path_GREP"
5163
5164
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5166 $as_echo_n "checking for egrep... " >&6; }
5167 if test "${ac_cv_path_EGREP+set}" = set; then :
5168 $as_echo_n "(cached) " >&6
5169 else
5170 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5171 then ac_cv_path_EGREP="$GREP -E"
5172 else
5173 if test -z "$EGREP"; then
5174 ac_path_EGREP_found=false
5175 # Loop through the user's path and test for each of PROGNAME-LIST
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5178 do
5179 IFS=$as_save_IFS
5180 test -z "$as_dir" && as_dir=.
5181 for ac_prog in egrep; do
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5184 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5185 # Check for GNU ac_path_EGREP and select it if it is found.
5186 # Check for GNU $ac_path_EGREP
5187 case `"$ac_path_EGREP" --version 2>&1` in
5188 *GNU*)
5189 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5190 *)
5191 ac_count=0
5192 $as_echo_n 0123456789 >"conftest.in"
5193 while :
5194 do
5195 cat "conftest.in" "conftest.in" >"conftest.tmp"
5196 mv "conftest.tmp" "conftest.in"
5197 cp "conftest.in" "conftest.nl"
5198 $as_echo 'EGREP' >> "conftest.nl"
5199 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5201 as_fn_arith $ac_count + 1 && ac_count=$as_val
5202 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5203 # Best one so far, save it but keep looking for a better one
5204 ac_cv_path_EGREP="$ac_path_EGREP"
5205 ac_path_EGREP_max=$ac_count
5206 fi
5207 # 10*(2^10) chars as input seems more than enough
5208 test $ac_count -gt 10 && break
5209 done
5210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5211 esac
5212
5213 $ac_path_EGREP_found && break 3
5214 done
5215 done
5216 done
5217 IFS=$as_save_IFS
5218 if test -z "$ac_cv_path_EGREP"; then
5219 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5220 fi
5221 else
5222 ac_cv_path_EGREP=$EGREP
5223 fi
5224
5225 fi
5226 fi
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5228 $as_echo "$ac_cv_path_EGREP" >&6; }
5229 EGREP="$ac_cv_path_EGREP"
5230
5231
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5233 $as_echo_n "checking for ANSI C header files... " >&6; }
5234 if test "${ac_cv_header_stdc+set}" = set; then :
5235 $as_echo_n "(cached) " >&6
5236 else
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5239 #include <stdlib.h>
5240 #include <stdarg.h>
5241 #include <string.h>
5242 #include <float.h>
5243
5244 int
5245 main ()
5246 {
5247
5248 ;
5249 return 0;
5250 }
5251 _ACEOF
5252 if ac_fn_c_try_compile "$LINENO"; then :
5253 ac_cv_header_stdc=yes
5254 else
5255 ac_cv_header_stdc=no
5256 fi
5257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5258
5259 if test $ac_cv_header_stdc = yes; then
5260 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5263 #include <string.h>
5264
5265 _ACEOF
5266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5267 $EGREP "memchr" >/dev/null 2>&1; then :
5268
5269 else
5270 ac_cv_header_stdc=no
5271 fi
5272 rm -f conftest*
5273
5274 fi
5275
5276 if test $ac_cv_header_stdc = yes; then
5277 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5280 #include <stdlib.h>
5281
5282 _ACEOF
5283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5284 $EGREP "free" >/dev/null 2>&1; then :
5285
5286 else
5287 ac_cv_header_stdc=no
5288 fi
5289 rm -f conftest*
5290
5291 fi
5292
5293 if test $ac_cv_header_stdc = yes; then
5294 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5295 if test "$cross_compiling" = yes; then :
5296 :
5297 else
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5300 #include <ctype.h>
5301 #include <stdlib.h>
5302 #if ((' ' & 0x0FF) == 0x020)
5303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5305 #else
5306 # define ISLOWER(c) \
5307 (('a' <= (c) && (c) <= 'i') \
5308 || ('j' <= (c) && (c) <= 'r') \
5309 || ('s' <= (c) && (c) <= 'z'))
5310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5311 #endif
5312
5313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5314 int
5315 main ()
5316 {
5317 int i;
5318 for (i = 0; i < 256; i++)
5319 if (XOR (islower (i), ISLOWER (i))
5320 || toupper (i) != TOUPPER (i))
5321 return 2;
5322 return 0;
5323 }
5324 _ACEOF
5325 if ac_fn_c_try_run "$LINENO"; then :
5326
5327 else
5328 ac_cv_header_stdc=no
5329 fi
5330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5331 conftest.$ac_objext conftest.beam conftest.$ac_ext
5332 fi
5333
5334 fi
5335 fi
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5337 $as_echo "$ac_cv_header_stdc" >&6; }
5338 if test $ac_cv_header_stdc = yes; then
5339
5340 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5341
5342 fi
5343
5344 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5345 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5346 inttypes.h stdint.h unistd.h
5347 do :
5348 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5349 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5350 "
5351 eval as_val=\$$as_ac_Header
5352 if test "x$as_val" = x""yes; then :
5353 cat >>confdefs.h <<_ACEOF
5354 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5355 _ACEOF
5356
5357 fi
5358
5359 done
5360
5361
5362
5363 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5364 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5365 MINIX=yes
5366 else
5367 MINIX=
5368 fi
5369
5370
5371 if test "$MINIX" = yes; then
5372
5373 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5374
5375
5376 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5377
5378
5379 $as_echo "#define _MINIX 1" >>confdefs.h
5380
5381 fi
5382
5383
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5385 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5386 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5387 $as_echo_n "(cached) " >&6
5388 else
5389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5391
5392 # define __EXTENSIONS__ 1
5393 $ac_includes_default
5394 int
5395 main ()
5396 {
5397
5398 ;
5399 return 0;
5400 }
5401 _ACEOF
5402 if ac_fn_c_try_compile "$LINENO"; then :
5403 ac_cv_safe_to_define___extensions__=yes
5404 else
5405 ac_cv_safe_to_define___extensions__=no
5406 fi
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 fi
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5410 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5411 test $ac_cv_safe_to_define___extensions__ = yes &&
5412 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5413
5414 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5415
5416 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5417
5418 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5419
5420 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5421
5422
5423 ac_ext=c
5424 ac_cpp='$CPP $CPPFLAGS'
5425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5429 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5430 # On Suns, sometimes $CPP names a directory.
5431 if test -n "$CPP" && test -d "$CPP"; then
5432 CPP=
5433 fi
5434 if test -z "$CPP"; then
5435 if test "${ac_cv_prog_CPP+set}" = set; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 # Double quotes because CPP needs to be expanded
5439 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5440 do
5441 ac_preproc_ok=false
5442 for ac_c_preproc_warn_flag in '' yes
5443 do
5444 # Use a header file that comes with gcc, so configuring glibc
5445 # with a fresh cross-compiler works.
5446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5447 # <limits.h> exists even on freestanding compilers.
5448 # On the NeXT, cc -E runs the code through the compiler's parser,
5449 # not just through cpp. "Syntax error" is here to catch this case.
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5452 #ifdef __STDC__
5453 # include <limits.h>
5454 #else
5455 # include <assert.h>
5456 #endif
5457 Syntax error
5458 _ACEOF
5459 if ac_fn_c_try_cpp "$LINENO"; then :
5460
5461 else
5462 # Broken: fails on valid input.
5463 continue
5464 fi
5465 rm -f conftest.err conftest.$ac_ext
5466
5467 # OK, works on sane cases. Now check whether nonexistent headers
5468 # can be detected and how.
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5471 #include <ac_nonexistent.h>
5472 _ACEOF
5473 if ac_fn_c_try_cpp "$LINENO"; then :
5474 # Broken: success on invalid input.
5475 continue
5476 else
5477 # Passes both tests.
5478 ac_preproc_ok=:
5479 break
5480 fi
5481 rm -f conftest.err conftest.$ac_ext
5482
5483 done
5484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5485 rm -f conftest.err conftest.$ac_ext
5486 if $ac_preproc_ok; then :
5487 break
5488 fi
5489
5490 done
5491 ac_cv_prog_CPP=$CPP
5492
5493 fi
5494 CPP=$ac_cv_prog_CPP
5495 else
5496 ac_cv_prog_CPP=$CPP
5497 fi
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5499 $as_echo "$CPP" >&6; }
5500 ac_preproc_ok=false
5501 for ac_c_preproc_warn_flag in '' yes
5502 do
5503 # Use a header file that comes with gcc, so configuring glibc
5504 # with a fresh cross-compiler works.
5505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5506 # <limits.h> exists even on freestanding compilers.
5507 # On the NeXT, cc -E runs the code through the compiler's parser,
5508 # not just through cpp. "Syntax error" is here to catch this case.
5509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5510 /* end confdefs.h. */
5511 #ifdef __STDC__
5512 # include <limits.h>
5513 #else
5514 # include <assert.h>
5515 #endif
5516 Syntax error
5517 _ACEOF
5518 if ac_fn_c_try_cpp "$LINENO"; then :
5519
5520 else
5521 # Broken: fails on valid input.
5522 continue
5523 fi
5524 rm -f conftest.err conftest.$ac_ext
5525
5526 # OK, works on sane cases. Now check whether nonexistent headers
5527 # can be detected and how.
5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5530 #include <ac_nonexistent.h>
5531 _ACEOF
5532 if ac_fn_c_try_cpp "$LINENO"; then :
5533 # Broken: success on invalid input.
5534 continue
5535 else
5536 # Passes both tests.
5537 ac_preproc_ok=:
5538 break
5539 fi
5540 rm -f conftest.err conftest.$ac_ext
5541
5542 done
5543 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5544 rm -f conftest.err conftest.$ac_ext
5545 if $ac_preproc_ok; then :
5546
5547 else
5548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5550 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5551 See \`config.log' for more details." "$LINENO" 5; }
5552 fi
5553
5554 ac_ext=c
5555 ac_cpp='$CPP $CPPFLAGS'
5556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5559
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5561 $as_echo_n "checking for inline... " >&6; }
5562 if test "${ac_cv_c_inline+set}" = set; then :
5563 $as_echo_n "(cached) " >&6
5564 else
5565 ac_cv_c_inline=no
5566 for ac_kw in inline __inline__ __inline; do
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5569 #ifndef __cplusplus
5570 typedef int foo_t;
5571 static $ac_kw foo_t static_foo () {return 0; }
5572 $ac_kw foo_t foo () {return 0; }
5573 #endif
5574
5575 _ACEOF
5576 if ac_fn_c_try_compile "$LINENO"; then :
5577 ac_cv_c_inline=$ac_kw
5578 fi
5579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580 test "$ac_cv_c_inline" != no && break
5581 done
5582
5583 fi
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5585 $as_echo "$ac_cv_c_inline" >&6; }
5586
5587 case $ac_cv_c_inline in
5588 inline | yes) ;;
5589 *)
5590 case $ac_cv_c_inline in
5591 no) ac_val=;;
5592 *) ac_val=$ac_cv_c_inline;;
5593 esac
5594 cat >>confdefs.h <<_ACEOF
5595 #ifndef __cplusplus
5596 #define inline $ac_val
5597 #endif
5598 _ACEOF
5599 ;;
5600 esac
5601
5602
5603 # Check whether --enable-largefile was given.
5604 if test "${enable_largefile+set}" = set; then :
5605 enableval=$enable_largefile;
5606 fi
5607
5608 if test "$enable_largefile" != no; then
5609
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5611 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5612 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 ac_cv_sys_largefile_CC=no
5616 if test "$GCC" != yes; then
5617 ac_save_CC=$CC
5618 while :; do
5619 # IRIX 6.2 and later do not support large files by default,
5620 # so use the C compiler's -n32 option if that helps.
5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h. */
5623 #include <sys/types.h>
5624 /* Check that off_t can represent 2**63 - 1 correctly.
5625 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5626 since some C++ compilers masquerading as C compilers
5627 incorrectly reject 9223372036854775807. */
5628 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5629 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5630 && LARGE_OFF_T % 2147483647 == 1)
5631 ? 1 : -1];
5632 int
5633 main ()
5634 {
5635
5636 ;
5637 return 0;
5638 }
5639 _ACEOF
5640 if ac_fn_c_try_compile "$LINENO"; then :
5641 break
5642 fi
5643 rm -f core conftest.err conftest.$ac_objext
5644 CC="$CC -n32"
5645 if ac_fn_c_try_compile "$LINENO"; then :
5646 ac_cv_sys_largefile_CC=' -n32'; break
5647 fi
5648 rm -f core conftest.err conftest.$ac_objext
5649 break
5650 done
5651 CC=$ac_save_CC
5652 rm -f conftest.$ac_ext
5653 fi
5654 fi
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5656 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5657 if test "$ac_cv_sys_largefile_CC" != no; then
5658 CC=$CC$ac_cv_sys_largefile_CC
5659 fi
5660
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5662 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5663 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5664 $as_echo_n "(cached) " >&6
5665 else
5666 while :; do
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5669 #include <sys/types.h>
5670 /* Check that off_t can represent 2**63 - 1 correctly.
5671 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5672 since some C++ compilers masquerading as C compilers
5673 incorrectly reject 9223372036854775807. */
5674 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5675 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5676 && LARGE_OFF_T % 2147483647 == 1)
5677 ? 1 : -1];
5678 int
5679 main ()
5680 {
5681
5682 ;
5683 return 0;
5684 }
5685 _ACEOF
5686 if ac_fn_c_try_compile "$LINENO"; then :
5687 ac_cv_sys_file_offset_bits=no; break
5688 fi
5689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h. */
5692 #define _FILE_OFFSET_BITS 64
5693 #include <sys/types.h>
5694 /* Check that off_t can represent 2**63 - 1 correctly.
5695 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5696 since some C++ compilers masquerading as C compilers
5697 incorrectly reject 9223372036854775807. */
5698 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5699 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5700 && LARGE_OFF_T % 2147483647 == 1)
5701 ? 1 : -1];
5702 int
5703 main ()
5704 {
5705
5706 ;
5707 return 0;
5708 }
5709 _ACEOF
5710 if ac_fn_c_try_compile "$LINENO"; then :
5711 ac_cv_sys_file_offset_bits=64; break
5712 fi
5713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714 ac_cv_sys_file_offset_bits=unknown
5715 break
5716 done
5717 fi
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5719 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5720 case $ac_cv_sys_file_offset_bits in #(
5721 no | unknown) ;;
5722 *)
5723 cat >>confdefs.h <<_ACEOF
5724 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5725 _ACEOF
5726 ;;
5727 esac
5728 rm -rf conftest*
5729 if test $ac_cv_sys_file_offset_bits = unknown; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5731 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5732 if test "${ac_cv_sys_large_files+set}" = set; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 while :; do
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738 #include <sys/types.h>
5739 /* Check that off_t can represent 2**63 - 1 correctly.
5740 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5741 since some C++ compilers masquerading as C compilers
5742 incorrectly reject 9223372036854775807. */
5743 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5744 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5745 && LARGE_OFF_T % 2147483647 == 1)
5746 ? 1 : -1];
5747 int
5748 main ()
5749 {
5750
5751 ;
5752 return 0;
5753 }
5754 _ACEOF
5755 if ac_fn_c_try_compile "$LINENO"; then :
5756 ac_cv_sys_large_files=no; break
5757 fi
5758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761 #define _LARGE_FILES 1
5762 #include <sys/types.h>
5763 /* Check that off_t can represent 2**63 - 1 correctly.
5764 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5765 since some C++ compilers masquerading as C compilers
5766 incorrectly reject 9223372036854775807. */
5767 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5768 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5769 && LARGE_OFF_T % 2147483647 == 1)
5770 ? 1 : -1];
5771 int
5772 main ()
5773 {
5774
5775 ;
5776 return 0;
5777 }
5778 _ACEOF
5779 if ac_fn_c_try_compile "$LINENO"; then :
5780 ac_cv_sys_large_files=1; break
5781 fi
5782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5783 ac_cv_sys_large_files=unknown
5784 break
5785 done
5786 fi
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5788 $as_echo "$ac_cv_sys_large_files" >&6; }
5789 case $ac_cv_sys_large_files in #(
5790 no | unknown) ;;
5791 *)
5792 cat >>confdefs.h <<_ACEOF
5793 #define _LARGE_FILES $ac_cv_sys_large_files
5794 _ACEOF
5795 ;;
5796 esac
5797 rm -rf conftest*
5798 fi
5799 fi
5800
5801
5802 # sizeof(char) is 1 by definition.
5803 # The cast to long int works around a bug in the HP C Compiler
5804 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5805 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5806 # This bug is HP SR number 8606223364.
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5808 $as_echo_n "checking size of void *... " >&6; }
5809 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5810 $as_echo_n "(cached) " >&6
5811 else
5812 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5813
5814 else
5815 if test "$ac_cv_type_void_p" = yes; then
5816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5818 { as_fn_set_status 77
5819 as_fn_error "cannot compute sizeof (void *)
5820 See \`config.log' for more details." "$LINENO" 5; }; }
5821 else
5822 ac_cv_sizeof_void_p=0
5823 fi
5824 fi
5825
5826 fi
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5828 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5829
5830
5831
5832 cat >>confdefs.h <<_ACEOF
5833 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5834 _ACEOF
5835
5836
5837 # The cast to long int works around a bug in the HP C Compiler
5838 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5839 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5840 # This bug is HP SR number 8606223364.
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5842 $as_echo_n "checking size of short... " >&6; }
5843 if test "${ac_cv_sizeof_short+set}" = set; then :
5844 $as_echo_n "(cached) " >&6
5845 else
5846 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5847
5848 else
5849 if test "$ac_cv_type_short" = yes; then
5850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5852 { as_fn_set_status 77
5853 as_fn_error "cannot compute sizeof (short)
5854 See \`config.log' for more details." "$LINENO" 5; }; }
5855 else
5856 ac_cv_sizeof_short=0
5857 fi
5858 fi
5859
5860 fi
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5862 $as_echo "$ac_cv_sizeof_short" >&6; }
5863
5864
5865
5866 cat >>confdefs.h <<_ACEOF
5867 #define SIZEOF_SHORT $ac_cv_sizeof_short
5868 _ACEOF
5869
5870
5871 # The cast to long int works around a bug in the HP C Compiler
5872 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5873 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5874 # This bug is HP SR number 8606223364.
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5876 $as_echo_n "checking size of int... " >&6; }
5877 if test "${ac_cv_sizeof_int+set}" = set; then :
5878 $as_echo_n "(cached) " >&6
5879 else
5880 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5881
5882 else
5883 if test "$ac_cv_type_int" = yes; then
5884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5886 { as_fn_set_status 77
5887 as_fn_error "cannot compute sizeof (int)
5888 See \`config.log' for more details." "$LINENO" 5; }; }
5889 else
5890 ac_cv_sizeof_int=0
5891 fi
5892 fi
5893
5894 fi
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5896 $as_echo "$ac_cv_sizeof_int" >&6; }
5897
5898
5899
5900 cat >>confdefs.h <<_ACEOF
5901 #define SIZEOF_INT $ac_cv_sizeof_int
5902 _ACEOF
5903
5904
5905 # The cast to long int works around a bug in the HP C Compiler
5906 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5907 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5908 # This bug is HP SR number 8606223364.
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5910 $as_echo_n "checking size of long... " >&6; }
5911 if test "${ac_cv_sizeof_long+set}" = set; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5915
5916 else
5917 if test "$ac_cv_type_long" = yes; then
5918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5920 { as_fn_set_status 77
5921 as_fn_error "cannot compute sizeof (long)
5922 See \`config.log' for more details." "$LINENO" 5; }; }
5923 else
5924 ac_cv_sizeof_long=0
5925 fi
5926 fi
5927
5928 fi
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5930 $as_echo "$ac_cv_sizeof_long" >&6; }
5931
5932
5933
5934 cat >>confdefs.h <<_ACEOF
5935 #define SIZEOF_LONG $ac_cv_sizeof_long
5936 _ACEOF
5937
5938
5939 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5940 if test "x$ac_cv_type_long_long" = x""yes; then :
5941
5942 cat >>confdefs.h <<_ACEOF
5943 #define HAVE_LONG_LONG 1
5944 _ACEOF
5945
5946 # The cast to long int works around a bug in the HP C Compiler
5947 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5948 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5949 # This bug is HP SR number 8606223364.
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5951 $as_echo_n "checking size of long long... " >&6; }
5952 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5956
5957 else
5958 if test "$ac_cv_type_long_long" = yes; then
5959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5961 { as_fn_set_status 77
5962 as_fn_error "cannot compute sizeof (long long)
5963 See \`config.log' for more details." "$LINENO" 5; }; }
5964 else
5965 ac_cv_sizeof_long_long=0
5966 fi
5967 fi
5968
5969 fi
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5971 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5972
5973
5974
5975 cat >>confdefs.h <<_ACEOF
5976 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5977 _ACEOF
5978
5979
5980 fi
5981
5982 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5983 if test "x$ac_cv_type___int64" = x""yes; then :
5984
5985 cat >>confdefs.h <<_ACEOF
5986 #define HAVE___INT64 1
5987 _ACEOF
5988
5989 # The cast to long int works around a bug in the HP C Compiler
5990 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5991 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5992 # This bug is HP SR number 8606223364.
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5994 $as_echo_n "checking size of __int64... " >&6; }
5995 if test "${ac_cv_sizeof___int64+set}" = set; then :
5996 $as_echo_n "(cached) " >&6
5997 else
5998 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5999
6000 else
6001 if test "$ac_cv_type___int64" = yes; then
6002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6004 { as_fn_set_status 77
6005 as_fn_error "cannot compute sizeof (__int64)
6006 See \`config.log' for more details." "$LINENO" 5; }; }
6007 else
6008 ac_cv_sizeof___int64=0
6009 fi
6010 fi
6011
6012 fi
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6014 $as_echo "$ac_cv_sizeof___int64" >&6; }
6015
6016
6017
6018 cat >>confdefs.h <<_ACEOF
6019 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6020 _ACEOF
6021
6022
6023 fi
6024
6025 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6026 case $ac_cv_c_int8_t in #(
6027 no|yes) ;; #(
6028 *)
6029
6030 cat >>confdefs.h <<_ACEOF
6031 #define int8_t $ac_cv_c_int8_t
6032 _ACEOF
6033 ;;
6034 esac
6035
6036 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6037 case $ac_cv_c_int16_t in #(
6038 no|yes) ;; #(
6039 *)
6040
6041 cat >>confdefs.h <<_ACEOF
6042 #define int16_t $ac_cv_c_int16_t
6043 _ACEOF
6044 ;;
6045 esac
6046
6047 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6048 case $ac_cv_c_int32_t in #(
6049 no|yes) ;; #(
6050 *)
6051
6052 cat >>confdefs.h <<_ACEOF
6053 #define int32_t $ac_cv_c_int32_t
6054 _ACEOF
6055 ;;
6056 esac
6057
6058 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6059 case $ac_cv_c_int64_t in #(
6060 no|yes) ;; #(
6061 *)
6062
6063 cat >>confdefs.h <<_ACEOF
6064 #define int64_t $ac_cv_c_int64_t
6065 _ACEOF
6066 ;;
6067 esac
6068
6069
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6071 $as_echo_n "checking for long long int... " >&6; }
6072 if test "${ac_cv_type_long_long_int+set}" = set; then :
6073 $as_echo_n "(cached) " >&6
6074 else
6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h. */
6077
6078 /* For now, do not test the preprocessor; as of 2007 there are too many
6079 implementations with broken preprocessors. Perhaps this can
6080 be revisited in 2012. In the meantime, code should not expect
6081 #if to work with literals wider than 32 bits. */
6082 /* Test literals. */
6083 long long int ll = 9223372036854775807ll;
6084 long long int nll = -9223372036854775807LL;
6085 unsigned long long int ull = 18446744073709551615ULL;
6086 /* Test constant expressions. */
6087 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6088 ? 1 : -1)];
6089 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6090 ? 1 : -1)];
6091 int i = 63;
6092 int
6093 main ()
6094 {
6095 /* Test availability of runtime routines for shift and division. */
6096 long long int llmax = 9223372036854775807ll;
6097 unsigned long long int ullmax = 18446744073709551615ull;
6098 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6099 | (llmax / ll) | (llmax % ll)
6100 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6101 | (ullmax / ull) | (ullmax % ull));
6102 ;
6103 return 0;
6104 }
6105
6106 _ACEOF
6107 if ac_fn_c_try_link "$LINENO"; then :
6108 if test "$cross_compiling" = yes; then :
6109 ac_cv_type_long_long_int=yes
6110 else
6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6113 #include <limits.h>
6114 #ifndef LLONG_MAX
6115 # define HALF \
6116 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6117 # define LLONG_MAX (HALF - 1 + HALF)
6118 #endif
6119 int
6120 main ()
6121 {
6122 long long int n = 1;
6123 int i;
6124 for (i = 0; ; i++)
6125 {
6126 long long int m = n << i;
6127 if (m >> i != n)
6128 return 1;
6129 if (LLONG_MAX / 2 < m)
6130 break;
6131 }
6132 return 0;
6133 ;
6134 return 0;
6135 }
6136 _ACEOF
6137 if ac_fn_c_try_run "$LINENO"; then :
6138 ac_cv_type_long_long_int=yes
6139 else
6140 ac_cv_type_long_long_int=no
6141 fi
6142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6143 conftest.$ac_objext conftest.beam conftest.$ac_ext
6144 fi
6145
6146 else
6147 ac_cv_type_long_long_int=no
6148 fi
6149 rm -f core conftest.err conftest.$ac_objext \
6150 conftest$ac_exeext conftest.$ac_ext
6151 fi
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6153 $as_echo "$ac_cv_type_long_long_int" >&6; }
6154 if test $ac_cv_type_long_long_int = yes; then
6155
6156 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6157
6158 fi
6159
6160
6161
6162 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6163 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6164
6165 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6166
6167 else
6168 test $ac_cv_type_long_long_int = yes \
6169 && ac_type='long long int' \
6170 || ac_type='long int'
6171
6172 cat >>confdefs.h <<_ACEOF
6173 #define intmax_t $ac_type
6174 _ACEOF
6175
6176 fi
6177
6178
6179
6180 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6181 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6182
6183 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6184
6185 else
6186 for ac_type in 'int' 'long int' 'long long int'; do
6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h. */
6189 $ac_includes_default
6190 int
6191 main ()
6192 {
6193 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6194 test_array [0] = 0
6195
6196 ;
6197 return 0;
6198 }
6199 _ACEOF
6200 if ac_fn_c_try_compile "$LINENO"; then :
6201
6202 cat >>confdefs.h <<_ACEOF
6203 #define intptr_t $ac_type
6204 _ACEOF
6205
6206 ac_type=
6207 fi
6208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209 test -z "$ac_type" && break
6210 done
6211 fi
6212
6213
6214 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6215 case $ac_cv_c_uint8_t in #(
6216 no|yes) ;; #(
6217 *)
6218
6219 $as_echo "#define _UINT8_T 1" >>confdefs.h
6220
6221
6222 cat >>confdefs.h <<_ACEOF
6223 #define uint8_t $ac_cv_c_uint8_t
6224 _ACEOF
6225 ;;
6226 esac
6227
6228 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6229 case $ac_cv_c_uint16_t in #(
6230 no|yes) ;; #(
6231 *)
6232
6233
6234 cat >>confdefs.h <<_ACEOF
6235 #define uint16_t $ac_cv_c_uint16_t
6236 _ACEOF
6237 ;;
6238 esac
6239
6240 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6241 case $ac_cv_c_uint32_t in #(
6242 no|yes) ;; #(
6243 *)
6244
6245 $as_echo "#define _UINT32_T 1" >>confdefs.h
6246
6247
6248 cat >>confdefs.h <<_ACEOF
6249 #define uint32_t $ac_cv_c_uint32_t
6250 _ACEOF
6251 ;;
6252 esac
6253
6254 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6255 case $ac_cv_c_uint64_t in #(
6256 no|yes) ;; #(
6257 *)
6258
6259 $as_echo "#define _UINT64_T 1" >>confdefs.h
6260
6261
6262 cat >>confdefs.h <<_ACEOF
6263 #define uint64_t $ac_cv_c_uint64_t
6264 _ACEOF
6265 ;;
6266 esac
6267
6268
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6270 $as_echo_n "checking for unsigned long long int... " >&6; }
6271 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6276
6277 /* For now, do not test the preprocessor; as of 2007 there are too many
6278 implementations with broken preprocessors. Perhaps this can
6279 be revisited in 2012. In the meantime, code should not expect
6280 #if to work with literals wider than 32 bits. */
6281 /* Test literals. */
6282 long long int ll = 9223372036854775807ll;
6283 long long int nll = -9223372036854775807LL;
6284 unsigned long long int ull = 18446744073709551615ULL;
6285 /* Test constant expressions. */
6286 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6287 ? 1 : -1)];
6288 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6289 ? 1 : -1)];
6290 int i = 63;
6291 int
6292 main ()
6293 {
6294 /* Test availability of runtime routines for shift and division. */
6295 long long int llmax = 9223372036854775807ll;
6296 unsigned long long int ullmax = 18446744073709551615ull;
6297 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6298 | (llmax / ll) | (llmax % ll)
6299 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6300 | (ullmax / ull) | (ullmax % ull));
6301 ;
6302 return 0;
6303 }
6304
6305 _ACEOF
6306 if ac_fn_c_try_link "$LINENO"; then :
6307 ac_cv_type_unsigned_long_long_int=yes
6308 else
6309 ac_cv_type_unsigned_long_long_int=no
6310 fi
6311 rm -f core conftest.err conftest.$ac_objext \
6312 conftest$ac_exeext conftest.$ac_ext
6313 fi
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6315 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6316 if test $ac_cv_type_unsigned_long_long_int = yes; then
6317
6318 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6319
6320 fi
6321
6322
6323
6324 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6325 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6326
6327 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6328
6329 else
6330 test $ac_cv_type_unsigned_long_long_int = yes \
6331 && ac_type='unsigned long long int' \
6332 || ac_type='unsigned long int'
6333
6334 cat >>confdefs.h <<_ACEOF
6335 #define uintmax_t $ac_type
6336 _ACEOF
6337
6338 fi
6339
6340
6341
6342 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6343 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6344
6345 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6346
6347 else
6348 for ac_type in 'unsigned int' 'unsigned long int' \
6349 'unsigned long long int'; do
6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h. */
6352 $ac_includes_default
6353 int
6354 main ()
6355 {
6356 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6357 test_array [0] = 0
6358
6359 ;
6360 return 0;
6361 }
6362 _ACEOF
6363 if ac_fn_c_try_compile "$LINENO"; then :
6364
6365 cat >>confdefs.h <<_ACEOF
6366 #define uintptr_t $ac_type
6367 _ACEOF
6368
6369 ac_type=
6370 fi
6371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6372 test -z "$ac_type" && break
6373 done
6374 fi
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390 # ---------------------
6391 # Warnings and checking
6392 # ---------------------
6393
6394 # Check $CC warning features (if it's GCC).
6395 # We want to use -pedantic, but we don't want warnings about
6396 # * 'long long'
6397 # * variadic macros
6398 # * overlong strings
6399 # So, we only use -pedantic if we can disable those warnings.
6400
6401 loose_warn=
6402 save_CFLAGS="$CFLAGS"
6403 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
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:+ }$option"
6436 fi
6437 done
6438 CFLAGS="$save_CFLAGS"
6439
6440 c_loose_warn=
6441 save_CFLAGS="$CFLAGS"
6442 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6443 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6444
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6446 $as_echo_n "checking whether $CC supports $option... " >&6; }
6447 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6448 $as_echo_n "(cached) " >&6
6449 else
6450 CFLAGS="$option"
6451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h. */
6453
6454 int
6455 main ()
6456 {
6457
6458 ;
6459 return 0;
6460 }
6461 _ACEOF
6462 if ac_fn_c_try_compile "$LINENO"; then :
6463 eval "$as_acx_Woption=yes"
6464 else
6465 eval "$as_acx_Woption=no"
6466 fi
6467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6468
6469 fi
6470 eval ac_res=\$$as_acx_Woption
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6472 $as_echo "$ac_res" >&6; }
6473 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6474 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6475 fi
6476 done
6477 CFLAGS="$save_CFLAGS"
6478
6479 strict_warn=
6480 save_CFLAGS="$CFLAGS"
6481 for option in -Wmissing-format-attribute; do
6482 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6483
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6485 $as_echo_n "checking whether $CC supports $option... " >&6; }
6486 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6487 $as_echo_n "(cached) " >&6
6488 else
6489 CFLAGS="$option"
6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6492
6493 int
6494 main ()
6495 {
6496
6497 ;
6498 return 0;
6499 }
6500 _ACEOF
6501 if ac_fn_c_try_compile "$LINENO"; then :
6502 eval "$as_acx_Woption=yes"
6503 else
6504 eval "$as_acx_Woption=no"
6505 fi
6506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507
6508 fi
6509 eval ac_res=\$$as_acx_Woption
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6511 $as_echo "$ac_res" >&6; }
6512 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6513 strict_warn="$strict_warn${strict_warn:+ }$option"
6514 fi
6515 done
6516 CFLAGS="$save_CFLAGS"
6517
6518 c_strict_warn=
6519 save_CFLAGS="$CFLAGS"
6520 for option in -Wold-style-definition -Wc++-compat; do
6521 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6522
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6524 $as_echo_n "checking whether $CC supports $option... " >&6; }
6525 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6526 $as_echo_n "(cached) " >&6
6527 else
6528 CFLAGS="$option"
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6531
6532 int
6533 main ()
6534 {
6535
6536 ;
6537 return 0;
6538 }
6539 _ACEOF
6540 if ac_fn_c_try_compile "$LINENO"; then :
6541 eval "$as_acx_Woption=yes"
6542 else
6543 eval "$as_acx_Woption=no"
6544 fi
6545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546
6547 fi
6548 eval ac_res=\$$as_acx_Woption
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6550 $as_echo "$ac_res" >&6; }
6551 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6552 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6553 fi
6554 done
6555 CFLAGS="$save_CFLAGS"
6556
6557 if test "$GCC" = yes; then :
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6559 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6560 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6561 $as_echo_n "(cached) " >&6
6562 else
6563 save_CFLAGS="$CFLAGS"
6564 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6567
6568 int
6569 main ()
6570 {
6571
6572 ;
6573 return 0;
6574 }
6575 _ACEOF
6576 if ac_fn_c_try_compile "$LINENO"; then :
6577 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6578 else
6579 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6580 fi
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 CFLAGS="$save_CFLAGS"
6583 fi
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6585 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6586 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6587 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6588 fi
6589
6590 fi
6591
6592 # Check whether --enable-werror-always was given.
6593 if test "${enable_werror_always+set}" = set; then :
6594 enableval=$enable_werror_always;
6595 else
6596 enable_werror_always=no
6597 fi
6598
6599 if test $enable_werror_always = yes; then :
6600 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6601 fi
6602
6603
6604
6605 # The above macros do nothing if the compiler is not GCC. However, the
6606 # Makefile has more goo to add other flags, so these variables are used
6607 # to enable warnings only for GCC.
6608 warn_cflags=
6609 warn_cxxflags=
6610 if test "x$GCC" = "xyes"; then
6611 warn_cflags='$(GCC_WARN_CFLAGS)'
6612 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6613 fi
6614
6615
6616
6617 # Enable expensive internal checks
6618 is_release=
6619 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6620 is_release=yes
6621 fi
6622
6623 # Check whether --enable-checking was given.
6624 if test "${enable_checking+set}" = set; then :
6625 enableval=$enable_checking; ac_checking_flags="${enableval}"
6626 else
6627
6628 # Determine the default checks.
6629 if test x$is_release = x ; then
6630 ac_checking_flags=yes
6631 else
6632 ac_checking_flags=release
6633 fi
6634 fi
6635
6636 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6637 for check in release $ac_checking_flags
6638 do
6639 case $check in
6640 # these set all the flags to specific states
6641 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6642 ac_fold_checking= ; ac_gc_checking=1 ;
6643 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6644 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6645 ac_tree_checking=1 ; ac_valgrind_checking= ;
6646 ac_types_checking=1 ;;
6647 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6648 ac_fold_checking= ; ac_gc_checking= ;
6649 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6650 ac_rtlflag_checking= ; ac_runtime_checking= ;
6651 ac_tree_checking= ; ac_valgrind_checking= ;
6652 ac_types_checking= ;;
6653 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6654 ac_fold_checking=1 ; ac_gc_checking=1 ;
6655 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6656 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6657 ac_tree_checking=1 ; ac_valgrind_checking= ;
6658 ac_types_checking=1 ;;
6659 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6660 ac_fold_checking= ; ac_gc_checking= ;
6661 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6662 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6663 ac_tree_checking= ; ac_valgrind_checking= ;
6664 ac_types_checking= ;;
6665 # these enable particular checks
6666 assert) ac_assert_checking=1 ;;
6667 df) ac_df_checking=1 ;;
6668 fold) ac_fold_checking=1 ;;
6669 gc) ac_gc_checking=1 ;;
6670 gcac) ac_gc_always_collect=1 ;;
6671 gimple) ac_gimple_checking=1 ;;
6672 misc) ac_checking=1 ;;
6673 rtl) ac_rtl_checking=1 ;;
6674 rtlflag) ac_rtlflag_checking=1 ;;
6675 runtime) ac_runtime_checking=1 ;;
6676 tree) ac_tree_checking=1 ;;
6677 types) ac_types_checking=1 ;;
6678 valgrind) ac_valgrind_checking=1 ;;
6679 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6680 esac
6681 done
6682 IFS="$ac_save_IFS"
6683
6684 nocommon_flag=""
6685 if test x$ac_checking != x ; then
6686
6687 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6688
6689 nocommon_flag=-fno-common
6690 fi
6691
6692 if test x$ac_df_checking != x ; then
6693
6694 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6695
6696 fi
6697 if test x$ac_assert_checking != x ; then
6698
6699 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6700
6701 fi
6702 if test x$ac_gimple_checking != x ; then
6703
6704 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6705
6706 fi
6707
6708 if test x$ac_runtime_checking != x ; then
6709
6710 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6711
6712 fi
6713 if test x$ac_tree_checking != x ; then
6714
6715 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6716
6717 TREEBROWSER=tree-browser.o
6718 fi
6719 if test x$ac_types_checking != x ; then
6720
6721 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6722
6723 fi
6724
6725 if test x$ac_rtl_checking != x ; then
6726
6727 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6728
6729 fi
6730 if test x$ac_rtlflag_checking != x ; then
6731
6732 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6733
6734 fi
6735 if test x$ac_gc_checking != x ; then
6736
6737 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6738
6739 fi
6740 if test x$ac_gc_always_collect != x ; then
6741
6742 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6743
6744 fi
6745 if test x$ac_fold_checking != x ; then
6746
6747 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6748
6749 fi
6750 valgrind_path_defines=
6751 valgrind_command=
6752
6753 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6754 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6755 have_valgrind_h=yes
6756 else
6757 have_valgrind_h=no
6758 fi
6759
6760
6761
6762 if test x$ac_valgrind_checking != x ; then
6763 # It is certainly possible that there's valgrind but no valgrind.h.
6764 # GCC relies on making annotations so we must have both.
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6766 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6768 /* end confdefs.h. */
6769 #include <valgrind/memcheck.h>
6770 #ifndef VALGRIND_DISCARD
6771 #error VALGRIND_DISCARD not defined
6772 #endif
6773 _ACEOF
6774 if ac_fn_c_try_cpp "$LINENO"; then :
6775 gcc_cv_header_valgrind_memcheck_h=yes
6776 else
6777 gcc_cv_header_valgrind_memcheck_h=no
6778 fi
6779 rm -f conftest.err conftest.$ac_ext
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6781 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6783 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6786 #include <memcheck.h>
6787 #ifndef VALGRIND_DISCARD
6788 #error VALGRIND_DISCARD not defined
6789 #endif
6790 _ACEOF
6791 if ac_fn_c_try_cpp "$LINENO"; then :
6792 gcc_cv_header_memcheck_h=yes
6793 else
6794 gcc_cv_header_memcheck_h=no
6795 fi
6796 rm -f conftest.err conftest.$ac_ext
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6798 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6799
6800 # Prepare PATH_SEPARATOR.
6801 # The user is always right.
6802 if test "${PATH_SEPARATOR+set}" != set; then
6803 echo "#! /bin/sh" >conf$$.sh
6804 echo "exit 0" >>conf$$.sh
6805 chmod +x conf$$.sh
6806 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6807 PATH_SEPARATOR=';'
6808 else
6809 PATH_SEPARATOR=:
6810 fi
6811 rm -f conf$$.sh
6812 fi
6813
6814 # Find out how to test for executable files. Don't use a zero-byte file,
6815 # as systems may use methods other than mode bits to determine executability.
6816 cat >conf$$.file <<_ASEOF
6817 #! /bin/sh
6818 exit 0
6819 _ASEOF
6820 chmod +x conf$$.file
6821 if test -x conf$$.file >/dev/null 2>&1; then
6822 ac_executable_p="test -x"
6823 else
6824 ac_executable_p="test -f"
6825 fi
6826 rm -f conf$$.file
6827
6828 # Extract the first word of "valgrind", so it can be a program name with args.
6829 set dummy valgrind; ac_word=$2
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831 $as_echo_n "checking for $ac_word... " >&6; }
6832 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6833 $as_echo_n "(cached) " >&6
6834 else
6835 case "$valgrind_path" in
6836 [\\/]* | ?:[\\/]*)
6837 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6838 ;;
6839 *)
6840 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6841 for ac_dir in $PATH; do
6842 IFS="$ac_save_IFS"
6843 test -z "$ac_dir" && ac_dir=.
6844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6846 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6847 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6848 break 2
6849 fi
6850 fi
6851 done
6852 done
6853 IFS="$ac_save_IFS"
6854 ;;
6855 esac
6856 fi
6857 valgrind_path="$ac_cv_path_valgrind_path"
6858 if test -n "$valgrind_path"; then
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6860 $as_echo "$valgrind_path" >&6; }
6861 else
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863 $as_echo "no" >&6; }
6864 fi
6865
6866 if test "x$valgrind_path" = "x" \
6867 || (test $have_valgrind_h = no \
6868 && test $gcc_cv_header_memcheck_h = no \
6869 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6870 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6871 fi
6872 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6873 valgrind_command="$valgrind_path -q"
6874
6875 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6876
6877 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6878
6879 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6880
6881 fi
6882 if test $gcc_cv_header_memcheck_h = yes; then
6883
6884 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6885
6886 fi
6887 fi
6888
6889
6890
6891 # Enable code coverage collection
6892 # Check whether --enable-coverage was given.
6893 if test "${enable_coverage+set}" = set; then :
6894 enableval=$enable_coverage; case "${enableval}" in
6895 yes|noopt)
6896 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6897 ;;
6898 opt)
6899 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6900 ;;
6901 no)
6902 # a.k.a. --disable-coverage
6903 coverage_flags=""
6904 ;;
6905 *)
6906 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6907 ;;
6908 esac
6909 else
6910 coverage_flags=""
6911 fi
6912
6913
6914
6915 # Check whether --enable-gather-detailed-mem-stats was given.
6916 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6917 enableval=$enable_gather_detailed_mem_stats;
6918 else
6919 enable_gather_detailed_mem_stats=no
6920 fi
6921
6922 if test x$enable_gather_detailed_mem_stats = xyes ; then
6923
6924 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6925
6926 fi
6927
6928 # -------------------------------
6929 # Miscenalleous configure options
6930 # -------------------------------
6931
6932 # See if we are building gcc with C++.
6933 # Check whether --enable-build-with-cxx was given.
6934 if test "${enable_build_with_cxx+set}" = set; then :
6935 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6936 else
6937 ENABLE_BUILD_WITH_CXX=no
6938 fi
6939
6940
6941 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6942
6943 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6944
6945 fi
6946
6947 # With stabs
6948
6949 # Check whether --with-stabs was given.
6950 if test "${with_stabs+set}" = set; then :
6951 withval=$with_stabs; stabs="$with_stabs"
6952 else
6953 stabs=no
6954 fi
6955
6956
6957 # Determine whether or not multilibs are enabled.
6958 # Check whether --enable-multilib was given.
6959 if test "${enable_multilib+set}" = set; then :
6960 enableval=$enable_multilib;
6961 else
6962 enable_multilib=yes
6963 fi
6964
6965
6966
6967 # Enable __cxa_atexit for C++.
6968 # Check whether --enable-__cxa_atexit was given.
6969 if test "${enable___cxa_atexit+set}" = set; then :
6970 enableval=$enable___cxa_atexit;
6971 fi
6972
6973
6974 # Enable C extension for decimal float if target supports it.
6975
6976 # Check whether --enable-decimal-float was given.
6977 if test "${enable_decimal_float+set}" = set; then :
6978 enableval=$enable_decimal_float;
6979 case $enable_decimal_float in
6980 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6981 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6982 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6983 esac
6984
6985 else
6986
6987 case $target in
6988 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6989 i?86*-*-mingw* | x86_64*-*-mingw* | \
6990 i?86*-*-cygwin*)
6991 enable_decimal_float=yes
6992 ;;
6993 *)
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6995 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6996 enable_decimal_float=no
6997 ;;
6998 esac
6999
7000 fi
7001
7002
7003 # x86's use BID format instead of DPD
7004 case x$enable_decimal_float in
7005 xyes)
7006 case $target in
7007 i?86*-*-* | x86_64*-*-*)
7008 enable_decimal_float=bid
7009 ;;
7010 *)
7011 enable_decimal_float=dpd
7012 ;;
7013 esac
7014 default_decimal_float=$enable_decimal_float
7015 ;;
7016 xno)
7017 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7018 # dependency on libdecnumber.
7019 default_decimal_float=dpd
7020 ;;
7021 esac
7022
7023
7024
7025
7026 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7027
7028 cat >>confdefs.h <<_ACEOF
7029 #define ENABLE_DECIMAL_FLOAT $dfp
7030 _ACEOF
7031
7032
7033 # Use default_decimal_float for dependency.
7034 enable_decimal_float=$default_decimal_float
7035
7036 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7037
7038 cat >>confdefs.h <<_ACEOF
7039 #define ENABLE_DECIMAL_BID_FORMAT $bid
7040 _ACEOF
7041
7042
7043 # Enable C extension for fixed-point arithmetic.
7044 # Check whether --enable-fixed-point was given.
7045 if test "${enable_fixed_point+set}" = set; then :
7046 enableval=$enable_fixed_point;
7047 else
7048
7049 case $target in
7050 arm*)
7051 enable_fixed_point=yes
7052 ;;
7053
7054 mips*-*-*)
7055 case $host in
7056 mips*-sgi-irix*)
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7058 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7059 enable_fixed_point=no
7060 ;;
7061 *)
7062 enable_fixed_point=yes
7063 ;;
7064 esac
7065 ;;
7066 *)
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7068 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7069 enable_fixed_point=no
7070 ;;
7071 esac
7072
7073 fi
7074
7075
7076
7077 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7078
7079 cat >>confdefs.h <<_ACEOF
7080 #define ENABLE_FIXED_POINT $fixedpoint
7081 _ACEOF
7082
7083
7084 # Enable threads
7085 # Pass with no value to take the default
7086 # Pass with a value to specify a thread package
7087 # Check whether --enable-threads was given.
7088 if test "${enable_threads+set}" = set; then :
7089 enableval=$enable_threads;
7090 else
7091 enable_threads=''
7092 fi
7093
7094
7095 # Check whether --enable-tls was given.
7096 if test "${enable_tls+set}" = set; then :
7097 enableval=$enable_tls;
7098 case $enable_tls in
7099 yes | no) ;;
7100 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7101 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7102 esac
7103
7104 else
7105 enable_tls=''
7106 fi
7107
7108
7109 # Check whether --enable-objc-gc was given.
7110 if test "${enable_objc_gc+set}" = set; then :
7111 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7112 objc_boehm_gc=''
7113 else
7114 objc_boehm_gc=1
7115 fi
7116 else
7117 objc_boehm_gc=''
7118 fi
7119
7120
7121
7122 # Check whether --with-dwarf2 was given.
7123 if test "${with_dwarf2+set}" = set; then :
7124 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7125 else
7126 dwarf2=no
7127 fi
7128
7129
7130 # Check whether --enable-shared was given.
7131 if test "${enable_shared+set}" = set; then :
7132 enableval=$enable_shared;
7133 case $enable_shared in
7134 yes | no) ;;
7135 *)
7136 enable_shared=no
7137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7138 for pkg in $enableval; do
7139 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7140 enable_shared=yes
7141 fi
7142 done
7143 IFS="$ac_save_ifs"
7144 ;;
7145 esac
7146
7147 else
7148 enable_shared=yes
7149 fi
7150
7151
7152
7153
7154 # Check whether --with-build-sysroot was given.
7155 if test "${with_build_sysroot+set}" = set; then :
7156 withval=$with_build_sysroot;
7157 fi
7158
7159
7160
7161 # Check whether --with-sysroot was given.
7162 if test "${with_sysroot+set}" = set; then :
7163 withval=$with_sysroot;
7164 case ${with_sysroot} in
7165 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7166 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7167 esac
7168
7169 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7170 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7171
7172 if test "x$prefix" = xNONE; then
7173 test_prefix=/usr/local
7174 else
7175 test_prefix=$prefix
7176 fi
7177 if test "x$exec_prefix" = xNONE; then
7178 test_exec_prefix=$test_prefix
7179 else
7180 test_exec_prefix=$exec_prefix
7181 fi
7182 case ${TARGET_SYSTEM_ROOT} in
7183 "${test_prefix}"|"${test_prefix}/"*|\
7184 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7185 '${prefix}'|'${prefix}/'*|\
7186 '${exec_prefix}'|'${exec_prefix}/'*)
7187 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7188 TARGET_SYSTEM_ROOT_DEFINE="$t"
7189 ;;
7190 esac
7191
7192 else
7193
7194 TARGET_SYSTEM_ROOT=
7195 TARGET_SYSTEM_ROOT_DEFINE=
7196 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7197
7198 fi
7199
7200
7201
7202
7203
7204
7205 # Check whether --with-specs was given.
7206 if test "${with_specs+set}" = set; then :
7207 withval=$with_specs; CONFIGURE_SPECS=$withval
7208 else
7209 CONFIGURE_SPECS=
7210
7211 fi
7212
7213
7214
7215
7216
7217 # Check whether --with-pkgversion was given.
7218 if test "${with_pkgversion+set}" = set; then :
7219 withval=$with_pkgversion; case "$withval" in
7220 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7221 no) PKGVERSION= ;;
7222 *) PKGVERSION="($withval) " ;;
7223 esac
7224 else
7225 PKGVERSION="(GCC) "
7226
7227 fi
7228
7229
7230
7231
7232
7233 # Check whether --with-bugurl was given.
7234 if test "${with_bugurl+set}" = set; then :
7235 withval=$with_bugurl; case "$withval" in
7236 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7237 no) BUGURL=
7238 ;;
7239 *) BUGURL="$withval"
7240 ;;
7241 esac
7242 else
7243 BUGURL="http://gcc.gnu.org/bugs.html"
7244
7245 fi
7246
7247 case ${BUGURL} in
7248 "")
7249 REPORT_BUGS_TO=
7250 REPORT_BUGS_TEXI=
7251 ;;
7252 *)
7253 REPORT_BUGS_TO="<$BUGURL>"
7254 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7255 ;;
7256 esac;
7257
7258
7259
7260
7261 # Sanity check enable_languages in case someone does not run the toplevel
7262 # configure # script.
7263 # Check whether --enable-languages was given.
7264 if test "${enable_languages+set}" = set; then :
7265 enableval=$enable_languages; case ,${enable_languages}, in
7266 ,,|,yes,)
7267 # go safe -- we cannot be much sure without the toplevel
7268 # configure's
7269 # analysis of which target libs are present and usable
7270 enable_languages=c
7271 ;;
7272 *,all,*)
7273 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7274 ;;
7275 *,c,*)
7276 ;;
7277 *)
7278 enable_languages=c,${enable_languages}
7279 ;;
7280 esac
7281 else
7282 enable_languages=c
7283 fi
7284
7285
7286
7287 # Check whether --with-multilib-list was given.
7288 if test "${with_multilib_list+set}" = set; then :
7289 withval=$with_multilib_list; :
7290 else
7291 with_multilib_list=default
7292 fi
7293
7294
7295 # -------------------------
7296 # Checks for other programs
7297 # -------------------------
7298
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7300 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7301 set x ${MAKE-make}
7302 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7303 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7304 $as_echo_n "(cached) " >&6
7305 else
7306 cat >conftest.make <<\_ACEOF
7307 SHELL = /bin/sh
7308 all:
7309 @echo '@@@%%%=$(MAKE)=@@@%%%'
7310 _ACEOF
7311 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7312 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7313 *@@@%%%=?*=@@@%%%*)
7314 eval ac_cv_prog_make_${ac_make}_set=yes;;
7315 *)
7316 eval ac_cv_prog_make_${ac_make}_set=no;;
7317 esac
7318 rm -f conftest.make
7319 fi
7320 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7322 $as_echo "yes" >&6; }
7323 SET_MAKE=
7324 else
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7327 SET_MAKE="MAKE=${MAKE-make}"
7328 fi
7329
7330
7331 # Find some useful tools
7332 for ac_prog in gawk mawk nawk awk
7333 do
7334 # Extract the first word of "$ac_prog", so it can be a program name with args.
7335 set dummy $ac_prog; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if test "${ac_cv_prog_AWK+set}" = set; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 if test -n "$AWK"; then
7342 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_prog_AWK="$ac_prog"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7354 fi
7355 done
7356 done
7357 IFS=$as_save_IFS
7358
7359 fi
7360 fi
7361 AWK=$ac_cv_prog_AWK
7362 if test -n "$AWK"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7364 $as_echo "$AWK" >&6; }
7365 else
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369
7370
7371 test -n "$AWK" && break
7372 done
7373
7374 # We need awk to create options.c and options.h.
7375 # Bail out if it's missing.
7376 case ${AWK} in
7377 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7378 esac
7379
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7381 $as_echo_n "checking whether ln -s works... " >&6; }
7382 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7383 $as_echo_n "(cached) " >&6
7384 else
7385 rm -f conftestdata_t
7386 echo >conftestdata_f
7387 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7388 then
7389 gcc_cv_prog_LN_S="ln -s"
7390 else
7391 if ln conftestdata_f conftestdata_t 2>/dev/null
7392 then
7393 gcc_cv_prog_LN_S=ln
7394 else
7395 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7396 then
7397 gcc_cv_prog_LN_S="cp -p"
7398 else
7399 gcc_cv_prog_LN_S=cp
7400 fi
7401 fi
7402 fi
7403 rm -f conftestdata_f conftestdata_t
7404
7405 fi
7406 LN_S="$gcc_cv_prog_LN_S"
7407 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7409 $as_echo "yes" >&6; }
7410 else
7411 if test "$gcc_cv_prog_LN_S" = "ln"; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7413 $as_echo "no, using ln" >&6; }
7414 else
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7416 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7417 fi
7418 fi
7419
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7421 $as_echo_n "checking whether ln works... " >&6; }
7422 if test "${acx_cv_prog_LN+set}" = set; then :
7423 $as_echo_n "(cached) " >&6
7424 else
7425 rm -f conftestdata_t
7426 echo >conftestdata_f
7427 if ln conftestdata_f conftestdata_t 2>/dev/null
7428 then
7429 acx_cv_prog_LN=ln
7430 else
7431 acx_cv_prog_LN=no
7432 fi
7433 rm -f conftestdata_f conftestdata_t
7434
7435 fi
7436 if test $acx_cv_prog_LN = no; then
7437 LN="$LN_S"
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7439 $as_echo "no, using $LN" >&6; }
7440 else
7441 LN="$acx_cv_prog_LN"
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7443 $as_echo "yes" >&6; }
7444 fi
7445
7446 if test -n "$ac_tool_prefix"; then
7447 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7448 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450 $as_echo_n "checking for $ac_word... " >&6; }
7451 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7452 $as_echo_n "(cached) " >&6
7453 else
7454 if test -n "$RANLIB"; then
7455 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7456 else
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7459 do
7460 IFS=$as_save_IFS
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7464 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 break 2
7467 fi
7468 done
7469 done
7470 IFS=$as_save_IFS
7471
7472 fi
7473 fi
7474 RANLIB=$ac_cv_prog_RANLIB
7475 if test -n "$RANLIB"; then
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7477 $as_echo "$RANLIB" >&6; }
7478 else
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480 $as_echo "no" >&6; }
7481 fi
7482
7483
7484 fi
7485 if test -z "$ac_cv_prog_RANLIB"; then
7486 ac_ct_RANLIB=$RANLIB
7487 # Extract the first word of "ranlib", so it can be a program name with args.
7488 set dummy ranlib; ac_word=$2
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490 $as_echo_n "checking for $ac_word... " >&6; }
7491 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7492 $as_echo_n "(cached) " >&6
7493 else
7494 if test -n "$ac_ct_RANLIB"; then
7495 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7496 else
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 for as_dir in $PATH
7499 do
7500 IFS=$as_save_IFS
7501 test -z "$as_dir" && as_dir=.
7502 for ac_exec_ext in '' $ac_executable_extensions; do
7503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7504 ac_cv_prog_ac_ct_RANLIB="ranlib"
7505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7506 break 2
7507 fi
7508 done
7509 done
7510 IFS=$as_save_IFS
7511
7512 fi
7513 fi
7514 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7515 if test -n "$ac_ct_RANLIB"; then
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7517 $as_echo "$ac_ct_RANLIB" >&6; }
7518 else
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }
7521 fi
7522
7523 if test "x$ac_ct_RANLIB" = x; then
7524 RANLIB=":"
7525 else
7526 case $cross_compiling:$ac_tool_warned in
7527 yes:)
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7530 ac_tool_warned=yes ;;
7531 esac
7532 RANLIB=$ac_ct_RANLIB
7533 fi
7534 else
7535 RANLIB="$ac_cv_prog_RANLIB"
7536 fi
7537
7538 case "${host}" in
7539 *-*-darwin*)
7540 # By default, the Darwin ranlib will not treat common symbols as
7541 # definitions when building the archive table of contents. Other
7542 # ranlibs do that; pass an option to the Darwin ranlib that makes
7543 # it behave similarly.
7544 ranlib_flags="-c"
7545 ;;
7546 *)
7547 ranlib_flags=""
7548 esac
7549
7550
7551 # Find a good install program. We prefer a C program (faster),
7552 # so one script is as good as another. But avoid the broken or
7553 # incompatible versions:
7554 # SysV /etc/install, /usr/sbin/install
7555 # SunOS /usr/etc/install
7556 # IRIX /sbin/install
7557 # AIX /bin/install
7558 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7559 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7560 # ./install, which can be erroneously created by make from ./install.sh.
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7562 $as_echo_n "checking for a BSD compatible install... " >&6; }
7563 if test -z "$INSTALL"; then
7564 if test "${ac_cv_path_install+set}" = set; then :
7565 $as_echo_n "(cached) " >&6
7566 else
7567 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7568 for ac_dir in $PATH; do
7569 # Account for people who put trailing slashes in PATH elements.
7570 case "$ac_dir/" in
7571 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7572 *)
7573 # OSF1 and SCO ODT 3.0 have their own names for install.
7574 for ac_prog in ginstall scoinst install; do
7575 if test -f $ac_dir/$ac_prog; then
7576 if test $ac_prog = install &&
7577 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7578 # AIX install. It has an incompatible calling convention.
7579 # OSF/1 installbsd also uses dspmsg, but is usable.
7580 :
7581 else
7582 ac_cv_path_install="$ac_dir/$ac_prog -c"
7583 break 2
7584 fi
7585 fi
7586 done
7587 ;;
7588 esac
7589 done
7590 IFS="$ac_save_IFS"
7591
7592 fi
7593 if test "${ac_cv_path_install+set}" = set; then
7594 INSTALL="$ac_cv_path_install"
7595 else
7596 # As a last resort, use the slow shell script. We don't cache a
7597 # path for INSTALL within a source directory, because that will
7598 # break other packages using the cache if that directory is
7599 # removed, or if the path is relative.
7600 INSTALL="$ac_install_sh"
7601 fi
7602 fi
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7604 $as_echo "$INSTALL" >&6; }
7605
7606 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7607 # It thinks the first close brace ends the variable substitution.
7608 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7609
7610 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7611
7612
7613 # See if cmp has --ignore-initial.
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7615 $as_echo_n "checking for cmp's capabilities... " >&6; }
7616 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7617 $as_echo_n "(cached) " >&6
7618 else
7619 echo abfoo >t1
7620 echo cdfoo >t2
7621 gcc_cv_prog_cmp_skip=slowcompare
7622 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7623 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7624 :
7625 else
7626 gcc_cv_prog_cmp_skip=gnucompare
7627 fi
7628 fi
7629 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7630 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7631 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7632 :
7633 else
7634 gcc_cv_prog_cmp_skip=fastcompare
7635 fi
7636 fi
7637 fi
7638 rm t1 t2
7639
7640 fi
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7642 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7643 make_compare_target=$gcc_cv_prog_cmp_skip
7644
7645
7646
7647 # See if we have the mktemp command.
7648 # Extract the first word of "mktemp", so it can be a program name with args.
7649 set dummy mktemp; ac_word=$2
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7651 $as_echo_n "checking for $ac_word... " >&6; }
7652 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7653 $as_echo_n "(cached) " >&6
7654 else
7655 if test -n "$have_mktemp_command"; then
7656 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7657 else
7658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 for as_dir in $PATH
7660 do
7661 IFS=$as_save_IFS
7662 test -z "$as_dir" && as_dir=.
7663 for ac_exec_ext in '' $ac_executable_extensions; do
7664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7665 ac_cv_prog_have_mktemp_command="yes"
7666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7667 break 2
7668 fi
7669 done
7670 done
7671 IFS=$as_save_IFS
7672
7673 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7674 fi
7675 fi
7676 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7677 if test -n "$have_mktemp_command"; then
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7679 $as_echo "$have_mktemp_command" >&6; }
7680 else
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682 $as_echo "no" >&6; }
7683 fi
7684
7685
7686
7687 # See if makeinfo has been installed and is modern enough
7688 # that we can use it.
7689
7690 # Extract the first word of "makeinfo", so it can be a program name with args.
7691 set dummy makeinfo; ac_word=$2
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693 $as_echo_n "checking for $ac_word... " >&6; }
7694 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7695 $as_echo_n "(cached) " >&6
7696 else
7697 if test -n "$MAKEINFO"; then
7698 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7699 else
7700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701 for as_dir in $PATH
7702 do
7703 IFS=$as_save_IFS
7704 test -z "$as_dir" && as_dir=.
7705 for ac_exec_ext in '' $ac_executable_extensions; do
7706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7707 ac_cv_prog_MAKEINFO="makeinfo"
7708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7709 break 2
7710 fi
7711 done
7712 done
7713 IFS=$as_save_IFS
7714
7715 fi
7716 fi
7717 MAKEINFO=$ac_cv_prog_MAKEINFO
7718 if test -n "$MAKEINFO"; then
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7720 $as_echo "$MAKEINFO" >&6; }
7721 else
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723 $as_echo "no" >&6; }
7724 fi
7725
7726
7727 if test -n "$MAKEINFO"; then
7728 # Found it, now check the version.
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7730 $as_echo_n "checking for modern makeinfo... " >&6; }
7731 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7732 $as_echo_n "(cached) " >&6
7733 else
7734 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7735 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7736
7737 case $ac_prog_version in
7738 '') gcc_cv_prog_makeinfo_modern=no;;
7739 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7740 *) gcc_cv_prog_makeinfo_modern=no;;
7741 esac
7742
7743 fi
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7745 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7746 else
7747 gcc_cv_prog_makeinfo_modern=no
7748 fi
7749 if test $gcc_cv_prog_makeinfo_modern = no; then
7750 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7751 fi
7752
7753 if test $gcc_cv_prog_makeinfo_modern = no; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7755 *** Makeinfo is missing or too old.
7756 *** Info documentation will not be built." >&5
7757 $as_echo "$as_me: WARNING:
7758 *** Makeinfo is missing or too old.
7759 *** Info documentation will not be built." >&2;}
7760 BUILD_INFO=
7761 else
7762 BUILD_INFO=info
7763 fi
7764
7765
7766 # Is pod2man recent enough to regenerate manpages?
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7768 $as_echo_n "checking for recent Pod::Man... " >&6; }
7769 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7771 $as_echo "yes" >&6; }
7772 GENERATED_MANPAGES=generated-manpages
7773 else
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775 $as_echo "no" >&6; }
7776 GENERATED_MANPAGES=
7777 fi
7778
7779
7780 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7781
7782 # How about lex?
7783 for ac_prog in flex
7784 do
7785 # Extract the first word of "$ac_prog", so it can be a program name with args.
7786 set dummy $ac_prog; ac_word=$2
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788 $as_echo_n "checking for $ac_word... " >&6; }
7789 if test "${ac_cv_prog_FLEX+set}" = set; then :
7790 $as_echo_n "(cached) " >&6
7791 else
7792 if test -n "$FLEX"; then
7793 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7794 else
7795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796 for as_dir in $PATH
7797 do
7798 IFS=$as_save_IFS
7799 test -z "$as_dir" && as_dir=.
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7802 ac_cv_prog_FLEX="$ac_prog"
7803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7804 break 2
7805 fi
7806 done
7807 done
7808 IFS=$as_save_IFS
7809
7810 fi
7811 fi
7812 FLEX=$ac_cv_prog_FLEX
7813 if test -n "$FLEX"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7815 $as_echo "$FLEX" >&6; }
7816 else
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7819 fi
7820
7821
7822 test -n "$FLEX" && break
7823 done
7824 test -n "$FLEX" || FLEX="$MISSING flex"
7825
7826
7827 # Bison?
7828 for ac_prog in bison
7829 do
7830 # Extract the first word of "$ac_prog", so it can be a program name with args.
7831 set dummy $ac_prog; ac_word=$2
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7833 $as_echo_n "checking for $ac_word... " >&6; }
7834 if test "${ac_cv_prog_BISON+set}" = set; then :
7835 $as_echo_n "(cached) " >&6
7836 else
7837 if test -n "$BISON"; then
7838 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7839 else
7840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841 for as_dir in $PATH
7842 do
7843 IFS=$as_save_IFS
7844 test -z "$as_dir" && as_dir=.
7845 for ac_exec_ext in '' $ac_executable_extensions; do
7846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7847 ac_cv_prog_BISON="$ac_prog"
7848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7849 break 2
7850 fi
7851 done
7852 done
7853 IFS=$as_save_IFS
7854
7855 fi
7856 fi
7857 BISON=$ac_cv_prog_BISON
7858 if test -n "$BISON"; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7860 $as_echo "$BISON" >&6; }
7861 else
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863 $as_echo "no" >&6; }
7864 fi
7865
7866
7867 test -n "$BISON" && break
7868 done
7869 test -n "$BISON" || BISON="$MISSING bison"
7870
7871
7872 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7873 # check for build == host before using them.
7874
7875 # NM
7876 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7877 && test -d ../binutils ; then
7878 NM='${objdir}/../binutils/nm-new'
7879 else
7880 # Extract the first word of "nm", so it can be a program name with args.
7881 set dummy nm; ac_word=$2
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883 $as_echo_n "checking for $ac_word... " >&6; }
7884 if test "${ac_cv_prog_NM+set}" = set; then :
7885 $as_echo_n "(cached) " >&6
7886 else
7887 if test -n "$NM"; then
7888 ac_cv_prog_NM="$NM" # Let the user override the test.
7889 else
7890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891 for as_dir in $PATH
7892 do
7893 IFS=$as_save_IFS
7894 test -z "$as_dir" && as_dir=.
7895 for ac_exec_ext in '' $ac_executable_extensions; do
7896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7897 ac_cv_prog_NM="nm"
7898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7899 break 2
7900 fi
7901 done
7902 done
7903 IFS=$as_save_IFS
7904
7905 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7906 fi
7907 fi
7908 NM=$ac_cv_prog_NM
7909 if test -n "$NM"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7911 $as_echo "$NM" >&6; }
7912 else
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7915 fi
7916
7917
7918 fi
7919
7920 # AR
7921 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7922 && test -d ../binutils ; then
7923 AR='${objdir}/../binutils/ar'
7924 else
7925 # Extract the first word of "ar", so it can be a program name with args.
7926 set dummy ar; ac_word=$2
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7928 $as_echo_n "checking for $ac_word... " >&6; }
7929 if test "${ac_cv_prog_AR+set}" = set; then :
7930 $as_echo_n "(cached) " >&6
7931 else
7932 if test -n "$AR"; then
7933 ac_cv_prog_AR="$AR" # Let the user override the test.
7934 else
7935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936 for as_dir in $PATH
7937 do
7938 IFS=$as_save_IFS
7939 test -z "$as_dir" && as_dir=.
7940 for ac_exec_ext in '' $ac_executable_extensions; do
7941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7942 ac_cv_prog_AR="ar"
7943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7944 break 2
7945 fi
7946 done
7947 done
7948 IFS=$as_save_IFS
7949
7950 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7951 fi
7952 fi
7953 AR=$ac_cv_prog_AR
7954 if test -n "$AR"; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7956 $as_echo "$AR" >&6; }
7957 else
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959 $as_echo "no" >&6; }
7960 fi
7961
7962
7963 fi
7964
7965
7966 # --------------------
7967 # Checks for C headers
7968 # --------------------
7969
7970 # Need to reject headers which give warnings, so that the -Werror bootstrap
7971 # works later. *sigh* This needs to come before all header checks.
7972
7973 ac_c_preproc_warn_flag=yes
7974
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7976 $as_echo_n "checking for ANSI C header files... " >&6; }
7977 if test "${ac_cv_header_stdc+set}" = set; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7982 #include <stdlib.h>
7983 #include <stdarg.h>
7984 #include <string.h>
7985 #include <float.h>
7986
7987 int
7988 main ()
7989 {
7990
7991 ;
7992 return 0;
7993 }
7994 _ACEOF
7995 if ac_fn_c_try_compile "$LINENO"; then :
7996 ac_cv_header_stdc=yes
7997 else
7998 ac_cv_header_stdc=no
7999 fi
8000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8001
8002 if test $ac_cv_header_stdc = yes; then
8003 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h. */
8006 #include <string.h>
8007
8008 _ACEOF
8009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8010 $EGREP "memchr" >/dev/null 2>&1; then :
8011
8012 else
8013 ac_cv_header_stdc=no
8014 fi
8015 rm -f conftest*
8016
8017 fi
8018
8019 if test $ac_cv_header_stdc = yes; then
8020 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022 /* end confdefs.h. */
8023 #include <stdlib.h>
8024
8025 _ACEOF
8026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8027 $EGREP "free" >/dev/null 2>&1; then :
8028
8029 else
8030 ac_cv_header_stdc=no
8031 fi
8032 rm -f conftest*
8033
8034 fi
8035
8036 if test $ac_cv_header_stdc = yes; then
8037 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8038 if test "$cross_compiling" = yes; then :
8039 :
8040 else
8041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h. */
8043 #include <ctype.h>
8044 #include <stdlib.h>
8045 #if ((' ' & 0x0FF) == 0x020)
8046 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8047 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8048 #else
8049 # define ISLOWER(c) \
8050 (('a' <= (c) && (c) <= 'i') \
8051 || ('j' <= (c) && (c) <= 'r') \
8052 || ('s' <= (c) && (c) <= 'z'))
8053 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8054 #endif
8055
8056 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8057 int
8058 main ()
8059 {
8060 int i;
8061 for (i = 0; i < 256; i++)
8062 if (XOR (islower (i), ISLOWER (i))
8063 || toupper (i) != TOUPPER (i))
8064 return 2;
8065 return 0;
8066 }
8067 _ACEOF
8068 if ac_fn_c_try_run "$LINENO"; then :
8069
8070 else
8071 ac_cv_header_stdc=no
8072 fi
8073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8074 conftest.$ac_objext conftest.beam conftest.$ac_ext
8075 fi
8076
8077 fi
8078 fi
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8080 $as_echo "$ac_cv_header_stdc" >&6; }
8081 if test $ac_cv_header_stdc = yes; then
8082
8083 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8084
8085 fi
8086
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8088 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8089 if test "${ac_cv_header_time+set}" = set; then :
8090 $as_echo_n "(cached) " >&6
8091 else
8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h. */
8094 #include <sys/types.h>
8095 #include <sys/time.h>
8096 #include <time.h>
8097
8098 int
8099 main ()
8100 {
8101 if ((struct tm *) 0)
8102 return 0;
8103 ;
8104 return 0;
8105 }
8106 _ACEOF
8107 if ac_fn_c_try_compile "$LINENO"; then :
8108 ac_cv_header_time=yes
8109 else
8110 ac_cv_header_time=no
8111 fi
8112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8113 fi
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8115 $as_echo "$ac_cv_header_time" >&6; }
8116 if test $ac_cv_header_time = yes; then
8117
8118 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8119
8120 fi
8121
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8123 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8124 if test "${gcc_cv_header_string+set}" = set; then :
8125 $as_echo_n "(cached) " >&6
8126 else
8127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8128 /* end confdefs.h. */
8129 #include <string.h>
8130 #include <strings.h>
8131 int
8132 main ()
8133 {
8134
8135 ;
8136 return 0;
8137 }
8138 _ACEOF
8139 if ac_fn_c_try_compile "$LINENO"; then :
8140 gcc_cv_header_string=yes
8141 else
8142 gcc_cv_header_string=no
8143 fi
8144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8145 fi
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8147 $as_echo "$gcc_cv_header_string" >&6; }
8148 if test $gcc_cv_header_string = yes; then
8149
8150 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8151
8152 fi
8153
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8155 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8156 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8157 $as_echo_n "(cached) " >&6
8158 else
8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h. */
8161 #include <sys/types.h>
8162 #include <sys/wait.h>
8163 #ifndef WEXITSTATUS
8164 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8165 #endif
8166 #ifndef WIFEXITED
8167 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8168 #endif
8169
8170 int
8171 main ()
8172 {
8173 int s;
8174 wait (&s);
8175 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8176 ;
8177 return 0;
8178 }
8179 _ACEOF
8180 if ac_fn_c_try_compile "$LINENO"; then :
8181 ac_cv_header_sys_wait_h=yes
8182 else
8183 ac_cv_header_sys_wait_h=no
8184 fi
8185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8186 fi
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8188 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8189 if test $ac_cv_header_sys_wait_h = yes; then
8190
8191 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8192
8193 fi
8194
8195 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8196 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8197 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8198 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8199 do :
8200 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8201 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8202 eval as_val=\$$as_ac_Header
8203 if test "x$as_val" = x""yes; then :
8204 cat >>confdefs.h <<_ACEOF
8205 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8206 _ACEOF
8207
8208 fi
8209 done
8210
8211
8212 # Check for thread headers.
8213 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8214 if test "x$ac_cv_header_thread_h" = x""yes; then :
8215 have_thread_h=yes
8216 else
8217 have_thread_h=
8218 fi
8219
8220 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8221 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8222 have_pthread_h=yes
8223 else
8224 have_pthread_h=
8225 fi
8226
8227
8228 # These tests can't be done till we know if we have limits.h.
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8230 $as_echo_n "checking for CHAR_BIT... " >&6; }
8231 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8232 $as_echo_n "(cached) " >&6
8233 else
8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h. */
8236 #ifdef HAVE_LIMITS_H
8237 #include <limits.h>
8238 #endif
8239 #ifdef CHAR_BIT
8240 found
8241 #endif
8242 _ACEOF
8243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8244 $EGREP "found" >/dev/null 2>&1; then :
8245 gcc_cv_decl_char_bit=yes
8246 else
8247 gcc_cv_decl_char_bit=no
8248 fi
8249 rm -f conftest*
8250
8251
8252 fi
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8254 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8255 if test $gcc_cv_decl_char_bit = no; then
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8257 $as_echo_n "checking number of bits in a byte... " >&6; }
8258 if test "${gcc_cv_c_nbby+set}" = set; then :
8259 $as_echo_n "(cached) " >&6
8260 else
8261 i=8
8262 gcc_cv_c_nbby=
8263 while test $i -lt 65; do
8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h. */
8266
8267 int
8268 main ()
8269 {
8270 switch(0) {
8271 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8272 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8273 ; }
8274 ;
8275 return 0;
8276 }
8277 _ACEOF
8278 if ac_fn_c_try_compile "$LINENO"; then :
8279 gcc_cv_c_nbby=$i; break
8280 fi
8281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8282 i=`expr $i + 1`
8283 done
8284 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8285
8286 fi
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8288 $as_echo "$gcc_cv_c_nbby" >&6; }
8289 if test $gcc_cv_c_nbby = failed; then
8290 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8291 else
8292
8293 cat >>confdefs.h <<_ACEOF
8294 #define CHAR_BIT $gcc_cv_c_nbby
8295 _ACEOF
8296
8297 fi
8298 fi
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8300 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8301 if test "${ac_cv_c_bigendian+set}" = set; then :
8302 $as_echo_n "(cached) " >&6
8303 else
8304 ac_cv_c_bigendian=unknown
8305 # See if we're dealing with a universal compiler.
8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8308 #ifndef __APPLE_CC__
8309 not a universal capable compiler
8310 #endif
8311 typedef int dummy;
8312
8313 _ACEOF
8314 if ac_fn_c_try_compile "$LINENO"; then :
8315
8316 # Check for potential -arch flags. It is not universal unless
8317 # there are at least two -arch flags with different values.
8318 ac_arch=
8319 ac_prev=
8320 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8321 if test -n "$ac_prev"; then
8322 case $ac_word in
8323 i?86 | x86_64 | ppc | ppc64)
8324 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8325 ac_arch=$ac_word
8326 else
8327 ac_cv_c_bigendian=universal
8328 break
8329 fi
8330 ;;
8331 esac
8332 ac_prev=
8333 elif test "x$ac_word" = "x-arch"; then
8334 ac_prev=arch
8335 fi
8336 done
8337 fi
8338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8339 if test $ac_cv_c_bigendian = unknown; then
8340 # See if sys/param.h defines the BYTE_ORDER macro.
8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8343 #include <sys/types.h>
8344 #include <sys/param.h>
8345
8346 int
8347 main ()
8348 {
8349 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8350 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8351 && LITTLE_ENDIAN)
8352 bogus endian macros
8353 #endif
8354
8355 ;
8356 return 0;
8357 }
8358 _ACEOF
8359 if ac_fn_c_try_compile "$LINENO"; then :
8360 # It does; now see whether it defined to BIG_ENDIAN or not.
8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8363 #include <sys/types.h>
8364 #include <sys/param.h>
8365
8366 int
8367 main ()
8368 {
8369 #if BYTE_ORDER != BIG_ENDIAN
8370 not big endian
8371 #endif
8372
8373 ;
8374 return 0;
8375 }
8376 _ACEOF
8377 if ac_fn_c_try_compile "$LINENO"; then :
8378 ac_cv_c_bigendian=yes
8379 else
8380 ac_cv_c_bigendian=no
8381 fi
8382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8383 fi
8384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8385 fi
8386 if test $ac_cv_c_bigendian = unknown; then
8387 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8390 #include <limits.h>
8391
8392 int
8393 main ()
8394 {
8395 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8396 bogus endian macros
8397 #endif
8398
8399 ;
8400 return 0;
8401 }
8402 _ACEOF
8403 if ac_fn_c_try_compile "$LINENO"; then :
8404 # It does; now see whether it defined to _BIG_ENDIAN or not.
8405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8406 /* end confdefs.h. */
8407 #include <limits.h>
8408
8409 int
8410 main ()
8411 {
8412 #ifndef _BIG_ENDIAN
8413 not big endian
8414 #endif
8415
8416 ;
8417 return 0;
8418 }
8419 _ACEOF
8420 if ac_fn_c_try_compile "$LINENO"; then :
8421 ac_cv_c_bigendian=yes
8422 else
8423 ac_cv_c_bigendian=no
8424 fi
8425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8426 fi
8427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8428 fi
8429 if test $ac_cv_c_bigendian = unknown; then
8430 # Compile a test program.
8431 if test "$cross_compiling" = yes; then :
8432 # Try to guess by grepping values from an object file.
8433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434 /* end confdefs.h. */
8435 short int ascii_mm[] =
8436 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8437 short int ascii_ii[] =
8438 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8439 int use_ascii (int i) {
8440 return ascii_mm[i] + ascii_ii[i];
8441 }
8442 short int ebcdic_ii[] =
8443 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8444 short int ebcdic_mm[] =
8445 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8446 int use_ebcdic (int i) {
8447 return ebcdic_mm[i] + ebcdic_ii[i];
8448 }
8449 extern int foo;
8450
8451 int
8452 main ()
8453 {
8454 return use_ascii (foo) == use_ebcdic (foo);
8455 ;
8456 return 0;
8457 }
8458 _ACEOF
8459 if ac_fn_c_try_compile "$LINENO"; then :
8460 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8461 ac_cv_c_bigendian=yes
8462 fi
8463 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8464 if test "$ac_cv_c_bigendian" = unknown; then
8465 ac_cv_c_bigendian=no
8466 else
8467 # finding both strings is unlikely to happen, but who knows?
8468 ac_cv_c_bigendian=unknown
8469 fi
8470 fi
8471 fi
8472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8473 else
8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8476 $ac_includes_default
8477 int
8478 main ()
8479 {
8480
8481 /* Are we little or big endian? From Harbison&Steele. */
8482 union
8483 {
8484 long int l;
8485 char c[sizeof (long int)];
8486 } u;
8487 u.l = 1;
8488 return u.c[sizeof (long int) - 1] == 1;
8489
8490 ;
8491 return 0;
8492 }
8493 _ACEOF
8494 if ac_fn_c_try_run "$LINENO"; then :
8495 ac_cv_c_bigendian=no
8496 else
8497 ac_cv_c_bigendian=yes
8498 fi
8499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8500 conftest.$ac_objext conftest.beam conftest.$ac_ext
8501 fi
8502
8503 fi
8504 fi
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8506 $as_echo "$ac_cv_c_bigendian" >&6; }
8507 case $ac_cv_c_bigendian in #(
8508 yes)
8509 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8510 ;; #(
8511 no)
8512 ;; #(
8513 universal)
8514
8515 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8516
8517 ;; #(
8518 *)
8519 as_fn_error "unknown endianness
8520 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8521 esac
8522
8523
8524 # ----------------------
8525 # Checks for C++ headers
8526 # ----------------------
8527
8528 ac_ext=cpp
8529 ac_cpp='$CXXCPP $CPPFLAGS'
8530 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8531 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8532 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8534 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8535 if test -z "$CXXCPP"; then
8536 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8537 $as_echo_n "(cached) " >&6
8538 else
8539 # Double quotes because CXXCPP needs to be expanded
8540 for CXXCPP in "$CXX -E" "/lib/cpp"
8541 do
8542 ac_preproc_ok=false
8543 for ac_cxx_preproc_warn_flag in '' yes
8544 do
8545 # Use a header file that comes with gcc, so configuring glibc
8546 # with a fresh cross-compiler works.
8547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8548 # <limits.h> exists even on freestanding compilers.
8549 # On the NeXT, cc -E runs the code through the compiler's parser,
8550 # not just through cpp. "Syntax error" is here to catch this case.
8551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8552 /* end confdefs.h. */
8553 #ifdef __STDC__
8554 # include <limits.h>
8555 #else
8556 # include <assert.h>
8557 #endif
8558 Syntax error
8559 _ACEOF
8560 if ac_fn_cxx_try_cpp "$LINENO"; then :
8561
8562 else
8563 # Broken: fails on valid input.
8564 continue
8565 fi
8566 rm -f conftest.err conftest.$ac_ext
8567
8568 # OK, works on sane cases. Now check whether nonexistent headers
8569 # can be detected and how.
8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h. */
8572 #include <ac_nonexistent.h>
8573 _ACEOF
8574 if ac_fn_cxx_try_cpp "$LINENO"; then :
8575 # Broken: success on invalid input.
8576 continue
8577 else
8578 # Passes both tests.
8579 ac_preproc_ok=:
8580 break
8581 fi
8582 rm -f conftest.err conftest.$ac_ext
8583
8584 done
8585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8586 rm -f conftest.err conftest.$ac_ext
8587 if $ac_preproc_ok; then :
8588 break
8589 fi
8590
8591 done
8592 ac_cv_prog_CXXCPP=$CXXCPP
8593
8594 fi
8595 CXXCPP=$ac_cv_prog_CXXCPP
8596 else
8597 ac_cv_prog_CXXCPP=$CXXCPP
8598 fi
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8600 $as_echo "$CXXCPP" >&6; }
8601 ac_preproc_ok=false
8602 for ac_cxx_preproc_warn_flag in '' yes
8603 do
8604 # Use a header file that comes with gcc, so configuring glibc
8605 # with a fresh cross-compiler works.
8606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8607 # <limits.h> exists even on freestanding compilers.
8608 # On the NeXT, cc -E runs the code through the compiler's parser,
8609 # not just through cpp. "Syntax error" is here to catch this case.
8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611 /* end confdefs.h. */
8612 #ifdef __STDC__
8613 # include <limits.h>
8614 #else
8615 # include <assert.h>
8616 #endif
8617 Syntax error
8618 _ACEOF
8619 if ac_fn_cxx_try_cpp "$LINENO"; then :
8620
8621 else
8622 # Broken: fails on valid input.
8623 continue
8624 fi
8625 rm -f conftest.err conftest.$ac_ext
8626
8627 # OK, works on sane cases. Now check whether nonexistent headers
8628 # can be detected and how.
8629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8630 /* end confdefs.h. */
8631 #include <ac_nonexistent.h>
8632 _ACEOF
8633 if ac_fn_cxx_try_cpp "$LINENO"; then :
8634 # Broken: success on invalid input.
8635 continue
8636 else
8637 # Passes both tests.
8638 ac_preproc_ok=:
8639 break
8640 fi
8641 rm -f conftest.err conftest.$ac_ext
8642
8643 done
8644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8645 rm -f conftest.err conftest.$ac_ext
8646 if $ac_preproc_ok; then :
8647
8648 else
8649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8652 See \`config.log' for more details." >&5
8653 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8654 See \`config.log' for more details." >&2;}; }
8655 fi
8656
8657 ac_ext=c
8658 ac_cpp='$CPP $CPPFLAGS'
8659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8662
8663
8664 ac_ext=cpp
8665 ac_cpp='$CXXCPP $CPPFLAGS'
8666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8669
8670
8671
8672
8673 for ac_header in unordered_map
8674 do :
8675 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8676 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8677 cat >>confdefs.h <<_ACEOF
8678 #define HAVE_UNORDERED_MAP 1
8679 _ACEOF
8680
8681 fi
8682 done
8683
8684 for ac_header in tr1/unordered_map
8685 do :
8686 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8687 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8688 cat >>confdefs.h <<_ACEOF
8689 #define HAVE_TR1_UNORDERED_MAP 1
8690 _ACEOF
8691
8692 fi
8693 done
8694
8695 for ac_header in ext/hash_map
8696 do :
8697 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8698 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8699 cat >>confdefs.h <<_ACEOF
8700 #define HAVE_EXT_HASH_MAP 1
8701 _ACEOF
8702
8703 fi
8704 done
8705
8706
8707 ac_ext=c
8708 ac_cpp='$CPP $CPPFLAGS'
8709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8712
8713
8714 # --------
8715 # UNSORTED
8716 # --------
8717
8718
8719 # These libraries may be used by collect2.
8720 # We may need a special search path to get them linked.
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8722 $as_echo_n "checking for collect2 libraries... " >&6; }
8723 if test "${gcc_cv_collect2_libs+set}" = set; then :
8724 $as_echo_n "(cached) " >&6
8725 else
8726 save_LIBS="$LIBS"
8727 for libs in '' -lld -lmld \
8728 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8729 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8730 do
8731 LIBS="$libs"
8732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8733 /* end confdefs.h. */
8734
8735 /* Override any GCC internal prototype to avoid an error.
8736 Use char because int might match the return type of a GCC
8737 builtin and then its argument prototype would still apply. */
8738 #ifdef __cplusplus
8739 extern "C"
8740 #endif
8741 char ldopen ();
8742 int
8743 main ()
8744 {
8745 return ldopen ();
8746 ;
8747 return 0;
8748 }
8749 _ACEOF
8750 if ac_fn_c_try_link "$LINENO"; then :
8751 gcc_cv_collect2_libs="$libs"; break
8752 fi
8753 rm -f core conftest.err conftest.$ac_objext \
8754 conftest$ac_exeext conftest.$ac_ext
8755 done
8756 LIBS="$save_LIBS"
8757 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8758 fi
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8760 $as_echo "$gcc_cv_collect2_libs" >&6; }
8761 case $gcc_cv_collect2_libs in
8762 "none required") ;;
8763 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8764 esac
8765
8766
8767 # When building Ada code on Alpha, we need exc_resume which is usually in
8768 # -lexc. So test for it.
8769 save_LIBS="$LIBS"
8770 LIBS=
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8772 $as_echo_n "checking for library containing exc_resume... " >&6; }
8773 if test "${ac_cv_search_exc_resume+set}" = set; then :
8774 $as_echo_n "(cached) " >&6
8775 else
8776 ac_func_search_save_LIBS=$LIBS
8777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778 /* end confdefs.h. */
8779
8780 /* Override any GCC internal prototype to avoid an error.
8781 Use char because int might match the return type of a GCC
8782 builtin and then its argument prototype would still apply. */
8783 #ifdef __cplusplus
8784 extern "C"
8785 #endif
8786 char exc_resume ();
8787 int
8788 main ()
8789 {
8790 return exc_resume ();
8791 ;
8792 return 0;
8793 }
8794 _ACEOF
8795 for ac_lib in '' exc; do
8796 if test -z "$ac_lib"; then
8797 ac_res="none required"
8798 else
8799 ac_res=-l$ac_lib
8800 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8801 fi
8802 if ac_fn_c_try_link "$LINENO"; then :
8803 ac_cv_search_exc_resume=$ac_res
8804 fi
8805 rm -f core conftest.err conftest.$ac_objext \
8806 conftest$ac_exeext
8807 if test "${ac_cv_search_exc_resume+set}" = set; then :
8808 break
8809 fi
8810 done
8811 if test "${ac_cv_search_exc_resume+set}" = set; then :
8812
8813 else
8814 ac_cv_search_exc_resume=no
8815 fi
8816 rm conftest.$ac_ext
8817 LIBS=$ac_func_search_save_LIBS
8818 fi
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8820 $as_echo "$ac_cv_search_exc_resume" >&6; }
8821 ac_res=$ac_cv_search_exc_resume
8822 if test "$ac_res" != no; then :
8823 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8824
8825 fi
8826
8827 GNAT_LIBEXC="$LIBS"
8828 LIBS="$save_LIBS"
8829
8830
8831 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8832 save_LIBS="$LIBS"
8833 LIBS=
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8835 $as_echo_n "checking for library containing kstat_open... " >&6; }
8836 if test "${ac_cv_search_kstat_open+set}" = set; then :
8837 $as_echo_n "(cached) " >&6
8838 else
8839 ac_func_search_save_LIBS=$LIBS
8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8842
8843 /* Override any GCC internal prototype to avoid an error.
8844 Use char because int might match the return type of a GCC
8845 builtin and then its argument prototype would still apply. */
8846 #ifdef __cplusplus
8847 extern "C"
8848 #endif
8849 char kstat_open ();
8850 int
8851 main ()
8852 {
8853 return kstat_open ();
8854 ;
8855 return 0;
8856 }
8857 _ACEOF
8858 for ac_lib in '' kstat; do
8859 if test -z "$ac_lib"; then
8860 ac_res="none required"
8861 else
8862 ac_res=-l$ac_lib
8863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8864 fi
8865 if ac_fn_c_try_link "$LINENO"; then :
8866 ac_cv_search_kstat_open=$ac_res
8867 fi
8868 rm -f core conftest.err conftest.$ac_objext \
8869 conftest$ac_exeext
8870 if test "${ac_cv_search_kstat_open+set}" = set; then :
8871 break
8872 fi
8873 done
8874 if test "${ac_cv_search_kstat_open+set}" = set; then :
8875
8876 else
8877 ac_cv_search_kstat_open=no
8878 fi
8879 rm conftest.$ac_ext
8880 LIBS=$ac_func_search_save_LIBS
8881 fi
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8883 $as_echo "$ac_cv_search_kstat_open" >&6; }
8884 ac_res=$ac_cv_search_kstat_open
8885 if test "$ac_res" != no; then :
8886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8887
8888 fi
8889
8890 EXTRA_GCC_LIBS="$LIBS"
8891 LIBS="$save_LIBS"
8892
8893
8894 # Some systems put ldexp and frexp in libm instead of libc; assume
8895 # they're both in the same place. jcf-dump needs them.
8896 save_LIBS="$LIBS"
8897 LIBS=
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8899 $as_echo_n "checking for library containing ldexp... " >&6; }
8900 if test "${ac_cv_search_ldexp+set}" = set; then :
8901 $as_echo_n "(cached) " >&6
8902 else
8903 ac_func_search_save_LIBS=$LIBS
8904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8905 /* end confdefs.h. */
8906
8907 /* Override any GCC internal prototype to avoid an error.
8908 Use char because int might match the return type of a GCC
8909 builtin and then its argument prototype would still apply. */
8910 #ifdef __cplusplus
8911 extern "C"
8912 #endif
8913 char ldexp ();
8914 int
8915 main ()
8916 {
8917 return ldexp ();
8918 ;
8919 return 0;
8920 }
8921 _ACEOF
8922 for ac_lib in '' m; do
8923 if test -z "$ac_lib"; then
8924 ac_res="none required"
8925 else
8926 ac_res=-l$ac_lib
8927 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8928 fi
8929 if ac_fn_c_try_link "$LINENO"; then :
8930 ac_cv_search_ldexp=$ac_res
8931 fi
8932 rm -f core conftest.err conftest.$ac_objext \
8933 conftest$ac_exeext
8934 if test "${ac_cv_search_ldexp+set}" = set; then :
8935 break
8936 fi
8937 done
8938 if test "${ac_cv_search_ldexp+set}" = set; then :
8939
8940 else
8941 ac_cv_search_ldexp=no
8942 fi
8943 rm conftest.$ac_ext
8944 LIBS=$ac_func_search_save_LIBS
8945 fi
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8947 $as_echo "$ac_cv_search_ldexp" >&6; }
8948 ac_res=$ac_cv_search_ldexp
8949 if test "$ac_res" != no; then :
8950 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8951
8952 fi
8953
8954 LDEXP_LIB="$LIBS"
8955 LIBS="$save_LIBS"
8956
8957
8958 # Use <inttypes.h> only if it exists,
8959 # doesn't clash with <sys/types.h>, and declares intmax_t.
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8961 $as_echo_n "checking for inttypes.h... " >&6; }
8962 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8963 $as_echo_n "(cached) " >&6
8964 else
8965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966 /* end confdefs.h. */
8967 #include <sys/types.h>
8968 #include <inttypes.h>
8969 int
8970 main ()
8971 {
8972 intmax_t i = -1;
8973 ;
8974 return 0;
8975 }
8976 _ACEOF
8977 if ac_fn_c_try_compile "$LINENO"; then :
8978 gcc_cv_header_inttypes_h=yes
8979 else
8980 gcc_cv_header_inttypes_h=no
8981 fi
8982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8983 fi
8984
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8986 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8987 if test $gcc_cv_header_inttypes_h = yes; then
8988
8989 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8990
8991 fi
8992
8993
8994
8995 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8996 sysconf strsignal getrusage nl_langinfo \
8997 gettimeofday mbstowcs wcswidth mmap setlocale \
8998 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
8999 do :
9000 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9001 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9002 eval as_val=\$$as_ac_var
9003 if test "x$as_val" = x""yes; then :
9004 cat >>confdefs.h <<_ACEOF
9005 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9006 _ACEOF
9007
9008 fi
9009 done
9010
9011
9012 if test x$ac_cv_func_mbstowcs = xyes; then
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9014 $as_echo_n "checking whether mbstowcs works... " >&6; }
9015 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9016 $as_echo_n "(cached) " >&6
9017 else
9018 if test "$cross_compiling" = yes; then :
9019 gcc_cv_func_mbstowcs_works=yes
9020 else
9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022 /* end confdefs.h. */
9023 #include <stdlib.h>
9024 int main()
9025 {
9026 mbstowcs(0, "", 0);
9027 return 0;
9028 }
9029 _ACEOF
9030 if ac_fn_c_try_run "$LINENO"; then :
9031 gcc_cv_func_mbstowcs_works=yes
9032 else
9033 gcc_cv_func_mbstowcs_works=no
9034 fi
9035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9036 conftest.$ac_objext conftest.beam conftest.$ac_ext
9037 fi
9038
9039 fi
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9041 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9042 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9043
9044 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9045
9046 fi
9047 fi
9048
9049 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9050 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9051
9052 else
9053
9054 cat >>confdefs.h <<_ACEOF
9055 #define ssize_t int
9056 _ACEOF
9057
9058 fi
9059
9060 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9061 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9062
9063 else
9064
9065 cat >>confdefs.h <<_ACEOF
9066 #define caddr_t char *
9067 _ACEOF
9068
9069 fi
9070
9071
9072
9073 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9074 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9075 gcc_header_sys_mman_h=yes
9076 else
9077 gcc_header_sys_mman_h=no
9078 fi
9079
9080 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9081 if test "x$ac_cv_func_mmap" = x""yes; then :
9082 gcc_func_mmap=yes
9083 else
9084 gcc_func_mmap=no
9085 fi
9086
9087 if test "$gcc_header_sys_mman_h" != yes \
9088 || test "$gcc_func_mmap" != yes; then
9089 gcc_cv_func_mmap_file=no
9090 gcc_cv_func_mmap_dev_zero=no
9091 gcc_cv_func_mmap_anon=no
9092 else
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9094 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9095 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9096 $as_echo_n "(cached) " >&6
9097 else
9098 # Add a system to this blacklist if
9099 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9100 # memory area containing the same data that you'd get if you applied
9101 # read() to the same fd. The only system known to have a problem here
9102 # is VMS, where text files have record structure.
9103 case "$host_os" in
9104 vms* | ultrix*)
9105 gcc_cv_func_mmap_file=no ;;
9106 *)
9107 gcc_cv_func_mmap_file=yes;;
9108 esac
9109 fi
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9111 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9113 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9114 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9115 $as_echo_n "(cached) " >&6
9116 else
9117 # Add a system to this blacklist if it has mmap() but /dev/zero
9118 # does not exist, or if mmapping /dev/zero does not give anonymous
9119 # zeroed pages with both the following properties:
9120 # 1. If you map N consecutive pages in with one call, and then
9121 # unmap any subset of those pages, the pages that were not
9122 # explicitly unmapped remain accessible.
9123 # 2. If you map two adjacent blocks of memory and then unmap them
9124 # both at once, they must both go away.
9125 # Systems known to be in this category are Windows (all variants),
9126 # VMS, and Darwin.
9127 case "$host_os" in
9128 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9129 gcc_cv_func_mmap_dev_zero=no ;;
9130 *)
9131 gcc_cv_func_mmap_dev_zero=yes;;
9132 esac
9133 fi
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9135 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9136
9137 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9139 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9140 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9141 $as_echo_n "(cached) " >&6
9142 else
9143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144 /* end confdefs.h. */
9145 #include <sys/types.h>
9146 #include <sys/mman.h>
9147 #include <unistd.h>
9148
9149 #ifndef MAP_ANONYMOUS
9150 #define MAP_ANONYMOUS MAP_ANON
9151 #endif
9152
9153 int
9154 main ()
9155 {
9156 int n = MAP_ANONYMOUS;
9157 ;
9158 return 0;
9159 }
9160 _ACEOF
9161 if ac_fn_c_try_compile "$LINENO"; then :
9162 gcc_cv_decl_map_anon=yes
9163 else
9164 gcc_cv_decl_map_anon=no
9165 fi
9166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9167 fi
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9169 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9170
9171 if test $gcc_cv_decl_map_anon = no; then
9172 gcc_cv_func_mmap_anon=no
9173 else
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9175 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9176 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9177 $as_echo_n "(cached) " >&6
9178 else
9179 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9180 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9181 # doesn't give anonymous zeroed pages with the same properties listed
9182 # above for use of /dev/zero.
9183 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9184 case "$host_os" in
9185 vms* | cygwin* | pe | mingw* | sco* | udk* )
9186 gcc_cv_func_mmap_anon=no ;;
9187 *)
9188 gcc_cv_func_mmap_anon=yes;;
9189 esac
9190 fi
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9192 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9193 fi
9194 fi
9195
9196 if test $gcc_cv_func_mmap_file = yes; then
9197
9198 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9199
9200 fi
9201 if test $gcc_cv_func_mmap_dev_zero = yes; then
9202
9203 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9204
9205 fi
9206 if test $gcc_cv_func_mmap_anon = yes; then
9207
9208 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9209
9210 fi
9211
9212
9213 case "${host}" in
9214 *-*-*vms*)
9215 # Under VMS, vfork works very differently than on Unix. The standard test
9216 # won't work, and it isn't easily adaptable. It makes more sense to
9217 # just force it.
9218 ac_cv_func_vfork_works=yes
9219 ;;
9220 esac
9221 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9222 if test "x$ac_cv_type_pid_t" = x""yes; then :
9223
9224 else
9225
9226 cat >>confdefs.h <<_ACEOF
9227 #define pid_t int
9228 _ACEOF
9229
9230 fi
9231
9232 for ac_header in vfork.h
9233 do :
9234 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9235 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9236 cat >>confdefs.h <<_ACEOF
9237 #define HAVE_VFORK_H 1
9238 _ACEOF
9239
9240 fi
9241 done
9242
9243 for ac_func in fork vfork
9244 do :
9245 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9246 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9247 eval as_val=\$$as_ac_var
9248 if test "x$as_val" = x""yes; then :
9249 cat >>confdefs.h <<_ACEOF
9250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9251 _ACEOF
9252
9253 fi
9254 done
9255
9256 if test "x$ac_cv_func_fork" = xyes; then
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9258 $as_echo_n "checking for working fork... " >&6; }
9259 if test "${ac_cv_func_fork_works+set}" = set; then :
9260 $as_echo_n "(cached) " >&6
9261 else
9262 if test "$cross_compiling" = yes; then :
9263 ac_cv_func_fork_works=cross
9264 else
9265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9266 /* end confdefs.h. */
9267 $ac_includes_default
9268 int
9269 main ()
9270 {
9271
9272 /* By Ruediger Kuhlmann. */
9273 return fork () < 0;
9274
9275 ;
9276 return 0;
9277 }
9278 _ACEOF
9279 if ac_fn_c_try_run "$LINENO"; then :
9280 ac_cv_func_fork_works=yes
9281 else
9282 ac_cv_func_fork_works=no
9283 fi
9284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9285 conftest.$ac_objext conftest.beam conftest.$ac_ext
9286 fi
9287
9288 fi
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9290 $as_echo "$ac_cv_func_fork_works" >&6; }
9291
9292 else
9293 ac_cv_func_fork_works=$ac_cv_func_fork
9294 fi
9295 if test "x$ac_cv_func_fork_works" = xcross; then
9296 case $host in
9297 *-*-amigaos* | *-*-msdosdjgpp*)
9298 # Override, as these systems have only a dummy fork() stub
9299 ac_cv_func_fork_works=no
9300 ;;
9301 *)
9302 ac_cv_func_fork_works=yes
9303 ;;
9304 esac
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9306 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9307 fi
9308 ac_cv_func_vfork_works=$ac_cv_func_vfork
9309 if test "x$ac_cv_func_vfork" = xyes; then
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9311 $as_echo_n "checking for working vfork... " >&6; }
9312 if test "${ac_cv_func_vfork_works+set}" = set; then :
9313 $as_echo_n "(cached) " >&6
9314 else
9315 if test "$cross_compiling" = yes; then :
9316 ac_cv_func_vfork_works=cross
9317 else
9318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319 /* end confdefs.h. */
9320 /* Thanks to Paul Eggert for this test. */
9321 $ac_includes_default
9322 #include <sys/wait.h>
9323 #ifdef HAVE_VFORK_H
9324 # include <vfork.h>
9325 #endif
9326 /* On some sparc systems, changes by the child to local and incoming
9327 argument registers are propagated back to the parent. The compiler
9328 is told about this with #include <vfork.h>, but some compilers
9329 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9330 static variable whose address is put into a register that is
9331 clobbered by the vfork. */
9332 static void
9333 #ifdef __cplusplus
9334 sparc_address_test (int arg)
9335 # else
9336 sparc_address_test (arg) int arg;
9337 #endif
9338 {
9339 static pid_t child;
9340 if (!child) {
9341 child = vfork ();
9342 if (child < 0) {
9343 perror ("vfork");
9344 _exit(2);
9345 }
9346 if (!child) {
9347 arg = getpid();
9348 write(-1, "", 0);
9349 _exit (arg);
9350 }
9351 }
9352 }
9353
9354 int
9355 main ()
9356 {
9357 pid_t parent = getpid ();
9358 pid_t child;
9359
9360 sparc_address_test (0);
9361
9362 child = vfork ();
9363
9364 if (child == 0) {
9365 /* Here is another test for sparc vfork register problems. This
9366 test uses lots of local variables, at least as many local
9367 variables as main has allocated so far including compiler
9368 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9369 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9370 reuse the register of parent for one of the local variables,
9371 since it will think that parent can't possibly be used any more
9372 in this routine. Assigning to the local variable will thus
9373 munge parent in the parent process. */
9374 pid_t
9375 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9376 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9377 /* Convince the compiler that p..p7 are live; otherwise, it might
9378 use the same hardware register for all 8 local variables. */
9379 if (p != p1 || p != p2 || p != p3 || p != p4
9380 || p != p5 || p != p6 || p != p7)
9381 _exit(1);
9382
9383 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9384 from child file descriptors. If the child closes a descriptor
9385 before it execs or exits, this munges the parent's descriptor
9386 as well. Test for this by closing stdout in the child. */
9387 _exit(close(fileno(stdout)) != 0);
9388 } else {
9389 int status;
9390 struct stat st;
9391
9392 while (wait(&status) != child)
9393 ;
9394 return (
9395 /* Was there some problem with vforking? */
9396 child < 0
9397
9398 /* Did the child fail? (This shouldn't happen.) */
9399 || status
9400
9401 /* Did the vfork/compiler bug occur? */
9402 || parent != getpid()
9403
9404 /* Did the file descriptor bug occur? */
9405 || fstat(fileno(stdout), &st) != 0
9406 );
9407 }
9408 }
9409 _ACEOF
9410 if ac_fn_c_try_run "$LINENO"; then :
9411 ac_cv_func_vfork_works=yes
9412 else
9413 ac_cv_func_vfork_works=no
9414 fi
9415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9416 conftest.$ac_objext conftest.beam conftest.$ac_ext
9417 fi
9418
9419 fi
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9421 $as_echo "$ac_cv_func_vfork_works" >&6; }
9422
9423 fi;
9424 if test "x$ac_cv_func_fork_works" = xcross; then
9425 ac_cv_func_vfork_works=$ac_cv_func_vfork
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9427 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9428 fi
9429
9430 if test "x$ac_cv_func_vfork_works" = xyes; then
9431
9432 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9433
9434 else
9435
9436 $as_echo "#define vfork fork" >>confdefs.h
9437
9438 fi
9439 if test "x$ac_cv_func_fork_works" = xyes; then
9440
9441 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9442
9443 fi
9444
9445
9446 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9447 # iconv() prototype.
9448
9449 if test "X$prefix" = "XNONE"; then
9450 acl_final_prefix="$ac_default_prefix"
9451 else
9452 acl_final_prefix="$prefix"
9453 fi
9454 if test "X$exec_prefix" = "XNONE"; then
9455 acl_final_exec_prefix='${prefix}'
9456 else
9457 acl_final_exec_prefix="$exec_prefix"
9458 fi
9459 acl_save_prefix="$prefix"
9460 prefix="$acl_final_prefix"
9461 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9462 prefix="$acl_save_prefix"
9463
9464
9465 # Check whether --with-gnu-ld was given.
9466 if test "${with_gnu_ld+set}" = set; then :
9467 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9468 else
9469 with_gnu_ld=no
9470 fi
9471
9472 # Prepare PATH_SEPARATOR.
9473 # The user is always right.
9474 if test "${PATH_SEPARATOR+set}" != set; then
9475 echo "#! /bin/sh" >conf$$.sh
9476 echo "exit 0" >>conf$$.sh
9477 chmod +x conf$$.sh
9478 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9479 PATH_SEPARATOR=';'
9480 else
9481 PATH_SEPARATOR=:
9482 fi
9483 rm -f conf$$.sh
9484 fi
9485 ac_prog=ld
9486 if test "$GCC" = yes; then
9487 # Check if gcc -print-prog-name=ld gives a path.
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9489 $as_echo_n "checking for ld used by GCC... " >&6; }
9490 case $host in
9491 *-*-mingw*)
9492 # gcc leaves a trailing carriage return which upsets mingw
9493 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9494 *)
9495 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9496 esac
9497 case $ac_prog in
9498 # Accept absolute paths.
9499 [\\/]* | [A-Za-z]:[\\/]*)
9500 re_direlt='/[^/][^/]*/\.\./'
9501 # Canonicalize the path of ld
9502 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9503 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9504 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9505 done
9506 test -z "$LD" && LD="$ac_prog"
9507 ;;
9508 "")
9509 # If it fails, then pretend we aren't using GCC.
9510 ac_prog=ld
9511 ;;
9512 *)
9513 # If it is relative, then search for the first ld in PATH.
9514 with_gnu_ld=unknown
9515 ;;
9516 esac
9517 elif test "$with_gnu_ld" = yes; then
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9519 $as_echo_n "checking for GNU ld... " >&6; }
9520 else
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9522 $as_echo_n "checking for non-GNU ld... " >&6; }
9523 fi
9524 if test "${acl_cv_path_LD+set}" = set; then :
9525 $as_echo_n "(cached) " >&6
9526 else
9527 if test -z "$LD"; then
9528 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9529 for ac_dir in $PATH; do
9530 test -z "$ac_dir" && ac_dir=.
9531 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9532 acl_cv_path_LD="$ac_dir/$ac_prog"
9533 # Check to see if the program is GNU ld. I'd rather use --version,
9534 # but apparently some GNU ld's only accept -v.
9535 # Break only if it was the GNU/non-GNU ld that we prefer.
9536 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9537 test "$with_gnu_ld" != no && break
9538 else
9539 test "$with_gnu_ld" != yes && break
9540 fi
9541 fi
9542 done
9543 IFS="$ac_save_ifs"
9544 else
9545 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9546 fi
9547 fi
9548
9549 LD="$acl_cv_path_LD"
9550 if test -n "$LD"; then
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9552 $as_echo "$LD" >&6; }
9553 else
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9555 $as_echo "no" >&6; }
9556 fi
9557 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9559 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9560 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9561 $as_echo_n "(cached) " >&6
9562 else
9563 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9564 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9565 acl_cv_prog_gnu_ld=yes
9566 else
9567 acl_cv_prog_gnu_ld=no
9568 fi
9569 fi
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9571 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9572 with_gnu_ld=$acl_cv_prog_gnu_ld
9573
9574
9575
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9577 $as_echo_n "checking for shared library run path origin... " >&6; }
9578 if test "${acl_cv_rpath+set}" = set; then :
9579 $as_echo_n "(cached) " >&6
9580 else
9581
9582 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9583 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9584 . ./conftest.sh
9585 rm -f ./conftest.sh
9586 acl_cv_rpath=done
9587
9588 fi
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9590 $as_echo "$acl_cv_rpath" >&6; }
9591 wl="$acl_cv_wl"
9592 libext="$acl_cv_libext"
9593 shlibext="$acl_cv_shlibext"
9594 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9595 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9596 hardcode_direct="$acl_cv_hardcode_direct"
9597 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9598 # Check whether --enable-rpath was given.
9599 if test "${enable_rpath+set}" = set; then :
9600 enableval=$enable_rpath; :
9601 else
9602 enable_rpath=yes
9603 fi
9604
9605
9606
9607
9608
9609
9610
9611
9612 use_additional=yes
9613
9614 acl_save_prefix="$prefix"
9615 prefix="$acl_final_prefix"
9616 acl_save_exec_prefix="$exec_prefix"
9617 exec_prefix="$acl_final_exec_prefix"
9618
9619 eval additional_includedir=\"$includedir\"
9620 eval additional_libdir=\"$libdir\"
9621
9622 exec_prefix="$acl_save_exec_prefix"
9623 prefix="$acl_save_prefix"
9624
9625
9626 # Check whether --with-libiconv-prefix was given.
9627 if test "${with_libiconv_prefix+set}" = set; then :
9628 withval=$with_libiconv_prefix;
9629 if test "X$withval" = "Xno"; then
9630 use_additional=no
9631 else
9632 if test "X$withval" = "X"; then
9633
9634 acl_save_prefix="$prefix"
9635 prefix="$acl_final_prefix"
9636 acl_save_exec_prefix="$exec_prefix"
9637 exec_prefix="$acl_final_exec_prefix"
9638
9639 eval additional_includedir=\"$includedir\"
9640 eval additional_libdir=\"$libdir\"
9641
9642 exec_prefix="$acl_save_exec_prefix"
9643 prefix="$acl_save_prefix"
9644
9645 else
9646 additional_includedir="$withval/include"
9647 additional_libdir="$withval/lib"
9648 fi
9649 fi
9650
9651 fi
9652
9653 LIBICONV=
9654 LTLIBICONV=
9655 INCICONV=
9656 rpathdirs=
9657 ltrpathdirs=
9658 names_already_handled=
9659 names_next_round='iconv '
9660 while test -n "$names_next_round"; do
9661 names_this_round="$names_next_round"
9662 names_next_round=
9663 for name in $names_this_round; do
9664 already_handled=
9665 for n in $names_already_handled; do
9666 if test "$n" = "$name"; then
9667 already_handled=yes
9668 break
9669 fi
9670 done
9671 if test -z "$already_handled"; then
9672 names_already_handled="$names_already_handled $name"
9673 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9674 eval value=\"\$HAVE_LIB$uppername\"
9675 if test -n "$value"; then
9676 if test "$value" = yes; then
9677 eval value=\"\$LIB$uppername\"
9678 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9679 eval value=\"\$LTLIB$uppername\"
9680 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9681 else
9682 :
9683 fi
9684 else
9685 found_dir=
9686 found_la=
9687 found_so=
9688 found_a=
9689 if test $use_additional = yes; then
9690 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9691 found_dir="$additional_libdir"
9692 found_so="$additional_libdir/lib$name.$shlibext"
9693 if test -f "$additional_libdir/lib$name.la"; then
9694 found_la="$additional_libdir/lib$name.la"
9695 fi
9696 else
9697 if test -f "$additional_libdir/lib$name.$libext"; then
9698 found_dir="$additional_libdir"
9699 found_a="$additional_libdir/lib$name.$libext"
9700 if test -f "$additional_libdir/lib$name.la"; then
9701 found_la="$additional_libdir/lib$name.la"
9702 fi
9703 fi
9704 fi
9705 fi
9706 if test "X$found_dir" = "X"; then
9707 for x in $LDFLAGS $LTLIBICONV; do
9708
9709 acl_save_prefix="$prefix"
9710 prefix="$acl_final_prefix"
9711 acl_save_exec_prefix="$exec_prefix"
9712 exec_prefix="$acl_final_exec_prefix"
9713 eval x=\"$x\"
9714 exec_prefix="$acl_save_exec_prefix"
9715 prefix="$acl_save_prefix"
9716
9717 case "$x" in
9718 -L*)
9719 dir=`echo "X$x" | sed -e 's/^X-L//'`
9720 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9721 found_dir="$dir"
9722 found_so="$dir/lib$name.$shlibext"
9723 if test -f "$dir/lib$name.la"; then
9724 found_la="$dir/lib$name.la"
9725 fi
9726 else
9727 if test -f "$dir/lib$name.$libext"; then
9728 found_dir="$dir"
9729 found_a="$dir/lib$name.$libext"
9730 if test -f "$dir/lib$name.la"; then
9731 found_la="$dir/lib$name.la"
9732 fi
9733 fi
9734 fi
9735 ;;
9736 esac
9737 if test "X$found_dir" != "X"; then
9738 break
9739 fi
9740 done
9741 fi
9742 if test "X$found_dir" != "X"; then
9743 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9744 if test "X$found_so" != "X"; then
9745 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9746 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9747 else
9748 haveit=
9749 for x in $ltrpathdirs; do
9750 if test "X$x" = "X$found_dir"; then
9751 haveit=yes
9752 break
9753 fi
9754 done
9755 if test -z "$haveit"; then
9756 ltrpathdirs="$ltrpathdirs $found_dir"
9757 fi
9758 if test "$hardcode_direct" = yes; then
9759 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9760 else
9761 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9762 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9763 haveit=
9764 for x in $rpathdirs; do
9765 if test "X$x" = "X$found_dir"; then
9766 haveit=yes
9767 break
9768 fi
9769 done
9770 if test -z "$haveit"; then
9771 rpathdirs="$rpathdirs $found_dir"
9772 fi
9773 else
9774 haveit=
9775 for x in $LDFLAGS $LIBICONV; do
9776
9777 acl_save_prefix="$prefix"
9778 prefix="$acl_final_prefix"
9779 acl_save_exec_prefix="$exec_prefix"
9780 exec_prefix="$acl_final_exec_prefix"
9781 eval x=\"$x\"
9782 exec_prefix="$acl_save_exec_prefix"
9783 prefix="$acl_save_prefix"
9784
9785 if test "X$x" = "X-L$found_dir"; then
9786 haveit=yes
9787 break
9788 fi
9789 done
9790 if test -z "$haveit"; then
9791 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9792 fi
9793 if test "$hardcode_minus_L" != no; then
9794 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9795 else
9796 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9797 fi
9798 fi
9799 fi
9800 fi
9801 else
9802 if test "X$found_a" != "X"; then
9803 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9804 else
9805 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9806 fi
9807 fi
9808 additional_includedir=
9809 case "$found_dir" in
9810 */lib | */lib/)
9811 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9812 additional_includedir="$basedir/include"
9813 ;;
9814 esac
9815 if test "X$additional_includedir" != "X"; then
9816 if test "X$additional_includedir" != "X/usr/include"; then
9817 haveit=
9818 if test "X$additional_includedir" = "X/usr/local/include"; then
9819 if test -n "$GCC"; then
9820 case $host_os in
9821 linux*) haveit=yes;;
9822 esac
9823 fi
9824 fi
9825 if test -z "$haveit"; then
9826 for x in $CPPFLAGS $INCICONV; do
9827
9828 acl_save_prefix="$prefix"
9829 prefix="$acl_final_prefix"
9830 acl_save_exec_prefix="$exec_prefix"
9831 exec_prefix="$acl_final_exec_prefix"
9832 eval x=\"$x\"
9833 exec_prefix="$acl_save_exec_prefix"
9834 prefix="$acl_save_prefix"
9835
9836 if test "X$x" = "X-I$additional_includedir"; then
9837 haveit=yes
9838 break
9839 fi
9840 done
9841 if test -z "$haveit"; then
9842 if test -d "$additional_includedir"; then
9843 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9844 fi
9845 fi
9846 fi
9847 fi
9848 fi
9849 if test -n "$found_la"; then
9850 save_libdir="$libdir"
9851 case "$found_la" in
9852 */* | *\\*) . "$found_la" ;;
9853 *) . "./$found_la" ;;
9854 esac
9855 libdir="$save_libdir"
9856 for dep in $dependency_libs; do
9857 case "$dep" in
9858 -L*)
9859 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9860 if test "X$additional_libdir" != "X/usr/lib"; then
9861 haveit=
9862 if test "X$additional_libdir" = "X/usr/local/lib"; then
9863 if test -n "$GCC"; then
9864 case $host_os in
9865 linux*) haveit=yes;;
9866 esac
9867 fi
9868 fi
9869 if test -z "$haveit"; then
9870 haveit=
9871 for x in $LDFLAGS $LIBICONV; do
9872
9873 acl_save_prefix="$prefix"
9874 prefix="$acl_final_prefix"
9875 acl_save_exec_prefix="$exec_prefix"
9876 exec_prefix="$acl_final_exec_prefix"
9877 eval x=\"$x\"
9878 exec_prefix="$acl_save_exec_prefix"
9879 prefix="$acl_save_prefix"
9880
9881 if test "X$x" = "X-L$additional_libdir"; then
9882 haveit=yes
9883 break
9884 fi
9885 done
9886 if test -z "$haveit"; then
9887 if test -d "$additional_libdir"; then
9888 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9889 fi
9890 fi
9891 haveit=
9892 for x in $LDFLAGS $LTLIBICONV; do
9893
9894 acl_save_prefix="$prefix"
9895 prefix="$acl_final_prefix"
9896 acl_save_exec_prefix="$exec_prefix"
9897 exec_prefix="$acl_final_exec_prefix"
9898 eval x=\"$x\"
9899 exec_prefix="$acl_save_exec_prefix"
9900 prefix="$acl_save_prefix"
9901
9902 if test "X$x" = "X-L$additional_libdir"; then
9903 haveit=yes
9904 break
9905 fi
9906 done
9907 if test -z "$haveit"; then
9908 if test -d "$additional_libdir"; then
9909 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9910 fi
9911 fi
9912 fi
9913 fi
9914 ;;
9915 -R*)
9916 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9917 if test "$enable_rpath" != no; then
9918 haveit=
9919 for x in $rpathdirs; do
9920 if test "X$x" = "X$dir"; then
9921 haveit=yes
9922 break
9923 fi
9924 done
9925 if test -z "$haveit"; then
9926 rpathdirs="$rpathdirs $dir"
9927 fi
9928 haveit=
9929 for x in $ltrpathdirs; do
9930 if test "X$x" = "X$dir"; then
9931 haveit=yes
9932 break
9933 fi
9934 done
9935 if test -z "$haveit"; then
9936 ltrpathdirs="$ltrpathdirs $dir"
9937 fi
9938 fi
9939 ;;
9940 -l*)
9941 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9942 ;;
9943 *.la)
9944 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9945 ;;
9946 *)
9947 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9948 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9949 ;;
9950 esac
9951 done
9952 fi
9953 else
9954 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9955 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9956 fi
9957 fi
9958 fi
9959 done
9960 done
9961 if test "X$rpathdirs" != "X"; then
9962 if test -n "$hardcode_libdir_separator"; then
9963 alldirs=
9964 for found_dir in $rpathdirs; do
9965 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9966 done
9967 acl_save_libdir="$libdir"
9968 libdir="$alldirs"
9969 eval flag=\"$hardcode_libdir_flag_spec\"
9970 libdir="$acl_save_libdir"
9971 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9972 else
9973 for found_dir in $rpathdirs; do
9974 acl_save_libdir="$libdir"
9975 libdir="$found_dir"
9976 eval flag=\"$hardcode_libdir_flag_spec\"
9977 libdir="$acl_save_libdir"
9978 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9979 done
9980 fi
9981 fi
9982 if test "X$ltrpathdirs" != "X"; then
9983 for found_dir in $ltrpathdirs; do
9984 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9985 done
9986 fi
9987
9988
9989 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
9990 ac_ext=cpp
9991 ac_cpp='$CXXCPP $CPPFLAGS'
9992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9995
9996
9997
9998
9999
10000
10001 am_save_CPPFLAGS="$CPPFLAGS"
10002
10003 for element in $INCICONV; do
10004 haveit=
10005 for x in $CPPFLAGS; do
10006
10007 acl_save_prefix="$prefix"
10008 prefix="$acl_final_prefix"
10009 acl_save_exec_prefix="$exec_prefix"
10010 exec_prefix="$acl_final_exec_prefix"
10011 eval x=\"$x\"
10012 exec_prefix="$acl_save_exec_prefix"
10013 prefix="$acl_save_prefix"
10014
10015 if test "X$x" = "X$element"; then
10016 haveit=yes
10017 break
10018 fi
10019 done
10020 if test -z "$haveit"; then
10021 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10022 fi
10023 done
10024
10025
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10027 $as_echo_n "checking for iconv... " >&6; }
10028 if test "${am_cv_func_iconv+set}" = set; then :
10029 $as_echo_n "(cached) " >&6
10030 else
10031
10032 am_cv_func_iconv="no, consider installing GNU libiconv"
10033 am_cv_lib_iconv=no
10034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10035 /* end confdefs.h. */
10036 #include <stdlib.h>
10037 #include <iconv.h>
10038 int
10039 main ()
10040 {
10041 iconv_t cd = iconv_open("","");
10042 iconv(cd,NULL,NULL,NULL,NULL);
10043 iconv_close(cd);
10044 ;
10045 return 0;
10046 }
10047 _ACEOF
10048 if ac_fn_cxx_try_link "$LINENO"; then :
10049 am_cv_func_iconv=yes
10050 fi
10051 rm -f core conftest.err conftest.$ac_objext \
10052 conftest$ac_exeext conftest.$ac_ext
10053 if test "$am_cv_func_iconv" != yes; then
10054 am_save_LIBS="$LIBS"
10055 LIBS="$LIBS $LIBICONV"
10056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10057 /* end confdefs.h. */
10058 #include <stdlib.h>
10059 #include <iconv.h>
10060 int
10061 main ()
10062 {
10063 iconv_t cd = iconv_open("","");
10064 iconv(cd,NULL,NULL,NULL,NULL);
10065 iconv_close(cd);
10066 ;
10067 return 0;
10068 }
10069 _ACEOF
10070 if ac_fn_cxx_try_link "$LINENO"; then :
10071 am_cv_lib_iconv=yes
10072 am_cv_func_iconv=yes
10073 fi
10074 rm -f core conftest.err conftest.$ac_objext \
10075 conftest$ac_exeext conftest.$ac_ext
10076 LIBS="$am_save_LIBS"
10077 fi
10078
10079 fi
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10081 $as_echo "$am_cv_func_iconv" >&6; }
10082 if test "$am_cv_func_iconv" = yes; then
10083
10084 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10085
10086 fi
10087 if test "$am_cv_lib_iconv" = yes; then
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10089 $as_echo_n "checking how to link with libiconv... " >&6; }
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10091 $as_echo "$LIBICONV" >&6; }
10092 else
10093 CPPFLAGS="$am_save_CPPFLAGS"
10094 LIBICONV=
10095 LTLIBICONV=
10096 fi
10097
10098
10099
10100 if test "$am_cv_func_iconv" = yes; then
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10102 $as_echo_n "checking for iconv declaration... " >&6; }
10103 if test "${am_cv_proto_iconv+set}" = set; then :
10104 $as_echo_n "(cached) " >&6
10105 else
10106
10107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108 /* end confdefs.h. */
10109
10110 #include <stdlib.h>
10111 #include <iconv.h>
10112 extern
10113 #ifdef __cplusplus
10114 "C"
10115 #endif
10116 #if defined(__STDC__) || defined(__cplusplus)
10117 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10118 #else
10119 size_t iconv();
10120 #endif
10121
10122 int
10123 main ()
10124 {
10125
10126 ;
10127 return 0;
10128 }
10129 _ACEOF
10130 if ac_fn_cxx_try_compile "$LINENO"; then :
10131 am_cv_proto_iconv_arg1=""
10132 else
10133 am_cv_proto_iconv_arg1="const"
10134 fi
10135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10136 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);"
10137 fi
10138
10139 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10141 }$am_cv_proto_iconv" >&5
10142 $as_echo "${ac_t:-
10143 }$am_cv_proto_iconv" >&6; }
10144
10145 cat >>confdefs.h <<_ACEOF
10146 #define ICONV_CONST $am_cv_proto_iconv_arg1
10147 _ACEOF
10148
10149 fi
10150
10151 ac_ext=c
10152 ac_cpp='$CPP $CPPFLAGS'
10153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10156
10157 else
10158
10159
10160
10161
10162
10163 am_save_CPPFLAGS="$CPPFLAGS"
10164
10165 for element in $INCICONV; do
10166 haveit=
10167 for x in $CPPFLAGS; do
10168
10169 acl_save_prefix="$prefix"
10170 prefix="$acl_final_prefix"
10171 acl_save_exec_prefix="$exec_prefix"
10172 exec_prefix="$acl_final_exec_prefix"
10173 eval x=\"$x\"
10174 exec_prefix="$acl_save_exec_prefix"
10175 prefix="$acl_save_prefix"
10176
10177 if test "X$x" = "X$element"; then
10178 haveit=yes
10179 break
10180 fi
10181 done
10182 if test -z "$haveit"; then
10183 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10184 fi
10185 done
10186
10187
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10189 $as_echo_n "checking for iconv... " >&6; }
10190 if test "${am_cv_func_iconv+set}" = set; then :
10191 $as_echo_n "(cached) " >&6
10192 else
10193
10194 am_cv_func_iconv="no, consider installing GNU libiconv"
10195 am_cv_lib_iconv=no
10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10197 /* end confdefs.h. */
10198 #include <stdlib.h>
10199 #include <iconv.h>
10200 int
10201 main ()
10202 {
10203 iconv_t cd = iconv_open("","");
10204 iconv(cd,NULL,NULL,NULL,NULL);
10205 iconv_close(cd);
10206 ;
10207 return 0;
10208 }
10209 _ACEOF
10210 if ac_fn_c_try_link "$LINENO"; then :
10211 am_cv_func_iconv=yes
10212 fi
10213 rm -f core conftest.err conftest.$ac_objext \
10214 conftest$ac_exeext conftest.$ac_ext
10215 if test "$am_cv_func_iconv" != yes; then
10216 am_save_LIBS="$LIBS"
10217 LIBS="$LIBS $LIBICONV"
10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219 /* end confdefs.h. */
10220 #include <stdlib.h>
10221 #include <iconv.h>
10222 int
10223 main ()
10224 {
10225 iconv_t cd = iconv_open("","");
10226 iconv(cd,NULL,NULL,NULL,NULL);
10227 iconv_close(cd);
10228 ;
10229 return 0;
10230 }
10231 _ACEOF
10232 if ac_fn_c_try_link "$LINENO"; then :
10233 am_cv_lib_iconv=yes
10234 am_cv_func_iconv=yes
10235 fi
10236 rm -f core conftest.err conftest.$ac_objext \
10237 conftest$ac_exeext conftest.$ac_ext
10238 LIBS="$am_save_LIBS"
10239 fi
10240
10241 fi
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10243 $as_echo "$am_cv_func_iconv" >&6; }
10244 if test "$am_cv_func_iconv" = yes; then
10245
10246 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10247
10248 fi
10249 if test "$am_cv_lib_iconv" = yes; then
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10251 $as_echo_n "checking how to link with libiconv... " >&6; }
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10253 $as_echo "$LIBICONV" >&6; }
10254 else
10255 CPPFLAGS="$am_save_CPPFLAGS"
10256 LIBICONV=
10257 LTLIBICONV=
10258 fi
10259
10260
10261
10262 if test "$am_cv_func_iconv" = yes; then
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10264 $as_echo_n "checking for iconv declaration... " >&6; }
10265 if test "${am_cv_proto_iconv+set}" = set; then :
10266 $as_echo_n "(cached) " >&6
10267 else
10268
10269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270 /* end confdefs.h. */
10271
10272 #include <stdlib.h>
10273 #include <iconv.h>
10274 extern
10275 #ifdef __cplusplus
10276 "C"
10277 #endif
10278 #if defined(__STDC__) || defined(__cplusplus)
10279 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10280 #else
10281 size_t iconv();
10282 #endif
10283
10284 int
10285 main ()
10286 {
10287
10288 ;
10289 return 0;
10290 }
10291 _ACEOF
10292 if ac_fn_c_try_compile "$LINENO"; then :
10293 am_cv_proto_iconv_arg1=""
10294 else
10295 am_cv_proto_iconv_arg1="const"
10296 fi
10297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10298 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);"
10299 fi
10300
10301 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10303 }$am_cv_proto_iconv" >&5
10304 $as_echo "${ac_t:-
10305 }$am_cv_proto_iconv" >&6; }
10306
10307 cat >>confdefs.h <<_ACEOF
10308 #define ICONV_CONST $am_cv_proto_iconv_arg1
10309 _ACEOF
10310
10311 fi
10312
10313 fi
10314
10315 # Until we have in-tree GNU iconv:
10316 LIBICONV_DEP=
10317
10318
10319
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10321 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10322 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10323 $as_echo_n "(cached) " >&6
10324 else
10325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h. */
10327 #include <locale.h>
10328 int
10329 main ()
10330 {
10331 return LC_MESSAGES
10332 ;
10333 return 0;
10334 }
10335 _ACEOF
10336 if ac_fn_c_try_link "$LINENO"; then :
10337 am_cv_val_LC_MESSAGES=yes
10338 else
10339 am_cv_val_LC_MESSAGES=no
10340 fi
10341 rm -f core conftest.err conftest.$ac_objext \
10342 conftest$ac_exeext conftest.$ac_ext
10343 fi
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10345 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10346 if test $am_cv_val_LC_MESSAGES = yes; then
10347
10348 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10349
10350 fi
10351
10352
10353
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10355 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10356 if test "${am_cv_langinfo_codeset+set}" = set; then :
10357 $as_echo_n "(cached) " >&6
10358 else
10359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10360 /* end confdefs.h. */
10361 #include <langinfo.h>
10362 int
10363 main ()
10364 {
10365 char* cs = nl_langinfo(CODESET);
10366 ;
10367 return 0;
10368 }
10369 _ACEOF
10370 if ac_fn_c_try_link "$LINENO"; then :
10371 am_cv_langinfo_codeset=yes
10372 else
10373 am_cv_langinfo_codeset=no
10374 fi
10375 rm -f core conftest.err conftest.$ac_objext \
10376 conftest$ac_exeext conftest.$ac_ext
10377
10378 fi
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10380 $as_echo "$am_cv_langinfo_codeset" >&6; }
10381 if test $am_cv_langinfo_codeset = yes; then
10382
10383 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10384
10385 fi
10386
10387
10388 # We will need to find libiberty.h and ansidecl.h
10389 saved_CFLAGS="$CFLAGS"
10390 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10391 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10392 strsignal strstr strverscmp \
10393 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10394 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
10395 do
10396 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10398 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10399 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10400 $as_echo_n "(cached) " >&6
10401 else
10402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h. */
10404 #undef $ac_tr_decl
10405 #define $ac_tr_decl 1
10406
10407 #include "ansidecl.h"
10408 #include "system.h"
10409
10410 int
10411 main ()
10412 {
10413 #ifndef $ac_func
10414 char *(*pfn) = (char *(*)) $ac_func ;
10415 #endif
10416 ;
10417 return 0;
10418 }
10419 _ACEOF
10420 if ac_fn_c_try_compile "$LINENO"; then :
10421 eval "gcc_cv_have_decl_$ac_func=yes"
10422 else
10423 eval "gcc_cv_have_decl_$ac_func=no"
10424 fi
10425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10426 fi
10427
10428 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10430 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10431 #define $ac_tr_decl 1
10432 _ACEOF
10433
10434 else
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10436 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10437 #define $ac_tr_decl 0
10438 _ACEOF
10439
10440 fi
10441
10442 done
10443
10444
10445 for ac_func in getrlimit setrlimit getrusage
10446 do
10447 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10449 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10450 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10451 $as_echo_n "(cached) " >&6
10452 else
10453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10454 /* end confdefs.h. */
10455 #undef $ac_tr_decl
10456 #define $ac_tr_decl 1
10457
10458 #include "ansidecl.h"
10459 #include "system.h"
10460 #ifdef HAVE_SYS_RESOURCE_H
10461 #include <sys/resource.h>
10462 #endif
10463
10464
10465 int
10466 main ()
10467 {
10468 #ifndef $ac_func
10469 char *(*pfn) = (char *(*)) $ac_func ;
10470 #endif
10471 ;
10472 return 0;
10473 }
10474 _ACEOF
10475 if ac_fn_c_try_compile "$LINENO"; then :
10476 eval "gcc_cv_have_decl_$ac_func=yes"
10477 else
10478 eval "gcc_cv_have_decl_$ac_func=no"
10479 fi
10480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10481 fi
10482
10483 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10485 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10486 #define $ac_tr_decl 1
10487 _ACEOF
10488
10489 else
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10491 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10492 #define $ac_tr_decl 0
10493 _ACEOF
10494
10495 fi
10496
10497 done
10498
10499
10500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10501 /* end confdefs.h. */
10502
10503 #include "ansidecl.h"
10504 #include "system.h"
10505 #ifdef HAVE_SYS_RESOURCE_H
10506 #include <sys/resource.h>
10507 #endif
10508
10509 int
10510 main ()
10511 {
10512 rlim_t l = 0;
10513 ;
10514 return 0;
10515 }
10516 _ACEOF
10517 if ac_fn_c_try_compile "$LINENO"; then :
10518
10519 else
10520
10521 $as_echo "#define rlim_t long" >>confdefs.h
10522
10523 fi
10524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10525
10526 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10527 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10528 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10529 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10530 for ac_func in ldgetname
10531 do
10532 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10534 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10535 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10536 $as_echo_n "(cached) " >&6
10537 else
10538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10540 #undef $ac_tr_decl
10541 #define $ac_tr_decl 1
10542
10543 #include "ansidecl.h"
10544 #include "system.h"
10545 #ifdef HAVE_LDFCN_H
10546 #undef FREAD
10547 #undef FWRITE
10548 #include <ldfcn.h>
10549 #endif
10550
10551
10552 int
10553 main ()
10554 {
10555 #ifndef $ac_func
10556 char *(*pfn) = (char *(*)) $ac_func ;
10557 #endif
10558 ;
10559 return 0;
10560 }
10561 _ACEOF
10562 if ac_fn_c_try_compile "$LINENO"; then :
10563 eval "gcc_cv_have_decl_$ac_func=yes"
10564 else
10565 eval "gcc_cv_have_decl_$ac_func=no"
10566 fi
10567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10568 fi
10569
10570 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10572 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10573 #define $ac_tr_decl 1
10574 _ACEOF
10575
10576 else
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10578 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10579 #define $ac_tr_decl 0
10580 _ACEOF
10581
10582 fi
10583
10584 done
10585
10586
10587 for ac_func in times
10588 do
10589 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10591 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10592 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10593 $as_echo_n "(cached) " >&6
10594 else
10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596 /* end confdefs.h. */
10597 #undef $ac_tr_decl
10598 #define $ac_tr_decl 1
10599
10600 #include "ansidecl.h"
10601 #include "system.h"
10602 #ifdef HAVE_SYS_TIMES_H
10603 #include <sys/times.h>
10604 #endif
10605
10606
10607 int
10608 main ()
10609 {
10610 #ifndef $ac_func
10611 char *(*pfn) = (char *(*)) $ac_func ;
10612 #endif
10613 ;
10614 return 0;
10615 }
10616 _ACEOF
10617 if ac_fn_c_try_compile "$LINENO"; then :
10618 eval "gcc_cv_have_decl_$ac_func=yes"
10619 else
10620 eval "gcc_cv_have_decl_$ac_func=no"
10621 fi
10622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10623 fi
10624
10625 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10627 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10628 #define $ac_tr_decl 1
10629 _ACEOF
10630
10631 else
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10633 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10634 #define $ac_tr_decl 0
10635 _ACEOF
10636
10637 fi
10638
10639 done
10640
10641
10642 for ac_func in sigaltstack
10643 do
10644 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10646 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10647 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10648 $as_echo_n "(cached) " >&6
10649 else
10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10652 #undef $ac_tr_decl
10653 #define $ac_tr_decl 1
10654
10655 #include "ansidecl.h"
10656 #include "system.h"
10657 #include <signal.h>
10658
10659
10660 int
10661 main ()
10662 {
10663 #ifndef $ac_func
10664 char *(*pfn) = (char *(*)) $ac_func ;
10665 #endif
10666 ;
10667 return 0;
10668 }
10669 _ACEOF
10670 if ac_fn_c_try_compile "$LINENO"; then :
10671 eval "gcc_cv_have_decl_$ac_func=yes"
10672 else
10673 eval "gcc_cv_have_decl_$ac_func=no"
10674 fi
10675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10676 fi
10677
10678 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10680 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10681 #define $ac_tr_decl 1
10682 _ACEOF
10683
10684 else
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10686 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10687 #define $ac_tr_decl 0
10688 _ACEOF
10689
10690 fi
10691
10692 done
10693
10694
10695 # More time-related stuff.
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10697 $as_echo_n "checking for struct tms... " >&6; }
10698 if test "${ac_cv_struct_tms+set}" = set; then :
10699 $as_echo_n "(cached) " >&6
10700 else
10701
10702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10703 /* end confdefs.h. */
10704
10705 #include "ansidecl.h"
10706 #include "system.h"
10707 #ifdef HAVE_SYS_TIMES_H
10708 #include <sys/times.h>
10709 #endif
10710
10711 int
10712 main ()
10713 {
10714 struct tms tms;
10715 ;
10716 return 0;
10717 }
10718 _ACEOF
10719 if ac_fn_c_try_compile "$LINENO"; then :
10720 ac_cv_struct_tms=yes
10721 else
10722 ac_cv_struct_tms=no
10723 fi
10724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10725 fi
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10727 $as_echo "$ac_cv_struct_tms" >&6; }
10728 if test $ac_cv_struct_tms = yes; then
10729
10730 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10731
10732 fi
10733
10734 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10735 # revisit after autoconf 2.50.
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10737 $as_echo_n "checking for clock_t... " >&6; }
10738 if test "${gcc_cv_type_clock_t+set}" = set; then :
10739 $as_echo_n "(cached) " >&6
10740 else
10741
10742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10744
10745 #include "ansidecl.h"
10746 #include "system.h"
10747
10748 int
10749 main ()
10750 {
10751 clock_t x;
10752 ;
10753 return 0;
10754 }
10755 _ACEOF
10756 if ac_fn_c_try_compile "$LINENO"; then :
10757 gcc_cv_type_clock_t=yes
10758 else
10759 gcc_cv_type_clock_t=no
10760 fi
10761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10762 fi
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10764 $as_echo "$gcc_cv_type_clock_t" >&6; }
10765 if test $gcc_cv_type_clock_t = yes; then
10766
10767 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10768
10769 fi
10770
10771 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10772 CFLAGS="$saved_CFLAGS"
10773
10774 # Check whether --enable-initfini-array was given.
10775 if test "${enable_initfini_array+set}" = set; then :
10776 enableval=$enable_initfini_array;
10777 else
10778
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10780 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10781 if test "${gcc_cv_initfini_array+set}" = set; then :
10782 $as_echo_n "(cached) " >&6
10783 else
10784 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10785 if test "$cross_compiling" = yes; then :
10786 gcc_cv_initfini_array=no
10787 else
10788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10789 /* end confdefs.h. */
10790
10791 #ifndef __ELF__
10792 #error Not an ELF OS
10793 #endif
10794 #ifdef __ia64__
10795 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10796 if it can be used. */
10797 static int x = -1;
10798 int main (void) { return x; }
10799 int foo (void) { x = 0; }
10800 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10801 #else
10802 extern void abort ();
10803 static int count;
10804
10805 static void
10806 init1005 ()
10807 {
10808 if (count != 0)
10809 abort ();
10810 count = 1005;
10811 }
10812 void (*const init_array1005) ()
10813 __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
10814 = { init1005 };
10815 static void
10816 fini1005 ()
10817 {
10818 if (count != 1005)
10819 abort ();
10820 }
10821 void (*const fini_array1005) ()
10822 __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
10823 = { fini1005 };
10824
10825 static void
10826 ctor1007 ()
10827 {
10828 if (count != 1005)
10829 abort ();
10830 count = 1007;
10831 }
10832 void (*const ctors1007) ()
10833 __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
10834 = { ctor1007 };
10835 static void
10836 dtor1007 ()
10837 {
10838 if (count != 1007)
10839 abort ();
10840 count = 1005;
10841 }
10842 void (*const dtors1007) ()
10843 __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
10844 = { dtor1007 };
10845
10846 static void
10847 init65530 ()
10848 {
10849 if (count != 1007)
10850 abort ();
10851 count = 65530;
10852 }
10853 void (*const init_array65530) ()
10854 __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
10855 = { init65530 };
10856 static void
10857 fini65530 ()
10858 {
10859 if (count != 65530)
10860 abort ();
10861 count = 1007;
10862 }
10863 void (*const fini_array65530) ()
10864 __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
10865 = { fini65530 };
10866
10867 static void
10868 ctor65535 ()
10869 {
10870 if (count != 65530)
10871 abort ();
10872 count = 65535;
10873 }
10874 void (*const ctors65535) ()
10875 __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
10876 = { ctor65535 };
10877 static void
10878 dtor65535 ()
10879 {
10880 if (count != 65535)
10881 abort ();
10882 count = 65530;
10883 }
10884 void (*const dtors65535) ()
10885 __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
10886 = { dtor65535 };
10887
10888 int
10889 main ()
10890 {
10891 return 0;
10892 }
10893 #endif
10894
10895 _ACEOF
10896 if ac_fn_c_try_run "$LINENO"; then :
10897 gcc_cv_initfini_array=yes
10898 else
10899 gcc_cv_initfini_array=no
10900 fi
10901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10902 conftest.$ac_objext conftest.beam conftest.$ac_ext
10903 fi
10904
10905 else
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
10907 $as_echo_n "checking cross compile... guessing... " >&6; }
10908 gcc_cv_initfini_array=no
10909 fi
10910 fi
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10912 $as_echo "$gcc_cv_initfini_array" >&6; }
10913 enable_initfini_array=$gcc_cv_initfini_array
10914
10915 fi
10916
10917 if test $enable_initfini_array = yes; then
10918
10919 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10920
10921 fi
10922
10923 # mkdir takes a single argument on some systems.
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10925 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10926 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10927 $as_echo_n "(cached) " >&6
10928 else
10929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10930 /* end confdefs.h. */
10931
10932 #include <sys/types.h>
10933 #ifdef HAVE_SYS_STAT_H
10934 # include <sys/stat.h>
10935 #endif
10936 #ifdef HAVE_UNISTD_H
10937 # include <unistd.h>
10938 #endif
10939 #ifdef HAVE_DIRECT_H
10940 # include <direct.h>
10941 #endif
10942 int
10943 main ()
10944 {
10945 mkdir ("foo", 0);
10946 ;
10947 return 0;
10948 }
10949 _ACEOF
10950 if ac_fn_c_try_compile "$LINENO"; then :
10951 gcc_cv_mkdir_takes_one_arg=no
10952 else
10953 gcc_cv_mkdir_takes_one_arg=yes
10954 fi
10955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10956 fi
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10958 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10959 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10960
10961 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10962
10963 fi
10964
10965
10966 # File extensions
10967 manext='.1'
10968 objext='.o'
10969
10970
10971
10972 # With Setjmp/Longjmp based exception handling.
10973 # Check whether --enable-sjlj-exceptions was given.
10974 if test "${enable_sjlj_exceptions+set}" = set; then :
10975 enableval=$enable_sjlj_exceptions; case $target in
10976 *-*-hpux10*)
10977 if test $enableval != yes; then
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10979 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10980 enableval=yes
10981 fi
10982 ;;
10983 esac
10984 force_sjlj_exceptions=yes
10985 else
10986 case $target in
10987 *-*-hpux10*)
10988 force_sjlj_exceptions=yes
10989 enableval=yes
10990 ;;
10991 *)
10992 force_sjlj_exceptions=no
10993 ;;
10994 esac
10995 fi
10996
10997 if test $force_sjlj_exceptions = yes; then
10998 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10999
11000 cat >>confdefs.h <<_ACEOF
11001 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11002 _ACEOF
11003
11004 fi
11005
11006 # --------------------------------------------------------
11007 # Build, host, and target specific configuration fragments
11008 # --------------------------------------------------------
11009
11010 # Collect build-machine-specific information.
11011 . ${srcdir}/config.build
11012
11013 # Collect host-machine-specific information.
11014 . ${srcdir}/config.host
11015
11016 target_gtfiles=
11017
11018 # Collect target-machine-specific information.
11019 . ${srcdir}/config.gcc
11020
11021 extra_objs="${host_extra_objs} ${extra_objs}"
11022 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11023
11024 # Default the target-machine variables that were not explicitly set.
11025 if test x"$tm_file" = x
11026 then tm_file=$cpu_type/$cpu_type.h; fi
11027
11028 if test x"$extra_headers" = x
11029 then extra_headers=; fi
11030
11031 if test x$md_file = x
11032 then md_file=$cpu_type/$cpu_type.md; fi
11033
11034 if test x$out_file = x
11035 then out_file=$cpu_type/$cpu_type.c; fi
11036
11037 if test x"$tmake_file" = x
11038 then tmake_file=$cpu_type/t-$cpu_type
11039 fi
11040
11041 if test x"$dwarf2" = xyes
11042 then tm_file="$tm_file tm-dwarf2.h"
11043 fi
11044
11045 # Say what files are being used for the output code and MD file.
11046 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11047 echo "Using \`$srcdir/config/$md_file' as machine description file."
11048
11049 # If any of the xm_file variables contain nonexistent files, warn
11050 # about them and drop them.
11051
11052 bx=
11053 for x in $build_xm_file; do
11054 if test -f $srcdir/config/$x
11055 then bx="$bx $x"
11056 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11057 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11058 fi
11059 done
11060 build_xm_file="$bx"
11061
11062 hx=
11063 for x in $host_xm_file; do
11064 if test -f $srcdir/config/$x
11065 then hx="$hx $x"
11066 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11067 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11068 fi
11069 done
11070 host_xm_file="$hx"
11071
11072 tx=
11073 for x in $xm_file; do
11074 if test -f $srcdir/config/$x
11075 then tx="$tx $x"
11076 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11077 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11078 fi
11079 done
11080 xm_file="$tx"
11081
11082 count=a
11083 for f in $tm_file; do
11084 count=${count}x
11085 done
11086 if test $count = ax; then
11087 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11088 else
11089 echo "Using the following target machine macro files:"
11090 for f in $tm_file; do
11091 echo " $srcdir/config/$f"
11092 done
11093 fi
11094
11095 if test x$need_64bit_hwint = xyes; then
11096
11097 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11098
11099 fi
11100
11101 if test x$use_long_long_for_widest_fast_int = xyes; then
11102
11103 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11104
11105 fi
11106
11107 count=a
11108 for f in $host_xm_file; do
11109 count=${count}x
11110 done
11111 if test $count = a; then
11112 :
11113 elif test $count = ax; then
11114 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11115 else
11116 echo "Using the following host machine macro files:"
11117 for f in $host_xm_file; do
11118 echo " $srcdir/config/$f"
11119 done
11120 fi
11121 echo "Using ${out_host_hook_obj} for host machine hooks."
11122
11123 if test "$host_xm_file" != "$build_xm_file"; then
11124 count=a
11125 for f in $build_xm_file; do
11126 count=${count}x
11127 done
11128 if test $count = a; then
11129 :
11130 elif test $count = ax; then
11131 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11132 else
11133 echo "Using the following build machine macro files:"
11134 for f in $build_xm_file; do
11135 echo " $srcdir/config/$f"
11136 done
11137 fi
11138 fi
11139
11140 case ${host} in
11141 powerpc*-*-darwin*)
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11143 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11144 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11145 $as_echo_n "(cached) " >&6
11146 else
11147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11148 /* end confdefs.h. */
11149
11150 #include <sys/cdefs.h>
11151 #include <sys/signal.h>
11152 #include <ucontext.h>
11153 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11154
11155 _ACEOF
11156 if ac_fn_c_try_compile "$LINENO"; then :
11157 gcc_cv_mcontext_underscores=no
11158 else
11159 gcc_cv_mcontext_underscores=yes
11160 fi
11161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11162 fi
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11164 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11165 if test $gcc_cv_mcontext_underscores = yes; then
11166
11167 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11168
11169 fi
11170 ;;
11171 esac
11172
11173 # ---------
11174 # Threading
11175 # ---------
11176
11177 # Check if a valid thread package
11178 case ${enable_threads} in
11179 "" | no)
11180 # No threads
11181 target_thread_file='single'
11182 ;;
11183 yes)
11184 # default
11185 target_thread_file='single'
11186 ;;
11187 aix | dce | lynx | mipssde | posix | rtems | \
11188 single | tpf | vxworks | win32)
11189 target_thread_file=${enable_threads}
11190 ;;
11191 *)
11192 echo "${enable_threads} is an unknown thread package" 1>&2
11193 exit 1
11194 ;;
11195 esac
11196
11197 if test x${thread_file} = x; then
11198 # No thread file set by target-specific clauses in config.gcc,
11199 # so use file chosen by default logic above
11200 thread_file=${target_thread_file}
11201 fi
11202
11203 # Make gthr-default.h if we have a thread file.
11204 gthread_flags=
11205 if test $thread_file != single; then
11206 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
11207 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
11208 rm -f gthr-default.h-t
11209 else
11210 mv -f gthr-default.h-t gthr-default.h
11211 fi
11212 gthread_flags=-DHAVE_GTHR_DEFAULT
11213 fi
11214
11215
11216 # --------
11217 # UNSORTED
11218 # --------
11219
11220 use_cxa_atexit=no
11221 if test x$enable___cxa_atexit = xyes || \
11222 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11223 if test x$host = x$target; then
11224 case $host in
11225 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11226 # keyed to flag_use_cxa_atexit
11227 *-*-mingw32*)
11228 use_cxa_atexit=yes
11229 ;;
11230 *)
11231 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11232 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11233 use_cxa_atexit=yes
11234 else
11235 echo "__cxa_atexit can't be enabled on this target"
11236 fi
11237
11238 ;;
11239 esac
11240 else
11241 # We can't check for __cxa_atexit when building a cross, so assume
11242 # it is available
11243 use_cxa_atexit=yes
11244 fi
11245 if test x$use_cxa_atexit = xyes; then
11246
11247 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11248
11249 fi
11250 fi
11251
11252 # Look for a file containing extra machine modes.
11253 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11254 extra_modes_file='$(srcdir)'/config/${extra_modes}
11255
11256
11257 cat >>confdefs.h <<_ACEOF
11258 #define EXTRA_MODES_FILE "config/$extra_modes"
11259 _ACEOF
11260
11261 fi
11262
11263 # Convert extra_options into a form suitable for Makefile use.
11264 extra_opt_files=
11265 all_opt_files=
11266 for f in $extra_options; do
11267 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11268 all_opt_files="$all_opt_files $srcdir/config/$f"
11269 done
11270
11271
11272 # auto-host.h is the file containing items generated by autoconf and is
11273 # the first file included by config.h.
11274 # If host=build, it is correct to have bconfig include auto-host.h
11275 # as well. If host!=build, we are in error and need to do more
11276 # work to find out the build config parameters.
11277 if test x$host = x$build
11278 then
11279 build_auto=auto-host.h
11280 else
11281 # We create a subdir, then run autoconf in the subdir.
11282 # To prevent recursion we set host and build for the new
11283 # invocation of configure to the build for this invocation
11284 # of configure.
11285 tempdir=build.$$
11286 rm -rf $tempdir
11287 mkdir $tempdir
11288 cd $tempdir
11289 case ${srcdir} in
11290 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11291 *) realsrcdir=../${srcdir};;
11292 esac
11293 saved_CFLAGS="${CFLAGS}"
11294 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11295 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11296 ${realsrcdir}/configure \
11297 --enable-languages=${enable_languages-all} \
11298 --target=$target_alias --host=$build_alias --build=$build_alias
11299 CFLAGS="${saved_CFLAGS}"
11300
11301 # We just finished tests for the build machine, so rename
11302 # the file auto-build.h in the gcc directory.
11303 mv auto-host.h ../auto-build.h
11304 cd ..
11305 rm -rf $tempdir
11306 build_auto=auto-build.h
11307 fi
11308
11309
11310 tm_file="${tm_file} defaults.h"
11311 tm_p_file="${tm_p_file} tm-preds.h"
11312 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11313 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11314 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11315 # put this back in temporarily.
11316 xm_file="auto-host.h ansidecl.h ${xm_file}"
11317
11318 # --------
11319 # UNSORTED
11320 # --------
11321
11322 # Compile in configure arguments.
11323 if test -f configargs.h ; then
11324 # Being re-configured.
11325 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11326 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11327 else
11328 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11329 fi
11330
11331 # Double all backslashes and backslash all quotes to turn
11332 # gcc_config_arguments into a C string.
11333 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11334 $gcc_config_arguments
11335 EOF
11336 gcc_config_arguments_str=`cat conftest.out`
11337 rm -f conftest.out
11338
11339 cat > configargs.h <<EOF
11340 /* Generated automatically. */
11341 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11342 static const char thread_model[] = "$thread_file";
11343
11344 static const struct {
11345 const char *name, *value;
11346 } configure_default_options[] = $configure_default_options;
11347 EOF
11348
11349 gcc_BASEVER=`cat $srcdir/BASE-VER`
11350 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11351 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11352 if test -f $srcdir/REVISION ; then
11353 gcc_REVISION=`cat $srcdir/REVISION`
11354 else
11355 gcc_REVISION=""
11356 fi
11357 cat > plugin-version.h <<EOF
11358 #include "configargs.h"
11359
11360 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11361 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11362 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11363 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11364
11365 static char basever[] = "$gcc_BASEVER";
11366 static char datestamp[] = "$gcc_DATESTAMP";
11367 static char devphase[] = "$gcc_DEVPHASE";
11368 static char revision[] = "$gcc_REVISION";
11369
11370 /* FIXME plugins: We should make the version information more precise.
11371 One way to do is to add a checksum. */
11372
11373 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11374 devphase, revision,
11375 configuration_arguments};
11376 EOF
11377
11378 # Internationalization
11379 # If we haven't got the data from the intl directory,
11380 # assume NLS is disabled.
11381 USE_NLS=no
11382 LIBINTL=
11383 LIBINTL_DEP=
11384 INCINTL=
11385 XGETTEXT=
11386 GMSGFMT=
11387 POSUB=
11388
11389 if test -f ../intl/config.intl; then
11390 . ../intl/config.intl
11391 fi
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11393 $as_echo_n "checking whether NLS is requested... " >&6; }
11394 if test x"$USE_NLS" != xyes; then
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396 $as_echo "no" >&6; }
11397 else
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11399 $as_echo "yes" >&6; }
11400
11401 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11402
11403
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11405 $as_echo_n "checking for catalogs to be installed... " >&6; }
11406 # Look for .po and .gmo files in the source directory.
11407 CATALOGS=
11408 XLINGUAS=
11409 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11410 # If there aren't any .gmo files the shell will give us the
11411 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11412 # weeded out.
11413 case "$cat" in *\**)
11414 continue;;
11415 esac
11416 # The quadruple backslash is collapsed to a double backslash
11417 # by the backticks, then collapsed again by the double quotes,
11418 # leaving us with one backslash in the sed expression (right
11419 # before the dot that mustn't act as a wildcard).
11420 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11421 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11422 # The user is allowed to set LINGUAS to a list of languages to
11423 # install catalogs for. If it's empty that means "all of them."
11424 if test "x$LINGUAS" = x; then
11425 CATALOGS="$CATALOGS $cat"
11426 XLINGUAS="$XLINGUAS $lang"
11427 else
11428 case "$LINGUAS" in *$lang*)
11429 CATALOGS="$CATALOGS $cat"
11430 XLINGUAS="$XLINGUAS $lang"
11431 ;;
11432 esac
11433 fi
11434 done
11435 LINGUAS="$XLINGUAS"
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11437 $as_echo "$LINGUAS" >&6; }
11438
11439
11440 DATADIRNAME=share
11441
11442 INSTOBJEXT=.mo
11443
11444 GENCAT=gencat
11445
11446 CATOBJEXT=.gmo
11447
11448 fi
11449
11450 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11451 # -liconv on the link line twice.
11452 case "$LIBINTL" in *$LIBICONV*)
11453 LIBICONV= ;;
11454 esac
11455
11456 # Check whether --enable-secureplt was given.
11457 if test "${enable_secureplt+set}" = set; then :
11458 enableval=$enable_secureplt;
11459 fi
11460
11461
11462 # Check whether --enable-leading-mingw64-underscores was given.
11463 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11464 enableval=$enable_leading_mingw64_underscores;
11465 fi
11466
11467 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11468
11469 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11470
11471 fi
11472
11473 # Check whether --enable-cld was given.
11474 if test "${enable_cld+set}" = set; then :
11475 enableval=$enable_cld;
11476 else
11477 enable_cld=no
11478 fi
11479
11480
11481 # Check whether --enable-frame-pointer was given.
11482 if test "${enable_frame_pointer+set}" = set; then :
11483 enableval=$enable_frame_pointer;
11484 else
11485
11486 case $target_os in
11487 linux* | darwin[8912]*)
11488 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11489 # DWARF2.
11490 enable_frame_pointer=no
11491 ;;
11492 *)
11493 enable_frame_pointer=yes
11494 ;;
11495 esac
11496
11497 fi
11498
11499
11500 # Windows32 Registry support for specifying GCC installation paths.
11501 # Check whether --enable-win32-registry was given.
11502 if test "${enable_win32_registry+set}" = set; then :
11503 enableval=$enable_win32_registry;
11504 fi
11505
11506
11507 case $host_os in
11508 win32 | pe | cygwin* | mingw32* | uwin*)
11509 if test "x$enable_win32_registry" != xno; then
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11511 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11512 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11513 $as_echo_n "(cached) " >&6
11514 else
11515 ac_func_search_save_LIBS=$LIBS
11516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517 /* end confdefs.h. */
11518
11519 /* Override any GCC internal prototype to avoid an error.
11520 Use char because int might match the return type of a GCC
11521 builtin and then its argument prototype would still apply. */
11522 #ifdef __cplusplus
11523 extern "C"
11524 #endif
11525 char RegOpenKeyExA ();
11526 int
11527 main ()
11528 {
11529 return RegOpenKeyExA ();
11530 ;
11531 return 0;
11532 }
11533 _ACEOF
11534 for ac_lib in '' advapi32; do
11535 if test -z "$ac_lib"; then
11536 ac_res="none required"
11537 else
11538 ac_res=-l$ac_lib
11539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11540 fi
11541 if ac_fn_c_try_link "$LINENO"; then :
11542 ac_cv_search_RegOpenKeyExA=$ac_res
11543 fi
11544 rm -f core conftest.err conftest.$ac_objext \
11545 conftest$ac_exeext
11546 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11547 break
11548 fi
11549 done
11550 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11551
11552 else
11553 ac_cv_search_RegOpenKeyExA=no
11554 fi
11555 rm conftest.$ac_ext
11556 LIBS=$ac_func_search_save_LIBS
11557 fi
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11559 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11560 ac_res=$ac_cv_search_RegOpenKeyExA
11561 if test "$ac_res" != no; then :
11562 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11563
11564 else
11565 enable_win32_registry=no
11566 fi
11567
11568 fi
11569
11570 if test "x$enable_win32_registry" != xno; then
11571
11572 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11573
11574
11575 if test "x$enable_win32_registry" != xyes \
11576 && test "x$enable_win32_registry" != x; then
11577
11578 cat >>confdefs.h <<_ACEOF
11579 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11580 _ACEOF
11581
11582 fi
11583 fi
11584 ;;
11585 esac
11586
11587 # Get an absolute path to the GCC top-level source directory
11588 holddir=`${PWDCMD-pwd}`
11589 cd $srcdir
11590 topdir=`${PWDCMD-pwd}`
11591 cd $holddir
11592
11593 # Conditionalize the makefile for this host machine.
11594 xmake_file=
11595 for f in ${host_xmake_file}
11596 do
11597 if test -f ${srcdir}/config/$f
11598 then
11599 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11600 fi
11601 done
11602
11603 # Conditionalize the makefile for this target machine.
11604 tmake_file_=
11605 for f in ${tmake_file}
11606 do
11607 if test -f ${srcdir}/config/$f
11608 then
11609 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11610 fi
11611 done
11612 tmake_file="${tmake_file_}"
11613
11614 out_object_file=`basename $out_file .c`.o
11615 common_out_object_file=`basename $common_out_file .c`.o
11616
11617 tm_file_list="options.h"
11618 tm_include_list="options.h insn-constants.h"
11619 for f in $tm_file; do
11620 case $f in
11621 ./* )
11622 f=`echo $f | sed 's/^..//'`
11623 tm_file_list="${tm_file_list} $f"
11624 tm_include_list="${tm_include_list} $f"
11625 ;;
11626 defaults.h )
11627 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11628 tm_include_list="${tm_include_list} $f"
11629 ;;
11630 * )
11631 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11632 tm_include_list="${tm_include_list} config/$f"
11633 ;;
11634 esac
11635 done
11636
11637 libgcc_tm_file_list=
11638 libgcc_tm_include_list=
11639 for f in $libgcc_tm_file; do
11640 libgcc_tm_file_list="${libgcc_tm_file_list} \$(srcdir)/../libgcc/config/$f"
11641 libgcc_tm_include_list="${libgcc_tm_include_list} ../libgcc/config/$f"
11642 done
11643
11644 tm_p_file_list=
11645 tm_p_include_list=
11646 for f in $tm_p_file; do
11647 case $f in
11648 tm-preds.h )
11649 tm_p_file_list="${tm_p_file_list} $f"
11650 tm_p_include_list="${tm_p_include_list} $f"
11651 ;;
11652 * )
11653 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11654 tm_p_include_list="${tm_p_include_list} config/$f"
11655 esac
11656 done
11657
11658 xm_file_list=
11659 xm_include_list=
11660 for f in $xm_file; do
11661 case $f in
11662 ansidecl.h )
11663 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11664 xm_include_list="${xm_include_list} $f"
11665 ;;
11666 auto-host.h )
11667 xm_file_list="${xm_file_list} $f"
11668 xm_include_list="${xm_include_list} $f"
11669 ;;
11670 * )
11671 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11672 xm_include_list="${xm_include_list} config/$f"
11673 ;;
11674 esac
11675 done
11676
11677 host_xm_file_list=
11678 host_xm_include_list=
11679 for f in $host_xm_file; do
11680 case $f in
11681 ansidecl.h )
11682 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11683 host_xm_include_list="${host_xm_include_list} $f"
11684 ;;
11685 auto-host.h )
11686 host_xm_file_list="${host_xm_file_list} $f"
11687 host_xm_include_list="${host_xm_include_list} $f"
11688 ;;
11689 * )
11690 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11691 host_xm_include_list="${host_xm_include_list} config/$f"
11692 ;;
11693 esac
11694 done
11695
11696 build_xm_file_list=
11697 for f in $build_xm_file; do
11698 case $f in
11699 ansidecl.h )
11700 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11701 build_xm_include_list="${build_xm_include_list} $f"
11702 ;;
11703 auto-build.h | auto-host.h )
11704 build_xm_file_list="${build_xm_file_list} $f"
11705 build_xm_include_list="${build_xm_include_list} $f"
11706 ;;
11707 * )
11708 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11709 build_xm_include_list="${build_xm_include_list} config/$f"
11710 ;;
11711 esac
11712 done
11713
11714 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11715 # cross-compiler which does not use the native headers and libraries.
11716 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11717 CROSS=
11718 ALL=all.internal
11719 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11720
11721 if test "x$with_build_sysroot" != x; then
11722 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11723 else
11724 # This value is used, even on a native system, because
11725 # CROSS_SYSTEM_HEADER_DIR is just
11726 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11727 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11728 fi
11729
11730 if test x$host != x$target
11731 then
11732 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11733 ALL=all.cross
11734 SYSTEM_HEADER_DIR=$build_system_header_dir
11735 case "$host","$target" in
11736 # Darwin crosses can use the host system's libraries and headers,
11737 # because of the fat library support. Of course, it must be the
11738 # same version of Darwin on both sides. Allow the user to
11739 # just say --target=foo-darwin without a version number to mean
11740 # "the version on this system".
11741 *-*-darwin*,*-*-darwin*)
11742 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11743 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11744 if test $hostos = $targetos -o $targetos = darwin ; then
11745 CROSS=
11746 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11747 with_headers=yes
11748 fi
11749 ;;
11750
11751 i?86-*-*,x86_64-*-* \
11752 | powerpc*-*-*,powerpc64*-*-*)
11753 CROSS="$CROSS -DNATIVE_CROSS" ;;
11754 esac
11755
11756 case $target in
11757 *-*-mingw*)
11758 if test "x$with_headers" = x; then
11759 with_headers=yes
11760 fi
11761 ;;
11762 *)
11763 ;;
11764 esac
11765 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11766 SYSTEM_HEADER_DIR=$build_system_header_dir
11767 fi
11768
11769 # If this is a cross-compiler that does not
11770 # have its own set of headers then define
11771 # inhibit_libc
11772
11773 # If this is using newlib, without having the headers available now,
11774 # then define inhibit_libc in LIBGCC2_CFLAGS.
11775 # This prevents libgcc2 from containing any code which requires libc
11776 # support.
11777 : ${inhibit_libc=false}
11778 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11779 test x$with_newlib = xyes ; } &&
11780 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11781 inhibit_libc=true
11782 fi
11783
11784
11785 # When building gcc with a cross-compiler, we need to adjust things so
11786 # that the generator programs are still built with the native compiler.
11787 # Also, we cannot run fixincludes.
11788
11789 # These are the normal (build=host) settings:
11790 CC_FOR_BUILD='$(CC)'
11791 BUILD_CFLAGS='$(ALL_CFLAGS)'
11792 BUILD_LDFLAGS='$(LDFLAGS)'
11793 STMP_FIXINC=stmp-fixinc
11794
11795 # And these apply if build != host, or we are generating coverage data
11796 if test x$build != x$host || test "x$coverage_flags" != x
11797 then
11798 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11799 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11800 fi
11801
11802 # Expand extra_headers to include complete path.
11803 # This substitutes for lots of t-* files.
11804 extra_headers_list=
11805 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11806 for file in ${extra_headers} ; do
11807 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11808 done
11809
11810 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11811 if test x"$use_gcc_tgmath" = xyes
11812 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11813 fi
11814
11815 # Define collect2 in Makefile.
11816 case $host_can_use_collect2 in
11817 no) collect2= ;;
11818 *) collect2='collect2$(exeext)' ;;
11819 esac
11820
11821
11822 # Add a definition of USE_COLLECT2 if system wants one.
11823 case $use_collect2 in
11824 no) use_collect2= ;;
11825 "") ;;
11826 *)
11827 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11828 xm_defines="${xm_defines} USE_COLLECT2"
11829 case $host_can_use_collect2 in
11830 no)
11831 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11832 ;;
11833 esac
11834 ;;
11835 esac
11836
11837
11838 cat >>confdefs.h <<_ACEOF
11839 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11840 _ACEOF
11841
11842
11843 # ---------------------------
11844 # Assembler & linker features
11845 # ---------------------------
11846
11847 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11848 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11849 # However when ld-new is first executed from the build tree, libtool will
11850 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11851 # to the build tree. While doing this we need to use the previous-stage
11852 # linker, or we have an infinite loop. The presence of a shell script as
11853 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11854 # the gcc/collect-ld script. So we need to know how libtool works, or
11855 # exec-tool will fail.
11856
11857
11858 case `pwd` in
11859 *\ * | *\ *)
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11861 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11862 esac
11863
11864
11865
11866 macro_version='2.2.7a'
11867 macro_revision='1.3134'
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881 ltmain="$ac_aux_dir/ltmain.sh"
11882
11883 # Backslashify metacharacters that are still active within
11884 # double-quoted strings.
11885 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11886
11887 # Same as above, but do not quote variable references.
11888 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11889
11890 # Sed substitution to delay expansion of an escaped shell variable in a
11891 # double_quote_subst'ed string.
11892 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11893
11894 # Sed substitution to delay expansion of an escaped single quote.
11895 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11896
11897 # Sed substitution to avoid accidental globbing in evaled expressions
11898 no_glob_subst='s/\*/\\\*/g'
11899
11900 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11901 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11902 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11903
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11905 $as_echo_n "checking how to print strings... " >&6; }
11906 # Test print first, because it will be a builtin if present.
11907 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11908 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11909 ECHO='print -r --'
11910 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11911 ECHO='printf %s\n'
11912 else
11913 # Use this function as a fallback that always works.
11914 func_fallback_echo ()
11915 {
11916 eval 'cat <<_LTECHO_EOF
11917 $1
11918 _LTECHO_EOF'
11919 }
11920 ECHO='func_fallback_echo'
11921 fi
11922
11923 # func_echo_all arg...
11924 # Invoke $ECHO with all args, space-separated.
11925 func_echo_all ()
11926 {
11927 $ECHO ""
11928 }
11929
11930 case "$ECHO" in
11931 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11932 $as_echo "printf" >&6; } ;;
11933 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11934 $as_echo "print -r" >&6; } ;;
11935 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11936 $as_echo "cat" >&6; } ;;
11937 esac
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11953 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11954 if test "${ac_cv_path_SED+set}" = set; then :
11955 $as_echo_n "(cached) " >&6
11956 else
11957 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11958 for ac_i in 1 2 3 4 5 6 7; do
11959 ac_script="$ac_script$as_nl$ac_script"
11960 done
11961 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11962 { ac_script=; unset ac_script;}
11963 if test -z "$SED"; then
11964 ac_path_SED_found=false
11965 # Loop through the user's path and test for each of PROGNAME-LIST
11966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11967 for as_dir in $PATH
11968 do
11969 IFS=$as_save_IFS
11970 test -z "$as_dir" && as_dir=.
11971 for ac_prog in sed gsed; do
11972 for ac_exec_ext in '' $ac_executable_extensions; do
11973 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11974 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11975 # Check for GNU ac_path_SED and select it if it is found.
11976 # Check for GNU $ac_path_SED
11977 case `"$ac_path_SED" --version 2>&1` in
11978 *GNU*)
11979 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11980 *)
11981 ac_count=0
11982 $as_echo_n 0123456789 >"conftest.in"
11983 while :
11984 do
11985 cat "conftest.in" "conftest.in" >"conftest.tmp"
11986 mv "conftest.tmp" "conftest.in"
11987 cp "conftest.in" "conftest.nl"
11988 $as_echo '' >> "conftest.nl"
11989 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11990 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11991 as_fn_arith $ac_count + 1 && ac_count=$as_val
11992 if test $ac_count -gt ${ac_path_SED_max-0}; then
11993 # Best one so far, save it but keep looking for a better one
11994 ac_cv_path_SED="$ac_path_SED"
11995 ac_path_SED_max=$ac_count
11996 fi
11997 # 10*(2^10) chars as input seems more than enough
11998 test $ac_count -gt 10 && break
11999 done
12000 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12001 esac
12002
12003 $ac_path_SED_found && break 3
12004 done
12005 done
12006 done
12007 IFS=$as_save_IFS
12008 if test -z "$ac_cv_path_SED"; then
12009 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12010 fi
12011 else
12012 ac_cv_path_SED=$SED
12013 fi
12014
12015 fi
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12017 $as_echo "$ac_cv_path_SED" >&6; }
12018 SED="$ac_cv_path_SED"
12019 rm -f conftest.sed
12020
12021 test -z "$SED" && SED=sed
12022 Xsed="$SED -e 1s/^X//"
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12035 $as_echo_n "checking for fgrep... " >&6; }
12036 if test "${ac_cv_path_FGREP+set}" = set; then :
12037 $as_echo_n "(cached) " >&6
12038 else
12039 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12040 then ac_cv_path_FGREP="$GREP -F"
12041 else
12042 if test -z "$FGREP"; then
12043 ac_path_FGREP_found=false
12044 # Loop through the user's path and test for each of PROGNAME-LIST
12045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12046 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12047 do
12048 IFS=$as_save_IFS
12049 test -z "$as_dir" && as_dir=.
12050 for ac_prog in fgrep; do
12051 for ac_exec_ext in '' $ac_executable_extensions; do
12052 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12053 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12054 # Check for GNU ac_path_FGREP and select it if it is found.
12055 # Check for GNU $ac_path_FGREP
12056 case `"$ac_path_FGREP" --version 2>&1` in
12057 *GNU*)
12058 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12059 *)
12060 ac_count=0
12061 $as_echo_n 0123456789 >"conftest.in"
12062 while :
12063 do
12064 cat "conftest.in" "conftest.in" >"conftest.tmp"
12065 mv "conftest.tmp" "conftest.in"
12066 cp "conftest.in" "conftest.nl"
12067 $as_echo 'FGREP' >> "conftest.nl"
12068 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12069 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12070 as_fn_arith $ac_count + 1 && ac_count=$as_val
12071 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12072 # Best one so far, save it but keep looking for a better one
12073 ac_cv_path_FGREP="$ac_path_FGREP"
12074 ac_path_FGREP_max=$ac_count
12075 fi
12076 # 10*(2^10) chars as input seems more than enough
12077 test $ac_count -gt 10 && break
12078 done
12079 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12080 esac
12081
12082 $ac_path_FGREP_found && break 3
12083 done
12084 done
12085 done
12086 IFS=$as_save_IFS
12087 if test -z "$ac_cv_path_FGREP"; then
12088 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12089 fi
12090 else
12091 ac_cv_path_FGREP=$FGREP
12092 fi
12093
12094 fi
12095 fi
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12097 $as_echo "$ac_cv_path_FGREP" >&6; }
12098 FGREP="$ac_cv_path_FGREP"
12099
12100
12101 test -z "$GREP" && GREP=grep
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121 # Check whether --with-gnu-ld was given.
12122 if test "${with_gnu_ld+set}" = set; then :
12123 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12124 else
12125 with_gnu_ld=no
12126 fi
12127
12128 ac_prog=ld
12129 if test "$GCC" = yes; then
12130 # Check if gcc -print-prog-name=ld gives a path.
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12132 $as_echo_n "checking for ld used by $CC... " >&6; }
12133 case $host in
12134 *-*-mingw*)
12135 # gcc leaves a trailing carriage return which upsets mingw
12136 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12137 *)
12138 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12139 esac
12140 case $ac_prog in
12141 # Accept absolute paths.
12142 [\\/]* | ?:[\\/]*)
12143 re_direlt='/[^/][^/]*/\.\./'
12144 # Canonicalize the pathname of ld
12145 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12146 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12147 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12148 done
12149 test -z "$LD" && LD="$ac_prog"
12150 ;;
12151 "")
12152 # If it fails, then pretend we aren't using GCC.
12153 ac_prog=ld
12154 ;;
12155 *)
12156 # If it is relative, then search for the first ld in PATH.
12157 with_gnu_ld=unknown
12158 ;;
12159 esac
12160 elif test "$with_gnu_ld" = yes; then
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12162 $as_echo_n "checking for GNU ld... " >&6; }
12163 else
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12165 $as_echo_n "checking for non-GNU ld... " >&6; }
12166 fi
12167 if test "${lt_cv_path_LD+set}" = set; then :
12168 $as_echo_n "(cached) " >&6
12169 else
12170 if test -z "$LD"; then
12171 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12172 for ac_dir in $PATH; do
12173 IFS="$lt_save_ifs"
12174 test -z "$ac_dir" && ac_dir=.
12175 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12176 lt_cv_path_LD="$ac_dir/$ac_prog"
12177 # Check to see if the program is GNU ld. I'd rather use --version,
12178 # but apparently some variants of GNU ld only accept -v.
12179 # Break only if it was the GNU/non-GNU ld that we prefer.
12180 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12181 *GNU* | *'with BFD'*)
12182 test "$with_gnu_ld" != no && break
12183 ;;
12184 *)
12185 test "$with_gnu_ld" != yes && break
12186 ;;
12187 esac
12188 fi
12189 done
12190 IFS="$lt_save_ifs"
12191 else
12192 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12193 fi
12194 fi
12195
12196 LD="$lt_cv_path_LD"
12197 if test -n "$LD"; then
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12199 $as_echo "$LD" >&6; }
12200 else
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202 $as_echo "no" >&6; }
12203 fi
12204 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12206 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12207 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12210 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12211 case `$LD -v 2>&1 </dev/null` in
12212 *GNU* | *'with BFD'*)
12213 lt_cv_prog_gnu_ld=yes
12214 ;;
12215 *)
12216 lt_cv_prog_gnu_ld=no
12217 ;;
12218 esac
12219 fi
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12221 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12222 with_gnu_ld=$lt_cv_prog_gnu_ld
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12233 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12234 if test "${lt_cv_path_NM+set}" = set; then :
12235 $as_echo_n "(cached) " >&6
12236 else
12237 if test -n "$NM"; then
12238 # Let the user override the test.
12239 lt_cv_path_NM="$NM"
12240 else
12241 lt_nm_to_check="${ac_tool_prefix}nm"
12242 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12243 lt_nm_to_check="$lt_nm_to_check nm"
12244 fi
12245 for lt_tmp_nm in $lt_nm_to_check; do
12246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12247 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12248 IFS="$lt_save_ifs"
12249 test -z "$ac_dir" && ac_dir=.
12250 tmp_nm="$ac_dir/$lt_tmp_nm"
12251 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12252 # Check to see if the nm accepts a BSD-compat flag.
12253 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12254 # nm: unknown option "B" ignored
12255 # Tru64's nm complains that /dev/null is an invalid object file
12256 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12257 */dev/null* | *'Invalid file or object type'*)
12258 lt_cv_path_NM="$tmp_nm -B"
12259 break
12260 ;;
12261 *)
12262 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12263 */dev/null*)
12264 lt_cv_path_NM="$tmp_nm -p"
12265 break
12266 ;;
12267 *)
12268 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12269 continue # so that we can try to find one that supports BSD flags
12270 ;;
12271 esac
12272 ;;
12273 esac
12274 fi
12275 done
12276 IFS="$lt_save_ifs"
12277 done
12278 : ${lt_cv_path_NM=no}
12279 fi
12280 fi
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12282 $as_echo "$lt_cv_path_NM" >&6; }
12283 if test "$lt_cv_path_NM" != "no"; then
12284 NM="$lt_cv_path_NM"
12285 else
12286 # Didn't find any BSD compatible name lister, look for dumpbin.
12287 if test -n "$DUMPBIN"; then :
12288 # Let the user override the test.
12289 else
12290 if test -n "$ac_tool_prefix"; then
12291 for ac_prog in dumpbin "link -dump"
12292 do
12293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12296 $as_echo_n "checking for $ac_word... " >&6; }
12297 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12298 $as_echo_n "(cached) " >&6
12299 else
12300 if test -n "$DUMPBIN"; then
12301 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12302 else
12303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12304 for as_dir in $PATH
12305 do
12306 IFS=$as_save_IFS
12307 test -z "$as_dir" && as_dir=.
12308 for ac_exec_ext in '' $ac_executable_extensions; do
12309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12310 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12312 break 2
12313 fi
12314 done
12315 done
12316 IFS=$as_save_IFS
12317
12318 fi
12319 fi
12320 DUMPBIN=$ac_cv_prog_DUMPBIN
12321 if test -n "$DUMPBIN"; then
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12323 $as_echo "$DUMPBIN" >&6; }
12324 else
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12326 $as_echo "no" >&6; }
12327 fi
12328
12329
12330 test -n "$DUMPBIN" && break
12331 done
12332 fi
12333 if test -z "$DUMPBIN"; then
12334 ac_ct_DUMPBIN=$DUMPBIN
12335 for ac_prog in dumpbin "link -dump"
12336 do
12337 # Extract the first word of "$ac_prog", so it can be a program name with args.
12338 set dummy $ac_prog; ac_word=$2
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12340 $as_echo_n "checking for $ac_word... " >&6; }
12341 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12342 $as_echo_n "(cached) " >&6
12343 else
12344 if test -n "$ac_ct_DUMPBIN"; then
12345 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12346 else
12347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12348 for as_dir in $PATH
12349 do
12350 IFS=$as_save_IFS
12351 test -z "$as_dir" && as_dir=.
12352 for ac_exec_ext in '' $ac_executable_extensions; do
12353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12354 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12356 break 2
12357 fi
12358 done
12359 done
12360 IFS=$as_save_IFS
12361
12362 fi
12363 fi
12364 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12365 if test -n "$ac_ct_DUMPBIN"; then
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12367 $as_echo "$ac_ct_DUMPBIN" >&6; }
12368 else
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12370 $as_echo "no" >&6; }
12371 fi
12372
12373
12374 test -n "$ac_ct_DUMPBIN" && break
12375 done
12376
12377 if test "x$ac_ct_DUMPBIN" = x; then
12378 DUMPBIN=":"
12379 else
12380 case $cross_compiling:$ac_tool_warned in
12381 yes:)
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12384 ac_tool_warned=yes ;;
12385 esac
12386 DUMPBIN=$ac_ct_DUMPBIN
12387 fi
12388 fi
12389
12390 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12391 *COFF*)
12392 DUMPBIN="$DUMPBIN -symbols"
12393 ;;
12394 *)
12395 DUMPBIN=:
12396 ;;
12397 esac
12398 fi
12399
12400 if test "$DUMPBIN" != ":"; then
12401 NM="$DUMPBIN"
12402 fi
12403 fi
12404 test -z "$NM" && NM=nm
12405
12406
12407
12408
12409
12410
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12412 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12413 if test "${lt_cv_nm_interface+set}" = set; then :
12414 $as_echo_n "(cached) " >&6
12415 else
12416 lt_cv_nm_interface="BSD nm"
12417 echo "int some_variable = 0;" > conftest.$ac_ext
12418 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12419 (eval "$ac_compile" 2>conftest.err)
12420 cat conftest.err >&5
12421 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12422 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12423 cat conftest.err >&5
12424 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12425 cat conftest.out >&5
12426 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12427 lt_cv_nm_interface="MS dumpbin"
12428 fi
12429 rm -f conftest*
12430 fi
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12432 $as_echo "$lt_cv_nm_interface" >&6; }
12433
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12435 $as_echo_n "checking whether ln -s works... " >&6; }
12436 LN_S=$as_ln_s
12437 if test "$LN_S" = "ln -s"; then
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12439 $as_echo "yes" >&6; }
12440 else
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12442 $as_echo "no, using $LN_S" >&6; }
12443 fi
12444
12445 # find the maximum length of command line arguments
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12447 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12448 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12449 $as_echo_n "(cached) " >&6
12450 else
12451 i=0
12452 teststring="ABCD"
12453
12454 case $build_os in
12455 msdosdjgpp*)
12456 # On DJGPP, this test can blow up pretty badly due to problems in libc
12457 # (any single argument exceeding 2000 bytes causes a buffer overrun
12458 # during glob expansion). Even if it were fixed, the result of this
12459 # check would be larger than it should be.
12460 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12461 ;;
12462
12463 gnu*)
12464 # Under GNU Hurd, this test is not required because there is
12465 # no limit to the length of command line arguments.
12466 # Libtool will interpret -1 as no limit whatsoever
12467 lt_cv_sys_max_cmd_len=-1;
12468 ;;
12469
12470 cygwin* | mingw* | cegcc*)
12471 # On Win9x/ME, this test blows up -- it succeeds, but takes
12472 # about 5 minutes as the teststring grows exponentially.
12473 # Worse, since 9x/ME are not pre-emptively multitasking,
12474 # you end up with a "frozen" computer, even though with patience
12475 # the test eventually succeeds (with a max line length of 256k).
12476 # Instead, let's just punt: use the minimum linelength reported by
12477 # all of the supported platforms: 8192 (on NT/2K/XP).
12478 lt_cv_sys_max_cmd_len=8192;
12479 ;;
12480
12481 mint*)
12482 # On MiNT this can take a long time and run out of memory.
12483 lt_cv_sys_max_cmd_len=8192;
12484 ;;
12485
12486 amigaos*)
12487 # On AmigaOS with pdksh, this test takes hours, literally.
12488 # So we just punt and use a minimum line length of 8192.
12489 lt_cv_sys_max_cmd_len=8192;
12490 ;;
12491
12492 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12493 # This has been around since 386BSD, at least. Likely further.
12494 if test -x /sbin/sysctl; then
12495 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12496 elif test -x /usr/sbin/sysctl; then
12497 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12498 else
12499 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12500 fi
12501 # And add a safety zone
12502 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12503 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12504 ;;
12505
12506 interix*)
12507 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12508 lt_cv_sys_max_cmd_len=196608
12509 ;;
12510
12511 osf*)
12512 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12513 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12514 # nice to cause kernel panics so lets avoid the loop below.
12515 # First set a reasonable default.
12516 lt_cv_sys_max_cmd_len=16384
12517 #
12518 if test -x /sbin/sysconfig; then
12519 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12520 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12521 esac
12522 fi
12523 ;;
12524 sco3.2v5*)
12525 lt_cv_sys_max_cmd_len=102400
12526 ;;
12527 sysv5* | sco5v6* | sysv4.2uw2*)
12528 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12529 if test -n "$kargmax"; then
12530 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12531 else
12532 lt_cv_sys_max_cmd_len=32768
12533 fi
12534 ;;
12535 *)
12536 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12537 if test -n "$lt_cv_sys_max_cmd_len"; then
12538 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12539 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12540 else
12541 # Make teststring a little bigger before we do anything with it.
12542 # a 1K string should be a reasonable start.
12543 for i in 1 2 3 4 5 6 7 8 ; do
12544 teststring=$teststring$teststring
12545 done
12546 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12547 # If test is not a shell built-in, we'll probably end up computing a
12548 # maximum length that is only half of the actual maximum length, but
12549 # we can't tell.
12550 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12551 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12552 test $i != 17 # 1/2 MB should be enough
12553 do
12554 i=`expr $i + 1`
12555 teststring=$teststring$teststring
12556 done
12557 # Only check the string length outside the loop.
12558 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12559 teststring=
12560 # Add a significant safety factor because C++ compilers can tack on
12561 # massive amounts of additional arguments before passing them to the
12562 # linker. It appears as though 1/2 is a usable value.
12563 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12564 fi
12565 ;;
12566 esac
12567
12568 fi
12569
12570 if test -n $lt_cv_sys_max_cmd_len ; then
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12572 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12573 else
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12575 $as_echo "none" >&6; }
12576 fi
12577 max_cmd_len=$lt_cv_sys_max_cmd_len
12578
12579
12580
12581
12582
12583
12584 : ${CP="cp -f"}
12585 : ${MV="mv -f"}
12586 : ${RM="rm -f"}
12587
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12589 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12590 # Try some XSI features
12591 xsi_shell=no
12592 ( _lt_dummy="a/b/c"
12593 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12594 = c,a/b,, \
12595 && eval 'test $(( 1 + 1 )) -eq 2 \
12596 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12597 && xsi_shell=yes
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12599 $as_echo "$xsi_shell" >&6; }
12600
12601
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12603 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12604 lt_shell_append=no
12605 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12606 >/dev/null 2>&1 \
12607 && lt_shell_append=yes
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12609 $as_echo "$lt_shell_append" >&6; }
12610
12611
12612 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12613 lt_unset=unset
12614 else
12615 lt_unset=false
12616 fi
12617
12618
12619
12620
12621
12622 # test EBCDIC or ASCII
12623 case `echo X|tr X '\101'` in
12624 A) # ASCII based system
12625 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12626 lt_SP2NL='tr \040 \012'
12627 lt_NL2SP='tr \015\012 \040\040'
12628 ;;
12629 *) # EBCDIC based system
12630 lt_SP2NL='tr \100 \n'
12631 lt_NL2SP='tr \r\n \100\100'
12632 ;;
12633 esac
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12644 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12645 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12646 $as_echo_n "(cached) " >&6
12647 else
12648 lt_cv_ld_reload_flag='-r'
12649 fi
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12651 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12652 reload_flag=$lt_cv_ld_reload_flag
12653 case $reload_flag in
12654 "" | " "*) ;;
12655 *) reload_flag=" $reload_flag" ;;
12656 esac
12657 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12658 case $host_os in
12659 darwin*)
12660 if test "$GCC" = yes; then
12661 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12662 else
12663 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12664 fi
12665 ;;
12666 esac
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676 if test -n "$ac_tool_prefix"; then
12677 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12678 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12680 $as_echo_n "checking for $ac_word... " >&6; }
12681 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12682 $as_echo_n "(cached) " >&6
12683 else
12684 if test -n "$OBJDUMP"; then
12685 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12686 else
12687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12688 for as_dir in $PATH
12689 do
12690 IFS=$as_save_IFS
12691 test -z "$as_dir" && as_dir=.
12692 for ac_exec_ext in '' $ac_executable_extensions; do
12693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12694 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12696 break 2
12697 fi
12698 done
12699 done
12700 IFS=$as_save_IFS
12701
12702 fi
12703 fi
12704 OBJDUMP=$ac_cv_prog_OBJDUMP
12705 if test -n "$OBJDUMP"; then
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12707 $as_echo "$OBJDUMP" >&6; }
12708 else
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12710 $as_echo "no" >&6; }
12711 fi
12712
12713
12714 fi
12715 if test -z "$ac_cv_prog_OBJDUMP"; then
12716 ac_ct_OBJDUMP=$OBJDUMP
12717 # Extract the first word of "objdump", so it can be a program name with args.
12718 set dummy objdump; ac_word=$2
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12720 $as_echo_n "checking for $ac_word... " >&6; }
12721 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12722 $as_echo_n "(cached) " >&6
12723 else
12724 if test -n "$ac_ct_OBJDUMP"; then
12725 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12726 else
12727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12728 for as_dir in $PATH
12729 do
12730 IFS=$as_save_IFS
12731 test -z "$as_dir" && as_dir=.
12732 for ac_exec_ext in '' $ac_executable_extensions; do
12733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12734 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12736 break 2
12737 fi
12738 done
12739 done
12740 IFS=$as_save_IFS
12741
12742 fi
12743 fi
12744 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12745 if test -n "$ac_ct_OBJDUMP"; then
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12747 $as_echo "$ac_ct_OBJDUMP" >&6; }
12748 else
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750 $as_echo "no" >&6; }
12751 fi
12752
12753 if test "x$ac_ct_OBJDUMP" = x; then
12754 OBJDUMP="false"
12755 else
12756 case $cross_compiling:$ac_tool_warned in
12757 yes:)
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12760 ac_tool_warned=yes ;;
12761 esac
12762 OBJDUMP=$ac_ct_OBJDUMP
12763 fi
12764 else
12765 OBJDUMP="$ac_cv_prog_OBJDUMP"
12766 fi
12767
12768 test -z "$OBJDUMP" && OBJDUMP=objdump
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12779 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12780 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12781 $as_echo_n "(cached) " >&6
12782 else
12783 lt_cv_file_magic_cmd='$MAGIC_CMD'
12784 lt_cv_file_magic_test_file=
12785 lt_cv_deplibs_check_method='unknown'
12786 # Need to set the preceding variable on all platforms that support
12787 # interlibrary dependencies.
12788 # 'none' -- dependencies not supported.
12789 # `unknown' -- same as none, but documents that we really don't know.
12790 # 'pass_all' -- all dependencies passed with no checks.
12791 # 'test_compile' -- check by making test program.
12792 # 'file_magic [[regex]]' -- check by looking for files in library path
12793 # which responds to the $file_magic_cmd with a given extended regex.
12794 # If you have `file' or equivalent on your system and you're not sure
12795 # whether `pass_all' will *always* work, you probably want this one.
12796
12797 case $host_os in
12798 aix[4-9]*)
12799 lt_cv_deplibs_check_method=pass_all
12800 ;;
12801
12802 beos*)
12803 lt_cv_deplibs_check_method=pass_all
12804 ;;
12805
12806 bsdi[45]*)
12807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12808 lt_cv_file_magic_cmd='/usr/bin/file -L'
12809 lt_cv_file_magic_test_file=/shlib/libc.so
12810 ;;
12811
12812 cygwin*)
12813 # func_win32_libid is a shell function defined in ltmain.sh
12814 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12815 lt_cv_file_magic_cmd='func_win32_libid'
12816 ;;
12817
12818 mingw* | pw32*)
12819 # Base MSYS/MinGW do not provide the 'file' command needed by
12820 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12821 # unless we find 'file', for example because we are cross-compiling.
12822 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12823 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12824 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12825 lt_cv_file_magic_cmd='func_win32_libid'
12826 else
12827 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12828 lt_cv_file_magic_cmd='$OBJDUMP -f'
12829 fi
12830 ;;
12831
12832 cegcc*)
12833 # use the weaker test based on 'objdump'. See mingw*.
12834 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12835 lt_cv_file_magic_cmd='$OBJDUMP -f'
12836 ;;
12837
12838 darwin* | rhapsody*)
12839 lt_cv_deplibs_check_method=pass_all
12840 ;;
12841
12842 freebsd* | dragonfly*)
12843 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12844 case $host_cpu in
12845 i*86 )
12846 # Not sure whether the presence of OpenBSD here was a mistake.
12847 # Let's accept both of them until this is cleared up.
12848 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12849 lt_cv_file_magic_cmd=/usr/bin/file
12850 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12851 ;;
12852 esac
12853 else
12854 lt_cv_deplibs_check_method=pass_all
12855 fi
12856 ;;
12857
12858 gnu*)
12859 lt_cv_deplibs_check_method=pass_all
12860 ;;
12861
12862 haiku*)
12863 lt_cv_deplibs_check_method=pass_all
12864 ;;
12865
12866 hpux10.20* | hpux11*)
12867 lt_cv_file_magic_cmd=/usr/bin/file
12868 case $host_cpu in
12869 ia64*)
12870 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12871 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12872 ;;
12873 hppa*64*)
12874 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]'
12875 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12876 ;;
12877 *)
12878 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12879 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12880 ;;
12881 esac
12882 ;;
12883
12884 interix[3-9]*)
12885 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12886 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12887 ;;
12888
12889 irix5* | irix6* | nonstopux*)
12890 case $LD in
12891 *-32|*"-32 ") libmagic=32-bit;;
12892 *-n32|*"-n32 ") libmagic=N32;;
12893 *-64|*"-64 ") libmagic=64-bit;;
12894 *) libmagic=never-match;;
12895 esac
12896 lt_cv_deplibs_check_method=pass_all
12897 ;;
12898
12899 # This must be Linux ELF.
12900 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12901 lt_cv_deplibs_check_method=pass_all
12902 ;;
12903
12904 netbsd*)
12905 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12906 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12907 else
12908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12909 fi
12910 ;;
12911
12912 newos6*)
12913 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12914 lt_cv_file_magic_cmd=/usr/bin/file
12915 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12916 ;;
12917
12918 *nto* | *qnx*)
12919 lt_cv_deplibs_check_method=pass_all
12920 ;;
12921
12922 openbsd*)
12923 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12924 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12925 else
12926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12927 fi
12928 ;;
12929
12930 osf3* | osf4* | osf5*)
12931 lt_cv_deplibs_check_method=pass_all
12932 ;;
12933
12934 rdos*)
12935 lt_cv_deplibs_check_method=pass_all
12936 ;;
12937
12938 solaris*)
12939 lt_cv_deplibs_check_method=pass_all
12940 ;;
12941
12942 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12943 lt_cv_deplibs_check_method=pass_all
12944 ;;
12945
12946 sysv4 | sysv4.3*)
12947 case $host_vendor in
12948 motorola)
12949 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]'
12950 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12951 ;;
12952 ncr)
12953 lt_cv_deplibs_check_method=pass_all
12954 ;;
12955 sequent)
12956 lt_cv_file_magic_cmd='/bin/file'
12957 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12958 ;;
12959 sni)
12960 lt_cv_file_magic_cmd='/bin/file'
12961 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12962 lt_cv_file_magic_test_file=/lib/libc.so
12963 ;;
12964 siemens)
12965 lt_cv_deplibs_check_method=pass_all
12966 ;;
12967 pc)
12968 lt_cv_deplibs_check_method=pass_all
12969 ;;
12970 esac
12971 ;;
12972
12973 tpf*)
12974 lt_cv_deplibs_check_method=pass_all
12975 ;;
12976 esac
12977
12978 fi
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12980 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12981 file_magic_cmd=$lt_cv_file_magic_cmd
12982 deplibs_check_method=$lt_cv_deplibs_check_method
12983 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996 if test -n "$ac_tool_prefix"; then
12997 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12998 set dummy ${ac_tool_prefix}ar; ac_word=$2
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13000 $as_echo_n "checking for $ac_word... " >&6; }
13001 if test "${ac_cv_prog_AR+set}" = set; then :
13002 $as_echo_n "(cached) " >&6
13003 else
13004 if test -n "$AR"; then
13005 ac_cv_prog_AR="$AR" # Let the user override the test.
13006 else
13007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13008 for as_dir in $PATH
13009 do
13010 IFS=$as_save_IFS
13011 test -z "$as_dir" && as_dir=.
13012 for ac_exec_ext in '' $ac_executable_extensions; do
13013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13014 ac_cv_prog_AR="${ac_tool_prefix}ar"
13015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13016 break 2
13017 fi
13018 done
13019 done
13020 IFS=$as_save_IFS
13021
13022 fi
13023 fi
13024 AR=$ac_cv_prog_AR
13025 if test -n "$AR"; then
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13027 $as_echo "$AR" >&6; }
13028 else
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13030 $as_echo "no" >&6; }
13031 fi
13032
13033
13034 fi
13035 if test -z "$ac_cv_prog_AR"; then
13036 ac_ct_AR=$AR
13037 # Extract the first word of "ar", so it can be a program name with args.
13038 set dummy ar; ac_word=$2
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13040 $as_echo_n "checking for $ac_word... " >&6; }
13041 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13042 $as_echo_n "(cached) " >&6
13043 else
13044 if test -n "$ac_ct_AR"; then
13045 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13046 else
13047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048 for as_dir in $PATH
13049 do
13050 IFS=$as_save_IFS
13051 test -z "$as_dir" && as_dir=.
13052 for ac_exec_ext in '' $ac_executable_extensions; do
13053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13054 ac_cv_prog_ac_ct_AR="ar"
13055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13056 break 2
13057 fi
13058 done
13059 done
13060 IFS=$as_save_IFS
13061
13062 fi
13063 fi
13064 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13065 if test -n "$ac_ct_AR"; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13067 $as_echo "$ac_ct_AR" >&6; }
13068 else
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070 $as_echo "no" >&6; }
13071 fi
13072
13073 if test "x$ac_ct_AR" = x; then
13074 AR="false"
13075 else
13076 case $cross_compiling:$ac_tool_warned in
13077 yes:)
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13080 ac_tool_warned=yes ;;
13081 esac
13082 AR=$ac_ct_AR
13083 fi
13084 else
13085 AR="$ac_cv_prog_AR"
13086 fi
13087
13088 test -z "$AR" && AR=ar
13089 test -z "$AR_FLAGS" && AR_FLAGS=cru
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101 if test -n "$ac_tool_prefix"; then
13102 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13103 set dummy ${ac_tool_prefix}strip; ac_word=$2
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13105 $as_echo_n "checking for $ac_word... " >&6; }
13106 if test "${ac_cv_prog_STRIP+set}" = set; then :
13107 $as_echo_n "(cached) " >&6
13108 else
13109 if test -n "$STRIP"; then
13110 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13111 else
13112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13113 for as_dir in $PATH
13114 do
13115 IFS=$as_save_IFS
13116 test -z "$as_dir" && as_dir=.
13117 for ac_exec_ext in '' $ac_executable_extensions; do
13118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13119 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13121 break 2
13122 fi
13123 done
13124 done
13125 IFS=$as_save_IFS
13126
13127 fi
13128 fi
13129 STRIP=$ac_cv_prog_STRIP
13130 if test -n "$STRIP"; then
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13132 $as_echo "$STRIP" >&6; }
13133 else
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13135 $as_echo "no" >&6; }
13136 fi
13137
13138
13139 fi
13140 if test -z "$ac_cv_prog_STRIP"; then
13141 ac_ct_STRIP=$STRIP
13142 # Extract the first word of "strip", so it can be a program name with args.
13143 set dummy strip; ac_word=$2
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13145 $as_echo_n "checking for $ac_word... " >&6; }
13146 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13147 $as_echo_n "(cached) " >&6
13148 else
13149 if test -n "$ac_ct_STRIP"; then
13150 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13151 else
13152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13153 for as_dir in $PATH
13154 do
13155 IFS=$as_save_IFS
13156 test -z "$as_dir" && as_dir=.
13157 for ac_exec_ext in '' $ac_executable_extensions; do
13158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13159 ac_cv_prog_ac_ct_STRIP="strip"
13160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13161 break 2
13162 fi
13163 done
13164 done
13165 IFS=$as_save_IFS
13166
13167 fi
13168 fi
13169 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13170 if test -n "$ac_ct_STRIP"; then
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13172 $as_echo "$ac_ct_STRIP" >&6; }
13173 else
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13175 $as_echo "no" >&6; }
13176 fi
13177
13178 if test "x$ac_ct_STRIP" = x; then
13179 STRIP=":"
13180 else
13181 case $cross_compiling:$ac_tool_warned in
13182 yes:)
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13185 ac_tool_warned=yes ;;
13186 esac
13187 STRIP=$ac_ct_STRIP
13188 fi
13189 else
13190 STRIP="$ac_cv_prog_STRIP"
13191 fi
13192
13193 test -z "$STRIP" && STRIP=:
13194
13195
13196
13197
13198
13199
13200 if test -n "$ac_tool_prefix"; then
13201 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13202 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13204 $as_echo_n "checking for $ac_word... " >&6; }
13205 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13206 $as_echo_n "(cached) " >&6
13207 else
13208 if test -n "$RANLIB"; then
13209 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13210 else
13211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13212 for as_dir in $PATH
13213 do
13214 IFS=$as_save_IFS
13215 test -z "$as_dir" && as_dir=.
13216 for ac_exec_ext in '' $ac_executable_extensions; do
13217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13218 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13220 break 2
13221 fi
13222 done
13223 done
13224 IFS=$as_save_IFS
13225
13226 fi
13227 fi
13228 RANLIB=$ac_cv_prog_RANLIB
13229 if test -n "$RANLIB"; then
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13231 $as_echo "$RANLIB" >&6; }
13232 else
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13234 $as_echo "no" >&6; }
13235 fi
13236
13237
13238 fi
13239 if test -z "$ac_cv_prog_RANLIB"; then
13240 ac_ct_RANLIB=$RANLIB
13241 # Extract the first word of "ranlib", so it can be a program name with args.
13242 set dummy ranlib; ac_word=$2
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13244 $as_echo_n "checking for $ac_word... " >&6; }
13245 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13246 $as_echo_n "(cached) " >&6
13247 else
13248 if test -n "$ac_ct_RANLIB"; then
13249 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13250 else
13251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13252 for as_dir in $PATH
13253 do
13254 IFS=$as_save_IFS
13255 test -z "$as_dir" && as_dir=.
13256 for ac_exec_ext in '' $ac_executable_extensions; do
13257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13258 ac_cv_prog_ac_ct_RANLIB="ranlib"
13259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13260 break 2
13261 fi
13262 done
13263 done
13264 IFS=$as_save_IFS
13265
13266 fi
13267 fi
13268 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13269 if test -n "$ac_ct_RANLIB"; then
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13271 $as_echo "$ac_ct_RANLIB" >&6; }
13272 else
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13274 $as_echo "no" >&6; }
13275 fi
13276
13277 if test "x$ac_ct_RANLIB" = x; then
13278 RANLIB=":"
13279 else
13280 case $cross_compiling:$ac_tool_warned in
13281 yes:)
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13284 ac_tool_warned=yes ;;
13285 esac
13286 RANLIB=$ac_ct_RANLIB
13287 fi
13288 else
13289 RANLIB="$ac_cv_prog_RANLIB"
13290 fi
13291
13292 test -z "$RANLIB" && RANLIB=:
13293
13294
13295
13296
13297
13298
13299 # Determine commands to create old-style static archives.
13300 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13301 old_postinstall_cmds='chmod 644 $oldlib'
13302 old_postuninstall_cmds=
13303
13304 if test -n "$RANLIB"; then
13305 case $host_os in
13306 openbsd*)
13307 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13308 ;;
13309 *)
13310 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13311 ;;
13312 esac
13313 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13314 fi
13315
13316 case $host_os in
13317 darwin*)
13318 lock_old_archive_extraction=yes ;;
13319 *)
13320 lock_old_archive_extraction=no ;;
13321 esac
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361 # If no C compiler was specified, use CC.
13362 LTCC=${LTCC-"$CC"}
13363
13364 # If no C compiler flags were specified, use CFLAGS.
13365 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13366
13367 # Allow CC to be a program name with arguments.
13368 compiler=$CC
13369
13370
13371 # Check for command to grab the raw symbol name followed by C symbol from nm.
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13373 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13374 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13375 $as_echo_n "(cached) " >&6
13376 else
13377
13378 # These are sane defaults that work on at least a few old systems.
13379 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13380
13381 # Character class describing NM global symbol codes.
13382 symcode='[BCDEGRST]'
13383
13384 # Regexp to match symbols that can be accessed directly from C.
13385 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13386
13387 # Define system-specific variables.
13388 case $host_os in
13389 aix*)
13390 symcode='[BCDT]'
13391 ;;
13392 cygwin* | mingw* | pw32* | cegcc*)
13393 symcode='[ABCDGISTW]'
13394 ;;
13395 hpux*)
13396 if test "$host_cpu" = ia64; then
13397 symcode='[ABCDEGRST]'
13398 fi
13399 ;;
13400 irix* | nonstopux*)
13401 symcode='[BCDEGRST]'
13402 ;;
13403 osf*)
13404 symcode='[BCDEGQRST]'
13405 ;;
13406 solaris*)
13407 symcode='[BDRT]'
13408 ;;
13409 sco3.2v5*)
13410 symcode='[DT]'
13411 ;;
13412 sysv4.2uw2*)
13413 symcode='[DT]'
13414 ;;
13415 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13416 symcode='[ABDT]'
13417 ;;
13418 sysv4)
13419 symcode='[DFNSTU]'
13420 ;;
13421 esac
13422
13423 # If we're using GNU nm, then use its standard symbol codes.
13424 case `$NM -V 2>&1` in
13425 *GNU* | *'with BFD'*)
13426 symcode='[ABCDGIRSTW]' ;;
13427 esac
13428
13429 # Transform an extracted symbol line into a proper C declaration.
13430 # Some systems (esp. on ia64) link data and code symbols differently,
13431 # so use this general approach.
13432 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13433
13434 # Transform an extracted symbol line into symbol name and symbol address
13435 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13436 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'"
13437
13438 # Handle CRLF in mingw tool chain
13439 opt_cr=
13440 case $build_os in
13441 mingw*)
13442 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13443 ;;
13444 esac
13445
13446 # Try without a prefix underscore, then with it.
13447 for ac_symprfx in "" "_"; do
13448
13449 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13450 symxfrm="\\1 $ac_symprfx\\2 \\2"
13451
13452 # Write the raw and C identifiers.
13453 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13454 # Fake it for dumpbin and say T for any non-static function
13455 # and D for any global variable.
13456 # Also find C++ and __fastcall symbols from MSVC++,
13457 # which start with @ or ?.
13458 lt_cv_sys_global_symbol_pipe="$AWK '"\
13459 " {last_section=section; section=\$ 3};"\
13460 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13461 " \$ 0!~/External *\|/{next};"\
13462 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13463 " {if(hide[section]) next};"\
13464 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13465 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13466 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13467 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13468 " ' prfx=^$ac_symprfx"
13469 else
13470 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13471 fi
13472
13473 # Check to see that the pipe works correctly.
13474 pipe_works=no
13475
13476 rm -f conftest*
13477 cat > conftest.$ac_ext <<_LT_EOF
13478 #ifdef __cplusplus
13479 extern "C" {
13480 #endif
13481 char nm_test_var;
13482 void nm_test_func(void);
13483 void nm_test_func(void){}
13484 #ifdef __cplusplus
13485 }
13486 #endif
13487 int main(){nm_test_var='a';nm_test_func();return(0);}
13488 _LT_EOF
13489
13490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13491 (eval $ac_compile) 2>&5
13492 ac_status=$?
13493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13494 test $ac_status = 0; }; then
13495 # Now try to grab the symbols.
13496 nlist=conftest.nm
13497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13498 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13499 ac_status=$?
13500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13501 test $ac_status = 0; } && test -s "$nlist"; then
13502 # Try sorting and uniquifying the output.
13503 if sort "$nlist" | uniq > "$nlist"T; then
13504 mv -f "$nlist"T "$nlist"
13505 else
13506 rm -f "$nlist"T
13507 fi
13508
13509 # Make sure that we snagged all the symbols we need.
13510 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13511 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13512 cat <<_LT_EOF > conftest.$ac_ext
13513 #ifdef __cplusplus
13514 extern "C" {
13515 #endif
13516
13517 _LT_EOF
13518 # Now generate the symbol file.
13519 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13520
13521 cat <<_LT_EOF >> conftest.$ac_ext
13522
13523 /* The mapping between symbol names and symbols. */
13524 const struct {
13525 const char *name;
13526 void *address;
13527 }
13528 lt__PROGRAM__LTX_preloaded_symbols[] =
13529 {
13530 { "@PROGRAM@", (void *) 0 },
13531 _LT_EOF
13532 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13533 cat <<\_LT_EOF >> conftest.$ac_ext
13534 {0, (void *) 0}
13535 };
13536
13537 /* This works around a problem in FreeBSD linker */
13538 #ifdef FREEBSD_WORKAROUND
13539 static const void *lt_preloaded_setup() {
13540 return lt__PROGRAM__LTX_preloaded_symbols;
13541 }
13542 #endif
13543
13544 #ifdef __cplusplus
13545 }
13546 #endif
13547 _LT_EOF
13548 # Now try linking the two files.
13549 mv conftest.$ac_objext conftstm.$ac_objext
13550 lt_save_LIBS="$LIBS"
13551 lt_save_CFLAGS="$CFLAGS"
13552 LIBS="conftstm.$ac_objext"
13553 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13555 (eval $ac_link) 2>&5
13556 ac_status=$?
13557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13558 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13559 pipe_works=yes
13560 fi
13561 LIBS="$lt_save_LIBS"
13562 CFLAGS="$lt_save_CFLAGS"
13563 else
13564 echo "cannot find nm_test_func in $nlist" >&5
13565 fi
13566 else
13567 echo "cannot find nm_test_var in $nlist" >&5
13568 fi
13569 else
13570 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13571 fi
13572 else
13573 echo "$progname: failed program was:" >&5
13574 cat conftest.$ac_ext >&5
13575 fi
13576 rm -rf conftest* conftst*
13577
13578 # Do not use the global_symbol_pipe unless it works.
13579 if test "$pipe_works" = yes; then
13580 break
13581 else
13582 lt_cv_sys_global_symbol_pipe=
13583 fi
13584 done
13585
13586 fi
13587
13588 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13589 lt_cv_sys_global_symbol_to_cdecl=
13590 fi
13591 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13593 $as_echo "failed" >&6; }
13594 else
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13596 $as_echo "ok" >&6; }
13597 fi
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620 # Check whether --enable-libtool-lock was given.
13621 if test "${enable_libtool_lock+set}" = set; then :
13622 enableval=$enable_libtool_lock;
13623 fi
13624
13625 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13626
13627 # Some flags need to be propagated to the compiler or linker for good
13628 # libtool support.
13629 case $host in
13630 ia64-*-hpux*)
13631 # Find out which ABI we are using.
13632 echo 'int i;' > conftest.$ac_ext
13633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13634 (eval $ac_compile) 2>&5
13635 ac_status=$?
13636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13637 test $ac_status = 0; }; then
13638 case `/usr/bin/file conftest.$ac_objext` in
13639 *ELF-32*)
13640 HPUX_IA64_MODE="32"
13641 ;;
13642 *ELF-64*)
13643 HPUX_IA64_MODE="64"
13644 ;;
13645 esac
13646 fi
13647 rm -rf conftest*
13648 ;;
13649 *-*-irix6*)
13650 # Find out which ABI we are using.
13651 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13653 (eval $ac_compile) 2>&5
13654 ac_status=$?
13655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13656 test $ac_status = 0; }; then
13657 if test "$lt_cv_prog_gnu_ld" = yes; then
13658 case `/usr/bin/file conftest.$ac_objext` in
13659 *32-bit*)
13660 LD="${LD-ld} -melf32bsmip"
13661 ;;
13662 *N32*)
13663 LD="${LD-ld} -melf32bmipn32"
13664 ;;
13665 *64-bit*)
13666 LD="${LD-ld} -melf64bmip"
13667 ;;
13668 esac
13669 else
13670 case `/usr/bin/file conftest.$ac_objext` in
13671 *32-bit*)
13672 LD="${LD-ld} -32"
13673 ;;
13674 *N32*)
13675 LD="${LD-ld} -n32"
13676 ;;
13677 *64-bit*)
13678 LD="${LD-ld} -64"
13679 ;;
13680 esac
13681 fi
13682 fi
13683 rm -rf conftest*
13684 ;;
13685
13686 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13687 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13688 # Find out which ABI we are using.
13689 echo 'int i;' > conftest.$ac_ext
13690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13691 (eval $ac_compile) 2>&5
13692 ac_status=$?
13693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13694 test $ac_status = 0; }; then
13695 case `/usr/bin/file conftest.o` in
13696 *32-bit*)
13697 case $host in
13698 x86_64-*kfreebsd*-gnu)
13699 LD="${LD-ld} -m elf_i386_fbsd"
13700 ;;
13701 x86_64-*linux*)
13702 LD="${LD-ld} -m elf_i386"
13703 ;;
13704 ppc64-*linux*|powerpc64-*linux*)
13705 LD="${LD-ld} -m elf32ppclinux"
13706 ;;
13707 s390x-*linux*)
13708 LD="${LD-ld} -m elf_s390"
13709 ;;
13710 sparc64-*linux*)
13711 LD="${LD-ld} -m elf32_sparc"
13712 ;;
13713 esac
13714 ;;
13715 *64-bit*)
13716 case $host in
13717 x86_64-*kfreebsd*-gnu)
13718 LD="${LD-ld} -m elf_x86_64_fbsd"
13719 ;;
13720 x86_64-*linux*)
13721 LD="${LD-ld} -m elf_x86_64"
13722 ;;
13723 ppc*-*linux*|powerpc*-*linux*)
13724 LD="${LD-ld} -m elf64ppc"
13725 ;;
13726 s390*-*linux*|s390*-*tpf*)
13727 LD="${LD-ld} -m elf64_s390"
13728 ;;
13729 sparc*-*linux*)
13730 LD="${LD-ld} -m elf64_sparc"
13731 ;;
13732 esac
13733 ;;
13734 esac
13735 fi
13736 rm -rf conftest*
13737 ;;
13738
13739 *-*-sco3.2v5*)
13740 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13741 SAVE_CFLAGS="$CFLAGS"
13742 CFLAGS="$CFLAGS -belf"
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13744 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13745 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13746 $as_echo_n "(cached) " >&6
13747 else
13748 ac_ext=c
13749 ac_cpp='$CPP $CPPFLAGS'
13750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13753
13754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755 /* end confdefs.h. */
13756
13757 int
13758 main ()
13759 {
13760
13761 ;
13762 return 0;
13763 }
13764 _ACEOF
13765 if ac_fn_c_try_link "$LINENO"; then :
13766 lt_cv_cc_needs_belf=yes
13767 else
13768 lt_cv_cc_needs_belf=no
13769 fi
13770 rm -f core conftest.err conftest.$ac_objext \
13771 conftest$ac_exeext conftest.$ac_ext
13772 ac_ext=c
13773 ac_cpp='$CPP $CPPFLAGS'
13774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13777
13778 fi
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13780 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13781 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13782 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13783 CFLAGS="$SAVE_CFLAGS"
13784 fi
13785 ;;
13786 sparc*-*solaris*)
13787 # Find out which ABI we are using.
13788 echo 'int i;' > conftest.$ac_ext
13789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13790 (eval $ac_compile) 2>&5
13791 ac_status=$?
13792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13793 test $ac_status = 0; }; then
13794 case `/usr/bin/file conftest.o` in
13795 *64-bit*)
13796 case $lt_cv_prog_gnu_ld in
13797 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13798 *)
13799 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13800 LD="${LD-ld} -64"
13801 fi
13802 ;;
13803 esac
13804 ;;
13805 esac
13806 fi
13807 rm -rf conftest*
13808 ;;
13809 esac
13810
13811 need_locks="$enable_libtool_lock"
13812
13813
13814 case $host_os in
13815 rhapsody* | darwin*)
13816 if test -n "$ac_tool_prefix"; then
13817 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13818 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13820 $as_echo_n "checking for $ac_word... " >&6; }
13821 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13822 $as_echo_n "(cached) " >&6
13823 else
13824 if test -n "$DSYMUTIL"; then
13825 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13826 else
13827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13828 for as_dir in $PATH
13829 do
13830 IFS=$as_save_IFS
13831 test -z "$as_dir" && as_dir=.
13832 for ac_exec_ext in '' $ac_executable_extensions; do
13833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13834 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13836 break 2
13837 fi
13838 done
13839 done
13840 IFS=$as_save_IFS
13841
13842 fi
13843 fi
13844 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13845 if test -n "$DSYMUTIL"; then
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13847 $as_echo "$DSYMUTIL" >&6; }
13848 else
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13850 $as_echo "no" >&6; }
13851 fi
13852
13853
13854 fi
13855 if test -z "$ac_cv_prog_DSYMUTIL"; then
13856 ac_ct_DSYMUTIL=$DSYMUTIL
13857 # Extract the first word of "dsymutil", so it can be a program name with args.
13858 set dummy dsymutil; ac_word=$2
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13860 $as_echo_n "checking for $ac_word... " >&6; }
13861 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13862 $as_echo_n "(cached) " >&6
13863 else
13864 if test -n "$ac_ct_DSYMUTIL"; then
13865 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13866 else
13867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13868 for as_dir in $PATH
13869 do
13870 IFS=$as_save_IFS
13871 test -z "$as_dir" && as_dir=.
13872 for ac_exec_ext in '' $ac_executable_extensions; do
13873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13874 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13876 break 2
13877 fi
13878 done
13879 done
13880 IFS=$as_save_IFS
13881
13882 fi
13883 fi
13884 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13885 if test -n "$ac_ct_DSYMUTIL"; then
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13887 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13888 else
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13890 $as_echo "no" >&6; }
13891 fi
13892
13893 if test "x$ac_ct_DSYMUTIL" = x; then
13894 DSYMUTIL=":"
13895 else
13896 case $cross_compiling:$ac_tool_warned in
13897 yes:)
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13900 ac_tool_warned=yes ;;
13901 esac
13902 DSYMUTIL=$ac_ct_DSYMUTIL
13903 fi
13904 else
13905 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13906 fi
13907
13908 if test -n "$ac_tool_prefix"; then
13909 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13910 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13912 $as_echo_n "checking for $ac_word... " >&6; }
13913 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13914 $as_echo_n "(cached) " >&6
13915 else
13916 if test -n "$NMEDIT"; then
13917 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13918 else
13919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13920 for as_dir in $PATH
13921 do
13922 IFS=$as_save_IFS
13923 test -z "$as_dir" && as_dir=.
13924 for ac_exec_ext in '' $ac_executable_extensions; do
13925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13926 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13928 break 2
13929 fi
13930 done
13931 done
13932 IFS=$as_save_IFS
13933
13934 fi
13935 fi
13936 NMEDIT=$ac_cv_prog_NMEDIT
13937 if test -n "$NMEDIT"; then
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13939 $as_echo "$NMEDIT" >&6; }
13940 else
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13942 $as_echo "no" >&6; }
13943 fi
13944
13945
13946 fi
13947 if test -z "$ac_cv_prog_NMEDIT"; then
13948 ac_ct_NMEDIT=$NMEDIT
13949 # Extract the first word of "nmedit", so it can be a program name with args.
13950 set dummy nmedit; ac_word=$2
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13952 $as_echo_n "checking for $ac_word... " >&6; }
13953 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13954 $as_echo_n "(cached) " >&6
13955 else
13956 if test -n "$ac_ct_NMEDIT"; then
13957 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13958 else
13959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13960 for as_dir in $PATH
13961 do
13962 IFS=$as_save_IFS
13963 test -z "$as_dir" && as_dir=.
13964 for ac_exec_ext in '' $ac_executable_extensions; do
13965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13966 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13968 break 2
13969 fi
13970 done
13971 done
13972 IFS=$as_save_IFS
13973
13974 fi
13975 fi
13976 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13977 if test -n "$ac_ct_NMEDIT"; then
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13979 $as_echo "$ac_ct_NMEDIT" >&6; }
13980 else
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13982 $as_echo "no" >&6; }
13983 fi
13984
13985 if test "x$ac_ct_NMEDIT" = x; then
13986 NMEDIT=":"
13987 else
13988 case $cross_compiling:$ac_tool_warned in
13989 yes:)
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13992 ac_tool_warned=yes ;;
13993 esac
13994 NMEDIT=$ac_ct_NMEDIT
13995 fi
13996 else
13997 NMEDIT="$ac_cv_prog_NMEDIT"
13998 fi
13999
14000 if test -n "$ac_tool_prefix"; then
14001 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14002 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14004 $as_echo_n "checking for $ac_word... " >&6; }
14005 if test "${ac_cv_prog_LIPO+set}" = set; then :
14006 $as_echo_n "(cached) " >&6
14007 else
14008 if test -n "$LIPO"; then
14009 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14010 else
14011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14012 for as_dir in $PATH
14013 do
14014 IFS=$as_save_IFS
14015 test -z "$as_dir" && as_dir=.
14016 for ac_exec_ext in '' $ac_executable_extensions; do
14017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14018 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14020 break 2
14021 fi
14022 done
14023 done
14024 IFS=$as_save_IFS
14025
14026 fi
14027 fi
14028 LIPO=$ac_cv_prog_LIPO
14029 if test -n "$LIPO"; then
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14031 $as_echo "$LIPO" >&6; }
14032 else
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14034 $as_echo "no" >&6; }
14035 fi
14036
14037
14038 fi
14039 if test -z "$ac_cv_prog_LIPO"; then
14040 ac_ct_LIPO=$LIPO
14041 # Extract the first word of "lipo", so it can be a program name with args.
14042 set dummy lipo; ac_word=$2
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14044 $as_echo_n "checking for $ac_word... " >&6; }
14045 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14046 $as_echo_n "(cached) " >&6
14047 else
14048 if test -n "$ac_ct_LIPO"; then
14049 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14050 else
14051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14052 for as_dir in $PATH
14053 do
14054 IFS=$as_save_IFS
14055 test -z "$as_dir" && as_dir=.
14056 for ac_exec_ext in '' $ac_executable_extensions; do
14057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14058 ac_cv_prog_ac_ct_LIPO="lipo"
14059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14060 break 2
14061 fi
14062 done
14063 done
14064 IFS=$as_save_IFS
14065
14066 fi
14067 fi
14068 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14069 if test -n "$ac_ct_LIPO"; then
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14071 $as_echo "$ac_ct_LIPO" >&6; }
14072 else
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14074 $as_echo "no" >&6; }
14075 fi
14076
14077 if test "x$ac_ct_LIPO" = x; then
14078 LIPO=":"
14079 else
14080 case $cross_compiling:$ac_tool_warned in
14081 yes:)
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14084 ac_tool_warned=yes ;;
14085 esac
14086 LIPO=$ac_ct_LIPO
14087 fi
14088 else
14089 LIPO="$ac_cv_prog_LIPO"
14090 fi
14091
14092 if test -n "$ac_tool_prefix"; then
14093 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14094 set dummy ${ac_tool_prefix}otool; ac_word=$2
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14096 $as_echo_n "checking for $ac_word... " >&6; }
14097 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14098 $as_echo_n "(cached) " >&6
14099 else
14100 if test -n "$OTOOL"; then
14101 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14102 else
14103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14104 for as_dir in $PATH
14105 do
14106 IFS=$as_save_IFS
14107 test -z "$as_dir" && as_dir=.
14108 for ac_exec_ext in '' $ac_executable_extensions; do
14109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14110 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14112 break 2
14113 fi
14114 done
14115 done
14116 IFS=$as_save_IFS
14117
14118 fi
14119 fi
14120 OTOOL=$ac_cv_prog_OTOOL
14121 if test -n "$OTOOL"; then
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14123 $as_echo "$OTOOL" >&6; }
14124 else
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14126 $as_echo "no" >&6; }
14127 fi
14128
14129
14130 fi
14131 if test -z "$ac_cv_prog_OTOOL"; then
14132 ac_ct_OTOOL=$OTOOL
14133 # Extract the first word of "otool", so it can be a program name with args.
14134 set dummy otool; ac_word=$2
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14136 $as_echo_n "checking for $ac_word... " >&6; }
14137 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14138 $as_echo_n "(cached) " >&6
14139 else
14140 if test -n "$ac_ct_OTOOL"; then
14141 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14142 else
14143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14144 for as_dir in $PATH
14145 do
14146 IFS=$as_save_IFS
14147 test -z "$as_dir" && as_dir=.
14148 for ac_exec_ext in '' $ac_executable_extensions; do
14149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14150 ac_cv_prog_ac_ct_OTOOL="otool"
14151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14152 break 2
14153 fi
14154 done
14155 done
14156 IFS=$as_save_IFS
14157
14158 fi
14159 fi
14160 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14161 if test -n "$ac_ct_OTOOL"; then
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14163 $as_echo "$ac_ct_OTOOL" >&6; }
14164 else
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14166 $as_echo "no" >&6; }
14167 fi
14168
14169 if test "x$ac_ct_OTOOL" = x; then
14170 OTOOL=":"
14171 else
14172 case $cross_compiling:$ac_tool_warned in
14173 yes:)
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14176 ac_tool_warned=yes ;;
14177 esac
14178 OTOOL=$ac_ct_OTOOL
14179 fi
14180 else
14181 OTOOL="$ac_cv_prog_OTOOL"
14182 fi
14183
14184 if test -n "$ac_tool_prefix"; then
14185 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14186 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14188 $as_echo_n "checking for $ac_word... " >&6; }
14189 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14190 $as_echo_n "(cached) " >&6
14191 else
14192 if test -n "$OTOOL64"; then
14193 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14194 else
14195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14196 for as_dir in $PATH
14197 do
14198 IFS=$as_save_IFS
14199 test -z "$as_dir" && as_dir=.
14200 for ac_exec_ext in '' $ac_executable_extensions; do
14201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14202 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14204 break 2
14205 fi
14206 done
14207 done
14208 IFS=$as_save_IFS
14209
14210 fi
14211 fi
14212 OTOOL64=$ac_cv_prog_OTOOL64
14213 if test -n "$OTOOL64"; then
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14215 $as_echo "$OTOOL64" >&6; }
14216 else
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14218 $as_echo "no" >&6; }
14219 fi
14220
14221
14222 fi
14223 if test -z "$ac_cv_prog_OTOOL64"; then
14224 ac_ct_OTOOL64=$OTOOL64
14225 # Extract the first word of "otool64", so it can be a program name with args.
14226 set dummy otool64; ac_word=$2
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14228 $as_echo_n "checking for $ac_word... " >&6; }
14229 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14230 $as_echo_n "(cached) " >&6
14231 else
14232 if test -n "$ac_ct_OTOOL64"; then
14233 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14234 else
14235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14236 for as_dir in $PATH
14237 do
14238 IFS=$as_save_IFS
14239 test -z "$as_dir" && as_dir=.
14240 for ac_exec_ext in '' $ac_executable_extensions; do
14241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14242 ac_cv_prog_ac_ct_OTOOL64="otool64"
14243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14244 break 2
14245 fi
14246 done
14247 done
14248 IFS=$as_save_IFS
14249
14250 fi
14251 fi
14252 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14253 if test -n "$ac_ct_OTOOL64"; then
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14255 $as_echo "$ac_ct_OTOOL64" >&6; }
14256 else
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14258 $as_echo "no" >&6; }
14259 fi
14260
14261 if test "x$ac_ct_OTOOL64" = x; then
14262 OTOOL64=":"
14263 else
14264 case $cross_compiling:$ac_tool_warned in
14265 yes:)
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14268 ac_tool_warned=yes ;;
14269 esac
14270 OTOOL64=$ac_ct_OTOOL64
14271 fi
14272 else
14273 OTOOL64="$ac_cv_prog_OTOOL64"
14274 fi
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14303 $as_echo_n "checking for -single_module linker flag... " >&6; }
14304 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14305 $as_echo_n "(cached) " >&6
14306 else
14307 lt_cv_apple_cc_single_mod=no
14308 if test -z "${LT_MULTI_MODULE}"; then
14309 # By default we will add the -single_module flag. You can override
14310 # by either setting the environment variable LT_MULTI_MODULE
14311 # non-empty at configure time, or by adding -multi_module to the
14312 # link flags.
14313 rm -rf libconftest.dylib*
14314 echo "int foo(void){return 1;}" > conftest.c
14315 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14316 -dynamiclib -Wl,-single_module conftest.c" >&5
14317 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14318 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14319 _lt_result=$?
14320 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14321 lt_cv_apple_cc_single_mod=yes
14322 else
14323 cat conftest.err >&5
14324 fi
14325 rm -rf libconftest.dylib*
14326 rm -f conftest.*
14327 fi
14328 fi
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14330 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14332 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14333 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14334 $as_echo_n "(cached) " >&6
14335 else
14336 lt_cv_ld_exported_symbols_list=no
14337 save_LDFLAGS=$LDFLAGS
14338 echo "_main" > conftest.sym
14339 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14341 /* end confdefs.h. */
14342
14343 int
14344 main ()
14345 {
14346
14347 ;
14348 return 0;
14349 }
14350 _ACEOF
14351 if ac_fn_c_try_link "$LINENO"; then :
14352 lt_cv_ld_exported_symbols_list=yes
14353 else
14354 lt_cv_ld_exported_symbols_list=no
14355 fi
14356 rm -f core conftest.err conftest.$ac_objext \
14357 conftest$ac_exeext conftest.$ac_ext
14358 LDFLAGS="$save_LDFLAGS"
14359
14360 fi
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14362 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14364 $as_echo_n "checking for -force_load linker flag... " >&6; }
14365 if test "${lt_cv_ld_force_load+set}" = set; then :
14366 $as_echo_n "(cached) " >&6
14367 else
14368 lt_cv_ld_force_load=no
14369 cat > conftest.c << _LT_EOF
14370 int forced_loaded() { return 2;}
14371 _LT_EOF
14372 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14373 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14374 echo "$AR cru libconftest.a conftest.o" >&5
14375 $AR cru libconftest.a conftest.o 2>&5
14376 cat > conftest.c << _LT_EOF
14377 int main() { return 0;}
14378 _LT_EOF
14379 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14380 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14381 _lt_result=$?
14382 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14383 lt_cv_ld_force_load=yes
14384 else
14385 cat conftest.err >&5
14386 fi
14387 rm -f conftest.err libconftest.a conftest conftest.c
14388 rm -rf conftest.dSYM
14389
14390 fi
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14392 $as_echo "$lt_cv_ld_force_load" >&6; }
14393 case $host_os in
14394 rhapsody* | darwin1.[012])
14395 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14396 darwin1.*)
14397 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14398 darwin*) # darwin 5.x on
14399 # if running on 10.5 or later, the deployment target defaults
14400 # to the OS version, if on x86, and 10.4, the deployment
14401 # target defaults to 10.4. Don't you love it?
14402 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14403 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14404 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14405 10.[012]*)
14406 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14407 10.*)
14408 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14409 esac
14410 ;;
14411 esac
14412 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14413 _lt_dar_single_mod='$single_module'
14414 fi
14415 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14416 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14417 else
14418 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14419 fi
14420 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14421 _lt_dsymutil='~$DSYMUTIL $lib || :'
14422 else
14423 _lt_dsymutil=
14424 fi
14425 ;;
14426 esac
14427
14428 for ac_header in dlfcn.h
14429 do :
14430 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14431 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14432 cat >>confdefs.h <<_ACEOF
14433 #define HAVE_DLFCN_H 1
14434 _ACEOF
14435
14436 fi
14437 done
14438
14439
14440
14441
14442
14443 # Set options
14444
14445
14446
14447 enable_dlopen=no
14448
14449
14450 enable_win32_dll=no
14451
14452
14453 # Check whether --enable-shared was given.
14454 if test "${enable_shared+set}" = set; then :
14455 enableval=$enable_shared; p=${PACKAGE-default}
14456 case $enableval in
14457 yes) enable_shared=yes ;;
14458 no) enable_shared=no ;;
14459 *)
14460 enable_shared=no
14461 # Look at the argument we got. We use all the common list separators.
14462 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14463 for pkg in $enableval; do
14464 IFS="$lt_save_ifs"
14465 if test "X$pkg" = "X$p"; then
14466 enable_shared=yes
14467 fi
14468 done
14469 IFS="$lt_save_ifs"
14470 ;;
14471 esac
14472 else
14473 enable_shared=yes
14474 fi
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484 # Check whether --enable-static was given.
14485 if test "${enable_static+set}" = set; then :
14486 enableval=$enable_static; p=${PACKAGE-default}
14487 case $enableval in
14488 yes) enable_static=yes ;;
14489 no) enable_static=no ;;
14490 *)
14491 enable_static=no
14492 # Look at the argument we got. We use all the common list separators.
14493 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14494 for pkg in $enableval; do
14495 IFS="$lt_save_ifs"
14496 if test "X$pkg" = "X$p"; then
14497 enable_static=yes
14498 fi
14499 done
14500 IFS="$lt_save_ifs"
14501 ;;
14502 esac
14503 else
14504 enable_static=yes
14505 fi
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516 # Check whether --with-pic was given.
14517 if test "${with_pic+set}" = set; then :
14518 withval=$with_pic; pic_mode="$withval"
14519 else
14520 pic_mode=default
14521 fi
14522
14523
14524 test -z "$pic_mode" && pic_mode=default
14525
14526
14527
14528
14529
14530
14531
14532 # Check whether --enable-fast-install was given.
14533 if test "${enable_fast_install+set}" = set; then :
14534 enableval=$enable_fast_install; p=${PACKAGE-default}
14535 case $enableval in
14536 yes) enable_fast_install=yes ;;
14537 no) enable_fast_install=no ;;
14538 *)
14539 enable_fast_install=no
14540 # Look at the argument we got. We use all the common list separators.
14541 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14542 for pkg in $enableval; do
14543 IFS="$lt_save_ifs"
14544 if test "X$pkg" = "X$p"; then
14545 enable_fast_install=yes
14546 fi
14547 done
14548 IFS="$lt_save_ifs"
14549 ;;
14550 esac
14551 else
14552 enable_fast_install=yes
14553 fi
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565 # This can be used to rebuild libtool when needed
14566 LIBTOOL_DEPS="$ltmain"
14567
14568 # Always use our own libtool.
14569 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596 test -z "$LN_S" && LN_S="ln -s"
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611 if test -n "${ZSH_VERSION+set}" ; then
14612 setopt NO_GLOB_SUBST
14613 fi
14614
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14616 $as_echo_n "checking for objdir... " >&6; }
14617 if test "${lt_cv_objdir+set}" = set; then :
14618 $as_echo_n "(cached) " >&6
14619 else
14620 rm -f .libs 2>/dev/null
14621 mkdir .libs 2>/dev/null
14622 if test -d .libs; then
14623 lt_cv_objdir=.libs
14624 else
14625 # MS-DOS does not allow filenames that begin with a dot.
14626 lt_cv_objdir=_libs
14627 fi
14628 rmdir .libs 2>/dev/null
14629 fi
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14631 $as_echo "$lt_cv_objdir" >&6; }
14632 objdir=$lt_cv_objdir
14633
14634
14635
14636
14637
14638 cat >>confdefs.h <<_ACEOF
14639 #define LT_OBJDIR "$lt_cv_objdir/"
14640 _ACEOF
14641
14642
14643
14644
14645 case $host_os in
14646 aix3*)
14647 # AIX sometimes has problems with the GCC collect2 program. For some
14648 # reason, if we set the COLLECT_NAMES environment variable, the problems
14649 # vanish in a puff of smoke.
14650 if test "X${COLLECT_NAMES+set}" != Xset; then
14651 COLLECT_NAMES=
14652 export COLLECT_NAMES
14653 fi
14654 ;;
14655 esac
14656
14657 # Global variables:
14658 ofile=libtool
14659 can_build_shared=yes
14660
14661 # All known linkers require a `.a' archive for static linking (except MSVC,
14662 # which needs '.lib').
14663 libext=a
14664
14665 with_gnu_ld="$lt_cv_prog_gnu_ld"
14666
14667 old_CC="$CC"
14668 old_CFLAGS="$CFLAGS"
14669
14670 # Set sane defaults for various variables
14671 test -z "$CC" && CC=cc
14672 test -z "$LTCC" && LTCC=$CC
14673 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14674 test -z "$LD" && LD=ld
14675 test -z "$ac_objext" && ac_objext=o
14676
14677 for cc_temp in $compiler""; do
14678 case $cc_temp in
14679 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14680 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14681 \-*) ;;
14682 *) break;;
14683 esac
14684 done
14685 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14686
14687
14688 # Only perform the check for file, if the check method requires it
14689 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14690 case $deplibs_check_method in
14691 file_magic*)
14692 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14694 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14695 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14696 $as_echo_n "(cached) " >&6
14697 else
14698 case $MAGIC_CMD in
14699 [\\/*] | ?:[\\/]*)
14700 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14701 ;;
14702 *)
14703 lt_save_MAGIC_CMD="$MAGIC_CMD"
14704 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14705 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14706 for ac_dir in $ac_dummy; do
14707 IFS="$lt_save_ifs"
14708 test -z "$ac_dir" && ac_dir=.
14709 if test -f $ac_dir/${ac_tool_prefix}file; then
14710 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14711 if test -n "$file_magic_test_file"; then
14712 case $deplibs_check_method in
14713 "file_magic "*)
14714 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14715 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14716 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14717 $EGREP "$file_magic_regex" > /dev/null; then
14718 :
14719 else
14720 cat <<_LT_EOF 1>&2
14721
14722 *** Warning: the command libtool uses to detect shared libraries,
14723 *** $file_magic_cmd, produces output that libtool cannot recognize.
14724 *** The result is that libtool may fail to recognize shared libraries
14725 *** as such. This will affect the creation of libtool libraries that
14726 *** depend on shared libraries, but programs linked with such libtool
14727 *** libraries will work regardless of this problem. Nevertheless, you
14728 *** may want to report the problem to your system manager and/or to
14729 *** bug-libtool@gnu.org
14730
14731 _LT_EOF
14732 fi ;;
14733 esac
14734 fi
14735 break
14736 fi
14737 done
14738 IFS="$lt_save_ifs"
14739 MAGIC_CMD="$lt_save_MAGIC_CMD"
14740 ;;
14741 esac
14742 fi
14743
14744 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14745 if test -n "$MAGIC_CMD"; then
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14747 $as_echo "$MAGIC_CMD" >&6; }
14748 else
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14750 $as_echo "no" >&6; }
14751 fi
14752
14753
14754
14755
14756
14757 if test -z "$lt_cv_path_MAGIC_CMD"; then
14758 if test -n "$ac_tool_prefix"; then
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14760 $as_echo_n "checking for file... " >&6; }
14761 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14762 $as_echo_n "(cached) " >&6
14763 else
14764 case $MAGIC_CMD in
14765 [\\/*] | ?:[\\/]*)
14766 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14767 ;;
14768 *)
14769 lt_save_MAGIC_CMD="$MAGIC_CMD"
14770 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14771 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14772 for ac_dir in $ac_dummy; do
14773 IFS="$lt_save_ifs"
14774 test -z "$ac_dir" && ac_dir=.
14775 if test -f $ac_dir/file; then
14776 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14777 if test -n "$file_magic_test_file"; then
14778 case $deplibs_check_method in
14779 "file_magic "*)
14780 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14781 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14782 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14783 $EGREP "$file_magic_regex" > /dev/null; then
14784 :
14785 else
14786 cat <<_LT_EOF 1>&2
14787
14788 *** Warning: the command libtool uses to detect shared libraries,
14789 *** $file_magic_cmd, produces output that libtool cannot recognize.
14790 *** The result is that libtool may fail to recognize shared libraries
14791 *** as such. This will affect the creation of libtool libraries that
14792 *** depend on shared libraries, but programs linked with such libtool
14793 *** libraries will work regardless of this problem. Nevertheless, you
14794 *** may want to report the problem to your system manager and/or to
14795 *** bug-libtool@gnu.org
14796
14797 _LT_EOF
14798 fi ;;
14799 esac
14800 fi
14801 break
14802 fi
14803 done
14804 IFS="$lt_save_ifs"
14805 MAGIC_CMD="$lt_save_MAGIC_CMD"
14806 ;;
14807 esac
14808 fi
14809
14810 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14811 if test -n "$MAGIC_CMD"; then
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14813 $as_echo "$MAGIC_CMD" >&6; }
14814 else
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14816 $as_echo "no" >&6; }
14817 fi
14818
14819
14820 else
14821 MAGIC_CMD=:
14822 fi
14823 fi
14824
14825 fi
14826 ;;
14827 esac
14828
14829 # Use C for the default configuration in the libtool script
14830
14831 lt_save_CC="$CC"
14832 ac_ext=c
14833 ac_cpp='$CPP $CPPFLAGS'
14834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14837
14838
14839 # Source file extension for C test sources.
14840 ac_ext=c
14841
14842 # Object file extension for compiled C test sources.
14843 objext=o
14844 objext=$objext
14845
14846 # Code to be used in simple compile tests
14847 lt_simple_compile_test_code="int some_variable = 0;"
14848
14849 # Code to be used in simple link tests
14850 lt_simple_link_test_code='int main(){return(0);}'
14851
14852
14853
14854
14855
14856
14857
14858 # If no C compiler was specified, use CC.
14859 LTCC=${LTCC-"$CC"}
14860
14861 # If no C compiler flags were specified, use CFLAGS.
14862 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14863
14864 # Allow CC to be a program name with arguments.
14865 compiler=$CC
14866
14867 # Save the default compiler, since it gets overwritten when the other
14868 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14869 compiler_DEFAULT=$CC
14870
14871 # save warnings/boilerplate of simple test code
14872 ac_outfile=conftest.$ac_objext
14873 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14874 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14875 _lt_compiler_boilerplate=`cat conftest.err`
14876 $RM conftest*
14877
14878 ac_outfile=conftest.$ac_objext
14879 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14880 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14881 _lt_linker_boilerplate=`cat conftest.err`
14882 $RM -r conftest*
14883
14884
14885 ## CAVEAT EMPTOR:
14886 ## There is no encapsulation within the following macros, do not change
14887 ## the running order or otherwise move them around unless you know exactly
14888 ## what you are doing...
14889 if test -n "$compiler"; then
14890
14891 lt_prog_compiler_no_builtin_flag=
14892
14893 if test "$GCC" = yes; then
14894 case $cc_basename in
14895 nvcc*)
14896 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14897 *)
14898 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14899 esac
14900
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14902 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14903 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14904 $as_echo_n "(cached) " >&6
14905 else
14906 lt_cv_prog_compiler_rtti_exceptions=no
14907 ac_outfile=conftest.$ac_objext
14908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14909 lt_compiler_flag="-fno-rtti -fno-exceptions"
14910 # Insert the option either (1) after the last *FLAGS variable, or
14911 # (2) before a word containing "conftest.", or (3) at the end.
14912 # Note that $ac_compile itself does not contain backslashes and begins
14913 # with a dollar sign (not a hyphen), so the echo should work correctly.
14914 # The option is referenced via a variable to avoid confusing sed.
14915 lt_compile=`echo "$ac_compile" | $SED \
14916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14918 -e 's:$: $lt_compiler_flag:'`
14919 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14920 (eval "$lt_compile" 2>conftest.err)
14921 ac_status=$?
14922 cat conftest.err >&5
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 if (exit $ac_status) && test -s "$ac_outfile"; then
14925 # The compiler can only warn and ignore the option if not recognized
14926 # So say no if there are warnings other than the usual output.
14927 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14929 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14930 lt_cv_prog_compiler_rtti_exceptions=yes
14931 fi
14932 fi
14933 $RM conftest*
14934
14935 fi
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14937 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14938
14939 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14940 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14941 else
14942 :
14943 fi
14944
14945 fi
14946
14947
14948
14949
14950
14951
14952 lt_prog_compiler_wl=
14953 lt_prog_compiler_pic=
14954 lt_prog_compiler_static=
14955
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14957 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14958
14959 if test "$GCC" = yes; then
14960 lt_prog_compiler_wl='-Wl,'
14961 lt_prog_compiler_static='-static'
14962
14963 case $host_os in
14964 aix*)
14965 # All AIX code is PIC.
14966 if test "$host_cpu" = ia64; then
14967 # AIX 5 now supports IA64 processor
14968 lt_prog_compiler_static='-Bstatic'
14969 fi
14970 ;;
14971
14972 amigaos*)
14973 case $host_cpu in
14974 powerpc)
14975 # see comment about AmigaOS4 .so support
14976 lt_prog_compiler_pic='-fPIC'
14977 ;;
14978 m68k)
14979 # FIXME: we need at least 68020 code to build shared libraries, but
14980 # adding the `-m68020' flag to GCC prevents building anything better,
14981 # like `-m68040'.
14982 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14983 ;;
14984 esac
14985 ;;
14986
14987 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14988 # PIC is the default for these OSes.
14989 ;;
14990
14991 mingw* | cygwin* | pw32* | os2* | cegcc*)
14992 # This hack is so that the source file can tell whether it is being
14993 # built for inclusion in a dll (and should export symbols for example).
14994 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14995 # (--disable-auto-import) libraries
14996 lt_prog_compiler_pic='-DDLL_EXPORT'
14997 ;;
14998
14999 darwin* | rhapsody*)
15000 # PIC is the default on this platform
15001 # Common symbols not allowed in MH_DYLIB files
15002 lt_prog_compiler_pic='-fno-common'
15003 ;;
15004
15005 haiku*)
15006 # PIC is the default for Haiku.
15007 # The "-static" flag exists, but is broken.
15008 lt_prog_compiler_static=
15009 ;;
15010
15011 hpux*)
15012 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15013 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15014 # sets the default TLS model and affects inlining.
15015 case $host_cpu in
15016 hppa*64*)
15017 # +Z the default
15018 ;;
15019 *)
15020 lt_prog_compiler_pic='-fPIC'
15021 ;;
15022 esac
15023 ;;
15024
15025 interix[3-9]*)
15026 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15027 # Instead, we relocate shared libraries at runtime.
15028 ;;
15029
15030 msdosdjgpp*)
15031 # Just because we use GCC doesn't mean we suddenly get shared libraries
15032 # on systems that don't support them.
15033 lt_prog_compiler_can_build_shared=no
15034 enable_shared=no
15035 ;;
15036
15037 *nto* | *qnx*)
15038 # QNX uses GNU C++, but need to define -shared option too, otherwise
15039 # it will coredump.
15040 lt_prog_compiler_pic='-fPIC -shared'
15041 ;;
15042
15043 sysv4*MP*)
15044 if test -d /usr/nec; then
15045 lt_prog_compiler_pic=-Kconform_pic
15046 fi
15047 ;;
15048
15049 *)
15050 lt_prog_compiler_pic='-fPIC'
15051 ;;
15052 esac
15053
15054 case $cc_basename in
15055 nvcc*) # Cuda Compiler Driver 2.2
15056 lt_prog_compiler_wl='-Xlinker '
15057 lt_prog_compiler_pic='-Xcompiler -fPIC'
15058 ;;
15059 esac
15060 else
15061 # PORTME Check for flag to pass linker flags through the system compiler.
15062 case $host_os in
15063 aix*)
15064 lt_prog_compiler_wl='-Wl,'
15065 if test "$host_cpu" = ia64; then
15066 # AIX 5 now supports IA64 processor
15067 lt_prog_compiler_static='-Bstatic'
15068 else
15069 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15070 fi
15071 ;;
15072
15073 mingw* | cygwin* | pw32* | os2* | cegcc*)
15074 # This hack is so that the source file can tell whether it is being
15075 # built for inclusion in a dll (and should export symbols for example).
15076 lt_prog_compiler_pic='-DDLL_EXPORT'
15077 ;;
15078
15079 hpux9* | hpux10* | hpux11*)
15080 lt_prog_compiler_wl='-Wl,'
15081 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15082 # not for PA HP-UX.
15083 case $host_cpu in
15084 hppa*64*|ia64*)
15085 # +Z the default
15086 ;;
15087 *)
15088 lt_prog_compiler_pic='+Z'
15089 ;;
15090 esac
15091 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15092 lt_prog_compiler_static='${wl}-a ${wl}archive'
15093 ;;
15094
15095 irix5* | irix6* | nonstopux*)
15096 lt_prog_compiler_wl='-Wl,'
15097 # PIC (with -KPIC) is the default.
15098 lt_prog_compiler_static='-non_shared'
15099 ;;
15100
15101 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15102 case $cc_basename in
15103 # old Intel for x86_64 which still supported -KPIC.
15104 ecc*)
15105 lt_prog_compiler_wl='-Wl,'
15106 lt_prog_compiler_pic='-KPIC'
15107 lt_prog_compiler_static='-static'
15108 ;;
15109 # icc used to be incompatible with GCC.
15110 # ICC 10 doesn't accept -KPIC any more.
15111 icc* | ifort*)
15112 lt_prog_compiler_wl='-Wl,'
15113 lt_prog_compiler_pic='-fPIC'
15114 lt_prog_compiler_static='-static'
15115 ;;
15116 # Lahey Fortran 8.1.
15117 lf95*)
15118 lt_prog_compiler_wl='-Wl,'
15119 lt_prog_compiler_pic='--shared'
15120 lt_prog_compiler_static='--static'
15121 ;;
15122 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15123 # Portland Group compilers (*not* the Pentium gcc compiler,
15124 # which looks to be a dead project)
15125 lt_prog_compiler_wl='-Wl,'
15126 lt_prog_compiler_pic='-fpic'
15127 lt_prog_compiler_static='-Bstatic'
15128 ;;
15129 ccc*)
15130 lt_prog_compiler_wl='-Wl,'
15131 # All Alpha code is PIC.
15132 lt_prog_compiler_static='-non_shared'
15133 ;;
15134 xl* | bgxl* | bgf* | mpixl*)
15135 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15136 lt_prog_compiler_wl='-Wl,'
15137 lt_prog_compiler_pic='-qpic'
15138 lt_prog_compiler_static='-qstaticlink'
15139 ;;
15140 *)
15141 case `$CC -V 2>&1 | sed 5q` in
15142 *Sun\ F* | *Sun*Fortran*)
15143 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15144 lt_prog_compiler_pic='-KPIC'
15145 lt_prog_compiler_static='-Bstatic'
15146 lt_prog_compiler_wl=''
15147 ;;
15148 *Sun\ C*)
15149 # Sun C 5.9
15150 lt_prog_compiler_pic='-KPIC'
15151 lt_prog_compiler_static='-Bstatic'
15152 lt_prog_compiler_wl='-Wl,'
15153 ;;
15154 esac
15155 ;;
15156 esac
15157 ;;
15158
15159 newsos6)
15160 lt_prog_compiler_pic='-KPIC'
15161 lt_prog_compiler_static='-Bstatic'
15162 ;;
15163
15164 *nto* | *qnx*)
15165 # QNX uses GNU C++, but need to define -shared option too, otherwise
15166 # it will coredump.
15167 lt_prog_compiler_pic='-fPIC -shared'
15168 ;;
15169
15170 osf3* | osf4* | osf5*)
15171 lt_prog_compiler_wl='-Wl,'
15172 # All OSF/1 code is PIC.
15173 lt_prog_compiler_static='-non_shared'
15174 ;;
15175
15176 rdos*)
15177 lt_prog_compiler_static='-non_shared'
15178 ;;
15179
15180 solaris*)
15181 lt_prog_compiler_pic='-KPIC'
15182 lt_prog_compiler_static='-Bstatic'
15183 case $cc_basename in
15184 f77* | f90* | f95*)
15185 lt_prog_compiler_wl='-Qoption ld ';;
15186 *)
15187 lt_prog_compiler_wl='-Wl,';;
15188 esac
15189 ;;
15190
15191 sunos4*)
15192 lt_prog_compiler_wl='-Qoption ld '
15193 lt_prog_compiler_pic='-PIC'
15194 lt_prog_compiler_static='-Bstatic'
15195 ;;
15196
15197 sysv4 | sysv4.2uw2* | sysv4.3*)
15198 lt_prog_compiler_wl='-Wl,'
15199 lt_prog_compiler_pic='-KPIC'
15200 lt_prog_compiler_static='-Bstatic'
15201 ;;
15202
15203 sysv4*MP*)
15204 if test -d /usr/nec ;then
15205 lt_prog_compiler_pic='-Kconform_pic'
15206 lt_prog_compiler_static='-Bstatic'
15207 fi
15208 ;;
15209
15210 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15211 lt_prog_compiler_wl='-Wl,'
15212 lt_prog_compiler_pic='-KPIC'
15213 lt_prog_compiler_static='-Bstatic'
15214 ;;
15215
15216 unicos*)
15217 lt_prog_compiler_wl='-Wl,'
15218 lt_prog_compiler_can_build_shared=no
15219 ;;
15220
15221 uts4*)
15222 lt_prog_compiler_pic='-pic'
15223 lt_prog_compiler_static='-Bstatic'
15224 ;;
15225
15226 *)
15227 lt_prog_compiler_can_build_shared=no
15228 ;;
15229 esac
15230 fi
15231
15232 case $host_os in
15233 # For platforms which do not support PIC, -DPIC is meaningless:
15234 *djgpp*)
15235 lt_prog_compiler_pic=
15236 ;;
15237 *)
15238 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15239 ;;
15240 esac
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15242 $as_echo "$lt_prog_compiler_pic" >&6; }
15243
15244
15245
15246
15247
15248
15249 #
15250 # Check to make sure the PIC flag actually works.
15251 #
15252 if test -n "$lt_prog_compiler_pic"; then
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15254 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15255 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15256 $as_echo_n "(cached) " >&6
15257 else
15258 lt_cv_prog_compiler_pic_works=no
15259 ac_outfile=conftest.$ac_objext
15260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15261 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15262 # Insert the option either (1) after the last *FLAGS variable, or
15263 # (2) before a word containing "conftest.", or (3) at the end.
15264 # Note that $ac_compile itself does not contain backslashes and begins
15265 # with a dollar sign (not a hyphen), so the echo should work correctly.
15266 # The option is referenced via a variable to avoid confusing sed.
15267 lt_compile=`echo "$ac_compile" | $SED \
15268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15270 -e 's:$: $lt_compiler_flag:'`
15271 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15272 (eval "$lt_compile" 2>conftest.err)
15273 ac_status=$?
15274 cat conftest.err >&5
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 if (exit $ac_status) && test -s "$ac_outfile"; then
15277 # The compiler can only warn and ignore the option if not recognized
15278 # So say no if there are warnings other than the usual output.
15279 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15281 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15282 lt_cv_prog_compiler_pic_works=yes
15283 fi
15284 fi
15285 $RM conftest*
15286
15287 fi
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15289 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15290
15291 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15292 case $lt_prog_compiler_pic in
15293 "" | " "*) ;;
15294 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15295 esac
15296 else
15297 lt_prog_compiler_pic=
15298 lt_prog_compiler_can_build_shared=no
15299 fi
15300
15301 fi
15302
15303
15304
15305
15306
15307
15308 #
15309 # Check to make sure the static flag actually works.
15310 #
15311 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15313 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15314 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15315 $as_echo_n "(cached) " >&6
15316 else
15317 lt_cv_prog_compiler_static_works=no
15318 save_LDFLAGS="$LDFLAGS"
15319 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15320 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15321 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15322 # The linker can only warn and ignore the option if not recognized
15323 # So say no if there are warnings
15324 if test -s conftest.err; then
15325 # Append any errors to the config.log.
15326 cat conftest.err 1>&5
15327 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15328 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15329 if diff conftest.exp conftest.er2 >/dev/null; then
15330 lt_cv_prog_compiler_static_works=yes
15331 fi
15332 else
15333 lt_cv_prog_compiler_static_works=yes
15334 fi
15335 fi
15336 $RM -r conftest*
15337 LDFLAGS="$save_LDFLAGS"
15338
15339 fi
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15341 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15342
15343 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15344 :
15345 else
15346 lt_prog_compiler_static=
15347 fi
15348
15349
15350
15351
15352
15353
15354
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15356 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15357 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15358 $as_echo_n "(cached) " >&6
15359 else
15360 lt_cv_prog_compiler_c_o=no
15361 $RM -r conftest 2>/dev/null
15362 mkdir conftest
15363 cd conftest
15364 mkdir out
15365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15366
15367 lt_compiler_flag="-o out/conftest2.$ac_objext"
15368 # Insert the option either (1) after the last *FLAGS variable, or
15369 # (2) before a word containing "conftest.", or (3) at the end.
15370 # Note that $ac_compile itself does not contain backslashes and begins
15371 # with a dollar sign (not a hyphen), so the echo should work correctly.
15372 lt_compile=`echo "$ac_compile" | $SED \
15373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15375 -e 's:$: $lt_compiler_flag:'`
15376 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15377 (eval "$lt_compile" 2>out/conftest.err)
15378 ac_status=$?
15379 cat out/conftest.err >&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15382 then
15383 # The compiler can only warn and ignore the option if not recognized
15384 # So say no if there are warnings
15385 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15386 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15387 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15388 lt_cv_prog_compiler_c_o=yes
15389 fi
15390 fi
15391 chmod u+w . 2>&5
15392 $RM conftest*
15393 # SGI C++ compiler will create directory out/ii_files/ for
15394 # template instantiation
15395 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15396 $RM out/* && rmdir out
15397 cd ..
15398 $RM -r conftest
15399 $RM conftest*
15400
15401 fi
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15403 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15404
15405
15406
15407
15408
15409
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15411 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15412 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15413 $as_echo_n "(cached) " >&6
15414 else
15415 lt_cv_prog_compiler_c_o=no
15416 $RM -r conftest 2>/dev/null
15417 mkdir conftest
15418 cd conftest
15419 mkdir out
15420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15421
15422 lt_compiler_flag="-o out/conftest2.$ac_objext"
15423 # Insert the option either (1) after the last *FLAGS variable, or
15424 # (2) before a word containing "conftest.", or (3) at the end.
15425 # Note that $ac_compile itself does not contain backslashes and begins
15426 # with a dollar sign (not a hyphen), so the echo should work correctly.
15427 lt_compile=`echo "$ac_compile" | $SED \
15428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15430 -e 's:$: $lt_compiler_flag:'`
15431 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15432 (eval "$lt_compile" 2>out/conftest.err)
15433 ac_status=$?
15434 cat out/conftest.err >&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15437 then
15438 # The compiler can only warn and ignore the option if not recognized
15439 # So say no if there are warnings
15440 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15441 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15442 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15443 lt_cv_prog_compiler_c_o=yes
15444 fi
15445 fi
15446 chmod u+w . 2>&5
15447 $RM conftest*
15448 # SGI C++ compiler will create directory out/ii_files/ for
15449 # template instantiation
15450 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15451 $RM out/* && rmdir out
15452 cd ..
15453 $RM -r conftest
15454 $RM conftest*
15455
15456 fi
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15458 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15459
15460
15461
15462
15463 hard_links="nottested"
15464 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15465 # do not overwrite the value of need_locks provided by the user
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15467 $as_echo_n "checking if we can lock with hard links... " >&6; }
15468 hard_links=yes
15469 $RM conftest*
15470 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15471 touch conftest.a
15472 ln conftest.a conftest.b 2>&5 || hard_links=no
15473 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15475 $as_echo "$hard_links" >&6; }
15476 if test "$hard_links" = no; then
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15478 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15479 need_locks=warn
15480 fi
15481 else
15482 need_locks=no
15483 fi
15484
15485
15486
15487
15488
15489
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15491 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15492
15493 runpath_var=
15494 allow_undefined_flag=
15495 always_export_symbols=no
15496 archive_cmds=
15497 archive_expsym_cmds=
15498 compiler_needs_object=no
15499 enable_shared_with_static_runtimes=no
15500 export_dynamic_flag_spec=
15501 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15502 hardcode_automatic=no
15503 hardcode_direct=no
15504 hardcode_direct_absolute=no
15505 hardcode_libdir_flag_spec=
15506 hardcode_libdir_flag_spec_ld=
15507 hardcode_libdir_separator=
15508 hardcode_minus_L=no
15509 hardcode_shlibpath_var=unsupported
15510 inherit_rpath=no
15511 link_all_deplibs=unknown
15512 module_cmds=
15513 module_expsym_cmds=
15514 old_archive_from_new_cmds=
15515 old_archive_from_expsyms_cmds=
15516 thread_safe_flag_spec=
15517 whole_archive_flag_spec=
15518 # include_expsyms should be a list of space-separated symbols to be *always*
15519 # included in the symbol list
15520 include_expsyms=
15521 # exclude_expsyms can be an extended regexp of symbols to exclude
15522 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15523 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15524 # as well as any symbol that contains `d'.
15525 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15526 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15527 # platforms (ab)use it in PIC code, but their linkers get confused if
15528 # the symbol is explicitly referenced. Since portable code cannot
15529 # rely on this symbol name, it's probably fine to never include it in
15530 # preloaded symbol tables.
15531 # Exclude shared library initialization/finalization symbols.
15532 extract_expsyms_cmds=
15533
15534 case $host_os in
15535 cygwin* | mingw* | pw32* | cegcc*)
15536 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15537 # When not using gcc, we currently assume that we are using
15538 # Microsoft Visual C++.
15539 if test "$GCC" != yes; then
15540 with_gnu_ld=no
15541 fi
15542 ;;
15543 interix*)
15544 # we just hope/assume this is gcc and not c89 (= MSVC++)
15545 with_gnu_ld=yes
15546 ;;
15547 openbsd*)
15548 with_gnu_ld=no
15549 ;;
15550 esac
15551
15552 ld_shlibs=yes
15553
15554 # On some targets, GNU ld is compatible enough with the native linker
15555 # that we're better off using the native interface for both.
15556 lt_use_gnu_ld_interface=no
15557 if test "$with_gnu_ld" = yes; then
15558 case $host_os in
15559 aix*)
15560 # The AIX port of GNU ld has always aspired to compatibility
15561 # with the native linker. However, as the warning in the GNU ld
15562 # block says, versions before 2.19.5* couldn't really create working
15563 # shared libraries, regardless of the interface used.
15564 case `$LD -v 2>&1` in
15565 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15566 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15567 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15568 *)
15569 lt_use_gnu_ld_interface=yes
15570 ;;
15571 esac
15572 ;;
15573 *)
15574 lt_use_gnu_ld_interface=yes
15575 ;;
15576 esac
15577 fi
15578
15579 if test "$lt_use_gnu_ld_interface" = yes; then
15580 # If archive_cmds runs LD, not CC, wlarc should be empty
15581 wlarc='${wl}'
15582
15583 # Set some defaults for GNU ld with shared library support. These
15584 # are reset later if shared libraries are not supported. Putting them
15585 # here allows them to be overridden if necessary.
15586 runpath_var=LD_RUN_PATH
15587 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15588 export_dynamic_flag_spec='${wl}--export-dynamic'
15589 # ancient GNU ld didn't support --whole-archive et. al.
15590 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15591 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15592 else
15593 whole_archive_flag_spec=
15594 fi
15595 supports_anon_versioning=no
15596 case `$LD -v 2>&1` in
15597 *GNU\ gold*) supports_anon_versioning=yes ;;
15598 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15599 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15600 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15601 *\ 2.11.*) ;; # other 2.11 versions
15602 *) supports_anon_versioning=yes ;;
15603 esac
15604
15605 # See if GNU ld supports shared libraries.
15606 case $host_os in
15607 aix[3-9]*)
15608 # On AIX/PPC, the GNU linker is very broken
15609 if test "$host_cpu" != ia64; then
15610 ld_shlibs=no
15611 cat <<_LT_EOF 1>&2
15612
15613 *** Warning: the GNU linker, at least up to release 2.19, is reported
15614 *** to be unable to reliably create shared libraries on AIX.
15615 *** Therefore, libtool is disabling shared libraries support. If you
15616 *** really care for shared libraries, you may want to install binutils
15617 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15618 *** You will then need to restart the configuration process.
15619
15620 _LT_EOF
15621 fi
15622 ;;
15623
15624 amigaos*)
15625 case $host_cpu in
15626 powerpc)
15627 # see comment about AmigaOS4 .so support
15628 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15629 archive_expsym_cmds=''
15630 ;;
15631 m68k)
15632 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)'
15633 hardcode_libdir_flag_spec='-L$libdir'
15634 hardcode_minus_L=yes
15635 ;;
15636 esac
15637 ;;
15638
15639 beos*)
15640 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15641 allow_undefined_flag=unsupported
15642 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15643 # support --undefined. This deserves some investigation. FIXME
15644 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15645 else
15646 ld_shlibs=no
15647 fi
15648 ;;
15649
15650 cygwin* | mingw* | pw32* | cegcc*)
15651 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15652 # as there is no search path for DLLs.
15653 hardcode_libdir_flag_spec='-L$libdir'
15654 export_dynamic_flag_spec='${wl}--export-all-symbols'
15655 allow_undefined_flag=unsupported
15656 always_export_symbols=no
15657 enable_shared_with_static_runtimes=yes
15658 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15659
15660 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15661 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15662 # If the export-symbols file already is a .def file (1st line
15663 # is EXPORTS), use it as is; otherwise, prepend...
15664 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15665 cp $export_symbols $output_objdir/$soname.def;
15666 else
15667 echo EXPORTS > $output_objdir/$soname.def;
15668 cat $export_symbols >> $output_objdir/$soname.def;
15669 fi~
15670 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15671 else
15672 ld_shlibs=no
15673 fi
15674 ;;
15675
15676 haiku*)
15677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15678 link_all_deplibs=yes
15679 ;;
15680
15681 interix[3-9]*)
15682 hardcode_direct=no
15683 hardcode_shlibpath_var=no
15684 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15685 export_dynamic_flag_spec='${wl}-E'
15686 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15687 # Instead, shared libraries are loaded at an image base (0x10000000 by
15688 # default) and relocated if they conflict, which is a slow very memory
15689 # consuming and fragmenting process. To avoid this, we pick a random,
15690 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15691 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15692 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15693 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'
15694 ;;
15695
15696 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15697 tmp_diet=no
15698 if test "$host_os" = linux-dietlibc; then
15699 case $cc_basename in
15700 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15701 esac
15702 fi
15703 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15704 && test "$tmp_diet" = no
15705 then
15706 tmp_addflag=
15707 tmp_sharedflag='-shared'
15708 case $cc_basename,$host_cpu in
15709 pgcc*) # Portland Group C compiler
15710 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'
15711 tmp_addflag=' $pic_flag'
15712 ;;
15713 pgf77* | pgf90* | pgf95* | pgfortran*)
15714 # Portland Group f77 and f90 compilers
15715 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'
15716 tmp_addflag=' $pic_flag -Mnomain' ;;
15717 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15718 tmp_addflag=' -i_dynamic' ;;
15719 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15720 tmp_addflag=' -i_dynamic -nofor_main' ;;
15721 ifc* | ifort*) # Intel Fortran compiler
15722 tmp_addflag=' -nofor_main' ;;
15723 lf95*) # Lahey Fortran 8.1
15724 whole_archive_flag_spec=
15725 tmp_sharedflag='--shared' ;;
15726 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15727 tmp_sharedflag='-qmkshrobj'
15728 tmp_addflag= ;;
15729 nvcc*) # Cuda Compiler Driver 2.2
15730 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'
15731 compiler_needs_object=yes
15732 ;;
15733 esac
15734 case `$CC -V 2>&1 | sed 5q` in
15735 *Sun\ C*) # Sun C 5.9
15736 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'
15737 compiler_needs_object=yes
15738 tmp_sharedflag='-G' ;;
15739 *Sun\ F*) # Sun Fortran 8.3
15740 tmp_sharedflag='-G' ;;
15741 esac
15742 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15743
15744 if test "x$supports_anon_versioning" = xyes; then
15745 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15746 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15747 echo "local: *; };" >> $output_objdir/$libname.ver~
15748 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15749 fi
15750
15751 case $cc_basename in
15752 xlf* | bgf* | bgxlf* | mpixlf*)
15753 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15754 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15755 hardcode_libdir_flag_spec=
15756 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15757 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15758 if test "x$supports_anon_versioning" = xyes; then
15759 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15760 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15761 echo "local: *; };" >> $output_objdir/$libname.ver~
15762 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15763 fi
15764 ;;
15765 esac
15766 else
15767 ld_shlibs=no
15768 fi
15769 ;;
15770
15771 netbsd*)
15772 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15773 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15774 wlarc=
15775 else
15776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15777 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15778 fi
15779 ;;
15780
15781 solaris*)
15782 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15783 ld_shlibs=no
15784 cat <<_LT_EOF 1>&2
15785
15786 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15787 *** create shared libraries on Solaris systems. Therefore, libtool
15788 *** is disabling shared libraries support. We urge you to upgrade GNU
15789 *** binutils to release 2.9.1 or newer. Another option is to modify
15790 *** your PATH or compiler configuration so that the native linker is
15791 *** used, and then restart.
15792
15793 _LT_EOF
15794 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15796 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15797 else
15798 ld_shlibs=no
15799 fi
15800 ;;
15801
15802 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15803 case `$LD -v 2>&1` in
15804 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15805 ld_shlibs=no
15806 cat <<_LT_EOF 1>&2
15807
15808 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15809 *** reliably create shared libraries on SCO systems. Therefore, libtool
15810 *** is disabling shared libraries support. We urge you to upgrade GNU
15811 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15812 *** your PATH or compiler configuration so that the native linker is
15813 *** used, and then restart.
15814
15815 _LT_EOF
15816 ;;
15817 *)
15818 # For security reasons, it is highly recommended that you always
15819 # use absolute paths for naming shared libraries, and exclude the
15820 # DT_RUNPATH tag from executables and libraries. But doing so
15821 # requires that you compile everything twice, which is a pain.
15822 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15823 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15824 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15825 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15826 else
15827 ld_shlibs=no
15828 fi
15829 ;;
15830 esac
15831 ;;
15832
15833 sunos4*)
15834 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15835 wlarc=
15836 hardcode_direct=yes
15837 hardcode_shlibpath_var=no
15838 ;;
15839
15840 *)
15841 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15843 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15844 else
15845 ld_shlibs=no
15846 fi
15847 ;;
15848 esac
15849
15850 if test "$ld_shlibs" = no; then
15851 runpath_var=
15852 hardcode_libdir_flag_spec=
15853 export_dynamic_flag_spec=
15854 whole_archive_flag_spec=
15855 fi
15856 else
15857 # PORTME fill in a description of your system's linker (not GNU ld)
15858 case $host_os in
15859 aix3*)
15860 allow_undefined_flag=unsupported
15861 always_export_symbols=yes
15862 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'
15863 # Note: this linker hardcodes the directories in LIBPATH if there
15864 # are no directories specified by -L.
15865 hardcode_minus_L=yes
15866 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15867 # Neither direct hardcoding nor static linking is supported with a
15868 # broken collect2.
15869 hardcode_direct=unsupported
15870 fi
15871 ;;
15872
15873 aix[4-9]*)
15874 if test "$host_cpu" = ia64; then
15875 # On IA64, the linker does run time linking by default, so we don't
15876 # have to do anything special.
15877 aix_use_runtimelinking=no
15878 exp_sym_flag='-Bexport'
15879 no_entry_flag=""
15880 else
15881 # If we're using GNU nm, then we don't want the "-C" option.
15882 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15883 # Also, AIX nm treats weak defined symbols like other global
15884 # defined symbols, whereas GNU nm marks them as "W".
15885 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15886 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'
15887 else
15888 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'
15889 fi
15890 aix_use_runtimelinking=no
15891
15892 # Test if we are trying to use run time linking or normal
15893 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15894 # need to do runtime linking.
15895 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15896 for ld_flag in $LDFLAGS; do
15897 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15898 aix_use_runtimelinking=yes
15899 break
15900 fi
15901 done
15902 ;;
15903 esac
15904
15905 exp_sym_flag='-bexport'
15906 no_entry_flag='-bnoentry'
15907 fi
15908
15909 # When large executables or shared objects are built, AIX ld can
15910 # have problems creating the table of contents. If linking a library
15911 # or program results in "error TOC overflow" add -mminimal-toc to
15912 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15913 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15914
15915 archive_cmds=''
15916 hardcode_direct=yes
15917 hardcode_direct_absolute=yes
15918 hardcode_libdir_separator=':'
15919 link_all_deplibs=yes
15920 file_list_spec='${wl}-f,'
15921
15922 if test "$GCC" = yes; then
15923 case $host_os in aix4.[012]|aix4.[012].*)
15924 # We only want to do this on AIX 4.2 and lower, the check
15925 # below for broken collect2 doesn't work under 4.3+
15926 collect2name=`${CC} -print-prog-name=collect2`
15927 if test -f "$collect2name" &&
15928 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15929 then
15930 # We have reworked collect2
15931 :
15932 else
15933 # We have old collect2
15934 hardcode_direct=unsupported
15935 # It fails to find uninstalled libraries when the uninstalled
15936 # path is not listed in the libpath. Setting hardcode_minus_L
15937 # to unsupported forces relinking
15938 hardcode_minus_L=yes
15939 hardcode_libdir_flag_spec='-L$libdir'
15940 hardcode_libdir_separator=
15941 fi
15942 ;;
15943 esac
15944 shared_flag='-shared'
15945 if test "$aix_use_runtimelinking" = yes; then
15946 shared_flag="$shared_flag "'${wl}-G'
15947 fi
15948 else
15949 # not using gcc
15950 if test "$host_cpu" = ia64; then
15951 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15952 # chokes on -Wl,-G. The following line is correct:
15953 shared_flag='-G'
15954 else
15955 if test "$aix_use_runtimelinking" = yes; then
15956 shared_flag='${wl}-G'
15957 else
15958 shared_flag='${wl}-bM:SRE'
15959 fi
15960 fi
15961 fi
15962
15963 export_dynamic_flag_spec='${wl}-bexpall'
15964 # It seems that -bexpall does not export symbols beginning with
15965 # underscore (_), so it is better to generate a list of symbols to export.
15966 always_export_symbols=yes
15967 if test "$aix_use_runtimelinking" = yes; then
15968 # Warning - without using the other runtime loading flags (-brtl),
15969 # -berok will link without error, but may produce a broken library.
15970 allow_undefined_flag='-berok'
15971 # Determine the default libpath from the value encoded in an
15972 # empty executable.
15973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15974 /* end confdefs.h. */
15975
15976 int
15977 main ()
15978 {
15979
15980 ;
15981 return 0;
15982 }
15983 _ACEOF
15984 if ac_fn_c_try_link "$LINENO"; then :
15985
15986 lt_aix_libpath_sed='
15987 /Import File Strings/,/^$/ {
15988 /^0/ {
15989 s/^0 *\(.*\)$/\1/
15990 p
15991 }
15992 }'
15993 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15994 # Check for a 64-bit object if we didn't find anything.
15995 if test -z "$aix_libpath"; then
15996 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15997 fi
15998 fi
15999 rm -f core conftest.err conftest.$ac_objext \
16000 conftest$ac_exeext conftest.$ac_ext
16001 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16002
16003 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16004 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"
16005 else
16006 if test "$host_cpu" = ia64; then
16007 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16008 allow_undefined_flag="-z nodefs"
16009 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"
16010 else
16011 # Determine the default libpath from the value encoded in an
16012 # empty executable.
16013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16014 /* end confdefs.h. */
16015
16016 int
16017 main ()
16018 {
16019
16020 ;
16021 return 0;
16022 }
16023 _ACEOF
16024 if ac_fn_c_try_link "$LINENO"; then :
16025
16026 lt_aix_libpath_sed='
16027 /Import File Strings/,/^$/ {
16028 /^0/ {
16029 s/^0 *\(.*\)$/\1/
16030 p
16031 }
16032 }'
16033 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16034 # Check for a 64-bit object if we didn't find anything.
16035 if test -z "$aix_libpath"; then
16036 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16037 fi
16038 fi
16039 rm -f core conftest.err conftest.$ac_objext \
16040 conftest$ac_exeext conftest.$ac_ext
16041 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16042
16043 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16044 # Warning - without using the other run time loading flags,
16045 # -berok will link without error, but may produce a broken library.
16046 no_undefined_flag=' ${wl}-bernotok'
16047 allow_undefined_flag=' ${wl}-berok'
16048 if test "$with_gnu_ld" = yes; then
16049 # We only use this code for GNU lds that support --whole-archive.
16050 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16051 else
16052 # Exported symbols can be pulled into shared objects from archives
16053 whole_archive_flag_spec='$convenience'
16054 fi
16055 archive_cmds_need_lc=yes
16056 # This is similar to how AIX traditionally builds its shared libraries.
16057 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'
16058 fi
16059 fi
16060 ;;
16061
16062 amigaos*)
16063 case $host_cpu in
16064 powerpc)
16065 # see comment about AmigaOS4 .so support
16066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16067 archive_expsym_cmds=''
16068 ;;
16069 m68k)
16070 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)'
16071 hardcode_libdir_flag_spec='-L$libdir'
16072 hardcode_minus_L=yes
16073 ;;
16074 esac
16075 ;;
16076
16077 bsdi[45]*)
16078 export_dynamic_flag_spec=-rdynamic
16079 ;;
16080
16081 cygwin* | mingw* | pw32* | cegcc*)
16082 # When not using gcc, we currently assume that we are using
16083 # Microsoft Visual C++.
16084 # hardcode_libdir_flag_spec is actually meaningless, as there is
16085 # no search path for DLLs.
16086 hardcode_libdir_flag_spec=' '
16087 allow_undefined_flag=unsupported
16088 # Tell ltmain to make .lib files, not .a files.
16089 libext=lib
16090 # Tell ltmain to make .dll files, not .so files.
16091 shrext_cmds=".dll"
16092 # FIXME: Setting linknames here is a bad hack.
16093 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16094 # The linker will automatically build a .lib file if we build a DLL.
16095 old_archive_from_new_cmds='true'
16096 # FIXME: Should let the user specify the lib program.
16097 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16098 fix_srcfile_path='`cygpath -w "$srcfile"`'
16099 enable_shared_with_static_runtimes=yes
16100 ;;
16101
16102 darwin* | rhapsody*)
16103
16104
16105 archive_cmds_need_lc=no
16106 hardcode_direct=no
16107 hardcode_automatic=yes
16108 hardcode_shlibpath_var=unsupported
16109 if test "$lt_cv_ld_force_load" = "yes"; then
16110 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\"`'
16111 else
16112 whole_archive_flag_spec=''
16113 fi
16114 link_all_deplibs=yes
16115 allow_undefined_flag="$_lt_dar_allow_undefined"
16116 case $cc_basename in
16117 ifort*) _lt_dar_can_shared=yes ;;
16118 *) _lt_dar_can_shared=$GCC ;;
16119 esac
16120 if test "$_lt_dar_can_shared" = "yes"; then
16121 output_verbose_link_cmd=func_echo_all
16122 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16123 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16124 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}"
16125 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}"
16126
16127 else
16128 ld_shlibs=no
16129 fi
16130
16131 ;;
16132
16133 dgux*)
16134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16135 hardcode_libdir_flag_spec='-L$libdir'
16136 hardcode_shlibpath_var=no
16137 ;;
16138
16139 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16140 # support. Future versions do this automatically, but an explicit c++rt0.o
16141 # does not break anything, and helps significantly (at the cost of a little
16142 # extra space).
16143 freebsd2.2*)
16144 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16145 hardcode_libdir_flag_spec='-R$libdir'
16146 hardcode_direct=yes
16147 hardcode_shlibpath_var=no
16148 ;;
16149
16150 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16151 freebsd2*)
16152 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16153 hardcode_direct=yes
16154 hardcode_minus_L=yes
16155 hardcode_shlibpath_var=no
16156 ;;
16157
16158 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16159 freebsd* | dragonfly*)
16160 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16161 hardcode_libdir_flag_spec='-R$libdir'
16162 hardcode_direct=yes
16163 hardcode_shlibpath_var=no
16164 ;;
16165
16166 hpux9*)
16167 if test "$GCC" = yes; then
16168 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'
16169 else
16170 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'
16171 fi
16172 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16173 hardcode_libdir_separator=:
16174 hardcode_direct=yes
16175
16176 # hardcode_minus_L: Not really in the search PATH,
16177 # but as the default location of the library.
16178 hardcode_minus_L=yes
16179 export_dynamic_flag_spec='${wl}-E'
16180 ;;
16181
16182 hpux10*)
16183 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16184 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16185 else
16186 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16187 fi
16188 if test "$with_gnu_ld" = no; then
16189 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16190 hardcode_libdir_flag_spec_ld='+b $libdir'
16191 hardcode_libdir_separator=:
16192 hardcode_direct=yes
16193 hardcode_direct_absolute=yes
16194 export_dynamic_flag_spec='${wl}-E'
16195 # hardcode_minus_L: Not really in the search PATH,
16196 # but as the default location of the library.
16197 hardcode_minus_L=yes
16198 fi
16199 ;;
16200
16201 hpux11*)
16202 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16203 case $host_cpu in
16204 hppa*64*)
16205 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16206 ;;
16207 ia64*)
16208 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16209 ;;
16210 *)
16211 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16212 ;;
16213 esac
16214 else
16215 case $host_cpu in
16216 hppa*64*)
16217 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16218 ;;
16219 ia64*)
16220 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16221 ;;
16222 *)
16223
16224 # Older versions of the 11.00 compiler do not understand -b yet
16225 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16227 $as_echo_n "checking if $CC understands -b... " >&6; }
16228 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16229 $as_echo_n "(cached) " >&6
16230 else
16231 lt_cv_prog_compiler__b=no
16232 save_LDFLAGS="$LDFLAGS"
16233 LDFLAGS="$LDFLAGS -b"
16234 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16235 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16236 # The linker can only warn and ignore the option if not recognized
16237 # So say no if there are warnings
16238 if test -s conftest.err; then
16239 # Append any errors to the config.log.
16240 cat conftest.err 1>&5
16241 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16242 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16243 if diff conftest.exp conftest.er2 >/dev/null; then
16244 lt_cv_prog_compiler__b=yes
16245 fi
16246 else
16247 lt_cv_prog_compiler__b=yes
16248 fi
16249 fi
16250 $RM -r conftest*
16251 LDFLAGS="$save_LDFLAGS"
16252
16253 fi
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16255 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16256
16257 if test x"$lt_cv_prog_compiler__b" = xyes; then
16258 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16259 else
16260 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16261 fi
16262
16263 ;;
16264 esac
16265 fi
16266 if test "$with_gnu_ld" = no; then
16267 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16268 hardcode_libdir_separator=:
16269
16270 case $host_cpu in
16271 hppa*64*|ia64*)
16272 hardcode_direct=no
16273 hardcode_shlibpath_var=no
16274 ;;
16275 *)
16276 hardcode_direct=yes
16277 hardcode_direct_absolute=yes
16278 export_dynamic_flag_spec='${wl}-E'
16279
16280 # hardcode_minus_L: Not really in the search PATH,
16281 # but as the default location of the library.
16282 hardcode_minus_L=yes
16283 ;;
16284 esac
16285 fi
16286 ;;
16287
16288 irix5* | irix6* | nonstopux*)
16289 if test "$GCC" = yes; then
16290 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'
16291 # Try to use the -exported_symbol ld option, if it does not
16292 # work, assume that -exports_file does not work either and
16293 # implicitly export all symbols.
16294 save_LDFLAGS="$LDFLAGS"
16295 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16297 /* end confdefs.h. */
16298 int foo(void) {}
16299 _ACEOF
16300 if ac_fn_c_try_link "$LINENO"; then :
16301 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'
16302
16303 fi
16304 rm -f core conftest.err conftest.$ac_objext \
16305 conftest$ac_exeext conftest.$ac_ext
16306 LDFLAGS="$save_LDFLAGS"
16307 else
16308 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'
16309 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'
16310 fi
16311 archive_cmds_need_lc='no'
16312 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16313 hardcode_libdir_separator=:
16314 inherit_rpath=yes
16315 link_all_deplibs=yes
16316 ;;
16317
16318 netbsd*)
16319 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16320 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16321 else
16322 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16323 fi
16324 hardcode_libdir_flag_spec='-R$libdir'
16325 hardcode_direct=yes
16326 hardcode_shlibpath_var=no
16327 ;;
16328
16329 newsos6)
16330 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16331 hardcode_direct=yes
16332 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16333 hardcode_libdir_separator=:
16334 hardcode_shlibpath_var=no
16335 ;;
16336
16337 *nto* | *qnx*)
16338 ;;
16339
16340 openbsd*)
16341 if test -f /usr/libexec/ld.so; then
16342 hardcode_direct=yes
16343 hardcode_shlibpath_var=no
16344 hardcode_direct_absolute=yes
16345 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16346 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16347 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16348 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16349 export_dynamic_flag_spec='${wl}-E'
16350 else
16351 case $host_os in
16352 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16353 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16354 hardcode_libdir_flag_spec='-R$libdir'
16355 ;;
16356 *)
16357 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16358 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16359 ;;
16360 esac
16361 fi
16362 else
16363 ld_shlibs=no
16364 fi
16365 ;;
16366
16367 os2*)
16368 hardcode_libdir_flag_spec='-L$libdir'
16369 hardcode_minus_L=yes
16370 allow_undefined_flag=unsupported
16371 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'
16372 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16373 ;;
16374
16375 osf3*)
16376 if test "$GCC" = yes; then
16377 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16378 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'
16379 else
16380 allow_undefined_flag=' -expect_unresolved \*'
16381 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'
16382 fi
16383 archive_cmds_need_lc='no'
16384 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16385 hardcode_libdir_separator=:
16386 ;;
16387
16388 osf4* | osf5*) # as osf3* with the addition of -msym flag
16389 if test "$GCC" = yes; then
16390 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16391 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'
16392 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16393 else
16394 allow_undefined_flag=' -expect_unresolved \*'
16395 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'
16396 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~
16397 $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'
16398
16399 # Both c and cxx compiler support -rpath directly
16400 hardcode_libdir_flag_spec='-rpath $libdir'
16401 fi
16402 archive_cmds_need_lc='no'
16403 hardcode_libdir_separator=:
16404 ;;
16405
16406 solaris*)
16407 no_undefined_flag=' -z defs'
16408 if test "$GCC" = yes; then
16409 wlarc='${wl}'
16410 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16411 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16412 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16413 else
16414 case `$CC -V 2>&1` in
16415 *"Compilers 5.0"*)
16416 wlarc=''
16417 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16418 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16419 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16420 ;;
16421 *)
16422 wlarc='${wl}'
16423 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16424 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16425 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16426 ;;
16427 esac
16428 fi
16429 hardcode_libdir_flag_spec='-R$libdir'
16430 hardcode_shlibpath_var=no
16431 case $host_os in
16432 solaris2.[0-5] | solaris2.[0-5].*) ;;
16433 *)
16434 # The compiler driver will combine and reorder linker options,
16435 # but understands `-z linker_flag'. GCC discards it without `$wl',
16436 # but is careful enough not to reorder.
16437 # Supported since Solaris 2.6 (maybe 2.5.1?)
16438 if test "$GCC" = yes; then
16439 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16440 else
16441 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16442 fi
16443 ;;
16444 esac
16445 link_all_deplibs=yes
16446 ;;
16447
16448 sunos4*)
16449 if test "x$host_vendor" = xsequent; then
16450 # Use $CC to link under sequent, because it throws in some extra .o
16451 # files that make .init and .fini sections work.
16452 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16453 else
16454 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16455 fi
16456 hardcode_libdir_flag_spec='-L$libdir'
16457 hardcode_direct=yes
16458 hardcode_minus_L=yes
16459 hardcode_shlibpath_var=no
16460 ;;
16461
16462 sysv4)
16463 case $host_vendor in
16464 sni)
16465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16466 hardcode_direct=yes # is this really true???
16467 ;;
16468 siemens)
16469 ## LD is ld it makes a PLAMLIB
16470 ## CC just makes a GrossModule.
16471 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16472 reload_cmds='$CC -r -o $output$reload_objs'
16473 hardcode_direct=no
16474 ;;
16475 motorola)
16476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16477 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16478 ;;
16479 esac
16480 runpath_var='LD_RUN_PATH'
16481 hardcode_shlibpath_var=no
16482 ;;
16483
16484 sysv4.3*)
16485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16486 hardcode_shlibpath_var=no
16487 export_dynamic_flag_spec='-Bexport'
16488 ;;
16489
16490 sysv4*MP*)
16491 if test -d /usr/nec; then
16492 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16493 hardcode_shlibpath_var=no
16494 runpath_var=LD_RUN_PATH
16495 hardcode_runpath_var=yes
16496 ld_shlibs=yes
16497 fi
16498 ;;
16499
16500 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16501 no_undefined_flag='${wl}-z,text'
16502 archive_cmds_need_lc=no
16503 hardcode_shlibpath_var=no
16504 runpath_var='LD_RUN_PATH'
16505
16506 if test "$GCC" = yes; then
16507 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16508 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16509 else
16510 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16511 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16512 fi
16513 ;;
16514
16515 sysv5* | sco3.2v5* | sco5v6*)
16516 # Note: We can NOT use -z defs as we might desire, because we do not
16517 # link with -lc, and that would cause any symbols used from libc to
16518 # always be unresolved, which means just about no library would
16519 # ever link correctly. If we're not using GNU ld we use -z text
16520 # though, which does catch some bad symbols but isn't as heavy-handed
16521 # as -z defs.
16522 no_undefined_flag='${wl}-z,text'
16523 allow_undefined_flag='${wl}-z,nodefs'
16524 archive_cmds_need_lc=no
16525 hardcode_shlibpath_var=no
16526 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16527 hardcode_libdir_separator=':'
16528 link_all_deplibs=yes
16529 export_dynamic_flag_spec='${wl}-Bexport'
16530 runpath_var='LD_RUN_PATH'
16531
16532 if test "$GCC" = yes; then
16533 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16534 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16535 else
16536 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16537 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16538 fi
16539 ;;
16540
16541 uts4*)
16542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16543 hardcode_libdir_flag_spec='-L$libdir'
16544 hardcode_shlibpath_var=no
16545 ;;
16546
16547 *)
16548 ld_shlibs=no
16549 ;;
16550 esac
16551
16552 if test x$host_vendor = xsni; then
16553 case $host in
16554 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16555 export_dynamic_flag_spec='${wl}-Blargedynsym'
16556 ;;
16557 esac
16558 fi
16559 fi
16560
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16562 $as_echo "$ld_shlibs" >&6; }
16563 test "$ld_shlibs" = no && can_build_shared=no
16564
16565 with_gnu_ld=$with_gnu_ld
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581 #
16582 # Do we need to explicitly link libc?
16583 #
16584 case "x$archive_cmds_need_lc" in
16585 x|xyes)
16586 # Assume -lc should be added
16587 archive_cmds_need_lc=yes
16588
16589 if test "$enable_shared" = yes && test "$GCC" = yes; then
16590 case $archive_cmds in
16591 *'~'*)
16592 # FIXME: we may have to deal with multi-command sequences.
16593 ;;
16594 '$CC '*)
16595 # Test whether the compiler implicitly links with -lc since on some
16596 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16597 # to ld, don't add -lc before -lgcc.
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16599 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16600 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16601 $as_echo_n "(cached) " >&6
16602 else
16603 $RM conftest*
16604 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16605
16606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16607 (eval $ac_compile) 2>&5
16608 ac_status=$?
16609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16610 test $ac_status = 0; } 2>conftest.err; then
16611 soname=conftest
16612 lib=conftest
16613 libobjs=conftest.$ac_objext
16614 deplibs=
16615 wl=$lt_prog_compiler_wl
16616 pic_flag=$lt_prog_compiler_pic
16617 compiler_flags=-v
16618 linker_flags=-v
16619 verstring=
16620 output_objdir=.
16621 libname=conftest
16622 lt_save_allow_undefined_flag=$allow_undefined_flag
16623 allow_undefined_flag=
16624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16625 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16626 ac_status=$?
16627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16628 test $ac_status = 0; }
16629 then
16630 lt_cv_archive_cmds_need_lc=no
16631 else
16632 lt_cv_archive_cmds_need_lc=yes
16633 fi
16634 allow_undefined_flag=$lt_save_allow_undefined_flag
16635 else
16636 cat conftest.err 1>&5
16637 fi
16638 $RM conftest*
16639
16640 fi
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16642 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16643 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16644 ;;
16645 esac
16646 fi
16647 ;;
16648 esac
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16807 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16808
16809 if test "$GCC" = yes; then
16810 case $host_os in
16811 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16812 *) lt_awk_arg="/^libraries:/" ;;
16813 esac
16814 case $host_os in
16815 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16816 *) lt_sed_strip_eq="s,=/,/,g" ;;
16817 esac
16818 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16819 case $lt_search_path_spec in
16820 *\;*)
16821 # if the path contains ";" then we assume it to be the separator
16822 # otherwise default to the standard path separator (i.e. ":") - it is
16823 # assumed that no part of a normal pathname contains ";" but that should
16824 # okay in the real world where ";" in dirpaths is itself problematic.
16825 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16826 ;;
16827 *)
16828 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16829 ;;
16830 esac
16831 # Ok, now we have the path, separated by spaces, we can step through it
16832 # and add multilib dir if necessary.
16833 lt_tmp_lt_search_path_spec=
16834 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16835 for lt_sys_path in $lt_search_path_spec; do
16836 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16837 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16838 else
16839 test -d "$lt_sys_path" && \
16840 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16841 fi
16842 done
16843 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16844 BEGIN {RS=" "; FS="/|\n";} {
16845 lt_foo="";
16846 lt_count=0;
16847 for (lt_i = NF; lt_i > 0; lt_i--) {
16848 if ($lt_i != "" && $lt_i != ".") {
16849 if ($lt_i == "..") {
16850 lt_count++;
16851 } else {
16852 if (lt_count == 0) {
16853 lt_foo="/" $lt_i lt_foo;
16854 } else {
16855 lt_count--;
16856 }
16857 }
16858 }
16859 }
16860 if (lt_foo != "") { lt_freq[lt_foo]++; }
16861 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16862 }'`
16863 # AWK program above erroneously prepends '/' to C:/dos/paths
16864 # for these hosts.
16865 case $host_os in
16866 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16867 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16868 esac
16869 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16870 else
16871 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16872 fi
16873 library_names_spec=
16874 libname_spec='lib$name'
16875 soname_spec=
16876 shrext_cmds=".so"
16877 postinstall_cmds=
16878 postuninstall_cmds=
16879 finish_cmds=
16880 finish_eval=
16881 shlibpath_var=
16882 shlibpath_overrides_runpath=unknown
16883 version_type=none
16884 dynamic_linker="$host_os ld.so"
16885 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16886 need_lib_prefix=unknown
16887 hardcode_into_libs=no
16888
16889 # when you set need_version to no, make sure it does not cause -set_version
16890 # flags to be left without arguments
16891 need_version=unknown
16892
16893 case $host_os in
16894 aix3*)
16895 version_type=linux
16896 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16897 shlibpath_var=LIBPATH
16898
16899 # AIX 3 has no versioning support, so we append a major version to the name.
16900 soname_spec='${libname}${release}${shared_ext}$major'
16901 ;;
16902
16903 aix[4-9]*)
16904 version_type=linux
16905 need_lib_prefix=no
16906 need_version=no
16907 hardcode_into_libs=yes
16908 if test "$host_cpu" = ia64; then
16909 # AIX 5 supports IA64
16910 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16911 shlibpath_var=LD_LIBRARY_PATH
16912 else
16913 # With GCC up to 2.95.x, collect2 would create an import file
16914 # for dependence libraries. The import file would start with
16915 # the line `#! .'. This would cause the generated library to
16916 # depend on `.', always an invalid library. This was fixed in
16917 # development snapshots of GCC prior to 3.0.
16918 case $host_os in
16919 aix4 | aix4.[01] | aix4.[01].*)
16920 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16921 echo ' yes '
16922 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16923 :
16924 else
16925 can_build_shared=no
16926 fi
16927 ;;
16928 esac
16929 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16930 # soname into executable. Probably we can add versioning support to
16931 # collect2, so additional links can be useful in future.
16932 if test "$aix_use_runtimelinking" = yes; then
16933 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16934 # instead of lib<name>.a to let people know that these are not
16935 # typical AIX shared libraries.
16936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16937 else
16938 # We preserve .a as extension for shared libraries through AIX4.2
16939 # and later when we are not doing run time linking.
16940 library_names_spec='${libname}${release}.a $libname.a'
16941 soname_spec='${libname}${release}${shared_ext}$major'
16942 fi
16943 shlibpath_var=LIBPATH
16944 fi
16945 ;;
16946
16947 amigaos*)
16948 case $host_cpu in
16949 powerpc)
16950 # Since July 2007 AmigaOS4 officially supports .so libraries.
16951 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16953 ;;
16954 m68k)
16955 library_names_spec='$libname.ixlibrary $libname.a'
16956 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16957 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'
16958 ;;
16959 esac
16960 ;;
16961
16962 beos*)
16963 library_names_spec='${libname}${shared_ext}'
16964 dynamic_linker="$host_os ld.so"
16965 shlibpath_var=LIBRARY_PATH
16966 ;;
16967
16968 bsdi[45]*)
16969 version_type=linux
16970 need_version=no
16971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16972 soname_spec='${libname}${release}${shared_ext}$major'
16973 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16974 shlibpath_var=LD_LIBRARY_PATH
16975 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16976 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16977 # the default ld.so.conf also contains /usr/contrib/lib and
16978 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16979 # libtool to hard-code these into programs
16980 ;;
16981
16982 cygwin* | mingw* | pw32* | cegcc*)
16983 version_type=windows
16984 shrext_cmds=".dll"
16985 need_version=no
16986 need_lib_prefix=no
16987
16988 case $GCC,$host_os in
16989 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16990 library_names_spec='$libname.dll.a'
16991 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16992 postinstall_cmds='base_file=`basename \${file}`~
16993 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16994 dldir=$destdir/`dirname \$dlpath`~
16995 test -d \$dldir || mkdir -p \$dldir~
16996 $install_prog $dir/$dlname \$dldir/$dlname~
16997 chmod a+x \$dldir/$dlname~
16998 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16999 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17000 fi'
17001 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17002 dlpath=$dir/\$dldll~
17003 $RM \$dlpath'
17004 shlibpath_overrides_runpath=yes
17005
17006 case $host_os in
17007 cygwin*)
17008 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17009 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17010
17011 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17012 ;;
17013 mingw* | cegcc*)
17014 # MinGW DLLs use traditional 'lib' prefix
17015 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17016 ;;
17017 pw32*)
17018 # pw32 DLLs use 'pw' prefix rather than 'lib'
17019 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17020 ;;
17021 esac
17022 ;;
17023
17024 *)
17025 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17026 ;;
17027 esac
17028 dynamic_linker='Win32 ld.exe'
17029 # FIXME: first we should search . and the directory the executable is in
17030 shlibpath_var=PATH
17031 ;;
17032
17033 darwin* | rhapsody*)
17034 dynamic_linker="$host_os dyld"
17035 version_type=darwin
17036 need_lib_prefix=no
17037 need_version=no
17038 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17039 soname_spec='${libname}${release}${major}$shared_ext'
17040 shlibpath_overrides_runpath=yes
17041 shlibpath_var=DYLD_LIBRARY_PATH
17042 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17043
17044 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17045 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17046 ;;
17047
17048 dgux*)
17049 version_type=linux
17050 need_lib_prefix=no
17051 need_version=no
17052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17053 soname_spec='${libname}${release}${shared_ext}$major'
17054 shlibpath_var=LD_LIBRARY_PATH
17055 ;;
17056
17057 freebsd* | dragonfly*)
17058 # DragonFly does not have aout. When/if they implement a new
17059 # versioning mechanism, adjust this.
17060 if test -x /usr/bin/objformat; then
17061 objformat=`/usr/bin/objformat`
17062 else
17063 case $host_os in
17064 freebsd[123]*) objformat=aout ;;
17065 *) objformat=elf ;;
17066 esac
17067 fi
17068 version_type=freebsd-$objformat
17069 case $version_type in
17070 freebsd-elf*)
17071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17072 need_version=no
17073 need_lib_prefix=no
17074 ;;
17075 freebsd-*)
17076 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17077 need_version=yes
17078 ;;
17079 esac
17080 shlibpath_var=LD_LIBRARY_PATH
17081 case $host_os in
17082 freebsd2*)
17083 shlibpath_overrides_runpath=yes
17084 ;;
17085 freebsd3.[01]* | freebsdelf3.[01]*)
17086 shlibpath_overrides_runpath=yes
17087 hardcode_into_libs=yes
17088 ;;
17089 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17090 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17091 shlibpath_overrides_runpath=no
17092 hardcode_into_libs=yes
17093 ;;
17094 *) # from 4.6 on, and DragonFly
17095 shlibpath_overrides_runpath=yes
17096 hardcode_into_libs=yes
17097 ;;
17098 esac
17099 ;;
17100
17101 gnu*)
17102 version_type=linux
17103 need_lib_prefix=no
17104 need_version=no
17105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17106 soname_spec='${libname}${release}${shared_ext}$major'
17107 shlibpath_var=LD_LIBRARY_PATH
17108 hardcode_into_libs=yes
17109 ;;
17110
17111 haiku*)
17112 version_type=linux
17113 need_lib_prefix=no
17114 need_version=no
17115 dynamic_linker="$host_os runtime_loader"
17116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17117 soname_spec='${libname}${release}${shared_ext}$major'
17118 shlibpath_var=LIBRARY_PATH
17119 shlibpath_overrides_runpath=yes
17120 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17121 hardcode_into_libs=yes
17122 ;;
17123
17124 hpux9* | hpux10* | hpux11*)
17125 # Give a soname corresponding to the major version so that dld.sl refuses to
17126 # link against other versions.
17127 version_type=sunos
17128 need_lib_prefix=no
17129 need_version=no
17130 case $host_cpu in
17131 ia64*)
17132 shrext_cmds='.so'
17133 hardcode_into_libs=yes
17134 dynamic_linker="$host_os dld.so"
17135 shlibpath_var=LD_LIBRARY_PATH
17136 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17138 soname_spec='${libname}${release}${shared_ext}$major'
17139 if test "X$HPUX_IA64_MODE" = X32; then
17140 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17141 else
17142 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17143 fi
17144 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17145 ;;
17146 hppa*64*)
17147 shrext_cmds='.sl'
17148 hardcode_into_libs=yes
17149 dynamic_linker="$host_os dld.sl"
17150 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17151 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17153 soname_spec='${libname}${release}${shared_ext}$major'
17154 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17155 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17156 ;;
17157 *)
17158 shrext_cmds='.sl'
17159 dynamic_linker="$host_os dld.sl"
17160 shlibpath_var=SHLIB_PATH
17161 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17163 soname_spec='${libname}${release}${shared_ext}$major'
17164 ;;
17165 esac
17166 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17167 postinstall_cmds='chmod 555 $lib'
17168 # or fails outright, so override atomically:
17169 install_override_mode=555
17170 ;;
17171
17172 interix[3-9]*)
17173 version_type=linux
17174 need_lib_prefix=no
17175 need_version=no
17176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17177 soname_spec='${libname}${release}${shared_ext}$major'
17178 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17179 shlibpath_var=LD_LIBRARY_PATH
17180 shlibpath_overrides_runpath=no
17181 hardcode_into_libs=yes
17182 ;;
17183
17184 irix5* | irix6* | nonstopux*)
17185 case $host_os in
17186 nonstopux*) version_type=nonstopux ;;
17187 *)
17188 if test "$lt_cv_prog_gnu_ld" = yes; then
17189 version_type=linux
17190 else
17191 version_type=irix
17192 fi ;;
17193 esac
17194 need_lib_prefix=no
17195 need_version=no
17196 soname_spec='${libname}${release}${shared_ext}$major'
17197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17198 case $host_os in
17199 irix5* | nonstopux*)
17200 libsuff= shlibsuff=
17201 ;;
17202 *)
17203 case $LD in # libtool.m4 will add one of these switches to LD
17204 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17205 libsuff= shlibsuff= libmagic=32-bit;;
17206 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17207 libsuff=32 shlibsuff=N32 libmagic=N32;;
17208 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17209 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17210 *) libsuff= shlibsuff= libmagic=never-match;;
17211 esac
17212 ;;
17213 esac
17214 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17215 shlibpath_overrides_runpath=no
17216 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17217 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17218 hardcode_into_libs=yes
17219 ;;
17220
17221 # No shared lib support for Linux oldld, aout, or coff.
17222 linux*oldld* | linux*aout* | linux*coff*)
17223 dynamic_linker=no
17224 ;;
17225
17226 # This must be Linux ELF.
17227 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17228 version_type=linux
17229 need_lib_prefix=no
17230 need_version=no
17231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17232 soname_spec='${libname}${release}${shared_ext}$major'
17233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17234 shlibpath_var=LD_LIBRARY_PATH
17235 shlibpath_overrides_runpath=no
17236
17237 # Some binutils ld are patched to set DT_RUNPATH
17238 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17239 $as_echo_n "(cached) " >&6
17240 else
17241 lt_cv_shlibpath_overrides_runpath=no
17242 save_LDFLAGS=$LDFLAGS
17243 save_libdir=$libdir
17244 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17245 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17247 /* end confdefs.h. */
17248
17249 int
17250 main ()
17251 {
17252
17253 ;
17254 return 0;
17255 }
17256 _ACEOF
17257 if ac_fn_c_try_link "$LINENO"; then :
17258 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17259 lt_cv_shlibpath_overrides_runpath=yes
17260 fi
17261 fi
17262 rm -f core conftest.err conftest.$ac_objext \
17263 conftest$ac_exeext conftest.$ac_ext
17264 LDFLAGS=$save_LDFLAGS
17265 libdir=$save_libdir
17266
17267 fi
17268
17269 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17270
17271 # This implies no fast_install, which is unacceptable.
17272 # Some rework will be needed to allow for fast_install
17273 # before this can be enabled.
17274 hardcode_into_libs=yes
17275
17276 # Append ld.so.conf contents to the search path
17277 if test -f /etc/ld.so.conf; then
17278 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' ' '`
17279 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17280 fi
17281
17282 # We used to test for /lib/ld.so.1 and disable shared libraries on
17283 # powerpc, because MkLinux only supported shared libraries with the
17284 # GNU dynamic linker. Since this was broken with cross compilers,
17285 # most powerpc-linux boxes support dynamic linking these days and
17286 # people can always --disable-shared, the test was removed, and we
17287 # assume the GNU/Linux dynamic linker is in use.
17288 dynamic_linker='GNU/Linux ld.so'
17289 ;;
17290
17291 netbsd*)
17292 version_type=sunos
17293 need_lib_prefix=no
17294 need_version=no
17295 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17298 dynamic_linker='NetBSD (a.out) ld.so'
17299 else
17300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17301 soname_spec='${libname}${release}${shared_ext}$major'
17302 dynamic_linker='NetBSD ld.elf_so'
17303 fi
17304 shlibpath_var=LD_LIBRARY_PATH
17305 shlibpath_overrides_runpath=yes
17306 hardcode_into_libs=yes
17307 ;;
17308
17309 newsos6)
17310 version_type=linux
17311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17312 shlibpath_var=LD_LIBRARY_PATH
17313 shlibpath_overrides_runpath=yes
17314 ;;
17315
17316 *nto* | *qnx*)
17317 version_type=qnx
17318 need_lib_prefix=no
17319 need_version=no
17320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17321 soname_spec='${libname}${release}${shared_ext}$major'
17322 shlibpath_var=LD_LIBRARY_PATH
17323 shlibpath_overrides_runpath=no
17324 hardcode_into_libs=yes
17325 dynamic_linker='ldqnx.so'
17326 ;;
17327
17328 openbsd*)
17329 version_type=sunos
17330 sys_lib_dlsearch_path_spec="/usr/lib"
17331 need_lib_prefix=no
17332 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17333 case $host_os in
17334 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17335 *) need_version=no ;;
17336 esac
17337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17339 shlibpath_var=LD_LIBRARY_PATH
17340 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17341 case $host_os in
17342 openbsd2.[89] | openbsd2.[89].*)
17343 shlibpath_overrides_runpath=no
17344 ;;
17345 *)
17346 shlibpath_overrides_runpath=yes
17347 ;;
17348 esac
17349 else
17350 shlibpath_overrides_runpath=yes
17351 fi
17352 ;;
17353
17354 os2*)
17355 libname_spec='$name'
17356 shrext_cmds=".dll"
17357 need_lib_prefix=no
17358 library_names_spec='$libname${shared_ext} $libname.a'
17359 dynamic_linker='OS/2 ld.exe'
17360 shlibpath_var=LIBPATH
17361 ;;
17362
17363 osf3* | osf4* | osf5*)
17364 version_type=osf
17365 need_lib_prefix=no
17366 need_version=no
17367 soname_spec='${libname}${release}${shared_ext}$major'
17368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17369 shlibpath_var=LD_LIBRARY_PATH
17370 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17371 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17372 ;;
17373
17374 rdos*)
17375 dynamic_linker=no
17376 ;;
17377
17378 solaris*)
17379 version_type=linux
17380 need_lib_prefix=no
17381 need_version=no
17382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17383 soname_spec='${libname}${release}${shared_ext}$major'
17384 shlibpath_var=LD_LIBRARY_PATH
17385 shlibpath_overrides_runpath=yes
17386 hardcode_into_libs=yes
17387 # ldd complains unless libraries are executable
17388 postinstall_cmds='chmod +x $lib'
17389 ;;
17390
17391 sunos4*)
17392 version_type=sunos
17393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17394 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17395 shlibpath_var=LD_LIBRARY_PATH
17396 shlibpath_overrides_runpath=yes
17397 if test "$with_gnu_ld" = yes; then
17398 need_lib_prefix=no
17399 fi
17400 need_version=yes
17401 ;;
17402
17403 sysv4 | sysv4.3*)
17404 version_type=linux
17405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17406 soname_spec='${libname}${release}${shared_ext}$major'
17407 shlibpath_var=LD_LIBRARY_PATH
17408 case $host_vendor in
17409 sni)
17410 shlibpath_overrides_runpath=no
17411 need_lib_prefix=no
17412 runpath_var=LD_RUN_PATH
17413 ;;
17414 siemens)
17415 need_lib_prefix=no
17416 ;;
17417 motorola)
17418 need_lib_prefix=no
17419 need_version=no
17420 shlibpath_overrides_runpath=no
17421 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17422 ;;
17423 esac
17424 ;;
17425
17426 sysv4*MP*)
17427 if test -d /usr/nec ;then
17428 version_type=linux
17429 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17430 soname_spec='$libname${shared_ext}.$major'
17431 shlibpath_var=LD_LIBRARY_PATH
17432 fi
17433 ;;
17434
17435 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17436 version_type=freebsd-elf
17437 need_lib_prefix=no
17438 need_version=no
17439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17440 soname_spec='${libname}${release}${shared_ext}$major'
17441 shlibpath_var=LD_LIBRARY_PATH
17442 shlibpath_overrides_runpath=yes
17443 hardcode_into_libs=yes
17444 if test "$with_gnu_ld" = yes; then
17445 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17446 else
17447 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17448 case $host_os in
17449 sco3.2v5*)
17450 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17451 ;;
17452 esac
17453 fi
17454 sys_lib_dlsearch_path_spec='/usr/lib'
17455 ;;
17456
17457 tpf*)
17458 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17459 version_type=linux
17460 need_lib_prefix=no
17461 need_version=no
17462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17463 shlibpath_var=LD_LIBRARY_PATH
17464 shlibpath_overrides_runpath=no
17465 hardcode_into_libs=yes
17466 ;;
17467
17468 uts4*)
17469 version_type=linux
17470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17471 soname_spec='${libname}${release}${shared_ext}$major'
17472 shlibpath_var=LD_LIBRARY_PATH
17473 ;;
17474
17475 *)
17476 dynamic_linker=no
17477 ;;
17478 esac
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17480 $as_echo "$dynamic_linker" >&6; }
17481 test "$dynamic_linker" = no && can_build_shared=no
17482
17483 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17484 if test "$GCC" = yes; then
17485 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17486 fi
17487
17488 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17489 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17490 fi
17491 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17492 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17493 fi
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17587 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17588 hardcode_action=
17589 if test -n "$hardcode_libdir_flag_spec" ||
17590 test -n "$runpath_var" ||
17591 test "X$hardcode_automatic" = "Xyes" ; then
17592
17593 # We can hardcode non-existent directories.
17594 if test "$hardcode_direct" != no &&
17595 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17596 # have to relink, otherwise we might link with an installed library
17597 # when we should be linking with a yet-to-be-installed one
17598 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17599 test "$hardcode_minus_L" != no; then
17600 # Linking always hardcodes the temporary library directory.
17601 hardcode_action=relink
17602 else
17603 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17604 hardcode_action=immediate
17605 fi
17606 else
17607 # We cannot hardcode anything, or else we can only hardcode existing
17608 # directories.
17609 hardcode_action=unsupported
17610 fi
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17612 $as_echo "$hardcode_action" >&6; }
17613
17614 if test "$hardcode_action" = relink ||
17615 test "$inherit_rpath" = yes; then
17616 # Fast installation is not supported
17617 enable_fast_install=no
17618 elif test "$shlibpath_overrides_runpath" = yes ||
17619 test "$enable_shared" = no; then
17620 # Fast installation is not necessary
17621 enable_fast_install=needless
17622 fi
17623
17624
17625
17626
17627
17628
17629 if test "x$enable_dlopen" != xyes; then
17630 enable_dlopen=unknown
17631 enable_dlopen_self=unknown
17632 enable_dlopen_self_static=unknown
17633 else
17634 lt_cv_dlopen=no
17635 lt_cv_dlopen_libs=
17636
17637 case $host_os in
17638 beos*)
17639 lt_cv_dlopen="load_add_on"
17640 lt_cv_dlopen_libs=
17641 lt_cv_dlopen_self=yes
17642 ;;
17643
17644 mingw* | pw32* | cegcc*)
17645 lt_cv_dlopen="LoadLibrary"
17646 lt_cv_dlopen_libs=
17647 ;;
17648
17649 cygwin*)
17650 lt_cv_dlopen="dlopen"
17651 lt_cv_dlopen_libs=
17652 ;;
17653
17654 darwin*)
17655 # if libdl is installed we need to link against it
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17657 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17658 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17659 $as_echo_n "(cached) " >&6
17660 else
17661 ac_check_lib_save_LIBS=$LIBS
17662 LIBS="-ldl $LIBS"
17663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17664 /* end confdefs.h. */
17665
17666 /* Override any GCC internal prototype to avoid an error.
17667 Use char because int might match the return type of a GCC
17668 builtin and then its argument prototype would still apply. */
17669 #ifdef __cplusplus
17670 extern "C"
17671 #endif
17672 char dlopen ();
17673 int
17674 main ()
17675 {
17676 return dlopen ();
17677 ;
17678 return 0;
17679 }
17680 _ACEOF
17681 if ac_fn_c_try_link "$LINENO"; then :
17682 ac_cv_lib_dl_dlopen=yes
17683 else
17684 ac_cv_lib_dl_dlopen=no
17685 fi
17686 rm -f core conftest.err conftest.$ac_objext \
17687 conftest$ac_exeext conftest.$ac_ext
17688 LIBS=$ac_check_lib_save_LIBS
17689 fi
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17691 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17692 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17693 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17694 else
17695
17696 lt_cv_dlopen="dyld"
17697 lt_cv_dlopen_libs=
17698 lt_cv_dlopen_self=yes
17699
17700 fi
17701
17702 ;;
17703
17704 *)
17705 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17706 if test "x$ac_cv_func_shl_load" = x""yes; then :
17707 lt_cv_dlopen="shl_load"
17708 else
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17710 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17711 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17712 $as_echo_n "(cached) " >&6
17713 else
17714 ac_check_lib_save_LIBS=$LIBS
17715 LIBS="-ldld $LIBS"
17716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17717 /* end confdefs.h. */
17718
17719 /* Override any GCC internal prototype to avoid an error.
17720 Use char because int might match the return type of a GCC
17721 builtin and then its argument prototype would still apply. */
17722 #ifdef __cplusplus
17723 extern "C"
17724 #endif
17725 char shl_load ();
17726 int
17727 main ()
17728 {
17729 return shl_load ();
17730 ;
17731 return 0;
17732 }
17733 _ACEOF
17734 if ac_fn_c_try_link "$LINENO"; then :
17735 ac_cv_lib_dld_shl_load=yes
17736 else
17737 ac_cv_lib_dld_shl_load=no
17738 fi
17739 rm -f core conftest.err conftest.$ac_objext \
17740 conftest$ac_exeext conftest.$ac_ext
17741 LIBS=$ac_check_lib_save_LIBS
17742 fi
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17744 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17745 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17746 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17747 else
17748 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17749 if test "x$ac_cv_func_dlopen" = x""yes; then :
17750 lt_cv_dlopen="dlopen"
17751 else
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17753 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17754 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17755 $as_echo_n "(cached) " >&6
17756 else
17757 ac_check_lib_save_LIBS=$LIBS
17758 LIBS="-ldl $LIBS"
17759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17760 /* end confdefs.h. */
17761
17762 /* Override any GCC internal prototype to avoid an error.
17763 Use char because int might match the return type of a GCC
17764 builtin and then its argument prototype would still apply. */
17765 #ifdef __cplusplus
17766 extern "C"
17767 #endif
17768 char dlopen ();
17769 int
17770 main ()
17771 {
17772 return dlopen ();
17773 ;
17774 return 0;
17775 }
17776 _ACEOF
17777 if ac_fn_c_try_link "$LINENO"; then :
17778 ac_cv_lib_dl_dlopen=yes
17779 else
17780 ac_cv_lib_dl_dlopen=no
17781 fi
17782 rm -f core conftest.err conftest.$ac_objext \
17783 conftest$ac_exeext conftest.$ac_ext
17784 LIBS=$ac_check_lib_save_LIBS
17785 fi
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17787 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17788 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17789 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17790 else
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17792 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17793 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17794 $as_echo_n "(cached) " >&6
17795 else
17796 ac_check_lib_save_LIBS=$LIBS
17797 LIBS="-lsvld $LIBS"
17798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17799 /* end confdefs.h. */
17800
17801 /* Override any GCC internal prototype to avoid an error.
17802 Use char because int might match the return type of a GCC
17803 builtin and then its argument prototype would still apply. */
17804 #ifdef __cplusplus
17805 extern "C"
17806 #endif
17807 char dlopen ();
17808 int
17809 main ()
17810 {
17811 return dlopen ();
17812 ;
17813 return 0;
17814 }
17815 _ACEOF
17816 if ac_fn_c_try_link "$LINENO"; then :
17817 ac_cv_lib_svld_dlopen=yes
17818 else
17819 ac_cv_lib_svld_dlopen=no
17820 fi
17821 rm -f core conftest.err conftest.$ac_objext \
17822 conftest$ac_exeext conftest.$ac_ext
17823 LIBS=$ac_check_lib_save_LIBS
17824 fi
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17826 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17827 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17828 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17829 else
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17831 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17832 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17833 $as_echo_n "(cached) " >&6
17834 else
17835 ac_check_lib_save_LIBS=$LIBS
17836 LIBS="-ldld $LIBS"
17837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17838 /* end confdefs.h. */
17839
17840 /* Override any GCC internal prototype to avoid an error.
17841 Use char because int might match the return type of a GCC
17842 builtin and then its argument prototype would still apply. */
17843 #ifdef __cplusplus
17844 extern "C"
17845 #endif
17846 char dld_link ();
17847 int
17848 main ()
17849 {
17850 return dld_link ();
17851 ;
17852 return 0;
17853 }
17854 _ACEOF
17855 if ac_fn_c_try_link "$LINENO"; then :
17856 ac_cv_lib_dld_dld_link=yes
17857 else
17858 ac_cv_lib_dld_dld_link=no
17859 fi
17860 rm -f core conftest.err conftest.$ac_objext \
17861 conftest$ac_exeext conftest.$ac_ext
17862 LIBS=$ac_check_lib_save_LIBS
17863 fi
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17865 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17866 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17867 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17868 fi
17869
17870
17871 fi
17872
17873
17874 fi
17875
17876
17877 fi
17878
17879
17880 fi
17881
17882
17883 fi
17884
17885 ;;
17886 esac
17887
17888 if test "x$lt_cv_dlopen" != xno; then
17889 enable_dlopen=yes
17890 else
17891 enable_dlopen=no
17892 fi
17893
17894 case $lt_cv_dlopen in
17895 dlopen)
17896 save_CPPFLAGS="$CPPFLAGS"
17897 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17898
17899 save_LDFLAGS="$LDFLAGS"
17900 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17901
17902 save_LIBS="$LIBS"
17903 LIBS="$lt_cv_dlopen_libs $LIBS"
17904
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17906 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17907 if test "${lt_cv_dlopen_self+set}" = set; then :
17908 $as_echo_n "(cached) " >&6
17909 else
17910 if test "$cross_compiling" = yes; then :
17911 lt_cv_dlopen_self=cross
17912 else
17913 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17914 lt_status=$lt_dlunknown
17915 cat > conftest.$ac_ext <<_LT_EOF
17916 #line 17916 "configure"
17917 #include "confdefs.h"
17918
17919 #if HAVE_DLFCN_H
17920 #include <dlfcn.h>
17921 #endif
17922
17923 #include <stdio.h>
17924
17925 #ifdef RTLD_GLOBAL
17926 # define LT_DLGLOBAL RTLD_GLOBAL
17927 #else
17928 # ifdef DL_GLOBAL
17929 # define LT_DLGLOBAL DL_GLOBAL
17930 # else
17931 # define LT_DLGLOBAL 0
17932 # endif
17933 #endif
17934
17935 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17936 find out it does not work in some platform. */
17937 #ifndef LT_DLLAZY_OR_NOW
17938 # ifdef RTLD_LAZY
17939 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17940 # else
17941 # ifdef DL_LAZY
17942 # define LT_DLLAZY_OR_NOW DL_LAZY
17943 # else
17944 # ifdef RTLD_NOW
17945 # define LT_DLLAZY_OR_NOW RTLD_NOW
17946 # else
17947 # ifdef DL_NOW
17948 # define LT_DLLAZY_OR_NOW DL_NOW
17949 # else
17950 # define LT_DLLAZY_OR_NOW 0
17951 # endif
17952 # endif
17953 # endif
17954 # endif
17955 #endif
17956
17957 /* When -fvisbility=hidden is used, assume the code has been annotated
17958 correspondingly for the symbols needed. */
17959 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17960 void fnord () __attribute__((visibility("default")));
17961 #endif
17962
17963 void fnord () { int i=42; }
17964 int main ()
17965 {
17966 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17967 int status = $lt_dlunknown;
17968
17969 if (self)
17970 {
17971 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17972 else
17973 {
17974 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17975 else puts (dlerror ());
17976 }
17977 /* dlclose (self); */
17978 }
17979 else
17980 puts (dlerror ());
17981
17982 return status;
17983 }
17984 _LT_EOF
17985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17986 (eval $ac_link) 2>&5
17987 ac_status=$?
17988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17989 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17990 (./conftest; exit; ) >&5 2>/dev/null
17991 lt_status=$?
17992 case x$lt_status in
17993 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17994 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17995 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17996 esac
17997 else :
17998 # compilation failed
17999 lt_cv_dlopen_self=no
18000 fi
18001 fi
18002 rm -fr conftest*
18003
18004
18005 fi
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18007 $as_echo "$lt_cv_dlopen_self" >&6; }
18008
18009 if test "x$lt_cv_dlopen_self" = xyes; then
18010 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18012 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18013 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18014 $as_echo_n "(cached) " >&6
18015 else
18016 if test "$cross_compiling" = yes; then :
18017 lt_cv_dlopen_self_static=cross
18018 else
18019 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18020 lt_status=$lt_dlunknown
18021 cat > conftest.$ac_ext <<_LT_EOF
18022 #line 18022 "configure"
18023 #include "confdefs.h"
18024
18025 #if HAVE_DLFCN_H
18026 #include <dlfcn.h>
18027 #endif
18028
18029 #include <stdio.h>
18030
18031 #ifdef RTLD_GLOBAL
18032 # define LT_DLGLOBAL RTLD_GLOBAL
18033 #else
18034 # ifdef DL_GLOBAL
18035 # define LT_DLGLOBAL DL_GLOBAL
18036 # else
18037 # define LT_DLGLOBAL 0
18038 # endif
18039 #endif
18040
18041 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18042 find out it does not work in some platform. */
18043 #ifndef LT_DLLAZY_OR_NOW
18044 # ifdef RTLD_LAZY
18045 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18046 # else
18047 # ifdef DL_LAZY
18048 # define LT_DLLAZY_OR_NOW DL_LAZY
18049 # else
18050 # ifdef RTLD_NOW
18051 # define LT_DLLAZY_OR_NOW RTLD_NOW
18052 # else
18053 # ifdef DL_NOW
18054 # define LT_DLLAZY_OR_NOW DL_NOW
18055 # else
18056 # define LT_DLLAZY_OR_NOW 0
18057 # endif
18058 # endif
18059 # endif
18060 # endif
18061 #endif
18062
18063 /* When -fvisbility=hidden is used, assume the code has been annotated
18064 correspondingly for the symbols needed. */
18065 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18066 void fnord () __attribute__((visibility("default")));
18067 #endif
18068
18069 void fnord () { int i=42; }
18070 int main ()
18071 {
18072 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18073 int status = $lt_dlunknown;
18074
18075 if (self)
18076 {
18077 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18078 else
18079 {
18080 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18081 else puts (dlerror ());
18082 }
18083 /* dlclose (self); */
18084 }
18085 else
18086 puts (dlerror ());
18087
18088 return status;
18089 }
18090 _LT_EOF
18091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18092 (eval $ac_link) 2>&5
18093 ac_status=$?
18094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18095 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18096 (./conftest; exit; ) >&5 2>/dev/null
18097 lt_status=$?
18098 case x$lt_status in
18099 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18100 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18101 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18102 esac
18103 else :
18104 # compilation failed
18105 lt_cv_dlopen_self_static=no
18106 fi
18107 fi
18108 rm -fr conftest*
18109
18110
18111 fi
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18113 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18114 fi
18115
18116 CPPFLAGS="$save_CPPFLAGS"
18117 LDFLAGS="$save_LDFLAGS"
18118 LIBS="$save_LIBS"
18119 ;;
18120 esac
18121
18122 case $lt_cv_dlopen_self in
18123 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18124 *) enable_dlopen_self=unknown ;;
18125 esac
18126
18127 case $lt_cv_dlopen_self_static in
18128 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18129 *) enable_dlopen_self_static=unknown ;;
18130 esac
18131 fi
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149 striplib=
18150 old_striplib=
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18152 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18153 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18154 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18155 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18157 $as_echo "yes" >&6; }
18158 else
18159 # FIXME - insert some real tests, host_os isn't really good enough
18160 case $host_os in
18161 darwin*)
18162 if test -n "$STRIP" ; then
18163 striplib="$STRIP -x"
18164 old_striplib="$STRIP -S"
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18166 $as_echo "yes" >&6; }
18167 else
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18169 $as_echo "no" >&6; }
18170 fi
18171 ;;
18172 *)
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18174 $as_echo "no" >&6; }
18175 ;;
18176 esac
18177 fi
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190 # Report which library types will actually be built
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18192 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18194 $as_echo "$can_build_shared" >&6; }
18195
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18197 $as_echo_n "checking whether to build shared libraries... " >&6; }
18198 test "$can_build_shared" = "no" && enable_shared=no
18199
18200 # On AIX, shared libraries and static libraries use the same namespace, and
18201 # are all built from PIC.
18202 case $host_os in
18203 aix3*)
18204 test "$enable_shared" = yes && enable_static=no
18205 if test -n "$RANLIB"; then
18206 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18207 postinstall_cmds='$RANLIB $lib'
18208 fi
18209 ;;
18210
18211 aix[4-9]*)
18212 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18213 test "$enable_shared" = yes && enable_static=no
18214 fi
18215 ;;
18216 esac
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18218 $as_echo "$enable_shared" >&6; }
18219
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18221 $as_echo_n "checking whether to build static libraries... " >&6; }
18222 # Make sure either enable_shared or enable_static is yes.
18223 test "$enable_shared" = yes || enable_static=yes
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18225 $as_echo "$enable_static" >&6; }
18226
18227
18228
18229
18230 fi
18231 ac_ext=c
18232 ac_cpp='$CPP $CPPFLAGS'
18233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18236
18237 CC="$lt_save_CC"
18238
18239 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18240 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18241 (test "X$CXX" != "Xg++"))) ; then
18242 ac_ext=cpp
18243 ac_cpp='$CXXCPP $CPPFLAGS'
18244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18248 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18249 if test -z "$CXXCPP"; then
18250 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18251 $as_echo_n "(cached) " >&6
18252 else
18253 # Double quotes because CXXCPP needs to be expanded
18254 for CXXCPP in "$CXX -E" "/lib/cpp"
18255 do
18256 ac_preproc_ok=false
18257 for ac_cxx_preproc_warn_flag in '' yes
18258 do
18259 # Use a header file that comes with gcc, so configuring glibc
18260 # with a fresh cross-compiler works.
18261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18262 # <limits.h> exists even on freestanding compilers.
18263 # On the NeXT, cc -E runs the code through the compiler's parser,
18264 # not just through cpp. "Syntax error" is here to catch this case.
18265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18266 /* end confdefs.h. */
18267 #ifdef __STDC__
18268 # include <limits.h>
18269 #else
18270 # include <assert.h>
18271 #endif
18272 Syntax error
18273 _ACEOF
18274 if ac_fn_cxx_try_cpp "$LINENO"; then :
18275
18276 else
18277 # Broken: fails on valid input.
18278 continue
18279 fi
18280 rm -f conftest.err conftest.$ac_ext
18281
18282 # OK, works on sane cases. Now check whether nonexistent headers
18283 # can be detected and how.
18284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18285 /* end confdefs.h. */
18286 #include <ac_nonexistent.h>
18287 _ACEOF
18288 if ac_fn_cxx_try_cpp "$LINENO"; then :
18289 # Broken: success on invalid input.
18290 continue
18291 else
18292 # Passes both tests.
18293 ac_preproc_ok=:
18294 break
18295 fi
18296 rm -f conftest.err conftest.$ac_ext
18297
18298 done
18299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18300 rm -f conftest.err conftest.$ac_ext
18301 if $ac_preproc_ok; then :
18302 break
18303 fi
18304
18305 done
18306 ac_cv_prog_CXXCPP=$CXXCPP
18307
18308 fi
18309 CXXCPP=$ac_cv_prog_CXXCPP
18310 else
18311 ac_cv_prog_CXXCPP=$CXXCPP
18312 fi
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18314 $as_echo "$CXXCPP" >&6; }
18315 ac_preproc_ok=false
18316 for ac_cxx_preproc_warn_flag in '' yes
18317 do
18318 # Use a header file that comes with gcc, so configuring glibc
18319 # with a fresh cross-compiler works.
18320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18321 # <limits.h> exists even on freestanding compilers.
18322 # On the NeXT, cc -E runs the code through the compiler's parser,
18323 # not just through cpp. "Syntax error" is here to catch this case.
18324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18325 /* end confdefs.h. */
18326 #ifdef __STDC__
18327 # include <limits.h>
18328 #else
18329 # include <assert.h>
18330 #endif
18331 Syntax error
18332 _ACEOF
18333 if ac_fn_cxx_try_cpp "$LINENO"; then :
18334
18335 else
18336 # Broken: fails on valid input.
18337 continue
18338 fi
18339 rm -f conftest.err conftest.$ac_ext
18340
18341 # OK, works on sane cases. Now check whether nonexistent headers
18342 # can be detected and how.
18343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18344 /* end confdefs.h. */
18345 #include <ac_nonexistent.h>
18346 _ACEOF
18347 if ac_fn_cxx_try_cpp "$LINENO"; then :
18348 # Broken: success on invalid input.
18349 continue
18350 else
18351 # Passes both tests.
18352 ac_preproc_ok=:
18353 break
18354 fi
18355 rm -f conftest.err conftest.$ac_ext
18356
18357 done
18358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18359 rm -f conftest.err conftest.$ac_ext
18360 if $ac_preproc_ok; then :
18361
18362 else
18363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18365 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18366 See \`config.log' for more details." "$LINENO" 5; }
18367 fi
18368
18369 ac_ext=c
18370 ac_cpp='$CPP $CPPFLAGS'
18371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18374
18375 else
18376 _lt_caught_CXX_error=yes
18377 fi
18378
18379 ac_ext=cpp
18380 ac_cpp='$CXXCPP $CPPFLAGS'
18381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18384
18385 archive_cmds_need_lc_CXX=no
18386 allow_undefined_flag_CXX=
18387 always_export_symbols_CXX=no
18388 archive_expsym_cmds_CXX=
18389 compiler_needs_object_CXX=no
18390 export_dynamic_flag_spec_CXX=
18391 hardcode_direct_CXX=no
18392 hardcode_direct_absolute_CXX=no
18393 hardcode_libdir_flag_spec_CXX=
18394 hardcode_libdir_flag_spec_ld_CXX=
18395 hardcode_libdir_separator_CXX=
18396 hardcode_minus_L_CXX=no
18397 hardcode_shlibpath_var_CXX=unsupported
18398 hardcode_automatic_CXX=no
18399 inherit_rpath_CXX=no
18400 module_cmds_CXX=
18401 module_expsym_cmds_CXX=
18402 link_all_deplibs_CXX=unknown
18403 old_archive_cmds_CXX=$old_archive_cmds
18404 reload_flag_CXX=$reload_flag
18405 reload_cmds_CXX=$reload_cmds
18406 no_undefined_flag_CXX=
18407 whole_archive_flag_spec_CXX=
18408 enable_shared_with_static_runtimes_CXX=no
18409
18410 # Source file extension for C++ test sources.
18411 ac_ext=cpp
18412
18413 # Object file extension for compiled C++ test sources.
18414 objext=o
18415 objext_CXX=$objext
18416
18417 # No sense in running all these tests if we already determined that
18418 # the CXX compiler isn't working. Some variables (like enable_shared)
18419 # are currently assumed to apply to all compilers on this platform,
18420 # and will be corrupted by setting them based on a non-working compiler.
18421 if test "$_lt_caught_CXX_error" != yes; then
18422 # Code to be used in simple compile tests
18423 lt_simple_compile_test_code="int some_variable = 0;"
18424
18425 # Code to be used in simple link tests
18426 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18427
18428 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18429
18430
18431
18432
18433
18434
18435 # If no C compiler was specified, use CC.
18436 LTCC=${LTCC-"$CC"}
18437
18438 # If no C compiler flags were specified, use CFLAGS.
18439 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18440
18441 # Allow CC to be a program name with arguments.
18442 compiler=$CC
18443
18444
18445 # save warnings/boilerplate of simple test code
18446 ac_outfile=conftest.$ac_objext
18447 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18448 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18449 _lt_compiler_boilerplate=`cat conftest.err`
18450 $RM conftest*
18451
18452 ac_outfile=conftest.$ac_objext
18453 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18454 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18455 _lt_linker_boilerplate=`cat conftest.err`
18456 $RM -r conftest*
18457
18458
18459 # Allow CC to be a program name with arguments.
18460 lt_save_CC=$CC
18461 lt_save_LD=$LD
18462 lt_save_GCC=$GCC
18463 GCC=$GXX
18464 lt_save_with_gnu_ld=$with_gnu_ld
18465 lt_save_path_LD=$lt_cv_path_LD
18466 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18467 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18468 else
18469 $as_unset lt_cv_prog_gnu_ld
18470 fi
18471 if test -n "${lt_cv_path_LDCXX+set}"; then
18472 lt_cv_path_LD=$lt_cv_path_LDCXX
18473 else
18474 $as_unset lt_cv_path_LD
18475 fi
18476 test -z "${LDCXX+set}" || LD=$LDCXX
18477 CC=${CXX-"c++"}
18478 compiler=$CC
18479 compiler_CXX=$CC
18480 for cc_temp in $compiler""; do
18481 case $cc_temp in
18482 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18483 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18484 \-*) ;;
18485 *) break;;
18486 esac
18487 done
18488 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18489
18490
18491 if test -n "$compiler"; then
18492 # We don't want -fno-exception when compiling C++ code, so set the
18493 # no_builtin_flag separately
18494 if test "$GXX" = yes; then
18495 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18496 else
18497 lt_prog_compiler_no_builtin_flag_CXX=
18498 fi
18499
18500 if test "$GXX" = yes; then
18501 # Set up default GNU C++ configuration
18502
18503
18504
18505 # Check whether --with-gnu-ld was given.
18506 if test "${with_gnu_ld+set}" = set; then :
18507 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18508 else
18509 with_gnu_ld=no
18510 fi
18511
18512 ac_prog=ld
18513 if test "$GCC" = yes; then
18514 # Check if gcc -print-prog-name=ld gives a path.
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18516 $as_echo_n "checking for ld used by $CC... " >&6; }
18517 case $host in
18518 *-*-mingw*)
18519 # gcc leaves a trailing carriage return which upsets mingw
18520 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18521 *)
18522 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18523 esac
18524 case $ac_prog in
18525 # Accept absolute paths.
18526 [\\/]* | ?:[\\/]*)
18527 re_direlt='/[^/][^/]*/\.\./'
18528 # Canonicalize the pathname of ld
18529 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18530 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18531 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18532 done
18533 test -z "$LD" && LD="$ac_prog"
18534 ;;
18535 "")
18536 # If it fails, then pretend we aren't using GCC.
18537 ac_prog=ld
18538 ;;
18539 *)
18540 # If it is relative, then search for the first ld in PATH.
18541 with_gnu_ld=unknown
18542 ;;
18543 esac
18544 elif test "$with_gnu_ld" = yes; then
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18546 $as_echo_n "checking for GNU ld... " >&6; }
18547 else
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18549 $as_echo_n "checking for non-GNU ld... " >&6; }
18550 fi
18551 if test "${lt_cv_path_LD+set}" = set; then :
18552 $as_echo_n "(cached) " >&6
18553 else
18554 if test -z "$LD"; then
18555 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18556 for ac_dir in $PATH; do
18557 IFS="$lt_save_ifs"
18558 test -z "$ac_dir" && ac_dir=.
18559 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18560 lt_cv_path_LD="$ac_dir/$ac_prog"
18561 # Check to see if the program is GNU ld. I'd rather use --version,
18562 # but apparently some variants of GNU ld only accept -v.
18563 # Break only if it was the GNU/non-GNU ld that we prefer.
18564 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18565 *GNU* | *'with BFD'*)
18566 test "$with_gnu_ld" != no && break
18567 ;;
18568 *)
18569 test "$with_gnu_ld" != yes && break
18570 ;;
18571 esac
18572 fi
18573 done
18574 IFS="$lt_save_ifs"
18575 else
18576 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18577 fi
18578 fi
18579
18580 LD="$lt_cv_path_LD"
18581 if test -n "$LD"; then
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18583 $as_echo "$LD" >&6; }
18584 else
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18586 $as_echo "no" >&6; }
18587 fi
18588 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18590 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18591 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18592 $as_echo_n "(cached) " >&6
18593 else
18594 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18595 case `$LD -v 2>&1 </dev/null` in
18596 *GNU* | *'with BFD'*)
18597 lt_cv_prog_gnu_ld=yes
18598 ;;
18599 *)
18600 lt_cv_prog_gnu_ld=no
18601 ;;
18602 esac
18603 fi
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18605 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18606 with_gnu_ld=$lt_cv_prog_gnu_ld
18607
18608
18609
18610
18611
18612
18613
18614 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18615 # archiving commands below assume that GNU ld is being used.
18616 if test "$with_gnu_ld" = yes; then
18617 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18618 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'
18619
18620 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18621 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18622
18623 # If archive_cmds runs LD, not CC, wlarc should be empty
18624 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18625 # investigate it a little bit more. (MM)
18626 wlarc='${wl}'
18627
18628 # ancient GNU ld didn't support --whole-archive et. al.
18629 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18630 $GREP 'no-whole-archive' > /dev/null; then
18631 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18632 else
18633 whole_archive_flag_spec_CXX=
18634 fi
18635 else
18636 with_gnu_ld=no
18637 wlarc=
18638
18639 # A generic and very simple default shared library creation
18640 # command for GNU C++ for the case where it uses the native
18641 # linker, instead of GNU ld. If possible, this setting should
18642 # overridden to take advantage of the native linker features on
18643 # the platform it is being used on.
18644 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18645 fi
18646
18647 # Commands to make compiler produce verbose output that lists
18648 # what "hidden" libraries, object files and flags are used when
18649 # linking a shared library.
18650 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18651
18652 else
18653 GXX=no
18654 with_gnu_ld=no
18655 wlarc=
18656 fi
18657
18658 # PORTME: fill in a description of your system's C++ link characteristics
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18660 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18661 ld_shlibs_CXX=yes
18662 case $host_os in
18663 aix3*)
18664 # FIXME: insert proper C++ library support
18665 ld_shlibs_CXX=no
18666 ;;
18667 aix[4-9]*)
18668 if test "$host_cpu" = ia64; then
18669 # On IA64, the linker does run time linking by default, so we don't
18670 # have to do anything special.
18671 aix_use_runtimelinking=no
18672 exp_sym_flag='-Bexport'
18673 no_entry_flag=""
18674 else
18675 aix_use_runtimelinking=no
18676
18677 # Test if we are trying to use run time linking or normal
18678 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18679 # need to do runtime linking.
18680 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18681 for ld_flag in $LDFLAGS; do
18682 case $ld_flag in
18683 *-brtl*)
18684 aix_use_runtimelinking=yes
18685 break
18686 ;;
18687 esac
18688 done
18689 ;;
18690 esac
18691
18692 exp_sym_flag='-bexport'
18693 no_entry_flag='-bnoentry'
18694 fi
18695
18696 # When large executables or shared objects are built, AIX ld can
18697 # have problems creating the table of contents. If linking a library
18698 # or program results in "error TOC overflow" add -mminimal-toc to
18699 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18700 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18701
18702 archive_cmds_CXX=''
18703 hardcode_direct_CXX=yes
18704 hardcode_direct_absolute_CXX=yes
18705 hardcode_libdir_separator_CXX=':'
18706 link_all_deplibs_CXX=yes
18707 file_list_spec_CXX='${wl}-f,'
18708
18709 if test "$GXX" = yes; then
18710 case $host_os in aix4.[012]|aix4.[012].*)
18711 # We only want to do this on AIX 4.2 and lower, the check
18712 # below for broken collect2 doesn't work under 4.3+
18713 collect2name=`${CC} -print-prog-name=collect2`
18714 if test -f "$collect2name" &&
18715 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18716 then
18717 # We have reworked collect2
18718 :
18719 else
18720 # We have old collect2
18721 hardcode_direct_CXX=unsupported
18722 # It fails to find uninstalled libraries when the uninstalled
18723 # path is not listed in the libpath. Setting hardcode_minus_L
18724 # to unsupported forces relinking
18725 hardcode_minus_L_CXX=yes
18726 hardcode_libdir_flag_spec_CXX='-L$libdir'
18727 hardcode_libdir_separator_CXX=
18728 fi
18729 esac
18730 shared_flag='-shared'
18731 if test "$aix_use_runtimelinking" = yes; then
18732 shared_flag="$shared_flag "'${wl}-G'
18733 fi
18734 else
18735 # not using gcc
18736 if test "$host_cpu" = ia64; then
18737 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18738 # chokes on -Wl,-G. The following line is correct:
18739 shared_flag='-G'
18740 else
18741 if test "$aix_use_runtimelinking" = yes; then
18742 shared_flag='${wl}-G'
18743 else
18744 shared_flag='${wl}-bM:SRE'
18745 fi
18746 fi
18747 fi
18748
18749 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18750 # It seems that -bexpall does not export symbols beginning with
18751 # underscore (_), so it is better to generate a list of symbols to
18752 # export.
18753 always_export_symbols_CXX=yes
18754 if test "$aix_use_runtimelinking" = yes; then
18755 # Warning - without using the other runtime loading flags (-brtl),
18756 # -berok will link without error, but may produce a broken library.
18757 allow_undefined_flag_CXX='-berok'
18758 # Determine the default libpath from the value encoded in an empty
18759 # executable.
18760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18761 /* end confdefs.h. */
18762
18763 int
18764 main ()
18765 {
18766
18767 ;
18768 return 0;
18769 }
18770 _ACEOF
18771 if ac_fn_cxx_try_link "$LINENO"; then :
18772
18773 lt_aix_libpath_sed='
18774 /Import File Strings/,/^$/ {
18775 /^0/ {
18776 s/^0 *\(.*\)$/\1/
18777 p
18778 }
18779 }'
18780 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18781 # Check for a 64-bit object if we didn't find anything.
18782 if test -z "$aix_libpath"; then
18783 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18784 fi
18785 fi
18786 rm -f core conftest.err conftest.$ac_objext \
18787 conftest$ac_exeext conftest.$ac_ext
18788 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18789
18790 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18791
18792 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"
18793 else
18794 if test "$host_cpu" = ia64; then
18795 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18796 allow_undefined_flag_CXX="-z nodefs"
18797 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"
18798 else
18799 # Determine the default libpath from the value encoded in an
18800 # empty executable.
18801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18802 /* end confdefs.h. */
18803
18804 int
18805 main ()
18806 {
18807
18808 ;
18809 return 0;
18810 }
18811 _ACEOF
18812 if ac_fn_cxx_try_link "$LINENO"; then :
18813
18814 lt_aix_libpath_sed='
18815 /Import File Strings/,/^$/ {
18816 /^0/ {
18817 s/^0 *\(.*\)$/\1/
18818 p
18819 }
18820 }'
18821 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18822 # Check for a 64-bit object if we didn't find anything.
18823 if test -z "$aix_libpath"; then
18824 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18825 fi
18826 fi
18827 rm -f core conftest.err conftest.$ac_objext \
18828 conftest$ac_exeext conftest.$ac_ext
18829 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18830
18831 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18832 # Warning - without using the other run time loading flags,
18833 # -berok will link without error, but may produce a broken library.
18834 no_undefined_flag_CXX=' ${wl}-bernotok'
18835 allow_undefined_flag_CXX=' ${wl}-berok'
18836 if test "$with_gnu_ld" = yes; then
18837 # We only use this code for GNU lds that support --whole-archive.
18838 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18839 else
18840 # Exported symbols can be pulled into shared objects from archives
18841 whole_archive_flag_spec_CXX='$convenience'
18842 fi
18843 archive_cmds_need_lc_CXX=yes
18844 # This is similar to how AIX traditionally builds its shared
18845 # libraries.
18846 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'
18847 fi
18848 fi
18849 ;;
18850
18851 beos*)
18852 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18853 allow_undefined_flag_CXX=unsupported
18854 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18855 # support --undefined. This deserves some investigation. FIXME
18856 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18857 else
18858 ld_shlibs_CXX=no
18859 fi
18860 ;;
18861
18862 chorus*)
18863 case $cc_basename in
18864 *)
18865 # FIXME: insert proper C++ library support
18866 ld_shlibs_CXX=no
18867 ;;
18868 esac
18869 ;;
18870
18871 cygwin* | mingw* | pw32* | cegcc*)
18872 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18873 # as there is no search path for DLLs.
18874 hardcode_libdir_flag_spec_CXX='-L$libdir'
18875 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18876 allow_undefined_flag_CXX=unsupported
18877 always_export_symbols_CXX=no
18878 enable_shared_with_static_runtimes_CXX=yes
18879
18880 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18881 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'
18882 # If the export-symbols file already is a .def file (1st line
18883 # is EXPORTS), use it as is; otherwise, prepend...
18884 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18885 cp $export_symbols $output_objdir/$soname.def;
18886 else
18887 echo EXPORTS > $output_objdir/$soname.def;
18888 cat $export_symbols >> $output_objdir/$soname.def;
18889 fi~
18890 $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'
18891 else
18892 ld_shlibs_CXX=no
18893 fi
18894 ;;
18895 darwin* | rhapsody*)
18896
18897
18898 archive_cmds_need_lc_CXX=no
18899 hardcode_direct_CXX=no
18900 hardcode_automatic_CXX=yes
18901 hardcode_shlibpath_var_CXX=unsupported
18902 if test "$lt_cv_ld_force_load" = "yes"; then
18903 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\"`'
18904 else
18905 whole_archive_flag_spec_CXX=''
18906 fi
18907 link_all_deplibs_CXX=yes
18908 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18909 case $cc_basename in
18910 ifort*) _lt_dar_can_shared=yes ;;
18911 *) _lt_dar_can_shared=$GCC ;;
18912 esac
18913 if test "$_lt_dar_can_shared" = "yes"; then
18914 output_verbose_link_cmd=func_echo_all
18915 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}"
18916 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18917 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}"
18918 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}"
18919 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18920 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}"
18921 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}"
18922 fi
18923
18924 else
18925 ld_shlibs_CXX=no
18926 fi
18927
18928 ;;
18929
18930 dgux*)
18931 case $cc_basename in
18932 ec++*)
18933 # FIXME: insert proper C++ library support
18934 ld_shlibs_CXX=no
18935 ;;
18936 ghcx*)
18937 # Green Hills C++ Compiler
18938 # FIXME: insert proper C++ library support
18939 ld_shlibs_CXX=no
18940 ;;
18941 *)
18942 # FIXME: insert proper C++ library support
18943 ld_shlibs_CXX=no
18944 ;;
18945 esac
18946 ;;
18947
18948 freebsd[12]*)
18949 # C++ shared libraries reported to be fairly broken before
18950 # switch to ELF
18951 ld_shlibs_CXX=no
18952 ;;
18953
18954 freebsd-elf*)
18955 archive_cmds_need_lc_CXX=no
18956 ;;
18957
18958 freebsd* | dragonfly*)
18959 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18960 # conventions
18961 ld_shlibs_CXX=yes
18962 ;;
18963
18964 gnu*)
18965 ;;
18966
18967 haiku*)
18968 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18969 link_all_deplibs_CXX=yes
18970 ;;
18971
18972 hpux9*)
18973 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18974 hardcode_libdir_separator_CXX=:
18975 export_dynamic_flag_spec_CXX='${wl}-E'
18976 hardcode_direct_CXX=yes
18977 hardcode_minus_L_CXX=yes # Not in the search PATH,
18978 # but as the default
18979 # location of the library.
18980
18981 case $cc_basename in
18982 CC*)
18983 # FIXME: insert proper C++ library support
18984 ld_shlibs_CXX=no
18985 ;;
18986 aCC*)
18987 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'
18988 # Commands to make compiler produce verbose output that lists
18989 # what "hidden" libraries, object files and flags are used when
18990 # linking a shared library.
18991 #
18992 # There doesn't appear to be a way to prevent this compiler from
18993 # explicitly linking system object files so we need to strip them
18994 # from the output so that they don't get included in the library
18995 # dependencies.
18996 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"'
18997 ;;
18998 *)
18999 if test "$GXX" = yes; then
19000 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'
19001 else
19002 # FIXME: insert proper C++ library support
19003 ld_shlibs_CXX=no
19004 fi
19005 ;;
19006 esac
19007 ;;
19008
19009 hpux10*|hpux11*)
19010 if test $with_gnu_ld = no; then
19011 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19012 hardcode_libdir_separator_CXX=:
19013
19014 case $host_cpu in
19015 hppa*64*|ia64*)
19016 ;;
19017 *)
19018 export_dynamic_flag_spec_CXX='${wl}-E'
19019 ;;
19020 esac
19021 fi
19022 case $host_cpu in
19023 hppa*64*|ia64*)
19024 hardcode_direct_CXX=no
19025 hardcode_shlibpath_var_CXX=no
19026 ;;
19027 *)
19028 hardcode_direct_CXX=yes
19029 hardcode_direct_absolute_CXX=yes
19030 hardcode_minus_L_CXX=yes # Not in the search PATH,
19031 # but as the default
19032 # location of the library.
19033 ;;
19034 esac
19035
19036 case $cc_basename in
19037 CC*)
19038 # FIXME: insert proper C++ library support
19039 ld_shlibs_CXX=no
19040 ;;
19041 aCC*)
19042 case $host_cpu in
19043 hppa*64*)
19044 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19045 ;;
19046 ia64*)
19047 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19048 ;;
19049 *)
19050 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19051 ;;
19052 esac
19053 # Commands to make compiler produce verbose output that lists
19054 # what "hidden" libraries, object files and flags are used when
19055 # linking a shared library.
19056 #
19057 # There doesn't appear to be a way to prevent this compiler from
19058 # explicitly linking system object files so we need to strip them
19059 # from the output so that they don't get included in the library
19060 # dependencies.
19061 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"'
19062 ;;
19063 *)
19064 if test "$GXX" = yes; then
19065 if test $with_gnu_ld = no; then
19066 case $host_cpu in
19067 hppa*64*)
19068 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19069 ;;
19070 ia64*)
19071 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19072 ;;
19073 *)
19074 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'
19075 ;;
19076 esac
19077 fi
19078 else
19079 # FIXME: insert proper C++ library support
19080 ld_shlibs_CXX=no
19081 fi
19082 ;;
19083 esac
19084 ;;
19085
19086 interix[3-9]*)
19087 hardcode_direct_CXX=no
19088 hardcode_shlibpath_var_CXX=no
19089 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19090 export_dynamic_flag_spec_CXX='${wl}-E'
19091 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19092 # Instead, shared libraries are loaded at an image base (0x10000000 by
19093 # default) and relocated if they conflict, which is a slow very memory
19094 # consuming and fragmenting process. To avoid this, we pick a random,
19095 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19096 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19097 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'
19098 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'
19099 ;;
19100 irix5* | irix6*)
19101 case $cc_basename in
19102 CC*)
19103 # SGI C++
19104 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'
19105
19106 # Archives containing C++ object files must be created using
19107 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19108 # necessary to make sure instantiated templates are included
19109 # in the archive.
19110 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19111 ;;
19112 *)
19113 if test "$GXX" = yes; then
19114 if test "$with_gnu_ld" = no; then
19115 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'
19116 else
19117 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'
19118 fi
19119 fi
19120 link_all_deplibs_CXX=yes
19121 ;;
19122 esac
19123 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19124 hardcode_libdir_separator_CXX=:
19125 inherit_rpath_CXX=yes
19126 ;;
19127
19128 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19129 case $cc_basename in
19130 KCC*)
19131 # Kuck and Associates, Inc. (KAI) C++ Compiler
19132
19133 # KCC will only create a shared library if the output file
19134 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19135 # to its proper name (with version) after linking.
19136 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'
19137 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'
19138 # Commands to make compiler produce verbose output that lists
19139 # what "hidden" libraries, object files and flags are used when
19140 # linking a shared library.
19141 #
19142 # There doesn't appear to be a way to prevent this compiler from
19143 # explicitly linking system object files so we need to strip them
19144 # from the output so that they don't get included in the library
19145 # dependencies.
19146 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"'
19147
19148 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19149 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19150
19151 # Archives containing C++ object files must be created using
19152 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19153 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19154 ;;
19155 icpc* | ecpc* )
19156 # Intel C++
19157 with_gnu_ld=yes
19158 # version 8.0 and above of icpc choke on multiply defined symbols
19159 # if we add $predep_objects and $postdep_objects, however 7.1 and
19160 # earlier do not add the objects themselves.
19161 case `$CC -V 2>&1` in
19162 *"Version 7."*)
19163 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19164 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'
19165 ;;
19166 *) # Version 8.0 or newer
19167 tmp_idyn=
19168 case $host_cpu in
19169 ia64*) tmp_idyn=' -i_dynamic';;
19170 esac
19171 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19172 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'
19173 ;;
19174 esac
19175 archive_cmds_need_lc_CXX=no
19176 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19177 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19178 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19179 ;;
19180 pgCC* | pgcpp*)
19181 # Portland Group C++ compiler
19182 case `$CC -V` in
19183 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19184 prelink_cmds_CXX='tpldir=Template.dir~
19185 rm -rf $tpldir~
19186 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19187 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19188 old_archive_cmds_CXX='tpldir=Template.dir~
19189 rm -rf $tpldir~
19190 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19191 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19192 $RANLIB $oldlib'
19193 archive_cmds_CXX='tpldir=Template.dir~
19194 rm -rf $tpldir~
19195 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19196 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19197 archive_expsym_cmds_CXX='tpldir=Template.dir~
19198 rm -rf $tpldir~
19199 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19200 $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'
19201 ;;
19202 *) # Version 6 and above use weak symbols
19203 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19204 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'
19205 ;;
19206 esac
19207
19208 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19209 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19210 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'
19211 ;;
19212 cxx*)
19213 # Compaq C++
19214 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19215 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'
19216
19217 runpath_var=LD_RUN_PATH
19218 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19219 hardcode_libdir_separator_CXX=:
19220
19221 # Commands to make compiler produce verbose output that lists
19222 # what "hidden" libraries, object files and flags are used when
19223 # linking a shared library.
19224 #
19225 # There doesn't appear to be a way to prevent this compiler from
19226 # explicitly linking system object files so we need to strip them
19227 # from the output so that they don't get included in the library
19228 # dependencies.
19229 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'
19230 ;;
19231 xl* | mpixl* | bgxl*)
19232 # IBM XL 8.0 on PPC, with GNU ld
19233 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19234 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19235 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19236 if test "x$supports_anon_versioning" = xyes; then
19237 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19238 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19239 echo "local: *; };" >> $output_objdir/$libname.ver~
19240 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19241 fi
19242 ;;
19243 *)
19244 case `$CC -V 2>&1 | sed 5q` in
19245 *Sun\ C*)
19246 # Sun C++ 5.9
19247 no_undefined_flag_CXX=' -zdefs'
19248 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19249 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'
19250 hardcode_libdir_flag_spec_CXX='-R$libdir'
19251 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'
19252 compiler_needs_object_CXX=yes
19253
19254 # Not sure whether something based on
19255 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19256 # would be better.
19257 output_verbose_link_cmd='func_echo_all'
19258
19259 # Archives containing C++ object files must be created using
19260 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19261 # necessary to make sure instantiated templates are included
19262 # in the archive.
19263 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19264 ;;
19265 esac
19266 ;;
19267 esac
19268 ;;
19269
19270 lynxos*)
19271 # FIXME: insert proper C++ library support
19272 ld_shlibs_CXX=no
19273 ;;
19274
19275 m88k*)
19276 # FIXME: insert proper C++ library support
19277 ld_shlibs_CXX=no
19278 ;;
19279
19280 mvs*)
19281 case $cc_basename in
19282 cxx*)
19283 # FIXME: insert proper C++ library support
19284 ld_shlibs_CXX=no
19285 ;;
19286 *)
19287 # FIXME: insert proper C++ library support
19288 ld_shlibs_CXX=no
19289 ;;
19290 esac
19291 ;;
19292
19293 netbsd*)
19294 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19295 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19296 wlarc=
19297 hardcode_libdir_flag_spec_CXX='-R$libdir'
19298 hardcode_direct_CXX=yes
19299 hardcode_shlibpath_var_CXX=no
19300 fi
19301 # Workaround some broken pre-1.5 toolchains
19302 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19303 ;;
19304
19305 *nto* | *qnx*)
19306 ld_shlibs_CXX=yes
19307 ;;
19308
19309 openbsd2*)
19310 # C++ shared libraries are fairly broken
19311 ld_shlibs_CXX=no
19312 ;;
19313
19314 openbsd*)
19315 if test -f /usr/libexec/ld.so; then
19316 hardcode_direct_CXX=yes
19317 hardcode_shlibpath_var_CXX=no
19318 hardcode_direct_absolute_CXX=yes
19319 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19320 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19321 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19322 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19323 export_dynamic_flag_spec_CXX='${wl}-E'
19324 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19325 fi
19326 output_verbose_link_cmd=func_echo_all
19327 else
19328 ld_shlibs_CXX=no
19329 fi
19330 ;;
19331
19332 osf3* | osf4* | osf5*)
19333 case $cc_basename in
19334 KCC*)
19335 # Kuck and Associates, Inc. (KAI) C++ Compiler
19336
19337 # KCC will only create a shared library if the output file
19338 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19339 # to its proper name (with version) after linking.
19340 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'
19341
19342 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19343 hardcode_libdir_separator_CXX=:
19344
19345 # Archives containing C++ object files must be created using
19346 # the KAI C++ compiler.
19347 case $host in
19348 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19349 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19350 esac
19351 ;;
19352 RCC*)
19353 # Rational C++ 2.4.1
19354 # FIXME: insert proper C++ library support
19355 ld_shlibs_CXX=no
19356 ;;
19357 cxx*)
19358 case $host in
19359 osf3*)
19360 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19361 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'
19362 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19363 ;;
19364 *)
19365 allow_undefined_flag_CXX=' -expect_unresolved \*'
19366 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'
19367 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19368 echo "-hidden">> $lib.exp~
19369 $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~
19370 $RM $lib.exp'
19371 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19372 ;;
19373 esac
19374
19375 hardcode_libdir_separator_CXX=:
19376
19377 # Commands to make compiler produce verbose output that lists
19378 # what "hidden" libraries, object files and flags are used when
19379 # linking a shared library.
19380 #
19381 # There doesn't appear to be a way to prevent this compiler from
19382 # explicitly linking system object files so we need to strip them
19383 # from the output so that they don't get included in the library
19384 # dependencies.
19385 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"'
19386 ;;
19387 *)
19388 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19389 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19390 case $host in
19391 osf3*)
19392 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'
19393 ;;
19394 *)
19395 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'
19396 ;;
19397 esac
19398
19399 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19400 hardcode_libdir_separator_CXX=:
19401
19402 # Commands to make compiler produce verbose output that lists
19403 # what "hidden" libraries, object files and flags are used when
19404 # linking a shared library.
19405 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19406
19407 else
19408 # FIXME: insert proper C++ library support
19409 ld_shlibs_CXX=no
19410 fi
19411 ;;
19412 esac
19413 ;;
19414
19415 psos*)
19416 # FIXME: insert proper C++ library support
19417 ld_shlibs_CXX=no
19418 ;;
19419
19420 sunos4*)
19421 case $cc_basename in
19422 CC*)
19423 # Sun C++ 4.x
19424 # FIXME: insert proper C++ library support
19425 ld_shlibs_CXX=no
19426 ;;
19427 lcc*)
19428 # Lucid
19429 # FIXME: insert proper C++ library support
19430 ld_shlibs_CXX=no
19431 ;;
19432 *)
19433 # FIXME: insert proper C++ library support
19434 ld_shlibs_CXX=no
19435 ;;
19436 esac
19437 ;;
19438
19439 solaris*)
19440 case $cc_basename in
19441 CC*)
19442 # Sun C++ 4.2, 5.x and Centerline C++
19443 archive_cmds_need_lc_CXX=yes
19444 no_undefined_flag_CXX=' -zdefs'
19445 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19446 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19447 $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'
19448
19449 hardcode_libdir_flag_spec_CXX='-R$libdir'
19450 hardcode_shlibpath_var_CXX=no
19451 case $host_os in
19452 solaris2.[0-5] | solaris2.[0-5].*) ;;
19453 *)
19454 # The compiler driver will combine and reorder linker options,
19455 # but understands `-z linker_flag'.
19456 # Supported since Solaris 2.6 (maybe 2.5.1?)
19457 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19458 ;;
19459 esac
19460 link_all_deplibs_CXX=yes
19461
19462 output_verbose_link_cmd='func_echo_all'
19463
19464 # Archives containing C++ object files must be created using
19465 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19466 # necessary to make sure instantiated templates are included
19467 # in the archive.
19468 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19469 ;;
19470 gcx*)
19471 # Green Hills C++ Compiler
19472 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19473
19474 # The C++ compiler must be used to create the archive.
19475 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19476 ;;
19477 *)
19478 # GNU C++ compiler with Solaris linker
19479 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19480 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19481 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19482 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19483 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19484 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19485
19486 # Commands to make compiler produce verbose output that lists
19487 # what "hidden" libraries, object files and flags are used when
19488 # linking a shared library.
19489 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19490 else
19491 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19492 # platform.
19493 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19494 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19495 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19496
19497 # Commands to make compiler produce verbose output that lists
19498 # what "hidden" libraries, object files and flags are used when
19499 # linking a shared library.
19500 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19501 fi
19502
19503 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19504 case $host_os in
19505 solaris2.[0-5] | solaris2.[0-5].*) ;;
19506 *)
19507 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19508 ;;
19509 esac
19510 fi
19511 ;;
19512 esac
19513 ;;
19514
19515 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19516 no_undefined_flag_CXX='${wl}-z,text'
19517 archive_cmds_need_lc_CXX=no
19518 hardcode_shlibpath_var_CXX=no
19519 runpath_var='LD_RUN_PATH'
19520
19521 case $cc_basename in
19522 CC*)
19523 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19524 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19525 ;;
19526 *)
19527 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19528 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19529 ;;
19530 esac
19531 ;;
19532
19533 sysv5* | sco3.2v5* | sco5v6*)
19534 # Note: We can NOT use -z defs as we might desire, because we do not
19535 # link with -lc, and that would cause any symbols used from libc to
19536 # always be unresolved, which means just about no library would
19537 # ever link correctly. If we're not using GNU ld we use -z text
19538 # though, which does catch some bad symbols but isn't as heavy-handed
19539 # as -z defs.
19540 no_undefined_flag_CXX='${wl}-z,text'
19541 allow_undefined_flag_CXX='${wl}-z,nodefs'
19542 archive_cmds_need_lc_CXX=no
19543 hardcode_shlibpath_var_CXX=no
19544 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19545 hardcode_libdir_separator_CXX=':'
19546 link_all_deplibs_CXX=yes
19547 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19548 runpath_var='LD_RUN_PATH'
19549
19550 case $cc_basename in
19551 CC*)
19552 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19553 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19554 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19555 '"$old_archive_cmds_CXX"
19556 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19557 '"$reload_cmds_CXX"
19558 ;;
19559 *)
19560 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19561 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19562 ;;
19563 esac
19564 ;;
19565
19566 tandem*)
19567 case $cc_basename in
19568 NCC*)
19569 # NonStop-UX NCC 3.20
19570 # FIXME: insert proper C++ library support
19571 ld_shlibs_CXX=no
19572 ;;
19573 *)
19574 # FIXME: insert proper C++ library support
19575 ld_shlibs_CXX=no
19576 ;;
19577 esac
19578 ;;
19579
19580 vxworks*)
19581 # FIXME: insert proper C++ library support
19582 ld_shlibs_CXX=no
19583 ;;
19584
19585 *)
19586 # FIXME: insert proper C++ library support
19587 ld_shlibs_CXX=no
19588 ;;
19589 esac
19590
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19592 $as_echo "$ld_shlibs_CXX" >&6; }
19593 test "$ld_shlibs_CXX" = no && can_build_shared=no
19594
19595 GCC_CXX="$GXX"
19596 LD_CXX="$LD"
19597
19598 ## CAVEAT EMPTOR:
19599 ## There is no encapsulation within the following macros, do not change
19600 ## the running order or otherwise move them around unless you know exactly
19601 ## what you are doing...
19602 # Dependencies to place before and after the object being linked:
19603 predep_objects_CXX=
19604 postdep_objects_CXX=
19605 predeps_CXX=
19606 postdeps_CXX=
19607 compiler_lib_search_path_CXX=
19608
19609 cat > conftest.$ac_ext <<_LT_EOF
19610 class Foo
19611 {
19612 public:
19613 Foo (void) { a = 0; }
19614 private:
19615 int a;
19616 };
19617 _LT_EOF
19618
19619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19620 (eval $ac_compile) 2>&5
19621 ac_status=$?
19622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19623 test $ac_status = 0; }; then
19624 # Parse the compiler output and extract the necessary
19625 # objects, libraries and library flags.
19626
19627 # Sentinel used to keep track of whether or not we are before
19628 # the conftest object file.
19629 pre_test_object_deps_done=no
19630
19631 for p in `eval "$output_verbose_link_cmd"`; do
19632 case $p in
19633
19634 -L* | -R* | -l*)
19635 # Some compilers place space between "-{L,R}" and the path.
19636 # Remove the space.
19637 if test $p = "-L" ||
19638 test $p = "-R"; then
19639 prev=$p
19640 continue
19641 else
19642 prev=
19643 fi
19644
19645 if test "$pre_test_object_deps_done" = no; then
19646 case $p in
19647 -L* | -R*)
19648 # Internal compiler library paths should come after those
19649 # provided the user. The postdeps already come after the
19650 # user supplied libs so there is no need to process them.
19651 if test -z "$compiler_lib_search_path_CXX"; then
19652 compiler_lib_search_path_CXX="${prev}${p}"
19653 else
19654 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19655 fi
19656 ;;
19657 # The "-l" case would never come before the object being
19658 # linked, so don't bother handling this case.
19659 esac
19660 else
19661 if test -z "$postdeps_CXX"; then
19662 postdeps_CXX="${prev}${p}"
19663 else
19664 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19665 fi
19666 fi
19667 ;;
19668
19669 *.$objext)
19670 # This assumes that the test object file only shows up
19671 # once in the compiler output.
19672 if test "$p" = "conftest.$objext"; then
19673 pre_test_object_deps_done=yes
19674 continue
19675 fi
19676
19677 if test "$pre_test_object_deps_done" = no; then
19678 if test -z "$predep_objects_CXX"; then
19679 predep_objects_CXX="$p"
19680 else
19681 predep_objects_CXX="$predep_objects_CXX $p"
19682 fi
19683 else
19684 if test -z "$postdep_objects_CXX"; then
19685 postdep_objects_CXX="$p"
19686 else
19687 postdep_objects_CXX="$postdep_objects_CXX $p"
19688 fi
19689 fi
19690 ;;
19691
19692 *) ;; # Ignore the rest.
19693
19694 esac
19695 done
19696
19697 # Clean up.
19698 rm -f a.out a.exe
19699 else
19700 echo "libtool.m4: error: problem compiling CXX test program"
19701 fi
19702
19703 $RM -f confest.$objext
19704
19705 # PORTME: override above test on systems where it is broken
19706 case $host_os in
19707 interix[3-9]*)
19708 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19709 # hack all around it, let's just trust "g++" to DTRT.
19710 predep_objects_CXX=
19711 postdep_objects_CXX=
19712 postdeps_CXX=
19713 ;;
19714
19715 linux*)
19716 case `$CC -V 2>&1 | sed 5q` in
19717 *Sun\ C*)
19718 # Sun C++ 5.9
19719
19720 # The more standards-conforming stlport4 library is
19721 # incompatible with the Cstd library. Avoid specifying
19722 # it if it's in CXXFLAGS. Ignore libCrun as
19723 # -library=stlport4 depends on it.
19724 case " $CXX $CXXFLAGS " in
19725 *" -library=stlport4 "*)
19726 solaris_use_stlport4=yes
19727 ;;
19728 esac
19729
19730 if test "$solaris_use_stlport4" != yes; then
19731 postdeps_CXX='-library=Cstd -library=Crun'
19732 fi
19733 ;;
19734 esac
19735 ;;
19736
19737 solaris*)
19738 case $cc_basename in
19739 CC*)
19740 # The more standards-conforming stlport4 library is
19741 # incompatible with the Cstd library. Avoid specifying
19742 # it if it's in CXXFLAGS. Ignore libCrun as
19743 # -library=stlport4 depends on it.
19744 case " $CXX $CXXFLAGS " in
19745 *" -library=stlport4 "*)
19746 solaris_use_stlport4=yes
19747 ;;
19748 esac
19749
19750 # Adding this requires a known-good setup of shared libraries for
19751 # Sun compiler versions before 5.6, else PIC objects from an old
19752 # archive will be linked into the output, leading to subtle bugs.
19753 if test "$solaris_use_stlport4" != yes; then
19754 postdeps_CXX='-library=Cstd -library=Crun'
19755 fi
19756 ;;
19757 esac
19758 ;;
19759 esac
19760
19761
19762 case " $postdeps_CXX " in
19763 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19764 esac
19765 compiler_lib_search_dirs_CXX=
19766 if test -n "${compiler_lib_search_path_CXX}"; then
19767 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19768 fi
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800 lt_prog_compiler_wl_CXX=
19801 lt_prog_compiler_pic_CXX=
19802 lt_prog_compiler_static_CXX=
19803
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19805 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19806
19807 # C++ specific cases for pic, static, wl, etc.
19808 if test "$GXX" = yes; then
19809 lt_prog_compiler_wl_CXX='-Wl,'
19810 lt_prog_compiler_static_CXX='-static'
19811
19812 case $host_os in
19813 aix*)
19814 # All AIX code is PIC.
19815 if test "$host_cpu" = ia64; then
19816 # AIX 5 now supports IA64 processor
19817 lt_prog_compiler_static_CXX='-Bstatic'
19818 fi
19819 ;;
19820
19821 amigaos*)
19822 case $host_cpu in
19823 powerpc)
19824 # see comment about AmigaOS4 .so support
19825 lt_prog_compiler_pic_CXX='-fPIC'
19826 ;;
19827 m68k)
19828 # FIXME: we need at least 68020 code to build shared libraries, but
19829 # adding the `-m68020' flag to GCC prevents building anything better,
19830 # like `-m68040'.
19831 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19832 ;;
19833 esac
19834 ;;
19835
19836 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19837 # PIC is the default for these OSes.
19838 ;;
19839 mingw* | cygwin* | os2* | pw32* | cegcc*)
19840 # This hack is so that the source file can tell whether it is being
19841 # built for inclusion in a dll (and should export symbols for example).
19842 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19843 # (--disable-auto-import) libraries
19844 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19845 ;;
19846 darwin* | rhapsody*)
19847 # PIC is the default on this platform
19848 # Common symbols not allowed in MH_DYLIB files
19849 lt_prog_compiler_pic_CXX='-fno-common'
19850 ;;
19851 *djgpp*)
19852 # DJGPP does not support shared libraries at all
19853 lt_prog_compiler_pic_CXX=
19854 ;;
19855 haiku*)
19856 # PIC is the default for Haiku.
19857 # The "-static" flag exists, but is broken.
19858 lt_prog_compiler_static_CXX=
19859 ;;
19860 interix[3-9]*)
19861 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19862 # Instead, we relocate shared libraries at runtime.
19863 ;;
19864 sysv4*MP*)
19865 if test -d /usr/nec; then
19866 lt_prog_compiler_pic_CXX=-Kconform_pic
19867 fi
19868 ;;
19869 hpux*)
19870 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19871 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19872 # sets the default TLS model and affects inlining.
19873 case $host_cpu in
19874 hppa*64*)
19875 ;;
19876 *)
19877 lt_prog_compiler_pic_CXX='-fPIC'
19878 ;;
19879 esac
19880 ;;
19881 *qnx* | *nto*)
19882 # QNX uses GNU C++, but need to define -shared option too, otherwise
19883 # it will coredump.
19884 lt_prog_compiler_pic_CXX='-fPIC -shared'
19885 ;;
19886 *)
19887 lt_prog_compiler_pic_CXX='-fPIC'
19888 ;;
19889 esac
19890 else
19891 case $host_os in
19892 aix[4-9]*)
19893 # All AIX code is PIC.
19894 if test "$host_cpu" = ia64; then
19895 # AIX 5 now supports IA64 processor
19896 lt_prog_compiler_static_CXX='-Bstatic'
19897 else
19898 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19899 fi
19900 ;;
19901 chorus*)
19902 case $cc_basename in
19903 cxch68*)
19904 # Green Hills C++ Compiler
19905 # _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"
19906 ;;
19907 esac
19908 ;;
19909 dgux*)
19910 case $cc_basename in
19911 ec++*)
19912 lt_prog_compiler_pic_CXX='-KPIC'
19913 ;;
19914 ghcx*)
19915 # Green Hills C++ Compiler
19916 lt_prog_compiler_pic_CXX='-pic'
19917 ;;
19918 *)
19919 ;;
19920 esac
19921 ;;
19922 freebsd* | dragonfly*)
19923 # FreeBSD uses GNU C++
19924 ;;
19925 hpux9* | hpux10* | hpux11*)
19926 case $cc_basename in
19927 CC*)
19928 lt_prog_compiler_wl_CXX='-Wl,'
19929 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19930 if test "$host_cpu" != ia64; then
19931 lt_prog_compiler_pic_CXX='+Z'
19932 fi
19933 ;;
19934 aCC*)
19935 lt_prog_compiler_wl_CXX='-Wl,'
19936 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19937 case $host_cpu in
19938 hppa*64*|ia64*)
19939 # +Z the default
19940 ;;
19941 *)
19942 lt_prog_compiler_pic_CXX='+Z'
19943 ;;
19944 esac
19945 ;;
19946 *)
19947 ;;
19948 esac
19949 ;;
19950 interix*)
19951 # This is c89, which is MS Visual C++ (no shared libs)
19952 # Anyone wants to do a port?
19953 ;;
19954 irix5* | irix6* | nonstopux*)
19955 case $cc_basename in
19956 CC*)
19957 lt_prog_compiler_wl_CXX='-Wl,'
19958 lt_prog_compiler_static_CXX='-non_shared'
19959 # CC pic flag -KPIC is the default.
19960 ;;
19961 *)
19962 ;;
19963 esac
19964 ;;
19965 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19966 case $cc_basename in
19967 KCC*)
19968 # KAI C++ Compiler
19969 lt_prog_compiler_wl_CXX='--backend -Wl,'
19970 lt_prog_compiler_pic_CXX='-fPIC'
19971 ;;
19972 ecpc* )
19973 # old Intel C++ for x86_64 which still supported -KPIC.
19974 lt_prog_compiler_wl_CXX='-Wl,'
19975 lt_prog_compiler_pic_CXX='-KPIC'
19976 lt_prog_compiler_static_CXX='-static'
19977 ;;
19978 icpc* )
19979 # Intel C++, used to be incompatible with GCC.
19980 # ICC 10 doesn't accept -KPIC any more.
19981 lt_prog_compiler_wl_CXX='-Wl,'
19982 lt_prog_compiler_pic_CXX='-fPIC'
19983 lt_prog_compiler_static_CXX='-static'
19984 ;;
19985 pgCC* | pgcpp*)
19986 # Portland Group C++ compiler
19987 lt_prog_compiler_wl_CXX='-Wl,'
19988 lt_prog_compiler_pic_CXX='-fpic'
19989 lt_prog_compiler_static_CXX='-Bstatic'
19990 ;;
19991 cxx*)
19992 # Compaq C++
19993 # Make sure the PIC flag is empty. It appears that all Alpha
19994 # Linux and Compaq Tru64 Unix objects are PIC.
19995 lt_prog_compiler_pic_CXX=
19996 lt_prog_compiler_static_CXX='-non_shared'
19997 ;;
19998 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19999 # IBM XL 8.0, 9.0 on PPC and BlueGene
20000 lt_prog_compiler_wl_CXX='-Wl,'
20001 lt_prog_compiler_pic_CXX='-qpic'
20002 lt_prog_compiler_static_CXX='-qstaticlink'
20003 ;;
20004 *)
20005 case `$CC -V 2>&1 | sed 5q` in
20006 *Sun\ C*)
20007 # Sun C++ 5.9
20008 lt_prog_compiler_pic_CXX='-KPIC'
20009 lt_prog_compiler_static_CXX='-Bstatic'
20010 lt_prog_compiler_wl_CXX='-Qoption ld '
20011 ;;
20012 esac
20013 ;;
20014 esac
20015 ;;
20016 lynxos*)
20017 ;;
20018 m88k*)
20019 ;;
20020 mvs*)
20021 case $cc_basename in
20022 cxx*)
20023 lt_prog_compiler_pic_CXX='-W c,exportall'
20024 ;;
20025 *)
20026 ;;
20027 esac
20028 ;;
20029 netbsd*)
20030 ;;
20031 *qnx* | *nto*)
20032 # QNX uses GNU C++, but need to define -shared option too, otherwise
20033 # it will coredump.
20034 lt_prog_compiler_pic_CXX='-fPIC -shared'
20035 ;;
20036 osf3* | osf4* | osf5*)
20037 case $cc_basename in
20038 KCC*)
20039 lt_prog_compiler_wl_CXX='--backend -Wl,'
20040 ;;
20041 RCC*)
20042 # Rational C++ 2.4.1
20043 lt_prog_compiler_pic_CXX='-pic'
20044 ;;
20045 cxx*)
20046 # Digital/Compaq C++
20047 lt_prog_compiler_wl_CXX='-Wl,'
20048 # Make sure the PIC flag is empty. It appears that all Alpha
20049 # Linux and Compaq Tru64 Unix objects are PIC.
20050 lt_prog_compiler_pic_CXX=
20051 lt_prog_compiler_static_CXX='-non_shared'
20052 ;;
20053 *)
20054 ;;
20055 esac
20056 ;;
20057 psos*)
20058 ;;
20059 solaris*)
20060 case $cc_basename in
20061 CC*)
20062 # Sun C++ 4.2, 5.x and Centerline C++
20063 lt_prog_compiler_pic_CXX='-KPIC'
20064 lt_prog_compiler_static_CXX='-Bstatic'
20065 lt_prog_compiler_wl_CXX='-Qoption ld '
20066 ;;
20067 gcx*)
20068 # Green Hills C++ Compiler
20069 lt_prog_compiler_pic_CXX='-PIC'
20070 ;;
20071 *)
20072 ;;
20073 esac
20074 ;;
20075 sunos4*)
20076 case $cc_basename in
20077 CC*)
20078 # Sun C++ 4.x
20079 lt_prog_compiler_pic_CXX='-pic'
20080 lt_prog_compiler_static_CXX='-Bstatic'
20081 ;;
20082 lcc*)
20083 # Lucid
20084 lt_prog_compiler_pic_CXX='-pic'
20085 ;;
20086 *)
20087 ;;
20088 esac
20089 ;;
20090 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20091 case $cc_basename in
20092 CC*)
20093 lt_prog_compiler_wl_CXX='-Wl,'
20094 lt_prog_compiler_pic_CXX='-KPIC'
20095 lt_prog_compiler_static_CXX='-Bstatic'
20096 ;;
20097 esac
20098 ;;
20099 tandem*)
20100 case $cc_basename in
20101 NCC*)
20102 # NonStop-UX NCC 3.20
20103 lt_prog_compiler_pic_CXX='-KPIC'
20104 ;;
20105 *)
20106 ;;
20107 esac
20108 ;;
20109 vxworks*)
20110 ;;
20111 *)
20112 lt_prog_compiler_can_build_shared_CXX=no
20113 ;;
20114 esac
20115 fi
20116
20117 case $host_os in
20118 # For platforms which do not support PIC, -DPIC is meaningless:
20119 *djgpp*)
20120 lt_prog_compiler_pic_CXX=
20121 ;;
20122 *)
20123 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20124 ;;
20125 esac
20126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20127 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20128
20129
20130
20131 #
20132 # Check to make sure the PIC flag actually works.
20133 #
20134 if test -n "$lt_prog_compiler_pic_CXX"; then
20135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20136 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20137 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20138 $as_echo_n "(cached) " >&6
20139 else
20140 lt_cv_prog_compiler_pic_works_CXX=no
20141 ac_outfile=conftest.$ac_objext
20142 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20143 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20144 # Insert the option either (1) after the last *FLAGS variable, or
20145 # (2) before a word containing "conftest.", or (3) at the end.
20146 # Note that $ac_compile itself does not contain backslashes and begins
20147 # with a dollar sign (not a hyphen), so the echo should work correctly.
20148 # The option is referenced via a variable to avoid confusing sed.
20149 lt_compile=`echo "$ac_compile" | $SED \
20150 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20151 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20152 -e 's:$: $lt_compiler_flag:'`
20153 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20154 (eval "$lt_compile" 2>conftest.err)
20155 ac_status=$?
20156 cat conftest.err >&5
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 if (exit $ac_status) && test -s "$ac_outfile"; then
20159 # The compiler can only warn and ignore the option if not recognized
20160 # So say no if there are warnings other than the usual output.
20161 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20162 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20163 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20164 lt_cv_prog_compiler_pic_works_CXX=yes
20165 fi
20166 fi
20167 $RM conftest*
20168
20169 fi
20170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20171 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20172
20173 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20174 case $lt_prog_compiler_pic_CXX in
20175 "" | " "*) ;;
20176 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20177 esac
20178 else
20179 lt_prog_compiler_pic_CXX=
20180 lt_prog_compiler_can_build_shared_CXX=no
20181 fi
20182
20183 fi
20184
20185
20186
20187 #
20188 # Check to make sure the static flag actually works.
20189 #
20190 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20192 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20193 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20194 $as_echo_n "(cached) " >&6
20195 else
20196 lt_cv_prog_compiler_static_works_CXX=no
20197 save_LDFLAGS="$LDFLAGS"
20198 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20199 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20200 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20201 # The linker can only warn and ignore the option if not recognized
20202 # So say no if there are warnings
20203 if test -s conftest.err; then
20204 # Append any errors to the config.log.
20205 cat conftest.err 1>&5
20206 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20207 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20208 if diff conftest.exp conftest.er2 >/dev/null; then
20209 lt_cv_prog_compiler_static_works_CXX=yes
20210 fi
20211 else
20212 lt_cv_prog_compiler_static_works_CXX=yes
20213 fi
20214 fi
20215 $RM -r conftest*
20216 LDFLAGS="$save_LDFLAGS"
20217
20218 fi
20219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20220 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20221
20222 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20223 :
20224 else
20225 lt_prog_compiler_static_CXX=
20226 fi
20227
20228
20229
20230
20231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20232 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20233 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20234 $as_echo_n "(cached) " >&6
20235 else
20236 lt_cv_prog_compiler_c_o_CXX=no
20237 $RM -r conftest 2>/dev/null
20238 mkdir conftest
20239 cd conftest
20240 mkdir out
20241 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20242
20243 lt_compiler_flag="-o out/conftest2.$ac_objext"
20244 # Insert the option either (1) after the last *FLAGS variable, or
20245 # (2) before a word containing "conftest.", or (3) at the end.
20246 # Note that $ac_compile itself does not contain backslashes and begins
20247 # with a dollar sign (not a hyphen), so the echo should work correctly.
20248 lt_compile=`echo "$ac_compile" | $SED \
20249 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20250 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20251 -e 's:$: $lt_compiler_flag:'`
20252 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20253 (eval "$lt_compile" 2>out/conftest.err)
20254 ac_status=$?
20255 cat out/conftest.err >&5
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20258 then
20259 # The compiler can only warn and ignore the option if not recognized
20260 # So say no if there are warnings
20261 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20262 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20263 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20264 lt_cv_prog_compiler_c_o_CXX=yes
20265 fi
20266 fi
20267 chmod u+w . 2>&5
20268 $RM conftest*
20269 # SGI C++ compiler will create directory out/ii_files/ for
20270 # template instantiation
20271 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20272 $RM out/* && rmdir out
20273 cd ..
20274 $RM -r conftest
20275 $RM conftest*
20276
20277 fi
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20279 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20280
20281
20282
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20284 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20285 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20286 $as_echo_n "(cached) " >&6
20287 else
20288 lt_cv_prog_compiler_c_o_CXX=no
20289 $RM -r conftest 2>/dev/null
20290 mkdir conftest
20291 cd conftest
20292 mkdir out
20293 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20294
20295 lt_compiler_flag="-o out/conftest2.$ac_objext"
20296 # Insert the option either (1) after the last *FLAGS variable, or
20297 # (2) before a word containing "conftest.", or (3) at the end.
20298 # Note that $ac_compile itself does not contain backslashes and begins
20299 # with a dollar sign (not a hyphen), so the echo should work correctly.
20300 lt_compile=`echo "$ac_compile" | $SED \
20301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20303 -e 's:$: $lt_compiler_flag:'`
20304 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20305 (eval "$lt_compile" 2>out/conftest.err)
20306 ac_status=$?
20307 cat out/conftest.err >&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20310 then
20311 # The compiler can only warn and ignore the option if not recognized
20312 # So say no if there are warnings
20313 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20314 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20315 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20316 lt_cv_prog_compiler_c_o_CXX=yes
20317 fi
20318 fi
20319 chmod u+w . 2>&5
20320 $RM conftest*
20321 # SGI C++ compiler will create directory out/ii_files/ for
20322 # template instantiation
20323 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20324 $RM out/* && rmdir out
20325 cd ..
20326 $RM -r conftest
20327 $RM conftest*
20328
20329 fi
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20331 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20332
20333
20334
20335
20336 hard_links="nottested"
20337 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20338 # do not overwrite the value of need_locks provided by the user
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20340 $as_echo_n "checking if we can lock with hard links... " >&6; }
20341 hard_links=yes
20342 $RM conftest*
20343 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20344 touch conftest.a
20345 ln conftest.a conftest.b 2>&5 || hard_links=no
20346 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20348 $as_echo "$hard_links" >&6; }
20349 if test "$hard_links" = no; then
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20351 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20352 need_locks=warn
20353 fi
20354 else
20355 need_locks=no
20356 fi
20357
20358
20359
20360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20361 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20362
20363 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20364 case $host_os in
20365 aix[4-9]*)
20366 # If we're using GNU nm, then we don't want the "-C" option.
20367 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20368 # Also, AIX nm treats weak defined symbols like other global defined
20369 # symbols, whereas GNU nm marks them as "W".
20370 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20371 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'
20372 else
20373 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'
20374 fi
20375 ;;
20376 pw32*)
20377 export_symbols_cmds_CXX="$ltdll_cmds"
20378 ;;
20379 cygwin* | mingw* | cegcc*)
20380 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'
20381 ;;
20382 *)
20383 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20384 ;;
20385 esac
20386 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20387
20388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20389 $as_echo "$ld_shlibs_CXX" >&6; }
20390 test "$ld_shlibs_CXX" = no && can_build_shared=no
20391
20392 with_gnu_ld_CXX=$with_gnu_ld
20393
20394
20395
20396
20397
20398
20399 #
20400 # Do we need to explicitly link libc?
20401 #
20402 case "x$archive_cmds_need_lc_CXX" in
20403 x|xyes)
20404 # Assume -lc should be added
20405 archive_cmds_need_lc_CXX=yes
20406
20407 if test "$enable_shared" = yes && test "$GCC" = yes; then
20408 case $archive_cmds_CXX in
20409 *'~'*)
20410 # FIXME: we may have to deal with multi-command sequences.
20411 ;;
20412 '$CC '*)
20413 # Test whether the compiler implicitly links with -lc since on some
20414 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20415 # to ld, don't add -lc before -lgcc.
20416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20417 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20418 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20419 $as_echo_n "(cached) " >&6
20420 else
20421 $RM conftest*
20422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20423
20424 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20425 (eval $ac_compile) 2>&5
20426 ac_status=$?
20427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20428 test $ac_status = 0; } 2>conftest.err; then
20429 soname=conftest
20430 lib=conftest
20431 libobjs=conftest.$ac_objext
20432 deplibs=
20433 wl=$lt_prog_compiler_wl_CXX
20434 pic_flag=$lt_prog_compiler_pic_CXX
20435 compiler_flags=-v
20436 linker_flags=-v
20437 verstring=
20438 output_objdir=.
20439 libname=conftest
20440 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20441 allow_undefined_flag_CXX=
20442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20443 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20444 ac_status=$?
20445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20446 test $ac_status = 0; }
20447 then
20448 lt_cv_archive_cmds_need_lc_CXX=no
20449 else
20450 lt_cv_archive_cmds_need_lc_CXX=yes
20451 fi
20452 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20453 else
20454 cat conftest.err 1>&5
20455 fi
20456 $RM conftest*
20457
20458 fi
20459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20460 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20461 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20462 ;;
20463 esac
20464 fi
20465 ;;
20466 esac
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20532 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20533
20534 library_names_spec=
20535 libname_spec='lib$name'
20536 soname_spec=
20537 shrext_cmds=".so"
20538 postinstall_cmds=
20539 postuninstall_cmds=
20540 finish_cmds=
20541 finish_eval=
20542 shlibpath_var=
20543 shlibpath_overrides_runpath=unknown
20544 version_type=none
20545 dynamic_linker="$host_os ld.so"
20546 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20547 need_lib_prefix=unknown
20548 hardcode_into_libs=no
20549
20550 # when you set need_version to no, make sure it does not cause -set_version
20551 # flags to be left without arguments
20552 need_version=unknown
20553
20554 case $host_os in
20555 aix3*)
20556 version_type=linux
20557 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20558 shlibpath_var=LIBPATH
20559
20560 # AIX 3 has no versioning support, so we append a major version to the name.
20561 soname_spec='${libname}${release}${shared_ext}$major'
20562 ;;
20563
20564 aix[4-9]*)
20565 version_type=linux
20566 need_lib_prefix=no
20567 need_version=no
20568 hardcode_into_libs=yes
20569 if test "$host_cpu" = ia64; then
20570 # AIX 5 supports IA64
20571 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20572 shlibpath_var=LD_LIBRARY_PATH
20573 else
20574 # With GCC up to 2.95.x, collect2 would create an import file
20575 # for dependence libraries. The import file would start with
20576 # the line `#! .'. This would cause the generated library to
20577 # depend on `.', always an invalid library. This was fixed in
20578 # development snapshots of GCC prior to 3.0.
20579 case $host_os in
20580 aix4 | aix4.[01] | aix4.[01].*)
20581 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20582 echo ' yes '
20583 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20584 :
20585 else
20586 can_build_shared=no
20587 fi
20588 ;;
20589 esac
20590 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20591 # soname into executable. Probably we can add versioning support to
20592 # collect2, so additional links can be useful in future.
20593 if test "$aix_use_runtimelinking" = yes; then
20594 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20595 # instead of lib<name>.a to let people know that these are not
20596 # typical AIX shared libraries.
20597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20598 else
20599 # We preserve .a as extension for shared libraries through AIX4.2
20600 # and later when we are not doing run time linking.
20601 library_names_spec='${libname}${release}.a $libname.a'
20602 soname_spec='${libname}${release}${shared_ext}$major'
20603 fi
20604 shlibpath_var=LIBPATH
20605 fi
20606 ;;
20607
20608 amigaos*)
20609 case $host_cpu in
20610 powerpc)
20611 # Since July 2007 AmigaOS4 officially supports .so libraries.
20612 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20614 ;;
20615 m68k)
20616 library_names_spec='$libname.ixlibrary $libname.a'
20617 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20618 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'
20619 ;;
20620 esac
20621 ;;
20622
20623 beos*)
20624 library_names_spec='${libname}${shared_ext}'
20625 dynamic_linker="$host_os ld.so"
20626 shlibpath_var=LIBRARY_PATH
20627 ;;
20628
20629 bsdi[45]*)
20630 version_type=linux
20631 need_version=no
20632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20633 soname_spec='${libname}${release}${shared_ext}$major'
20634 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20635 shlibpath_var=LD_LIBRARY_PATH
20636 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20637 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20638 # the default ld.so.conf also contains /usr/contrib/lib and
20639 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20640 # libtool to hard-code these into programs
20641 ;;
20642
20643 cygwin* | mingw* | pw32* | cegcc*)
20644 version_type=windows
20645 shrext_cmds=".dll"
20646 need_version=no
20647 need_lib_prefix=no
20648
20649 case $GCC,$host_os in
20650 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20651 library_names_spec='$libname.dll.a'
20652 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20653 postinstall_cmds='base_file=`basename \${file}`~
20654 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20655 dldir=$destdir/`dirname \$dlpath`~
20656 test -d \$dldir || mkdir -p \$dldir~
20657 $install_prog $dir/$dlname \$dldir/$dlname~
20658 chmod a+x \$dldir/$dlname~
20659 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20660 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20661 fi'
20662 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20663 dlpath=$dir/\$dldll~
20664 $RM \$dlpath'
20665 shlibpath_overrides_runpath=yes
20666
20667 case $host_os in
20668 cygwin*)
20669 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20670 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20671
20672 ;;
20673 mingw* | cegcc*)
20674 # MinGW DLLs use traditional 'lib' prefix
20675 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20676 ;;
20677 pw32*)
20678 # pw32 DLLs use 'pw' prefix rather than 'lib'
20679 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20680 ;;
20681 esac
20682 ;;
20683
20684 *)
20685 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20686 ;;
20687 esac
20688 dynamic_linker='Win32 ld.exe'
20689 # FIXME: first we should search . and the directory the executable is in
20690 shlibpath_var=PATH
20691 ;;
20692
20693 darwin* | rhapsody*)
20694 dynamic_linker="$host_os dyld"
20695 version_type=darwin
20696 need_lib_prefix=no
20697 need_version=no
20698 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20699 soname_spec='${libname}${release}${major}$shared_ext'
20700 shlibpath_overrides_runpath=yes
20701 shlibpath_var=DYLD_LIBRARY_PATH
20702 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20703
20704 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20705 ;;
20706
20707 dgux*)
20708 version_type=linux
20709 need_lib_prefix=no
20710 need_version=no
20711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20712 soname_spec='${libname}${release}${shared_ext}$major'
20713 shlibpath_var=LD_LIBRARY_PATH
20714 ;;
20715
20716 freebsd* | dragonfly*)
20717 # DragonFly does not have aout. When/if they implement a new
20718 # versioning mechanism, adjust this.
20719 if test -x /usr/bin/objformat; then
20720 objformat=`/usr/bin/objformat`
20721 else
20722 case $host_os in
20723 freebsd[123]*) objformat=aout ;;
20724 *) objformat=elf ;;
20725 esac
20726 fi
20727 version_type=freebsd-$objformat
20728 case $version_type in
20729 freebsd-elf*)
20730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20731 need_version=no
20732 need_lib_prefix=no
20733 ;;
20734 freebsd-*)
20735 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20736 need_version=yes
20737 ;;
20738 esac
20739 shlibpath_var=LD_LIBRARY_PATH
20740 case $host_os in
20741 freebsd2*)
20742 shlibpath_overrides_runpath=yes
20743 ;;
20744 freebsd3.[01]* | freebsdelf3.[01]*)
20745 shlibpath_overrides_runpath=yes
20746 hardcode_into_libs=yes
20747 ;;
20748 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20749 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20750 shlibpath_overrides_runpath=no
20751 hardcode_into_libs=yes
20752 ;;
20753 *) # from 4.6 on, and DragonFly
20754 shlibpath_overrides_runpath=yes
20755 hardcode_into_libs=yes
20756 ;;
20757 esac
20758 ;;
20759
20760 gnu*)
20761 version_type=linux
20762 need_lib_prefix=no
20763 need_version=no
20764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20765 soname_spec='${libname}${release}${shared_ext}$major'
20766 shlibpath_var=LD_LIBRARY_PATH
20767 hardcode_into_libs=yes
20768 ;;
20769
20770 haiku*)
20771 version_type=linux
20772 need_lib_prefix=no
20773 need_version=no
20774 dynamic_linker="$host_os runtime_loader"
20775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20776 soname_spec='${libname}${release}${shared_ext}$major'
20777 shlibpath_var=LIBRARY_PATH
20778 shlibpath_overrides_runpath=yes
20779 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20780 hardcode_into_libs=yes
20781 ;;
20782
20783 hpux9* | hpux10* | hpux11*)
20784 # Give a soname corresponding to the major version so that dld.sl refuses to
20785 # link against other versions.
20786 version_type=sunos
20787 need_lib_prefix=no
20788 need_version=no
20789 case $host_cpu in
20790 ia64*)
20791 shrext_cmds='.so'
20792 hardcode_into_libs=yes
20793 dynamic_linker="$host_os dld.so"
20794 shlibpath_var=LD_LIBRARY_PATH
20795 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20797 soname_spec='${libname}${release}${shared_ext}$major'
20798 if test "X$HPUX_IA64_MODE" = X32; then
20799 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20800 else
20801 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20802 fi
20803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20804 ;;
20805 hppa*64*)
20806 shrext_cmds='.sl'
20807 hardcode_into_libs=yes
20808 dynamic_linker="$host_os dld.sl"
20809 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20812 soname_spec='${libname}${release}${shared_ext}$major'
20813 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20815 ;;
20816 *)
20817 shrext_cmds='.sl'
20818 dynamic_linker="$host_os dld.sl"
20819 shlibpath_var=SHLIB_PATH
20820 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20822 soname_spec='${libname}${release}${shared_ext}$major'
20823 ;;
20824 esac
20825 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20826 postinstall_cmds='chmod 555 $lib'
20827 # or fails outright, so override atomically:
20828 install_override_mode=555
20829 ;;
20830
20831 interix[3-9]*)
20832 version_type=linux
20833 need_lib_prefix=no
20834 need_version=no
20835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20836 soname_spec='${libname}${release}${shared_ext}$major'
20837 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20838 shlibpath_var=LD_LIBRARY_PATH
20839 shlibpath_overrides_runpath=no
20840 hardcode_into_libs=yes
20841 ;;
20842
20843 irix5* | irix6* | nonstopux*)
20844 case $host_os in
20845 nonstopux*) version_type=nonstopux ;;
20846 *)
20847 if test "$lt_cv_prog_gnu_ld" = yes; then
20848 version_type=linux
20849 else
20850 version_type=irix
20851 fi ;;
20852 esac
20853 need_lib_prefix=no
20854 need_version=no
20855 soname_spec='${libname}${release}${shared_ext}$major'
20856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20857 case $host_os in
20858 irix5* | nonstopux*)
20859 libsuff= shlibsuff=
20860 ;;
20861 *)
20862 case $LD in # libtool.m4 will add one of these switches to LD
20863 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20864 libsuff= shlibsuff= libmagic=32-bit;;
20865 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20866 libsuff=32 shlibsuff=N32 libmagic=N32;;
20867 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20868 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20869 *) libsuff= shlibsuff= libmagic=never-match;;
20870 esac
20871 ;;
20872 esac
20873 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20874 shlibpath_overrides_runpath=no
20875 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20876 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20877 hardcode_into_libs=yes
20878 ;;
20879
20880 # No shared lib support for Linux oldld, aout, or coff.
20881 linux*oldld* | linux*aout* | linux*coff*)
20882 dynamic_linker=no
20883 ;;
20884
20885 # This must be Linux ELF.
20886 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20887 version_type=linux
20888 need_lib_prefix=no
20889 need_version=no
20890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20891 soname_spec='${libname}${release}${shared_ext}$major'
20892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20893 shlibpath_var=LD_LIBRARY_PATH
20894 shlibpath_overrides_runpath=no
20895
20896 # Some binutils ld are patched to set DT_RUNPATH
20897 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20898 $as_echo_n "(cached) " >&6
20899 else
20900 lt_cv_shlibpath_overrides_runpath=no
20901 save_LDFLAGS=$LDFLAGS
20902 save_libdir=$libdir
20903 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20904 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20906 /* end confdefs.h. */
20907
20908 int
20909 main ()
20910 {
20911
20912 ;
20913 return 0;
20914 }
20915 _ACEOF
20916 if ac_fn_cxx_try_link "$LINENO"; then :
20917 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20918 lt_cv_shlibpath_overrides_runpath=yes
20919 fi
20920 fi
20921 rm -f core conftest.err conftest.$ac_objext \
20922 conftest$ac_exeext conftest.$ac_ext
20923 LDFLAGS=$save_LDFLAGS
20924 libdir=$save_libdir
20925
20926 fi
20927
20928 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20929
20930 # This implies no fast_install, which is unacceptable.
20931 # Some rework will be needed to allow for fast_install
20932 # before this can be enabled.
20933 hardcode_into_libs=yes
20934
20935 # Append ld.so.conf contents to the search path
20936 if test -f /etc/ld.so.conf; then
20937 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' ' '`
20938 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20939 fi
20940
20941 # We used to test for /lib/ld.so.1 and disable shared libraries on
20942 # powerpc, because MkLinux only supported shared libraries with the
20943 # GNU dynamic linker. Since this was broken with cross compilers,
20944 # most powerpc-linux boxes support dynamic linking these days and
20945 # people can always --disable-shared, the test was removed, and we
20946 # assume the GNU/Linux dynamic linker is in use.
20947 dynamic_linker='GNU/Linux ld.so'
20948 ;;
20949
20950 netbsd*)
20951 version_type=sunos
20952 need_lib_prefix=no
20953 need_version=no
20954 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20956 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20957 dynamic_linker='NetBSD (a.out) ld.so'
20958 else
20959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20960 soname_spec='${libname}${release}${shared_ext}$major'
20961 dynamic_linker='NetBSD ld.elf_so'
20962 fi
20963 shlibpath_var=LD_LIBRARY_PATH
20964 shlibpath_overrides_runpath=yes
20965 hardcode_into_libs=yes
20966 ;;
20967
20968 newsos6)
20969 version_type=linux
20970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20971 shlibpath_var=LD_LIBRARY_PATH
20972 shlibpath_overrides_runpath=yes
20973 ;;
20974
20975 *nto* | *qnx*)
20976 version_type=qnx
20977 need_lib_prefix=no
20978 need_version=no
20979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20980 soname_spec='${libname}${release}${shared_ext}$major'
20981 shlibpath_var=LD_LIBRARY_PATH
20982 shlibpath_overrides_runpath=no
20983 hardcode_into_libs=yes
20984 dynamic_linker='ldqnx.so'
20985 ;;
20986
20987 openbsd*)
20988 version_type=sunos
20989 sys_lib_dlsearch_path_spec="/usr/lib"
20990 need_lib_prefix=no
20991 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20992 case $host_os in
20993 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20994 *) need_version=no ;;
20995 esac
20996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20997 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20998 shlibpath_var=LD_LIBRARY_PATH
20999 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21000 case $host_os in
21001 openbsd2.[89] | openbsd2.[89].*)
21002 shlibpath_overrides_runpath=no
21003 ;;
21004 *)
21005 shlibpath_overrides_runpath=yes
21006 ;;
21007 esac
21008 else
21009 shlibpath_overrides_runpath=yes
21010 fi
21011 ;;
21012
21013 os2*)
21014 libname_spec='$name'
21015 shrext_cmds=".dll"
21016 need_lib_prefix=no
21017 library_names_spec='$libname${shared_ext} $libname.a'
21018 dynamic_linker='OS/2 ld.exe'
21019 shlibpath_var=LIBPATH
21020 ;;
21021
21022 osf3* | osf4* | osf5*)
21023 version_type=osf
21024 need_lib_prefix=no
21025 need_version=no
21026 soname_spec='${libname}${release}${shared_ext}$major'
21027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21028 shlibpath_var=LD_LIBRARY_PATH
21029 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21030 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21031 ;;
21032
21033 rdos*)
21034 dynamic_linker=no
21035 ;;
21036
21037 solaris*)
21038 version_type=linux
21039 need_lib_prefix=no
21040 need_version=no
21041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21042 soname_spec='${libname}${release}${shared_ext}$major'
21043 shlibpath_var=LD_LIBRARY_PATH
21044 shlibpath_overrides_runpath=yes
21045 hardcode_into_libs=yes
21046 # ldd complains unless libraries are executable
21047 postinstall_cmds='chmod +x $lib'
21048 ;;
21049
21050 sunos4*)
21051 version_type=sunos
21052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21053 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21054 shlibpath_var=LD_LIBRARY_PATH
21055 shlibpath_overrides_runpath=yes
21056 if test "$with_gnu_ld" = yes; then
21057 need_lib_prefix=no
21058 fi
21059 need_version=yes
21060 ;;
21061
21062 sysv4 | sysv4.3*)
21063 version_type=linux
21064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21065 soname_spec='${libname}${release}${shared_ext}$major'
21066 shlibpath_var=LD_LIBRARY_PATH
21067 case $host_vendor in
21068 sni)
21069 shlibpath_overrides_runpath=no
21070 need_lib_prefix=no
21071 runpath_var=LD_RUN_PATH
21072 ;;
21073 siemens)
21074 need_lib_prefix=no
21075 ;;
21076 motorola)
21077 need_lib_prefix=no
21078 need_version=no
21079 shlibpath_overrides_runpath=no
21080 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21081 ;;
21082 esac
21083 ;;
21084
21085 sysv4*MP*)
21086 if test -d /usr/nec ;then
21087 version_type=linux
21088 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21089 soname_spec='$libname${shared_ext}.$major'
21090 shlibpath_var=LD_LIBRARY_PATH
21091 fi
21092 ;;
21093
21094 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21095 version_type=freebsd-elf
21096 need_lib_prefix=no
21097 need_version=no
21098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21099 soname_spec='${libname}${release}${shared_ext}$major'
21100 shlibpath_var=LD_LIBRARY_PATH
21101 shlibpath_overrides_runpath=yes
21102 hardcode_into_libs=yes
21103 if test "$with_gnu_ld" = yes; then
21104 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21105 else
21106 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21107 case $host_os in
21108 sco3.2v5*)
21109 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21110 ;;
21111 esac
21112 fi
21113 sys_lib_dlsearch_path_spec='/usr/lib'
21114 ;;
21115
21116 tpf*)
21117 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21118 version_type=linux
21119 need_lib_prefix=no
21120 need_version=no
21121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21122 shlibpath_var=LD_LIBRARY_PATH
21123 shlibpath_overrides_runpath=no
21124 hardcode_into_libs=yes
21125 ;;
21126
21127 uts4*)
21128 version_type=linux
21129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21130 soname_spec='${libname}${release}${shared_ext}$major'
21131 shlibpath_var=LD_LIBRARY_PATH
21132 ;;
21133
21134 *)
21135 dynamic_linker=no
21136 ;;
21137 esac
21138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21139 $as_echo "$dynamic_linker" >&6; }
21140 test "$dynamic_linker" = no && can_build_shared=no
21141
21142 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21143 if test "$GCC" = yes; then
21144 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21145 fi
21146
21147 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21148 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21149 fi
21150 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21151 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21152 fi
21153
21154
21155
21156
21157
21158
21159
21160
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21192 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21193 hardcode_action_CXX=
21194 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21195 test -n "$runpath_var_CXX" ||
21196 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21197
21198 # We can hardcode non-existent directories.
21199 if test "$hardcode_direct_CXX" != no &&
21200 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21201 # have to relink, otherwise we might link with an installed library
21202 # when we should be linking with a yet-to-be-installed one
21203 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21204 test "$hardcode_minus_L_CXX" != no; then
21205 # Linking always hardcodes the temporary library directory.
21206 hardcode_action_CXX=relink
21207 else
21208 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21209 hardcode_action_CXX=immediate
21210 fi
21211 else
21212 # We cannot hardcode anything, or else we can only hardcode existing
21213 # directories.
21214 hardcode_action_CXX=unsupported
21215 fi
21216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21217 $as_echo "$hardcode_action_CXX" >&6; }
21218
21219 if test "$hardcode_action_CXX" = relink ||
21220 test "$inherit_rpath_CXX" = yes; then
21221 # Fast installation is not supported
21222 enable_fast_install=no
21223 elif test "$shlibpath_overrides_runpath" = yes ||
21224 test "$enable_shared" = no; then
21225 # Fast installation is not necessary
21226 enable_fast_install=needless
21227 fi
21228
21229
21230
21231
21232
21233
21234
21235 fi # test -n "$compiler"
21236
21237 CC=$lt_save_CC
21238 LDCXX=$LD
21239 LD=$lt_save_LD
21240 GCC=$lt_save_GCC
21241 with_gnu_ld=$lt_save_with_gnu_ld
21242 lt_cv_path_LDCXX=$lt_cv_path_LD
21243 lt_cv_path_LD=$lt_save_path_LD
21244 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21245 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21246 fi # test "$_lt_caught_CXX_error" != yes
21247
21248 ac_ext=c
21249 ac_cpp='$CPP $CPPFLAGS'
21250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269 # Only expand once:
21270
21271
21272
21273
21274
21275 # Identify the assembler which will work hand-in-glove with the newly
21276 # built GCC, so that we can examine its features. This is the assembler
21277 # which will be driven by the driver program.
21278 #
21279 # If build != host, and we aren't building gas in-tree, we identify a
21280 # build->target assembler and hope that it will have the same features
21281 # as the host->target assembler we'll be using.
21282 gcc_cv_gas_major_version=
21283 gcc_cv_gas_minor_version=
21284 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21285
21286 if test "${gcc_cv_as+set}" = set; then :
21287
21288 else
21289
21290 if test -x "$DEFAULT_ASSEMBLER"; then
21291 gcc_cv_as="$DEFAULT_ASSEMBLER"
21292 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21293 && test -f ../gas/Makefile \
21294 && test x$build = x$host; then
21295 gcc_cv_as=../gas/as-new$build_exeext
21296 elif test -x as$build_exeext; then
21297 # Build using assembler in the current directory.
21298 gcc_cv_as=./as$build_exeext
21299 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21300 gcc_cv_as="$AS_FOR_TARGET"
21301 else
21302 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21303 set dummy $AS_FOR_TARGET; ac_word=$2
21304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21305 $as_echo_n "checking for $ac_word... " >&6; }
21306 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21307 $as_echo_n "(cached) " >&6
21308 else
21309 case $gcc_cv_as in
21310 [\\/]* | ?:[\\/]*)
21311 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21312 ;;
21313 *)
21314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21315 for as_dir in $PATH
21316 do
21317 IFS=$as_save_IFS
21318 test -z "$as_dir" && as_dir=.
21319 for ac_exec_ext in '' $ac_executable_extensions; do
21320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21321 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21323 break 2
21324 fi
21325 done
21326 done
21327 IFS=$as_save_IFS
21328
21329 ;;
21330 esac
21331 fi
21332 gcc_cv_as=$ac_cv_path_gcc_cv_as
21333 if test -n "$gcc_cv_as"; then
21334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21335 $as_echo "$gcc_cv_as" >&6; }
21336 else
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21338 $as_echo "no" >&6; }
21339 fi
21340
21341
21342 fi
21343 fi
21344
21345 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21346
21347 case "$ORIGINAL_AS_FOR_TARGET" in
21348 ./as | ./as$build_exeext) ;;
21349 *) ac_config_files="$ac_config_files as:exec-tool.in"
21350 ;;
21351 esac
21352
21353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21354 $as_echo_n "checking what assembler to use... " >&6; }
21355 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21356 # Single tree build which includes gas. We want to prefer it
21357 # over whatever linker top-level may have detected, since
21358 # we'll use what we're building after installation anyway.
21359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21360 $as_echo "newly built gas" >&6; }
21361 in_tree_gas=yes
21362 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21363 for f in $gcc_cv_as_bfd_srcdir/configure \
21364 $gcc_cv_as_gas_srcdir/configure \
21365 $gcc_cv_as_gas_srcdir/configure.in \
21366 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21367 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21368 if test x$gcc_cv_gas_version != x; then
21369 break
21370 fi
21371 done
21372 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21373 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21374 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21375 case $gcc_cv_gas_patch_version in
21376 "") gcc_cv_gas_patch_version="0" ;;
21377 esac
21378 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21379 + $gcc_cv_gas_minor_version \) \* 1000 \
21380 + $gcc_cv_gas_patch_version`
21381
21382 in_tree_gas_is_elf=no
21383 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21384 || (grep 'obj_format = multi' ../gas/Makefile \
21385 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21386 then
21387 in_tree_gas_is_elf=yes
21388 fi
21389 else
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21391 $as_echo "$gcc_cv_as" >&6; }
21392 in_tree_gas=no
21393 fi
21394
21395 # Identify the linker which will work hand-in-glove with the newly
21396 # built GCC, so that we can examine its features. This is the linker
21397 # which will be driven by the driver program.
21398 #
21399 # If build != host, and we aren't building gas in-tree, we identify a
21400 # build->target linker and hope that it will have the same features
21401 # as the host->target linker we'll be using.
21402 gcc_cv_gld_major_version=
21403 gcc_cv_gld_minor_version=
21404 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21405 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21406
21407 if test "${gcc_cv_ld+set}" = set; then :
21408
21409 else
21410
21411 if test -x "$DEFAULT_LINKER"; then
21412 gcc_cv_ld="$DEFAULT_LINKER"
21413 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21414 && test -f ../ld/Makefile \
21415 && test x$build = x$host; then
21416 gcc_cv_ld=../ld/ld-new$build_exeext
21417 elif test -x collect-ld$build_exeext; then
21418 # Build using linker in the current directory.
21419 gcc_cv_ld=./collect-ld$build_exeext
21420 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21421 gcc_cv_ld="$LD_FOR_TARGET"
21422 else
21423 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21424 set dummy $LD_FOR_TARGET; ac_word=$2
21425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21426 $as_echo_n "checking for $ac_word... " >&6; }
21427 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21428 $as_echo_n "(cached) " >&6
21429 else
21430 case $gcc_cv_ld in
21431 [\\/]* | ?:[\\/]*)
21432 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21433 ;;
21434 *)
21435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21436 for as_dir in $PATH
21437 do
21438 IFS=$as_save_IFS
21439 test -z "$as_dir" && as_dir=.
21440 for ac_exec_ext in '' $ac_executable_extensions; do
21441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21442 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21444 break 2
21445 fi
21446 done
21447 done
21448 IFS=$as_save_IFS
21449
21450 ;;
21451 esac
21452 fi
21453 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21454 if test -n "$gcc_cv_ld"; then
21455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21456 $as_echo "$gcc_cv_ld" >&6; }
21457 else
21458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21459 $as_echo "no" >&6; }
21460 fi
21461
21462
21463 fi
21464 fi
21465
21466 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21467 PLUGIN_LD=`basename $gcc_cv_ld`
21468
21469 # Check whether --with-plugin-ld was given.
21470 if test "${with_plugin_ld+set}" = set; then :
21471 withval=$with_plugin_ld; if test x"$withval" != x; then
21472 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21473 PLUGIN_LD="$withval"
21474 fi
21475 fi
21476
21477
21478
21479 cat >>confdefs.h <<_ACEOF
21480 #define PLUGIN_LD "$PLUGIN_LD"
21481 _ACEOF
21482
21483
21484 # Check to see if we are using gold instead of ld
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21486 $as_echo_n "checking whether we are using gold... " >&6; }
21487 ld_is_gold=no
21488 if test x$gcc_cv_ld != x; then
21489 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21490 | grep "GNU gold" > /dev/null; then
21491 ld_is_gold=yes
21492 fi
21493 fi
21494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21495 $as_echo "$ld_is_gold" >&6; }
21496
21497 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21498
21499 case "$ORIGINAL_LD_FOR_TARGET" in
21500 ./collect-ld | ./collect-ld$build_exeext) ;;
21501 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21502 ;;
21503 esac
21504
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21506 $as_echo_n "checking what linker to use... " >&6; }
21507 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21508 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21509 # Single tree build which includes ld. We want to prefer it
21510 # over whatever linker top-level may have detected, since
21511 # we'll use what we're building after installation anyway.
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21513 $as_echo "newly built ld" >&6; }
21514 in_tree_ld=yes
21515 in_tree_ld_is_elf=no
21516 if (grep 'EMUL = .*elf' ../ld/Makefile \
21517 || grep 'EMUL = .*linux' ../ld/Makefile \
21518 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21519 in_tree_ld_is_elf=yes
21520 elif test "$ld_is_gold" = yes; then
21521 in_tree_ld_is_elf=yes
21522 fi
21523 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
21524 do
21525 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21526 if test x$gcc_cv_gld_version != x; then
21527 break
21528 fi
21529 done
21530 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21531 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21532 else
21533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21534 $as_echo "$gcc_cv_ld" >&6; }
21535 in_tree_ld=no
21536 fi
21537
21538 # Figure out what nm we will be using.
21539 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21540 if test "${gcc_cv_nm+set}" = set; then :
21541
21542 else
21543
21544 if test -f $gcc_cv_binutils_srcdir/configure.in \
21545 && test -f ../binutils/Makefile \
21546 && test x$build = x$host; then
21547 gcc_cv_nm=../binutils/nm-new$build_exeext
21548 elif test -x nm$build_exeext; then
21549 gcc_cv_nm=./nm$build_exeext
21550 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21551 gcc_cv_nm="$NM_FOR_TARGET"
21552 else
21553 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21554 set dummy $NM_FOR_TARGET; ac_word=$2
21555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21556 $as_echo_n "checking for $ac_word... " >&6; }
21557 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21558 $as_echo_n "(cached) " >&6
21559 else
21560 case $gcc_cv_nm in
21561 [\\/]* | ?:[\\/]*)
21562 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21563 ;;
21564 *)
21565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21566 for as_dir in $PATH
21567 do
21568 IFS=$as_save_IFS
21569 test -z "$as_dir" && as_dir=.
21570 for ac_exec_ext in '' $ac_executable_extensions; do
21571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21572 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21574 break 2
21575 fi
21576 done
21577 done
21578 IFS=$as_save_IFS
21579
21580 ;;
21581 esac
21582 fi
21583 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21584 if test -n "$gcc_cv_nm"; then
21585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21586 $as_echo "$gcc_cv_nm" >&6; }
21587 else
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21589 $as_echo "no" >&6; }
21590 fi
21591
21592
21593 fi
21594 fi
21595
21596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21597 $as_echo_n "checking what nm to use... " >&6; }
21598 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21599 # Single tree build which includes binutils.
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21601 $as_echo "newly built nm" >&6; }
21602 in_tree_nm=yes
21603 else
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21605 $as_echo "$gcc_cv_nm" >&6; }
21606 in_tree_nm=no
21607 fi
21608
21609 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21610
21611 case "$ORIGINAL_NM_FOR_TARGET" in
21612 ./nm | ./nm$build_exeext) ;;
21613 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21614 ;;
21615 esac
21616
21617
21618 # Figure out what objdump we will be using.
21619 if test "${gcc_cv_objdump+set}" = set; then :
21620
21621 else
21622
21623 if test -f $gcc_cv_binutils_srcdir/configure.in \
21624 && test -f ../binutils/Makefile \
21625 && test x$build = x$host; then
21626 # Single tree build which includes binutils.
21627 gcc_cv_objdump=../binutils/objdump$build_exeext
21628 elif test -x objdump$build_exeext; then
21629 gcc_cv_objdump=./objdump$build_exeext
21630 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21631 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21632 else
21633 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21634 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21636 $as_echo_n "checking for $ac_word... " >&6; }
21637 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21638 $as_echo_n "(cached) " >&6
21639 else
21640 case $gcc_cv_objdump in
21641 [\\/]* | ?:[\\/]*)
21642 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21643 ;;
21644 *)
21645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21646 for as_dir in $PATH
21647 do
21648 IFS=$as_save_IFS
21649 test -z "$as_dir" && as_dir=.
21650 for ac_exec_ext in '' $ac_executable_extensions; do
21651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21652 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21654 break 2
21655 fi
21656 done
21657 done
21658 IFS=$as_save_IFS
21659
21660 ;;
21661 esac
21662 fi
21663 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21664 if test -n "$gcc_cv_objdump"; then
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21666 $as_echo "$gcc_cv_objdump" >&6; }
21667 else
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21669 $as_echo "no" >&6; }
21670 fi
21671
21672
21673 fi
21674 fi
21675
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21677 $as_echo_n "checking what objdump to use... " >&6; }
21678 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21679 # Single tree build which includes binutils.
21680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21681 $as_echo "newly built objdump" >&6; }
21682 elif test x$gcc_cv_objdump = x; then
21683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21684 $as_echo "not found" >&6; }
21685 else
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21687 $as_echo "$gcc_cv_objdump" >&6; }
21688 fi
21689
21690 # Figure out what readelf we will be using.
21691 if test "${gcc_cv_readelf+set}" = set; then :
21692
21693 else
21694
21695 if test -f $gcc_cv_binutils_srcdir/configure.in \
21696 && test -f ../binutils/Makefile \
21697 && test x$build = x$host; then
21698 # Single tree build which includes binutils.
21699 gcc_cv_readelf=../binutils/readelf$build_exeext
21700 elif test -x readelf$build_exeext; then
21701 gcc_cv_readelf=./readelf$build_exeext
21702 else
21703 # Extract the first word of "readelf", so it can be a program name with args.
21704 set dummy readelf; ac_word=$2
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21706 $as_echo_n "checking for $ac_word... " >&6; }
21707 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21708 $as_echo_n "(cached) " >&6
21709 else
21710 case $gcc_cv_readelf in
21711 [\\/]* | ?:[\\/]*)
21712 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21713 ;;
21714 *)
21715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21716 for as_dir in $PATH
21717 do
21718 IFS=$as_save_IFS
21719 test -z "$as_dir" && as_dir=.
21720 for ac_exec_ext in '' $ac_executable_extensions; do
21721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21722 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21724 break 2
21725 fi
21726 done
21727 done
21728 IFS=$as_save_IFS
21729
21730 ;;
21731 esac
21732 fi
21733 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21734 if test -n "$gcc_cv_readelf"; then
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21736 $as_echo "$gcc_cv_readelf" >&6; }
21737 else
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21739 $as_echo "no" >&6; }
21740 fi
21741
21742
21743 fi
21744 fi
21745
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21747 $as_echo_n "checking what readelf to use... " >&6; }
21748 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21749 # Single tree build which includes binutils.
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21751 $as_echo "newly built readelf" >&6; }
21752 elif test x$gcc_cv_readelf = x; then
21753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21754 $as_echo "not found" >&6; }
21755 else
21756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21757 $as_echo "$gcc_cv_readelf" >&6; }
21758 fi
21759
21760 # Figure out what assembler alignment features are present.
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21762 $as_echo_n "checking assembler flags... " >&6; }
21763 if test "${gcc_cv_as_flags+set}" = set; then :
21764 $as_echo_n "(cached) " >&6
21765 else
21766 case "$target" in
21767 i[34567]86-*-linux*)
21768 gcc_cv_as_flags="--32"
21769 ;;
21770 powerpc*-*-darwin*)
21771 gcc_cv_as_flags="-arch ppc"
21772 ;;
21773 *)
21774 gcc_cv_as_flags=" "
21775 ;;
21776 esac
21777 fi
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21779 $as_echo "$gcc_cv_as_flags" >&6; }
21780
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21782 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21783 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21784 $as_echo_n "(cached) " >&6
21785 else
21786 gcc_cv_as_balign_and_p2align=no
21787 if test $in_tree_gas = yes; then
21788 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21789 then gcc_cv_as_balign_and_p2align=yes
21790 fi
21791 elif test x$gcc_cv_as != x; then
21792 $as_echo '.balign 4
21793 .p2align 2' > conftest.s
21794 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21796 (eval $ac_try) 2>&5
21797 ac_status=$?
21798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21799 test $ac_status = 0; }; }
21800 then
21801 gcc_cv_as_balign_and_p2align=yes
21802 else
21803 echo "configure: failed program was" >&5
21804 cat conftest.s >&5
21805 fi
21806 rm -f conftest.o conftest.s
21807 fi
21808 fi
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21810 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21811 if test $gcc_cv_as_balign_and_p2align = yes; then
21812
21813 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21814
21815 fi
21816
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21818 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21819 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21820 $as_echo_n "(cached) " >&6
21821 else
21822 gcc_cv_as_max_skip_p2align=no
21823 if test $in_tree_gas = yes; then
21824 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21825 then gcc_cv_as_max_skip_p2align=yes
21826 fi
21827 elif test x$gcc_cv_as != x; then
21828 $as_echo '.p2align 4,,7' > conftest.s
21829 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21831 (eval $ac_try) 2>&5
21832 ac_status=$?
21833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21834 test $ac_status = 0; }; }
21835 then
21836 gcc_cv_as_max_skip_p2align=yes
21837 else
21838 echo "configure: failed program was" >&5
21839 cat conftest.s >&5
21840 fi
21841 rm -f conftest.o conftest.s
21842 fi
21843 fi
21844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21845 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21846 if test $gcc_cv_as_max_skip_p2align = yes; then
21847
21848 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21849
21850 fi
21851
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21853 $as_echo_n "checking assembler for .literal16... " >&6; }
21854 if test "${gcc_cv_as_literal16+set}" = set; then :
21855 $as_echo_n "(cached) " >&6
21856 else
21857 gcc_cv_as_literal16=no
21858 if test $in_tree_gas = yes; then
21859 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21860 then gcc_cv_as_literal16=yes
21861 fi
21862 elif test x$gcc_cv_as != x; then
21863 $as_echo '.literal16' > conftest.s
21864 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21866 (eval $ac_try) 2>&5
21867 ac_status=$?
21868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21869 test $ac_status = 0; }; }
21870 then
21871 gcc_cv_as_literal16=yes
21872 else
21873 echo "configure: failed program was" >&5
21874 cat conftest.s >&5
21875 fi
21876 rm -f conftest.o conftest.s
21877 fi
21878 fi
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21880 $as_echo "$gcc_cv_as_literal16" >&6; }
21881 if test $gcc_cv_as_literal16 = yes; then
21882
21883 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21884
21885 fi
21886
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21888 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21889 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21890 $as_echo_n "(cached) " >&6
21891 else
21892 gcc_cv_as_subsection_m1=no
21893 if test $in_tree_gas = yes; then
21894 if test $in_tree_gas_is_elf = yes \
21895 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21896 then gcc_cv_as_subsection_m1=yes
21897 fi
21898 elif test x$gcc_cv_as != x; then
21899 $as_echo 'conftest_label1: .word 0
21900 .subsection -1
21901 conftest_label2: .word 0
21902 .previous' > conftest.s
21903 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21905 (eval $ac_try) 2>&5
21906 ac_status=$?
21907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21908 test $ac_status = 0; }; }
21909 then
21910 if test x$gcc_cv_nm != x; then
21911 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21912 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21913 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21914 then :
21915 else gcc_cv_as_subsection_m1=yes
21916 fi
21917 rm -f conftest.nm1 conftest.nm2
21918 fi
21919 else
21920 echo "configure: failed program was" >&5
21921 cat conftest.s >&5
21922 fi
21923 rm -f conftest.o conftest.s
21924 fi
21925 fi
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21927 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21928 if test $gcc_cv_as_subsection_m1 = yes; then
21929
21930 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21931
21932 fi
21933
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21935 $as_echo_n "checking assembler for .weak... " >&6; }
21936 if test "${gcc_cv_as_weak+set}" = set; then :
21937 $as_echo_n "(cached) " >&6
21938 else
21939 gcc_cv_as_weak=no
21940 if test $in_tree_gas = yes; then
21941 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21942 then gcc_cv_as_weak=yes
21943 fi
21944 elif test x$gcc_cv_as != x; then
21945 $as_echo ' .weak foobar' > conftest.s
21946 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21948 (eval $ac_try) 2>&5
21949 ac_status=$?
21950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21951 test $ac_status = 0; }; }
21952 then
21953 gcc_cv_as_weak=yes
21954 else
21955 echo "configure: failed program was" >&5
21956 cat conftest.s >&5
21957 fi
21958 rm -f conftest.o conftest.s
21959 fi
21960 fi
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21962 $as_echo "$gcc_cv_as_weak" >&6; }
21963 if test $gcc_cv_as_weak = yes; then
21964
21965 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21966
21967 fi
21968
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21970 $as_echo_n "checking assembler for .weakref... " >&6; }
21971 if test "${gcc_cv_as_weakref+set}" = set; then :
21972 $as_echo_n "(cached) " >&6
21973 else
21974 gcc_cv_as_weakref=no
21975 if test $in_tree_gas = yes; then
21976 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21977 then gcc_cv_as_weakref=yes
21978 fi
21979 elif test x$gcc_cv_as != x; then
21980 $as_echo ' .weakref foobar, barfnot' > conftest.s
21981 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21983 (eval $ac_try) 2>&5
21984 ac_status=$?
21985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21986 test $ac_status = 0; }; }
21987 then
21988 gcc_cv_as_weakref=yes
21989 else
21990 echo "configure: failed program was" >&5
21991 cat conftest.s >&5
21992 fi
21993 rm -f conftest.o conftest.s
21994 fi
21995 fi
21996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21997 $as_echo "$gcc_cv_as_weakref" >&6; }
21998 if test $gcc_cv_as_weakref = yes; then
21999
22000 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22001
22002 fi
22003
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22005 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22006 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22007 $as_echo_n "(cached) " >&6
22008 else
22009 gcc_cv_as_nsubspa_comdat=no
22010 if test $in_tree_gas = yes; then
22011 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22012 then gcc_cv_as_nsubspa_comdat=yes
22013 fi
22014 elif test x$gcc_cv_as != x; then
22015 $as_echo ' .SPACE $TEXT$
22016 .NSUBSPA $CODE$,COMDAT' > conftest.s
22017 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22019 (eval $ac_try) 2>&5
22020 ac_status=$?
22021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22022 test $ac_status = 0; }; }
22023 then
22024 gcc_cv_as_nsubspa_comdat=yes
22025 else
22026 echo "configure: failed program was" >&5
22027 cat conftest.s >&5
22028 fi
22029 rm -f conftest.o conftest.s
22030 fi
22031 fi
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22033 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22034 if test $gcc_cv_as_nsubspa_comdat = yes; then
22035
22036 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22037
22038 fi
22039
22040 # .hidden needs to be supported in both the assembler and the linker,
22041 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22042 # This is irritatingly difficult to feature test for; we have to check the
22043 # date string after the version number. If we've got an in-tree
22044 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22045 # to be safe.
22046 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22048 $as_echo_n "checking assembler for .hidden... " >&6; }
22049 if test "${gcc_cv_as_hidden+set}" = set; then :
22050 $as_echo_n "(cached) " >&6
22051 else
22052 gcc_cv_as_hidden=no
22053 if test $in_tree_gas = yes; then
22054 if test $in_tree_gas_is_elf = yes \
22055 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22056 then gcc_cv_as_hidden=yes
22057 fi
22058 elif test x$gcc_cv_as != x; then
22059 $as_echo ' .hidden foobar
22060 foobar:' > conftest.s
22061 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22063 (eval $ac_try) 2>&5
22064 ac_status=$?
22065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22066 test $ac_status = 0; }; }
22067 then
22068
22069 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22070 # STV_HIDDEN, so disable .hidden support if so.
22071 case "${target}" in
22072 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22073 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22074 cat > conftest.s <<EOF
22075 .globl hidden
22076 .hidden hidden
22077 hidden:
22078 .globl default
22079 .set default,hidden
22080 EOF
22081 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22082 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22083 grep '\.hidden default' > /dev/null; then
22084 gcc_cv_as_hidden=no
22085 else
22086 gcc_cv_as_hidden=yes
22087 fi
22088 else
22089 # Assume bug is present if objdump is missing.
22090 gcc_cv_as_hidden=no
22091 fi
22092 ;;
22093 *)
22094 gcc_cv_as_hidden=yes
22095 ;;
22096 esac
22097 else
22098 echo "configure: failed program was" >&5
22099 cat conftest.s >&5
22100 fi
22101 rm -f conftest.o conftest.s
22102 fi
22103 fi
22104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22105 $as_echo "$gcc_cv_as_hidden" >&6; }
22106
22107 case "${target}" in
22108 *-*-darwin*)
22109 # Darwin as has some visibility support, though with a different syntax.
22110 gcc_cv_as_hidden=yes
22111 ;;
22112 esac
22113
22114 # gnu_indirect_function type is an extension proposed at
22115 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22116 # selection of function implementation
22117 # Check whether --enable-gnu-indirect-function was given.
22118 if test "${enable_gnu_indirect_function+set}" = set; then :
22119 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22120 yes | no) ;;
22121 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22122 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22123 esac
22124 else
22125 enable_gnu_indirect_function="$default_gnu_indirect_function"
22126 fi
22127
22128 if test x$enable_gnu_indirect_function = xyes; then
22129
22130 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22131
22132 fi
22133
22134 if test $in_tree_ld != yes ; then
22135 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22136 if echo "$ld_ver" | grep GNU > /dev/null; then
22137 if test x"$ld_is_gold" = xyes; then
22138 # GNU gold --version looks like this:
22139 #
22140 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22141 #
22142 # We extract the binutils version which is more familiar and specific
22143 # than the gold version.
22144 ld_vers=`echo $ld_ver | sed -n \
22145 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22146 else
22147 # GNU ld --version looks like this:
22148 #
22149 # GNU ld (GNU Binutils) 2.21.51.20110225
22150 ld_vers=`echo $ld_ver | sed -n \
22151 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22152 fi
22153 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'`
22154 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22155 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22156 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22157 else
22158 case "${target}" in
22159 *-*-solaris2*)
22160 #
22161 # Solaris 2 ld -V output looks like this for a regular version:
22162 #
22163 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22164 #
22165 # but test versions add stuff at the end:
22166 #
22167 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22168 #
22169 ld_ver=`$gcc_cv_ld -V 2>&1`
22170 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22171 ld_vers=`echo $ld_ver | sed -n \
22172 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22173 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22174 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22175 fi
22176 ;;
22177 esac
22178 fi
22179 fi
22180
22181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22182 $as_echo_n "checking linker for .hidden support... " >&6; }
22183 if test "${gcc_cv_ld_hidden+set}" = set; then :
22184 $as_echo_n "(cached) " >&6
22185 else
22186 if test $in_tree_ld = yes ; then
22187 gcc_cv_ld_hidden=no
22188 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 \
22189 && test $in_tree_ld_is_elf = yes; then
22190 gcc_cv_ld_hidden=yes
22191 fi
22192 else
22193 gcc_cv_ld_hidden=yes
22194 if test x"$ld_is_gold" = xyes; then
22195 :
22196 elif echo "$ld_ver" | grep GNU > /dev/null; then
22197 if test 0"$ld_date" -lt 20020404; then
22198 if test -n "$ld_date"; then
22199 # If there was date string, but was earlier than 2002-04-04, fail
22200 gcc_cv_ld_hidden=no
22201 elif test -z "$ld_vers"; then
22202 # If there was no date string nor ld version number, something is wrong
22203 gcc_cv_ld_hidden=no
22204 else
22205 test -z "$ld_vers_patch" && ld_vers_patch=0
22206 if test "$ld_vers_major" -lt 2; then
22207 gcc_cv_ld_hidden=no
22208 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22209 gcc_cv_ld_hidden="no"
22210 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22211 gcc_cv_ld_hidden=no
22212 fi
22213 fi
22214 fi
22215 else
22216 case "${target}" in
22217 *-*-darwin*)
22218 # Darwin ld has some visibility support.
22219 gcc_cv_ld_hidden=yes
22220 ;;
22221 hppa64*-*-hpux* | ia64*-*-hpux*)
22222 gcc_cv_ld_hidden=yes
22223 ;;
22224 *-*-solaris2.8*)
22225 # .hidden support was backported to Solaris 8, starting with ld
22226 # version 1.276.
22227 if test "$ld_vers_minor" -ge 276; then
22228 gcc_cv_ld_hidden=yes
22229 else
22230 gcc_cv_ld_hidden=no
22231 fi
22232 ;;
22233 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22234 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22235 # .symbolic was only added in Solaris 9 12/02.
22236 gcc_cv_ld_hidden=yes
22237 ;;
22238 *)
22239 gcc_cv_ld_hidden=no
22240 ;;
22241 esac
22242 fi
22243 fi
22244 fi
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22246 $as_echo "$gcc_cv_ld_hidden" >&6; }
22247 libgcc_visibility=no
22248
22249
22250 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22251 libgcc_visibility=yes
22252
22253 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22254
22255 fi
22256
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22258 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22259 gcc_cv_ld_ro_rw_mix=unknown
22260 if test $in_tree_ld = yes ; then
22261 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 \
22262 && test $in_tree_ld_is_elf = yes; then
22263 gcc_cv_ld_ro_rw_mix=read-write
22264 fi
22265 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22266 echo '.section myfoosect, "a"' > conftest1.s
22267 echo '.section myfoosect, "aw"' > conftest2.s
22268 echo '.byte 1' >> conftest2.s
22269 echo '.section myfoosect, "a"' > conftest3.s
22270 echo '.byte 0' >> conftest3.s
22271 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22272 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22273 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22274 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22275 conftest2.o conftest3.o > /dev/null 2>&1; then
22276 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22277 | sed -e '/myfoosect/!d' -e N`
22278 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22279 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22280 gcc_cv_ld_ro_rw_mix=read-only
22281 else
22282 gcc_cv_ld_ro_rw_mix=read-write
22283 fi
22284 fi
22285 fi
22286 rm -f conftest.* conftest[123].*
22287 fi
22288 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22289
22290 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22291
22292 fi
22293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22294 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22295
22296 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22298 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22299 if test "${gcc_cv_as_leb128+set}" = set; then :
22300 $as_echo_n "(cached) " >&6
22301 else
22302 gcc_cv_as_leb128=no
22303 if test $in_tree_gas = yes; then
22304 if test $in_tree_gas_is_elf = yes \
22305 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22306 then gcc_cv_as_leb128=yes
22307 fi
22308 elif test x$gcc_cv_as != x; then
22309 $as_echo ' .data
22310 .uleb128 L2 - L1
22311 L1:
22312 .uleb128 1280
22313 .sleb128 -1010
22314 L2:' > conftest.s
22315 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22317 (eval $ac_try) 2>&5
22318 ac_status=$?
22319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22320 test $ac_status = 0; }; }
22321 then
22322 # GAS versions before 2.11 do not support uleb128,
22323 # despite appearing to.
22324 # ??? There exists an elf-specific test that will crash
22325 # the assembler. Perhaps it's better to figure out whether
22326 # arbitrary sections are supported and try the test.
22327 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22328 if echo "$as_ver" | grep GNU > /dev/null; then
22329 as_vers=`echo $as_ver | sed -n \
22330 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22331 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22332 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22333 if test $as_major -eq 2 && test $as_minor -lt 11
22334 then :
22335 else gcc_cv_as_leb128=yes
22336 fi
22337 fi
22338 else
22339 echo "configure: failed program was" >&5
22340 cat conftest.s >&5
22341 fi
22342 rm -f conftest.o conftest.s
22343 fi
22344 fi
22345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22346 $as_echo "$gcc_cv_as_leb128" >&6; }
22347 if test $gcc_cv_as_leb128 = yes; then
22348
22349 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22350
22351 fi
22352
22353 # Check if we have assembler support for unwind directives.
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22355 $as_echo_n "checking assembler for cfi directives... " >&6; }
22356 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22357 $as_echo_n "(cached) " >&6
22358 else
22359 gcc_cv_as_cfi_directive=no
22360 if test x$gcc_cv_as != x; then
22361 $as_echo ' .text
22362 .cfi_startproc
22363 .cfi_offset 0, 0
22364 .cfi_same_value 1
22365 .cfi_def_cfa 1, 2
22366 .cfi_escape 1, 2, 3, 4, 5
22367 .cfi_endproc' > conftest.s
22368 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22369 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22370 (eval $ac_try) 2>&5
22371 ac_status=$?
22372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22373 test $ac_status = 0; }; }
22374 then
22375 case "$target" in
22376 *-*-solaris*)
22377 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22378 # read-only and read-write sections, we need to make sure that the
22379 # assembler used emits read-write .eh_frame sections.
22380 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22381 if test "x$gcc_cv_objdump" != x; then
22382 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22383 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22384 gcc_cv_as_cfi_directive=no
22385 else
22386 case "$target" in
22387 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22388 # On Solaris/x86, make sure that GCC and gas agree on using
22389 # read-only .eh_frame sections for 64-bit.
22390 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22391 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22392 sed -e /.eh_frame/!d -e N | \
22393 grep READONLY > /dev/null; then
22394 gcc_cv_as_cfi_directive=yes
22395 else
22396 gcc_cv_as_cfi_directive=no
22397 fi
22398 ;;
22399 *)
22400 gcc_cv_as_cfi_directive=yes
22401 ;;
22402 esac
22403 fi
22404 else
22405 # no objdump, err on the side of caution
22406 gcc_cv_as_cfi_directive=no
22407 fi
22408 else
22409 gcc_cv_as_cfi_directive=yes
22410 fi
22411 ;;
22412 *-*-*)
22413 gcc_cv_as_cfi_directive=yes
22414 ;;
22415 esac
22416 else
22417 echo "configure: failed program was" >&5
22418 cat conftest.s >&5
22419 fi
22420 rm -f conftest.o conftest.s
22421 fi
22422 fi
22423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22424 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22425
22426 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22428 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22429 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22430 $as_echo_n "(cached) " >&6
22431 else
22432 gcc_cv_as_cfi_advance_working=no
22433 if test x$gcc_cv_as != x; then
22434 $as_echo ' .text
22435 .cfi_startproc
22436 .cfi_adjust_cfa_offset 64
22437 .skip 75040, 0
22438 .cfi_adjust_cfa_offset 128
22439 .cfi_endproc' > conftest.s
22440 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22442 (eval $ac_try) 2>&5
22443 ac_status=$?
22444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22445 test $ac_status = 0; }; }
22446 then
22447
22448 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22449 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22450 gcc_cv_as_cfi_advance_working=yes
22451 fi
22452
22453 else
22454 echo "configure: failed program was" >&5
22455 cat conftest.s >&5
22456 fi
22457 rm -f conftest.o conftest.s
22458 fi
22459 fi
22460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22461 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22462
22463 else
22464 # no objdump, err on the side of caution
22465 gcc_cv_as_cfi_advance_working=no
22466 fi
22467
22468
22469 cat >>confdefs.h <<_ACEOF
22470 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22471 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22472 _ACEOF
22473
22474
22475
22476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22477 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22478 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22479 $as_echo_n "(cached) " >&6
22480 else
22481 gcc_cv_as_cfi_personality_directive=no
22482 if test x$gcc_cv_as != x; then
22483 $as_echo ' .text
22484 .cfi_startproc
22485 .cfi_personality 0, symbol
22486 .cfi_endproc' > conftest.s
22487 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22489 (eval $ac_try) 2>&5
22490 ac_status=$?
22491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22492 test $ac_status = 0; }; }
22493 then
22494 gcc_cv_as_cfi_personality_directive=yes
22495 else
22496 echo "configure: failed program was" >&5
22497 cat conftest.s >&5
22498 fi
22499 rm -f conftest.o conftest.s
22500 fi
22501 fi
22502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22503 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22504
22505
22506 cat >>confdefs.h <<_ACEOF
22507 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22508 then echo 1; else echo 0; fi`
22509 _ACEOF
22510
22511
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22513 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22514 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22515 $as_echo_n "(cached) " >&6
22516 else
22517 gcc_cv_as_cfi_sections_directive=no
22518 if test x$gcc_cv_as != x; then
22519 $as_echo ' .text
22520 .cfi_sections .debug_frame, .eh_frame
22521 .cfi_startproc
22522 .cfi_endproc' > conftest.s
22523 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22525 (eval $ac_try) 2>&5
22526 ac_status=$?
22527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22528 test $ac_status = 0; }; }
22529 then
22530 case $target_os in
22531 win32 | pe | cygwin* | mingw32* | uwin*)
22532 # Need to check that we generated the correct relocation for the
22533 # .debug_frame section. This was fixed for binutils 2.21.
22534 gcc_cv_as_cfi_sections_directive=no
22535 if test "x$gcc_cv_objdump" != x; then
22536 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22537 grep secrel > /dev/null; then
22538 gcc_cv_as_cfi_sections_directive=yes
22539 fi
22540 fi
22541 ;;
22542 *)
22543 gcc_cv_as_cfi_sections_directive=yes
22544 ;;
22545 esac
22546 else
22547 echo "configure: failed program was" >&5
22548 cat conftest.s >&5
22549 fi
22550 rm -f conftest.o conftest.s
22551 fi
22552 fi
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22554 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22555
22556
22557
22558 cat >>confdefs.h <<_ACEOF
22559 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22560 then echo 1; else echo 0; fi`
22561 _ACEOF
22562
22563
22564 # GAS versions up to and including 2.11.0 may mis-optimize
22565 # .eh_frame data.
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22567 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22568 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22569 $as_echo_n "(cached) " >&6
22570 else
22571 gcc_cv_as_eh_frame=no
22572 if test $in_tree_gas = yes; then
22573 if test $in_tree_gas_is_elf = yes \
22574 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22575 then gcc_cv_as_eh_frame=yes
22576 fi
22577 elif test x$gcc_cv_as != x; then
22578 $as_echo ' .text
22579 .LFB1:
22580 .4byte 0
22581 .L1:
22582 .4byte 0
22583 .LFE1:
22584 .section .eh_frame,"aw",@progbits
22585 __FRAME_BEGIN__:
22586 .4byte .LECIE1-.LSCIE1
22587 .LSCIE1:
22588 .4byte 0x0
22589 .byte 0x1
22590 .ascii "z\0"
22591 .byte 0x1
22592 .byte 0x78
22593 .byte 0x1a
22594 .byte 0x0
22595 .byte 0x4
22596 .4byte 1
22597 .p2align 1
22598 .LECIE1:
22599 .LSFDE1:
22600 .4byte .LEFDE1-.LASFDE1
22601 .LASFDE1:
22602 .4byte .LASFDE1-__FRAME_BEGIN__
22603 .4byte .LFB1
22604 .4byte .LFE1-.LFB1
22605 .byte 0x4
22606 .4byte .LFE1-.LFB1
22607 .byte 0x4
22608 .4byte .L1-.LFB1
22609 .LEFDE1:' > conftest.s
22610 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22611 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22612 (eval $ac_try) 2>&5
22613 ac_status=$?
22614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22615 test $ac_status = 0; }; }
22616 then
22617 cat > conftest.lit <<EOF
22618 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22619 0010 01000000 12000000 18000000 00000000 ................
22620 0020 08000000 04080000 0044 .........D
22621 EOF
22622 cat > conftest.big <<EOF
22623 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22624 0010 00000001 00000012 00000018 00000000 ................
22625 0020 00000008 04000000 0844 .........D
22626 EOF
22627 # If the assembler didn't choke, and we can objdump,
22628 # and we got the correct data, then succeed.
22629 # The text in the here-document typically retains its unix-style line
22630 # endings, while the output of objdump will use host line endings.
22631 # Therefore, use diff -b for the comparisons.
22632 if test x$gcc_cv_objdump != x \
22633 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22634 | tail -3 > conftest.got \
22635 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22636 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22637 then
22638 gcc_cv_as_eh_frame=yes
22639 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22641 (eval $ac_try) 2>&5
22642 ac_status=$?
22643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22644 test $ac_status = 0; }; }; then
22645 gcc_cv_as_eh_frame=buggy
22646 else
22647 # Uh oh, what do we do now?
22648 gcc_cv_as_eh_frame=no
22649 fi
22650 else
22651 echo "configure: failed program was" >&5
22652 cat conftest.s >&5
22653 fi
22654 rm -f conftest.o conftest.s
22655 fi
22656 fi
22657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22658 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22659
22660
22661 if test $gcc_cv_as_eh_frame = buggy; then
22662
22663 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22664
22665 fi
22666
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22668 $as_echo_n "checking assembler for section merging support... " >&6; }
22669 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22670 $as_echo_n "(cached) " >&6
22671 else
22672 gcc_cv_as_shf_merge=no
22673 if test $in_tree_gas = yes; then
22674 if test $in_tree_gas_is_elf = yes \
22675 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22676 then gcc_cv_as_shf_merge=yes
22677 fi
22678 elif test x$gcc_cv_as != x; then
22679 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22680 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22682 (eval $ac_try) 2>&5
22683 ac_status=$?
22684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22685 test $ac_status = 0; }; }
22686 then
22687 gcc_cv_as_shf_merge=yes
22688 else
22689 echo "configure: failed program was" >&5
22690 cat conftest.s >&5
22691 fi
22692 rm -f conftest.o conftest.s
22693 fi
22694 fi
22695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22696 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22697
22698 if test $gcc_cv_as_shf_merge = no; then
22699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22700 $as_echo_n "checking assembler for section merging support... " >&6; }
22701 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22702 $as_echo_n "(cached) " >&6
22703 else
22704 gcc_cv_as_shf_merge=no
22705 if test $in_tree_gas = yes; then
22706 if test $in_tree_gas_is_elf = yes \
22707 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22708 then gcc_cv_as_shf_merge=yes
22709 fi
22710 elif test x$gcc_cv_as != x; then
22711 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22712 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22714 (eval $ac_try) 2>&5
22715 ac_status=$?
22716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22717 test $ac_status = 0; }; }
22718 then
22719 gcc_cv_as_shf_merge=yes
22720 else
22721 echo "configure: failed program was" >&5
22722 cat conftest.s >&5
22723 fi
22724 rm -f conftest.o conftest.s
22725 fi
22726 fi
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22728 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22729
22730 fi
22731
22732 cat >>confdefs.h <<_ACEOF
22733 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22734 _ACEOF
22735
22736
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22738 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22739 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22740 $as_echo_n "(cached) " >&6
22741 else
22742 gcc_cv_as_comdat_group=no
22743 if test $in_tree_gas = yes; then
22744 if test $in_tree_gas_is_elf = yes \
22745 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22746 then gcc_cv_as_comdat_group=yes
22747 fi
22748 elif test x$gcc_cv_as != x; then
22749 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22750 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22752 (eval $ac_try) 2>&5
22753 ac_status=$?
22754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22755 test $ac_status = 0; }; }
22756 then
22757 gcc_cv_as_comdat_group=yes
22758 else
22759 echo "configure: failed program was" >&5
22760 cat conftest.s >&5
22761 fi
22762 rm -f conftest.o conftest.s
22763 fi
22764 fi
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22766 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22767
22768 if test $gcc_cv_as_comdat_group = yes; then
22769 gcc_cv_as_comdat_group_percent=no
22770 gcc_cv_as_comdat_group_group=no
22771 else
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22773 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22774 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22775 $as_echo_n "(cached) " >&6
22776 else
22777 gcc_cv_as_comdat_group_percent=no
22778 if test $in_tree_gas = yes; then
22779 if test $in_tree_gas_is_elf = yes \
22780 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22781 then gcc_cv_as_comdat_group_percent=yes
22782 fi
22783 elif test x$gcc_cv_as != x; then
22784 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22785 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22787 (eval $ac_try) 2>&5
22788 ac_status=$?
22789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22790 test $ac_status = 0; }; }
22791 then
22792 gcc_cv_as_comdat_group_percent=yes
22793 else
22794 echo "configure: failed program was" >&5
22795 cat conftest.s >&5
22796 fi
22797 rm -f conftest.o conftest.s
22798 fi
22799 fi
22800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22801 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22802
22803 if test $gcc_cv_as_comdat_group_percent = yes; then
22804 gcc_cv_as_comdat_group_group=no
22805 else
22806 case "${target}" in
22807 # Sun as uses a completely different syntax.
22808 *-*-solaris2*)
22809 case "${target}" in
22810 sparc*-*-solaris2*)
22811 conftest_s='
22812 .group foo,".text%foo",#comdat
22813 .section ".text%foo", #alloc,#execinstr,#progbits
22814 .globl foo
22815 foo:
22816 '
22817 ;;
22818 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22819 conftest_s='
22820 .group foo,.text%foo,#comdat
22821 .section .text%foo, "ax", @progbits
22822 .globl foo
22823 foo:
22824 '
22825 ;;
22826 esac
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22828 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22829 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22830 $as_echo_n "(cached) " >&6
22831 else
22832 gcc_cv_as_comdat_group_group=no
22833 if test x$gcc_cv_as != x; then
22834 $as_echo "$conftest_s" > conftest.s
22835 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22837 (eval $ac_try) 2>&5
22838 ac_status=$?
22839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22840 test $ac_status = 0; }; }
22841 then
22842 gcc_cv_as_comdat_group_group=yes
22843 else
22844 echo "configure: failed program was" >&5
22845 cat conftest.s >&5
22846 fi
22847 rm -f conftest.o conftest.s
22848 fi
22849 fi
22850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22851 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22852
22853 ;;
22854 esac
22855 fi
22856 fi
22857 if test x"$ld_is_gold" = xyes; then
22858 comdat_group=yes
22859 elif test $in_tree_ld = yes ; then
22860 comdat_group=no
22861 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 \
22862 && test $in_tree_ld_is_elf = yes; then
22863 comdat_group=yes
22864 fi
22865 elif echo "$ld_ver" | grep GNU > /dev/null; then
22866 comdat_group=yes
22867 if test 0"$ld_date" -lt 20050308; then
22868 if test -n "$ld_date"; then
22869 # If there was date string, but was earlier than 2005-03-08, fail
22870 comdat_group=no
22871 elif test "$ld_vers_major" -lt 2; then
22872 comdat_group=no
22873 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22874 comdat_group=no
22875 fi
22876 fi
22877 else
22878 case "${target}" in
22879 *-*-solaris2.1[1-9]*)
22880 comdat_group=no
22881 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22882 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22883 # version 1.688.
22884 #
22885 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22886 # least ld version 1.2267.
22887 if test "$ld_vers_major" -gt 1; then
22888 comdat_group=yes
22889 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
22890 comdat_group=yes
22891 elif test "$ld_vers_minor" -ge 2267; then
22892 comdat_group=yes
22893 fi
22894 ;;
22895 *)
22896 # Assume linkers other than GNU ld don't support COMDAT group.
22897 comdat_group=no
22898 ;;
22899 esac
22900 fi
22901 # Allow overriding the automatic COMDAT group tests above.
22902 # Check whether --enable-comdat was given.
22903 if test "${enable_comdat+set}" = set; then :
22904 enableval=$enable_comdat; comdat_group="$enable_comdat"
22905 fi
22906
22907 if test $comdat_group = no; then
22908 gcc_cv_as_comdat_group=no
22909 gcc_cv_as_comdat_group_percent=no
22910 gcc_cv_as_comdat_group_group=no
22911 fi
22912
22913 cat >>confdefs.h <<_ACEOF
22914 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22915 || test $gcc_cv_as_comdat_group_percent = yes \
22916 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22917 _ACEOF
22918
22919
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22921 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22922 if test "${gcc_cv_as_discriminator+set}" = set; then :
22923 $as_echo_n "(cached) " >&6
22924 else
22925 gcc_cv_as_discriminator=no
22926 if test $in_tree_gas = yes; then
22927 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22928 then gcc_cv_as_discriminator=yes
22929 fi
22930 elif test x$gcc_cv_as != x; then
22931 $as_echo ' .text
22932 .file 1 "conf.c"
22933 .loc 1 1 0 discriminator 1' > conftest.s
22934 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22936 (eval $ac_try) 2>&5
22937 ac_status=$?
22938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22939 test $ac_status = 0; }; }
22940 then
22941 gcc_cv_as_discriminator=yes
22942 else
22943 echo "configure: failed program was" >&5
22944 cat conftest.s >&5
22945 fi
22946 rm -f conftest.o conftest.s
22947 fi
22948 fi
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22950 $as_echo "$gcc_cv_as_discriminator" >&6; }
22951 if test $gcc_cv_as_discriminator = yes; then
22952
22953 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22954
22955 fi
22956
22957 # Thread-local storage - the check is heavily parameterized.
22958 conftest_s=
22959 tls_first_major=
22960 tls_first_minor=
22961 tls_as_opt=
22962 case "$target" in
22963 alpha*-*-*)
22964 conftest_s='
22965 .section ".tdata","awT",@progbits
22966 foo: .long 25
22967 .text
22968 ldq $27,__tls_get_addr($29) !literal!1
22969 lda $16,foo($29) !tlsgd!1
22970 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22971 ldq $27,__tls_get_addr($29) !literal!2
22972 lda $16,foo($29) !tlsldm!2
22973 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22974 ldq $1,foo($29) !gotdtprel
22975 ldah $2,foo($29) !dtprelhi
22976 lda $3,foo($2) !dtprello
22977 lda $4,foo($29) !dtprel
22978 ldq $1,foo($29) !gottprel
22979 ldah $2,foo($29) !tprelhi
22980 lda $3,foo($2) !tprello
22981 lda $4,foo($29) !tprel'
22982 tls_first_major=2
22983 tls_first_minor=13
22984 tls_as_opt=--fatal-warnings
22985 ;;
22986 cris-*-*|crisv32-*-*)
22987 conftest_s='
22988 .section ".tdata","awT",@progbits
22989 x: .long 25
22990 .text
22991 move.d x:IE,$r10
22992 nop'
22993 tls_first_major=2
22994 tls_first_minor=20
22995 tls_as_opt=--fatal-warnings
22996 ;;
22997 frv*-*-*)
22998 conftest_s='
22999 .section ".tdata","awT",@progbits
23000 x: .long 25
23001 .text
23002 call #gettlsoff(x)'
23003 tls_first_major=2
23004 tls_first_minor=14
23005 ;;
23006 hppa*-*-linux*)
23007 conftest_s='
23008 t1: .reg %r20
23009 t2: .reg %r21
23010 gp: .reg %r19
23011 .section ".tdata","awT",@progbits
23012 foo: .long 25
23013 .text
23014 .align 4
23015 addil LT%foo-$tls_gdidx$,gp
23016 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23017 b __tls_get_addr
23018 nop
23019 addil LT%foo-$tls_ldidx$,gp
23020 b __tls_get_addr
23021 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23022 addil LR%foo-$tls_dtpoff$,%ret0
23023 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23024 mfctl %cr27,%t1
23025 addil LT%foo-$tls_ieoff$,gp
23026 ldw RT%foo-$tls_ieoff$(%r1),%t2
23027 add %t1,%t2,%t3
23028 mfctl %cr27,%t1
23029 addil LR%foo-$tls_leoff$,%t1
23030 ldo RR%foo-$tls_leoff$(%r1),%t2'
23031 tls_first_major=2
23032 tls_first_minor=15
23033 tls_as_opt=--fatal-warnings
23034 ;;
23035 arm*-*-*)
23036 conftest_s='
23037 .section ".tdata","awT",%progbits
23038 foo: .long 25
23039 .text
23040 .word foo(gottpoff)
23041 .word foo(tpoff)
23042 .word foo(tlsgd)
23043 .word foo(tlsldm)
23044 .word foo(tlsldo)'
23045 tls_first_major=2
23046 tls_first_minor=17
23047 ;;
23048 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23049 case "$target" in
23050 i[34567]86-*-solaris2.*)
23051 on_solaris=yes
23052 tga_func=___tls_get_addr
23053 ;;
23054 x86_64-*-solaris2.1[0-9]*)
23055 on_solaris=yes
23056 tga_func=__tls_get_addr
23057 ;;
23058 *)
23059 on_solaris=no
23060 ;;
23061 esac
23062 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23063 conftest_s='
23064 .section .tdata,"awt",@progbits'
23065 tls_first_major=0
23066 tls_first_minor=0
23067
23068 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23069
23070 else
23071 conftest_s='
23072 .section ".tdata","awT",@progbits'
23073 tls_first_major=2
23074 tls_first_minor=14
23075 tls_as_opt="--fatal-warnings"
23076 fi
23077 conftest_s="$conftest_s
23078 foo: .long 25
23079 .text
23080 movl %gs:0, %eax
23081 leal foo@tlsgd(,%ebx,1), %eax
23082 leal foo@tlsldm(%ebx), %eax
23083 leal foo@dtpoff(%eax), %edx
23084 movl foo@gottpoff(%ebx), %eax
23085 subl foo@gottpoff(%ebx), %eax
23086 addl foo@gotntpoff(%ebx), %eax
23087 movl foo@indntpoff, %eax
23088 movl \$foo@tpoff, %eax
23089 subl \$foo@tpoff, %eax
23090 leal foo@ntpoff(%ecx), %eax"
23091 ;;
23092 x86_64-*-*)
23093 conftest_s='
23094 .section ".tdata","awT",@progbits
23095 foo: .long 25
23096 .text
23097 movq %fs:0, %rax
23098 leaq foo@TLSGD(%rip), %rdi
23099 leaq foo@TLSLD(%rip), %rdi
23100 leaq foo@DTPOFF(%rax), %rdx
23101 movq foo@GOTTPOFF(%rip), %rax
23102 movq $foo@TPOFF, %rax'
23103 tls_first_major=2
23104 tls_first_minor=14
23105 tls_as_opt=--fatal-warnings
23106 ;;
23107 ia64-*-*)
23108 conftest_s='
23109 .section ".tdata","awT",@progbits
23110 foo: data8 25
23111 .text
23112 addl r16 = @ltoff(@dtpmod(foo#)), gp
23113 addl r17 = @ltoff(@dtprel(foo#)), gp
23114 addl r18 = @ltoff(@tprel(foo#)), gp
23115 addl r19 = @dtprel(foo#), gp
23116 adds r21 = @dtprel(foo#), r13
23117 movl r23 = @dtprel(foo#)
23118 addl r20 = @tprel(foo#), gp
23119 adds r22 = @tprel(foo#), r13
23120 movl r24 = @tprel(foo#)'
23121 tls_first_major=2
23122 tls_first_minor=13
23123 tls_as_opt=--fatal-warnings
23124 ;;
23125 mips*-*-*)
23126 conftest_s='
23127 .section .tdata,"awT",@progbits
23128 x:
23129 .word 2
23130 .text
23131 addiu $4, $28, %tlsgd(x)
23132 addiu $4, $28, %tlsldm(x)
23133 lui $4, %dtprel_hi(x)
23134 addiu $4, $4, %dtprel_lo(x)
23135 lw $4, %gottprel(x)($28)
23136 lui $4, %tprel_hi(x)
23137 addiu $4, $4, %tprel_lo(x)'
23138 tls_first_major=2
23139 tls_first_minor=16
23140 tls_as_opt='-32 --fatal-warnings'
23141 ;;
23142 m68k-*-*)
23143 conftest_s='
23144 .section .tdata,"awT",@progbits
23145 x:
23146 .word 2
23147 .text
23148 foo:
23149 move.l x@TLSGD(%a5),%a0
23150 move.l x@TLSLDM(%a5),%a0
23151 move.l x@TLSLDO(%a5),%a0
23152 move.l x@TLSIE(%a5),%a0
23153 move.l x@TLSLE(%a5),%a0'
23154 tls_first_major=2
23155 tls_first_minor=19
23156 tls_as_opt='--fatal-warnings'
23157 ;;
23158 powerpc-*-*)
23159 conftest_s='
23160 .section ".tdata","awT",@progbits
23161 .align 2
23162 ld0: .space 4
23163 ld1: .space 4
23164 x1: .space 4
23165 x2: .space 4
23166 x3: .space 4
23167 .text
23168 addi 3,31,ld0@got@tlsgd
23169 bl __tls_get_addr
23170 addi 3,31,x1@got@tlsld
23171 bl __tls_get_addr
23172 addi 9,3,x1@dtprel
23173 addis 9,3,x2@dtprel@ha
23174 addi 9,9,x2@dtprel@l
23175 lwz 9,x3@got@tprel(31)
23176 add 9,9,x@tls
23177 addi 9,2,x1@tprel
23178 addis 9,2,x2@tprel@ha
23179 addi 9,9,x2@tprel@l'
23180 tls_first_major=2
23181 tls_first_minor=14
23182 tls_as_opt="-a32 --fatal-warnings"
23183 ;;
23184 powerpc64-*-*)
23185 conftest_s='
23186 .section ".tdata","awT",@progbits
23187 .align 3
23188 ld0: .space 8
23189 ld1: .space 8
23190 x1: .space 8
23191 x2: .space 8
23192 x3: .space 8
23193 .text
23194 addi 3,2,ld0@got@tlsgd
23195 bl .__tls_get_addr
23196 nop
23197 addi 3,2,ld1@toc
23198 bl .__tls_get_addr
23199 nop
23200 addi 3,2,x1@got@tlsld
23201 bl .__tls_get_addr
23202 nop
23203 addi 9,3,x1@dtprel
23204 bl .__tls_get_addr
23205 nop
23206 addis 9,3,x2@dtprel@ha
23207 addi 9,9,x2@dtprel@l
23208 bl .__tls_get_addr
23209 nop
23210 ld 9,x3@got@dtprel(2)
23211 add 9,9,3
23212 bl .__tls_get_addr
23213 nop'
23214 tls_first_major=2
23215 tls_first_minor=14
23216 tls_as_opt="-a64 --fatal-warnings"
23217 ;;
23218 s390-*-*)
23219 conftest_s='
23220 .section ".tdata","awT",@progbits
23221 foo: .long 25
23222 .text
23223 .long foo@TLSGD
23224 .long foo@TLSLDM
23225 .long foo@DTPOFF
23226 .long foo@NTPOFF
23227 .long foo@GOTNTPOFF
23228 .long foo@INDNTPOFF
23229 l %r1,foo@GOTNTPOFF(%r12)
23230 l %r1,0(%r1):tls_load:foo
23231 bas %r14,0(%r1,%r13):tls_gdcall:foo
23232 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23233 tls_first_major=2
23234 tls_first_minor=14
23235 tls_as_opt="-m31 --fatal-warnings"
23236 ;;
23237 s390x-*-*)
23238 conftest_s='
23239 .section ".tdata","awT",@progbits
23240 foo: .long 25
23241 .text
23242 .quad foo@TLSGD
23243 .quad foo@TLSLDM
23244 .quad foo@DTPOFF
23245 .quad foo@NTPOFF
23246 .quad foo@GOTNTPOFF
23247 lg %r1,foo@GOTNTPOFF(%r12)
23248 larl %r1,foo@INDNTPOFF
23249 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23250 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23251 tls_first_major=2
23252 tls_first_minor=14
23253 tls_as_opt="-m64 -Aesame --fatal-warnings"
23254 ;;
23255 sh-*-* | sh[34]-*-*)
23256 conftest_s='
23257 .section ".tdata","awT",@progbits
23258 foo: .long 25
23259 .text
23260 .long foo@TLSGD
23261 .long foo@TLSLDM
23262 .long foo@DTPOFF
23263 .long foo@GOTTPOFF
23264 .long foo@TPOFF'
23265 tls_first_major=2
23266 tls_first_minor=13
23267 tls_as_opt=--fatal-warnings
23268 ;;
23269 sparc*-*-*)
23270 case "$target" in
23271 sparc*-sun-solaris2.*)
23272 on_solaris=yes
23273 tga_func=__tls_get_addr
23274 ;;
23275 *)
23276 on_solaris=no
23277 ;;
23278 esac
23279 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23280 conftest_s='
23281 .section ".tdata",#alloc,#write,#tls'
23282 tls_first_major=0
23283 tls_first_minor=0
23284 else
23285 conftest_s='
23286 .section ".tdata","awT",@progbits'
23287 tls_first_major=2
23288 tls_first_minor=14
23289 tls_as_opt="-32 --fatal-warnings"
23290 fi
23291 conftest_s="$conftest_s
23292 foo: .long 25
23293 .text
23294 sethi %tgd_hi22(foo), %o0
23295 add %o0, %tgd_lo10(foo), %o1
23296 add %l7, %o1, %o0, %tgd_add(foo)
23297 call __tls_get_addr, %tgd_call(foo)
23298 sethi %tldm_hi22(foo), %l1
23299 add %l1, %tldm_lo10(foo), %l2
23300 add %l7, %l2, %o0, %tldm_add(foo)
23301 call __tls_get_addr, %tldm_call(foo)
23302 sethi %tldo_hix22(foo), %l3
23303 xor %l3, %tldo_lox10(foo), %l4
23304 add %o0, %l4, %l5, %tldo_add(foo)
23305 sethi %tie_hi22(foo), %o3
23306 add %o3, %tie_lo10(foo), %o3
23307 ld [%l7 + %o3], %o2, %tie_ld(foo)
23308 add %g7, %o2, %o4, %tie_add(foo)
23309 sethi %tle_hix22(foo), %l1
23310 xor %l1, %tle_lox10(foo), %o5
23311 ld [%g7 + %o5], %o1"
23312 ;;
23313 xtensa*-*-*)
23314 conftest_s='
23315 .section ".tdata","awT",@progbits
23316 foo: .long 25
23317 .text
23318 movi a8, foo@TLSFUNC
23319 movi a10, foo@TLSARG
23320 callx8.tls a8, foo@TLSCALL'
23321 tls_first_major=2
23322 tls_first_minor=19
23323 ;;
23324 esac
23325 set_have_as_tls=no
23326 if test "x$enable_tls" = xno ; then
23327 : # TLS explicitly disabled.
23328 elif test "x$enable_tls" = xyes ; then
23329 set_have_as_tls=yes # TLS explicitly enabled.
23330 elif test -z "$tls_first_major"; then
23331 : # If we don't have a check, assume no support.
23332 else
23333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23334 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23335 if test "${gcc_cv_as_tls+set}" = set; then :
23336 $as_echo_n "(cached) " >&6
23337 else
23338 gcc_cv_as_tls=no
23339 if test $in_tree_gas = yes; then
23340 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23341 then gcc_cv_as_tls=yes
23342 fi
23343 elif test x$gcc_cv_as != x; then
23344 $as_echo "$conftest_s" > conftest.s
23345 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23347 (eval $ac_try) 2>&5
23348 ac_status=$?
23349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23350 test $ac_status = 0; }; }
23351 then
23352 gcc_cv_as_tls=yes
23353 else
23354 echo "configure: failed program was" >&5
23355 cat conftest.s >&5
23356 fi
23357 rm -f conftest.o conftest.s
23358 fi
23359 fi
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23361 $as_echo "$gcc_cv_as_tls" >&6; }
23362 if test $gcc_cv_as_tls = yes; then
23363 set_have_as_tls=yes
23364 fi
23365 fi
23366 case "$target" in
23367 *-*-irix6*)
23368 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23369 # with TLS support are in use, native TLS cannot work.
23370 set_have_as_tls=no
23371 ;;
23372 *-*-osf*)
23373 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23374 # gld with TLS support are in use, native TLS cannot work.
23375 set_have_as_tls=no
23376 ;;
23377 # TLS was introduced in the Solaris 9 FCS release and backported to
23378 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23379 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23380 # ld and GCC don't support any longer.
23381 *-*-solaris2.*)
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23383 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23384 ld_tls_support=no
23385 # Check ld and ld.so.1 TLS support.
23386 if echo "$ld_ver" | grep GNU > /dev/null; then
23387 # Assume all interesting versions of GNU ld have TLS support.
23388 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23389 ld_tls_support=yes
23390 else
23391 case "$target" in
23392 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23393 i?86-*-solaris2.8)
23394 min_tls_ld_vers_minor=280
23395 ;;
23396 # Solaris 8/SPARC ld has TLS support since version 1.272.
23397 sparc*-*-solaris2.8)
23398 min_tls_ld_vers_minor=272
23399 ;;
23400 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23401 i?86-*-solaris2.9)
23402 min_tls_ld_vers_minor=374
23403 ;;
23404 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23405 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23406 min_tls_ld_vers_minor=343
23407 ;;
23408 esac
23409 if test "$ld_vers_major" -gt 1 || \
23410 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23411 ld_tls_support=yes
23412 else
23413 set_have_as_tls=no
23414 fi
23415 fi
23416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23417 $as_echo "$ld_tls_support" >&6; }
23418
23419 save_LIBS="$LIBS"
23420 save_LDFLAGS="$LDFLAGS"
23421 LIBS=
23422 LDFLAGS=
23423
23424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23425 $as_echo_n "checking alternate thread library... " >&6; }
23426 case "$target" in
23427 # TLS support was backported to Solaris 8 patches, but only lives in
23428 # the alternate thread library which became the default in Solaris 9.
23429 # We want to always use that, irrespective of TLS support.
23430 *-*-solaris2.8)
23431 # Take multilib subdir into account. There's no spec to handle
23432 # this. The 64 symlink exists since Solaris 8.
23433 lwp_dir=/usr/lib/lwp
23434 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23435 LDFLAGS="-L$lwp_dir -R$lwp_dir"
23436 ;;
23437 *-*-solaris2*)
23438 lwp_dir="none"
23439 lwp_spec=""
23440 ;;
23441 esac
23442 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23443
23444 cat >>confdefs.h <<_ACEOF
23445 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23446 _ACEOF
23447
23448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23449 $as_echo "$lwp_dir" >&6; }
23450
23451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23452 $as_echo_n "checking library containing $tga_func... " >&6; }
23453 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23454 # (32-bit x86) only lived in libthread, so check for that. Keep
23455 # set_have_as_tls if found, disable if not.
23456 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23458 $as_echo_n "checking for library containing $tga_func... " >&6; }
23459 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23460 $as_echo_n "(cached) " >&6
23461 else
23462 ac_func_search_save_LIBS=$LIBS
23463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23464 /* end confdefs.h. */
23465
23466 /* Override any GCC internal prototype to avoid an error.
23467 Use char because int might match the return type of a GCC
23468 builtin and then its argument prototype would still apply. */
23469 #ifdef __cplusplus
23470 extern "C"
23471 #endif
23472 char $tga_func ();
23473 int
23474 main ()
23475 {
23476 return $tga_func ();
23477 ;
23478 return 0;
23479 }
23480 _ACEOF
23481 for ac_lib in '' thread; do
23482 if test -z "$ac_lib"; then
23483 ac_res="none required"
23484 else
23485 ac_res=-l$ac_lib
23486 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23487 fi
23488 if ac_fn_c_try_link "$LINENO"; then :
23489 eval "$as_ac_Search=\$ac_res"
23490 fi
23491 rm -f core conftest.err conftest.$ac_objext \
23492 conftest$ac_exeext
23493 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23494 break
23495 fi
23496 done
23497 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23498
23499 else
23500 eval "$as_ac_Search=no"
23501 fi
23502 rm conftest.$ac_ext
23503 LIBS=$ac_func_search_save_LIBS
23504 fi
23505 eval ac_res=\$$as_ac_Search
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23507 $as_echo "$ac_res" >&6; }
23508 eval ac_res=\$$as_ac_Search
23509 if test "$ac_res" != no; then :
23510 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23511
23512 else
23513 set_have_as_tls=no
23514 fi
23515
23516 # Clear LIBS if we cannot support TLS.
23517 if test $set_have_as_tls = no; then
23518 LIBS=
23519 fi
23520 # Always define LIB_TLS_SPEC, even without TLS support.
23521
23522 cat >>confdefs.h <<_ACEOF
23523 #define LIB_TLS_SPEC "$LIBS"
23524 _ACEOF
23525
23526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23527 $as_echo "$LIBS" >&6; }
23528
23529 LIBS="$save_LIBS"
23530 LDFLAGS="$save_LDFLAGS"
23531 ;;
23532 esac
23533 if test $set_have_as_tls = yes ; then
23534
23535 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23536
23537 fi
23538
23539 # Target-specific assembler checks.
23540
23541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23542 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23543 gcc_cv_ld_static_dynamic=no
23544 gcc_cv_ld_static_option='-Bstatic'
23545 gcc_cv_ld_dynamic_option='-Bdynamic'
23546 if test $in_tree_ld = yes ; then
23547 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
23548 gcc_cv_ld_static_dynamic=yes
23549 fi
23550 elif test x$gcc_cv_ld != x; then
23551 # Check if linker supports -Bstatic/-Bdynamic option
23552 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23553 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23554 gcc_cv_ld_static_dynamic=yes
23555 else
23556 case "$target" in
23557 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23558 alpha*-dec-osf*)
23559 gcc_cv_ld_static_dynamic=yes
23560 gcc_cv_ld_static_option="-noso"
23561 gcc_cv_ld_dynamic_option="-so_archive"
23562 ;;
23563 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23564 mips-sgi-irix6*)
23565 gcc_cv_ld_static_dynamic=yes
23566 ;;
23567 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23568 *-*-solaris2*)
23569 gcc_cv_ld_static_dynamic=yes
23570 ;;
23571 esac
23572 fi
23573 fi
23574 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23575
23576 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23577
23578
23579 cat >>confdefs.h <<_ACEOF
23580 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23581 _ACEOF
23582
23583
23584 cat >>confdefs.h <<_ACEOF
23585 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23586 _ACEOF
23587
23588 fi
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23590 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23591
23592 if test x"$demangler_in_ld" = xyes; then
23593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23594 $as_echo_n "checking linker --demangle support... " >&6; }
23595 gcc_cv_ld_demangle=no
23596 if test $in_tree_ld = yes; then
23597 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 \
23598 gcc_cv_ld_demangle=yes
23599 fi
23600 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23601 # Check if the GNU linker supports --demangle option
23602 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23603 gcc_cv_ld_demangle=yes
23604 fi
23605 fi
23606 if test x"$gcc_cv_ld_demangle" = xyes; then
23607
23608 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23609
23610 fi
23611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23612 $as_echo "$gcc_cv_ld_demangle" >&6; }
23613 fi
23614
23615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23616 $as_echo_n "checking linker plugin support... " >&6; }
23617 gcc_cv_lto_plugin=0
23618 if test -f liblto_plugin.la; then
23619 save_ld_ver="$ld_ver"
23620 save_ld_vers_major="$ld_vers_major"
23621 save_ld_vers_minor="$ld_vers_minor"
23622 save_ld_is_gold="$ld_is_gold"
23623
23624 ld_is_gold=no
23625
23626 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23627 ld_ver="GNU ld"
23628 # FIXME: ld_is_gold?
23629 ld_vers_major="$gcc_cv_gld_major_version"
23630 ld_vers_minor="$gcc_cv_gld_minor_version"
23631 else
23632 # Determine plugin linker version.
23633 # FIXME: Partial duplicate from above, generalize.
23634 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23635 if echo "$ld_ver" | grep GNU > /dev/null; then
23636 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23637 ld_is_gold=yes
23638 ld_vers=`echo $ld_ver | sed -n \
23639 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23640 else
23641 ld_vers=`echo $ld_ver | sed -n \
23642 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23643 fi
23644 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23645 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23646 fi
23647 fi
23648
23649 # Determine plugin support.
23650 if echo "$ld_ver" | grep GNU > /dev/null; then
23651 # Require GNU ld or gold 2.21+ for plugin support by default.
23652 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23653 gcc_cv_lto_plugin=2
23654 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23655 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23656 gcc_cv_lto_plugin=1
23657 fi
23658 fi
23659
23660 ld_ver="$save_ld_ver"
23661 ld_vers_major="$save_ld_vers_major"
23662 ld_vers_minor="$save_ld_vers_minor"
23663 ld_is_gold="$save_ld_is_gold"
23664 fi
23665
23666 cat >>confdefs.h <<_ACEOF
23667 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23668 _ACEOF
23669
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23671 $as_echo "$gcc_cv_lto_plugin" >&6; }
23672
23673 case "$target" in
23674 # All TARGET_ABI_OSF targets.
23675 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23677 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23678 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23679 $as_echo_n "(cached) " >&6
23680 else
23681 gcc_cv_as_alpha_explicit_relocs=no
23682 if test $in_tree_gas = yes; then
23683 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23684 then gcc_cv_as_alpha_explicit_relocs=yes
23685 fi
23686 elif test x$gcc_cv_as != x; then
23687 $as_echo ' .set nomacro
23688 .text
23689 extbl $3, $2, $3 !lituse_bytoff!1
23690 ldq $2, a($29) !literal!1
23691 ldq $4, b($29) !literal!2
23692 ldq_u $3, 0($2) !lituse_base!1
23693 ldq $27, f($29) !literal!5
23694 jsr $26, ($27), f !lituse_jsr!5
23695 ldah $29, 0($26) !gpdisp!3
23696 lda $0, c($29) !gprel
23697 ldah $1, d($29) !gprelhigh
23698 lda $1, d($1) !gprellow
23699 lda $29, 0($29) !gpdisp!3' > conftest.s
23700 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23702 (eval $ac_try) 2>&5
23703 ac_status=$?
23704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23705 test $ac_status = 0; }; }
23706 then
23707 gcc_cv_as_alpha_explicit_relocs=yes
23708 else
23709 echo "configure: failed program was" >&5
23710 cat conftest.s >&5
23711 fi
23712 rm -f conftest.o conftest.s
23713 fi
23714 fi
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23716 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23717 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23718
23719 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23720
23721 fi
23722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23723 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23724 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23725 $as_echo_n "(cached) " >&6
23726 else
23727 gcc_cv_as_alpha_jsrdirect_relocs=no
23728 if test $in_tree_gas = yes; then
23729 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23730 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23731 fi
23732 elif test x$gcc_cv_as != x; then
23733 $as_echo ' .set nomacro
23734 .text
23735 ldq $27, a($29) !literal!1
23736 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23737 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23739 (eval $ac_try) 2>&5
23740 ac_status=$?
23741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23742 test $ac_status = 0; }; }
23743 then
23744 gcc_cv_as_alpha_jsrdirect_relocs=yes
23745 else
23746 echo "configure: failed program was" >&5
23747 cat conftest.s >&5
23748 fi
23749 rm -f conftest.o conftest.s
23750 fi
23751 fi
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23753 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23754 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23755
23756 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23757
23758 fi
23759 ;;
23760
23761 cris-*-*)
23762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23763 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23764 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23765 $as_echo_n "(cached) " >&6
23766 else
23767 gcc_cv_as_cris_no_mul_bug=no
23768 if test $in_tree_gas = yes; then
23769 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23770 then gcc_cv_as_cris_no_mul_bug=yes
23771 fi
23772 elif test x$gcc_cv_as != x; then
23773 $as_echo '.text' > conftest.s
23774 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23776 (eval $ac_try) 2>&5
23777 ac_status=$?
23778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23779 test $ac_status = 0; }; }
23780 then
23781 gcc_cv_as_cris_no_mul_bug=yes
23782 else
23783 echo "configure: failed program was" >&5
23784 cat conftest.s >&5
23785 fi
23786 rm -f conftest.o conftest.s
23787 fi
23788 fi
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23790 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23791 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23792
23793 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23794
23795 fi
23796 ;;
23797
23798 sparc*-*-*)
23799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23800 $as_echo_n "checking assembler for .register... " >&6; }
23801 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23802 $as_echo_n "(cached) " >&6
23803 else
23804 gcc_cv_as_sparc_register_op=no
23805 if test x$gcc_cv_as != x; then
23806 $as_echo '.register %g2, #scratch' > conftest.s
23807 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23809 (eval $ac_try) 2>&5
23810 ac_status=$?
23811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23812 test $ac_status = 0; }; }
23813 then
23814 gcc_cv_as_sparc_register_op=yes
23815 else
23816 echo "configure: failed program was" >&5
23817 cat conftest.s >&5
23818 fi
23819 rm -f conftest.o conftest.s
23820 fi
23821 fi
23822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23823 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23824 if test $gcc_cv_as_sparc_register_op = yes; then
23825
23826 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23827
23828 fi
23829
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23831 $as_echo_n "checking assembler for -relax option... " >&6; }
23832 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23833 $as_echo_n "(cached) " >&6
23834 else
23835 gcc_cv_as_sparc_relax=no
23836 if test x$gcc_cv_as != x; then
23837 $as_echo '.text' > conftest.s
23838 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23840 (eval $ac_try) 2>&5
23841 ac_status=$?
23842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23843 test $ac_status = 0; }; }
23844 then
23845 gcc_cv_as_sparc_relax=yes
23846 else
23847 echo "configure: failed program was" >&5
23848 cat conftest.s >&5
23849 fi
23850 rm -f conftest.o conftest.s
23851 fi
23852 fi
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23854 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23855 if test $gcc_cv_as_sparc_relax = yes; then
23856
23857 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23858
23859 fi
23860
23861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23862 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23863 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23864 $as_echo_n "(cached) " >&6
23865 else
23866 gcc_cv_as_sparc_gotdata_op=no
23867 if test x$gcc_cv_as != x; then
23868 $as_echo '.text
23869 .align 4
23870 foo:
23871 nop
23872 bar:
23873 sethi %gdop_hix22(foo), %g1
23874 xor %g1, %gdop_lox10(foo), %g1
23875 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23878 (eval $ac_try) 2>&5
23879 ac_status=$?
23880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23881 test $ac_status = 0; }; }
23882 then
23883 if test x$gcc_cv_ld != x \
23884 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23885 if test x$gcc_cv_objdump != x; then
23886 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23887 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23888 gcc_cv_as_sparc_gotdata_op=no
23889 else
23890 gcc_cv_as_sparc_gotdata_op=yes
23891 fi
23892 fi
23893 fi
23894 rm -f conftest
23895 else
23896 echo "configure: failed program was" >&5
23897 cat conftest.s >&5
23898 fi
23899 rm -f conftest.o conftest.s
23900 fi
23901 fi
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23903 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23904 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23905
23906 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23907
23908 fi
23909
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23911 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23912 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23913 $as_echo_n "(cached) " >&6
23914 else
23915 gcc_cv_as_sparc_ua_pcrel=no
23916 if test x$gcc_cv_as != x; then
23917 $as_echo '.text
23918 foo:
23919 nop
23920 .data
23921 .align 4
23922 .byte 0
23923 .uaword %r_disp32(foo)' > conftest.s
23924 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23926 (eval $ac_try) 2>&5
23927 ac_status=$?
23928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23929 test $ac_status = 0; }; }
23930 then
23931 if test x$gcc_cv_ld != x \
23932 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23933 gcc_cv_as_sparc_ua_pcrel=yes
23934 fi
23935 rm -f conftest
23936 else
23937 echo "configure: failed program was" >&5
23938 cat conftest.s >&5
23939 fi
23940 rm -f conftest.o conftest.s
23941 fi
23942 fi
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23944 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23945 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23946
23947 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23948
23949
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23951 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23952 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23953 $as_echo_n "(cached) " >&6
23954 else
23955 gcc_cv_as_sparc_ua_pcrel_hidden=no
23956 if test x$gcc_cv_as != x; then
23957 $as_echo '.data
23958 .align 4
23959 .byte 0x31
23960 .uaword %r_disp32(foo)
23961 .byte 0x32, 0x33, 0x34
23962 .global foo
23963 .hidden foo
23964 foo:
23965 .skip 4' > conftest.s
23966 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23968 (eval $ac_try) 2>&5
23969 ac_status=$?
23970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23971 test $ac_status = 0; }; }
23972 then
23973 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23974 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23975 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23976 | grep ' 31000000 07323334' > /dev/null 2>&1; then
23977 if $gcc_cv_objdump -R conftest 2> /dev/null \
23978 | grep 'DISP32' > /dev/null 2>&1; then
23979 :
23980 else
23981 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23982 fi
23983 fi
23984 rm -f conftest
23985 else
23986 echo "configure: failed program was" >&5
23987 cat conftest.s >&5
23988 fi
23989 rm -f conftest.o conftest.s
23990 fi
23991 fi
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23993 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23994 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23995
23996 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23997
23998 fi
23999
24000 fi # unaligned pcrel relocs
24001
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24003 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24004 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24005 $as_echo_n "(cached) " >&6
24006 else
24007 gcc_cv_as_sparc_offsetable_lo10=no
24008 if test x$gcc_cv_as != x; then
24009 $as_echo '.text
24010 or %g1, %lo(ab) + 12, %g1
24011 or %g1, %lo(ab + 12), %g1' > conftest.s
24012 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24014 (eval $ac_try) 2>&5
24015 ac_status=$?
24016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24017 test $ac_status = 0; }; }
24018 then
24019 if test x$gcc_cv_objdump != x \
24020 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24021 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24022 gcc_cv_as_sparc_offsetable_lo10=yes
24023 fi
24024 else
24025 echo "configure: failed program was" >&5
24026 cat conftest.s >&5
24027 fi
24028 rm -f conftest.o conftest.s
24029 fi
24030 fi
24031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24032 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24033 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24034
24035 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24036
24037 fi
24038 ;;
24039
24040 i[34567]86-*-* | x86_64-*-*)
24041 case $target_os in
24042 cygwin*)
24043 # Full C++ conformance when using a shared libstdc++-v3 requires some
24044 # support from the Cygwin DLL, which in more recent versions exports
24045 # wrappers to aid in interposing and redirecting operators new, delete,
24046 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24047 # are configuring for a version of Cygwin that exports the wrappers.
24048 if test x$host = x$target; then
24049 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24050 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24051 gcc_ac_cygwin_dll_wrappers=yes
24052 else
24053 gcc_ac_cygwin_dll_wrappers=no
24054 fi
24055
24056 else
24057 # Can't check presence of libc functions during cross-compile, so
24058 # we just have to assume we're building for an up-to-date target.
24059 gcc_ac_cygwin_dll_wrappers=yes
24060 fi
24061
24062 cat >>confdefs.h <<_ACEOF
24063 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24064 _ACEOF
24065
24066 esac
24067 case $target_os in
24068 cygwin* | pe | mingw32*)
24069 # Recent binutils allows the three-operand form of ".comm" on PE. This
24070 # definition is used unconditionally to initialise the default state of
24071 # the target option variable that governs usage of the feature.
24072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24073 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24074 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24075 $as_echo_n "(cached) " >&6
24076 else
24077 gcc_cv_as_comm_has_align=no
24078 if test $in_tree_gas = yes; then
24079 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24080 then gcc_cv_as_comm_has_align=yes
24081 fi
24082 elif test x$gcc_cv_as != x; then
24083 $as_echo '.comm foo,1,32' > conftest.s
24084 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24086 (eval $ac_try) 2>&5
24087 ac_status=$?
24088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24089 test $ac_status = 0; }; }
24090 then
24091 gcc_cv_as_comm_has_align=yes
24092 else
24093 echo "configure: failed program was" >&5
24094 cat conftest.s >&5
24095 fi
24096 rm -f conftest.o conftest.s
24097 fi
24098 fi
24099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24100 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24101
24102
24103 cat >>confdefs.h <<_ACEOF
24104 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24105 _ACEOF
24106
24107 # Used for DWARF 2 in PE
24108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24109 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24110 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24111 $as_echo_n "(cached) " >&6
24112 else
24113 gcc_cv_as_ix86_pe_secrel32=no
24114 if test $in_tree_gas = yes; then
24115 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24116 then gcc_cv_as_ix86_pe_secrel32=yes
24117 fi
24118 elif test x$gcc_cv_as != x; then
24119 $as_echo '.text
24120 foo: nop
24121 .data
24122 .secrel32 foo' > conftest.s
24123 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24125 (eval $ac_try) 2>&5
24126 ac_status=$?
24127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24128 test $ac_status = 0; }; }
24129 then
24130 if test x$gcc_cv_ld != x \
24131 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24132 gcc_cv_as_ix86_pe_secrel32=yes
24133 fi
24134 rm -f conftest
24135 else
24136 echo "configure: failed program was" >&5
24137 cat conftest.s >&5
24138 fi
24139 rm -f conftest.o conftest.s
24140 fi
24141 fi
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24143 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24144 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24145
24146 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24147
24148 fi
24149 # Test if the assembler supports the extended form of the .section
24150 # directive that specifies section alignment. LTO support uses this,
24151 # but normally only after installation, so we warn but don't fail the
24152 # configure if LTO is enabled but the assembler does not support it.
24153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24154 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24155 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24156 $as_echo_n "(cached) " >&6
24157 else
24158 gcc_cv_as_section_has_align=no
24159 if test $in_tree_gas = yes; then
24160 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24161 then gcc_cv_as_section_has_align=yes
24162 fi
24163 elif test x$gcc_cv_as != x; then
24164 $as_echo '.section lto_test,"dr0"' > conftest.s
24165 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24167 (eval $ac_try) 2>&5
24168 ac_status=$?
24169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24170 test $ac_status = 0; }; }
24171 then
24172 gcc_cv_as_section_has_align=yes
24173 else
24174 echo "configure: failed program was" >&5
24175 cat conftest.s >&5
24176 fi
24177 rm -f conftest.o conftest.s
24178 fi
24179 fi
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24181 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24182
24183 if test x$gcc_cv_as_section_has_align != xyes; then
24184 case ",$enable_languages," in
24185 *,lto,*)
24186 { $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
24187 $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;}
24188 ;;
24189 esac
24190 fi
24191 ;;
24192 esac
24193
24194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24195 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24196 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24197 $as_echo_n "(cached) " >&6
24198 else
24199 gcc_cv_as_ix86_filds=no
24200 if test x$gcc_cv_as != x; then
24201 $as_echo 'filds mem; fists mem' > conftest.s
24202 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24204 (eval $ac_try) 2>&5
24205 ac_status=$?
24206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24207 test $ac_status = 0; }; }
24208 then
24209 gcc_cv_as_ix86_filds=yes
24210 else
24211 echo "configure: failed program was" >&5
24212 cat conftest.s >&5
24213 fi
24214 rm -f conftest.o conftest.s
24215 fi
24216 fi
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24218 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24219 if test $gcc_cv_as_ix86_filds = yes; then
24220
24221 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24222
24223 fi
24224
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24226 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24227 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24228 $as_echo_n "(cached) " >&6
24229 else
24230 gcc_cv_as_ix86_fildq=no
24231 if test x$gcc_cv_as != x; then
24232 $as_echo 'fildq mem; fistpq mem' > conftest.s
24233 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24235 (eval $ac_try) 2>&5
24236 ac_status=$?
24237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24238 test $ac_status = 0; }; }
24239 then
24240 gcc_cv_as_ix86_fildq=yes
24241 else
24242 echo "configure: failed program was" >&5
24243 cat conftest.s >&5
24244 fi
24245 rm -f conftest.o conftest.s
24246 fi
24247 fi
24248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24249 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24250 if test $gcc_cv_as_ix86_fildq = yes; then
24251
24252 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24253
24254 fi
24255
24256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24257 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24258 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24259 $as_echo_n "(cached) " >&6
24260 else
24261 gcc_cv_as_ix86_cmov_sun_syntax=no
24262 if test x$gcc_cv_as != x; then
24263 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24264 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24266 (eval $ac_try) 2>&5
24267 ac_status=$?
24268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24269 test $ac_status = 0; }; }
24270 then
24271 gcc_cv_as_ix86_cmov_sun_syntax=yes
24272 else
24273 echo "configure: failed program was" >&5
24274 cat conftest.s >&5
24275 fi
24276 rm -f conftest.o conftest.s
24277 fi
24278 fi
24279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24280 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24281 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24282
24283 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24284
24285 fi
24286
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24288 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24289 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24290 $as_echo_n "(cached) " >&6
24291 else
24292 gcc_cv_as_ix86_ffreep=no
24293 if test x$gcc_cv_as != x; then
24294 $as_echo 'ffreep %st(1)' > conftest.s
24295 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24297 (eval $ac_try) 2>&5
24298 ac_status=$?
24299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24300 test $ac_status = 0; }; }
24301 then
24302 gcc_cv_as_ix86_ffreep=yes
24303 else
24304 echo "configure: failed program was" >&5
24305 cat conftest.s >&5
24306 fi
24307 rm -f conftest.o conftest.s
24308 fi
24309 fi
24310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24311 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24312 if test $gcc_cv_as_ix86_ffreep = yes; then
24313
24314 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24315
24316 fi
24317
24318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24319 $as_echo_n "checking assembler for .quad directive... " >&6; }
24320 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24321 $as_echo_n "(cached) " >&6
24322 else
24323 gcc_cv_as_ix86_quad=no
24324 if test x$gcc_cv_as != x; then
24325 $as_echo '.quad 0' > conftest.s
24326 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24328 (eval $ac_try) 2>&5
24329 ac_status=$?
24330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24331 test $ac_status = 0; }; }
24332 then
24333 gcc_cv_as_ix86_quad=yes
24334 else
24335 echo "configure: failed program was" >&5
24336 cat conftest.s >&5
24337 fi
24338 rm -f conftest.o conftest.s
24339 fi
24340 fi
24341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24342 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24343 if test $gcc_cv_as_ix86_quad = yes; then
24344
24345 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24346
24347 fi
24348
24349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24350 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24351 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24352 $as_echo_n "(cached) " >&6
24353 else
24354 gcc_cv_as_ix86_sahf=no
24355 if test x$gcc_cv_as != x; then
24356 $as_echo '.code64
24357 sahf' > conftest.s
24358 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24360 (eval $ac_try) 2>&5
24361 ac_status=$?
24362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24363 test $ac_status = 0; }; }
24364 then
24365 gcc_cv_as_ix86_sahf=yes
24366 else
24367 echo "configure: failed program was" >&5
24368 cat conftest.s >&5
24369 fi
24370 rm -f conftest.o conftest.s
24371 fi
24372 fi
24373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24374 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24375 if test $gcc_cv_as_ix86_sahf = yes; then
24376
24377 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24378
24379 fi
24380
24381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24382 $as_echo_n "checking assembler for swap suffix... " >&6; }
24383 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24384 $as_echo_n "(cached) " >&6
24385 else
24386 gcc_cv_as_ix86_swap=no
24387 if test x$gcc_cv_as != x; then
24388 $as_echo 'movl.s %esp, %ebp' > conftest.s
24389 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24391 (eval $ac_try) 2>&5
24392 ac_status=$?
24393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24394 test $ac_status = 0; }; }
24395 then
24396 gcc_cv_as_ix86_swap=yes
24397 else
24398 echo "configure: failed program was" >&5
24399 cat conftest.s >&5
24400 fi
24401 rm -f conftest.o conftest.s
24402 fi
24403 fi
24404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24405 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24406 if test $gcc_cv_as_ix86_swap = yes; then
24407
24408 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24409
24410 fi
24411
24412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24413 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24414 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24415 $as_echo_n "(cached) " >&6
24416 else
24417 gcc_cv_as_ix86_diff_sect_delta=no
24418 if test x$gcc_cv_as != x; then
24419 $as_echo '.section .rodata
24420 .L1:
24421 .long .L2-.L1
24422 .long .L3-.L1
24423 .text
24424 .L3: nop
24425 .L2: nop' > conftest.s
24426 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24428 (eval $ac_try) 2>&5
24429 ac_status=$?
24430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24431 test $ac_status = 0; }; }
24432 then
24433 gcc_cv_as_ix86_diff_sect_delta=yes
24434 else
24435 echo "configure: failed program was" >&5
24436 cat conftest.s >&5
24437 fi
24438 rm -f conftest.o conftest.s
24439 fi
24440 fi
24441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24442 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24443 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24444
24445 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24446
24447 fi
24448
24449 # These two are used unconditionally by i386.[ch]; it is to be defined
24450 # to 1 if the feature is present, 0 otherwise.
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24452 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24453 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24454 $as_echo_n "(cached) " >&6
24455 else
24456 gcc_cv_as_ix86_gotoff_in_data=no
24457 if test $in_tree_gas = yes; then
24458 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24459 then gcc_cv_as_ix86_gotoff_in_data=yes
24460 fi
24461 elif test x$gcc_cv_as != x; then
24462 $as_echo ' .text
24463 .L0:
24464 nop
24465 .data
24466 .long .L0@GOTOFF' > conftest.s
24467 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24469 (eval $ac_try) 2>&5
24470 ac_status=$?
24471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24472 test $ac_status = 0; }; }
24473 then
24474 gcc_cv_as_ix86_gotoff_in_data=yes
24475 else
24476 echo "configure: failed program was" >&5
24477 cat conftest.s >&5
24478 fi
24479 rm -f conftest.o conftest.s
24480 fi
24481 fi
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24483 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24484
24485
24486 cat >>confdefs.h <<_ACEOF
24487 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24488 _ACEOF
24489
24490
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24492 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24493 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24494 $as_echo_n "(cached) " >&6
24495 else
24496 gcc_cv_as_ix86_rep_lock_prefix=no
24497 if test x$gcc_cv_as != x; then
24498 $as_echo 'rep movsl
24499 lock addl %edi, (%eax,%esi)
24500 lock orl $0, (%esp)' > conftest.s
24501 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24503 (eval $ac_try) 2>&5
24504 ac_status=$?
24505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24506 test $ac_status = 0; }; }
24507 then
24508 gcc_cv_as_ix86_rep_lock_prefix=yes
24509 else
24510 echo "configure: failed program was" >&5
24511 cat conftest.s >&5
24512 fi
24513 rm -f conftest.o conftest.s
24514 fi
24515 fi
24516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24517 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24518 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24519
24520 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24521
24522 fi
24523
24524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24525 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24526 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24527 $as_echo_n "(cached) " >&6
24528 else
24529 gcc_cv_as_ix86_tlsgdplt=no
24530 if test x$gcc_cv_as != x; then
24531 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24532 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24534 (eval $ac_try) 2>&5
24535 ac_status=$?
24536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24537 test $ac_status = 0; }; }
24538 then
24539 gcc_cv_as_ix86_tlsgdplt=yes
24540 else
24541 echo "configure: failed program was" >&5
24542 cat conftest.s >&5
24543 fi
24544 rm -f conftest.o conftest.s
24545 fi
24546 fi
24547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24548 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24549 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24550
24551 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24552
24553 fi
24554
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24556 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24557 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24558 $as_echo_n "(cached) " >&6
24559 else
24560 gcc_cv_as_ix86_tlsldmplt=no
24561 if test x$gcc_cv_as != x; then
24562 $as_echo 'call tls_ld@tlsldmplt' > conftest.s
24563 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24565 (eval $ac_try) 2>&5
24566 ac_status=$?
24567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24568 test $ac_status = 0; }; }
24569 then
24570 gcc_cv_as_ix86_tlsldmplt=yes
24571 else
24572 echo "configure: failed program was" >&5
24573 cat conftest.s >&5
24574 fi
24575 rm -f conftest.o conftest.s
24576 fi
24577 fi
24578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24579 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24580 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24581
24582 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24583
24584 fi
24585
24586 ;;
24587
24588 ia64*-*-*)
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24590 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24591 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24592 $as_echo_n "(cached) " >&6
24593 else
24594 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24595 if test $in_tree_gas = yes; then
24596 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24597 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24598 fi
24599 elif test x$gcc_cv_as != x; then
24600 $as_echo ' .text
24601 addl r15 = @ltoffx(x#), gp
24602 ;;
24603 ld8.mov r16 = [r15], x#' > conftest.s
24604 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24606 (eval $ac_try) 2>&5
24607 ac_status=$?
24608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24609 test $ac_status = 0; }; }
24610 then
24611 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24612 else
24613 echo "configure: failed program was" >&5
24614 cat conftest.s >&5
24615 fi
24616 rm -f conftest.o conftest.s
24617 fi
24618 fi
24619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24620 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24621 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24622
24623 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24624
24625 fi
24626
24627 ;;
24628
24629 powerpc*-*-*)
24630 case $target in
24631 *-*-aix*) conftest_s=' .machine "pwr5"
24632 .csect .text[PR]
24633 mfcr 3,128';;
24634 *-*-darwin*)
24635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24636 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24637 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24638 $as_echo_n "(cached) " >&6
24639 else
24640 gcc_cv_as_machine_directive=no
24641 if test x$gcc_cv_as != x; then
24642 $as_echo ' .machine ppc7400' > conftest.s
24643 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24645 (eval $ac_try) 2>&5
24646 ac_status=$?
24647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24648 test $ac_status = 0; }; }
24649 then
24650 gcc_cv_as_machine_directive=yes
24651 else
24652 echo "configure: failed program was" >&5
24653 cat conftest.s >&5
24654 fi
24655 rm -f conftest.o conftest.s
24656 fi
24657 fi
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24659 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24660
24661 if test x$gcc_cv_as_machine_directive != xyes; then
24662 echo "*** This target requires an assembler supporting \".machine\"" >&2
24663 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24664 test x$build = x$target && exit 1
24665 fi
24666 conftest_s=' .text
24667 mfcr r3,128';;
24668 *) conftest_s=' .machine power4
24669 .text
24670 mfcr 3,128';;
24671 esac
24672
24673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24674 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24675 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24676 $as_echo_n "(cached) " >&6
24677 else
24678 gcc_cv_as_powerpc_mfcrf=no
24679 if test $in_tree_gas = yes; then
24680 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24681 then gcc_cv_as_powerpc_mfcrf=yes
24682 fi
24683 elif test x$gcc_cv_as != x; then
24684 $as_echo "$conftest_s" > conftest.s
24685 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24687 (eval $ac_try) 2>&5
24688 ac_status=$?
24689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24690 test $ac_status = 0; }; }
24691 then
24692 gcc_cv_as_powerpc_mfcrf=yes
24693 else
24694 echo "configure: failed program was" >&5
24695 cat conftest.s >&5
24696 fi
24697 rm -f conftest.o conftest.s
24698 fi
24699 fi
24700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24701 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24702 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24703
24704 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24705
24706 fi
24707
24708 case $target in
24709 *-*-aix*) conftest_s=' .machine "pwr5"
24710 .csect .text[PR]
24711 popcntb 3,3';;
24712 *) conftest_s=' .machine power5
24713 .text
24714 popcntb 3,3';;
24715 esac
24716
24717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24718 $as_echo_n "checking assembler for popcntb support... " >&6; }
24719 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24720 $as_echo_n "(cached) " >&6
24721 else
24722 gcc_cv_as_powerpc_popcntb=no
24723 if test $in_tree_gas = yes; then
24724 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24725 then gcc_cv_as_powerpc_popcntb=yes
24726 fi
24727 elif test x$gcc_cv_as != x; then
24728 $as_echo "$conftest_s" > conftest.s
24729 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24731 (eval $ac_try) 2>&5
24732 ac_status=$?
24733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24734 test $ac_status = 0; }; }
24735 then
24736 gcc_cv_as_powerpc_popcntb=yes
24737 else
24738 echo "configure: failed program was" >&5
24739 cat conftest.s >&5
24740 fi
24741 rm -f conftest.o conftest.s
24742 fi
24743 fi
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24745 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24746 if test $gcc_cv_as_powerpc_popcntb = yes; then
24747
24748 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24749
24750 fi
24751
24752 case $target in
24753 *-*-aix*) conftest_s=' .machine "pwr5x"
24754 .csect .text[PR]
24755 frin 1,1';;
24756 *) conftest_s=' .machine power5
24757 .text
24758 frin 1,1';;
24759 esac
24760
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24762 $as_echo_n "checking assembler for fp round support... " >&6; }
24763 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24764 $as_echo_n "(cached) " >&6
24765 else
24766 gcc_cv_as_powerpc_fprnd=no
24767 if test $in_tree_gas = yes; then
24768 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24769 then gcc_cv_as_powerpc_fprnd=yes
24770 fi
24771 elif test x$gcc_cv_as != x; then
24772 $as_echo "$conftest_s" > conftest.s
24773 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24775 (eval $ac_try) 2>&5
24776 ac_status=$?
24777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24778 test $ac_status = 0; }; }
24779 then
24780 gcc_cv_as_powerpc_fprnd=yes
24781 else
24782 echo "configure: failed program was" >&5
24783 cat conftest.s >&5
24784 fi
24785 rm -f conftest.o conftest.s
24786 fi
24787 fi
24788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24789 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24790 if test $gcc_cv_as_powerpc_fprnd = yes; then
24791
24792 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24793
24794 fi
24795
24796 case $target in
24797 *-*-aix*) conftest_s=' .machine "pwr6"
24798 .csect .text[PR]
24799 mffgpr 1,3';;
24800 *) conftest_s=' .machine power6
24801 .text
24802 mffgpr 1,3';;
24803 esac
24804
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24806 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24807 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24808 $as_echo_n "(cached) " >&6
24809 else
24810 gcc_cv_as_powerpc_mfpgpr=no
24811 if test $in_tree_gas = yes; then
24812 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24813 then gcc_cv_as_powerpc_mfpgpr=yes
24814 fi
24815 elif test x$gcc_cv_as != x; then
24816 $as_echo "$conftest_s" > conftest.s
24817 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24818 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24819 (eval $ac_try) 2>&5
24820 ac_status=$?
24821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24822 test $ac_status = 0; }; }
24823 then
24824 gcc_cv_as_powerpc_mfpgpr=yes
24825 else
24826 echo "configure: failed program was" >&5
24827 cat conftest.s >&5
24828 fi
24829 rm -f conftest.o conftest.s
24830 fi
24831 fi
24832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24833 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24834 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24835
24836 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24837
24838 fi
24839
24840 case $target in
24841 *-*-aix*) conftest_s=' .csect .text[PR]
24842 LCF..0:
24843 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24844 *-*-darwin*)
24845 conftest_s=' .text
24846 LCF0:
24847 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24848 *) conftest_s=' .text
24849 .LCF0:
24850 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24851 esac
24852
24853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24854 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24855 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24856 $as_echo_n "(cached) " >&6
24857 else
24858 gcc_cv_as_powerpc_rel16=no
24859 if test $in_tree_gas = yes; then
24860 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24861 then gcc_cv_as_powerpc_rel16=yes
24862 fi
24863 elif test x$gcc_cv_as != x; then
24864 $as_echo "$conftest_s" > conftest.s
24865 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24867 (eval $ac_try) 2>&5
24868 ac_status=$?
24869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24870 test $ac_status = 0; }; }
24871 then
24872 gcc_cv_as_powerpc_rel16=yes
24873 else
24874 echo "configure: failed program was" >&5
24875 cat conftest.s >&5
24876 fi
24877 rm -f conftest.o conftest.s
24878 fi
24879 fi
24880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24881 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24882 if test $gcc_cv_as_powerpc_rel16 = yes; then
24883
24884 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24885
24886 fi
24887
24888 case $target in
24889 *-*-aix*) conftest_s=' .machine "pwr6"
24890 .csect .text[PR]
24891 cmpb 3,4,5';;
24892 *) conftest_s=' .machine power6
24893 .text
24894 cmpb 3,4,5';;
24895 esac
24896
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24898 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24899 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24900 $as_echo_n "(cached) " >&6
24901 else
24902 gcc_cv_as_powerpc_cmpb=no
24903 if test $in_tree_gas = yes; then
24904 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24905 then gcc_cv_as_powerpc_cmpb=yes
24906 fi
24907 elif test x$gcc_cv_as != x; then
24908 $as_echo "$conftest_s" > conftest.s
24909 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24911 (eval $ac_try) 2>&5
24912 ac_status=$?
24913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24914 test $ac_status = 0; }; }
24915 then
24916 gcc_cv_as_powerpc_cmpb=yes
24917 else
24918 echo "configure: failed program was" >&5
24919 cat conftest.s >&5
24920 fi
24921 rm -f conftest.o conftest.s
24922 fi
24923 fi
24924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24925 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24926 if test $gcc_cv_as_powerpc_cmpb = yes; then
24927
24928 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24929
24930 fi
24931
24932 case $target in
24933 *-*-aix*) conftest_s=' .machine "pwr6"
24934 .csect .text[PR]
24935 dadd 1,2,3';;
24936 *) conftest_s=' .machine power6
24937 .text
24938 dadd 1,2,3';;
24939 esac
24940
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24942 $as_echo_n "checking assembler for decimal float support... " >&6; }
24943 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24944 $as_echo_n "(cached) " >&6
24945 else
24946 gcc_cv_as_powerpc_dfp=no
24947 if test $in_tree_gas = yes; then
24948 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24949 then gcc_cv_as_powerpc_dfp=yes
24950 fi
24951 elif test x$gcc_cv_as != x; then
24952 $as_echo "$conftest_s" > conftest.s
24953 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24955 (eval $ac_try) 2>&5
24956 ac_status=$?
24957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24958 test $ac_status = 0; }; }
24959 then
24960 gcc_cv_as_powerpc_dfp=yes
24961 else
24962 echo "configure: failed program was" >&5
24963 cat conftest.s >&5
24964 fi
24965 rm -f conftest.o conftest.s
24966 fi
24967 fi
24968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24969 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24970 if test $gcc_cv_as_powerpc_dfp = yes; then
24971
24972 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24973
24974 fi
24975
24976 case $target in
24977 *-*-aix*) conftest_s=' .machine "pwr7"
24978 .csect .text[PR]
24979 lxvd2x 1,2,3';;
24980 *) conftest_s=' .machine power7
24981 .text
24982 lxvd2x 1,2,3';;
24983 esac
24984
24985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24986 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24987 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24988 $as_echo_n "(cached) " >&6
24989 else
24990 gcc_cv_as_powerpc_vsx=no
24991 if test $in_tree_gas = yes; then
24992 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24993 then gcc_cv_as_powerpc_vsx=yes
24994 fi
24995 elif test x$gcc_cv_as != x; then
24996 $as_echo "$conftest_s" > conftest.s
24997 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24999 (eval $ac_try) 2>&5
25000 ac_status=$?
25001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25002 test $ac_status = 0; }; }
25003 then
25004 gcc_cv_as_powerpc_vsx=yes
25005 else
25006 echo "configure: failed program was" >&5
25007 cat conftest.s >&5
25008 fi
25009 rm -f conftest.o conftest.s
25010 fi
25011 fi
25012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25013 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25014 if test $gcc_cv_as_powerpc_vsx = yes; then
25015
25016 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25017
25018 fi
25019
25020 case $target in
25021 *-*-aix*) conftest_s=' .machine "pwr7"
25022 .csect .text[PR]
25023 popcntd 3,3';;
25024 *) conftest_s=' .machine power7
25025 .text
25026 popcntd 3,3';;
25027 esac
25028
25029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25030 $as_echo_n "checking assembler for popcntd support... " >&6; }
25031 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25032 $as_echo_n "(cached) " >&6
25033 else
25034 gcc_cv_as_powerpc_popcntd=no
25035 if test $in_tree_gas = yes; then
25036 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25037 then gcc_cv_as_powerpc_popcntd=yes
25038 fi
25039 elif test x$gcc_cv_as != x; then
25040 $as_echo "$conftest_s" > conftest.s
25041 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25043 (eval $ac_try) 2>&5
25044 ac_status=$?
25045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25046 test $ac_status = 0; }; }
25047 then
25048 gcc_cv_as_powerpc_popcntd=yes
25049 else
25050 echo "configure: failed program was" >&5
25051 cat conftest.s >&5
25052 fi
25053 rm -f conftest.o conftest.s
25054 fi
25055 fi
25056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25057 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25058 if test $gcc_cv_as_powerpc_popcntd = yes; then
25059
25060 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25061
25062 fi
25063
25064 case $target in
25065 *-*-aix*) conftest_s=' .csect .text[PR]
25066 lwsync';;
25067 *) conftest_s=' .text
25068 lwsync';;
25069 esac
25070
25071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25072 $as_echo_n "checking assembler for lwsync support... " >&6; }
25073 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25074 $as_echo_n "(cached) " >&6
25075 else
25076 gcc_cv_as_powerpc_lwsync=no
25077 if test $in_tree_gas = yes; then
25078 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25079 then gcc_cv_as_powerpc_lwsync=yes
25080 fi
25081 elif test x$gcc_cv_as != x; then
25082 $as_echo "$conftest_s" > conftest.s
25083 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25085 (eval $ac_try) 2>&5
25086 ac_status=$?
25087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25088 test $ac_status = 0; }; }
25089 then
25090 gcc_cv_as_powerpc_lwsync=yes
25091 else
25092 echo "configure: failed program was" >&5
25093 cat conftest.s >&5
25094 fi
25095 rm -f conftest.o conftest.s
25096 fi
25097 fi
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25099 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25100 if test $gcc_cv_as_powerpc_lwsync = yes; then
25101
25102 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25103
25104 fi
25105
25106 case $target in
25107 *-*-aix*) conftest_s=' .machine "476"
25108 .csect .text[PR]
25109 dci 0';;
25110 *) conftest_s=' .machine "476"
25111 .text
25112 dci 0';;
25113 esac
25114
25115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25116 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25117 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25118 $as_echo_n "(cached) " >&6
25119 else
25120 gcc_cv_as_powerpc_dci=no
25121 if test $in_tree_gas = yes; then
25122 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25123 then gcc_cv_as_powerpc_dci=yes
25124 fi
25125 elif test x$gcc_cv_as != x; then
25126 $as_echo "$conftest_s" > conftest.s
25127 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25129 (eval $ac_try) 2>&5
25130 ac_status=$?
25131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25132 test $ac_status = 0; }; }
25133 then
25134 gcc_cv_as_powerpc_dci=yes
25135 else
25136 echo "configure: failed program was" >&5
25137 cat conftest.s >&5
25138 fi
25139 rm -f conftest.o conftest.s
25140 fi
25141 fi
25142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25143 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25144 if test $gcc_cv_as_powerpc_dci = yes; then
25145
25146 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25147
25148 fi
25149
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25151 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25152 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25153 $as_echo_n "(cached) " >&6
25154 else
25155 gcc_cv_as_powerpc_gnu_attribute=no
25156 if test $in_tree_gas = yes; then
25157 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25158 then gcc_cv_as_powerpc_gnu_attribute=yes
25159 fi
25160 elif test x$gcc_cv_as != x; then
25161 $as_echo '.gnu_attribute 4,1' > conftest.s
25162 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25164 (eval $ac_try) 2>&5
25165 ac_status=$?
25166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25167 test $ac_status = 0; }; }
25168 then
25169 gcc_cv_as_powerpc_gnu_attribute=yes
25170 else
25171 echo "configure: failed program was" >&5
25172 cat conftest.s >&5
25173 fi
25174 rm -f conftest.o conftest.s
25175 fi
25176 fi
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25178 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25179 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25180
25181 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25182
25183 fi
25184
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25186 $as_echo_n "checking assembler for tls marker support... " >&6; }
25187 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25188 $as_echo_n "(cached) " >&6
25189 else
25190 gcc_cv_as_powerpc_tls_markers=no
25191 if test $in_tree_gas = yes; then
25192 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25193 then gcc_cv_as_powerpc_tls_markers=yes
25194 fi
25195 elif test x$gcc_cv_as != x; then
25196 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25197 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25199 (eval $ac_try) 2>&5
25200 ac_status=$?
25201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25202 test $ac_status = 0; }; }
25203 then
25204 gcc_cv_as_powerpc_tls_markers=yes
25205 else
25206 echo "configure: failed program was" >&5
25207 cat conftest.s >&5
25208 fi
25209 rm -f conftest.o conftest.s
25210 fi
25211 fi
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25213 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25214 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25215
25216 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25217
25218 fi
25219
25220 case $target in
25221 *-*-aix*)
25222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25223 $as_echo_n "checking assembler for .ref support... " >&6; }
25224 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25225 $as_echo_n "(cached) " >&6
25226 else
25227 gcc_cv_as_aix_ref=no
25228 if test $in_tree_gas = yes; then
25229 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25230 then :
25231 fi
25232 elif test x$gcc_cv_as != x; then
25233 $as_echo ' .csect stuff[rw]
25234 stuff:
25235 .long 1
25236 .extern sym
25237 .ref sym
25238 ' > conftest.s
25239 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25241 (eval $ac_try) 2>&5
25242 ac_status=$?
25243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25244 test $ac_status = 0; }; }
25245 then
25246 gcc_cv_as_aix_ref=yes
25247 else
25248 echo "configure: failed program was" >&5
25249 cat conftest.s >&5
25250 fi
25251 rm -f conftest.o conftest.s
25252 fi
25253 fi
25254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25255 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25256 if test $gcc_cv_as_aix_ref = yes; then
25257
25258 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25259
25260 fi
25261 ;;
25262 esac
25263 ;;
25264
25265 mips*-*-*)
25266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25267 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25268 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25269 $as_echo_n "(cached) " >&6
25270 else
25271 gcc_cv_as_mips_explicit_relocs=no
25272 if test $in_tree_gas = yes; then
25273 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25274 then gcc_cv_as_mips_explicit_relocs=yes
25275 fi
25276 elif test x$gcc_cv_as != x; then
25277 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25278 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25280 (eval $ac_try) 2>&5
25281 ac_status=$?
25282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25283 test $ac_status = 0; }; }
25284 then
25285 gcc_cv_as_mips_explicit_relocs=yes
25286 else
25287 echo "configure: failed program was" >&5
25288 cat conftest.s >&5
25289 fi
25290 rm -f conftest.o conftest.s
25291 fi
25292 fi
25293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25294 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25295 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25296 if test x$target_cpu_default = x
25297 then target_cpu_default=MASK_EXPLICIT_RELOCS
25298 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25299 fi
25300 fi
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25302 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25303 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25304 $as_echo_n "(cached) " >&6
25305 else
25306 gcc_cv_as_mips_no_shared=no
25307 if test $in_tree_gas = yes; then
25308 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25309 then gcc_cv_as_mips_no_shared=yes
25310 fi
25311 elif test x$gcc_cv_as != x; then
25312 $as_echo 'nop' > conftest.s
25313 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25315 (eval $ac_try) 2>&5
25316 ac_status=$?
25317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25318 test $ac_status = 0; }; }
25319 then
25320 gcc_cv_as_mips_no_shared=yes
25321 else
25322 echo "configure: failed program was" >&5
25323 cat conftest.s >&5
25324 fi
25325 rm -f conftest.o conftest.s
25326 fi
25327 fi
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25329 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25330 if test $gcc_cv_as_mips_no_shared = yes; then
25331
25332 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25333
25334 fi
25335
25336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25337 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25338 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25339 $as_echo_n "(cached) " >&6
25340 else
25341 gcc_cv_as_mips_gnu_attribute=no
25342 if test $in_tree_gas = yes; then
25343 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25344 then gcc_cv_as_mips_gnu_attribute=yes
25345 fi
25346 elif test x$gcc_cv_as != x; then
25347 $as_echo '.gnu_attribute 4,1' > conftest.s
25348 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25350 (eval $ac_try) 2>&5
25351 ac_status=$?
25352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25353 test $ac_status = 0; }; }
25354 then
25355 gcc_cv_as_mips_gnu_attribute=yes
25356 else
25357 echo "configure: failed program was" >&5
25358 cat conftest.s >&5
25359 fi
25360 rm -f conftest.o conftest.s
25361 fi
25362 fi
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25364 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25365 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25366
25367 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25368
25369 fi
25370
25371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25372 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25373 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25374 $as_echo_n "(cached) " >&6
25375 else
25376 gcc_cv_as_mips_dtprelword=no
25377 if test $in_tree_gas = yes; then
25378 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25379 then gcc_cv_as_mips_dtprelword=yes
25380 fi
25381 elif test x$gcc_cv_as != x; then
25382 $as_echo '.section .tdata,"awT",@progbits
25383 x:
25384 .word 2
25385 .text
25386 .dtprelword x+0x8000' > conftest.s
25387 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25389 (eval $ac_try) 2>&5
25390 ac_status=$?
25391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25392 test $ac_status = 0; }; }
25393 then
25394 gcc_cv_as_mips_dtprelword=yes
25395 else
25396 echo "configure: failed program was" >&5
25397 cat conftest.s >&5
25398 fi
25399 rm -f conftest.o conftest.s
25400 fi
25401 fi
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25403 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25404 if test $gcc_cv_as_mips_dtprelword = yes; then
25405
25406 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25407
25408 fi
25409
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25411 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25412 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25413 $as_echo_n "(cached) " >&6
25414 else
25415 gcc_cv_as_mips_dspr1_mult=no
25416 if test x$gcc_cv_as != x; then
25417 $as_echo ' .set mips32r2
25418 .set nodspr2
25419 .set dsp
25420 madd $ac3,$4,$5
25421 maddu $ac3,$4,$5
25422 msub $ac3,$4,$5
25423 msubu $ac3,$4,$5
25424 mult $ac3,$4,$5
25425 multu $ac3,$4,$5' > conftest.s
25426 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25428 (eval $ac_try) 2>&5
25429 ac_status=$?
25430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25431 test $ac_status = 0; }; }
25432 then
25433 gcc_cv_as_mips_dspr1_mult=yes
25434 else
25435 echo "configure: failed program was" >&5
25436 cat conftest.s >&5
25437 fi
25438 rm -f conftest.o conftest.s
25439 fi
25440 fi
25441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25442 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25443 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25444
25445 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25446
25447 fi
25448
25449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25450 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25451 gcc_cv_as_ld_jalr_reloc=no
25452 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25453 if test $in_tree_ld = yes ; then
25454 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 \
25455 && test $in_tree_ld_is_elf = yes; then
25456 gcc_cv_as_ld_jalr_reloc=yes
25457 fi
25458 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25459 echo ' .ent x' > conftest.s
25460 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25461 echo ' ld $25,%call16(y)($28)' >> conftest.s
25462 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25463 echo '1: jalr $25' >> conftest.s
25464 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25465 echo '1: jalr $25' >> conftest.s
25466 echo ' .end x' >> conftest.s
25467 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25468 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25469 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25470 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25471 gcc_cv_as_ld_jalr_reloc=yes
25472 fi
25473 fi
25474 rm -f conftest.*
25475 fi
25476 fi
25477 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25478 if test x$target_cpu_default = x; then
25479 target_cpu_default=MASK_RELAX_PIC_CALLS
25480 else
25481 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25482 fi
25483 fi
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25485 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25486
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25488 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25489 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25490 $as_echo_n "(cached) " >&6
25491 else
25492 gcc_cv_ld_mips_personality_relaxation=no
25493 if test $in_tree_ld = yes ; then
25494 if test "$gcc_cv_gld_major_version" -eq 2 \
25495 -a "$gcc_cv_gld_minor_version" -ge 21 \
25496 -o "$gcc_cv_gld_major_version" -gt 2; then
25497 gcc_cv_ld_mips_personality_relaxation=yes
25498 fi
25499 elif test x$gcc_cv_as != x \
25500 -a x$gcc_cv_ld != x \
25501 -a x$gcc_cv_readelf != x ; then
25502 cat > conftest.s <<EOF
25503 .cfi_startproc
25504 .cfi_personality 0x80,indirect_ptr
25505 .ent test
25506 test:
25507 nop
25508 .end test
25509 .cfi_endproc
25510
25511 .section .data,"aw",@progbits
25512 indirect_ptr:
25513 .dc.a personality
25514 EOF
25515 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25516 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25517 if $gcc_cv_readelf -d conftest 2>&1 \
25518 | grep TEXTREL > /dev/null 2>&1; then
25519 :
25520 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25521 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25522 :
25523 else
25524 gcc_cv_ld_mips_personality_relaxation=yes
25525 fi
25526 fi
25527 fi
25528 rm -f conftest.s conftest.o conftest
25529 fi
25530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25531 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25532 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25533
25534 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25535
25536 fi
25537 ;;
25538 esac
25539
25540 # Mips and HP-UX need the GNU assembler.
25541 # Linux on IA64 might be able to use the Intel assembler.
25542
25543 case "$target" in
25544 mips*-*-* | *-*-hpux* )
25545 if test x$gas_flag = xyes \
25546 || test x"$host" != x"$build" \
25547 || test ! -x "$gcc_cv_as" \
25548 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25549 :
25550 else
25551 echo "*** This configuration requires the GNU assembler" >&2
25552 exit 1
25553 fi
25554 ;;
25555 esac
25556
25557 # ??? Not all targets support dwarf2 debug_line, even within a version
25558 # of gas. Moreover, we need to emit a valid instruction to trigger any
25559 # info to the output file. So, as supported targets are added to gas 2.11,
25560 # add some instruction here to (also) show we expect this might work.
25561 # ??? Once 2.11 is released, probably need to add first known working
25562 # version to the per-target configury.
25563 case "$cpu_type" in
25564 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25565 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25566 insn="nop"
25567 ;;
25568 ia64 | s390)
25569 insn="nop 0"
25570 ;;
25571 mmix)
25572 insn="swym 0"
25573 ;;
25574 esac
25575 if test x"$insn" != x; then
25576 conftest_s="\
25577 .file 1 \"conftest.s\"
25578 .loc 1 3 0
25579 $insn"
25580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25581 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25582 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25583 $as_echo_n "(cached) " >&6
25584 else
25585 gcc_cv_as_dwarf2_debug_line=no
25586 if test $in_tree_gas = yes; then
25587 if test $in_tree_gas_is_elf = yes \
25588 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25589 then gcc_cv_as_dwarf2_debug_line=yes
25590 fi
25591 elif test x$gcc_cv_as != x; then
25592 $as_echo "$conftest_s" > conftest.s
25593 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25595 (eval $ac_try) 2>&5
25596 ac_status=$?
25597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25598 test $ac_status = 0; }; }
25599 then
25600 if test x$gcc_cv_objdump != x \
25601 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25602 | grep debug_line > /dev/null 2>&1; then
25603 gcc_cv_as_dwarf2_debug_line=yes
25604 fi
25605 else
25606 echo "configure: failed program was" >&5
25607 cat conftest.s >&5
25608 fi
25609 rm -f conftest.o conftest.s
25610 fi
25611 fi
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25613 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25614
25615
25616 # The .debug_line file table must be in the exact order that
25617 # we specified the files, since these indices are also used
25618 # by DW_AT_decl_file. Approximate this test by testing if
25619 # the assembler bitches if the same index is assigned twice.
25620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25621 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25622 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25623 $as_echo_n "(cached) " >&6
25624 else
25625 gcc_cv_as_dwarf2_file_buggy=no
25626 if test x$gcc_cv_as != x; then
25627 $as_echo ' .file 1 "foo.s"
25628 .file 1 "bar.s"' > conftest.s
25629 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25631 (eval $ac_try) 2>&5
25632 ac_status=$?
25633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25634 test $ac_status = 0; }; }
25635 then
25636 gcc_cv_as_dwarf2_file_buggy=yes
25637 else
25638 echo "configure: failed program was" >&5
25639 cat conftest.s >&5
25640 fi
25641 rm -f conftest.o conftest.s
25642 fi
25643 fi
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25645 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25646
25647
25648 if test $gcc_cv_as_dwarf2_debug_line = yes \
25649 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25650
25651 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25652
25653 fi
25654
25655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25656 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25657 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25658 $as_echo_n "(cached) " >&6
25659 else
25660 gcc_cv_as_gdwarf2_flag=no
25661 if test $in_tree_gas = yes; then
25662 if test $in_tree_gas_is_elf = yes \
25663 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25664 then gcc_cv_as_gdwarf2_flag=yes
25665 fi
25666 elif test x$gcc_cv_as != x; then
25667 $as_echo "$insn" > conftest.s
25668 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25670 (eval $ac_try) 2>&5
25671 ac_status=$?
25672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25673 test $ac_status = 0; }; }
25674 then
25675 gcc_cv_as_gdwarf2_flag=yes
25676 else
25677 echo "configure: failed program was" >&5
25678 cat conftest.s >&5
25679 fi
25680 rm -f conftest.o conftest.s
25681 fi
25682 fi
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25684 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25685 if test $gcc_cv_as_gdwarf2_flag = yes; then
25686
25687 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25688
25689 fi
25690
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25692 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25693 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25694 $as_echo_n "(cached) " >&6
25695 else
25696 gcc_cv_as_gstabs_flag=no
25697 if test $in_tree_gas = yes; then
25698 if test $in_tree_gas_is_elf = yes \
25699 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25700 then gcc_cv_as_gstabs_flag=yes
25701 fi
25702 elif test x$gcc_cv_as != x; then
25703 $as_echo "$insn" > conftest.s
25704 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25706 (eval $ac_try) 2>&5
25707 ac_status=$?
25708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25709 test $ac_status = 0; }; }
25710 then
25711 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25712 # and warns about it, but still exits successfully. So check for
25713 # this.
25714 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25716 (eval $ac_try) 2>&5
25717 ac_status=$?
25718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25719 test $ac_status = 0; }; }
25720 then :
25721 else gcc_cv_as_gstabs_flag=yes
25722 fi
25723 else
25724 echo "configure: failed program was" >&5
25725 cat conftest.s >&5
25726 fi
25727 rm -f conftest.o conftest.s
25728 fi
25729 fi
25730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25731 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25732 if test $gcc_cv_as_gstabs_flag = yes; then
25733
25734 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25735
25736 fi
25737
25738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25739 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25740 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25741 $as_echo_n "(cached) " >&6
25742 else
25743 gcc_cv_as_debug_prefix_map_flag=no
25744 if test $in_tree_gas = yes; then
25745 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25746 then gcc_cv_as_debug_prefix_map_flag=yes
25747 fi
25748 elif test x$gcc_cv_as != x; then
25749 $as_echo "$insn" > conftest.s
25750 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25752 (eval $ac_try) 2>&5
25753 ac_status=$?
25754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25755 test $ac_status = 0; }; }
25756 then
25757 gcc_cv_as_debug_prefix_map_flag=yes
25758 else
25759 echo "configure: failed program was" >&5
25760 cat conftest.s >&5
25761 fi
25762 rm -f conftest.o conftest.s
25763 fi
25764 fi
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25766 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25767 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25768
25769 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25770
25771 fi
25772 fi
25773
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25775 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25776 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25777 $as_echo_n "(cached) " >&6
25778 else
25779 gcc_cv_as_lcomm_with_alignment=no
25780 if test x$gcc_cv_as != x; then
25781 $as_echo '.lcomm bar,4,16' > conftest.s
25782 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25784 (eval $ac_try) 2>&5
25785 ac_status=$?
25786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25787 test $ac_status = 0; }; }
25788 then
25789 gcc_cv_as_lcomm_with_alignment=yes
25790 else
25791 echo "configure: failed program was" >&5
25792 cat conftest.s >&5
25793 fi
25794 rm -f conftest.o conftest.s
25795 fi
25796 fi
25797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25798 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25799 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25800
25801 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25802
25803 fi
25804
25805 # Check whether --enable-gnu-unique-object was given.
25806 if test "${enable_gnu_unique_object+set}" = set; then :
25807 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25808 yes | no) ;;
25809 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25810 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25811 esac
25812 else
25813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25814 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25815 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25816 $as_echo_n "(cached) " >&6
25817 else
25818 gcc_cv_as_gnu_unique_object=no
25819 if test $in_tree_gas = yes; then
25820 if test $in_tree_gas_is_elf = yes \
25821 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25822 then gcc_cv_as_gnu_unique_object=yes
25823 fi
25824 elif test x$gcc_cv_as != x; then
25825 $as_echo '.type foo, @gnu_unique_object' > conftest.s
25826 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25828 (eval $ac_try) 2>&5
25829 ac_status=$?
25830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25831 test $ac_status = 0; }; }
25832 then
25833 gcc_cv_as_gnu_unique_object=yes
25834 else
25835 echo "configure: failed program was" >&5
25836 cat conftest.s >&5
25837 fi
25838 rm -f conftest.o conftest.s
25839 fi
25840 fi
25841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25842 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25843 if test $gcc_cv_as_gnu_unique_object = yes; then
25844 # Also check for ld.so support, i.e. glibc 2.11 or higher.
25845 if test x$host = x$build -a x$host = x$target &&
25846 ldd --version 2>/dev/null &&
25847 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25848 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
25849 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25850 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
25851 if test "$glibcnum" -ge 2011 ; then
25852 enable_gnu_unique_object=yes
25853 fi
25854 fi
25855 fi
25856 fi
25857
25858 if test x$enable_gnu_unique_object = xyes; then
25859
25860 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25861
25862 fi
25863
25864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25865 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25866 if test "${gcc_cv_as_line_zero+set}" = set; then :
25867 $as_echo_n "(cached) " >&6
25868 else
25869 gcc_cv_as_line_zero=no
25870 if test $in_tree_gas = yes; then
25871 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25872 then gcc_cv_as_line_zero=yes
25873 fi
25874 elif test "x$gcc_cv_as" != x; then
25875 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25876 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25878 (eval $ac_try) 2>&5
25879 ac_status=$?
25880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25881 test $ac_status = 0; }; } &&
25882 test "x`cat conftest.out`" = x
25883 then
25884 gcc_cv_as_line_zero=yes
25885 else
25886 echo "configure: failed program was" >&5
25887 cat conftest.s >&5
25888 echo "configure: error output was" >&5
25889 cat conftest.out >&5
25890 fi
25891 rm -f conftest.o conftest.s conftest.out
25892 fi
25893 fi
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25895 $as_echo "$gcc_cv_as_line_zero" >&6; }
25896 if test "x$gcc_cv_as_line_zero" = xyes; then
25897
25898 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25899
25900 fi
25901
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25903 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25904 gcc_cv_ld_eh_frame_hdr=no
25905 if test $in_tree_ld = yes ; then
25906 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 \
25907 && test $in_tree_ld_is_elf = yes; then
25908 gcc_cv_ld_eh_frame_hdr=yes
25909 fi
25910 elif test x$gcc_cv_ld != x; then
25911 if echo "$ld_ver" | grep GNU > /dev/null; then
25912 # Check if linker supports --eh-frame-hdr option
25913 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
25914 gcc_cv_ld_eh_frame_hdr=yes
25915 fi
25916 else
25917 case "$target" in
25918 *-*-solaris2*)
25919 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
25920 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
25921 gcc_cv_ld_eh_frame_hdr=yes
25922 fi
25923 ;;
25924 esac
25925 fi
25926 fi
25927
25928 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
25929
25930 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25931
25932 fi
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25934 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25935
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25937 $as_echo_n "checking linker position independent executable support... " >&6; }
25938 gcc_cv_ld_pie=no
25939 if test $in_tree_ld = yes ; then
25940 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 \
25941 && test $in_tree_ld_is_elf = yes; then
25942 gcc_cv_ld_pie=yes
25943 fi
25944 elif test x$gcc_cv_ld != x; then
25945 # Check if linker supports -pie option
25946 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
25947 gcc_cv_ld_pie=yes
25948 fi
25949 fi
25950 if test x"$gcc_cv_ld_pie" = xyes; then
25951
25952 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25953
25954 fi
25955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25956 $as_echo "$gcc_cv_ld_pie" >&6; }
25957
25958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25959 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25960 gcc_cv_ld_eh_gc_sections=no
25961 if test $in_tree_ld = yes ; then
25962 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 \
25963 && test $in_tree_ld_is_elf = yes; then
25964 gcc_cv_ld_eh_gc_sections=yes
25965 fi
25966 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
25967 cat > conftest.s <<EOF
25968 .section .text
25969 .globl _start
25970 .type _start, @function
25971 _start:
25972 .long foo
25973 .size _start, .-_start
25974 .section .text.foo,"ax",@progbits
25975 .type foo, @function
25976 foo:
25977 .long 0
25978 .size foo, .-foo
25979 .section .gcc_except_table.foo,"a",@progbits
25980 .L0:
25981 .long 0
25982 .section .eh_frame,"a",@progbits
25983 .long .L0
25984 EOF
25985 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25986 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25987 | grep "gc-sections option ignored" > /dev/null; then
25988 gcc_cv_ld_eh_gc_sections=no
25989 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25990 | grep gcc_except_table > /dev/null; then
25991 gcc_cv_ld_eh_gc_sections=yes
25992 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25993 if test x$gcc_cv_as_comdat_group != xyes; then
25994 gcc_cv_ld_eh_gc_sections=no
25995 cat > conftest.s <<EOF
25996 .section .text
25997 .globl _start
25998 .type _start, @function
25999 _start:
26000 .long foo
26001 .size _start, .-_start
26002 .section .gnu.linkonce.t.foo,"ax",@progbits
26003 .type foo, @function
26004 foo:
26005 .long 0
26006 .size foo, .-foo
26007 .section .gcc_except_table.foo,"a",@progbits
26008 .L0:
26009 .long 0
26010 .section .eh_frame,"a",@progbits
26011 .long .L0
26012 EOF
26013 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26014 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26015 | grep "gc-sections option ignored" > /dev/null; then
26016 gcc_cv_ld_eh_gc_sections=no
26017 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26018 | grep gcc_except_table > /dev/null; then
26019 gcc_cv_ld_eh_gc_sections=yes
26020 fi
26021 fi
26022 fi
26023 fi
26024 fi
26025 rm -f conftest.s conftest.o conftest
26026 fi
26027 case "$target" in
26028 hppa*-*-linux*)
26029 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26030 gcc_cv_ld_eh_gc_sections=no
26031 ;;
26032 esac
26033 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26034
26035 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26036
26037 fi
26038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26039 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26040
26041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26042 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26043 gcc_cv_ld_eh_gc_sections_bug=no
26044 if test $in_tree_ld = yes ; then
26045 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 \
26046 && test $in_tree_ld_is_elf = yes; then
26047 gcc_cv_ld_eh_gc_sections_bug=yes
26048 fi
26049 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
26050 gcc_cv_ld_eh_gc_sections_bug=yes
26051 cat > conftest.s <<EOF
26052 .section .text
26053 .globl _start
26054 .type _start, @function
26055 _start:
26056 .long foo
26057 .size _start, .-_start
26058 .section .text.startup.foo,"ax",@progbits
26059 .type foo, @function
26060 foo:
26061 .long 0
26062 .size foo, .-foo
26063 .section .gcc_except_table.foo,"a",@progbits
26064 .L0:
26065 .long 0
26066 .section .eh_frame,"a",@progbits
26067 .long .L0
26068 EOF
26069 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26070 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26071 | grep "gc-sections option ignored" > /dev/null; then
26072 :
26073 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26074 | grep gcc_except_table > /dev/null; then
26075 gcc_cv_ld_eh_gc_sections_bug=no
26076 fi
26077 fi
26078 rm -f conftest.s conftest.o conftest
26079 fi
26080 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26081
26082 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26083
26084 fi
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26086 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26087
26088 # --------
26089 # UNSORTED
26090 # --------
26091
26092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26093 $as_echo_n "checking linker --as-needed support... " >&6; }
26094 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26095 $as_echo_n "(cached) " >&6
26096 else
26097 gcc_cv_ld_as_needed=no
26098 if test $in_tree_ld = yes ; then
26099 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 \
26100 && test $in_tree_ld_is_elf = yes; then
26101 gcc_cv_ld_as_needed=yes
26102 fi
26103 elif test x$gcc_cv_ld != x; then
26104 # Check if linker supports --as-needed and --no-as-needed options
26105 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26106 gcc_cv_ld_as_needed=yes
26107 fi
26108 fi
26109
26110 fi
26111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26112 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26113 if test x"$gcc_cv_ld_as_needed" = xyes; then
26114
26115 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26116
26117 fi
26118
26119 case "$target:$tm_file" in
26120 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26122 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26123 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26124 $as_echo_n "(cached) " >&6
26125 else
26126 gcc_cv_ld_no_dot_syms=no
26127 if test $in_tree_ld = yes ; then
26128 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
26129 gcc_cv_ld_no_dot_syms=yes
26130 fi
26131 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26132 cat > conftest1.s <<EOF
26133 .text
26134 bl .foo
26135 EOF
26136 cat > conftest2.s <<EOF
26137 .section ".opd","aw"
26138 .align 3
26139 .globl foo
26140 .type foo,@function
26141 foo:
26142 .quad .LEfoo,.TOC.@tocbase,0
26143 .text
26144 .LEfoo:
26145 blr
26146 .size foo,.-.LEfoo
26147 EOF
26148 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26149 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26150 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26151 gcc_cv_ld_no_dot_syms=yes
26152 fi
26153 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26154 fi
26155
26156 fi
26157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26158 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26159 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26160
26161 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26162
26163 fi
26164
26165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26166 $as_echo_n "checking linker large toc support... " >&6; }
26167 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26168 $as_echo_n "(cached) " >&6
26169 else
26170 gcc_cv_ld_large_toc=no
26171 if test $in_tree_ld = yes ; then
26172 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
26173 gcc_cv_ld_large_toc=yes
26174 fi
26175 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26176 cat > conftest.s <<EOF
26177 .section ".tbss","awT",@nobits
26178 .align 3
26179 ie0: .space 8
26180 .global _start
26181 .text
26182 _start:
26183 addis 9,13,ie0@got@tprel@ha
26184 ld 9,ie0@got@tprel@l(9)
26185 EOF
26186 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26187 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26188 gcc_cv_ld_large_toc=yes
26189 fi
26190 rm -f conftest conftest.o conftest.s
26191 fi
26192
26193 fi
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26195 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26196 if test x"$gcc_cv_ld_large_toc" = xyes; then
26197
26198 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26199
26200 fi
26201 ;;
26202 esac
26203
26204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26205 $as_echo_n "checking linker --build-id support... " >&6; }
26206 if test "${gcc_cv_ld_buildid+set}" = set; then :
26207 $as_echo_n "(cached) " >&6
26208 else
26209 gcc_cv_ld_buildid=no
26210 if test $in_tree_ld = yes ; then
26211 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26212 "$gcc_cv_gld_minor_version" -ge 18 -o \
26213 "$gcc_cv_gld_major_version" -gt 2 \
26214 && test $in_tree_ld_is_elf = yes; then
26215 gcc_cv_ld_buildid=yes
26216 fi
26217 elif test x$gcc_cv_ld != x; then
26218 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26219 gcc_cv_ld_buildid=yes
26220 fi
26221 fi
26222 fi
26223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26224 $as_echo "$gcc_cv_ld_buildid" >&6; }
26225 if test x"$gcc_cv_ld_buildid" = xyes; then
26226
26227 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26228
26229 fi
26230
26231 # Check whether --enable-linker-build-id was given.
26232 if test "${enable_linker_build_id+set}" = set; then :
26233 enableval=$enable_linker_build_id;
26234 else
26235 enable_linker_build_id=no
26236 fi
26237
26238
26239 if test x"$enable_linker_build_id" = xyes; then
26240 if test x"$gcc_cv_ld_buildid" = xyes; then
26241
26242 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26243
26244 else
26245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26246 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26247 fi
26248 fi
26249
26250 # In binutils 2.21, GNU ld gained support for new emulations fully
26251 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26253 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26254 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26255 $as_echo_n "(cached) " >&6
26256 else
26257 gcc_cv_ld_sol2_emulation=no
26258 if test $in_tree_ld = yes ; then
26259 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26260 "$gcc_cv_gld_minor_version" -ge 21 -o \
26261 "$gcc_cv_gld_major_version" -gt 2 \
26262 && test $in_tree_ld_is_elf = yes; then
26263 gcc_cv_ld_sol2_emulation=yes
26264 fi
26265 elif test x$gcc_cv_ld != x; then
26266 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26267 grep _sol2 > /dev/null; then
26268 gcc_cv_ld_sol2_emulation=yes
26269 fi
26270 fi
26271 fi
26272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26273 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26274 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26275
26276 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26277
26278 fi
26279
26280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26281 $as_echo_n "checking linker --sysroot support... " >&6; }
26282 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26283 $as_echo_n "(cached) " >&6
26284 else
26285 gcc_cv_ld_sysroot=no
26286 if test $in_tree_ld = yes ; then
26287 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
26288 gcc_cv_ld_sysroot=yes
26289 fi
26290 elif test x$gcc_cv_ld != x; then
26291 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26292 gcc_cv_ld_sysroot=yes
26293 fi
26294 fi
26295 fi
26296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26297 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26298 if test x"$gcc_cv_ld_sysroot" = xyes; then
26299
26300 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26301
26302 fi
26303
26304 if test x$with_sysroot = x && test x$host = x$target \
26305 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26306 && test "$prefix" != "NONE"; then
26307
26308 cat >>confdefs.h <<_ACEOF
26309 #define PREFIX_INCLUDE_DIR "$prefix/include"
26310 _ACEOF
26311
26312 fi
26313
26314 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26315 if test "x$with_headers" != x; then
26316 target_header_dir=$with_headers
26317 elif test "x$with_sysroot" = x; then
26318 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26319 elif test "x$with_build_sysroot" != "x"; then
26320 target_header_dir="${with_build_sysroot}/usr/include"
26321 elif test "x$with_sysroot" = xyes; then
26322 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
26323 else
26324 target_header_dir="${with_sysroot}/usr/include"
26325 fi
26326 else
26327 target_header_dir=/usr/include
26328 fi
26329
26330 # Test for stack protector support in target C library.
26331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26332 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26333 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26334 $as_echo_n "(cached) " >&6
26335 else
26336 gcc_cv_libc_provides_ssp=no
26337 case "$target" in
26338 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26339 # glibc 2.4 and later provides __stack_chk_fail and
26340 # either __stack_chk_guard, or TLS access to stack guard canary.
26341 if test -f $target_header_dir/features.h \
26342 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26343 $target_header_dir/features.h > /dev/null; then
26344 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26345 $target_header_dir/features.h > /dev/null; then
26346 gcc_cv_libc_provides_ssp=yes
26347 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26348 $target_header_dir/features.h > /dev/null \
26349 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26350 $target_header_dir/features.h > /dev/null; then
26351 gcc_cv_libc_provides_ssp=yes
26352 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26353 $target_header_dir/features.h > /dev/null && \
26354 test -f $target_header_dir/bits/uClibc_config.h && \
26355 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26356 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26357 gcc_cv_libc_provides_ssp=yes
26358 fi
26359 fi
26360 ;;
26361 *-*-gnu*)
26362 # Avoid complicated tests (see
26363 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26364 # simply assert that glibc does provide this, which is true for all
26365 # realistically usable GNU/Hurd configurations.
26366 gcc_cv_libc_provides_ssp=yes;;
26367 *-*-darwin* | *-*-freebsd*)
26368 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26369 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26370 gcc_cv_libc_provides_ssp=yes
26371 else
26372 echo "no __stack_chk_fail on this target"
26373 fi
26374
26375 ;;
26376 *) gcc_cv_libc_provides_ssp=no ;;
26377 esac
26378 fi
26379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26380 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26381
26382 if test x$gcc_cv_libc_provides_ssp = xyes; then
26383
26384 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26385
26386 fi
26387
26388 # Test for <sys/sdt.h> on the target.
26389
26390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26391 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26392 have_sys_sdt_h=no
26393 if test -f $target_header_dir/sys/sdt.h; then
26394
26395 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26396
26397 fi
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26399 $as_echo "$have_sys_sdt_h" >&6; }
26400
26401 # Check if TFmode long double should be used by default or not.
26402 # Some glibc targets used DFmode long double, but with glibc 2.4
26403 # and later they can use TFmode.
26404 case "$target" in
26405 powerpc*-*-linux* | \
26406 sparc*-*-linux* | \
26407 s390*-*-linux* | \
26408 alpha*-*-linux*)
26409
26410 # Check whether --with-long-double-128 was given.
26411 if test "${with_long_double_128+set}" = set; then :
26412 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26413 else
26414 gcc_cv_target_ldbl128=no
26415 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26416 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26417 && gcc_cv_target_ldbl128=yes
26418
26419 fi
26420
26421 ;;
26422 esac
26423 if test x$gcc_cv_target_ldbl128 = xyes; then
26424
26425 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26426
26427 fi
26428
26429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26430 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26431 gcc_cv_target_dl_iterate_phdr=unknown
26432 case "$target" in
26433 *-*-solaris2*)
26434 # <link.h> needs both a dl_iterate_phdr declaration and support for
26435 # compilation with largefile support.
26436 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26437 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26438 gcc_cv_target_dl_iterate_phdr=yes
26439 else
26440 gcc_cv_target_dl_iterate_phdr=no
26441 fi
26442 ;;
26443 esac
26444
26445 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26446
26447 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26448
26449 fi
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26451 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26452
26453 # Find out what GC implementation we want, or may, use.
26454
26455 # Check whether --with-gc was given.
26456 if test "${with_gc+set}" = set; then :
26457 withval=$with_gc; case "$withval" in
26458 page)
26459 GGC=ggc-$withval
26460 ;;
26461 zone)
26462 GGC=ggc-$withval
26463
26464 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26465
26466 ;;
26467 *)
26468 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26469 ;;
26470 esac
26471 else
26472 GGC=ggc-page
26473 fi
26474
26475
26476 echo "Using $GGC for garbage collection."
26477
26478 # Libraries to use on the host. This will normally be set by the top
26479 # level Makefile. Here we simply capture the value for our Makefile.
26480 if test -z "${HOST_LIBS+set}"; then
26481 HOST_LIBS=
26482 fi
26483
26484
26485 # Use the system's zlib library.
26486 zlibdir=-L../zlib
26487 zlibinc="-I\$(srcdir)/../zlib"
26488
26489 # Check whether --with-system-zlib was given.
26490 if test "${with_system_zlib+set}" = set; then :
26491 withval=$with_system_zlib; zlibdir=
26492 zlibinc=
26493
26494 fi
26495
26496
26497
26498
26499
26500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26501 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26502 # Check whether --enable-maintainer-mode was given.
26503 if test "${enable_maintainer_mode+set}" = set; then :
26504 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26505 else
26506 maintainer_mode=no
26507 fi
26508
26509
26510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26511 $as_echo "$maintainer_mode" >&6; }
26512
26513 if test "$maintainer_mode" = "yes"; then
26514 MAINT=''
26515 else
26516 MAINT='#'
26517 fi
26518
26519 # --------------
26520 # Language hooks
26521 # --------------
26522
26523 # Make empty files to contain the specs and options for each language.
26524 # Then add #include lines to for a compiler that has specs and/or options.
26525
26526 subdirs=
26527 lang_opt_files=
26528 lang_specs_files=
26529 lang_tree_files=
26530 # These (without "all_") are set in each config-lang.in.
26531 # `language' must be a single word so is spelled singularly.
26532 all_languages=
26533 all_compilers=
26534 all_outputs='Makefile'
26535 # List of language makefile fragments.
26536 all_lang_makefrags=
26537 # Additional files for gengtype
26538 all_gtfiles="$target_gtfiles"
26539
26540 # These are the languages that are set in --enable-languages,
26541 # and are available in the GCC tree.
26542 all_selected_languages=
26543
26544 # Add the language fragments.
26545 # Languages are added via two mechanisms. Some information must be
26546 # recorded in makefile variables, these are defined in config-lang.in.
26547 # We accumulate them and plug them into the main Makefile.
26548 # The other mechanism is a set of hooks for each of the main targets
26549 # like `clean', `install', etc.
26550
26551 language_hooks="Make-hooks"
26552
26553 for lang in ${srcdir}/*/config-lang.in
26554 do
26555 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26556
26557 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26558 if test "x$lang_alias" = x
26559 then
26560 echo "$lang doesn't set \$language." 1>&2
26561 exit 1
26562 fi
26563 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26564 subdirs="$subdirs $subdir"
26565
26566 # $gcc_subdir is where the gcc integration files are to be found
26567 # for a language, both for internal compiler purposes (compiler
26568 # sources implementing front-end to GCC tree converters), and for
26569 # build infrastructure purposes (Make-lang.in, etc.)
26570 #
26571 # This will be <subdir> (relative to $srcdir) if a line like
26572 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26573 # is found in <langdir>/config-lang.in, and will remain <langdir>
26574 # otherwise.
26575 #
26576 # Except for the language alias (fetched above), the regular
26577 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26578 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26579 # only this and the language alias.
26580
26581 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26582 if [ "$gcc_subdir" = "" ]; then
26583 gcc_subdir="$subdir"
26584 fi
26585
26586 case ",$enable_languages," in
26587 *,$lang_alias,*)
26588 all_selected_languages="$all_selected_languages $lang_alias"
26589 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26590 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26591 fi
26592 ;;
26593 esac
26594
26595 language=
26596 boot_language=
26597 compilers=
26598 outputs=
26599 gtfiles=
26600 subdir_requires=
26601 . ${srcdir}/$gcc_subdir/config-lang.in
26602 if test "x$language" = x
26603 then
26604 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26605 exit 1
26606 fi
26607
26608 ok=:
26609 case ",$enable_languages," in
26610 *,$lang_alias,*) ;;
26611 *)
26612 for i in $subdir_requires; do
26613 test -f "${srcdir}/$i/config-lang.in" && continue
26614 ok=false
26615 break
26616 done
26617 ;;
26618 esac
26619 $ok || continue
26620
26621 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26622 if test -f $srcdir/$gcc_subdir/lang.opt; then
26623 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26624 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26625 fi
26626 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26627 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26628 fi
26629 all_languages="$all_languages $language"
26630 all_compilers="$all_compilers $compilers"
26631 all_outputs="$all_outputs $outputs"
26632 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26633 case ",$enable_languages," in
26634 *,lto,*)
26635
26636 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26637
26638 enable_lto=yes
26639
26640 ;;
26641 *) ;;
26642 esac
26643 done
26644
26645 # Pick up gtfiles for c
26646 gtfiles=
26647 . ${srcdir}/c-config-lang.in
26648 all_gtfiles="$all_gtfiles [c] $gtfiles"
26649
26650 check_languages=
26651 for language in $all_selected_languages
26652 do
26653 check_languages="$check_languages check-$language"
26654 done
26655
26656 # We link each language in with a set of hooks, reached indirectly via
26657 # lang.${target}. Only do so for selected languages.
26658
26659 rm -f Make-hooks
26660 touch Make-hooks
26661 target_list="all.cross start.encap rest.encap tags \
26662 install-common install-man install-info install-pdf install-html dvi \
26663 pdf html uninstall info man srcextra srcman srcinfo \
26664 mostlyclean clean distclean maintainer-clean install-plugin"
26665
26666 for t in $target_list
26667 do
26668 x=
26669 for lang in $all_selected_languages
26670 do
26671 x="$x $lang.$t"
26672 done
26673 echo "lang.$t: $x" >> Make-hooks
26674 done
26675
26676 # --------
26677 # Option include files
26678 # --------
26679
26680 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26681 option_includes="option-includes.mk"
26682
26683
26684 # --------
26685 # UNSORTED
26686 # --------
26687
26688 # Create .gdbinit.
26689
26690 echo "dir ." > .gdbinit
26691 echo "dir ${srcdir}" >> .gdbinit
26692 if test x$gdb_needs_out_file_path = xyes
26693 then
26694 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26695 fi
26696 if test "x$subdirs" != x; then
26697 for s in $subdirs
26698 do
26699 echo "dir ${srcdir}/$s" >> .gdbinit
26700 done
26701 fi
26702 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26703
26704 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26705
26706
26707
26708 # Find a directory in which to install a shared libgcc.
26709
26710 # Check whether --enable-version-specific-runtime-libs was given.
26711 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26712 enableval=$enable_version_specific_runtime_libs;
26713 fi
26714
26715
26716
26717 # Check whether --with-slibdir was given.
26718 if test "${with_slibdir+set}" = set; then :
26719 withval=$with_slibdir; slibdir="$with_slibdir"
26720 else
26721 if test "${enable_version_specific_runtime_libs+set}" = set; then
26722 slibdir='$(libsubdir)'
26723 elif test "$host" != "$target"; then
26724 slibdir='$(build_tooldir)/lib'
26725 else
26726 slibdir='$(libdir)'
26727 fi
26728 fi
26729
26730
26731
26732 # Substitute configuration variables
26733
26734
26735
26736
26737
26738
26739
26740
26741
26742
26743
26744
26745
26746
26747
26748
26749
26750
26751
26752
26753
26754
26755
26756
26757
26758
26759
26760
26761
26762
26763
26764
26765
26766
26767
26768
26769
26770
26771
26772
26773
26774
26775
26776
26777
26778
26779
26780
26781
26782
26783
26784
26785
26786
26787
26788
26789
26790
26791
26792
26793
26794
26795
26796
26797
26798
26799 # Echo link setup.
26800 if test x${build} = x${host} ; then
26801 if test x${host} = x${target} ; then
26802 echo "Links are now set up to build a native compiler for ${target}." 1>&2
26803 else
26804 echo "Links are now set up to build a cross-compiler" 1>&2
26805 echo " from ${host} to ${target}." 1>&2
26806 fi
26807 else
26808 if test x${host} = x${target} ; then
26809 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26810 echo " for ${target}." 1>&2
26811 else
26812 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26813 echo " from ${host} to ${target}." 1>&2
26814 fi
26815 fi
26816
26817
26818
26819
26820
26821
26822
26823
26824
26825 if test "x${CLOOGLIBS}" != "x" ; then
26826
26827 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26828
26829 fi
26830
26831 # Check for plugin support
26832 # Check whether --enable-plugin was given.
26833 if test "${enable_plugin+set}" = set; then :
26834 enableval=$enable_plugin; enable_plugin=$enableval
26835 else
26836 enable_plugin=yes; default_plugin=yes
26837 fi
26838
26839
26840 pluginlibs=
26841
26842 case "${host}" in
26843 *-*-darwin*)
26844 if test x$build = x$host; then
26845 export_sym_check="nm${exeext} -g"
26846 elif test x$host = x$target; then
26847 export_sym_check="$gcc_cv_nm -g"
26848 else
26849 export_sym_check=
26850 fi
26851 ;;
26852 *)
26853 if test x$build = x$host; then
26854 export_sym_check="objdump${exeext} -T"
26855 elif test x$host = x$target; then
26856 export_sym_check="$gcc_cv_objdump -T"
26857 else
26858 export_sym_check=
26859 fi
26860 ;;
26861 esac
26862
26863 if test x"$enable_plugin" = x"yes"; then
26864
26865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26866 $as_echo_n "checking for exported symbols... " >&6; }
26867 if test "x$export_sym_check" != x; then
26868 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26869 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
26870 if $export_sym_check conftest | grep foobar > /dev/null; then
26871 : # No need to use a flag
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26873 $as_echo "yes" >&6; }
26874 else
26875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26876 $as_echo "yes" >&6; }
26877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26878 $as_echo_n "checking for -rdynamic... " >&6; }
26879 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
26880 if $export_sym_check conftest | grep foobar > /dev/null; then
26881 plugin_rdynamic=yes
26882 pluginlibs="-rdynamic"
26883 else
26884 plugin_rdynamic=no
26885 enable_plugin=no
26886 fi
26887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26888 $as_echo "$plugin_rdynamic" >&6; }
26889 fi
26890 else
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26892 $as_echo "unable to check" >&6; }
26893 fi
26894
26895 # Check -ldl
26896 saved_LIBS="$LIBS"
26897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26898 $as_echo_n "checking for library containing dlopen... " >&6; }
26899 if test "${ac_cv_search_dlopen+set}" = set; then :
26900 $as_echo_n "(cached) " >&6
26901 else
26902 ac_func_search_save_LIBS=$LIBS
26903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26904 /* end confdefs.h. */
26905
26906 /* Override any GCC internal prototype to avoid an error.
26907 Use char because int might match the return type of a GCC
26908 builtin and then its argument prototype would still apply. */
26909 #ifdef __cplusplus
26910 extern "C"
26911 #endif
26912 char dlopen ();
26913 int
26914 main ()
26915 {
26916 return dlopen ();
26917 ;
26918 return 0;
26919 }
26920 _ACEOF
26921 for ac_lib in '' dl; do
26922 if test -z "$ac_lib"; then
26923 ac_res="none required"
26924 else
26925 ac_res=-l$ac_lib
26926 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26927 fi
26928 if ac_fn_c_try_link "$LINENO"; then :
26929 ac_cv_search_dlopen=$ac_res
26930 fi
26931 rm -f core conftest.err conftest.$ac_objext \
26932 conftest$ac_exeext
26933 if test "${ac_cv_search_dlopen+set}" = set; then :
26934 break
26935 fi
26936 done
26937 if test "${ac_cv_search_dlopen+set}" = set; then :
26938
26939 else
26940 ac_cv_search_dlopen=no
26941 fi
26942 rm conftest.$ac_ext
26943 LIBS=$ac_func_search_save_LIBS
26944 fi
26945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
26946 $as_echo "$ac_cv_search_dlopen" >&6; }
26947 ac_res=$ac_cv_search_dlopen
26948 if test "$ac_res" != no; then :
26949 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26950
26951 fi
26952
26953 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
26954 pluginlibs="$pluginlibs -ldl"
26955 fi
26956 LIBS="$saved_LIBS"
26957
26958 # Check that we can build shared objects with -fPIC -shared
26959 saved_LDFLAGS="$LDFLAGS"
26960 saved_CFLAGS="$CFLAGS"
26961 case "${host}" in
26962 *-*-darwin*)
26963 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26964 CFLAGS="$CFLAGS -fPIC"
26965 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
26966 ;;
26967 *)
26968 CFLAGS="$CFLAGS -fPIC"
26969 LDFLAGS="$LDFLAGS -fPIC -shared"
26970 ;;
26971 esac
26972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26973 $as_echo_n "checking for -fPIC -shared... " >&6; }
26974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26975 /* end confdefs.h. */
26976 extern int X;
26977 int
26978 main ()
26979 {
26980 return X == 0;
26981 ;
26982 return 0;
26983 }
26984 _ACEOF
26985 if ac_fn_c_try_link "$LINENO"; then :
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26987 $as_echo "yes" >&6; }; have_pic_shared=yes
26988 else
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26990 $as_echo "no" >&6; }; have_pic_shared=no
26991 fi
26992 rm -f core conftest.err conftest.$ac_objext \
26993 conftest$ac_exeext conftest.$ac_ext
26994 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
26995 pluginlibs=
26996 enable_plugin=no
26997 fi
26998 LDFLAGS="$saved_LDFLAGS"
26999 CFLAGS="$saved_CFLAGS"
27000
27001 # If plugin support had been requested but not available, fail.
27002 if test x"$enable_plugin" = x"no" ; then
27003 if test x"$default_plugin" != x"yes"; then
27004 as_fn_error "
27005 Building GCC with plugin support requires a host that supports
27006 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27007 fi
27008 fi
27009 fi
27010
27011
27012
27013 if test x"$enable_plugin" = x"yes"; then
27014
27015 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27016
27017 fi
27018
27019
27020 # Check whether --enable-libquadmath-support was given.
27021 if test "${enable_libquadmath_support+set}" = set; then :
27022 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27023 else
27024 ENABLE_LIBQUADMATH_SUPPORT=yes
27025 fi
27026
27027 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27028
27029 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27030
27031 fi
27032
27033
27034 # Specify what hash style to use by default.
27035
27036 # Check whether --with-linker-hash-style was given.
27037 if test "${with_linker_hash_style+set}" = set; then :
27038 withval=$with_linker_hash_style; case x"$withval" in
27039 xsysv)
27040 LINKER_HASH_STYLE=sysv
27041 ;;
27042 xgnu)
27043 LINKER_HASH_STYLE=gnu
27044 ;;
27045 xboth)
27046 LINKER_HASH_STYLE=both
27047 ;;
27048 *)
27049 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27050 ;;
27051 esac
27052 else
27053 LINKER_HASH_STYLE=''
27054 fi
27055
27056 if test x"${LINKER_HASH_STYLE}" != x; then
27057
27058 cat >>confdefs.h <<_ACEOF
27059 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27060 _ACEOF
27061
27062 fi
27063
27064 # Configure the subdirectories
27065 # AC_CONFIG_SUBDIRS($subdirs)
27066
27067 # Create the Makefile
27068 # and configure language subdirectories
27069 ac_config_files="$ac_config_files $all_outputs"
27070
27071
27072 ac_config_commands="$ac_config_commands default"
27073
27074 cat >confcache <<\_ACEOF
27075 # This file is a shell script that caches the results of configure
27076 # tests run on this system so they can be shared between configure
27077 # scripts and configure runs, see configure's option --config-cache.
27078 # It is not useful on other systems. If it contains results you don't
27079 # want to keep, you may remove or edit it.
27080 #
27081 # config.status only pays attention to the cache file if you give it
27082 # the --recheck option to rerun configure.
27083 #
27084 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27085 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27086 # following values.
27087
27088 _ACEOF
27089
27090 # The following way of writing the cache mishandles newlines in values,
27091 # but we know of no workaround that is simple, portable, and efficient.
27092 # So, we kill variables containing newlines.
27093 # Ultrix sh set writes to stderr and can't be redirected directly,
27094 # and sets the high bit in the cache file unless we assign to the vars.
27095 (
27096 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27097 eval ac_val=\$$ac_var
27098 case $ac_val in #(
27099 *${as_nl}*)
27100 case $ac_var in #(
27101 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27102 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27103 esac
27104 case $ac_var in #(
27105 _ | IFS | as_nl) ;; #(
27106 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27107 *) { eval $ac_var=; unset $ac_var;} ;;
27108 esac ;;
27109 esac
27110 done
27111
27112 (set) 2>&1 |
27113 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27114 *${as_nl}ac_space=\ *)
27115 # `set' does not quote correctly, so add quotes: double-quote
27116 # substitution turns \\\\ into \\, and sed turns \\ into \.
27117 sed -n \
27118 "s/'/'\\\\''/g;
27119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27120 ;; #(
27121 *)
27122 # `set' quotes correctly as required by POSIX, so do not add quotes.
27123 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27124 ;;
27125 esac |
27126 sort
27127 ) |
27128 sed '
27129 /^ac_cv_env_/b end
27130 t clear
27131 :clear
27132 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27133 t end
27134 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27135 :end' >>confcache
27136 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27137 if test -w "$cache_file"; then
27138 test "x$cache_file" != "x/dev/null" &&
27139 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27140 $as_echo "$as_me: updating cache $cache_file" >&6;}
27141 cat confcache >$cache_file
27142 else
27143 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27144 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27145 fi
27146 fi
27147 rm -f confcache
27148
27149 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27150 # Let make expand exec_prefix.
27151 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27152
27153 DEFS=-DHAVE_CONFIG_H
27154
27155 ac_libobjs=
27156 ac_ltlibobjs=
27157 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27158 # 1. Remove the extension, and $U if already installed.
27159 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27160 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27161 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27162 # will be set to the directory where LIBOBJS objects are built.
27163 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27164 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27165 done
27166 LIBOBJS=$ac_libobjs
27167
27168 LTLIBOBJS=$ac_ltlibobjs
27169
27170
27171
27172
27173 : ${CONFIG_STATUS=./config.status}
27174 ac_write_fail=0
27175 ac_clean_files_save=$ac_clean_files
27176 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27177 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27178 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27179 as_write_fail=0
27180 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27181 #! $SHELL
27182 # Generated by $as_me.
27183 # Run this file to recreate the current configuration.
27184 # Compiler output produced by configure, useful for debugging
27185 # configure, is in config.log if it exists.
27186
27187 debug=false
27188 ac_cs_recheck=false
27189 ac_cs_silent=false
27190
27191 SHELL=\${CONFIG_SHELL-$SHELL}
27192 export SHELL
27193 _ASEOF
27194 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27195 ## -------------------- ##
27196 ## M4sh Initialization. ##
27197 ## -------------------- ##
27198
27199 # Be more Bourne compatible
27200 DUALCASE=1; export DUALCASE # for MKS sh
27201 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27202 emulate sh
27203 NULLCMD=:
27204 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27205 # is contrary to our usage. Disable this feature.
27206 alias -g '${1+"$@"}'='"$@"'
27207 setopt NO_GLOB_SUBST
27208 else
27209 case `(set -o) 2>/dev/null` in #(
27210 *posix*) :
27211 set -o posix ;; #(
27212 *) :
27213 ;;
27214 esac
27215 fi
27216
27217
27218 as_nl='
27219 '
27220 export as_nl
27221 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27222 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27223 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27224 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27225 # Prefer a ksh shell builtin over an external printf program on Solaris,
27226 # but without wasting forks for bash or zsh.
27227 if test -z "$BASH_VERSION$ZSH_VERSION" \
27228 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27229 as_echo='print -r --'
27230 as_echo_n='print -rn --'
27231 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27232 as_echo='printf %s\n'
27233 as_echo_n='printf %s'
27234 else
27235 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27236 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27237 as_echo_n='/usr/ucb/echo -n'
27238 else
27239 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27240 as_echo_n_body='eval
27241 arg=$1;
27242 case $arg in #(
27243 *"$as_nl"*)
27244 expr "X$arg" : "X\\(.*\\)$as_nl";
27245 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27246 esac;
27247 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27248 '
27249 export as_echo_n_body
27250 as_echo_n='sh -c $as_echo_n_body as_echo'
27251 fi
27252 export as_echo_body
27253 as_echo='sh -c $as_echo_body as_echo'
27254 fi
27255
27256 # The user is always right.
27257 if test "${PATH_SEPARATOR+set}" != set; then
27258 PATH_SEPARATOR=:
27259 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27260 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27261 PATH_SEPARATOR=';'
27262 }
27263 fi
27264
27265
27266 # IFS
27267 # We need space, tab and new line, in precisely that order. Quoting is
27268 # there to prevent editors from complaining about space-tab.
27269 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27270 # splitting by setting IFS to empty value.)
27271 IFS=" "" $as_nl"
27272
27273 # Find who we are. Look in the path if we contain no directory separator.
27274 case $0 in #((
27275 *[\\/]* ) as_myself=$0 ;;
27276 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27277 for as_dir in $PATH
27278 do
27279 IFS=$as_save_IFS
27280 test -z "$as_dir" && as_dir=.
27281 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27282 done
27283 IFS=$as_save_IFS
27284
27285 ;;
27286 esac
27287 # We did not find ourselves, most probably we were run as `sh COMMAND'
27288 # in which case we are not to be found in the path.
27289 if test "x$as_myself" = x; then
27290 as_myself=$0
27291 fi
27292 if test ! -f "$as_myself"; then
27293 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27294 exit 1
27295 fi
27296
27297 # Unset variables that we do not need and which cause bugs (e.g. in
27298 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27299 # suppresses any "Segmentation fault" message there. '((' could
27300 # trigger a bug in pdksh 5.2.14.
27301 for as_var in BASH_ENV ENV MAIL MAILPATH
27302 do eval test x\${$as_var+set} = xset \
27303 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27304 done
27305 PS1='$ '
27306 PS2='> '
27307 PS4='+ '
27308
27309 # NLS nuisances.
27310 LC_ALL=C
27311 export LC_ALL
27312 LANGUAGE=C
27313 export LANGUAGE
27314
27315 # CDPATH.
27316 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27317
27318
27319 # as_fn_error ERROR [LINENO LOG_FD]
27320 # ---------------------------------
27321 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27322 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27323 # script with status $?, using 1 if that was 0.
27324 as_fn_error ()
27325 {
27326 as_status=$?; test $as_status -eq 0 && as_status=1
27327 if test "$3"; then
27328 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27329 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27330 fi
27331 $as_echo "$as_me: error: $1" >&2
27332 as_fn_exit $as_status
27333 } # as_fn_error
27334
27335
27336 # as_fn_set_status STATUS
27337 # -----------------------
27338 # Set $? to STATUS, without forking.
27339 as_fn_set_status ()
27340 {
27341 return $1
27342 } # as_fn_set_status
27343
27344 # as_fn_exit STATUS
27345 # -----------------
27346 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27347 as_fn_exit ()
27348 {
27349 set +e
27350 as_fn_set_status $1
27351 exit $1
27352 } # as_fn_exit
27353
27354 # as_fn_unset VAR
27355 # ---------------
27356 # Portably unset VAR.
27357 as_fn_unset ()
27358 {
27359 { eval $1=; unset $1;}
27360 }
27361 as_unset=as_fn_unset
27362 # as_fn_append VAR VALUE
27363 # ----------------------
27364 # Append the text in VALUE to the end of the definition contained in VAR. Take
27365 # advantage of any shell optimizations that allow amortized linear growth over
27366 # repeated appends, instead of the typical quadratic growth present in naive
27367 # implementations.
27368 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27369 eval 'as_fn_append ()
27370 {
27371 eval $1+=\$2
27372 }'
27373 else
27374 as_fn_append ()
27375 {
27376 eval $1=\$$1\$2
27377 }
27378 fi # as_fn_append
27379
27380 # as_fn_arith ARG...
27381 # ------------------
27382 # Perform arithmetic evaluation on the ARGs, and store the result in the
27383 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27384 # must be portable across $(()) and expr.
27385 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27386 eval 'as_fn_arith ()
27387 {
27388 as_val=$(( $* ))
27389 }'
27390 else
27391 as_fn_arith ()
27392 {
27393 as_val=`expr "$@" || test $? -eq 1`
27394 }
27395 fi # as_fn_arith
27396
27397
27398 if expr a : '\(a\)' >/dev/null 2>&1 &&
27399 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27400 as_expr=expr
27401 else
27402 as_expr=false
27403 fi
27404
27405 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27406 as_basename=basename
27407 else
27408 as_basename=false
27409 fi
27410
27411 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27412 as_dirname=dirname
27413 else
27414 as_dirname=false
27415 fi
27416
27417 as_me=`$as_basename -- "$0" ||
27418 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27419 X"$0" : 'X\(//\)$' \| \
27420 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27421 $as_echo X/"$0" |
27422 sed '/^.*\/\([^/][^/]*\)\/*$/{
27423 s//\1/
27424 q
27425 }
27426 /^X\/\(\/\/\)$/{
27427 s//\1/
27428 q
27429 }
27430 /^X\/\(\/\).*/{
27431 s//\1/
27432 q
27433 }
27434 s/.*/./; q'`
27435
27436 # Avoid depending upon Character Ranges.
27437 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27438 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27439 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27440 as_cr_digits='0123456789'
27441 as_cr_alnum=$as_cr_Letters$as_cr_digits
27442
27443 ECHO_C= ECHO_N= ECHO_T=
27444 case `echo -n x` in #(((((
27445 -n*)
27446 case `echo 'xy\c'` in
27447 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27448 xy) ECHO_C='\c';;
27449 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27450 ECHO_T=' ';;
27451 esac;;
27452 *)
27453 ECHO_N='-n';;
27454 esac
27455
27456 rm -f conf$$ conf$$.exe conf$$.file
27457 if test -d conf$$.dir; then
27458 rm -f conf$$.dir/conf$$.file
27459 else
27460 rm -f conf$$.dir
27461 mkdir conf$$.dir 2>/dev/null
27462 fi
27463 if (echo >conf$$.file) 2>/dev/null; then
27464 if ln -s conf$$.file conf$$ 2>/dev/null; then
27465 as_ln_s='ln -s'
27466 # ... but there are two gotchas:
27467 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27468 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27469 # In both cases, we have to default to `cp -p'.
27470 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27471 as_ln_s='cp -p'
27472 elif ln conf$$.file conf$$ 2>/dev/null; then
27473 as_ln_s=ln
27474 else
27475 as_ln_s='cp -p'
27476 fi
27477 else
27478 as_ln_s='cp -p'
27479 fi
27480 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27481 rmdir conf$$.dir 2>/dev/null
27482
27483
27484 # as_fn_mkdir_p
27485 # -------------
27486 # Create "$as_dir" as a directory, including parents if necessary.
27487 as_fn_mkdir_p ()
27488 {
27489
27490 case $as_dir in #(
27491 -*) as_dir=./$as_dir;;
27492 esac
27493 test -d "$as_dir" || eval $as_mkdir_p || {
27494 as_dirs=
27495 while :; do
27496 case $as_dir in #(
27497 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27498 *) as_qdir=$as_dir;;
27499 esac
27500 as_dirs="'$as_qdir' $as_dirs"
27501 as_dir=`$as_dirname -- "$as_dir" ||
27502 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27503 X"$as_dir" : 'X\(//\)[^/]' \| \
27504 X"$as_dir" : 'X\(//\)$' \| \
27505 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27506 $as_echo X"$as_dir" |
27507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27508 s//\1/
27509 q
27510 }
27511 /^X\(\/\/\)[^/].*/{
27512 s//\1/
27513 q
27514 }
27515 /^X\(\/\/\)$/{
27516 s//\1/
27517 q
27518 }
27519 /^X\(\/\).*/{
27520 s//\1/
27521 q
27522 }
27523 s/.*/./; q'`
27524 test -d "$as_dir" && break
27525 done
27526 test -z "$as_dirs" || eval "mkdir $as_dirs"
27527 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27528
27529
27530 } # as_fn_mkdir_p
27531 if mkdir -p . 2>/dev/null; then
27532 as_mkdir_p='mkdir -p "$as_dir"'
27533 else
27534 test -d ./-p && rmdir ./-p
27535 as_mkdir_p=false
27536 fi
27537
27538 if test -x / >/dev/null 2>&1; then
27539 as_test_x='test -x'
27540 else
27541 if ls -dL / >/dev/null 2>&1; then
27542 as_ls_L_option=L
27543 else
27544 as_ls_L_option=
27545 fi
27546 as_test_x='
27547 eval sh -c '\''
27548 if test -d "$1"; then
27549 test -d "$1/.";
27550 else
27551 case $1 in #(
27552 -*)set "./$1";;
27553 esac;
27554 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27555 ???[sx]*):;;*)false;;esac;fi
27556 '\'' sh
27557 '
27558 fi
27559 as_executable_p=$as_test_x
27560
27561 # Sed expression to map a string onto a valid CPP name.
27562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27563
27564 # Sed expression to map a string onto a valid variable name.
27565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27566
27567
27568 exec 6>&1
27569 ## ----------------------------------- ##
27570 ## Main body of $CONFIG_STATUS script. ##
27571 ## ----------------------------------- ##
27572 _ASEOF
27573 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27574
27575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27576 # Save the log message, to keep $0 and so on meaningful, and to
27577 # report actual input values of CONFIG_FILES etc. instead of their
27578 # values after options handling.
27579 ac_log="
27580 This file was extended by $as_me, which was
27581 generated by GNU Autoconf 2.64. Invocation command line was
27582
27583 CONFIG_FILES = $CONFIG_FILES
27584 CONFIG_HEADERS = $CONFIG_HEADERS
27585 CONFIG_LINKS = $CONFIG_LINKS
27586 CONFIG_COMMANDS = $CONFIG_COMMANDS
27587 $ $0 $@
27588
27589 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27590 "
27591
27592 _ACEOF
27593
27594 case $ac_config_files in *"
27595 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27596 esac
27597
27598 case $ac_config_headers in *"
27599 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27600 esac
27601
27602
27603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27604 # Files that config.status was made for.
27605 config_files="$ac_config_files"
27606 config_headers="$ac_config_headers"
27607 config_commands="$ac_config_commands"
27608
27609 _ACEOF
27610
27611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27612 ac_cs_usage="\
27613 \`$as_me' instantiates files and other configuration actions
27614 from templates according to the current configuration. Unless the files
27615 and actions are specified as TAGs, all are instantiated by default.
27616
27617 Usage: $0 [OPTION]... [TAG]...
27618
27619 -h, --help print this help, then exit
27620 -V, --version print version number and configuration settings, then exit
27621 -q, --quiet, --silent
27622 do not print progress messages
27623 -d, --debug don't remove temporary files
27624 --recheck update $as_me by reconfiguring in the same conditions
27625 --file=FILE[:TEMPLATE]
27626 instantiate the configuration file FILE
27627 --header=FILE[:TEMPLATE]
27628 instantiate the configuration header FILE
27629
27630 Configuration files:
27631 $config_files
27632
27633 Configuration headers:
27634 $config_headers
27635
27636 Configuration commands:
27637 $config_commands
27638
27639 Report bugs to the package provider."
27640
27641 _ACEOF
27642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27643 ac_cs_version="\\
27644 config.status
27645 configured by $0, generated by GNU Autoconf 2.64,
27646 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27647
27648 Copyright (C) 2009 Free Software Foundation, Inc.
27649 This config.status script is free software; the Free Software Foundation
27650 gives unlimited permission to copy, distribute and modify it."
27651
27652 ac_pwd='$ac_pwd'
27653 srcdir='$srcdir'
27654 AWK='$AWK'
27655 test -n "\$AWK" || AWK=awk
27656 _ACEOF
27657
27658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27659 # The default lists apply if the user does not specify any file.
27660 ac_need_defaults=:
27661 while test $# != 0
27662 do
27663 case $1 in
27664 --*=*)
27665 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27666 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27667 ac_shift=:
27668 ;;
27669 *)
27670 ac_option=$1
27671 ac_optarg=$2
27672 ac_shift=shift
27673 ;;
27674 esac
27675
27676 case $ac_option in
27677 # Handling of the options.
27678 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27679 ac_cs_recheck=: ;;
27680 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27681 $as_echo "$ac_cs_version"; exit ;;
27682 --debug | --debu | --deb | --de | --d | -d )
27683 debug=: ;;
27684 --file | --fil | --fi | --f )
27685 $ac_shift
27686 case $ac_optarg in
27687 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27688 esac
27689 as_fn_append CONFIG_FILES " '$ac_optarg'"
27690 ac_need_defaults=false;;
27691 --header | --heade | --head | --hea )
27692 $ac_shift
27693 case $ac_optarg in
27694 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27695 esac
27696 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27697 ac_need_defaults=false;;
27698 --he | --h)
27699 # Conflict between --help and --header
27700 as_fn_error "ambiguous option: \`$1'
27701 Try \`$0 --help' for more information.";;
27702 --help | --hel | -h )
27703 $as_echo "$ac_cs_usage"; exit ;;
27704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27705 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27706 ac_cs_silent=: ;;
27707
27708 # This is an error.
27709 -*) as_fn_error "unrecognized option: \`$1'
27710 Try \`$0 --help' for more information." ;;
27711
27712 *) as_fn_append ac_config_targets " $1"
27713 ac_need_defaults=false ;;
27714
27715 esac
27716 shift
27717 done
27718
27719 ac_configure_extra_args=
27720
27721 if $ac_cs_silent; then
27722 exec 6>/dev/null
27723 ac_configure_extra_args="$ac_configure_extra_args --silent"
27724 fi
27725
27726 _ACEOF
27727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27728 if \$ac_cs_recheck; then
27729 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27730 shift
27731 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27732 CONFIG_SHELL='$SHELL'
27733 export CONFIG_SHELL
27734 exec "\$@"
27735 fi
27736
27737 _ACEOF
27738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27739 exec 5>>config.log
27740 {
27741 echo
27742 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27743 ## Running $as_me. ##
27744 _ASBOX
27745 $as_echo "$ac_log"
27746 } >&5
27747
27748 _ACEOF
27749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27750 #
27751 # INIT-COMMANDS
27752 #
27753 subdirs='$subdirs'
27754
27755 _ACEOF
27756
27757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27758
27759 # Handling of arguments.
27760 for ac_config_target in $ac_config_targets
27761 do
27762 case $ac_config_target in
27763 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27764 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27765 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27766 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27767 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27768 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27769
27770 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27771 esac
27772 done
27773
27774
27775 # If the user did not use the arguments to specify the items to instantiate,
27776 # then the envvar interface is used. Set only those that are not.
27777 # We use the long form for the default assignment because of an extremely
27778 # bizarre bug on SunOS 4.1.3.
27779 if $ac_need_defaults; then
27780 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27781 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27782 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27783 fi
27784
27785 # Have a temporary directory for convenience. Make it in the build tree
27786 # simply because there is no reason against having it here, and in addition,
27787 # creating and moving files from /tmp can sometimes cause problems.
27788 # Hook for its removal unless debugging.
27789 # Note that there is a small window in which the directory will not be cleaned:
27790 # after its creation but before its name has been assigned to `$tmp'.
27791 $debug ||
27792 {
27793 tmp=
27794 trap 'exit_status=$?
27795 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27796 ' 0
27797 trap 'as_fn_exit 1' 1 2 13 15
27798 }
27799 # Create a (secure) tmp directory for tmp files.
27800
27801 {
27802 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27803 test -n "$tmp" && test -d "$tmp"
27804 } ||
27805 {
27806 tmp=./conf$$-$RANDOM
27807 (umask 077 && mkdir "$tmp")
27808 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27809
27810 # Set up the scripts for CONFIG_FILES section.
27811 # No need to generate them if there are no CONFIG_FILES.
27812 # This happens for instance with `./config.status config.h'.
27813 if test -n "$CONFIG_FILES"; then
27814
27815 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27816 ac_cs_awk_getline=:
27817 ac_cs_awk_pipe_init=
27818 ac_cs_awk_read_file='
27819 while ((getline aline < (F[key])) > 0)
27820 print(aline)
27821 close(F[key])'
27822 ac_cs_awk_pipe_fini=
27823 else
27824 ac_cs_awk_getline=false
27825 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27826 ac_cs_awk_read_file='
27827 print "|#_!!_#|"
27828 print "cat " F[key] " &&"
27829 '$ac_cs_awk_pipe_init
27830 # The final `:' finishes the AND list.
27831 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27832 fi
27833 ac_cr=`echo X | tr X '\015'`
27834 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27835 # But we know of no other shell where ac_cr would be empty at this
27836 # point, so we can use a bashism as a fallback.
27837 if test "x$ac_cr" = x; then
27838 eval ac_cr=\$\'\\r\'
27839 fi
27840 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27841 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27842 ac_cs_awk_cr='\r'
27843 else
27844 ac_cs_awk_cr=$ac_cr
27845 fi
27846
27847 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27848 _ACEOF
27849
27850 # Create commands to substitute file output variables.
27851 {
27852 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27853 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27854 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27855 echo "_ACAWK" &&
27856 echo "_ACEOF"
27857 } >conf$$files.sh &&
27858 . ./conf$$files.sh ||
27859 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27860 rm -f conf$$files.sh
27861
27862 {
27863 echo "cat >conf$$subs.awk <<_ACEOF" &&
27864 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27865 echo "_ACEOF"
27866 } >conf$$subs.sh ||
27867 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27868 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27869 ac_delim='%!_!# '
27870 for ac_last_try in false false false false false :; do
27871 . ./conf$$subs.sh ||
27872 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27873
27874 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27875 if test $ac_delim_n = $ac_delim_num; then
27876 break
27877 elif $ac_last_try; then
27878 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27879 else
27880 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27881 fi
27882 done
27883 rm -f conf$$subs.sh
27884
27885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27886 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27887 _ACEOF
27888 sed -n '
27889 h
27890 s/^/S["/; s/!.*/"]=/
27891 p
27892 g
27893 s/^[^!]*!//
27894 :repl
27895 t repl
27896 s/'"$ac_delim"'$//
27897 t delim
27898 :nl
27899 h
27900 s/\(.\{148\}\).*/\1/
27901 t more1
27902 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27903 p
27904 n
27905 b repl
27906 :more1
27907 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27908 p
27909 g
27910 s/.\{148\}//
27911 t nl
27912 :delim
27913 h
27914 s/\(.\{148\}\).*/\1/
27915 t more2
27916 s/["\\]/\\&/g; s/^/"/; s/$/"/
27917 p
27918 b
27919 :more2
27920 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27921 p
27922 g
27923 s/.\{148\}//
27924 t delim
27925 ' <conf$$subs.awk | sed '
27926 /^[^""]/{
27927 N
27928 s/\n//
27929 }
27930 ' >>$CONFIG_STATUS || ac_write_fail=1
27931 rm -f conf$$subs.awk
27932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27933 _ACAWK
27934 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27935 for (key in S) S_is_set[key] = 1
27936 FS = "\a"
27937 \$ac_cs_awk_pipe_init
27938 }
27939 {
27940 line = $ 0
27941 nfields = split(line, field, "@")
27942 substed = 0
27943 len = length(field[1])
27944 for (i = 2; i < nfields; i++) {
27945 key = field[i]
27946 keylen = length(key)
27947 if (S_is_set[key]) {
27948 value = S[key]
27949 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27950 len += length(value) + length(field[++i])
27951 substed = 1
27952 } else
27953 len += 1 + keylen
27954 }
27955 if (nfields == 3 && !substed) {
27956 key = field[2]
27957 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27958 \$ac_cs_awk_read_file
27959 next
27960 }
27961 }
27962 print line
27963 }
27964 \$ac_cs_awk_pipe_fini
27965 _ACAWK
27966 _ACEOF
27967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27968 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27969 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27970 else
27971 cat
27972 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27973 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27974 _ACEOF
27975
27976 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27977 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27978 # trailing colons and then remove the whole line if VPATH becomes empty
27979 # (actually we leave an empty line to preserve line numbers).
27980 if test "x$srcdir" = x.; then
27981 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27982 s/:*\$(srcdir):*/:/
27983 s/:*\${srcdir}:*/:/
27984 s/:*@srcdir@:*/:/
27985 s/^\([^=]*=[ ]*\):*/\1/
27986 s/:*$//
27987 s/^[^=]*=[ ]*$//
27988 }'
27989 fi
27990
27991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27992 fi # test -n "$CONFIG_FILES"
27993
27994 # Set up the scripts for CONFIG_HEADERS section.
27995 # No need to generate them if there are no CONFIG_HEADERS.
27996 # This happens for instance with `./config.status Makefile'.
27997 if test -n "$CONFIG_HEADERS"; then
27998 cat >"$tmp/defines.awk" <<\_ACAWK ||
27999 BEGIN {
28000 _ACEOF
28001
28002 # Transform confdefs.h into an awk script `defines.awk', embedded as
28003 # here-document in config.status, that substitutes the proper values into
28004 # config.h.in to produce config.h.
28005
28006 # Create a delimiter string that does not exist in confdefs.h, to ease
28007 # handling of long lines.
28008 ac_delim='%!_!# '
28009 for ac_last_try in false false :; do
28010 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28011 if test -z "$ac_t"; then
28012 break
28013 elif $ac_last_try; then
28014 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28015 else
28016 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28017 fi
28018 done
28019
28020 # For the awk script, D is an array of macro values keyed by name,
28021 # likewise P contains macro parameters if any. Preserve backslash
28022 # newline sequences.
28023
28024 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28025 sed -n '
28026 s/.\{148\}/&'"$ac_delim"'/g
28027 t rset
28028 :rset
28029 s/^[ ]*#[ ]*define[ ][ ]*/ /
28030 t def
28031 d
28032 :def
28033 s/\\$//
28034 t bsnl
28035 s/["\\]/\\&/g
28036 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28037 D["\1"]=" \3"/p
28038 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28039 d
28040 :bsnl
28041 s/["\\]/\\&/g
28042 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28043 D["\1"]=" \3\\\\\\n"\\/p
28044 t cont
28045 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28046 t cont
28047 d
28048 :cont
28049 n
28050 s/.\{148\}/&'"$ac_delim"'/g
28051 t clear
28052 :clear
28053 s/\\$//
28054 t bsnlc
28055 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28056 d
28057 :bsnlc
28058 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28059 b cont
28060 ' <confdefs.h | sed '
28061 s/'"$ac_delim"'/"\\\
28062 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28063
28064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28065 for (key in D) D_is_set[key] = 1
28066 FS = "\a"
28067 }
28068 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28069 line = \$ 0
28070 split(line, arg, " ")
28071 if (arg[1] == "#") {
28072 defundef = arg[2]
28073 mac1 = arg[3]
28074 } else {
28075 defundef = substr(arg[1], 2)
28076 mac1 = arg[2]
28077 }
28078 split(mac1, mac2, "(") #)
28079 macro = mac2[1]
28080 prefix = substr(line, 1, index(line, defundef) - 1)
28081 if (D_is_set[macro]) {
28082 # Preserve the white space surrounding the "#".
28083 print prefix "define", macro P[macro] D[macro]
28084 next
28085 } else {
28086 # Replace #undef with comments. This is necessary, for example,
28087 # in the case of _POSIX_SOURCE, which is predefined and required
28088 # on some systems where configure will not decide to define it.
28089 if (defundef == "undef") {
28090 print "/*", prefix defundef, macro, "*/"
28091 next
28092 }
28093 }
28094 }
28095 { print }
28096 _ACAWK
28097 _ACEOF
28098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28099 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28100 fi # test -n "$CONFIG_HEADERS"
28101
28102
28103 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28104 shift
28105 for ac_tag
28106 do
28107 case $ac_tag in
28108 :[FHLC]) ac_mode=$ac_tag; continue;;
28109 esac
28110 case $ac_mode$ac_tag in
28111 :[FHL]*:*);;
28112 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28113 :[FH]-) ac_tag=-:-;;
28114 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28115 esac
28116 ac_save_IFS=$IFS
28117 IFS=:
28118 set x $ac_tag
28119 IFS=$ac_save_IFS
28120 shift
28121 ac_file=$1
28122 shift
28123
28124 case $ac_mode in
28125 :L) ac_source=$1;;
28126 :[FH])
28127 ac_file_inputs=
28128 for ac_f
28129 do
28130 case $ac_f in
28131 -) ac_f="$tmp/stdin";;
28132 *) # Look for the file first in the build tree, then in the source tree
28133 # (if the path is not absolute). The absolute path cannot be DOS-style,
28134 # because $ac_f cannot contain `:'.
28135 test -f "$ac_f" ||
28136 case $ac_f in
28137 [\\/$]*) false;;
28138 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28139 esac ||
28140 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28141 esac
28142 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28143 as_fn_append ac_file_inputs " '$ac_f'"
28144 done
28145
28146 # Let's still pretend it is `configure' which instantiates (i.e., don't
28147 # use $as_me), people would be surprised to read:
28148 # /* config.h. Generated by config.status. */
28149 configure_input='Generated from '`
28150 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28151 `' by configure.'
28152 if test x"$ac_file" != x-; then
28153 configure_input="$ac_file. $configure_input"
28154 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28155 $as_echo "$as_me: creating $ac_file" >&6;}
28156 fi
28157 # Neutralize special characters interpreted by sed in replacement strings.
28158 case $configure_input in #(
28159 *\&* | *\|* | *\\* )
28160 ac_sed_conf_input=`$as_echo "$configure_input" |
28161 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28162 *) ac_sed_conf_input=$configure_input;;
28163 esac
28164
28165 case $ac_tag in
28166 *:-:* | *:-) cat >"$tmp/stdin" \
28167 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28168 esac
28169 ;;
28170 esac
28171
28172 ac_dir=`$as_dirname -- "$ac_file" ||
28173 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28174 X"$ac_file" : 'X\(//\)[^/]' \| \
28175 X"$ac_file" : 'X\(//\)$' \| \
28176 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28177 $as_echo X"$ac_file" |
28178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28179 s//\1/
28180 q
28181 }
28182 /^X\(\/\/\)[^/].*/{
28183 s//\1/
28184 q
28185 }
28186 /^X\(\/\/\)$/{
28187 s//\1/
28188 q
28189 }
28190 /^X\(\/\).*/{
28191 s//\1/
28192 q
28193 }
28194 s/.*/./; q'`
28195 as_dir="$ac_dir"; as_fn_mkdir_p
28196 ac_builddir=.
28197
28198 case "$ac_dir" in
28199 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28200 *)
28201 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28202 # A ".." for each directory in $ac_dir_suffix.
28203 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28204 case $ac_top_builddir_sub in
28205 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28206 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28207 esac ;;
28208 esac
28209 ac_abs_top_builddir=$ac_pwd
28210 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28211 # for backward compatibility:
28212 ac_top_builddir=$ac_top_build_prefix
28213
28214 case $srcdir in
28215 .) # We are building in place.
28216 ac_srcdir=.
28217 ac_top_srcdir=$ac_top_builddir_sub
28218 ac_abs_top_srcdir=$ac_pwd ;;
28219 [\\/]* | ?:[\\/]* ) # Absolute name.
28220 ac_srcdir=$srcdir$ac_dir_suffix;
28221 ac_top_srcdir=$srcdir
28222 ac_abs_top_srcdir=$srcdir ;;
28223 *) # Relative name.
28224 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28225 ac_top_srcdir=$ac_top_build_prefix$srcdir
28226 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28227 esac
28228 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28229
28230
28231 case $ac_mode in
28232 :F)
28233 #
28234 # CONFIG_FILE
28235 #
28236
28237 _ACEOF
28238
28239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28240 # If the template does not know about datarootdir, expand it.
28241 # FIXME: This hack should be removed a few years after 2.60.
28242 ac_datarootdir_hack=; ac_datarootdir_seen=
28243 ac_sed_dataroot='
28244 /datarootdir/ {
28245 p
28246 q
28247 }
28248 /@datadir@/p
28249 /@docdir@/p
28250 /@infodir@/p
28251 /@localedir@/p
28252 /@mandir@/p'
28253 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28254 *datarootdir*) ac_datarootdir_seen=yes;;
28255 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28257 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28258 _ACEOF
28259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28260 ac_datarootdir_hack='
28261 s&@datadir@&$datadir&g
28262 s&@docdir@&$docdir&g
28263 s&@infodir@&$infodir&g
28264 s&@localedir@&$localedir&g
28265 s&@mandir@&$mandir&g
28266 s&\\\${datarootdir}&$datarootdir&g' ;;
28267 esac
28268 _ACEOF
28269
28270 # Neutralize VPATH when `$srcdir' = `.'.
28271 # Shell code in configure.ac might set extrasub.
28272 # FIXME: do we really want to maintain this feature?
28273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28274 ac_sed_extra="$ac_vpsub
28275 $extrasub
28276 _ACEOF
28277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28278 :t
28279 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28280 s|@configure_input@|$ac_sed_conf_input|;t t
28281 s&@top_builddir@&$ac_top_builddir_sub&;t t
28282 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28283 s&@srcdir@&$ac_srcdir&;t t
28284 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28285 s&@top_srcdir@&$ac_top_srcdir&;t t
28286 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28287 s&@builddir@&$ac_builddir&;t t
28288 s&@abs_builddir@&$ac_abs_builddir&;t t
28289 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28290 $ac_datarootdir_hack
28291 "
28292 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28293 if $ac_cs_awk_getline; then
28294 $AWK -f "$tmp/subs.awk"
28295 else
28296 $AWK -f "$tmp/subs.awk" | $SHELL
28297 fi >$tmp/out \
28298 || as_fn_error "could not create $ac_file" "$LINENO" 5
28299
28300 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28301 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28302 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28304 which seems to be undefined. Please make sure it is defined." >&5
28305 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28306 which seems to be undefined. Please make sure it is defined." >&2;}
28307
28308 rm -f "$tmp/stdin"
28309 case $ac_file in
28310 -) cat "$tmp/out" && rm -f "$tmp/out";;
28311 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28312 esac \
28313 || as_fn_error "could not create $ac_file" "$LINENO" 5
28314 ;;
28315 :H)
28316 #
28317 # CONFIG_HEADER
28318 #
28319 if test x"$ac_file" != x-; then
28320 {
28321 $as_echo "/* $configure_input */" \
28322 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28323 } >"$tmp/config.h" \
28324 || as_fn_error "could not create $ac_file" "$LINENO" 5
28325 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28326 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28327 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28328 else
28329 rm -f "$ac_file"
28330 mv "$tmp/config.h" "$ac_file" \
28331 || as_fn_error "could not create $ac_file" "$LINENO" 5
28332 fi
28333 else
28334 $as_echo "/* $configure_input */" \
28335 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28336 || as_fn_error "could not create -" "$LINENO" 5
28337 fi
28338 ;;
28339
28340 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28341 $as_echo "$as_me: executing $ac_file commands" >&6;}
28342 ;;
28343 esac
28344
28345
28346 case $ac_file$ac_mode in
28347 "as":F) chmod +x as ;;
28348 "collect-ld":F) chmod +x collect-ld ;;
28349 "nm":F) chmod +x nm ;;
28350 "default":C)
28351 case ${CONFIG_HEADERS} in
28352 *auto-host.h:config.in*)
28353 echo > cstamp-h ;;
28354 esac
28355 # Make sure all the subdirs exist.
28356 for d in $subdirs doc build common c-family
28357 do
28358 test -d $d || mkdir $d
28359 done
28360 ;;
28361
28362 esac
28363 done # for ac_tag
28364
28365
28366 as_fn_exit 0
28367 _ACEOF
28368 ac_clean_files=$ac_clean_files_save
28369
28370 test $ac_write_fail = 0 ||
28371 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28372
28373
28374 # configure is writing to config.log, and then calls config.status.
28375 # config.status does its own redirection, appending to config.log.
28376 # Unfortunately, on DOS this fails, as config.log is still kept open
28377 # by configure, so config.status won't be able to write to it; its
28378 # output is simply discarded. So we exec the FD to /dev/null,
28379 # effectively closing config.log, so it can be properly (re)opened and
28380 # appended to by config.status. When coming back to configure, we
28381 # need to make the FD available again.
28382 if test "$no_create" != yes; then
28383 ac_cs_success=:
28384 ac_config_status_args=
28385 test "$silent" = yes &&
28386 ac_config_status_args="$ac_config_status_args --quiet"
28387 exec 5>/dev/null
28388 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28389 exec 5>>config.log
28390 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28391 # would make configure fail if this is the last instruction.
28392 $ac_cs_success || as_fn_exit $?
28393 fi
28394 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28396 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28397 fi
28398
28399