]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
[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 PICFLAG
604 enable_host_shared
605 enable_plugin
606 pluginlibs
607 CLOOGINC
608 CLOOGLIBS
609 ISLINC
610 ISLLIBS
611 GMPINC
612 GMPLIBS
613 target_cpu_default
614 fortran_target_objs
615 cxx_target_objs
616 c_target_objs
617 use_gcc_stdint
618 xm_defines
619 xm_include_list
620 xm_file_list
621 tm_p_include_list
622 tm_p_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 common_out_object_file
627 common_out_file
628 out_object_file
629 out_file
630 objc_boehm_gc
631 md_file
632 local_prefix
633 lang_tree_files
634 lang_specs_files
635 lang_opt_files
636 install
637 out_host_hook_obj
638 host_xm_defines
639 host_xm_include_list
640 host_xm_file_list
641 host_exeext
642 gcc_gxx_include_dir_add_sysroot
643 gcc_gxx_include_dir
644 gcc_config_arguments
645 float_h_file
646 extra_programs
647 extra_objs
648 extra_headers_list
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
651 extra_gcc_objs
652 TM_MULTILIB_EXCEPTIONS_CONFIG
653 TM_MULTILIB_CONFIG
654 TM_ENDIAN_CONFIG
655 tmake_file
656 xmake_file
657 cpp_install_dir
658 check_languages
659 build_file_translate
660 build_xm_defines
661 build_xm_include_list
662 build_xm_file_list
663 build_install_headers_dir
664 build_exeext
665 all_selected_languages
666 all_languages
667 all_lang_makefrags
668 all_gtfiles
669 all_compilers
670 srcdir
671 subdirs
672 dollar
673 gcc_tooldir
674 enable_lto
675 DO_LINK_MUTEX
676 MAINT
677 zlibinc
678 zlibdir
679 HOST_LIBS
680 libgcc_visibility
681 gcc_cv_readelf
682 gcc_cv_objdump
683 ORIGINAL_NM_FOR_TARGET
684 gcc_cv_nm
685 ORIGINAL_LD_FOR_TARGET
686 ORIGINAL_PLUGIN_LD_FOR_TARGET
687 gcc_cv_ld
688 ORIGINAL_AS_FOR_TARGET
689 gcc_cv_as
690 enable_fast_install
691 objdir
692 OTOOL64
693 OTOOL
694 LIPO
695 NMEDIT
696 DSYMUTIL
697 STRIP
698 OBJDUMP
699 ac_ct_DUMPBIN
700 DUMPBIN
701 LD
702 FGREP
703 SED
704 LIBTOOL
705 collect2
706 STMP_FIXINC
707 BUILD_LDFLAGS
708 BUILD_CXXFLAGS
709 BUILD_CFLAGS
710 CXX_FOR_BUILD
711 CC_FOR_BUILD
712 inhibit_libc
713 SYSTEM_HEADER_DIR
714 ALL
715 CROSS
716 CATOBJEXT
717 GENCAT
718 INSTOBJEXT
719 DATADIRNAME
720 CATALOGS
721 POSUB
722 GMSGFMT
723 XGETTEXT
724 INCINTL
725 LIBINTL_DEP
726 LIBINTL
727 USE_NLS
728 extra_opt_files
729 extra_modes_file
730 NATIVE_SYSTEM_HEADER_DIR
731 objext
732 manext
733 LIBICONV_DEP
734 LTLIBICONV
735 LIBICONV
736 LDEXP_LIB
737 EXTRA_GCC_LIBS
738 GNAT_LIBEXC
739 COLLECT2_LIBS
740 CXXDEPMODE
741 DEPDIR
742 am__leading_dot
743 CXXCPP
744 AR
745 NM
746 BISON
747 FLEX
748 GENERATED_MANPAGES
749 BUILD_INFO
750 MAKEINFO
751 have_mktemp_command
752 make_compare_target
753 INSTALL_DATA
754 INSTALL_PROGRAM
755 INSTALL
756 ranlib_flags
757 RANLIB
758 LN
759 LN_S
760 AWK
761 SET_MAKE
762 REPORT_BUGS_TEXI
763 REPORT_BUGS_TO
764 PKGVERSION
765 CONFIGURE_SPECS
766 CROSS_SYSTEM_HEADER_DIR
767 TARGET_SYSTEM_ROOT_DEFINE
768 TARGET_SYSTEM_ROOT
769 SYSROOT_CFLAGS_FOR_TARGET
770 enable_shared
771 enable_fixed_point
772 enable_decimal_float
773 with_float
774 with_cpu
775 enable_multiarch
776 enable_multilib
777 coverage_flags
778 valgrind_command
779 valgrind_path_defines
780 valgrind_path
781 TREECHECKING
782 TREEBROWSER
783 nocommon_flag
784 noexception_flags
785 warn_cxxflags
786 warn_cflags
787 c_strict_warn
788 strict_warn
789 c_loose_warn
790 loose_warn
791 EGREP
792 GREP
793 CPP
794 PICFLAG_FOR_TARGET
795 GNATMAKE
796 GNATBIND
797 ac_ct_CXX
798 CXXFLAGS
799 CXX
800 OBJEXT
801 EXEEXT
802 ac_ct_CC
803 CPPFLAGS
804 LDFLAGS
805 CFLAGS
806 CC
807 GENINSRC
808 target_subdir
809 host_subdir
810 build_subdir
811 build_libsubdir
812 target_noncanonical
813 target_os
814 target_vendor
815 target_cpu
816 target
817 host_os
818 host_vendor
819 host_cpu
820 host
821 build_os
822 build_vendor
823 build_cpu
824 build
825 target_alias
826 host_alias
827 build_alias
828 LIBS
829 ECHO_T
830 ECHO_N
831 ECHO_C
832 DEFS
833 mandir
834 localedir
835 libdir
836 psdir
837 pdfdir
838 dvidir
839 htmldir
840 infodir
841 docdir
842 oldincludedir
843 includedir
844 localstatedir
845 sharedstatedir
846 sysconfdir
847 datadir
848 datarootdir
849 libexecdir
850 sbindir
851 bindir
852 program_transform_name
853 prefix
854 exec_prefix
855 PACKAGE_URL
856 PACKAGE_BUGREPORT
857 PACKAGE_STRING
858 PACKAGE_VERSION
859 PACKAGE_TARNAME
860 PACKAGE_NAME
861 PATH_SEPARATOR
862 SHELL'
863 ac_subst_files='option_includes
864 language_hooks'
865 ac_user_opts='
866 enable_option_checking
867 with_build_libsubdir
868 with_local_prefix
869 with_gxx_include_dir
870 with_cpp_install_dir
871 enable_generated_files_in_srcdir
872 with_gnu_ld
873 with_ld
874 with_demangler_in_ld
875 with_gnu_as
876 with_as
877 enable_largefile
878 enable_build_format_warnings
879 enable_werror_always
880 enable_checking
881 enable_coverage
882 enable_gather_detailed_mem_stats
883 with_stabs
884 enable_multilib
885 enable_multiarch
886 enable___cxa_atexit
887 enable_decimal_float
888 enable_fixed_point
889 enable_threads
890 enable_tls
891 enable_objc_gc
892 with_dwarf2
893 enable_shared
894 with_native_system_header_dir
895 with_build_sysroot
896 with_sysroot
897 with_specs
898 with_pkgversion
899 with_bugurl
900 enable_languages
901 with_multilib_list
902 enable_rpath
903 with_libiconv_prefix
904 enable_sjlj_exceptions
905 enable_secureplt
906 enable_leading_mingw64_underscores
907 enable_cld
908 enable_frame_pointer
909 enable_win32_registry
910 enable_static
911 with_pic
912 enable_fast_install
913 enable_libtool_lock
914 with_plugin_ld
915 enable_gnu_indirect_function
916 enable_initfini_array
917 enable_comdat
918 with_glibc_version
919 enable_gnu_unique_object
920 enable_linker_build_id
921 with_long_double_128
922 with_gc
923 with_system_zlib
924 enable_maintainer_mode
925 enable_link_mutex
926 enable_version_specific_runtime_libs
927 enable_plugin
928 enable_host_shared
929 enable_libquadmath_support
930 with_linker_hash_style
931 '
932 ac_precious_vars='build_alias
933 host_alias
934 target_alias
935 CC
936 CFLAGS
937 LDFLAGS
938 LIBS
939 CPPFLAGS
940 CXX
941 CXXFLAGS
942 CCC
943 CPP
944 CXXCPP
945 GMPLIBS
946 GMPINC
947 ISLLIBS
948 ISLINC
949 CLOOGLIBS
950 CLOOGINC'
951
952
953 # Initialize some variables set by options.
954 ac_init_help=
955 ac_init_version=false
956 ac_unrecognized_opts=
957 ac_unrecognized_sep=
958 # The variables have the same names as the options, with
959 # dashes changed to underlines.
960 cache_file=/dev/null
961 exec_prefix=NONE
962 no_create=
963 no_recursion=
964 prefix=NONE
965 program_prefix=NONE
966 program_suffix=NONE
967 program_transform_name=s,x,x,
968 silent=
969 site=
970 srcdir=
971 verbose=
972 x_includes=NONE
973 x_libraries=NONE
974
975 # Installation directory options.
976 # These are left unexpanded so users can "make install exec_prefix=/foo"
977 # and all the variables that are supposed to be based on exec_prefix
978 # by default will actually change.
979 # Use braces instead of parens because sh, perl, etc. also accept them.
980 # (The list follows the same order as the GNU Coding Standards.)
981 bindir='${exec_prefix}/bin'
982 sbindir='${exec_prefix}/sbin'
983 libexecdir='${exec_prefix}/libexec'
984 datarootdir='${prefix}/share'
985 datadir='${datarootdir}'
986 sysconfdir='${prefix}/etc'
987 sharedstatedir='${prefix}/com'
988 localstatedir='${prefix}/var'
989 includedir='${prefix}/include'
990 oldincludedir='/usr/include'
991 docdir='${datarootdir}/doc/${PACKAGE}'
992 infodir='${datarootdir}/info'
993 htmldir='${docdir}'
994 dvidir='${docdir}'
995 pdfdir='${docdir}'
996 psdir='${docdir}'
997 libdir='${exec_prefix}/lib'
998 localedir='${datarootdir}/locale'
999 mandir='${datarootdir}/man'
1000
1001 ac_prev=
1002 ac_dashdash=
1003 for ac_option
1004 do
1005 # If the previous option needs an argument, assign it.
1006 if test -n "$ac_prev"; then
1007 eval $ac_prev=\$ac_option
1008 ac_prev=
1009 continue
1010 fi
1011
1012 case $ac_option in
1013 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1014 *) ac_optarg=yes ;;
1015 esac
1016
1017 # Accept the important Cygnus configure options, so we can diagnose typos.
1018
1019 case $ac_dashdash$ac_option in
1020 --)
1021 ac_dashdash=yes ;;
1022
1023 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024 ac_prev=bindir ;;
1025 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026 bindir=$ac_optarg ;;
1027
1028 -build | --build | --buil | --bui | --bu)
1029 ac_prev=build_alias ;;
1030 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031 build_alias=$ac_optarg ;;
1032
1033 -cache-file | --cache-file | --cache-fil | --cache-fi \
1034 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035 ac_prev=cache_file ;;
1036 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038 cache_file=$ac_optarg ;;
1039
1040 --config-cache | -C)
1041 cache_file=config.cache ;;
1042
1043 -datadir | --datadir | --datadi | --datad)
1044 ac_prev=datadir ;;
1045 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046 datadir=$ac_optarg ;;
1047
1048 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049 | --dataroo | --dataro | --datar)
1050 ac_prev=datarootdir ;;
1051 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053 datarootdir=$ac_optarg ;;
1054
1055 -disable-* | --disable-*)
1056 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059 as_fn_error "invalid feature name: $ac_useropt"
1060 ac_useropt_orig=$ac_useropt
1061 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1063 *"
1064 "enable_$ac_useropt"
1065 "*) ;;
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
1068 esac
1069 eval enable_$ac_useropt=no ;;
1070
1071 -docdir | --docdir | --docdi | --doc | --do)
1072 ac_prev=docdir ;;
1073 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074 docdir=$ac_optarg ;;
1075
1076 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077 ac_prev=dvidir ;;
1078 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079 dvidir=$ac_optarg ;;
1080
1081 -enable-* | --enable-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 as_fn_error "invalid feature name: $ac_useropt"
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1089 *"
1090 "enable_$ac_useropt"
1091 "*) ;;
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1094 esac
1095 eval enable_$ac_useropt=\$ac_optarg ;;
1096
1097 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1098 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1099 | --exec | --exe | --ex)
1100 ac_prev=exec_prefix ;;
1101 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1102 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1103 | --exec=* | --exe=* | --ex=*)
1104 exec_prefix=$ac_optarg ;;
1105
1106 -gas | --gas | --ga | --g)
1107 # Obsolete; use --with-gas.
1108 with_gas=yes ;;
1109
1110 -help | --help | --hel | --he | -h)
1111 ac_init_help=long ;;
1112 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1113 ac_init_help=recursive ;;
1114 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1115 ac_init_help=short ;;
1116
1117 -host | --host | --hos | --ho)
1118 ac_prev=host_alias ;;
1119 -host=* | --host=* | --hos=* | --ho=*)
1120 host_alias=$ac_optarg ;;
1121
1122 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1123 ac_prev=htmldir ;;
1124 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1125 | --ht=*)
1126 htmldir=$ac_optarg ;;
1127
1128 -includedir | --includedir | --includedi | --included | --include \
1129 | --includ | --inclu | --incl | --inc)
1130 ac_prev=includedir ;;
1131 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1132 | --includ=* | --inclu=* | --incl=* | --inc=*)
1133 includedir=$ac_optarg ;;
1134
1135 -infodir | --infodir | --infodi | --infod | --info | --inf)
1136 ac_prev=infodir ;;
1137 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1138 infodir=$ac_optarg ;;
1139
1140 -libdir | --libdir | --libdi | --libd)
1141 ac_prev=libdir ;;
1142 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1143 libdir=$ac_optarg ;;
1144
1145 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1146 | --libexe | --libex | --libe)
1147 ac_prev=libexecdir ;;
1148 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1149 | --libexe=* | --libex=* | --libe=*)
1150 libexecdir=$ac_optarg ;;
1151
1152 -localedir | --localedir | --localedi | --localed | --locale)
1153 ac_prev=localedir ;;
1154 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1155 localedir=$ac_optarg ;;
1156
1157 -localstatedir | --localstatedir | --localstatedi | --localstated \
1158 | --localstate | --localstat | --localsta | --localst | --locals)
1159 ac_prev=localstatedir ;;
1160 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1161 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1162 localstatedir=$ac_optarg ;;
1163
1164 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1165 ac_prev=mandir ;;
1166 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1167 mandir=$ac_optarg ;;
1168
1169 -nfp | --nfp | --nf)
1170 # Obsolete; use --without-fp.
1171 with_fp=no ;;
1172
1173 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174 | --no-cr | --no-c | -n)
1175 no_create=yes ;;
1176
1177 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1178 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179 no_recursion=yes ;;
1180
1181 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1182 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1183 | --oldin | --oldi | --old | --ol | --o)
1184 ac_prev=oldincludedir ;;
1185 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1186 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1187 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1188 oldincludedir=$ac_optarg ;;
1189
1190 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1191 ac_prev=prefix ;;
1192 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1193 prefix=$ac_optarg ;;
1194
1195 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1196 | --program-pre | --program-pr | --program-p)
1197 ac_prev=program_prefix ;;
1198 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1199 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1200 program_prefix=$ac_optarg ;;
1201
1202 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1203 | --program-suf | --program-su | --program-s)
1204 ac_prev=program_suffix ;;
1205 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1206 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1207 program_suffix=$ac_optarg ;;
1208
1209 -program-transform-name | --program-transform-name \
1210 | --program-transform-nam | --program-transform-na \
1211 | --program-transform-n | --program-transform- \
1212 | --program-transform | --program-transfor \
1213 | --program-transfo | --program-transf \
1214 | --program-trans | --program-tran \
1215 | --progr-tra | --program-tr | --program-t)
1216 ac_prev=program_transform_name ;;
1217 -program-transform-name=* | --program-transform-name=* \
1218 | --program-transform-nam=* | --program-transform-na=* \
1219 | --program-transform-n=* | --program-transform-=* \
1220 | --program-transform=* | --program-transfor=* \
1221 | --program-transfo=* | --program-transf=* \
1222 | --program-trans=* | --program-tran=* \
1223 | --progr-tra=* | --program-tr=* | --program-t=*)
1224 program_transform_name=$ac_optarg ;;
1225
1226 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1227 ac_prev=pdfdir ;;
1228 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1229 pdfdir=$ac_optarg ;;
1230
1231 -psdir | --psdir | --psdi | --psd | --ps)
1232 ac_prev=psdir ;;
1233 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234 psdir=$ac_optarg ;;
1235
1236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237 | -silent | --silent | --silen | --sile | --sil)
1238 silent=yes ;;
1239
1240 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1241 ac_prev=sbindir ;;
1242 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1243 | --sbi=* | --sb=*)
1244 sbindir=$ac_optarg ;;
1245
1246 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1247 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1248 | --sharedst | --shareds | --shared | --share | --shar \
1249 | --sha | --sh)
1250 ac_prev=sharedstatedir ;;
1251 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1252 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1253 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1254 | --sha=* | --sh=*)
1255 sharedstatedir=$ac_optarg ;;
1256
1257 -site | --site | --sit)
1258 ac_prev=site ;;
1259 -site=* | --site=* | --sit=*)
1260 site=$ac_optarg ;;
1261
1262 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1263 ac_prev=srcdir ;;
1264 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1265 srcdir=$ac_optarg ;;
1266
1267 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1268 | --syscon | --sysco | --sysc | --sys | --sy)
1269 ac_prev=sysconfdir ;;
1270 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1271 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1272 sysconfdir=$ac_optarg ;;
1273
1274 -target | --target | --targe | --targ | --tar | --ta | --t)
1275 ac_prev=target_alias ;;
1276 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1277 target_alias=$ac_optarg ;;
1278
1279 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1280 verbose=yes ;;
1281
1282 -version | --version | --versio | --versi | --vers | -V)
1283 ac_init_version=: ;;
1284
1285 -with-* | --with-*)
1286 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289 as_fn_error "invalid package name: $ac_useropt"
1290 ac_useropt_orig=$ac_useropt
1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1293 *"
1294 "with_$ac_useropt"
1295 "*) ;;
1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1297 ac_unrecognized_sep=', ';;
1298 esac
1299 eval with_$ac_useropt=\$ac_optarg ;;
1300
1301 -without-* | --without-*)
1302 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305 as_fn_error "invalid package name: $ac_useropt"
1306 ac_useropt_orig=$ac_useropt
1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1309 *"
1310 "with_$ac_useropt"
1311 "*) ;;
1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1313 ac_unrecognized_sep=', ';;
1314 esac
1315 eval with_$ac_useropt=no ;;
1316
1317 --x)
1318 # Obsolete; use --with-x.
1319 with_x=yes ;;
1320
1321 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1322 | --x-incl | --x-inc | --x-in | --x-i)
1323 ac_prev=x_includes ;;
1324 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1325 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1326 x_includes=$ac_optarg ;;
1327
1328 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1329 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1330 ac_prev=x_libraries ;;
1331 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1332 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1333 x_libraries=$ac_optarg ;;
1334
1335 -*) as_fn_error "unrecognized option: \`$ac_option'
1336 Try \`$0 --help' for more information."
1337 ;;
1338
1339 *=*)
1340 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1341 # Reject names that are not valid shell variable names.
1342 case $ac_envvar in #(
1343 '' | [0-9]* | *[!_$as_cr_alnum]* )
1344 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1345 esac
1346 eval $ac_envvar=\$ac_optarg
1347 export $ac_envvar ;;
1348
1349 *)
1350 # FIXME: should be removed in autoconf 3.0.
1351 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1352 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1353 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1354 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1355 ;;
1356
1357 esac
1358 done
1359
1360 if test -n "$ac_prev"; then
1361 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1362 as_fn_error "missing argument to $ac_option"
1363 fi
1364
1365 if test -n "$ac_unrecognized_opts"; then
1366 case $enable_option_checking in
1367 no) ;;
1368 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1369 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1370 esac
1371 fi
1372
1373 # Check all directory arguments for consistency.
1374 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1375 datadir sysconfdir sharedstatedir localstatedir includedir \
1376 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1377 libdir localedir mandir
1378 do
1379 eval ac_val=\$$ac_var
1380 # Remove trailing slashes.
1381 case $ac_val in
1382 */ )
1383 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1384 eval $ac_var=\$ac_val;;
1385 esac
1386 # Be sure to have absolute directory names.
1387 case $ac_val in
1388 [\\/$]* | ?:[\\/]* ) continue;;
1389 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1390 esac
1391 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1392 done
1393
1394 # There might be people who depend on the old broken behavior: `$host'
1395 # used to hold the argument of --host etc.
1396 # FIXME: To remove some day.
1397 build=$build_alias
1398 host=$host_alias
1399 target=$target_alias
1400
1401 # FIXME: To remove some day.
1402 if test "x$host_alias" != x; then
1403 if test "x$build_alias" = x; then
1404 cross_compiling=maybe
1405 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1406 If a cross compiler is detected then cross compile mode will be used." >&2
1407 elif test "x$build_alias" != "x$host_alias"; then
1408 cross_compiling=yes
1409 fi
1410 fi
1411
1412 ac_tool_prefix=
1413 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1414
1415 test "$silent" = yes && exec 6>/dev/null
1416
1417
1418 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1419 ac_ls_di=`ls -di .` &&
1420 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1421 as_fn_error "working directory cannot be determined"
1422 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1423 as_fn_error "pwd does not report name of working directory"
1424
1425
1426 # Find the source files, if location was not specified.
1427 if test -z "$srcdir"; then
1428 ac_srcdir_defaulted=yes
1429 # Try the directory containing this script, then the parent directory.
1430 ac_confdir=`$as_dirname -- "$as_myself" ||
1431 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1432 X"$as_myself" : 'X\(//\)[^/]' \| \
1433 X"$as_myself" : 'X\(//\)$' \| \
1434 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1435 $as_echo X"$as_myself" |
1436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1437 s//\1/
1438 q
1439 }
1440 /^X\(\/\/\)[^/].*/{
1441 s//\1/
1442 q
1443 }
1444 /^X\(\/\/\)$/{
1445 s//\1/
1446 q
1447 }
1448 /^X\(\/\).*/{
1449 s//\1/
1450 q
1451 }
1452 s/.*/./; q'`
1453 srcdir=$ac_confdir
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455 srcdir=..
1456 fi
1457 else
1458 ac_srcdir_defaulted=no
1459 fi
1460 if test ! -r "$srcdir/$ac_unique_file"; then
1461 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1462 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1463 fi
1464 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1465 ac_abs_confdir=`(
1466 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1467 pwd)`
1468 # When building in place, set srcdir=.
1469 if test "$ac_abs_confdir" = "$ac_pwd"; then
1470 srcdir=.
1471 fi
1472 # Remove unnecessary trailing slashes from srcdir.
1473 # Double slashes in file names in object file debugging info
1474 # mess up M-x gdb in Emacs.
1475 case $srcdir in
1476 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1477 esac
1478 for ac_var in $ac_precious_vars; do
1479 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1480 eval ac_env_${ac_var}_value=\$${ac_var}
1481 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1482 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1483 done
1484
1485 #
1486 # Report the --help message.
1487 #
1488 if test "$ac_init_help" = "long"; then
1489 # Omit some internal or obsolete options to make the list less imposing.
1490 # This message is too long to be a string in the A/UX 3.1 sh.
1491 cat <<_ACEOF
1492 \`configure' configures this package to adapt to many kinds of systems.
1493
1494 Usage: $0 [OPTION]... [VAR=VALUE]...
1495
1496 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1497 VAR=VALUE. See below for descriptions of some of the useful variables.
1498
1499 Defaults for the options are specified in brackets.
1500
1501 Configuration:
1502 -h, --help display this help and exit
1503 --help=short display options specific to this package
1504 --help=recursive display the short help of all the included packages
1505 -V, --version display version information and exit
1506 -q, --quiet, --silent do not print \`checking...' messages
1507 --cache-file=FILE cache test results in FILE [disabled]
1508 -C, --config-cache alias for \`--cache-file=config.cache'
1509 -n, --no-create do not create output files
1510 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1511
1512 Installation directories:
1513 --prefix=PREFIX install architecture-independent files in PREFIX
1514 [$ac_default_prefix]
1515 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1516 [PREFIX]
1517
1518 By default, \`make install' will install all the files in
1519 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1520 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1521 for instance \`--prefix=\$HOME'.
1522
1523 For better control, use the options below.
1524
1525 Fine tuning of the installation directories:
1526 --bindir=DIR user executables [EPREFIX/bin]
1527 --sbindir=DIR system admin executables [EPREFIX/sbin]
1528 --libexecdir=DIR program executables [EPREFIX/libexec]
1529 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1530 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1531 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1532 --libdir=DIR object code libraries [EPREFIX/lib]
1533 --includedir=DIR C header files [PREFIX/include]
1534 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1535 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1536 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1537 --infodir=DIR info documentation [DATAROOTDIR/info]
1538 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1539 --mandir=DIR man documentation [DATAROOTDIR/man]
1540 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1541 --htmldir=DIR html documentation [DOCDIR]
1542 --dvidir=DIR dvi documentation [DOCDIR]
1543 --pdfdir=DIR pdf documentation [DOCDIR]
1544 --psdir=DIR ps documentation [DOCDIR]
1545 _ACEOF
1546
1547 cat <<\_ACEOF
1548
1549 Program names:
1550 --program-prefix=PREFIX prepend PREFIX to installed program names
1551 --program-suffix=SUFFIX append SUFFIX to installed program names
1552 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1553
1554 System types:
1555 --build=BUILD configure for building on BUILD [guessed]
1556 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1557 --target=TARGET configure for building compilers for TARGET [HOST]
1558 _ACEOF
1559 fi
1560
1561 if test -n "$ac_init_help"; then
1562
1563 cat <<\_ACEOF
1564
1565 Optional Features:
1566 --disable-option-checking ignore unrecognized --enable/--with options
1567 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1568 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1569 --enable-generated-files-in-srcdir
1570 put copies of generated files in source dir intended
1571 for creating source tarballs for users without
1572 texinfo bison or flex
1573 --disable-largefile omit support for large files
1574 --disable-build-format-warnings
1575 don't use -Wformat while building GCC
1576 --enable-werror-always enable -Werror despite compiler version
1577 --enable-checking[=LIST]
1578 enable expensive run-time checks. With LIST, enable
1579 only specific categories of checks. Categories are:
1580 yes,no,all,none,release. Flags are:
1581 assert,df,fold,gc,gcac,gimple,misc,
1582 rtlflag,rtl,runtime,tree,valgrind,types
1583 --enable-coverage[=LEVEL]
1584 enable compiler's code coverage collection. Use to
1585 measure compiler performance and locate unused parts
1586 of the compiler. With LEVEL, specify optimization.
1587 Values are opt, noopt, default is noopt
1588 --enable-gather-detailed-mem-stats
1589 enable detailed memory allocation stats gathering
1590 --enable-multilib enable library support for multiple ABIs
1591 --enable-multiarch enable support for multiarch paths
1592 --enable-__cxa_atexit enable __cxa_atexit for C++
1593 --enable-decimal-float={no,yes,bid,dpd}
1594 enable decimal float extension to C. Selecting 'bid'
1595 or 'dpd' choses which decimal floating point format
1596 to use
1597 --enable-fixed-point enable fixed-point arithmetic extension to C
1598 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1599 package
1600 --enable-tls enable or disable generation of tls code overriding
1601 the assembler check for tls support
1602 --enable-objc-gc enable the use of Boehm's garbage collector with the
1603 GNU Objective-C runtime
1604 --disable-shared don't provide a shared libgcc
1605 --enable-languages=LIST specify which front-ends to build
1606 --disable-rpath do not hardcode runtime library paths
1607 --enable-sjlj-exceptions
1608 arrange to use setjmp/longjmp exception handling
1609 --enable-secureplt enable -msecure-plt by default for PowerPC
1610 --enable-leading-mingw64-underscores
1611 enable leading underscores on 64 bit mingw targets
1612 --enable-cld enable -mcld by default for 32bit x86
1613 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1614 x86
1615 --disable-win32-registry
1616 disable lookup of installation paths in the Registry
1617 on Windows hosts
1618 --enable-win32-registry enable registry lookup (default)
1619 --enable-win32-registry=KEY
1620 use KEY instead of GCC version as the last portion
1621 of the registry key
1622 --enable-shared[=PKGS] build shared libraries [default=yes]
1623 --enable-static[=PKGS] build static libraries [default=yes]
1624 --enable-fast-install[=PKGS]
1625 optimize for fast installation [default=yes]
1626 --disable-libtool-lock avoid locking (might break parallel builds)
1627 --enable-gnu-indirect-function
1628 enable the use of the @gnu_indirect_function to
1629 glibc systems
1630 --enable-initfini-array use .init_array/.fini_array sections
1631 --enable-comdat enable COMDAT group support
1632 --enable-gnu-unique-object
1633 enable the use of the @gnu_unique_object ELF
1634 extension on glibc systems
1635 --enable-linker-build-id
1636 compiler will always pass --build-id to linker
1637 --enable-maintainer-mode
1638 enable make rules and dependencies not useful (and
1639 sometimes confusing) to the casual installer
1640 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1641 thrashing on the build machine
1642 --enable-version-specific-runtime-libs
1643 specify that runtime libraries should be installed
1644 in a compiler-specific directory
1645 --enable-plugin enable plugin support
1646 --enable-host-shared build host code as shared libraries
1647 --disable-libquadmath-support
1648 disable libquadmath support for Fortran
1649
1650 Optional Packages:
1651 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1652 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1653 --with-build-libsubdir=DIR Directory where to find libraries for build system
1654 --with-local-prefix=DIR specifies directory to put local include
1655 --with-gxx-include-dir=DIR
1656 specifies directory to put g++ header files
1657 --with-cpp-install-dir=DIR
1658 install the user visible C preprocessor in DIR
1659 (relative to PREFIX) as well as PREFIX/bin
1660 --with-gnu-ld arrange to work with GNU ld
1661 --with-ld arrange to use the specified ld (full pathname)
1662 --with-demangler-in-ld try to use demangler in GNU ld
1663 --with-gnu-as arrange to work with GNU as
1664 --with-as arrange to use the specified as (full pathname)
1665 --with-stabs arrange to use stabs instead of host debug format
1666 --with-dwarf2 force the default debug format to be DWARF 2
1667 --with-native-system-header-dir=dir
1668 use dir as the directory to look for standard
1669 system header files in. Defaults to /usr/include.
1670 --with-build-sysroot=sysroot
1671 use sysroot as the system root during the build
1672 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1673 --with-specs=SPECS add SPECS to driver command-line processing
1674 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1675 --with-bugurl=URL Direct users to URL to report a bug
1676 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1677 --with-gnu-ld assume the C compiler uses GNU ld default=no
1678 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1679 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1680 --with-pic try to use only PIC/non-PIC objects [default=use
1681 both]
1682 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1683 --with-plugin-ld=[ARG] specify the plugin linker
1684 --with-glibc-version=M.N
1685 assume GCC used with glibc version M.N or later
1686 --with-long-double-128 use 128-bit long double by default
1687 --with-gc={page,zone} this option is not supported anymore. It used to
1688 choose the garbage collection mechanism to use with
1689 the compiler
1690 --with-system-zlib use installed libz
1691 --with-linker-hash-style={sysv,gnu,both}
1692 specify the linker hash style
1693
1694 Some influential environment variables:
1695 CC C compiler command
1696 CFLAGS C compiler flags
1697 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1698 nonstandard directory <lib dir>
1699 LIBS libraries to pass to the linker, e.g. -l<library>
1700 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1701 you have headers in a nonstandard directory <include dir>
1702 CXX C++ compiler command
1703 CXXFLAGS C++ compiler flags
1704 CPP C preprocessor
1705 CXXCPP C++ preprocessor
1706 GMPLIBS How to link GMP
1707 GMPINC How to find GMP include files
1708 ISLLIBS How to link ISL
1709 ISLINC How to find ISL include files
1710 CLOOGLIBS How to link CLOOG
1711 CLOOGINC How to find CLOOG include files
1712
1713 Use these variables to override the choices made by `configure' or to help
1714 it to find libraries and programs with nonstandard names/locations.
1715
1716 Report bugs to the package provider.
1717 _ACEOF
1718 ac_status=$?
1719 fi
1720
1721 if test "$ac_init_help" = "recursive"; then
1722 # If there are subdirs, report their specific --help.
1723 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1724 test -d "$ac_dir" ||
1725 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1726 continue
1727 ac_builddir=.
1728
1729 case "$ac_dir" in
1730 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1731 *)
1732 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1733 # A ".." for each directory in $ac_dir_suffix.
1734 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1735 case $ac_top_builddir_sub in
1736 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1737 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1738 esac ;;
1739 esac
1740 ac_abs_top_builddir=$ac_pwd
1741 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1742 # for backward compatibility:
1743 ac_top_builddir=$ac_top_build_prefix
1744
1745 case $srcdir in
1746 .) # We are building in place.
1747 ac_srcdir=.
1748 ac_top_srcdir=$ac_top_builddir_sub
1749 ac_abs_top_srcdir=$ac_pwd ;;
1750 [\\/]* | ?:[\\/]* ) # Absolute name.
1751 ac_srcdir=$srcdir$ac_dir_suffix;
1752 ac_top_srcdir=$srcdir
1753 ac_abs_top_srcdir=$srcdir ;;
1754 *) # Relative name.
1755 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1756 ac_top_srcdir=$ac_top_build_prefix$srcdir
1757 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1758 esac
1759 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1760
1761 cd "$ac_dir" || { ac_status=$?; continue; }
1762 # Check for guested configure.
1763 if test -f "$ac_srcdir/configure.gnu"; then
1764 echo &&
1765 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1766 elif test -f "$ac_srcdir/configure"; then
1767 echo &&
1768 $SHELL "$ac_srcdir/configure" --help=recursive
1769 else
1770 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1771 fi || ac_status=$?
1772 cd "$ac_pwd" || { ac_status=$?; break; }
1773 done
1774 fi
1775
1776 test -n "$ac_init_help" && exit $ac_status
1777 if $ac_init_version; then
1778 cat <<\_ACEOF
1779 configure
1780 generated by GNU Autoconf 2.64
1781
1782 Copyright (C) 2009 Free Software Foundation, Inc.
1783 This configure script is free software; the Free Software Foundation
1784 gives unlimited permission to copy, distribute and modify it.
1785 _ACEOF
1786 exit
1787 fi
1788
1789 ## ------------------------ ##
1790 ## Autoconf initialization. ##
1791 ## ------------------------ ##
1792
1793 # ac_fn_c_try_compile LINENO
1794 # --------------------------
1795 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_c_try_compile ()
1797 {
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 rm -f conftest.$ac_objext
1800 if { { ac_try="$ac_compile"
1801 case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804 esac
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_compile") 2>conftest.err
1808 ac_status=$?
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1813 fi
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_c_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest.$ac_objext; then :
1819 ac_retval=0
1820 else
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1823
1824 ac_retval=1
1825 fi
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827 return $ac_retval
1828
1829 } # ac_fn_c_try_compile
1830
1831 # ac_fn_cxx_try_compile LINENO
1832 # ----------------------------
1833 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1834 ac_fn_cxx_try_compile ()
1835 {
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 rm -f conftest.$ac_objext
1838 if { { ac_try="$ac_compile"
1839 case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_compile") 2>conftest.err
1846 ac_status=$?
1847 if test -s conftest.err; then
1848 grep -v '^ *+' conftest.err >conftest.er1
1849 cat conftest.er1 >&5
1850 mv -f conftest.er1 conftest.err
1851 fi
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && {
1854 test -z "$ac_cxx_werror_flag" ||
1855 test ! -s conftest.err
1856 } && test -s conftest.$ac_objext; then :
1857 ac_retval=0
1858 else
1859 $as_echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1861
1862 ac_retval=1
1863 fi
1864 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1865 return $ac_retval
1866
1867 } # ac_fn_cxx_try_compile
1868
1869 # ac_fn_c_try_cpp LINENO
1870 # ----------------------
1871 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1872 ac_fn_c_try_cpp ()
1873 {
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 if { { ac_try="$ac_cpp conftest.$ac_ext"
1876 case "(($ac_try" in
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1879 esac
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1883 ac_status=$?
1884 if test -s conftest.err; then
1885 grep -v '^ *+' conftest.err >conftest.er1
1886 cat conftest.er1 >&5
1887 mv -f conftest.er1 conftest.err
1888 fi
1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; } >/dev/null && {
1891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1892 test ! -s conftest.err
1893 }; then :
1894 ac_retval=0
1895 else
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1898
1899 ac_retval=1
1900 fi
1901 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902 return $ac_retval
1903
1904 } # ac_fn_c_try_cpp
1905
1906 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1907 # -------------------------------------------------------
1908 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1909 # the include files in INCLUDES and setting the cache variable VAR
1910 # accordingly.
1911 ac_fn_c_check_header_mongrel ()
1912 {
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1918 $as_echo_n "(cached) " >&6
1919 fi
1920 eval ac_res=\$$3
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922 $as_echo "$ac_res" >&6; }
1923 else
1924 # Is the header compilable?
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1926 $as_echo_n "checking $2 usability... " >&6; }
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1929 $4
1930 #include <$2>
1931 _ACEOF
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933 ac_header_compiler=yes
1934 else
1935 ac_header_compiler=no
1936 fi
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1939 $as_echo "$ac_header_compiler" >&6; }
1940
1941 # Is the header present?
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1943 $as_echo_n "checking $2 presence... " >&6; }
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 #include <$2>
1947 _ACEOF
1948 if ac_fn_c_try_cpp "$LINENO"; then :
1949 ac_header_preproc=yes
1950 else
1951 ac_header_preproc=no
1952 fi
1953 rm -f conftest.err conftest.$ac_ext
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1955 $as_echo "$ac_header_preproc" >&6; }
1956
1957 # So? What about this header?
1958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1959 yes:no: )
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1961 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1963 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1964 ;;
1965 no:yes:* )
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1967 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1969 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1971 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1973 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1975 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1976 ;;
1977 esac
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979 $as_echo_n "checking for $2... " >&6; }
1980 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1981 $as_echo_n "(cached) " >&6
1982 else
1983 eval "$3=\$ac_header_compiler"
1984 fi
1985 eval ac_res=\$$3
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1988 fi
1989 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1990
1991 } # ac_fn_c_check_header_mongrel
1992
1993 # ac_fn_c_try_run LINENO
1994 # ----------------------
1995 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1996 # that executables *can* be run.
1997 ac_fn_c_try_run ()
1998 {
1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000 if { { ac_try="$ac_link"
2001 case "(($ac_try" in
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2004 esac
2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006 $as_echo "$ac_try_echo"; } >&5
2007 (eval "$ac_link") 2>&5
2008 ac_status=$?
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2011 { { case "(($ac_try" in
2012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013 *) ac_try_echo=$ac_try;;
2014 esac
2015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016 $as_echo "$ac_try_echo"; } >&5
2017 (eval "$ac_try") 2>&5
2018 ac_status=$?
2019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2020 test $ac_status = 0; }; }; then :
2021 ac_retval=0
2022 else
2023 $as_echo "$as_me: program exited with status $ac_status" >&5
2024 $as_echo "$as_me: failed program was:" >&5
2025 sed 's/^/| /' conftest.$ac_ext >&5
2026
2027 ac_retval=$ac_status
2028 fi
2029 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2030 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2031 return $ac_retval
2032
2033 } # ac_fn_c_try_run
2034
2035 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2036 # -------------------------------------------------------
2037 # Tests whether HEADER exists and can be compiled using the include files in
2038 # INCLUDES, setting the cache variable VAR accordingly.
2039 ac_fn_c_check_header_compile ()
2040 {
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043 $as_echo_n "checking for $2... " >&6; }
2044 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2045 $as_echo_n "(cached) " >&6
2046 else
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2049 $4
2050 #include <$2>
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"; then :
2053 eval "$3=yes"
2054 else
2055 eval "$3=no"
2056 fi
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 fi
2059 eval ac_res=\$$3
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2063
2064 } # ac_fn_c_check_header_compile
2065
2066 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2067 # --------------------------------------------
2068 # Tries to find the compile-time value of EXPR in a program that includes
2069 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2070 # computed
2071 ac_fn_c_compute_int ()
2072 {
2073 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074 if test "$cross_compiling" = yes; then
2075 # Depending upon the size, compute the lo and hi bounds.
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2078 $4
2079 int
2080 main ()
2081 {
2082 static int test_array [1 - 2 * !(($2) >= 0)];
2083 test_array [0] = 0
2084
2085 ;
2086 return 0;
2087 }
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090 ac_lo=0 ac_mid=0
2091 while :; do
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h. */
2094 $4
2095 int
2096 main ()
2097 {
2098 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2099 test_array [0] = 0
2100
2101 ;
2102 return 0;
2103 }
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106 ac_hi=$ac_mid; break
2107 else
2108 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2109 if test $ac_lo -le $ac_mid; then
2110 ac_lo= ac_hi=
2111 break
2112 fi
2113 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2114 fi
2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 done
2117 else
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2120 $4
2121 int
2122 main ()
2123 {
2124 static int test_array [1 - 2 * !(($2) < 0)];
2125 test_array [0] = 0
2126
2127 ;
2128 return 0;
2129 }
2130 _ACEOF
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132 ac_hi=-1 ac_mid=-1
2133 while :; do
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2136 $4
2137 int
2138 main ()
2139 {
2140 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2141 test_array [0] = 0
2142
2143 ;
2144 return 0;
2145 }
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148 ac_lo=$ac_mid; break
2149 else
2150 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2151 if test $ac_mid -le $ac_hi; then
2152 ac_lo= ac_hi=
2153 break
2154 fi
2155 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2156 fi
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 done
2159 else
2160 ac_lo= ac_hi=
2161 fi
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 fi
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 # Binary search between lo and hi bounds.
2166 while test "x$ac_lo" != "x$ac_hi"; do
2167 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2170 $4
2171 int
2172 main ()
2173 {
2174 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2175 test_array [0] = 0
2176
2177 ;
2178 return 0;
2179 }
2180 _ACEOF
2181 if ac_fn_c_try_compile "$LINENO"; then :
2182 ac_hi=$ac_mid
2183 else
2184 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2185 fi
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 done
2188 case $ac_lo in #((
2189 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2190 '') ac_retval=1 ;;
2191 esac
2192 else
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2195 $4
2196 static long int longval () { return $2; }
2197 static unsigned long int ulongval () { return $2; }
2198 #include <stdio.h>
2199 #include <stdlib.h>
2200 int
2201 main ()
2202 {
2203
2204 FILE *f = fopen ("conftest.val", "w");
2205 if (! f)
2206 return 1;
2207 if (($2) < 0)
2208 {
2209 long int i = longval ();
2210 if (i != ($2))
2211 return 1;
2212 fprintf (f, "%ld", i);
2213 }
2214 else
2215 {
2216 unsigned long int i = ulongval ();
2217 if (i != ($2))
2218 return 1;
2219 fprintf (f, "%lu", i);
2220 }
2221 /* Do not output a trailing newline, as this causes \r\n confusion
2222 on some platforms. */
2223 return ferror (f) || fclose (f) != 0;
2224
2225 ;
2226 return 0;
2227 }
2228 _ACEOF
2229 if ac_fn_c_try_run "$LINENO"; then :
2230 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2231 else
2232 ac_retval=1
2233 fi
2234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2235 conftest.$ac_objext conftest.beam conftest.$ac_ext
2236 rm -f conftest.val
2237
2238 fi
2239 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2240 return $ac_retval
2241
2242 } # ac_fn_c_compute_int
2243
2244 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2245 # -------------------------------------------
2246 # Tests whether TYPE exists after having included INCLUDES, setting cache
2247 # variable VAR accordingly.
2248 ac_fn_c_check_type ()
2249 {
2250 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2252 $as_echo_n "checking for $2... " >&6; }
2253 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2254 $as_echo_n "(cached) " >&6
2255 else
2256 eval "$3=no"
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2259 $4
2260 int
2261 main ()
2262 {
2263 if (sizeof ($2))
2264 return 0;
2265 ;
2266 return 0;
2267 }
2268 _ACEOF
2269 if ac_fn_c_try_compile "$LINENO"; then :
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2272 $4
2273 int
2274 main ()
2275 {
2276 if (sizeof (($2)))
2277 return 0;
2278 ;
2279 return 0;
2280 }
2281 _ACEOF
2282 if ac_fn_c_try_compile "$LINENO"; then :
2283
2284 else
2285 eval "$3=yes"
2286 fi
2287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2288 fi
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 fi
2291 eval ac_res=\$$3
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293 $as_echo "$ac_res" >&6; }
2294 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2295
2296 } # ac_fn_c_check_type
2297
2298 # ac_fn_c_find_intX_t LINENO BITS VAR
2299 # -----------------------------------
2300 # Finds a signed integer type with width BITS, setting cache variable VAR
2301 # accordingly.
2302 ac_fn_c_find_intX_t ()
2303 {
2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2306 $as_echo_n "checking for int$2_t... " >&6; }
2307 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2308 $as_echo_n "(cached) " >&6
2309 else
2310 eval "$3=no"
2311 for ac_type in int$2_t 'int' 'long int' \
2312 'long long int' 'short int' 'signed char'; do
2313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h. */
2315 $ac_includes_default
2316 int
2317 main ()
2318 {
2319 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2320 test_array [0] = 0
2321
2322 ;
2323 return 0;
2324 }
2325 _ACEOF
2326 if ac_fn_c_try_compile "$LINENO"; then :
2327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328 /* end confdefs.h. */
2329 $ac_includes_default
2330 int
2331 main ()
2332 {
2333 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2334 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2335 test_array [0] = 0
2336
2337 ;
2338 return 0;
2339 }
2340 _ACEOF
2341 if ac_fn_c_try_compile "$LINENO"; then :
2342
2343 else
2344 case $ac_type in #(
2345 int$2_t) :
2346 eval "$3=yes" ;; #(
2347 *) :
2348 eval "$3=\$ac_type" ;;
2349 esac
2350 fi
2351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2352 fi
2353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2354 eval as_val=\$$3
2355 if test "x$as_val" = x""no; then :
2356
2357 else
2358 break
2359 fi
2360 done
2361 fi
2362 eval ac_res=\$$3
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2364 $as_echo "$ac_res" >&6; }
2365 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2366
2367 } # ac_fn_c_find_intX_t
2368
2369 # ac_fn_c_try_link LINENO
2370 # -----------------------
2371 # Try to link conftest.$ac_ext, and return whether this succeeded.
2372 ac_fn_c_try_link ()
2373 {
2374 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2375 rm -f conftest.$ac_objext conftest$ac_exeext
2376 if { { ac_try="$ac_link"
2377 case "(($ac_try" in
2378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379 *) ac_try_echo=$ac_try;;
2380 esac
2381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2382 $as_echo "$ac_try_echo"; } >&5
2383 (eval "$ac_link") 2>conftest.err
2384 ac_status=$?
2385 if test -s conftest.err; then
2386 grep -v '^ *+' conftest.err >conftest.er1
2387 cat conftest.er1 >&5
2388 mv -f conftest.er1 conftest.err
2389 fi
2390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2391 test $ac_status = 0; } && {
2392 test -z "$ac_c_werror_flag" ||
2393 test ! -s conftest.err
2394 } && test -s conftest$ac_exeext && {
2395 test "$cross_compiling" = yes ||
2396 $as_test_x conftest$ac_exeext
2397 }; then :
2398 ac_retval=0
2399 else
2400 $as_echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2402
2403 ac_retval=1
2404 fi
2405 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2406 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2407 # interfere with the next link command; also delete a directory that is
2408 # left behind by Apple's compiler. We do this before executing the actions.
2409 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2410 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2411 return $ac_retval
2412
2413 } # ac_fn_c_try_link
2414
2415 # ac_fn_c_find_uintX_t LINENO BITS VAR
2416 # ------------------------------------
2417 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2418 # accordingly.
2419 ac_fn_c_find_uintX_t ()
2420 {
2421 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2423 $as_echo_n "checking for uint$2_t... " >&6; }
2424 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2425 $as_echo_n "(cached) " >&6
2426 else
2427 eval "$3=no"
2428 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2429 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2432 $ac_includes_default
2433 int
2434 main ()
2435 {
2436 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2437 test_array [0] = 0
2438
2439 ;
2440 return 0;
2441 }
2442 _ACEOF
2443 if ac_fn_c_try_compile "$LINENO"; then :
2444 case $ac_type in #(
2445 uint$2_t) :
2446 eval "$3=yes" ;; #(
2447 *) :
2448 eval "$3=\$ac_type" ;;
2449 esac
2450 fi
2451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452 eval as_val=\$$3
2453 if test "x$as_val" = x""no; then :
2454
2455 else
2456 break
2457 fi
2458 done
2459 fi
2460 eval ac_res=\$$3
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2462 $as_echo "$ac_res" >&6; }
2463 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2464
2465 } # ac_fn_c_find_uintX_t
2466
2467 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2468 # ----------------------------------------------
2469 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2470 ac_fn_c_check_header_preproc ()
2471 {
2472 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2474 $as_echo_n "checking for $2... " >&6; }
2475 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2476 $as_echo_n "(cached) " >&6
2477 else
2478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2479 /* end confdefs.h. */
2480 #include <$2>
2481 _ACEOF
2482 if ac_fn_c_try_cpp "$LINENO"; then :
2483 eval "$3=yes"
2484 else
2485 eval "$3=no"
2486 fi
2487 rm -f conftest.err conftest.$ac_ext
2488 fi
2489 eval ac_res=\$$3
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2491 $as_echo "$ac_res" >&6; }
2492 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2493
2494 } # ac_fn_c_check_header_preproc
2495
2496 # ac_fn_cxx_try_cpp LINENO
2497 # ------------------------
2498 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2499 ac_fn_cxx_try_cpp ()
2500 {
2501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2502 if { { ac_try="$ac_cpp conftest.$ac_ext"
2503 case "(($ac_try" in
2504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505 *) ac_try_echo=$ac_try;;
2506 esac
2507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2508 $as_echo "$ac_try_echo"; } >&5
2509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2510 ac_status=$?
2511 if test -s conftest.err; then
2512 grep -v '^ *+' conftest.err >conftest.er1
2513 cat conftest.er1 >&5
2514 mv -f conftest.er1 conftest.err
2515 fi
2516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2517 test $ac_status = 0; } >/dev/null && {
2518 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2519 test ! -s conftest.err
2520 }; then :
2521 ac_retval=0
2522 else
2523 $as_echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2525
2526 ac_retval=1
2527 fi
2528 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2529 return $ac_retval
2530
2531 } # ac_fn_cxx_try_cpp
2532
2533 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2534 # ------------------------------------------------
2535 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2536 ac_fn_cxx_check_header_preproc ()
2537 {
2538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2540 $as_echo_n "checking for $2... " >&6; }
2541 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2542 $as_echo_n "(cached) " >&6
2543 else
2544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h. */
2546 #include <$2>
2547 _ACEOF
2548 if ac_fn_cxx_try_cpp "$LINENO"; then :
2549 eval "$3=yes"
2550 else
2551 eval "$3=no"
2552 fi
2553 rm -f conftest.err conftest.$ac_ext
2554 fi
2555 eval ac_res=\$$3
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2557 $as_echo "$ac_res" >&6; }
2558 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2559
2560 } # ac_fn_cxx_check_header_preproc
2561
2562 # ac_fn_c_check_func LINENO FUNC VAR
2563 # ----------------------------------
2564 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2565 ac_fn_c_check_func ()
2566 {
2567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2569 $as_echo_n "checking for $2... " >&6; }
2570 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2571 $as_echo_n "(cached) " >&6
2572 else
2573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574 /* end confdefs.h. */
2575 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2577 #define $2 innocuous_$2
2578
2579 /* System header to define __stub macros and hopefully few prototypes,
2580 which can conflict with char $2 (); below.
2581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2582 <limits.h> exists even on freestanding compilers. */
2583
2584 #ifdef __STDC__
2585 # include <limits.h>
2586 #else
2587 # include <assert.h>
2588 #endif
2589
2590 #undef $2
2591
2592 /* Override any GCC internal prototype to avoid an error.
2593 Use char because int might match the return type of a GCC
2594 builtin and then its argument prototype would still apply. */
2595 #ifdef __cplusplus
2596 extern "C"
2597 #endif
2598 char $2 ();
2599 /* The GNU C library defines this for functions which it implements
2600 to always fail with ENOSYS. Some functions are actually named
2601 something starting with __ and the normal name is an alias. */
2602 #if defined __stub_$2 || defined __stub___$2
2603 choke me
2604 #endif
2605
2606 int
2607 main ()
2608 {
2609 return $2 ();
2610 ;
2611 return 0;
2612 }
2613 _ACEOF
2614 if ac_fn_c_try_link "$LINENO"; then :
2615 eval "$3=yes"
2616 else
2617 eval "$3=no"
2618 fi
2619 rm -f core conftest.err conftest.$ac_objext \
2620 conftest$ac_exeext conftest.$ac_ext
2621 fi
2622 eval ac_res=\$$3
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2624 $as_echo "$ac_res" >&6; }
2625 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2626
2627 } # ac_fn_c_check_func
2628
2629 # ac_fn_cxx_try_link LINENO
2630 # -------------------------
2631 # Try to link conftest.$ac_ext, and return whether this succeeded.
2632 ac_fn_cxx_try_link ()
2633 {
2634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2635 rm -f conftest.$ac_objext conftest$ac_exeext
2636 if { { ac_try="$ac_link"
2637 case "(($ac_try" in
2638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639 *) ac_try_echo=$ac_try;;
2640 esac
2641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2642 $as_echo "$ac_try_echo"; } >&5
2643 (eval "$ac_link") 2>conftest.err
2644 ac_status=$?
2645 if test -s conftest.err; then
2646 grep -v '^ *+' conftest.err >conftest.er1
2647 cat conftest.er1 >&5
2648 mv -f conftest.er1 conftest.err
2649 fi
2650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2651 test $ac_status = 0; } && {
2652 test -z "$ac_cxx_werror_flag" ||
2653 test ! -s conftest.err
2654 } && test -s conftest$ac_exeext && {
2655 test "$cross_compiling" = yes ||
2656 $as_test_x conftest$ac_exeext
2657 }; then :
2658 ac_retval=0
2659 else
2660 $as_echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2662
2663 ac_retval=1
2664 fi
2665 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2666 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2667 # interfere with the next link command; also delete a directory that is
2668 # left behind by Apple's compiler. We do this before executing the actions.
2669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2670 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2671 return $ac_retval
2672
2673 } # ac_fn_cxx_try_link
2674 cat >config.log <<_ACEOF
2675 This file contains any messages produced by compilers while
2676 running configure, to aid debugging if configure makes a mistake.
2677
2678 It was created by $as_me, which was
2679 generated by GNU Autoconf 2.64. Invocation command line was
2680
2681 $ $0 $@
2682
2683 _ACEOF
2684 exec 5>>config.log
2685 {
2686 cat <<_ASUNAME
2687 ## --------- ##
2688 ## Platform. ##
2689 ## --------- ##
2690
2691 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2692 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2693 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2694 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2695 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2696
2697 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2698 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2699
2700 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2701 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2702 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2703 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2704 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2705 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2706 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2707
2708 _ASUNAME
2709
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2712 do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 $as_echo "PATH: $as_dir"
2716 done
2717 IFS=$as_save_IFS
2718
2719 } >&5
2720
2721 cat >&5 <<_ACEOF
2722
2723
2724 ## ----------- ##
2725 ## Core tests. ##
2726 ## ----------- ##
2727
2728 _ACEOF
2729
2730
2731 # Keep a trace of the command line.
2732 # Strip out --no-create and --no-recursion so they do not pile up.
2733 # Strip out --silent because we don't want to record it for future runs.
2734 # Also quote any args containing shell meta-characters.
2735 # Make two passes to allow for proper duplicate-argument suppression.
2736 ac_configure_args=
2737 ac_configure_args0=
2738 ac_configure_args1=
2739 ac_must_keep_next=false
2740 for ac_pass in 1 2
2741 do
2742 for ac_arg
2743 do
2744 case $ac_arg in
2745 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2747 | -silent | --silent | --silen | --sile | --sil)
2748 continue ;;
2749 *\'*)
2750 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2751 esac
2752 case $ac_pass in
2753 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2754 2)
2755 as_fn_append ac_configure_args1 " '$ac_arg'"
2756 if test $ac_must_keep_next = true; then
2757 ac_must_keep_next=false # Got value, back to normal.
2758 else
2759 case $ac_arg in
2760 *=* | --config-cache | -C | -disable-* | --disable-* \
2761 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2762 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2763 | -with-* | --with-* | -without-* | --without-* | --x)
2764 case "$ac_configure_args0 " in
2765 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2766 esac
2767 ;;
2768 -* ) ac_must_keep_next=true ;;
2769 esac
2770 fi
2771 as_fn_append ac_configure_args " '$ac_arg'"
2772 ;;
2773 esac
2774 done
2775 done
2776 { ac_configure_args0=; unset ac_configure_args0;}
2777 { ac_configure_args1=; unset ac_configure_args1;}
2778
2779 # When interrupted or exit'd, cleanup temporary files, and complete
2780 # config.log. We remove comments because anyway the quotes in there
2781 # would cause problems or look ugly.
2782 # WARNING: Use '\'' to represent an apostrophe within the trap.
2783 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2784 trap 'exit_status=$?
2785 # Save into config.log some information that might help in debugging.
2786 {
2787 echo
2788
2789 cat <<\_ASBOX
2790 ## ---------------- ##
2791 ## Cache variables. ##
2792 ## ---------------- ##
2793 _ASBOX
2794 echo
2795 # The following way of writing the cache mishandles newlines in values,
2796 (
2797 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2798 eval ac_val=\$$ac_var
2799 case $ac_val in #(
2800 *${as_nl}*)
2801 case $ac_var in #(
2802 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2803 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2804 esac
2805 case $ac_var in #(
2806 _ | IFS | as_nl) ;; #(
2807 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2808 *) { eval $ac_var=; unset $ac_var;} ;;
2809 esac ;;
2810 esac
2811 done
2812 (set) 2>&1 |
2813 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2814 *${as_nl}ac_space=\ *)
2815 sed -n \
2816 "s/'\''/'\''\\\\'\'''\''/g;
2817 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2818 ;; #(
2819 *)
2820 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2821 ;;
2822 esac |
2823 sort
2824 )
2825 echo
2826
2827 cat <<\_ASBOX
2828 ## ----------------- ##
2829 ## Output variables. ##
2830 ## ----------------- ##
2831 _ASBOX
2832 echo
2833 for ac_var in $ac_subst_vars
2834 do
2835 eval ac_val=\$$ac_var
2836 case $ac_val in
2837 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2838 esac
2839 $as_echo "$ac_var='\''$ac_val'\''"
2840 done | sort
2841 echo
2842
2843 if test -n "$ac_subst_files"; then
2844 cat <<\_ASBOX
2845 ## ------------------- ##
2846 ## File substitutions. ##
2847 ## ------------------- ##
2848 _ASBOX
2849 echo
2850 for ac_var in $ac_subst_files
2851 do
2852 eval ac_val=\$$ac_var
2853 case $ac_val in
2854 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2855 esac
2856 $as_echo "$ac_var='\''$ac_val'\''"
2857 done | sort
2858 echo
2859 fi
2860
2861 if test -s confdefs.h; then
2862 cat <<\_ASBOX
2863 ## ----------- ##
2864 ## confdefs.h. ##
2865 ## ----------- ##
2866 _ASBOX
2867 echo
2868 cat confdefs.h
2869 echo
2870 fi
2871 test "$ac_signal" != 0 &&
2872 $as_echo "$as_me: caught signal $ac_signal"
2873 $as_echo "$as_me: exit $exit_status"
2874 } >&5
2875 rm -f core *.core core.conftest.* &&
2876 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2877 exit $exit_status
2878 ' 0
2879 for ac_signal in 1 2 13 15; do
2880 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2881 done
2882 ac_signal=0
2883
2884 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2885 rm -f -r conftest* confdefs.h
2886
2887 $as_echo "/* confdefs.h */" > confdefs.h
2888
2889 # Predefined preprocessor variables.
2890
2891 cat >>confdefs.h <<_ACEOF
2892 #define PACKAGE_NAME "$PACKAGE_NAME"
2893 _ACEOF
2894
2895 cat >>confdefs.h <<_ACEOF
2896 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2897 _ACEOF
2898
2899 cat >>confdefs.h <<_ACEOF
2900 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2901 _ACEOF
2902
2903 cat >>confdefs.h <<_ACEOF
2904 #define PACKAGE_STRING "$PACKAGE_STRING"
2905 _ACEOF
2906
2907 cat >>confdefs.h <<_ACEOF
2908 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2909 _ACEOF
2910
2911 cat >>confdefs.h <<_ACEOF
2912 #define PACKAGE_URL "$PACKAGE_URL"
2913 _ACEOF
2914
2915
2916 # Let the site file select an alternate cache file if it wants to.
2917 # Prefer an explicitly selected file to automatically selected ones.
2918 ac_site_file1=NONE
2919 ac_site_file2=NONE
2920 if test -n "$CONFIG_SITE"; then
2921 ac_site_file1=$CONFIG_SITE
2922 elif test "x$prefix" != xNONE; then
2923 ac_site_file1=$prefix/share/config.site
2924 ac_site_file2=$prefix/etc/config.site
2925 else
2926 ac_site_file1=$ac_default_prefix/share/config.site
2927 ac_site_file2=$ac_default_prefix/etc/config.site
2928 fi
2929 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2930 do
2931 test "x$ac_site_file" = xNONE && continue
2932 if test -r "$ac_site_file"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2934 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2935 sed 's/^/| /' "$ac_site_file" >&5
2936 . "$ac_site_file"
2937 fi
2938 done
2939
2940 if test -r "$cache_file"; then
2941 # Some versions of bash will fail to source /dev/null (special
2942 # files actually), so we avoid doing that.
2943 if test -f "$cache_file"; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2945 $as_echo "$as_me: loading cache $cache_file" >&6;}
2946 case $cache_file in
2947 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2948 *) . "./$cache_file";;
2949 esac
2950 fi
2951 else
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2953 $as_echo "$as_me: creating cache $cache_file" >&6;}
2954 >$cache_file
2955 fi
2956
2957 # Check that the precious variables saved in the cache have kept the same
2958 # value.
2959 ac_cache_corrupted=false
2960 for ac_var in $ac_precious_vars; do
2961 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2962 eval ac_new_set=\$ac_env_${ac_var}_set
2963 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2964 eval ac_new_val=\$ac_env_${ac_var}_value
2965 case $ac_old_set,$ac_new_set in
2966 set,)
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2968 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2969 ac_cache_corrupted=: ;;
2970 ,set)
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2972 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2973 ac_cache_corrupted=: ;;
2974 ,);;
2975 *)
2976 if test "x$ac_old_val" != "x$ac_new_val"; then
2977 # differences in whitespace do not lead to failure.
2978 ac_old_val_w=`echo x $ac_old_val`
2979 ac_new_val_w=`echo x $ac_new_val`
2980 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2982 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2983 ac_cache_corrupted=:
2984 else
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2986 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2987 eval $ac_var=\$ac_old_val
2988 fi
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2990 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2992 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2993 fi;;
2994 esac
2995 # Pass precious variables to config.status.
2996 if test "$ac_new_set" = set; then
2997 case $ac_new_val in
2998 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2999 *) ac_arg=$ac_var=$ac_new_val ;;
3000 esac
3001 case " $ac_configure_args " in
3002 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3003 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3004 esac
3005 fi
3006 done
3007 if $ac_cache_corrupted; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3011 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3012 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3013 fi
3014 ## -------------------- ##
3015 ## Main body of script. ##
3016 ## -------------------- ##
3017
3018 ac_ext=c
3019 ac_cpp='$CPP $CPPFLAGS'
3020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023
3024
3025
3026
3027
3028
3029 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3030
3031
3032 gcc_version=`cat $srcdir/BASE-VER`
3033
3034 # Determine the host, build, and target systems
3035 ac_aux_dir=
3036 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3037 for ac_t in install-sh install.sh shtool; do
3038 if test -f "$ac_dir/$ac_t"; then
3039 ac_aux_dir=$ac_dir
3040 ac_install_sh="$ac_aux_dir/$ac_t -c"
3041 break 2
3042 fi
3043 done
3044 done
3045 if test -z "$ac_aux_dir"; then
3046 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3047 fi
3048
3049 # These three variables are undocumented and unsupported,
3050 # and are intended to be withdrawn in a future Autoconf release.
3051 # They can cause serious problems if a builder's source tree is in a directory
3052 # whose full name contains unusual characters.
3053 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3054 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3055 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3056
3057
3058 # Make sure we can run config.sub.
3059 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3060 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3061
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3063 $as_echo_n "checking build system type... " >&6; }
3064 if test "${ac_cv_build+set}" = set; then :
3065 $as_echo_n "(cached) " >&6
3066 else
3067 ac_build_alias=$build_alias
3068 test "x$ac_build_alias" = x &&
3069 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3070 test "x$ac_build_alias" = x &&
3071 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3072 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3073 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3074
3075 fi
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3077 $as_echo "$ac_cv_build" >&6; }
3078 case $ac_cv_build in
3079 *-*-*) ;;
3080 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3081 esac
3082 build=$ac_cv_build
3083 ac_save_IFS=$IFS; IFS='-'
3084 set x $ac_cv_build
3085 shift
3086 build_cpu=$1
3087 build_vendor=$2
3088 shift; shift
3089 # Remember, the first character of IFS is used to create $*,
3090 # except with old shells:
3091 build_os=$*
3092 IFS=$ac_save_IFS
3093 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3094
3095
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3097 $as_echo_n "checking host system type... " >&6; }
3098 if test "${ac_cv_host+set}" = set; then :
3099 $as_echo_n "(cached) " >&6
3100 else
3101 if test "x$host_alias" = x; then
3102 ac_cv_host=$ac_cv_build
3103 else
3104 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3105 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3106 fi
3107
3108 fi
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3110 $as_echo "$ac_cv_host" >&6; }
3111 case $ac_cv_host in
3112 *-*-*) ;;
3113 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3114 esac
3115 host=$ac_cv_host
3116 ac_save_IFS=$IFS; IFS='-'
3117 set x $ac_cv_host
3118 shift
3119 host_cpu=$1
3120 host_vendor=$2
3121 shift; shift
3122 # Remember, the first character of IFS is used to create $*,
3123 # except with old shells:
3124 host_os=$*
3125 IFS=$ac_save_IFS
3126 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3127
3128
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3130 $as_echo_n "checking target system type... " >&6; }
3131 if test "${ac_cv_target+set}" = set; then :
3132 $as_echo_n "(cached) " >&6
3133 else
3134 if test "x$target_alias" = x; then
3135 ac_cv_target=$ac_cv_host
3136 else
3137 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3138 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3139 fi
3140
3141 fi
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3143 $as_echo "$ac_cv_target" >&6; }
3144 case $ac_cv_target in
3145 *-*-*) ;;
3146 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3147 esac
3148 target=$ac_cv_target
3149 ac_save_IFS=$IFS; IFS='-'
3150 set x $ac_cv_target
3151 shift
3152 target_cpu=$1
3153 target_vendor=$2
3154 shift; shift
3155 # Remember, the first character of IFS is used to create $*,
3156 # except with old shells:
3157 target_os=$*
3158 IFS=$ac_save_IFS
3159 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3160
3161
3162 # The aliases save the names the user supplied, while $host etc.
3163 # will get canonicalized.
3164 test -n "$target_alias" &&
3165 test "$program_prefix$program_suffix$program_transform_name" = \
3166 NONENONEs,x,x, &&
3167 program_prefix=${target_alias}-
3168
3169 # Determine the noncanonical target name, for directory use.
3170 case ${build_alias} in
3171 "") build_noncanonical=${build} ;;
3172 *) build_noncanonical=${build_alias} ;;
3173 esac
3174
3175 case ${host_alias} in
3176 "") host_noncanonical=${build_noncanonical} ;;
3177 *) host_noncanonical=${host_alias} ;;
3178 esac
3179
3180 case ${target_alias} in
3181 "") target_noncanonical=${host_noncanonical} ;;
3182 *) target_noncanonical=${target_alias} ;;
3183 esac
3184
3185
3186
3187
3188 # Determine the target- and build-specific subdirectories
3189
3190 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3191 # have matching libraries, they should use host libraries: Makefile.tpl
3192 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3193 # However, they still use the build modules, because the corresponding
3194 # host modules (e.g. bison) are only built for the host when bootstrap
3195 # finishes. So:
3196 # - build_subdir is where we find build modules, and never changes.
3197 # - build_libsubdir is where we find build libraries, and can be overridden.
3198
3199 # Prefix 'build-' so this never conflicts with target_subdir.
3200 build_subdir="build-${build_noncanonical}"
3201
3202 # Check whether --with-build-libsubdir was given.
3203 if test "${with_build_libsubdir+set}" = set; then :
3204 withval=$with_build_libsubdir; build_libsubdir="$withval"
3205 else
3206 build_libsubdir="$build_subdir"
3207 fi
3208
3209 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3210 if ( test $srcdir = . && test -d gcc ) \
3211 || test -d $srcdir/../host-${host_noncanonical}; then
3212 host_subdir="host-${host_noncanonical}"
3213 else
3214 host_subdir=.
3215 fi
3216 # No prefix.
3217 target_subdir=${target_noncanonical}
3218
3219
3220 # Set program_transform_name
3221 test "$program_prefix" != NONE &&
3222 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3223 # Use a double $ so make ignores it.
3224 test "$program_suffix" != NONE &&
3225 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3226 # Double any \ or $.
3227 # By default was `s,x,x', remove it if useless.
3228 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3229 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3230
3231
3232 # Check for bogus environment variables.
3233 # Test if LIBRARY_PATH contains the notation for the current directory
3234 # since this would lead to problems installing/building glibc.
3235 # LIBRARY_PATH contains the current directory if one of the following
3236 # is true:
3237 # - one of the terminals (":" and ";") is the first or last sign
3238 # - two terminals occur directly after each other
3239 # - the path contains an element with a dot in it
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3241 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3242 case ${LIBRARY_PATH} in
3243 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3244 library_path_setting="contains current directory"
3245 ;;
3246 *)
3247 library_path_setting="ok"
3248 ;;
3249 esac
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3251 $as_echo "$library_path_setting" >&6; }
3252 if test "$library_path_setting" != "ok"; then
3253 as_fn_error "
3254 *** LIBRARY_PATH shouldn't contain the current directory when
3255 *** building gcc. Please change the environment variable
3256 *** and run configure again." "$LINENO" 5
3257 fi
3258
3259 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3260 # since this would lead to problems installing/building glibc.
3261 # GCC_EXEC_PREFIX contains the current directory if one of the following
3262 # is true:
3263 # - one of the terminals (":" and ";") is the first or last sign
3264 # - two terminals occur directly after each other
3265 # - the path contains an element with a dot in it
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3267 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3268 case ${GCC_EXEC_PREFIX} in
3269 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3270 gcc_exec_prefix_setting="contains current directory"
3271 ;;
3272 *)
3273 gcc_exec_prefix_setting="ok"
3274 ;;
3275 esac
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3277 $as_echo "$gcc_exec_prefix_setting" >&6; }
3278 if test "$gcc_exec_prefix_setting" != "ok"; then
3279 as_fn_error "
3280 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3281 *** building gcc. Please change the environment variable
3282 *** and run configure again." "$LINENO" 5
3283 fi
3284
3285 # -----------
3286 # Directories
3287 # -----------
3288
3289 # Specify the local prefix
3290 local_prefix=
3291
3292 # Check whether --with-local-prefix was given.
3293 if test "${with_local_prefix+set}" = set; then :
3294 withval=$with_local_prefix; case "${withval}" in
3295 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3296 no) ;;
3297 *) local_prefix=$with_local_prefix ;;
3298 esac
3299 fi
3300
3301
3302 # Default local prefix if it is empty
3303 if test x$local_prefix = x; then
3304 local_prefix=/usr/local
3305 fi
3306
3307 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3308 # passed in by the toplevel make and thus we'd get different behavior
3309 # depending on where we built the sources.
3310 gcc_gxx_include_dir=
3311 # Specify the g++ header file directory
3312
3313 # Check whether --with-gxx-include-dir was given.
3314 if test "${with_gxx_include_dir+set}" = set; then :
3315 withval=$with_gxx_include_dir; case "${withval}" in
3316 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3317 no) ;;
3318 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3319 esac
3320 fi
3321
3322
3323 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3324 if test x${gcc_gxx_include_dir} = x; then
3325 if test x${enable_version_specific_runtime_libs} = xyes; then
3326 gcc_gxx_include_dir='${libsubdir}/include/c++'
3327 else
3328 libstdcxx_incdir='include/c++/$(version)'
3329 if test x$host != x$target; then
3330 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3331 fi
3332 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3333 fi
3334 fi
3335
3336 gcc_gxx_include_dir_add_sysroot=0
3337 if test "${with_sysroot+set}" = set; then
3338 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3339 if test "${gcc_gxx_without_sysroot}"; then
3340 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3341 gcc_gxx_include_dir_add_sysroot=1
3342 fi
3343 fi
3344
3345
3346 # Check whether --with-cpp_install_dir was given.
3347 if test "${with_cpp_install_dir+set}" = set; then :
3348 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3349 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3350 elif test x$withval != xno; then
3351 cpp_install_dir=$withval
3352 fi
3353 fi
3354
3355
3356 # We would like to our source tree to be readonly. However when releases or
3357 # pre-releases are generated, the flex/bison generated files as well as the
3358 # various formats of manuals need to be included along with the rest of the
3359 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3360 # just that.
3361
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3363 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3364 # Check whether --enable-generated-files-in-srcdir was given.
3365 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3366 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3367 else
3368 generated_files_in_srcdir=no
3369 fi
3370
3371
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3373 $as_echo "$generated_files_in_srcdir" >&6; }
3374
3375 if test "$generated_files_in_srcdir" = "yes"; then
3376 GENINSRC=''
3377 else
3378 GENINSRC='#'
3379 fi
3380
3381
3382 # -------------------
3383 # Find default linker
3384 # -------------------
3385
3386 # With GNU ld
3387
3388 # Check whether --with-gnu-ld was given.
3389 if test "${with_gnu_ld+set}" = set; then :
3390 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3391 else
3392 gnu_ld_flag=no
3393 fi
3394
3395
3396 # With pre-defined ld
3397
3398 # Check whether --with-ld was given.
3399 if test "${with_ld+set}" = set; then :
3400 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3401 fi
3402
3403 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3404 if test ! -x "$DEFAULT_LINKER"; then
3405 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3406 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3407 gnu_ld_flag=yes
3408 fi
3409
3410 cat >>confdefs.h <<_ACEOF
3411 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3412 _ACEOF
3413
3414 fi
3415
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3417 $as_echo_n "checking whether a default linker was specified... " >&6; }
3418 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3419 if test x"$gnu_ld_flag" = x"no"; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3421 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3422 else
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3424 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3425 fi
3426 else
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 $as_echo "no" >&6; }
3429 fi
3430
3431 # With demangler in GNU ld
3432
3433 # Check whether --with-demangler-in-ld was given.
3434 if test "${with_demangler_in_ld+set}" = set; then :
3435 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3436 else
3437 demangler_in_ld=yes
3438 fi
3439
3440
3441 # ----------------------
3442 # Find default assembler
3443 # ----------------------
3444
3445 # With GNU as
3446
3447 # Check whether --with-gnu-as was given.
3448 if test "${with_gnu_as+set}" = set; then :
3449 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3450 else
3451 gas_flag=no
3452 fi
3453
3454
3455
3456 # Check whether --with-as was given.
3457 if test "${with_as+set}" = set; then :
3458 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3459 fi
3460
3461 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3462 if test ! -x "$DEFAULT_ASSEMBLER"; then
3463 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3464 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3465 gas_flag=yes
3466 fi
3467
3468 cat >>confdefs.h <<_ACEOF
3469 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3470 _ACEOF
3471
3472 fi
3473
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3475 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3476 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3477 if test x"$gas_flag" = x"no"; then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3479 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3480 else
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3482 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3483 fi
3484 else
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 $as_echo "no" >&6; }
3487 fi
3488
3489 # ---------------
3490 # Find C compiler
3491 # ---------------
3492
3493 # If a non-executable a.out is present (e.g. created by GNU as above even if
3494 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3495 # file, even when creating an executable, so an execution test fails.
3496 # Remove possible default executable files to avoid this.
3497 #
3498 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3499 # Autoconf includes it.
3500 rm -f a.out a.exe b.out
3501
3502 # Find the native compiler
3503 ac_ext=c
3504 ac_cpp='$CPP $CPPFLAGS'
3505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508 if test -n "$ac_tool_prefix"; then
3509 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3510 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3512 $as_echo_n "checking for $ac_word... " >&6; }
3513 if test "${ac_cv_prog_CC+set}" = set; then :
3514 $as_echo_n "(cached) " >&6
3515 else
3516 if test -n "$CC"; then
3517 ac_cv_prog_CC="$CC" # Let the user override the test.
3518 else
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 for as_dir in $PATH
3521 do
3522 IFS=$as_save_IFS
3523 test -z "$as_dir" && as_dir=.
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3526 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3528 break 2
3529 fi
3530 done
3531 done
3532 IFS=$as_save_IFS
3533
3534 fi
3535 fi
3536 CC=$ac_cv_prog_CC
3537 if test -n "$CC"; then
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3539 $as_echo "$CC" >&6; }
3540 else
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542 $as_echo "no" >&6; }
3543 fi
3544
3545
3546 fi
3547 if test -z "$ac_cv_prog_CC"; then
3548 ac_ct_CC=$CC
3549 # Extract the first word of "gcc", so it can be a program name with args.
3550 set dummy gcc; ac_word=$2
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3552 $as_echo_n "checking for $ac_word... " >&6; }
3553 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3554 $as_echo_n "(cached) " >&6
3555 else
3556 if test -n "$ac_ct_CC"; then
3557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3558 else
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 for as_dir in $PATH
3561 do
3562 IFS=$as_save_IFS
3563 test -z "$as_dir" && as_dir=.
3564 for ac_exec_ext in '' $ac_executable_extensions; do
3565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3566 ac_cv_prog_ac_ct_CC="gcc"
3567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3568 break 2
3569 fi
3570 done
3571 done
3572 IFS=$as_save_IFS
3573
3574 fi
3575 fi
3576 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3577 if test -n "$ac_ct_CC"; then
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3579 $as_echo "$ac_ct_CC" >&6; }
3580 else
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582 $as_echo "no" >&6; }
3583 fi
3584
3585 if test "x$ac_ct_CC" = x; then
3586 CC=""
3587 else
3588 case $cross_compiling:$ac_tool_warned in
3589 yes:)
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3592 ac_tool_warned=yes ;;
3593 esac
3594 CC=$ac_ct_CC
3595 fi
3596 else
3597 CC="$ac_cv_prog_CC"
3598 fi
3599
3600 if test -z "$CC"; then
3601 if test -n "$ac_tool_prefix"; then
3602 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3603 set dummy ${ac_tool_prefix}cc; ac_word=$2
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 $as_echo_n "checking for $ac_word... " >&6; }
3606 if test "${ac_cv_prog_CC+set}" = set; then :
3607 $as_echo_n "(cached) " >&6
3608 else
3609 if test -n "$CC"; then
3610 ac_cv_prog_CC="$CC" # Let the user override the test.
3611 else
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH
3614 do
3615 IFS=$as_save_IFS
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3619 ac_cv_prog_CC="${ac_tool_prefix}cc"
3620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3621 break 2
3622 fi
3623 done
3624 done
3625 IFS=$as_save_IFS
3626
3627 fi
3628 fi
3629 CC=$ac_cv_prog_CC
3630 if test -n "$CC"; then
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3632 $as_echo "$CC" >&6; }
3633 else
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3636 fi
3637
3638
3639 fi
3640 fi
3641 if test -z "$CC"; then
3642 # Extract the first word of "cc", so it can be a program name with args.
3643 set dummy cc; ac_word=$2
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 $as_echo_n "checking for $ac_word... " >&6; }
3646 if test "${ac_cv_prog_CC+set}" = set; then :
3647 $as_echo_n "(cached) " >&6
3648 else
3649 if test -n "$CC"; then
3650 ac_cv_prog_CC="$CC" # Let the user override the test.
3651 else
3652 ac_prog_rejected=no
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 for as_dir in $PATH
3655 do
3656 IFS=$as_save_IFS
3657 test -z "$as_dir" && as_dir=.
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3660 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3661 ac_prog_rejected=yes
3662 continue
3663 fi
3664 ac_cv_prog_CC="cc"
3665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3666 break 2
3667 fi
3668 done
3669 done
3670 IFS=$as_save_IFS
3671
3672 if test $ac_prog_rejected = yes; then
3673 # We found a bogon in the path, so make sure we never use it.
3674 set dummy $ac_cv_prog_CC
3675 shift
3676 if test $# != 0; then
3677 # We chose a different compiler from the bogus one.
3678 # However, it has the same basename, so the bogon will be chosen
3679 # first if we set CC to just the basename; use the full file name.
3680 shift
3681 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3682 fi
3683 fi
3684 fi
3685 fi
3686 CC=$ac_cv_prog_CC
3687 if test -n "$CC"; then
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3689 $as_echo "$CC" >&6; }
3690 else
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3692 $as_echo "no" >&6; }
3693 fi
3694
3695
3696 fi
3697 if test -z "$CC"; then
3698 if test -n "$ac_tool_prefix"; then
3699 for ac_prog in cl.exe
3700 do
3701 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3702 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704 $as_echo_n "checking for $ac_word... " >&6; }
3705 if test "${ac_cv_prog_CC+set}" = set; then :
3706 $as_echo_n "(cached) " >&6
3707 else
3708 if test -n "$CC"; then
3709 ac_cv_prog_CC="$CC" # Let the user override the test.
3710 else
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3713 do
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3718 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 break 2
3721 fi
3722 done
3723 done
3724 IFS=$as_save_IFS
3725
3726 fi
3727 fi
3728 CC=$ac_cv_prog_CC
3729 if test -n "$CC"; then
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3731 $as_echo "$CC" >&6; }
3732 else
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3735 fi
3736
3737
3738 test -n "$CC" && break
3739 done
3740 fi
3741 if test -z "$CC"; then
3742 ac_ct_CC=$CC
3743 for ac_prog in cl.exe
3744 do
3745 # Extract the first word of "$ac_prog", so it can be a program name with args.
3746 set dummy $ac_prog; ac_word=$2
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3748 $as_echo_n "checking for $ac_word... " >&6; }
3749 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3750 $as_echo_n "(cached) " >&6
3751 else
3752 if test -n "$ac_ct_CC"; then
3753 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3754 else
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH
3757 do
3758 IFS=$as_save_IFS
3759 test -z "$as_dir" && as_dir=.
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3762 ac_cv_prog_ac_ct_CC="$ac_prog"
3763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 break 2
3765 fi
3766 done
3767 done
3768 IFS=$as_save_IFS
3769
3770 fi
3771 fi
3772 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3773 if test -n "$ac_ct_CC"; then
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3775 $as_echo "$ac_ct_CC" >&6; }
3776 else
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778 $as_echo "no" >&6; }
3779 fi
3780
3781
3782 test -n "$ac_ct_CC" && break
3783 done
3784
3785 if test "x$ac_ct_CC" = x; then
3786 CC=""
3787 else
3788 case $cross_compiling:$ac_tool_warned in
3789 yes:)
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3792 ac_tool_warned=yes ;;
3793 esac
3794 CC=$ac_ct_CC
3795 fi
3796 fi
3797
3798 fi
3799
3800
3801 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3803 as_fn_error "no acceptable C compiler found in \$PATH
3804 See \`config.log' for more details." "$LINENO" 5; }
3805
3806 # Provide some information about the compiler.
3807 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3808 set X $ac_compile
3809 ac_compiler=$2
3810 for ac_option in --version -v -V -qversion; do
3811 { { ac_try="$ac_compiler $ac_option >&5"
3812 case "(($ac_try" in
3813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814 *) ac_try_echo=$ac_try;;
3815 esac
3816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3817 $as_echo "$ac_try_echo"; } >&5
3818 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3819 ac_status=$?
3820 if test -s conftest.err; then
3821 sed '10a\
3822 ... rest of stderr output deleted ...
3823 10q' conftest.err >conftest.er1
3824 cat conftest.er1 >&5
3825 rm -f conftest.er1 conftest.err
3826 fi
3827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3828 test $ac_status = 0; }
3829 done
3830
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3833
3834 int
3835 main ()
3836 {
3837
3838 ;
3839 return 0;
3840 }
3841 _ACEOF
3842 ac_clean_files_save=$ac_clean_files
3843 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3844 # Try to create an executable without -o first, disregard a.out.
3845 # It will help us diagnose broken compilers, and finding out an intuition
3846 # of exeext.
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3848 $as_echo_n "checking for C compiler default output file name... " >&6; }
3849 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3850
3851 # The possible output files:
3852 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3853
3854 ac_rmfiles=
3855 for ac_file in $ac_files
3856 do
3857 case $ac_file in
3858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3859 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3860 esac
3861 done
3862 rm -f $ac_rmfiles
3863
3864 if { { ac_try="$ac_link_default"
3865 case "(($ac_try" in
3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3868 esac
3869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3870 $as_echo "$ac_try_echo"; } >&5
3871 (eval "$ac_link_default") 2>&5
3872 ac_status=$?
3873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3874 test $ac_status = 0; }; then :
3875 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3876 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3877 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3878 # so that the user can short-circuit this test for compilers unknown to
3879 # Autoconf.
3880 for ac_file in $ac_files ''
3881 do
3882 test -f "$ac_file" || continue
3883 case $ac_file in
3884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3885 ;;
3886 [ab].out )
3887 # We found the default executable, but exeext='' is most
3888 # certainly right.
3889 break;;
3890 *.* )
3891 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3892 then :; else
3893 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3894 fi
3895 # We set ac_cv_exeext here because the later test for it is not
3896 # safe: cross compilers may not add the suffix if given an `-o'
3897 # argument, so we may need to know it at that point already.
3898 # Even if this section looks crufty: it has the advantage of
3899 # actually working.
3900 break;;
3901 * )
3902 break;;
3903 esac
3904 done
3905 test "$ac_cv_exeext" = no && ac_cv_exeext=
3906
3907 else
3908 ac_file=''
3909 fi
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3911 $as_echo "$ac_file" >&6; }
3912 if test -z "$ac_file"; then :
3913 $as_echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3915
3916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3918 { as_fn_set_status 77
3919 as_fn_error "C compiler cannot create executables
3920 See \`config.log' for more details." "$LINENO" 5; }; }
3921 fi
3922 ac_exeext=$ac_cv_exeext
3923
3924 # Check that the compiler produces executables we can run. If not, either
3925 # the compiler is broken, or we cross compile.
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3927 $as_echo_n "checking whether the C compiler works... " >&6; }
3928 # If not cross compiling, check that we can run a simple program.
3929 if test "$cross_compiling" != yes; then
3930 if { ac_try='./$ac_file'
3931 { { case "(($ac_try" in
3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3934 esac
3935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3936 $as_echo "$ac_try_echo"; } >&5
3937 (eval "$ac_try") 2>&5
3938 ac_status=$?
3939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3940 test $ac_status = 0; }; }; then
3941 cross_compiling=no
3942 else
3943 if test "$cross_compiling" = maybe; then
3944 cross_compiling=yes
3945 else
3946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3948 as_fn_error "cannot run C compiled programs.
3949 If you meant to cross compile, use \`--host'.
3950 See \`config.log' for more details." "$LINENO" 5; }
3951 fi
3952 fi
3953 fi
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3955 $as_echo "yes" >&6; }
3956
3957 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3958 ac_clean_files=$ac_clean_files_save
3959 # Check that the compiler produces executables we can run. If not, either
3960 # the compiler is broken, or we cross compile.
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3962 $as_echo_n "checking whether we are cross compiling... " >&6; }
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3964 $as_echo "$cross_compiling" >&6; }
3965
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3967 $as_echo_n "checking for suffix of executables... " >&6; }
3968 if { { ac_try="$ac_link"
3969 case "(($ac_try" in
3970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971 *) ac_try_echo=$ac_try;;
3972 esac
3973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3974 $as_echo "$ac_try_echo"; } >&5
3975 (eval "$ac_link") 2>&5
3976 ac_status=$?
3977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3978 test $ac_status = 0; }; then :
3979 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3980 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3981 # work properly (i.e., refer to `conftest.exe'), while it won't with
3982 # `rm'.
3983 for ac_file in conftest.exe conftest conftest.*; do
3984 test -f "$ac_file" || continue
3985 case $ac_file in
3986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3987 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3988 break;;
3989 * ) break;;
3990 esac
3991 done
3992 else
3993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3995 as_fn_error "cannot compute suffix of executables: cannot compile and link
3996 See \`config.log' for more details." "$LINENO" 5; }
3997 fi
3998 rm -f conftest$ac_cv_exeext
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4000 $as_echo "$ac_cv_exeext" >&6; }
4001
4002 rm -f conftest.$ac_ext
4003 EXEEXT=$ac_cv_exeext
4004 ac_exeext=$EXEEXT
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4006 $as_echo_n "checking for suffix of object files... " >&6; }
4007 if test "${ac_cv_objext+set}" = set; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4012
4013 int
4014 main ()
4015 {
4016
4017 ;
4018 return 0;
4019 }
4020 _ACEOF
4021 rm -f conftest.o conftest.obj
4022 if { { ac_try="$ac_compile"
4023 case "(($ac_try" in
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4026 esac
4027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4028 $as_echo "$ac_try_echo"; } >&5
4029 (eval "$ac_compile") 2>&5
4030 ac_status=$?
4031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4032 test $ac_status = 0; }; then :
4033 for ac_file in conftest.o conftest.obj conftest.*; do
4034 test -f "$ac_file" || continue;
4035 case $ac_file in
4036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4037 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4038 break;;
4039 esac
4040 done
4041 else
4042 $as_echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4044
4045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4047 as_fn_error "cannot compute suffix of object files: cannot compile
4048 See \`config.log' for more details." "$LINENO" 5; }
4049 fi
4050 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4051 fi
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4053 $as_echo "$ac_cv_objext" >&6; }
4054 OBJEXT=$ac_cv_objext
4055 ac_objext=$OBJEXT
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4057 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4058 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4059 $as_echo_n "(cached) " >&6
4060 else
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4063
4064 int
4065 main ()
4066 {
4067 #ifndef __GNUC__
4068 choke me
4069 #endif
4070
4071 ;
4072 return 0;
4073 }
4074 _ACEOF
4075 if ac_fn_c_try_compile "$LINENO"; then :
4076 ac_compiler_gnu=yes
4077 else
4078 ac_compiler_gnu=no
4079 fi
4080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4081 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4082
4083 fi
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4085 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4086 if test $ac_compiler_gnu = yes; then
4087 GCC=yes
4088 else
4089 GCC=
4090 fi
4091 ac_test_CFLAGS=${CFLAGS+set}
4092 ac_save_CFLAGS=$CFLAGS
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4094 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4095 if test "${ac_cv_prog_cc_g+set}" = set; then :
4096 $as_echo_n "(cached) " >&6
4097 else
4098 ac_save_c_werror_flag=$ac_c_werror_flag
4099 ac_c_werror_flag=yes
4100 ac_cv_prog_cc_g=no
4101 CFLAGS="-g"
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4104
4105 int
4106 main ()
4107 {
4108
4109 ;
4110 return 0;
4111 }
4112 _ACEOF
4113 if ac_fn_c_try_compile "$LINENO"; then :
4114 ac_cv_prog_cc_g=yes
4115 else
4116 CFLAGS=""
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4119
4120 int
4121 main ()
4122 {
4123
4124 ;
4125 return 0;
4126 }
4127 _ACEOF
4128 if ac_fn_c_try_compile "$LINENO"; then :
4129
4130 else
4131 ac_c_werror_flag=$ac_save_c_werror_flag
4132 CFLAGS="-g"
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4135
4136 int
4137 main ()
4138 {
4139
4140 ;
4141 return 0;
4142 }
4143 _ACEOF
4144 if ac_fn_c_try_compile "$LINENO"; then :
4145 ac_cv_prog_cc_g=yes
4146 fi
4147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148 fi
4149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150 fi
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152 ac_c_werror_flag=$ac_save_c_werror_flag
4153 fi
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4155 $as_echo "$ac_cv_prog_cc_g" >&6; }
4156 if test "$ac_test_CFLAGS" = set; then
4157 CFLAGS=$ac_save_CFLAGS
4158 elif test $ac_cv_prog_cc_g = yes; then
4159 if test "$GCC" = yes; then
4160 CFLAGS="-g -O2"
4161 else
4162 CFLAGS="-g"
4163 fi
4164 else
4165 if test "$GCC" = yes; then
4166 CFLAGS="-O2"
4167 else
4168 CFLAGS=
4169 fi
4170 fi
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4172 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4173 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4174 $as_echo_n "(cached) " >&6
4175 else
4176 ac_cv_prog_cc_c89=no
4177 ac_save_CC=$CC
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4180 #include <stdarg.h>
4181 #include <stdio.h>
4182 #include <sys/types.h>
4183 #include <sys/stat.h>
4184 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4185 struct buf { int x; };
4186 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4187 static char *e (p, i)
4188 char **p;
4189 int i;
4190 {
4191 return p[i];
4192 }
4193 static char *f (char * (*g) (char **, int), char **p, ...)
4194 {
4195 char *s;
4196 va_list v;
4197 va_start (v,p);
4198 s = g (p, va_arg (v,int));
4199 va_end (v);
4200 return s;
4201 }
4202
4203 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4204 function prototypes and stuff, but not '\xHH' hex character constants.
4205 These don't provoke an error unfortunately, instead are silently treated
4206 as 'x'. The following induces an error, until -std is added to get
4207 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4208 array size at least. It's necessary to write '\x00'==0 to get something
4209 that's true only with -std. */
4210 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4211
4212 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4213 inside strings and character constants. */
4214 #define FOO(x) 'x'
4215 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4216
4217 int test (int i, double x);
4218 struct s1 {int (*f) (int a);};
4219 struct s2 {int (*f) (double a);};
4220 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4221 int argc;
4222 char **argv;
4223 int
4224 main ()
4225 {
4226 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4227 ;
4228 return 0;
4229 }
4230 _ACEOF
4231 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4232 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4233 do
4234 CC="$ac_save_CC $ac_arg"
4235 if ac_fn_c_try_compile "$LINENO"; then :
4236 ac_cv_prog_cc_c89=$ac_arg
4237 fi
4238 rm -f core conftest.err conftest.$ac_objext
4239 test "x$ac_cv_prog_cc_c89" != "xno" && break
4240 done
4241 rm -f conftest.$ac_ext
4242 CC=$ac_save_CC
4243
4244 fi
4245 # AC_CACHE_VAL
4246 case "x$ac_cv_prog_cc_c89" in
4247 x)
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4249 $as_echo "none needed" >&6; } ;;
4250 xno)
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4252 $as_echo "unsupported" >&6; } ;;
4253 *)
4254 CC="$CC $ac_cv_prog_cc_c89"
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4256 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4257 esac
4258 if test "x$ac_cv_prog_cc_c89" != xno; then :
4259
4260 fi
4261
4262 ac_ext=c
4263 ac_cpp='$CPP $CPPFLAGS'
4264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4267
4268 ac_ext=cpp
4269 ac_cpp='$CXXCPP $CPPFLAGS'
4270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4273 if test -z "$CXX"; then
4274 if test -n "$CCC"; then
4275 CXX=$CCC
4276 else
4277 if test -n "$ac_tool_prefix"; then
4278 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4279 do
4280 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4281 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4283 $as_echo_n "checking for $ac_word... " >&6; }
4284 if test "${ac_cv_prog_CXX+set}" = set; then :
4285 $as_echo_n "(cached) " >&6
4286 else
4287 if test -n "$CXX"; then
4288 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4289 else
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 for as_dir in $PATH
4292 do
4293 IFS=$as_save_IFS
4294 test -z "$as_dir" && as_dir=.
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4297 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 break 2
4300 fi
4301 done
4302 done
4303 IFS=$as_save_IFS
4304
4305 fi
4306 fi
4307 CXX=$ac_cv_prog_CXX
4308 if test -n "$CXX"; then
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4310 $as_echo "$CXX" >&6; }
4311 else
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4313 $as_echo "no" >&6; }
4314 fi
4315
4316
4317 test -n "$CXX" && break
4318 done
4319 fi
4320 if test -z "$CXX"; then
4321 ac_ct_CXX=$CXX
4322 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4323 do
4324 # Extract the first word of "$ac_prog", so it can be a program name with args.
4325 set dummy $ac_prog; ac_word=$2
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4327 $as_echo_n "checking for $ac_word... " >&6; }
4328 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 if test -n "$ac_ct_CXX"; then
4332 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4333 else
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH
4336 do
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4341 ac_cv_prog_ac_ct_CXX="$ac_prog"
4342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 break 2
4344 fi
4345 done
4346 done
4347 IFS=$as_save_IFS
4348
4349 fi
4350 fi
4351 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4352 if test -n "$ac_ct_CXX"; then
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4354 $as_echo "$ac_ct_CXX" >&6; }
4355 else
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357 $as_echo "no" >&6; }
4358 fi
4359
4360
4361 test -n "$ac_ct_CXX" && break
4362 done
4363
4364 if test "x$ac_ct_CXX" = x; then
4365 CXX="g++"
4366 else
4367 case $cross_compiling:$ac_tool_warned in
4368 yes:)
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4371 ac_tool_warned=yes ;;
4372 esac
4373 CXX=$ac_ct_CXX
4374 fi
4375 fi
4376
4377 fi
4378 fi
4379 # Provide some information about the compiler.
4380 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4381 set X $ac_compile
4382 ac_compiler=$2
4383 for ac_option in --version -v -V -qversion; do
4384 { { ac_try="$ac_compiler $ac_option >&5"
4385 case "(($ac_try" in
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4388 esac
4389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4390 $as_echo "$ac_try_echo"; } >&5
4391 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4392 ac_status=$?
4393 if test -s conftest.err; then
4394 sed '10a\
4395 ... rest of stderr output deleted ...
4396 10q' conftest.err >conftest.er1
4397 cat conftest.er1 >&5
4398 rm -f conftest.er1 conftest.err
4399 fi
4400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4401 test $ac_status = 0; }
4402 done
4403
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4405 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4406 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4407 $as_echo_n "(cached) " >&6
4408 else
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4411
4412 int
4413 main ()
4414 {
4415 #ifndef __GNUC__
4416 choke me
4417 #endif
4418
4419 ;
4420 return 0;
4421 }
4422 _ACEOF
4423 if ac_fn_cxx_try_compile "$LINENO"; then :
4424 ac_compiler_gnu=yes
4425 else
4426 ac_compiler_gnu=no
4427 fi
4428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4429 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4430
4431 fi
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4433 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4434 if test $ac_compiler_gnu = yes; then
4435 GXX=yes
4436 else
4437 GXX=
4438 fi
4439 ac_test_CXXFLAGS=${CXXFLAGS+set}
4440 ac_save_CXXFLAGS=$CXXFLAGS
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4442 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4443 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4444 $as_echo_n "(cached) " >&6
4445 else
4446 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4447 ac_cxx_werror_flag=yes
4448 ac_cv_prog_cxx_g=no
4449 CXXFLAGS="-g"
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4452
4453 int
4454 main ()
4455 {
4456
4457 ;
4458 return 0;
4459 }
4460 _ACEOF
4461 if ac_fn_cxx_try_compile "$LINENO"; then :
4462 ac_cv_prog_cxx_g=yes
4463 else
4464 CXXFLAGS=""
4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h. */
4467
4468 int
4469 main ()
4470 {
4471
4472 ;
4473 return 0;
4474 }
4475 _ACEOF
4476 if ac_fn_cxx_try_compile "$LINENO"; then :
4477
4478 else
4479 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4480 CXXFLAGS="-g"
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4483
4484 int
4485 main ()
4486 {
4487
4488 ;
4489 return 0;
4490 }
4491 _ACEOF
4492 if ac_fn_cxx_try_compile "$LINENO"; then :
4493 ac_cv_prog_cxx_g=yes
4494 fi
4495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4496 fi
4497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498 fi
4499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4500 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4501 fi
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4503 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4504 if test "$ac_test_CXXFLAGS" = set; then
4505 CXXFLAGS=$ac_save_CXXFLAGS
4506 elif test $ac_cv_prog_cxx_g = yes; then
4507 if test "$GXX" = yes; then
4508 CXXFLAGS="-g -O2"
4509 else
4510 CXXFLAGS="-g"
4511 fi
4512 else
4513 if test "$GXX" = yes; then
4514 CXXFLAGS="-O2"
4515 else
4516 CXXFLAGS=
4517 fi
4518 fi
4519 ac_ext=c
4520 ac_cpp='$CPP $CPPFLAGS'
4521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4524
4525
4526
4527
4528 if test -n "$ac_tool_prefix"; then
4529 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4530 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4532 $as_echo_n "checking for $ac_word... " >&6; }
4533 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4534 $as_echo_n "(cached) " >&6
4535 else
4536 if test -n "$GNATBIND"; then
4537 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4538 else
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH
4541 do
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4546 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 break 2
4549 fi
4550 done
4551 done
4552 IFS=$as_save_IFS
4553
4554 fi
4555 fi
4556 GNATBIND=$ac_cv_prog_GNATBIND
4557 if test -n "$GNATBIND"; then
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4559 $as_echo "$GNATBIND" >&6; }
4560 else
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4562 $as_echo "no" >&6; }
4563 fi
4564
4565
4566 fi
4567 if test -z "$ac_cv_prog_GNATBIND"; then
4568 ac_ct_GNATBIND=$GNATBIND
4569 # Extract the first word of "gnatbind", so it can be a program name with args.
4570 set dummy gnatbind; ac_word=$2
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572 $as_echo_n "checking for $ac_word... " >&6; }
4573 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4574 $as_echo_n "(cached) " >&6
4575 else
4576 if test -n "$ac_ct_GNATBIND"; then
4577 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4578 else
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4581 do
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4586 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 break 2
4589 fi
4590 done
4591 done
4592 IFS=$as_save_IFS
4593
4594 fi
4595 fi
4596 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4597 if test -n "$ac_ct_GNATBIND"; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4599 $as_echo "$ac_ct_GNATBIND" >&6; }
4600 else
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602 $as_echo "no" >&6; }
4603 fi
4604
4605 if test "x$ac_ct_GNATBIND" = x; then
4606 GNATBIND="no"
4607 else
4608 case $cross_compiling:$ac_tool_warned in
4609 yes:)
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4612 ac_tool_warned=yes ;;
4613 esac
4614 GNATBIND=$ac_ct_GNATBIND
4615 fi
4616 else
4617 GNATBIND="$ac_cv_prog_GNATBIND"
4618 fi
4619
4620 if test -n "$ac_tool_prefix"; then
4621 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4622 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4624 $as_echo_n "checking for $ac_word... " >&6; }
4625 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4626 $as_echo_n "(cached) " >&6
4627 else
4628 if test -n "$GNATMAKE"; then
4629 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4630 else
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $PATH
4633 do
4634 IFS=$as_save_IFS
4635 test -z "$as_dir" && as_dir=.
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4638 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 break 2
4641 fi
4642 done
4643 done
4644 IFS=$as_save_IFS
4645
4646 fi
4647 fi
4648 GNATMAKE=$ac_cv_prog_GNATMAKE
4649 if test -n "$GNATMAKE"; then
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4651 $as_echo "$GNATMAKE" >&6; }
4652 else
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4654 $as_echo "no" >&6; }
4655 fi
4656
4657
4658 fi
4659 if test -z "$ac_cv_prog_GNATMAKE"; then
4660 ac_ct_GNATMAKE=$GNATMAKE
4661 # Extract the first word of "gnatmake", so it can be a program name with args.
4662 set dummy gnatmake; ac_word=$2
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4664 $as_echo_n "checking for $ac_word... " >&6; }
4665 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4666 $as_echo_n "(cached) " >&6
4667 else
4668 if test -n "$ac_ct_GNATMAKE"; then
4669 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4670 else
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4673 do
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 break 2
4681 fi
4682 done
4683 done
4684 IFS=$as_save_IFS
4685
4686 fi
4687 fi
4688 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4689 if test -n "$ac_ct_GNATMAKE"; then
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4691 $as_echo "$ac_ct_GNATMAKE" >&6; }
4692 else
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4694 $as_echo "no" >&6; }
4695 fi
4696
4697 if test "x$ac_ct_GNATMAKE" = x; then
4698 GNATMAKE="no"
4699 else
4700 case $cross_compiling:$ac_tool_warned in
4701 yes:)
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4704 ac_tool_warned=yes ;;
4705 esac
4706 GNATMAKE=$ac_ct_GNATMAKE
4707 fi
4708 else
4709 GNATMAKE="$ac_cv_prog_GNATMAKE"
4710 fi
4711
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4713 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4714 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4715 $as_echo_n "(cached) " >&6
4716 else
4717 cat >conftest.adb <<EOF
4718 procedure conftest is begin null; end conftest;
4719 EOF
4720 acx_cv_cc_gcc_supports_ada=no
4721 # There is a bug in old released versions of GCC which causes the
4722 # driver to exit successfully when the appropriate language module
4723 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4724 # Therefore we must check for the error message as well as an
4725 # unsuccessful exit.
4726 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4727 # given a .adb file, but produce no object file. So we must check
4728 # if an object file was really produced to guard against this.
4729 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4730 if test x"$errors" = x && test -f conftest.$ac_objext; then
4731 acx_cv_cc_gcc_supports_ada=yes
4732 fi
4733 rm -f conftest.*
4734 fi
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4736 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4737
4738 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4739 have_gnat=yes
4740 else
4741 have_gnat=no
4742 fi
4743
4744
4745 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4746 # optimizations to be activated explicitly by the toplevel.
4747 case "$CC" in
4748 */prev-gcc/xgcc*) ;;
4749 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4750 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4751 esac
4752
4753
4754
4755 # Determine PICFLAG for target gnatlib.
4756
4757
4758
4759
4760 case "${target}" in
4761 # PIC is the default on some targets or must not be used.
4762 *-*-darwin*)
4763 # PIC is the default on this platform
4764 # Common symbols not allowed in MH_DYLIB files
4765 PICFLAG_FOR_TARGET=-fno-common
4766 ;;
4767 alpha*-dec-osf5*)
4768 # PIC is the default.
4769 ;;
4770 hppa*64*-*-hpux*)
4771 # PIC is the default for 64-bit PA HP-UX.
4772 ;;
4773 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4774 ;;
4775 i[34567]86-*-mingw* | x86_64-*-mingw*)
4776 ;;
4777 i[34567]86-*-interix[3-9]*)
4778 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4779 # Instead, we relocate shared libraries at runtime.
4780 ;;
4781 i[34567]86-*-nto-qnx*)
4782 # QNX uses GNU C++, but need to define -shared option too, otherwise
4783 # it will coredump.
4784 PICFLAG_FOR_TARGET='-fPIC -shared'
4785 ;;
4786 i[34567]86-pc-msdosdjgpp*)
4787 # DJGPP does not support shared libraries at all.
4788 ;;
4789 ia64*-*-hpux*)
4790 # On IA64 HP-UX, PIC is the default but the pic flag
4791 # sets the default TLS model and affects inlining.
4792 PICFLAG_FOR_TARGET=-fPIC
4793 ;;
4794 mips-sgi-irix6*)
4795 # PIC is the default.
4796 ;;
4797 rs6000-ibm-aix* | powerpc-ibm-aix*)
4798 # All AIX code is PIC.
4799 ;;
4800
4801 # Some targets support both -fPIC and -fpic, but prefer the latter.
4802 # FIXME: Why?
4803 i[34567]86-*-* | x86_64-*-*)
4804 PICFLAG_FOR_TARGET=-fpic
4805 ;;
4806 m68k-*-*)
4807 PICFLAG_FOR_TARGET=-fpic
4808 ;;
4809 # FIXME: Override -fPIC default in libgcc only?
4810 sh-*-linux* | sh[2346lbe]*-*-linux*)
4811 PICFLAG_FOR_TARGET=-fpic
4812 ;;
4813 # FIXME: Simplify to sh*-*-netbsd*?
4814 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4815 sh64-*-netbsd* | sh64l*-*-netbsd*)
4816 PICFLAG_FOR_TARGET=-fpic
4817 ;;
4818 # Default to -fPIC unless specified otherwise.
4819 *)
4820 PICFLAG_FOR_TARGET=-fPIC
4821 ;;
4822 esac
4823
4824 # If the user explicitly uses -fpic/-fPIC, keep that.
4825 case "${CFLAGS_FOR_TARGET}" in
4826 *-fpic*)
4827 PICFLAG_FOR_TARGET=-fpic
4828 ;;
4829 *-fPIC*)
4830 PICFLAG_FOR_TARGET=-fPIC
4831 ;;
4832 esac
4833
4834
4835
4836 # -------------------------
4837 # Check C compiler features
4838 # -------------------------
4839
4840
4841 ac_ext=c
4842 ac_cpp='$CPP $CPPFLAGS'
4843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4847 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4848 # On Suns, sometimes $CPP names a directory.
4849 if test -n "$CPP" && test -d "$CPP"; then
4850 CPP=
4851 fi
4852 if test -z "$CPP"; then
4853 if test "${ac_cv_prog_CPP+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 # Double quotes because CPP needs to be expanded
4857 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4858 do
4859 ac_preproc_ok=false
4860 for ac_c_preproc_warn_flag in '' yes
4861 do
4862 # Use a header file that comes with gcc, so configuring glibc
4863 # with a fresh cross-compiler works.
4864 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4865 # <limits.h> exists even on freestanding compilers.
4866 # On the NeXT, cc -E runs the code through the compiler's parser,
4867 # not just through cpp. "Syntax error" is here to catch this case.
4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h. */
4870 #ifdef __STDC__
4871 # include <limits.h>
4872 #else
4873 # include <assert.h>
4874 #endif
4875 Syntax error
4876 _ACEOF
4877 if ac_fn_c_try_cpp "$LINENO"; then :
4878
4879 else
4880 # Broken: fails on valid input.
4881 continue
4882 fi
4883 rm -f conftest.err conftest.$ac_ext
4884
4885 # OK, works on sane cases. Now check whether nonexistent headers
4886 # can be detected and how.
4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4889 #include <ac_nonexistent.h>
4890 _ACEOF
4891 if ac_fn_c_try_cpp "$LINENO"; then :
4892 # Broken: success on invalid input.
4893 continue
4894 else
4895 # Passes both tests.
4896 ac_preproc_ok=:
4897 break
4898 fi
4899 rm -f conftest.err conftest.$ac_ext
4900
4901 done
4902 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4903 rm -f conftest.err conftest.$ac_ext
4904 if $ac_preproc_ok; then :
4905 break
4906 fi
4907
4908 done
4909 ac_cv_prog_CPP=$CPP
4910
4911 fi
4912 CPP=$ac_cv_prog_CPP
4913 else
4914 ac_cv_prog_CPP=$CPP
4915 fi
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4917 $as_echo "$CPP" >&6; }
4918 ac_preproc_ok=false
4919 for ac_c_preproc_warn_flag in '' yes
4920 do
4921 # Use a header file that comes with gcc, so configuring glibc
4922 # with a fresh cross-compiler works.
4923 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4924 # <limits.h> exists even on freestanding compilers.
4925 # On the NeXT, cc -E runs the code through the compiler's parser,
4926 # not just through cpp. "Syntax error" is here to catch this case.
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4929 #ifdef __STDC__
4930 # include <limits.h>
4931 #else
4932 # include <assert.h>
4933 #endif
4934 Syntax error
4935 _ACEOF
4936 if ac_fn_c_try_cpp "$LINENO"; then :
4937
4938 else
4939 # Broken: fails on valid input.
4940 continue
4941 fi
4942 rm -f conftest.err conftest.$ac_ext
4943
4944 # OK, works on sane cases. Now check whether nonexistent headers
4945 # can be detected and how.
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4948 #include <ac_nonexistent.h>
4949 _ACEOF
4950 if ac_fn_c_try_cpp "$LINENO"; then :
4951 # Broken: success on invalid input.
4952 continue
4953 else
4954 # Passes both tests.
4955 ac_preproc_ok=:
4956 break
4957 fi
4958 rm -f conftest.err conftest.$ac_ext
4959
4960 done
4961 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4962 rm -f conftest.err conftest.$ac_ext
4963 if $ac_preproc_ok; then :
4964
4965 else
4966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4968 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4969 See \`config.log' for more details." "$LINENO" 5; }
4970 fi
4971
4972 ac_ext=c
4973 ac_cpp='$CPP $CPPFLAGS'
4974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4977
4978
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4980 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4981 if test "${ac_cv_path_GREP+set}" = set; then :
4982 $as_echo_n "(cached) " >&6
4983 else
4984 if test -z "$GREP"; then
4985 ac_path_GREP_found=false
4986 # Loop through the user's path and test for each of PROGNAME-LIST
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4989 do
4990 IFS=$as_save_IFS
4991 test -z "$as_dir" && as_dir=.
4992 for ac_prog in grep ggrep; do
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4995 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4996 # Check for GNU ac_path_GREP and select it if it is found.
4997 # Check for GNU $ac_path_GREP
4998 case `"$ac_path_GREP" --version 2>&1` in
4999 *GNU*)
5000 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5001 *)
5002 ac_count=0
5003 $as_echo_n 0123456789 >"conftest.in"
5004 while :
5005 do
5006 cat "conftest.in" "conftest.in" >"conftest.tmp"
5007 mv "conftest.tmp" "conftest.in"
5008 cp "conftest.in" "conftest.nl"
5009 $as_echo 'GREP' >> "conftest.nl"
5010 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5011 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5012 as_fn_arith $ac_count + 1 && ac_count=$as_val
5013 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5014 # Best one so far, save it but keep looking for a better one
5015 ac_cv_path_GREP="$ac_path_GREP"
5016 ac_path_GREP_max=$ac_count
5017 fi
5018 # 10*(2^10) chars as input seems more than enough
5019 test $ac_count -gt 10 && break
5020 done
5021 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5022 esac
5023
5024 $ac_path_GREP_found && break 3
5025 done
5026 done
5027 done
5028 IFS=$as_save_IFS
5029 if test -z "$ac_cv_path_GREP"; then
5030 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5031 fi
5032 else
5033 ac_cv_path_GREP=$GREP
5034 fi
5035
5036 fi
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5038 $as_echo "$ac_cv_path_GREP" >&6; }
5039 GREP="$ac_cv_path_GREP"
5040
5041
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5043 $as_echo_n "checking for egrep... " >&6; }
5044 if test "${ac_cv_path_EGREP+set}" = set; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5048 then ac_cv_path_EGREP="$GREP -E"
5049 else
5050 if test -z "$EGREP"; then
5051 ac_path_EGREP_found=false
5052 # Loop through the user's path and test for each of PROGNAME-LIST
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5055 do
5056 IFS=$as_save_IFS
5057 test -z "$as_dir" && as_dir=.
5058 for ac_prog in egrep; do
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5061 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5062 # Check for GNU ac_path_EGREP and select it if it is found.
5063 # Check for GNU $ac_path_EGREP
5064 case `"$ac_path_EGREP" --version 2>&1` in
5065 *GNU*)
5066 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5067 *)
5068 ac_count=0
5069 $as_echo_n 0123456789 >"conftest.in"
5070 while :
5071 do
5072 cat "conftest.in" "conftest.in" >"conftest.tmp"
5073 mv "conftest.tmp" "conftest.in"
5074 cp "conftest.in" "conftest.nl"
5075 $as_echo 'EGREP' >> "conftest.nl"
5076 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5077 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5078 as_fn_arith $ac_count + 1 && ac_count=$as_val
5079 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5080 # Best one so far, save it but keep looking for a better one
5081 ac_cv_path_EGREP="$ac_path_EGREP"
5082 ac_path_EGREP_max=$ac_count
5083 fi
5084 # 10*(2^10) chars as input seems more than enough
5085 test $ac_count -gt 10 && break
5086 done
5087 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5088 esac
5089
5090 $ac_path_EGREP_found && break 3
5091 done
5092 done
5093 done
5094 IFS=$as_save_IFS
5095 if test -z "$ac_cv_path_EGREP"; then
5096 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5097 fi
5098 else
5099 ac_cv_path_EGREP=$EGREP
5100 fi
5101
5102 fi
5103 fi
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5105 $as_echo "$ac_cv_path_EGREP" >&6; }
5106 EGREP="$ac_cv_path_EGREP"
5107
5108
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5110 $as_echo_n "checking for ANSI C header files... " >&6; }
5111 if test "${ac_cv_header_stdc+set}" = set; then :
5112 $as_echo_n "(cached) " >&6
5113 else
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5116 #include <stdlib.h>
5117 #include <stdarg.h>
5118 #include <string.h>
5119 #include <float.h>
5120
5121 int
5122 main ()
5123 {
5124
5125 ;
5126 return 0;
5127 }
5128 _ACEOF
5129 if ac_fn_c_try_compile "$LINENO"; then :
5130 ac_cv_header_stdc=yes
5131 else
5132 ac_cv_header_stdc=no
5133 fi
5134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5135
5136 if test $ac_cv_header_stdc = yes; then
5137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5140 #include <string.h>
5141
5142 _ACEOF
5143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5144 $EGREP "memchr" >/dev/null 2>&1; then :
5145
5146 else
5147 ac_cv_header_stdc=no
5148 fi
5149 rm -f conftest*
5150
5151 fi
5152
5153 if test $ac_cv_header_stdc = yes; then
5154 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5157 #include <stdlib.h>
5158
5159 _ACEOF
5160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5161 $EGREP "free" >/dev/null 2>&1; then :
5162
5163 else
5164 ac_cv_header_stdc=no
5165 fi
5166 rm -f conftest*
5167
5168 fi
5169
5170 if test $ac_cv_header_stdc = yes; then
5171 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5172 if test "$cross_compiling" = yes; then :
5173 :
5174 else
5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5177 #include <ctype.h>
5178 #include <stdlib.h>
5179 #if ((' ' & 0x0FF) == 0x020)
5180 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5181 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5182 #else
5183 # define ISLOWER(c) \
5184 (('a' <= (c) && (c) <= 'i') \
5185 || ('j' <= (c) && (c) <= 'r') \
5186 || ('s' <= (c) && (c) <= 'z'))
5187 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5188 #endif
5189
5190 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5191 int
5192 main ()
5193 {
5194 int i;
5195 for (i = 0; i < 256; i++)
5196 if (XOR (islower (i), ISLOWER (i))
5197 || toupper (i) != TOUPPER (i))
5198 return 2;
5199 return 0;
5200 }
5201 _ACEOF
5202 if ac_fn_c_try_run "$LINENO"; then :
5203
5204 else
5205 ac_cv_header_stdc=no
5206 fi
5207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5208 conftest.$ac_objext conftest.beam conftest.$ac_ext
5209 fi
5210
5211 fi
5212 fi
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5214 $as_echo "$ac_cv_header_stdc" >&6; }
5215 if test $ac_cv_header_stdc = yes; then
5216
5217 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5218
5219 fi
5220
5221 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5222 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5223 inttypes.h stdint.h unistd.h
5224 do :
5225 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5226 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5227 "
5228 eval as_val=\$$as_ac_Header
5229 if test "x$as_val" = x""yes; then :
5230 cat >>confdefs.h <<_ACEOF
5231 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5232 _ACEOF
5233
5234 fi
5235
5236 done
5237
5238
5239
5240 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5241 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5242 MINIX=yes
5243 else
5244 MINIX=
5245 fi
5246
5247
5248 if test "$MINIX" = yes; then
5249
5250 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5251
5252
5253 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5254
5255
5256 $as_echo "#define _MINIX 1" >>confdefs.h
5257
5258 fi
5259
5260
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5262 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5263 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5268
5269 # define __EXTENSIONS__ 1
5270 $ac_includes_default
5271 int
5272 main ()
5273 {
5274
5275 ;
5276 return 0;
5277 }
5278 _ACEOF
5279 if ac_fn_c_try_compile "$LINENO"; then :
5280 ac_cv_safe_to_define___extensions__=yes
5281 else
5282 ac_cv_safe_to_define___extensions__=no
5283 fi
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 fi
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5287 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5288 test $ac_cv_safe_to_define___extensions__ = yes &&
5289 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5290
5291 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5292
5293 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5294
5295 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5296
5297 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5298
5299
5300 ac_ext=c
5301 ac_cpp='$CPP $CPPFLAGS'
5302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5306 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5307 # On Suns, sometimes $CPP names a directory.
5308 if test -n "$CPP" && test -d "$CPP"; then
5309 CPP=
5310 fi
5311 if test -z "$CPP"; then
5312 if test "${ac_cv_prog_CPP+set}" = set; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 # Double quotes because CPP needs to be expanded
5316 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5317 do
5318 ac_preproc_ok=false
5319 for ac_c_preproc_warn_flag in '' yes
5320 do
5321 # Use a header file that comes with gcc, so configuring glibc
5322 # with a fresh cross-compiler works.
5323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5324 # <limits.h> exists even on freestanding compilers.
5325 # On the NeXT, cc -E runs the code through the compiler's parser,
5326 # not just through cpp. "Syntax error" is here to catch this case.
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5329 #ifdef __STDC__
5330 # include <limits.h>
5331 #else
5332 # include <assert.h>
5333 #endif
5334 Syntax error
5335 _ACEOF
5336 if ac_fn_c_try_cpp "$LINENO"; then :
5337
5338 else
5339 # Broken: fails on valid input.
5340 continue
5341 fi
5342 rm -f conftest.err conftest.$ac_ext
5343
5344 # OK, works on sane cases. Now check whether nonexistent headers
5345 # can be detected and how.
5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h. */
5348 #include <ac_nonexistent.h>
5349 _ACEOF
5350 if ac_fn_c_try_cpp "$LINENO"; then :
5351 # Broken: success on invalid input.
5352 continue
5353 else
5354 # Passes both tests.
5355 ac_preproc_ok=:
5356 break
5357 fi
5358 rm -f conftest.err conftest.$ac_ext
5359
5360 done
5361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5362 rm -f conftest.err conftest.$ac_ext
5363 if $ac_preproc_ok; then :
5364 break
5365 fi
5366
5367 done
5368 ac_cv_prog_CPP=$CPP
5369
5370 fi
5371 CPP=$ac_cv_prog_CPP
5372 else
5373 ac_cv_prog_CPP=$CPP
5374 fi
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5376 $as_echo "$CPP" >&6; }
5377 ac_preproc_ok=false
5378 for ac_c_preproc_warn_flag in '' yes
5379 do
5380 # Use a header file that comes with gcc, so configuring glibc
5381 # with a fresh cross-compiler works.
5382 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5383 # <limits.h> exists even on freestanding compilers.
5384 # On the NeXT, cc -E runs the code through the compiler's parser,
5385 # not just through cpp. "Syntax error" is here to catch this case.
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5388 #ifdef __STDC__
5389 # include <limits.h>
5390 #else
5391 # include <assert.h>
5392 #endif
5393 Syntax error
5394 _ACEOF
5395 if ac_fn_c_try_cpp "$LINENO"; then :
5396
5397 else
5398 # Broken: fails on valid input.
5399 continue
5400 fi
5401 rm -f conftest.err conftest.$ac_ext
5402
5403 # OK, works on sane cases. Now check whether nonexistent headers
5404 # can be detected and how.
5405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406 /* end confdefs.h. */
5407 #include <ac_nonexistent.h>
5408 _ACEOF
5409 if ac_fn_c_try_cpp "$LINENO"; then :
5410 # Broken: success on invalid input.
5411 continue
5412 else
5413 # Passes both tests.
5414 ac_preproc_ok=:
5415 break
5416 fi
5417 rm -f conftest.err conftest.$ac_ext
5418
5419 done
5420 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5421 rm -f conftest.err conftest.$ac_ext
5422 if $ac_preproc_ok; then :
5423
5424 else
5425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5427 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5428 See \`config.log' for more details." "$LINENO" 5; }
5429 fi
5430
5431 ac_ext=c
5432 ac_cpp='$CPP $CPPFLAGS'
5433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5436
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5438 $as_echo_n "checking for inline... " >&6; }
5439 if test "${ac_cv_c_inline+set}" = set; then :
5440 $as_echo_n "(cached) " >&6
5441 else
5442 ac_cv_c_inline=no
5443 for ac_kw in inline __inline__ __inline; do
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5446 #ifndef __cplusplus
5447 typedef int foo_t;
5448 static $ac_kw foo_t static_foo () {return 0; }
5449 $ac_kw foo_t foo () {return 0; }
5450 #endif
5451
5452 _ACEOF
5453 if ac_fn_c_try_compile "$LINENO"; then :
5454 ac_cv_c_inline=$ac_kw
5455 fi
5456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5457 test "$ac_cv_c_inline" != no && break
5458 done
5459
5460 fi
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5462 $as_echo "$ac_cv_c_inline" >&6; }
5463
5464 case $ac_cv_c_inline in
5465 inline | yes) ;;
5466 *)
5467 case $ac_cv_c_inline in
5468 no) ac_val=;;
5469 *) ac_val=$ac_cv_c_inline;;
5470 esac
5471 cat >>confdefs.h <<_ACEOF
5472 #ifndef __cplusplus
5473 #define inline $ac_val
5474 #endif
5475 _ACEOF
5476 ;;
5477 esac
5478
5479
5480 # Check whether --enable-largefile was given.
5481 if test "${enable_largefile+set}" = set; then :
5482 enableval=$enable_largefile;
5483 fi
5484
5485 if test "$enable_largefile" != no; then
5486
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5488 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5489 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5490 $as_echo_n "(cached) " >&6
5491 else
5492 ac_cv_sys_largefile_CC=no
5493 if test "$GCC" != yes; then
5494 ac_save_CC=$CC
5495 while :; do
5496 # IRIX 6.2 and later do not support large files by default,
5497 # so use the C compiler's -n32 option if that helps.
5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h. */
5500 #include <sys/types.h>
5501 /* Check that off_t can represent 2**63 - 1 correctly.
5502 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5503 since some C++ compilers masquerading as C compilers
5504 incorrectly reject 9223372036854775807. */
5505 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5506 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5507 && LARGE_OFF_T % 2147483647 == 1)
5508 ? 1 : -1];
5509 int
5510 main ()
5511 {
5512
5513 ;
5514 return 0;
5515 }
5516 _ACEOF
5517 if ac_fn_c_try_compile "$LINENO"; then :
5518 break
5519 fi
5520 rm -f core conftest.err conftest.$ac_objext
5521 CC="$CC -n32"
5522 if ac_fn_c_try_compile "$LINENO"; then :
5523 ac_cv_sys_largefile_CC=' -n32'; break
5524 fi
5525 rm -f core conftest.err conftest.$ac_objext
5526 break
5527 done
5528 CC=$ac_save_CC
5529 rm -f conftest.$ac_ext
5530 fi
5531 fi
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5533 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5534 if test "$ac_cv_sys_largefile_CC" != no; then
5535 CC=$CC$ac_cv_sys_largefile_CC
5536 fi
5537
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5539 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5540 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5541 $as_echo_n "(cached) " >&6
5542 else
5543 while :; do
5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545 /* end confdefs.h. */
5546 #include <sys/types.h>
5547 /* Check that off_t can represent 2**63 - 1 correctly.
5548 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5549 since some C++ compilers masquerading as C compilers
5550 incorrectly reject 9223372036854775807. */
5551 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5552 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5553 && LARGE_OFF_T % 2147483647 == 1)
5554 ? 1 : -1];
5555 int
5556 main ()
5557 {
5558
5559 ;
5560 return 0;
5561 }
5562 _ACEOF
5563 if ac_fn_c_try_compile "$LINENO"; then :
5564 ac_cv_sys_file_offset_bits=no; break
5565 fi
5566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5569 #define _FILE_OFFSET_BITS 64
5570 #include <sys/types.h>
5571 /* Check that off_t can represent 2**63 - 1 correctly.
5572 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5573 since some C++ compilers masquerading as C compilers
5574 incorrectly reject 9223372036854775807. */
5575 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5576 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5577 && LARGE_OFF_T % 2147483647 == 1)
5578 ? 1 : -1];
5579 int
5580 main ()
5581 {
5582
5583 ;
5584 return 0;
5585 }
5586 _ACEOF
5587 if ac_fn_c_try_compile "$LINENO"; then :
5588 ac_cv_sys_file_offset_bits=64; break
5589 fi
5590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591 ac_cv_sys_file_offset_bits=unknown
5592 break
5593 done
5594 fi
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5596 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5597 case $ac_cv_sys_file_offset_bits in #(
5598 no | unknown) ;;
5599 *)
5600 cat >>confdefs.h <<_ACEOF
5601 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5602 _ACEOF
5603 ;;
5604 esac
5605 rm -rf conftest*
5606 if test $ac_cv_sys_file_offset_bits = unknown; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5608 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5609 if test "${ac_cv_sys_large_files+set}" = set; then :
5610 $as_echo_n "(cached) " >&6
5611 else
5612 while :; do
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5615 #include <sys/types.h>
5616 /* Check that off_t can represent 2**63 - 1 correctly.
5617 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5618 since some C++ compilers masquerading as C compilers
5619 incorrectly reject 9223372036854775807. */
5620 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5621 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5622 && LARGE_OFF_T % 2147483647 == 1)
5623 ? 1 : -1];
5624 int
5625 main ()
5626 {
5627
5628 ;
5629 return 0;
5630 }
5631 _ACEOF
5632 if ac_fn_c_try_compile "$LINENO"; then :
5633 ac_cv_sys_large_files=no; break
5634 fi
5635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 #define _LARGE_FILES 1
5639 #include <sys/types.h>
5640 /* Check that off_t can represent 2**63 - 1 correctly.
5641 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5642 since some C++ compilers masquerading as C compilers
5643 incorrectly reject 9223372036854775807. */
5644 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5645 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5646 && LARGE_OFF_T % 2147483647 == 1)
5647 ? 1 : -1];
5648 int
5649 main ()
5650 {
5651
5652 ;
5653 return 0;
5654 }
5655 _ACEOF
5656 if ac_fn_c_try_compile "$LINENO"; then :
5657 ac_cv_sys_large_files=1; break
5658 fi
5659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5660 ac_cv_sys_large_files=unknown
5661 break
5662 done
5663 fi
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5665 $as_echo "$ac_cv_sys_large_files" >&6; }
5666 case $ac_cv_sys_large_files in #(
5667 no | unknown) ;;
5668 *)
5669 cat >>confdefs.h <<_ACEOF
5670 #define _LARGE_FILES $ac_cv_sys_large_files
5671 _ACEOF
5672 ;;
5673 esac
5674 rm -rf conftest*
5675 fi
5676 fi
5677
5678
5679 # sizeof(char) is 1 by definition.
5680 # The cast to long int works around a bug in the HP C Compiler
5681 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5682 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5683 # This bug is HP SR number 8606223364.
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5685 $as_echo_n "checking size of void *... " >&6; }
5686 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5687 $as_echo_n "(cached) " >&6
5688 else
5689 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5690
5691 else
5692 if test "$ac_cv_type_void_p" = yes; then
5693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5695 { as_fn_set_status 77
5696 as_fn_error "cannot compute sizeof (void *)
5697 See \`config.log' for more details." "$LINENO" 5; }; }
5698 else
5699 ac_cv_sizeof_void_p=0
5700 fi
5701 fi
5702
5703 fi
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5705 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5706
5707
5708
5709 cat >>confdefs.h <<_ACEOF
5710 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5711 _ACEOF
5712
5713
5714 # The cast to long int works around a bug in the HP C Compiler
5715 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5716 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5717 # This bug is HP SR number 8606223364.
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5719 $as_echo_n "checking size of short... " >&6; }
5720 if test "${ac_cv_sizeof_short+set}" = set; then :
5721 $as_echo_n "(cached) " >&6
5722 else
5723 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5724
5725 else
5726 if test "$ac_cv_type_short" = yes; then
5727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5729 { as_fn_set_status 77
5730 as_fn_error "cannot compute sizeof (short)
5731 See \`config.log' for more details." "$LINENO" 5; }; }
5732 else
5733 ac_cv_sizeof_short=0
5734 fi
5735 fi
5736
5737 fi
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5739 $as_echo "$ac_cv_sizeof_short" >&6; }
5740
5741
5742
5743 cat >>confdefs.h <<_ACEOF
5744 #define SIZEOF_SHORT $ac_cv_sizeof_short
5745 _ACEOF
5746
5747
5748 # The cast to long int works around a bug in the HP C Compiler
5749 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5750 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5751 # This bug is HP SR number 8606223364.
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5753 $as_echo_n "checking size of int... " >&6; }
5754 if test "${ac_cv_sizeof_int+set}" = set; then :
5755 $as_echo_n "(cached) " >&6
5756 else
5757 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5758
5759 else
5760 if test "$ac_cv_type_int" = yes; then
5761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5763 { as_fn_set_status 77
5764 as_fn_error "cannot compute sizeof (int)
5765 See \`config.log' for more details." "$LINENO" 5; }; }
5766 else
5767 ac_cv_sizeof_int=0
5768 fi
5769 fi
5770
5771 fi
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5773 $as_echo "$ac_cv_sizeof_int" >&6; }
5774
5775
5776
5777 cat >>confdefs.h <<_ACEOF
5778 #define SIZEOF_INT $ac_cv_sizeof_int
5779 _ACEOF
5780
5781
5782 # The cast to long int works around a bug in the HP C Compiler
5783 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5784 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5785 # This bug is HP SR number 8606223364.
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5787 $as_echo_n "checking size of long... " >&6; }
5788 if test "${ac_cv_sizeof_long+set}" = set; then :
5789 $as_echo_n "(cached) " >&6
5790 else
5791 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5792
5793 else
5794 if test "$ac_cv_type_long" = yes; then
5795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5797 { as_fn_set_status 77
5798 as_fn_error "cannot compute sizeof (long)
5799 See \`config.log' for more details." "$LINENO" 5; }; }
5800 else
5801 ac_cv_sizeof_long=0
5802 fi
5803 fi
5804
5805 fi
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5807 $as_echo "$ac_cv_sizeof_long" >&6; }
5808
5809
5810
5811 cat >>confdefs.h <<_ACEOF
5812 #define SIZEOF_LONG $ac_cv_sizeof_long
5813 _ACEOF
5814
5815
5816 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5817 if test "x$ac_cv_type_long_long" = x""yes; then :
5818
5819 cat >>confdefs.h <<_ACEOF
5820 #define HAVE_LONG_LONG 1
5821 _ACEOF
5822
5823 # The cast to long int works around a bug in the HP C Compiler
5824 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5825 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5826 # This bug is HP SR number 8606223364.
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5828 $as_echo_n "checking size of long long... " >&6; }
5829 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5830 $as_echo_n "(cached) " >&6
5831 else
5832 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5833
5834 else
5835 if test "$ac_cv_type_long_long" = yes; then
5836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5838 { as_fn_set_status 77
5839 as_fn_error "cannot compute sizeof (long long)
5840 See \`config.log' for more details." "$LINENO" 5; }; }
5841 else
5842 ac_cv_sizeof_long_long=0
5843 fi
5844 fi
5845
5846 fi
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5848 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5849
5850
5851
5852 cat >>confdefs.h <<_ACEOF
5853 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5854 _ACEOF
5855
5856
5857 fi
5858
5859 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5860 if test "x$ac_cv_type___int64" = x""yes; then :
5861
5862 cat >>confdefs.h <<_ACEOF
5863 #define HAVE___INT64 1
5864 _ACEOF
5865
5866 # The cast to long int works around a bug in the HP C Compiler
5867 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5868 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5869 # This bug is HP SR number 8606223364.
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5871 $as_echo_n "checking size of __int64... " >&6; }
5872 if test "${ac_cv_sizeof___int64+set}" = set; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5875 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5876
5877 else
5878 if test "$ac_cv_type___int64" = yes; then
5879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5881 { as_fn_set_status 77
5882 as_fn_error "cannot compute sizeof (__int64)
5883 See \`config.log' for more details." "$LINENO" 5; }; }
5884 else
5885 ac_cv_sizeof___int64=0
5886 fi
5887 fi
5888
5889 fi
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5891 $as_echo "$ac_cv_sizeof___int64" >&6; }
5892
5893
5894
5895 cat >>confdefs.h <<_ACEOF
5896 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5897 _ACEOF
5898
5899
5900 fi
5901
5902 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5903 case $ac_cv_c_int8_t in #(
5904 no|yes) ;; #(
5905 *)
5906
5907 cat >>confdefs.h <<_ACEOF
5908 #define int8_t $ac_cv_c_int8_t
5909 _ACEOF
5910 ;;
5911 esac
5912
5913 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5914 case $ac_cv_c_int16_t in #(
5915 no|yes) ;; #(
5916 *)
5917
5918 cat >>confdefs.h <<_ACEOF
5919 #define int16_t $ac_cv_c_int16_t
5920 _ACEOF
5921 ;;
5922 esac
5923
5924 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5925 case $ac_cv_c_int32_t in #(
5926 no|yes) ;; #(
5927 *)
5928
5929 cat >>confdefs.h <<_ACEOF
5930 #define int32_t $ac_cv_c_int32_t
5931 _ACEOF
5932 ;;
5933 esac
5934
5935 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5936 case $ac_cv_c_int64_t in #(
5937 no|yes) ;; #(
5938 *)
5939
5940 cat >>confdefs.h <<_ACEOF
5941 #define int64_t $ac_cv_c_int64_t
5942 _ACEOF
5943 ;;
5944 esac
5945
5946
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5948 $as_echo_n "checking for long long int... " >&6; }
5949 if test "${ac_cv_type_long_long_int+set}" = set; then :
5950 $as_echo_n "(cached) " >&6
5951 else
5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h. */
5954
5955 /* For now, do not test the preprocessor; as of 2007 there are too many
5956 implementations with broken preprocessors. Perhaps this can
5957 be revisited in 2012. In the meantime, code should not expect
5958 #if to work with literals wider than 32 bits. */
5959 /* Test literals. */
5960 long long int ll = 9223372036854775807ll;
5961 long long int nll = -9223372036854775807LL;
5962 unsigned long long int ull = 18446744073709551615ULL;
5963 /* Test constant expressions. */
5964 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5965 ? 1 : -1)];
5966 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5967 ? 1 : -1)];
5968 int i = 63;
5969 int
5970 main ()
5971 {
5972 /* Test availability of runtime routines for shift and division. */
5973 long long int llmax = 9223372036854775807ll;
5974 unsigned long long int ullmax = 18446744073709551615ull;
5975 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5976 | (llmax / ll) | (llmax % ll)
5977 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5978 | (ullmax / ull) | (ullmax % ull));
5979 ;
5980 return 0;
5981 }
5982
5983 _ACEOF
5984 if ac_fn_c_try_link "$LINENO"; then :
5985 if test "$cross_compiling" = yes; then :
5986 ac_cv_type_long_long_int=yes
5987 else
5988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5989 /* end confdefs.h. */
5990 #include <limits.h>
5991 #ifndef LLONG_MAX
5992 # define HALF \
5993 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5994 # define LLONG_MAX (HALF - 1 + HALF)
5995 #endif
5996 int
5997 main ()
5998 {
5999 long long int n = 1;
6000 int i;
6001 for (i = 0; ; i++)
6002 {
6003 long long int m = n << i;
6004 if (m >> i != n)
6005 return 1;
6006 if (LLONG_MAX / 2 < m)
6007 break;
6008 }
6009 return 0;
6010 ;
6011 return 0;
6012 }
6013 _ACEOF
6014 if ac_fn_c_try_run "$LINENO"; then :
6015 ac_cv_type_long_long_int=yes
6016 else
6017 ac_cv_type_long_long_int=no
6018 fi
6019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6020 conftest.$ac_objext conftest.beam conftest.$ac_ext
6021 fi
6022
6023 else
6024 ac_cv_type_long_long_int=no
6025 fi
6026 rm -f core conftest.err conftest.$ac_objext \
6027 conftest$ac_exeext conftest.$ac_ext
6028 fi
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6030 $as_echo "$ac_cv_type_long_long_int" >&6; }
6031 if test $ac_cv_type_long_long_int = yes; then
6032
6033 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6034
6035 fi
6036
6037
6038
6039 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6040 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6041
6042 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6043
6044 else
6045 test $ac_cv_type_long_long_int = yes \
6046 && ac_type='long long int' \
6047 || ac_type='long int'
6048
6049 cat >>confdefs.h <<_ACEOF
6050 #define intmax_t $ac_type
6051 _ACEOF
6052
6053 fi
6054
6055
6056
6057 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6058 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6059
6060 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6061
6062 else
6063 for ac_type in 'int' 'long int' 'long long int'; do
6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065 /* end confdefs.h. */
6066 $ac_includes_default
6067 int
6068 main ()
6069 {
6070 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6071 test_array [0] = 0
6072
6073 ;
6074 return 0;
6075 }
6076 _ACEOF
6077 if ac_fn_c_try_compile "$LINENO"; then :
6078
6079 cat >>confdefs.h <<_ACEOF
6080 #define intptr_t $ac_type
6081 _ACEOF
6082
6083 ac_type=
6084 fi
6085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6086 test -z "$ac_type" && break
6087 done
6088 fi
6089
6090
6091 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6092 case $ac_cv_c_uint8_t in #(
6093 no|yes) ;; #(
6094 *)
6095
6096 $as_echo "#define _UINT8_T 1" >>confdefs.h
6097
6098
6099 cat >>confdefs.h <<_ACEOF
6100 #define uint8_t $ac_cv_c_uint8_t
6101 _ACEOF
6102 ;;
6103 esac
6104
6105 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6106 case $ac_cv_c_uint16_t in #(
6107 no|yes) ;; #(
6108 *)
6109
6110
6111 cat >>confdefs.h <<_ACEOF
6112 #define uint16_t $ac_cv_c_uint16_t
6113 _ACEOF
6114 ;;
6115 esac
6116
6117 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6118 case $ac_cv_c_uint32_t in #(
6119 no|yes) ;; #(
6120 *)
6121
6122 $as_echo "#define _UINT32_T 1" >>confdefs.h
6123
6124
6125 cat >>confdefs.h <<_ACEOF
6126 #define uint32_t $ac_cv_c_uint32_t
6127 _ACEOF
6128 ;;
6129 esac
6130
6131 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6132 case $ac_cv_c_uint64_t in #(
6133 no|yes) ;; #(
6134 *)
6135
6136 $as_echo "#define _UINT64_T 1" >>confdefs.h
6137
6138
6139 cat >>confdefs.h <<_ACEOF
6140 #define uint64_t $ac_cv_c_uint64_t
6141 _ACEOF
6142 ;;
6143 esac
6144
6145
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6147 $as_echo_n "checking for unsigned long long int... " >&6; }
6148 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6149 $as_echo_n "(cached) " >&6
6150 else
6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152 /* end confdefs.h. */
6153
6154 /* For now, do not test the preprocessor; as of 2007 there are too many
6155 implementations with broken preprocessors. Perhaps this can
6156 be revisited in 2012. In the meantime, code should not expect
6157 #if to work with literals wider than 32 bits. */
6158 /* Test literals. */
6159 long long int ll = 9223372036854775807ll;
6160 long long int nll = -9223372036854775807LL;
6161 unsigned long long int ull = 18446744073709551615ULL;
6162 /* Test constant expressions. */
6163 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6164 ? 1 : -1)];
6165 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6166 ? 1 : -1)];
6167 int i = 63;
6168 int
6169 main ()
6170 {
6171 /* Test availability of runtime routines for shift and division. */
6172 long long int llmax = 9223372036854775807ll;
6173 unsigned long long int ullmax = 18446744073709551615ull;
6174 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6175 | (llmax / ll) | (llmax % ll)
6176 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6177 | (ullmax / ull) | (ullmax % ull));
6178 ;
6179 return 0;
6180 }
6181
6182 _ACEOF
6183 if ac_fn_c_try_link "$LINENO"; then :
6184 ac_cv_type_unsigned_long_long_int=yes
6185 else
6186 ac_cv_type_unsigned_long_long_int=no
6187 fi
6188 rm -f core conftest.err conftest.$ac_objext \
6189 conftest$ac_exeext conftest.$ac_ext
6190 fi
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6192 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6193 if test $ac_cv_type_unsigned_long_long_int = yes; then
6194
6195 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6196
6197 fi
6198
6199
6200
6201 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6202 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6203
6204 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6205
6206 else
6207 test $ac_cv_type_unsigned_long_long_int = yes \
6208 && ac_type='unsigned long long int' \
6209 || ac_type='unsigned long int'
6210
6211 cat >>confdefs.h <<_ACEOF
6212 #define uintmax_t $ac_type
6213 _ACEOF
6214
6215 fi
6216
6217
6218
6219 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6220 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6221
6222 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6223
6224 else
6225 for ac_type in 'unsigned int' 'unsigned long int' \
6226 'unsigned long long int'; do
6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h. */
6229 $ac_includes_default
6230 int
6231 main ()
6232 {
6233 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6234 test_array [0] = 0
6235
6236 ;
6237 return 0;
6238 }
6239 _ACEOF
6240 if ac_fn_c_try_compile "$LINENO"; then :
6241
6242 cat >>confdefs.h <<_ACEOF
6243 #define uintptr_t $ac_type
6244 _ACEOF
6245
6246 ac_type=
6247 fi
6248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249 test -z "$ac_type" && break
6250 done
6251 fi
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267 # ---------------------
6268 # Warnings and checking
6269 # ---------------------
6270
6271 # Check $CC warning features (if it's GCC).
6272 # We want to use -pedantic, but we don't want warnings about
6273 # * 'long long'
6274 # * variadic macros
6275 # * overlong strings
6276 # * C++11 narrowing conversions in { }
6277 # So, we only use -pedantic if we can disable those warnings.
6278
6279 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6280 # Check whether --enable-build-format-warnings was given.
6281 if test "${enable_build_format_warnings+set}" = set; then :
6282 enableval=$enable_build_format_warnings;
6283 else
6284 enable_build_format_warnings=yes
6285 fi
6286
6287 if test $enable_build_format_warnings = no; then :
6288 wf_opt=-Wno-format
6289 else
6290 wf_opt=
6291 fi
6292 loose_warn=
6293 save_CFLAGS="$CFLAGS"
6294 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6295 # Do the check with the no- prefix removed since gcc silently
6296 # accepts any -Wno-* option on purpose
6297 case $real_option in
6298 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6299 *) option=$real_option ;;
6300 esac
6301 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6302
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6304 $as_echo_n "checking whether $CC supports $option... " >&6; }
6305 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6306 $as_echo_n "(cached) " >&6
6307 else
6308 CFLAGS="$option"
6309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310 /* end confdefs.h. */
6311
6312 int
6313 main ()
6314 {
6315
6316 ;
6317 return 0;
6318 }
6319 _ACEOF
6320 if ac_fn_c_try_compile "$LINENO"; then :
6321 eval "$as_acx_Woption=yes"
6322 else
6323 eval "$as_acx_Woption=no"
6324 fi
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326
6327 fi
6328 eval ac_res=\$$as_acx_Woption
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6330 $as_echo "$ac_res" >&6; }
6331 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6332 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6333 fi
6334 done
6335 CFLAGS="$save_CFLAGS"
6336
6337 c_loose_warn=
6338 save_CFLAGS="$CFLAGS"
6339 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6340 # Do the check with the no- prefix removed since gcc silently
6341 # accepts any -Wno-* option on purpose
6342 case $real_option in
6343 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6344 *) option=$real_option ;;
6345 esac
6346 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6347
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6349 $as_echo_n "checking whether $CC supports $option... " >&6; }
6350 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 CFLAGS="$option"
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6356
6357 int
6358 main ()
6359 {
6360
6361 ;
6362 return 0;
6363 }
6364 _ACEOF
6365 if ac_fn_c_try_compile "$LINENO"; then :
6366 eval "$as_acx_Woption=yes"
6367 else
6368 eval "$as_acx_Woption=no"
6369 fi
6370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6371
6372 fi
6373 eval ac_res=\$$as_acx_Woption
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6375 $as_echo "$ac_res" >&6; }
6376 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6377 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6378 fi
6379 done
6380 CFLAGS="$save_CFLAGS"
6381
6382 strict_warn=
6383 save_CFLAGS="$CFLAGS"
6384 for real_option in -Wmissing-format-attribute; do
6385 # Do the check with the no- prefix removed since gcc silently
6386 # accepts any -Wno-* option on purpose
6387 case $real_option in
6388 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6389 *) option=$real_option ;;
6390 esac
6391 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6392
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6394 $as_echo_n "checking whether $CC supports $option... " >&6; }
6395 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6396 $as_echo_n "(cached) " >&6
6397 else
6398 CFLAGS="$option"
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h. */
6401
6402 int
6403 main ()
6404 {
6405
6406 ;
6407 return 0;
6408 }
6409 _ACEOF
6410 if ac_fn_c_try_compile "$LINENO"; then :
6411 eval "$as_acx_Woption=yes"
6412 else
6413 eval "$as_acx_Woption=no"
6414 fi
6415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6416
6417 fi
6418 eval ac_res=\$$as_acx_Woption
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6420 $as_echo "$ac_res" >&6; }
6421 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6422 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6423 fi
6424 done
6425 CFLAGS="$save_CFLAGS"
6426
6427 c_strict_warn=
6428 save_CFLAGS="$CFLAGS"
6429 for real_option in -Wold-style-definition -Wc++-compat; do
6430 # Do the check with the no- prefix removed since gcc silently
6431 # accepts any -Wno-* option on purpose
6432 case $real_option in
6433 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6434 *) option=$real_option ;;
6435 esac
6436 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6437
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6439 $as_echo_n "checking whether $CC supports $option... " >&6; }
6440 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6441 $as_echo_n "(cached) " >&6
6442 else
6443 CFLAGS="$option"
6444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445 /* end confdefs.h. */
6446
6447 int
6448 main ()
6449 {
6450
6451 ;
6452 return 0;
6453 }
6454 _ACEOF
6455 if ac_fn_c_try_compile "$LINENO"; then :
6456 eval "$as_acx_Woption=yes"
6457 else
6458 eval "$as_acx_Woption=no"
6459 fi
6460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6461
6462 fi
6463 eval ac_res=\$$as_acx_Woption
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6465 $as_echo "$ac_res" >&6; }
6466 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6467 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6468 fi
6469 done
6470 CFLAGS="$save_CFLAGS"
6471
6472 # Do the check with the no- prefix removed from the warning options
6473 # since gcc silently accepts any -Wno-* option on purpose
6474 if test "$GCC" = yes; then :
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6476 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6477 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6478 $as_echo_n "(cached) " >&6
6479 else
6480 save_CFLAGS="$CFLAGS"
6481 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483 /* end confdefs.h. */
6484
6485 int
6486 main ()
6487 {
6488
6489 ;
6490 return 0;
6491 }
6492 _ACEOF
6493 if ac_fn_c_try_compile "$LINENO"; then :
6494 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6495 else
6496 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6497 fi
6498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6499 CFLAGS="$save_CFLAGS"
6500 fi
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6502 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6503 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6504 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6505 fi
6506
6507 fi
6508
6509 # Check whether --enable-werror-always was given.
6510 if test "${enable_werror_always+set}" = set; then :
6511 enableval=$enable_werror_always;
6512 else
6513 enable_werror_always=no
6514 fi
6515
6516 if test $enable_werror_always = yes; then :
6517 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6518 fi
6519
6520
6521
6522 # The above macros do nothing if the compiler is not GCC. However, the
6523 # Makefile has more goo to add other flags, so these variables are used
6524 # to enable warnings only for GCC.
6525 warn_cflags=
6526 warn_cxxflags=
6527 if test "x$GCC" = "xyes"; then
6528 warn_cflags='$(GCC_WARN_CFLAGS)'
6529 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6530 fi
6531
6532
6533
6534 # Disable exceptions and RTTI if building with g++
6535 noexception_flags=
6536 save_CFLAGS="$CFLAGS"
6537 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6538 # Do the check with the no- prefix removed since gcc silently
6539 # accepts any -Wno-* option on purpose
6540 case $real_option in
6541 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6542 *) option=$real_option ;;
6543 esac
6544 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6545
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6547 $as_echo_n "checking whether $CC supports $option... " >&6; }
6548 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6549 $as_echo_n "(cached) " >&6
6550 else
6551 CFLAGS="$option"
6552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6553 /* end confdefs.h. */
6554
6555 int
6556 main ()
6557 {
6558
6559 ;
6560 return 0;
6561 }
6562 _ACEOF
6563 if ac_fn_c_try_compile "$LINENO"; then :
6564 eval "$as_acx_Woption=yes"
6565 else
6566 eval "$as_acx_Woption=no"
6567 fi
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569
6570 fi
6571 eval ac_res=\$$as_acx_Woption
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6573 $as_echo "$ac_res" >&6; }
6574 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6575 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6576 fi
6577 done
6578 CFLAGS="$save_CFLAGS"
6579
6580
6581 # Enable expensive internal checks
6582 is_release=
6583 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6584 is_release=yes
6585 fi
6586
6587 # Check whether --enable-checking was given.
6588 if test "${enable_checking+set}" = set; then :
6589 enableval=$enable_checking; ac_checking_flags="${enableval}"
6590 else
6591
6592 # Determine the default checks.
6593 if test x$is_release = x ; then
6594 ac_checking_flags=yes
6595 else
6596 ac_checking_flags=release
6597 fi
6598 fi
6599
6600 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6601 for check in release $ac_checking_flags
6602 do
6603 case $check in
6604 # these set all the flags to specific states
6605 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6606 ac_fold_checking= ; ac_gc_checking=1 ;
6607 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6608 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6609 ac_tree_checking=1 ; ac_valgrind_checking= ;
6610 ac_types_checking=1 ;;
6611 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6612 ac_fold_checking= ; ac_gc_checking= ;
6613 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6614 ac_rtlflag_checking= ; ac_runtime_checking= ;
6615 ac_tree_checking= ; ac_valgrind_checking= ;
6616 ac_types_checking= ;;
6617 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6618 ac_fold_checking=1 ; ac_gc_checking=1 ;
6619 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6620 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6621 ac_tree_checking=1 ; ac_valgrind_checking= ;
6622 ac_types_checking=1 ;;
6623 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6624 ac_fold_checking= ; ac_gc_checking= ;
6625 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6626 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6627 ac_tree_checking= ; ac_valgrind_checking= ;
6628 ac_types_checking= ;;
6629 # these enable particular checks
6630 assert) ac_assert_checking=1 ;;
6631 df) ac_df_checking=1 ;;
6632 fold) ac_fold_checking=1 ;;
6633 gc) ac_gc_checking=1 ;;
6634 gcac) ac_gc_always_collect=1 ;;
6635 gimple) ac_gimple_checking=1 ;;
6636 misc) ac_checking=1 ;;
6637 rtl) ac_rtl_checking=1 ;;
6638 rtlflag) ac_rtlflag_checking=1 ;;
6639 runtime) ac_runtime_checking=1 ;;
6640 tree) ac_tree_checking=1 ;;
6641 types) ac_types_checking=1 ;;
6642 valgrind) ac_valgrind_checking=1 ;;
6643 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6644 esac
6645 done
6646 IFS="$ac_save_IFS"
6647
6648 nocommon_flag=""
6649 if test x$ac_checking != x ; then
6650
6651 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6652
6653 nocommon_flag=-fno-common
6654 fi
6655
6656 if test x$ac_df_checking != x ; then
6657
6658 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6659
6660 fi
6661 if test x$ac_assert_checking != x ; then
6662
6663 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6664
6665 fi
6666 if test x$ac_gimple_checking != x ; then
6667
6668 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6669
6670 fi
6671
6672 if test x$ac_runtime_checking != x ; then
6673
6674 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6675
6676 fi
6677 if test x$ac_tree_checking != x ; then
6678
6679 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6680
6681 TREEBROWSER=tree-browser.o
6682 TREECHECKING=yes
6683 fi
6684 if test x$ac_types_checking != x ; then
6685
6686 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6687
6688 fi
6689
6690
6691 if test x$ac_rtl_checking != x ; then
6692
6693 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6694
6695 fi
6696 if test x$ac_rtlflag_checking != x ; then
6697
6698 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6699
6700 fi
6701 if test x$ac_gc_checking != x ; then
6702
6703 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6704
6705 fi
6706 if test x$ac_gc_always_collect != x ; then
6707
6708 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6709
6710 fi
6711 if test x$ac_fold_checking != x ; then
6712
6713 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6714
6715 fi
6716 valgrind_path_defines=
6717 valgrind_command=
6718
6719 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6720 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6721 have_valgrind_h=yes
6722 else
6723 have_valgrind_h=no
6724 fi
6725
6726
6727
6728 if test x$ac_valgrind_checking != x ; then
6729 # It is certainly possible that there's valgrind but no valgrind.h.
6730 # GCC relies on making annotations so we must have both.
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6732 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h. */
6735 #include <valgrind/memcheck.h>
6736 #ifndef VALGRIND_DISCARD
6737 #error VALGRIND_DISCARD not defined
6738 #endif
6739 _ACEOF
6740 if ac_fn_c_try_cpp "$LINENO"; then :
6741 gcc_cv_header_valgrind_memcheck_h=yes
6742 else
6743 gcc_cv_header_valgrind_memcheck_h=no
6744 fi
6745 rm -f conftest.err conftest.$ac_ext
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6747 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6749 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751 /* end confdefs.h. */
6752 #include <memcheck.h>
6753 #ifndef VALGRIND_DISCARD
6754 #error VALGRIND_DISCARD not defined
6755 #endif
6756 _ACEOF
6757 if ac_fn_c_try_cpp "$LINENO"; then :
6758 gcc_cv_header_memcheck_h=yes
6759 else
6760 gcc_cv_header_memcheck_h=no
6761 fi
6762 rm -f conftest.err conftest.$ac_ext
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6764 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6765
6766 # Prepare PATH_SEPARATOR.
6767 # The user is always right.
6768 if test "${PATH_SEPARATOR+set}" != set; then
6769 echo "#! /bin/sh" >conf$$.sh
6770 echo "exit 0" >>conf$$.sh
6771 chmod +x conf$$.sh
6772 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6773 PATH_SEPARATOR=';'
6774 else
6775 PATH_SEPARATOR=:
6776 fi
6777 rm -f conf$$.sh
6778 fi
6779
6780 # Find out how to test for executable files. Don't use a zero-byte file,
6781 # as systems may use methods other than mode bits to determine executability.
6782 cat >conf$$.file <<_ASEOF
6783 #! /bin/sh
6784 exit 0
6785 _ASEOF
6786 chmod +x conf$$.file
6787 if test -x conf$$.file >/dev/null 2>&1; then
6788 ac_executable_p="test -x"
6789 else
6790 ac_executable_p="test -f"
6791 fi
6792 rm -f conf$$.file
6793
6794 # Extract the first word of "valgrind", so it can be a program name with args.
6795 set dummy valgrind; ac_word=$2
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797 $as_echo_n "checking for $ac_word... " >&6; }
6798 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6799 $as_echo_n "(cached) " >&6
6800 else
6801 case "$valgrind_path" in
6802 [\\/]* | ?:[\\/]*)
6803 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6804 ;;
6805 *)
6806 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6807 for ac_dir in $PATH; do
6808 IFS="$ac_save_IFS"
6809 test -z "$ac_dir" && ac_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
6811 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6812 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6813 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6814 break 2
6815 fi
6816 fi
6817 done
6818 done
6819 IFS="$ac_save_IFS"
6820 ;;
6821 esac
6822 fi
6823 valgrind_path="$ac_cv_path_valgrind_path"
6824 if test -n "$valgrind_path"; then
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6826 $as_echo "$valgrind_path" >&6; }
6827 else
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829 $as_echo "no" >&6; }
6830 fi
6831
6832 if test "x$valgrind_path" = "x" \
6833 || (test $have_valgrind_h = no \
6834 && test $gcc_cv_header_memcheck_h = no \
6835 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6836 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6837 fi
6838 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6839 valgrind_command="$valgrind_path -q"
6840
6841 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6842
6843 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6844
6845 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6846
6847 fi
6848 if test $gcc_cv_header_memcheck_h = yes; then
6849
6850 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6851
6852 fi
6853 fi
6854
6855
6856
6857 # Enable code coverage collection
6858 # Check whether --enable-coverage was given.
6859 if test "${enable_coverage+set}" = set; then :
6860 enableval=$enable_coverage; case "${enableval}" in
6861 yes|noopt)
6862 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6863 ;;
6864 opt)
6865 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6866 ;;
6867 no)
6868 # a.k.a. --disable-coverage
6869 coverage_flags=""
6870 ;;
6871 *)
6872 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6873 ;;
6874 esac
6875 else
6876 coverage_flags=""
6877 fi
6878
6879
6880
6881 # Check whether --enable-gather-detailed-mem-stats was given.
6882 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6883 enableval=$enable_gather_detailed_mem_stats;
6884 else
6885 enable_gather_detailed_mem_stats=no
6886 fi
6887
6888 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6889
6890 cat >>confdefs.h <<_ACEOF
6891 #define GATHER_STATISTICS $gather_stats
6892 _ACEOF
6893
6894
6895 # -------------------------------
6896 # Miscenalleous configure options
6897 # -------------------------------
6898
6899 # With stabs
6900
6901 # Check whether --with-stabs was given.
6902 if test "${with_stabs+set}" = set; then :
6903 withval=$with_stabs; stabs="$with_stabs"
6904 else
6905 stabs=no
6906 fi
6907
6908
6909 # Determine whether or not multilibs are enabled.
6910 # Check whether --enable-multilib was given.
6911 if test "${enable_multilib+set}" = set; then :
6912 enableval=$enable_multilib;
6913 else
6914 enable_multilib=yes
6915 fi
6916
6917
6918
6919 # Determine whether or not multiarch is enabled.
6920 # Check whether --enable-multiarch was given.
6921 if test "${enable_multiarch+set}" = set; then :
6922 enableval=$enable_multiarch; case "${enableval}" in
6923 yes|no|auto) enable_multiarch=$enableval;;
6924 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
6925 esac
6926 else
6927 enable_multiarch=auto
6928 fi
6929
6930 if test x${enable_multiarch} = xauto; then
6931 if test x${with_native_system_header_dir} != x; then
6932 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
6933 enable_multiarch=no
6934 fi
6935 if test x$host != x$target && test "x$with_sysroot" = x; then
6936 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
6937 enable_multiarch=no
6938 fi
6939 fi
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
6941 $as_echo_n "checking for multiarch configuration... " >&6; }
6942
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
6944 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
6945
6946 # needed for setting the multiarch name for soft-float/hard-float ABIs
6947
6948
6949
6950 # Enable __cxa_atexit for C++.
6951 # Check whether --enable-__cxa_atexit was given.
6952 if test "${enable___cxa_atexit+set}" = set; then :
6953 enableval=$enable___cxa_atexit;
6954 fi
6955
6956
6957 # Enable C extension for decimal float if target supports it.
6958
6959 # Check whether --enable-decimal-float was given.
6960 if test "${enable_decimal_float+set}" = set; then :
6961 enableval=$enable_decimal_float;
6962 case $enable_decimal_float in
6963 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6964 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6965 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6966 esac
6967
6968 else
6969
6970 case $target in
6971 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6972 i?86*-*-gnu* | \
6973 i?86*-*-mingw* | x86_64*-*-mingw* | \
6974 i?86*-*-cygwin* | x86_64*-*-cygwin*)
6975 enable_decimal_float=yes
6976 ;;
6977 *)
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6979 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6980 enable_decimal_float=no
6981 ;;
6982 esac
6983
6984 fi
6985
6986
6987 # x86's use BID format instead of DPD
6988 case x$enable_decimal_float in
6989 xyes)
6990 case $target in
6991 i?86*-*-* | x86_64*-*-*)
6992 enable_decimal_float=bid
6993 ;;
6994 *)
6995 enable_decimal_float=dpd
6996 ;;
6997 esac
6998 default_decimal_float=$enable_decimal_float
6999 ;;
7000 xno)
7001 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7002 # dependency on libdecnumber.
7003 default_decimal_float=dpd
7004 ;;
7005 esac
7006
7007
7008
7009
7010 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7011
7012 cat >>confdefs.h <<_ACEOF
7013 #define ENABLE_DECIMAL_FLOAT $dfp
7014 _ACEOF
7015
7016
7017 # Use default_decimal_float for dependency.
7018 enable_decimal_float=$default_decimal_float
7019
7020 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7021
7022 cat >>confdefs.h <<_ACEOF
7023 #define ENABLE_DECIMAL_BID_FORMAT $bid
7024 _ACEOF
7025
7026
7027 # Enable C extension for fixed-point arithmetic.
7028 # Check whether --enable-fixed-point was given.
7029 if test "${enable_fixed_point+set}" = set; then :
7030 enableval=$enable_fixed_point;
7031 else
7032
7033 case $target in
7034 arm*)
7035 enable_fixed_point=yes
7036 ;;
7037
7038 mips*-*-*)
7039 enable_fixed_point=yes
7040 ;;
7041 *)
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7043 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7044 enable_fixed_point=no
7045 ;;
7046 esac
7047
7048 fi
7049
7050
7051
7052 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7053
7054 cat >>confdefs.h <<_ACEOF
7055 #define ENABLE_FIXED_POINT $fixedpoint
7056 _ACEOF
7057
7058
7059 # Enable threads
7060 # Pass with no value to take the default
7061 # Pass with a value to specify a thread package
7062 # Check whether --enable-threads was given.
7063 if test "${enable_threads+set}" = set; then :
7064 enableval=$enable_threads;
7065 else
7066 enable_threads=''
7067 fi
7068
7069
7070 # Check whether --enable-tls was given.
7071 if test "${enable_tls+set}" = set; then :
7072 enableval=$enable_tls;
7073 case $enable_tls in
7074 yes | no) ;;
7075 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7076 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7077 esac
7078
7079 else
7080 enable_tls=''
7081 fi
7082
7083
7084 # Check whether --enable-objc-gc was given.
7085 if test "${enable_objc_gc+set}" = set; then :
7086 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7087 objc_boehm_gc=''
7088 else
7089 objc_boehm_gc=1
7090 fi
7091 else
7092 objc_boehm_gc=''
7093 fi
7094
7095
7096
7097 # Check whether --with-dwarf2 was given.
7098 if test "${with_dwarf2+set}" = set; then :
7099 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7100 else
7101 dwarf2=no
7102 fi
7103
7104
7105 # Check whether --enable-shared was given.
7106 if test "${enable_shared+set}" = set; then :
7107 enableval=$enable_shared;
7108 case $enable_shared in
7109 yes | no) ;;
7110 *)
7111 enable_shared=no
7112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7113 for pkg in $enableval; do
7114 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7115 enable_shared=yes
7116 fi
7117 done
7118 IFS="$ac_save_ifs"
7119 ;;
7120 esac
7121
7122 else
7123 enable_shared=yes
7124 fi
7125
7126
7127
7128
7129 # Check whether --with-native-system-header-dir was given.
7130 if test "${with_native_system_header_dir+set}" = set; then :
7131 withval=$with_native_system_header_dir;
7132 case ${with_native_system_header_dir} in
7133 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7134 /* | [A-Za-z]:[\\/]*) ;;
7135 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7136 esac
7137 configured_native_system_header_dir="${withval}"
7138
7139 else
7140 configured_native_system_header_dir=
7141 fi
7142
7143
7144
7145 # Check whether --with-build-sysroot was given.
7146 if test "${with_build_sysroot+set}" = set; then :
7147 withval=$with_build_sysroot; if test x"$withval" != x ; then
7148 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7149 fi
7150 else
7151 SYSROOT_CFLAGS_FOR_TARGET=
7152 fi
7153
7154
7155
7156 if test "x$prefix" = xNONE; then
7157 test_prefix=/usr/local
7158 else
7159 test_prefix=$prefix
7160 fi
7161 if test "x$exec_prefix" = xNONE; then
7162 test_exec_prefix=$test_prefix
7163 else
7164 test_exec_prefix=$exec_prefix
7165 fi
7166
7167
7168 # Check whether --with-sysroot was given.
7169 if test "${with_sysroot+set}" = set; then :
7170 withval=$with_sysroot;
7171 case ${with_sysroot} in
7172 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7173 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7174 esac
7175
7176 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7177 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7178
7179 case ${TARGET_SYSTEM_ROOT} in
7180 "${test_prefix}"|"${test_prefix}/"*|\
7181 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7182 '${prefix}'|'${prefix}/'*|\
7183 '${exec_prefix}'|'${exec_prefix}/'*)
7184 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7185 TARGET_SYSTEM_ROOT_DEFINE="$t"
7186 ;;
7187 esac
7188
7189 else
7190
7191 TARGET_SYSTEM_ROOT=
7192 TARGET_SYSTEM_ROOT_DEFINE=
7193 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7194
7195 fi
7196
7197
7198
7199
7200
7201
7202 # Check whether --with-specs was given.
7203 if test "${with_specs+set}" = set; then :
7204 withval=$with_specs; CONFIGURE_SPECS=$withval
7205 else
7206 CONFIGURE_SPECS=
7207
7208 fi
7209
7210
7211
7212
7213
7214 # Check whether --with-pkgversion was given.
7215 if test "${with_pkgversion+set}" = set; then :
7216 withval=$with_pkgversion; case "$withval" in
7217 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7218 no) PKGVERSION= ;;
7219 *) PKGVERSION="($withval) " ;;
7220 esac
7221 else
7222 PKGVERSION="(GCC) "
7223
7224 fi
7225
7226
7227
7228
7229
7230 # Check whether --with-bugurl was given.
7231 if test "${with_bugurl+set}" = set; then :
7232 withval=$with_bugurl; case "$withval" in
7233 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7234 no) BUGURL=
7235 ;;
7236 *) BUGURL="$withval"
7237 ;;
7238 esac
7239 else
7240 BUGURL="http://gcc.gnu.org/bugs.html"
7241
7242 fi
7243
7244 case ${BUGURL} in
7245 "")
7246 REPORT_BUGS_TO=
7247 REPORT_BUGS_TEXI=
7248 ;;
7249 *)
7250 REPORT_BUGS_TO="<$BUGURL>"
7251 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7252 ;;
7253 esac;
7254
7255
7256
7257
7258 # Sanity check enable_languages in case someone does not run the toplevel
7259 # configure # script.
7260 # Check whether --enable-languages was given.
7261 if test "${enable_languages+set}" = set; then :
7262 enableval=$enable_languages; case ,${enable_languages}, in
7263 ,,|,yes,)
7264 # go safe -- we cannot be much sure without the toplevel
7265 # configure's
7266 # analysis of which target libs are present and usable
7267 enable_languages=c
7268 ;;
7269 *,all,*)
7270 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7271 ;;
7272 *,c,*)
7273 ;;
7274 *)
7275 enable_languages=c,${enable_languages}
7276 ;;
7277 esac
7278 else
7279 enable_languages=c
7280 fi
7281
7282
7283
7284 # Check whether --with-multilib-list was given.
7285 if test "${with_multilib_list+set}" = set; then :
7286 withval=$with_multilib_list; :
7287 else
7288 with_multilib_list=default
7289 fi
7290
7291
7292 # -------------------------
7293 # Checks for other programs
7294 # -------------------------
7295
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7297 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7298 set x ${MAKE-make}
7299 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7300 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7301 $as_echo_n "(cached) " >&6
7302 else
7303 cat >conftest.make <<\_ACEOF
7304 SHELL = /bin/sh
7305 all:
7306 @echo '@@@%%%=$(MAKE)=@@@%%%'
7307 _ACEOF
7308 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7309 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7310 *@@@%%%=?*=@@@%%%*)
7311 eval ac_cv_prog_make_${ac_make}_set=yes;;
7312 *)
7313 eval ac_cv_prog_make_${ac_make}_set=no;;
7314 esac
7315 rm -f conftest.make
7316 fi
7317 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7319 $as_echo "yes" >&6; }
7320 SET_MAKE=
7321 else
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323 $as_echo "no" >&6; }
7324 SET_MAKE="MAKE=${MAKE-make}"
7325 fi
7326
7327
7328 # Find some useful tools
7329 for ac_prog in gawk mawk nawk awk
7330 do
7331 # Extract the first word of "$ac_prog", so it can be a program name with args.
7332 set dummy $ac_prog; ac_word=$2
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334 $as_echo_n "checking for $ac_word... " >&6; }
7335 if test "${ac_cv_prog_AWK+set}" = set; then :
7336 $as_echo_n "(cached) " >&6
7337 else
7338 if test -n "$AWK"; then
7339 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7340 else
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 for as_dir in $PATH
7343 do
7344 IFS=$as_save_IFS
7345 test -z "$as_dir" && as_dir=.
7346 for ac_exec_ext in '' $ac_executable_extensions; do
7347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7348 ac_cv_prog_AWK="$ac_prog"
7349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7350 break 2
7351 fi
7352 done
7353 done
7354 IFS=$as_save_IFS
7355
7356 fi
7357 fi
7358 AWK=$ac_cv_prog_AWK
7359 if test -n "$AWK"; then
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7361 $as_echo "$AWK" >&6; }
7362 else
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 $as_echo "no" >&6; }
7365 fi
7366
7367
7368 test -n "$AWK" && break
7369 done
7370
7371 # We need awk to create options.c and options.h.
7372 # Bail out if it's missing.
7373 case ${AWK} in
7374 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7375 esac
7376
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7378 $as_echo_n "checking whether ln -s works... " >&6; }
7379 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7380 $as_echo_n "(cached) " >&6
7381 else
7382 rm -f conftestdata_t
7383 echo >conftestdata_f
7384 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7385 then
7386 gcc_cv_prog_LN_S="ln -s"
7387 else
7388 if ln conftestdata_f conftestdata_t 2>/dev/null
7389 then
7390 gcc_cv_prog_LN_S=ln
7391 else
7392 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7393 then
7394 gcc_cv_prog_LN_S="cp -p"
7395 else
7396 gcc_cv_prog_LN_S=cp
7397 fi
7398 fi
7399 fi
7400 rm -f conftestdata_f conftestdata_t
7401
7402 fi
7403 LN_S="$gcc_cv_prog_LN_S"
7404 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7406 $as_echo "yes" >&6; }
7407 else
7408 if test "$gcc_cv_prog_LN_S" = "ln"; then
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7410 $as_echo "no, using ln" >&6; }
7411 else
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7413 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7414 fi
7415 fi
7416
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7418 $as_echo_n "checking whether ln works... " >&6; }
7419 if test "${acx_cv_prog_LN+set}" = set; then :
7420 $as_echo_n "(cached) " >&6
7421 else
7422 rm -f conftestdata_t
7423 echo >conftestdata_f
7424 if ln conftestdata_f conftestdata_t 2>/dev/null
7425 then
7426 acx_cv_prog_LN=ln
7427 else
7428 acx_cv_prog_LN=no
7429 fi
7430 rm -f conftestdata_f conftestdata_t
7431
7432 fi
7433 if test $acx_cv_prog_LN = no; then
7434 LN="$LN_S"
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7436 $as_echo "no, using $LN" >&6; }
7437 else
7438 LN="$acx_cv_prog_LN"
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7440 $as_echo "yes" >&6; }
7441 fi
7442
7443 if test -n "$ac_tool_prefix"; then
7444 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7445 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447 $as_echo_n "checking for $ac_word... " >&6; }
7448 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7449 $as_echo_n "(cached) " >&6
7450 else
7451 if test -n "$RANLIB"; then
7452 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7453 else
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 for as_dir in $PATH
7456 do
7457 IFS=$as_save_IFS
7458 test -z "$as_dir" && as_dir=.
7459 for ac_exec_ext in '' $ac_executable_extensions; do
7460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7461 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 break 2
7464 fi
7465 done
7466 done
7467 IFS=$as_save_IFS
7468
7469 fi
7470 fi
7471 RANLIB=$ac_cv_prog_RANLIB
7472 if test -n "$RANLIB"; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7474 $as_echo "$RANLIB" >&6; }
7475 else
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477 $as_echo "no" >&6; }
7478 fi
7479
7480
7481 fi
7482 if test -z "$ac_cv_prog_RANLIB"; then
7483 ac_ct_RANLIB=$RANLIB
7484 # Extract the first word of "ranlib", so it can be a program name with args.
7485 set dummy ranlib; ac_word=$2
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487 $as_echo_n "checking for $ac_word... " >&6; }
7488 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7489 $as_echo_n "(cached) " >&6
7490 else
7491 if test -n "$ac_ct_RANLIB"; then
7492 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7493 else
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 for as_dir in $PATH
7496 do
7497 IFS=$as_save_IFS
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7501 ac_cv_prog_ac_ct_RANLIB="ranlib"
7502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 break 2
7504 fi
7505 done
7506 done
7507 IFS=$as_save_IFS
7508
7509 fi
7510 fi
7511 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7512 if test -n "$ac_ct_RANLIB"; then
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7514 $as_echo "$ac_ct_RANLIB" >&6; }
7515 else
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517 $as_echo "no" >&6; }
7518 fi
7519
7520 if test "x$ac_ct_RANLIB" = x; then
7521 RANLIB=":"
7522 else
7523 case $cross_compiling:$ac_tool_warned in
7524 yes:)
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7527 ac_tool_warned=yes ;;
7528 esac
7529 RANLIB=$ac_ct_RANLIB
7530 fi
7531 else
7532 RANLIB="$ac_cv_prog_RANLIB"
7533 fi
7534
7535 ranlib_flags=""
7536
7537
7538 # Find a good install program. We prefer a C program (faster),
7539 # so one script is as good as another. But avoid the broken or
7540 # incompatible versions:
7541 # SysV /etc/install, /usr/sbin/install
7542 # SunOS /usr/etc/install
7543 # IRIX /sbin/install
7544 # AIX /bin/install
7545 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7546 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7547 # ./install, which can be erroneously created by make from ./install.sh.
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7549 $as_echo_n "checking for a BSD compatible install... " >&6; }
7550 if test -z "$INSTALL"; then
7551 if test "${ac_cv_path_install+set}" = set; then :
7552 $as_echo_n "(cached) " >&6
7553 else
7554 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7555 for ac_dir in $PATH; do
7556 # Account for people who put trailing slashes in PATH elements.
7557 case "$ac_dir/" in
7558 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7559 *)
7560 # OSF1 and SCO ODT 3.0 have their own names for install.
7561 for ac_prog in ginstall scoinst install; do
7562 if test -f $ac_dir/$ac_prog; then
7563 if test $ac_prog = install &&
7564 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7565 # AIX install. It has an incompatible calling convention.
7566 # OSF/1 installbsd also uses dspmsg, but is usable.
7567 :
7568 else
7569 ac_cv_path_install="$ac_dir/$ac_prog -c"
7570 break 2
7571 fi
7572 fi
7573 done
7574 ;;
7575 esac
7576 done
7577 IFS="$ac_save_IFS"
7578
7579 fi
7580 if test "${ac_cv_path_install+set}" = set; then
7581 INSTALL="$ac_cv_path_install"
7582 else
7583 # As a last resort, use the slow shell script. We don't cache a
7584 # path for INSTALL within a source directory, because that will
7585 # break other packages using the cache if that directory is
7586 # removed, or if the path is relative.
7587 INSTALL="$ac_install_sh"
7588 fi
7589 fi
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7591 $as_echo "$INSTALL" >&6; }
7592
7593 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7594 # It thinks the first close brace ends the variable substitution.
7595 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7596
7597 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7598
7599
7600 # See if cmp has --ignore-initial.
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7602 $as_echo_n "checking for cmp's capabilities... " >&6; }
7603 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7604 $as_echo_n "(cached) " >&6
7605 else
7606 echo abfoo >t1
7607 echo cdfoo >t2
7608 gcc_cv_prog_cmp_skip=slowcompare
7609 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7610 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7611 :
7612 else
7613 gcc_cv_prog_cmp_skip=gnucompare
7614 fi
7615 fi
7616 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7617 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7618 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7619 :
7620 else
7621 gcc_cv_prog_cmp_skip=fastcompare
7622 fi
7623 fi
7624 fi
7625 rm t1 t2
7626
7627 fi
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7629 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7630 make_compare_target=$gcc_cv_prog_cmp_skip
7631
7632
7633
7634 # See if we have the mktemp command.
7635 # Extract the first word of "mktemp", so it can be a program name with args.
7636 set dummy mktemp; ac_word=$2
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638 $as_echo_n "checking for $ac_word... " >&6; }
7639 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7640 $as_echo_n "(cached) " >&6
7641 else
7642 if test -n "$have_mktemp_command"; then
7643 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7644 else
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 for as_dir in $PATH
7647 do
7648 IFS=$as_save_IFS
7649 test -z "$as_dir" && as_dir=.
7650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7652 ac_cv_prog_have_mktemp_command="yes"
7653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7654 break 2
7655 fi
7656 done
7657 done
7658 IFS=$as_save_IFS
7659
7660 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7661 fi
7662 fi
7663 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7664 if test -n "$have_mktemp_command"; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7666 $as_echo "$have_mktemp_command" >&6; }
7667 else
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669 $as_echo "no" >&6; }
7670 fi
7671
7672
7673
7674 # See if makeinfo has been installed and is modern enough
7675 # that we can use it.
7676
7677 # Extract the first word of "makeinfo", so it can be a program name with args.
7678 set dummy makeinfo; ac_word=$2
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680 $as_echo_n "checking for $ac_word... " >&6; }
7681 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7682 $as_echo_n "(cached) " >&6
7683 else
7684 if test -n "$MAKEINFO"; then
7685 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7686 else
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 for as_dir in $PATH
7689 do
7690 IFS=$as_save_IFS
7691 test -z "$as_dir" && as_dir=.
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7694 ac_cv_prog_MAKEINFO="makeinfo"
7695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7696 break 2
7697 fi
7698 done
7699 done
7700 IFS=$as_save_IFS
7701
7702 fi
7703 fi
7704 MAKEINFO=$ac_cv_prog_MAKEINFO
7705 if test -n "$MAKEINFO"; then
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7707 $as_echo "$MAKEINFO" >&6; }
7708 else
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 $as_echo "no" >&6; }
7711 fi
7712
7713
7714 if test -n "$MAKEINFO"; then
7715 # Found it, now check the version.
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7717 $as_echo_n "checking for modern makeinfo... " >&6; }
7718 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7719 $as_echo_n "(cached) " >&6
7720 else
7721 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7722 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7723
7724 case $ac_prog_version in
7725 '') gcc_cv_prog_makeinfo_modern=no;;
7726 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7727 *) gcc_cv_prog_makeinfo_modern=no;;
7728 esac
7729
7730 fi
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7732 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7733 else
7734 gcc_cv_prog_makeinfo_modern=no
7735 fi
7736 if test $gcc_cv_prog_makeinfo_modern = no; then
7737 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7738 fi
7739
7740 if test $gcc_cv_prog_makeinfo_modern = no; then
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7742 *** Makeinfo is missing or too old.
7743 *** Info documentation will not be built." >&5
7744 $as_echo "$as_me: WARNING:
7745 *** Makeinfo is missing or too old.
7746 *** Info documentation will not be built." >&2;}
7747 BUILD_INFO=
7748 else
7749 BUILD_INFO=info
7750 fi
7751
7752
7753 # Is pod2man recent enough to regenerate manpages?
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7755 $as_echo_n "checking for recent Pod::Man... " >&6; }
7756 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7758 $as_echo "yes" >&6; }
7759 GENERATED_MANPAGES=generated-manpages
7760 else
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762 $as_echo "no" >&6; }
7763 GENERATED_MANPAGES=
7764 fi
7765
7766
7767 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7768
7769 # How about lex?
7770 for ac_prog in flex
7771 do
7772 # Extract the first word of "$ac_prog", so it can be a program name with args.
7773 set dummy $ac_prog; ac_word=$2
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775 $as_echo_n "checking for $ac_word... " >&6; }
7776 if test "${ac_cv_prog_FLEX+set}" = set; then :
7777 $as_echo_n "(cached) " >&6
7778 else
7779 if test -n "$FLEX"; then
7780 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7781 else
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 for as_dir in $PATH
7784 do
7785 IFS=$as_save_IFS
7786 test -z "$as_dir" && as_dir=.
7787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7789 ac_cv_prog_FLEX="$ac_prog"
7790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791 break 2
7792 fi
7793 done
7794 done
7795 IFS=$as_save_IFS
7796
7797 fi
7798 fi
7799 FLEX=$ac_cv_prog_FLEX
7800 if test -n "$FLEX"; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7802 $as_echo "$FLEX" >&6; }
7803 else
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7806 fi
7807
7808
7809 test -n "$FLEX" && break
7810 done
7811 test -n "$FLEX" || FLEX="$MISSING flex"
7812
7813
7814 # Bison?
7815 for ac_prog in bison
7816 do
7817 # Extract the first word of "$ac_prog", so it can be a program name with args.
7818 set dummy $ac_prog; ac_word=$2
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 $as_echo_n "checking for $ac_word... " >&6; }
7821 if test "${ac_cv_prog_BISON+set}" = set; then :
7822 $as_echo_n "(cached) " >&6
7823 else
7824 if test -n "$BISON"; then
7825 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7826 else
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 for as_dir in $PATH
7829 do
7830 IFS=$as_save_IFS
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7834 ac_cv_prog_BISON="$ac_prog"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 break 2
7837 fi
7838 done
7839 done
7840 IFS=$as_save_IFS
7841
7842 fi
7843 fi
7844 BISON=$ac_cv_prog_BISON
7845 if test -n "$BISON"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7847 $as_echo "$BISON" >&6; }
7848 else
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7851 fi
7852
7853
7854 test -n "$BISON" && break
7855 done
7856 test -n "$BISON" || BISON="$MISSING bison"
7857
7858
7859 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7860 # check for build == host before using them.
7861
7862 # NM
7863 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7864 && test -d ../binutils ; then
7865 NM='${objdir}/../binutils/nm-new'
7866 else
7867 # Extract the first word of "nm", so it can be a program name with args.
7868 set dummy nm; ac_word=$2
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7870 $as_echo_n "checking for $ac_word... " >&6; }
7871 if test "${ac_cv_prog_NM+set}" = set; then :
7872 $as_echo_n "(cached) " >&6
7873 else
7874 if test -n "$NM"; then
7875 ac_cv_prog_NM="$NM" # Let the user override the test.
7876 else
7877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878 for as_dir in $PATH
7879 do
7880 IFS=$as_save_IFS
7881 test -z "$as_dir" && as_dir=.
7882 for ac_exec_ext in '' $ac_executable_extensions; do
7883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7884 ac_cv_prog_NM="nm"
7885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7886 break 2
7887 fi
7888 done
7889 done
7890 IFS=$as_save_IFS
7891
7892 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7893 fi
7894 fi
7895 NM=$ac_cv_prog_NM
7896 if test -n "$NM"; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7898 $as_echo "$NM" >&6; }
7899 else
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7901 $as_echo "no" >&6; }
7902 fi
7903
7904
7905 fi
7906
7907 # AR
7908 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7909 && test -d ../binutils ; then
7910 AR='${objdir}/../binutils/ar'
7911 else
7912 # Extract the first word of "ar", so it can be a program name with args.
7913 set dummy ar; ac_word=$2
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915 $as_echo_n "checking for $ac_word... " >&6; }
7916 if test "${ac_cv_prog_AR+set}" = set; then :
7917 $as_echo_n "(cached) " >&6
7918 else
7919 if test -n "$AR"; then
7920 ac_cv_prog_AR="$AR" # Let the user override the test.
7921 else
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 for as_dir in $PATH
7924 do
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7929 ac_cv_prog_AR="ar"
7930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 break 2
7932 fi
7933 done
7934 done
7935 IFS=$as_save_IFS
7936
7937 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7938 fi
7939 fi
7940 AR=$ac_cv_prog_AR
7941 if test -n "$AR"; then
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7943 $as_echo "$AR" >&6; }
7944 else
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946 $as_echo "no" >&6; }
7947 fi
7948
7949
7950 fi
7951
7952
7953 # --------------------
7954 # Checks for C headers
7955 # --------------------
7956
7957 # Need to reject headers which give warnings, so that the -Werror bootstrap
7958 # works later. *sigh* This needs to come before all header checks.
7959
7960 ac_c_preproc_warn_flag=yes
7961
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7963 $as_echo_n "checking for ANSI C header files... " >&6; }
7964 if test "${ac_cv_header_stdc+set}" = set; then :
7965 $as_echo_n "(cached) " >&6
7966 else
7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h. */
7969 #include <stdlib.h>
7970 #include <stdarg.h>
7971 #include <string.h>
7972 #include <float.h>
7973
7974 int
7975 main ()
7976 {
7977
7978 ;
7979 return 0;
7980 }
7981 _ACEOF
7982 if ac_fn_c_try_compile "$LINENO"; then :
7983 ac_cv_header_stdc=yes
7984 else
7985 ac_cv_header_stdc=no
7986 fi
7987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7988
7989 if test $ac_cv_header_stdc = yes; then
7990 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h. */
7993 #include <string.h>
7994
7995 _ACEOF
7996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7997 $EGREP "memchr" >/dev/null 2>&1; then :
7998
7999 else
8000 ac_cv_header_stdc=no
8001 fi
8002 rm -f conftest*
8003
8004 fi
8005
8006 if test $ac_cv_header_stdc = yes; then
8007 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8009 /* end confdefs.h. */
8010 #include <stdlib.h>
8011
8012 _ACEOF
8013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8014 $EGREP "free" >/dev/null 2>&1; then :
8015
8016 else
8017 ac_cv_header_stdc=no
8018 fi
8019 rm -f conftest*
8020
8021 fi
8022
8023 if test $ac_cv_header_stdc = yes; then
8024 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8025 if test "$cross_compiling" = yes; then :
8026 :
8027 else
8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h. */
8030 #include <ctype.h>
8031 #include <stdlib.h>
8032 #if ((' ' & 0x0FF) == 0x020)
8033 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8034 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8035 #else
8036 # define ISLOWER(c) \
8037 (('a' <= (c) && (c) <= 'i') \
8038 || ('j' <= (c) && (c) <= 'r') \
8039 || ('s' <= (c) && (c) <= 'z'))
8040 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8041 #endif
8042
8043 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8044 int
8045 main ()
8046 {
8047 int i;
8048 for (i = 0; i < 256; i++)
8049 if (XOR (islower (i), ISLOWER (i))
8050 || toupper (i) != TOUPPER (i))
8051 return 2;
8052 return 0;
8053 }
8054 _ACEOF
8055 if ac_fn_c_try_run "$LINENO"; then :
8056
8057 else
8058 ac_cv_header_stdc=no
8059 fi
8060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8061 conftest.$ac_objext conftest.beam conftest.$ac_ext
8062 fi
8063
8064 fi
8065 fi
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8067 $as_echo "$ac_cv_header_stdc" >&6; }
8068 if test $ac_cv_header_stdc = yes; then
8069
8070 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8071
8072 fi
8073
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8075 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8076 if test "${ac_cv_header_time+set}" = set; then :
8077 $as_echo_n "(cached) " >&6
8078 else
8079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8080 /* end confdefs.h. */
8081 #include <sys/types.h>
8082 #include <sys/time.h>
8083 #include <time.h>
8084
8085 int
8086 main ()
8087 {
8088 if ((struct tm *) 0)
8089 return 0;
8090 ;
8091 return 0;
8092 }
8093 _ACEOF
8094 if ac_fn_c_try_compile "$LINENO"; then :
8095 ac_cv_header_time=yes
8096 else
8097 ac_cv_header_time=no
8098 fi
8099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100 fi
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8102 $as_echo "$ac_cv_header_time" >&6; }
8103 if test $ac_cv_header_time = yes; then
8104
8105 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8106
8107 fi
8108
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8110 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8111 if test "${gcc_cv_header_string+set}" = set; then :
8112 $as_echo_n "(cached) " >&6
8113 else
8114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115 /* end confdefs.h. */
8116 #include <string.h>
8117 #include <strings.h>
8118 int
8119 main ()
8120 {
8121
8122 ;
8123 return 0;
8124 }
8125 _ACEOF
8126 if ac_fn_c_try_compile "$LINENO"; then :
8127 gcc_cv_header_string=yes
8128 else
8129 gcc_cv_header_string=no
8130 fi
8131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132 fi
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8134 $as_echo "$gcc_cv_header_string" >&6; }
8135 if test $gcc_cv_header_string = yes; then
8136
8137 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8138
8139 fi
8140
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8142 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8143 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8144 $as_echo_n "(cached) " >&6
8145 else
8146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147 /* end confdefs.h. */
8148 #include <sys/types.h>
8149 #include <sys/wait.h>
8150 #ifndef WEXITSTATUS
8151 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8152 #endif
8153 #ifndef WIFEXITED
8154 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8155 #endif
8156
8157 int
8158 main ()
8159 {
8160 int s;
8161 wait (&s);
8162 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8163 ;
8164 return 0;
8165 }
8166 _ACEOF
8167 if ac_fn_c_try_compile "$LINENO"; then :
8168 ac_cv_header_sys_wait_h=yes
8169 else
8170 ac_cv_header_sys_wait_h=no
8171 fi
8172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8173 fi
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8175 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8176 if test $ac_cv_header_sys_wait_h = yes; then
8177
8178 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8179
8180 fi
8181
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8183 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8184 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8185 $as_echo_n "(cached) " >&6
8186 else
8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188 /* end confdefs.h. */
8189 #include <sys/types.h>
8190 #include <termios.h>
8191 #ifdef TIOCGWINSZ
8192 yes
8193 #endif
8194
8195 _ACEOF
8196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8197 $EGREP "yes" >/dev/null 2>&1; then :
8198 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8199 else
8200 ac_cv_sys_tiocgwinsz_in_termios_h=no
8201 fi
8202 rm -f conftest*
8203
8204 fi
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8206 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8207
8208 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8210 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8211 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8212 $as_echo_n "(cached) " >&6
8213 else
8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h. */
8216 #include <sys/types.h>
8217 #include <sys/ioctl.h>
8218 #ifdef TIOCGWINSZ
8219 yes
8220 #endif
8221
8222 _ACEOF
8223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8224 $EGREP "yes" >/dev/null 2>&1; then :
8225 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8226 else
8227 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8228 fi
8229 rm -f conftest*
8230
8231 fi
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8233 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8234
8235 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8236
8237 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8238
8239 fi
8240 fi
8241
8242 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8243 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8244 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8245 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8246 do :
8247 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8248 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8249 eval as_val=\$$as_ac_Header
8250 if test "x$as_val" = x""yes; then :
8251 cat >>confdefs.h <<_ACEOF
8252 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8253 _ACEOF
8254
8255 fi
8256 done
8257
8258
8259 # Check for thread headers.
8260 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8261 if test "x$ac_cv_header_thread_h" = x""yes; then :
8262 have_thread_h=yes
8263 else
8264 have_thread_h=
8265 fi
8266
8267 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8268 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8269 have_pthread_h=yes
8270 else
8271 have_pthread_h=
8272 fi
8273
8274
8275 # These tests can't be done till we know if we have limits.h.
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8277 $as_echo_n "checking for CHAR_BIT... " >&6; }
8278 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8279 $as_echo_n "(cached) " >&6
8280 else
8281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282 /* end confdefs.h. */
8283 #ifdef HAVE_LIMITS_H
8284 #include <limits.h>
8285 #endif
8286 #ifdef CHAR_BIT
8287 found
8288 #endif
8289 _ACEOF
8290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8291 $EGREP "found" >/dev/null 2>&1; then :
8292 gcc_cv_decl_char_bit=yes
8293 else
8294 gcc_cv_decl_char_bit=no
8295 fi
8296 rm -f conftest*
8297
8298
8299 fi
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8301 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8302 if test $gcc_cv_decl_char_bit = no; then
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8304 $as_echo_n "checking number of bits in a byte... " >&6; }
8305 if test "${gcc_cv_c_nbby+set}" = set; then :
8306 $as_echo_n "(cached) " >&6
8307 else
8308 i=8
8309 gcc_cv_c_nbby=
8310 while test $i -lt 65; do
8311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312 /* end confdefs.h. */
8313
8314 int
8315 main ()
8316 {
8317 switch(0) {
8318 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8319 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8320 ; }
8321 ;
8322 return 0;
8323 }
8324 _ACEOF
8325 if ac_fn_c_try_compile "$LINENO"; then :
8326 gcc_cv_c_nbby=$i; break
8327 fi
8328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329 i=`expr $i + 1`
8330 done
8331 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8332
8333 fi
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8335 $as_echo "$gcc_cv_c_nbby" >&6; }
8336 if test $gcc_cv_c_nbby = failed; then
8337 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8338 else
8339
8340 cat >>confdefs.h <<_ACEOF
8341 #define CHAR_BIT $gcc_cv_c_nbby
8342 _ACEOF
8343
8344 fi
8345 fi
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8347 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8348 if test "${ac_cv_c_bigendian+set}" = set; then :
8349 $as_echo_n "(cached) " >&6
8350 else
8351 ac_cv_c_bigendian=unknown
8352 # See if we're dealing with a universal compiler.
8353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8354 /* end confdefs.h. */
8355 #ifndef __APPLE_CC__
8356 not a universal capable compiler
8357 #endif
8358 typedef int dummy;
8359
8360 _ACEOF
8361 if ac_fn_c_try_compile "$LINENO"; then :
8362
8363 # Check for potential -arch flags. It is not universal unless
8364 # there are at least two -arch flags with different values.
8365 ac_arch=
8366 ac_prev=
8367 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8368 if test -n "$ac_prev"; then
8369 case $ac_word in
8370 i?86 | x86_64 | ppc | ppc64)
8371 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8372 ac_arch=$ac_word
8373 else
8374 ac_cv_c_bigendian=universal
8375 break
8376 fi
8377 ;;
8378 esac
8379 ac_prev=
8380 elif test "x$ac_word" = "x-arch"; then
8381 ac_prev=arch
8382 fi
8383 done
8384 fi
8385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386 if test $ac_cv_c_bigendian = unknown; then
8387 # See if sys/param.h defines the BYTE_ORDER macro.
8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8390 #include <sys/types.h>
8391 #include <sys/param.h>
8392
8393 int
8394 main ()
8395 {
8396 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8397 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8398 && LITTLE_ENDIAN)
8399 bogus endian macros
8400 #endif
8401
8402 ;
8403 return 0;
8404 }
8405 _ACEOF
8406 if ac_fn_c_try_compile "$LINENO"; then :
8407 # It does; now see whether it defined to BIG_ENDIAN or not.
8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409 /* end confdefs.h. */
8410 #include <sys/types.h>
8411 #include <sys/param.h>
8412
8413 int
8414 main ()
8415 {
8416 #if BYTE_ORDER != BIG_ENDIAN
8417 not big endian
8418 #endif
8419
8420 ;
8421 return 0;
8422 }
8423 _ACEOF
8424 if ac_fn_c_try_compile "$LINENO"; then :
8425 ac_cv_c_bigendian=yes
8426 else
8427 ac_cv_c_bigendian=no
8428 fi
8429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8430 fi
8431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8432 fi
8433 if test $ac_cv_c_bigendian = unknown; then
8434 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8437 #include <limits.h>
8438
8439 int
8440 main ()
8441 {
8442 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8443 bogus endian macros
8444 #endif
8445
8446 ;
8447 return 0;
8448 }
8449 _ACEOF
8450 if ac_fn_c_try_compile "$LINENO"; then :
8451 # It does; now see whether it defined to _BIG_ENDIAN or not.
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8454 #include <limits.h>
8455
8456 int
8457 main ()
8458 {
8459 #ifndef _BIG_ENDIAN
8460 not big endian
8461 #endif
8462
8463 ;
8464 return 0;
8465 }
8466 _ACEOF
8467 if ac_fn_c_try_compile "$LINENO"; then :
8468 ac_cv_c_bigendian=yes
8469 else
8470 ac_cv_c_bigendian=no
8471 fi
8472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8473 fi
8474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475 fi
8476 if test $ac_cv_c_bigendian = unknown; then
8477 # Compile a test program.
8478 if test "$cross_compiling" = yes; then :
8479 # Try to guess by grepping values from an object file.
8480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h. */
8482 short int ascii_mm[] =
8483 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8484 short int ascii_ii[] =
8485 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8486 int use_ascii (int i) {
8487 return ascii_mm[i] + ascii_ii[i];
8488 }
8489 short int ebcdic_ii[] =
8490 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8491 short int ebcdic_mm[] =
8492 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8493 int use_ebcdic (int i) {
8494 return ebcdic_mm[i] + ebcdic_ii[i];
8495 }
8496 extern int foo;
8497
8498 int
8499 main ()
8500 {
8501 return use_ascii (foo) == use_ebcdic (foo);
8502 ;
8503 return 0;
8504 }
8505 _ACEOF
8506 if ac_fn_c_try_compile "$LINENO"; then :
8507 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8508 ac_cv_c_bigendian=yes
8509 fi
8510 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8511 if test "$ac_cv_c_bigendian" = unknown; then
8512 ac_cv_c_bigendian=no
8513 else
8514 # finding both strings is unlikely to happen, but who knows?
8515 ac_cv_c_bigendian=unknown
8516 fi
8517 fi
8518 fi
8519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8520 else
8521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8523 $ac_includes_default
8524 int
8525 main ()
8526 {
8527
8528 /* Are we little or big endian? From Harbison&Steele. */
8529 union
8530 {
8531 long int l;
8532 char c[sizeof (long int)];
8533 } u;
8534 u.l = 1;
8535 return u.c[sizeof (long int) - 1] == 1;
8536
8537 ;
8538 return 0;
8539 }
8540 _ACEOF
8541 if ac_fn_c_try_run "$LINENO"; then :
8542 ac_cv_c_bigendian=no
8543 else
8544 ac_cv_c_bigendian=yes
8545 fi
8546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8547 conftest.$ac_objext conftest.beam conftest.$ac_ext
8548 fi
8549
8550 fi
8551 fi
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8553 $as_echo "$ac_cv_c_bigendian" >&6; }
8554 case $ac_cv_c_bigendian in #(
8555 yes)
8556 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8557 ;; #(
8558 no)
8559 ;; #(
8560 universal)
8561
8562 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8563
8564 ;; #(
8565 *)
8566 as_fn_error "unknown endianness
8567 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8568 esac
8569
8570
8571 # ----------------------
8572 # Checks for C++ headers
8573 # ----------------------
8574
8575 ac_ext=cpp
8576 ac_cpp='$CXXCPP $CPPFLAGS'
8577 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8578 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8579 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8581 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8582 if test -z "$CXXCPP"; then
8583 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8584 $as_echo_n "(cached) " >&6
8585 else
8586 # Double quotes because CXXCPP needs to be expanded
8587 for CXXCPP in "$CXX -E" "/lib/cpp"
8588 do
8589 ac_preproc_ok=false
8590 for ac_cxx_preproc_warn_flag in '' yes
8591 do
8592 # Use a header file that comes with gcc, so configuring glibc
8593 # with a fresh cross-compiler works.
8594 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8595 # <limits.h> exists even on freestanding compilers.
8596 # On the NeXT, cc -E runs the code through the compiler's parser,
8597 # not just through cpp. "Syntax error" is here to catch this case.
8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8600 #ifdef __STDC__
8601 # include <limits.h>
8602 #else
8603 # include <assert.h>
8604 #endif
8605 Syntax error
8606 _ACEOF
8607 if ac_fn_cxx_try_cpp "$LINENO"; then :
8608
8609 else
8610 # Broken: fails on valid input.
8611 continue
8612 fi
8613 rm -f conftest.err conftest.$ac_ext
8614
8615 # OK, works on sane cases. Now check whether nonexistent headers
8616 # can be detected and how.
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8619 #include <ac_nonexistent.h>
8620 _ACEOF
8621 if ac_fn_cxx_try_cpp "$LINENO"; then :
8622 # Broken: success on invalid input.
8623 continue
8624 else
8625 # Passes both tests.
8626 ac_preproc_ok=:
8627 break
8628 fi
8629 rm -f conftest.err conftest.$ac_ext
8630
8631 done
8632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8633 rm -f conftest.err conftest.$ac_ext
8634 if $ac_preproc_ok; then :
8635 break
8636 fi
8637
8638 done
8639 ac_cv_prog_CXXCPP=$CXXCPP
8640
8641 fi
8642 CXXCPP=$ac_cv_prog_CXXCPP
8643 else
8644 ac_cv_prog_CXXCPP=$CXXCPP
8645 fi
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8647 $as_echo "$CXXCPP" >&6; }
8648 ac_preproc_ok=false
8649 for ac_cxx_preproc_warn_flag in '' yes
8650 do
8651 # Use a header file that comes with gcc, so configuring glibc
8652 # with a fresh cross-compiler works.
8653 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8654 # <limits.h> exists even on freestanding compilers.
8655 # On the NeXT, cc -E runs the code through the compiler's parser,
8656 # not just through cpp. "Syntax error" is here to catch this case.
8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h. */
8659 #ifdef __STDC__
8660 # include <limits.h>
8661 #else
8662 # include <assert.h>
8663 #endif
8664 Syntax error
8665 _ACEOF
8666 if ac_fn_cxx_try_cpp "$LINENO"; then :
8667
8668 else
8669 # Broken: fails on valid input.
8670 continue
8671 fi
8672 rm -f conftest.err conftest.$ac_ext
8673
8674 # OK, works on sane cases. Now check whether nonexistent headers
8675 # can be detected and how.
8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677 /* end confdefs.h. */
8678 #include <ac_nonexistent.h>
8679 _ACEOF
8680 if ac_fn_cxx_try_cpp "$LINENO"; then :
8681 # Broken: success on invalid input.
8682 continue
8683 else
8684 # Passes both tests.
8685 ac_preproc_ok=:
8686 break
8687 fi
8688 rm -f conftest.err conftest.$ac_ext
8689
8690 done
8691 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8692 rm -f conftest.err conftest.$ac_ext
8693 if $ac_preproc_ok; then :
8694
8695 else
8696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8699 See \`config.log' for more details." >&5
8700 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8701 See \`config.log' for more details." >&2;}; }
8702 fi
8703
8704 ac_ext=c
8705 ac_cpp='$CPP $CPPFLAGS'
8706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8709
8710
8711 ac_ext=cpp
8712 ac_cpp='$CXXCPP $CPPFLAGS'
8713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8716
8717
8718
8719
8720 for ac_header in unordered_map
8721 do :
8722 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8723 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8724 cat >>confdefs.h <<_ACEOF
8725 #define HAVE_UNORDERED_MAP 1
8726 _ACEOF
8727
8728 fi
8729 done
8730
8731 for ac_header in tr1/unordered_map
8732 do :
8733 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8734 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8735 cat >>confdefs.h <<_ACEOF
8736 #define HAVE_TR1_UNORDERED_MAP 1
8737 _ACEOF
8738
8739 fi
8740 done
8741
8742 for ac_header in ext/hash_map
8743 do :
8744 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8745 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8746 cat >>confdefs.h <<_ACEOF
8747 #define HAVE_EXT_HASH_MAP 1
8748 _ACEOF
8749
8750 fi
8751 done
8752
8753
8754 ac_ext=c
8755 ac_cpp='$CPP $CPPFLAGS'
8756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8759
8760
8761 # --------
8762 # Dependency checking.
8763 # --------
8764
8765 ac_ext=cpp
8766 ac_cpp='$CXXCPP $CPPFLAGS'
8767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8770
8771 rm -rf .tst 2>/dev/null
8772 mkdir .tst 2>/dev/null
8773 if test -d .tst; then
8774 am__leading_dot=.
8775 else
8776 am__leading_dot=_
8777 fi
8778 rmdir .tst 2>/dev/null
8779
8780 DEPDIR="${am__leading_dot}deps"
8781
8782 ac_config_commands="$ac_config_commands depdir"
8783
8784
8785 ac_config_commands="$ac_config_commands gccdepdir"
8786
8787
8788 depcc="$CXX" am_compiler_list=
8789
8790 am_depcomp=$ac_aux_dir/depcomp
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8792 $as_echo_n "checking dependency style of $depcc... " >&6; }
8793 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8794 $as_echo_n "(cached) " >&6
8795 else
8796 if test -f "$am_depcomp"; then
8797 # We make a subdir and do the tests there. Otherwise we can end up
8798 # making bogus files that we don't know about and never remove. For
8799 # instance it was reported that on HP-UX the gcc test will end up
8800 # making a dummy file named `D' -- because `-MD' means `put the output
8801 # in D'.
8802 mkdir conftest.dir
8803 # Copy depcomp to subdir because otherwise we won't find it if we're
8804 # using a relative directory.
8805 cp "$am_depcomp" conftest.dir
8806 cd conftest.dir
8807 # We will build objects and dependencies in a subdirectory because
8808 # it helps to detect inapplicable dependency modes. For instance
8809 # both Tru64's cc and ICC support -MD to output dependencies as a
8810 # side effect of compilation, but ICC will put the dependencies in
8811 # the current directory while Tru64 will put them in the object
8812 # directory.
8813 mkdir sub
8814
8815 am_cv_CXX_dependencies_compiler_type=none
8816 if test "$am_compiler_list" = ""; then
8817 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8818 fi
8819 for depmode in $am_compiler_list; do
8820 if test $depmode = none; then break; fi
8821
8822 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8823 # Setup a source with many dependencies, because some compilers
8824 # like to wrap large dependency lists on column 80 (with \), and
8825 # we should not choose a depcomp mode which is confused by this.
8826 #
8827 # We need to recreate these files for each test, as the compiler may
8828 # overwrite some of them when testing with obscure command lines.
8829 # This happens at least with the AIX C compiler.
8830 : > sub/conftest.c
8831 for i in 1 2 3 4 5 6; do
8832 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8833 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8834 # Solaris 8's {/usr,}/bin/sh.
8835 touch sub/conftst$i.h
8836 done
8837 echo "include sub/conftest.Po" > confmf
8838
8839 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8840 # mode. It turns out that the SunPro C++ compiler does not properly
8841 # handle `-M -o', and we need to detect this.
8842 depcmd="depmode=$depmode \
8843 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8844 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8845 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8846 echo "| $depcmd" | sed -e 's/ */ /g' >&5
8847 if env $depcmd > conftest.err 2>&1 &&
8848 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
8849 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
8850 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
8851 # icc doesn't choke on unknown options, it will just issue warnings
8852 # or remarks (even with -Werror). So we grep stderr for any message
8853 # that says an option was ignored or not supported.
8854 # When given -MP, icc 7.0 and 7.1 complain thusly:
8855 # icc: Command line warning: ignoring option '-M'; no argument required
8856 # The diagnosis changed in icc 8.0:
8857 # icc: Command line remark: option '-MP' not supported
8858 if (grep 'ignoring option' conftest.err ||
8859 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8860 am_cv_CXX_dependencies_compiler_type=$depmode
8861 $as_echo "$as_me:$LINENO: success" >&5
8862 break
8863 fi
8864 fi
8865 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8866 sed -e 's/^/| /' < conftest.err >&5
8867 done
8868
8869 cd ..
8870 rm -rf conftest.dir
8871 else
8872 am_cv_CXX_dependencies_compiler_type=none
8873 fi
8874
8875 fi
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8877 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8878 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
8879 then as_fn_error "no usable dependency style found" "$LINENO" 5
8880 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8881
8882 fi
8883
8884 ac_ext=c
8885 ac_cpp='$CPP $CPPFLAGS'
8886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8889
8890
8891 # --------
8892 # UNSORTED
8893 # --------
8894
8895
8896 # These libraries may be used by collect2.
8897 # We may need a special search path to get them linked.
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8899 $as_echo_n "checking for collect2 libraries... " >&6; }
8900 if test "${gcc_cv_collect2_libs+set}" = set; then :
8901 $as_echo_n "(cached) " >&6
8902 else
8903 save_LIBS="$LIBS"
8904 for libs in '' -lld -lmld \
8905 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8906 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8907 do
8908 LIBS="$libs"
8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8911
8912 /* Override any GCC internal prototype to avoid an error.
8913 Use char because int might match the return type of a GCC
8914 builtin and then its argument prototype would still apply. */
8915 #ifdef __cplusplus
8916 extern "C"
8917 #endif
8918 char ldopen ();
8919 int
8920 main ()
8921 {
8922 return ldopen ();
8923 ;
8924 return 0;
8925 }
8926 _ACEOF
8927 if ac_fn_c_try_link "$LINENO"; then :
8928 gcc_cv_collect2_libs="$libs"; break
8929 fi
8930 rm -f core conftest.err conftest.$ac_objext \
8931 conftest$ac_exeext conftest.$ac_ext
8932 done
8933 LIBS="$save_LIBS"
8934 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8935 fi
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8937 $as_echo "$gcc_cv_collect2_libs" >&6; }
8938 case $gcc_cv_collect2_libs in
8939 "none required") ;;
8940 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8941 esac
8942
8943
8944 # When building Ada code on Alpha, we need exc_resume which is usually in
8945 # -lexc. So test for it.
8946 save_LIBS="$LIBS"
8947 LIBS=
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8949 $as_echo_n "checking for library containing exc_resume... " >&6; }
8950 if test "${ac_cv_search_exc_resume+set}" = set; then :
8951 $as_echo_n "(cached) " >&6
8952 else
8953 ac_func_search_save_LIBS=$LIBS
8954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955 /* end confdefs.h. */
8956
8957 /* Override any GCC internal prototype to avoid an error.
8958 Use char because int might match the return type of a GCC
8959 builtin and then its argument prototype would still apply. */
8960 #ifdef __cplusplus
8961 extern "C"
8962 #endif
8963 char exc_resume ();
8964 int
8965 main ()
8966 {
8967 return exc_resume ();
8968 ;
8969 return 0;
8970 }
8971 _ACEOF
8972 for ac_lib in '' exc; do
8973 if test -z "$ac_lib"; then
8974 ac_res="none required"
8975 else
8976 ac_res=-l$ac_lib
8977 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8978 fi
8979 if ac_fn_c_try_link "$LINENO"; then :
8980 ac_cv_search_exc_resume=$ac_res
8981 fi
8982 rm -f core conftest.err conftest.$ac_objext \
8983 conftest$ac_exeext
8984 if test "${ac_cv_search_exc_resume+set}" = set; then :
8985 break
8986 fi
8987 done
8988 if test "${ac_cv_search_exc_resume+set}" = set; then :
8989
8990 else
8991 ac_cv_search_exc_resume=no
8992 fi
8993 rm conftest.$ac_ext
8994 LIBS=$ac_func_search_save_LIBS
8995 fi
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8997 $as_echo "$ac_cv_search_exc_resume" >&6; }
8998 ac_res=$ac_cv_search_exc_resume
8999 if test "$ac_res" != no; then :
9000 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9001
9002 fi
9003
9004 GNAT_LIBEXC="$LIBS"
9005 LIBS="$save_LIBS"
9006
9007
9008 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9009 save_LIBS="$LIBS"
9010 LIBS=
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9012 $as_echo_n "checking for library containing kstat_open... " >&6; }
9013 if test "${ac_cv_search_kstat_open+set}" = set; then :
9014 $as_echo_n "(cached) " >&6
9015 else
9016 ac_func_search_save_LIBS=$LIBS
9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018 /* end confdefs.h. */
9019
9020 /* Override any GCC internal prototype to avoid an error.
9021 Use char because int might match the return type of a GCC
9022 builtin and then its argument prototype would still apply. */
9023 #ifdef __cplusplus
9024 extern "C"
9025 #endif
9026 char kstat_open ();
9027 int
9028 main ()
9029 {
9030 return kstat_open ();
9031 ;
9032 return 0;
9033 }
9034 _ACEOF
9035 for ac_lib in '' kstat; do
9036 if test -z "$ac_lib"; then
9037 ac_res="none required"
9038 else
9039 ac_res=-l$ac_lib
9040 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9041 fi
9042 if ac_fn_c_try_link "$LINENO"; then :
9043 ac_cv_search_kstat_open=$ac_res
9044 fi
9045 rm -f core conftest.err conftest.$ac_objext \
9046 conftest$ac_exeext
9047 if test "${ac_cv_search_kstat_open+set}" = set; then :
9048 break
9049 fi
9050 done
9051 if test "${ac_cv_search_kstat_open+set}" = set; then :
9052
9053 else
9054 ac_cv_search_kstat_open=no
9055 fi
9056 rm conftest.$ac_ext
9057 LIBS=$ac_func_search_save_LIBS
9058 fi
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9060 $as_echo "$ac_cv_search_kstat_open" >&6; }
9061 ac_res=$ac_cv_search_kstat_open
9062 if test "$ac_res" != no; then :
9063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9064
9065 fi
9066
9067 EXTRA_GCC_LIBS="$LIBS"
9068 LIBS="$save_LIBS"
9069
9070
9071 # Some systems put ldexp and frexp in libm instead of libc; assume
9072 # they're both in the same place. jcf-dump needs them.
9073 save_LIBS="$LIBS"
9074 LIBS=
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9076 $as_echo_n "checking for library containing ldexp... " >&6; }
9077 if test "${ac_cv_search_ldexp+set}" = set; then :
9078 $as_echo_n "(cached) " >&6
9079 else
9080 ac_func_search_save_LIBS=$LIBS
9081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082 /* end confdefs.h. */
9083
9084 /* Override any GCC internal prototype to avoid an error.
9085 Use char because int might match the return type of a GCC
9086 builtin and then its argument prototype would still apply. */
9087 #ifdef __cplusplus
9088 extern "C"
9089 #endif
9090 char ldexp ();
9091 int
9092 main ()
9093 {
9094 return ldexp ();
9095 ;
9096 return 0;
9097 }
9098 _ACEOF
9099 for ac_lib in '' m; do
9100 if test -z "$ac_lib"; then
9101 ac_res="none required"
9102 else
9103 ac_res=-l$ac_lib
9104 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9105 fi
9106 if ac_fn_c_try_link "$LINENO"; then :
9107 ac_cv_search_ldexp=$ac_res
9108 fi
9109 rm -f core conftest.err conftest.$ac_objext \
9110 conftest$ac_exeext
9111 if test "${ac_cv_search_ldexp+set}" = set; then :
9112 break
9113 fi
9114 done
9115 if test "${ac_cv_search_ldexp+set}" = set; then :
9116
9117 else
9118 ac_cv_search_ldexp=no
9119 fi
9120 rm conftest.$ac_ext
9121 LIBS=$ac_func_search_save_LIBS
9122 fi
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9124 $as_echo "$ac_cv_search_ldexp" >&6; }
9125 ac_res=$ac_cv_search_ldexp
9126 if test "$ac_res" != no; then :
9127 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9128
9129 fi
9130
9131 LDEXP_LIB="$LIBS"
9132 LIBS="$save_LIBS"
9133
9134
9135 # Use <inttypes.h> only if it exists,
9136 # doesn't clash with <sys/types.h>, and declares intmax_t.
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9138 $as_echo_n "checking for inttypes.h... " >&6; }
9139 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9140 $as_echo_n "(cached) " >&6
9141 else
9142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9143 /* end confdefs.h. */
9144 #include <sys/types.h>
9145 #include <inttypes.h>
9146 int
9147 main ()
9148 {
9149 intmax_t i = -1;
9150 ;
9151 return 0;
9152 }
9153 _ACEOF
9154 if ac_fn_c_try_compile "$LINENO"; then :
9155 gcc_cv_header_inttypes_h=yes
9156 else
9157 gcc_cv_header_inttypes_h=no
9158 fi
9159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9160 fi
9161
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9163 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9164 if test $gcc_cv_header_inttypes_h = yes; then
9165
9166 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9167
9168 fi
9169
9170
9171
9172 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9173 sysconf strsignal getrusage nl_langinfo \
9174 gettimeofday mbstowcs wcswidth mmap setlocale \
9175 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise
9176 do :
9177 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9178 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9179 eval as_val=\$$as_ac_var
9180 if test "x$as_val" = x""yes; then :
9181 cat >>confdefs.h <<_ACEOF
9182 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9183 _ACEOF
9184
9185 fi
9186 done
9187
9188
9189 if test x$ac_cv_func_mbstowcs = xyes; then
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9191 $as_echo_n "checking whether mbstowcs works... " >&6; }
9192 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9193 $as_echo_n "(cached) " >&6
9194 else
9195 if test "$cross_compiling" = yes; then :
9196 gcc_cv_func_mbstowcs_works=yes
9197 else
9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9200 #include <stdlib.h>
9201 int main()
9202 {
9203 mbstowcs(0, "", 0);
9204 return 0;
9205 }
9206 _ACEOF
9207 if ac_fn_c_try_run "$LINENO"; then :
9208 gcc_cv_func_mbstowcs_works=yes
9209 else
9210 gcc_cv_func_mbstowcs_works=no
9211 fi
9212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9213 conftest.$ac_objext conftest.beam conftest.$ac_ext
9214 fi
9215
9216 fi
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9218 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9219 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9220
9221 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9222
9223 fi
9224 fi
9225
9226 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9227 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9228
9229 else
9230
9231 cat >>confdefs.h <<_ACEOF
9232 #define ssize_t int
9233 _ACEOF
9234
9235 fi
9236
9237 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9238 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9239
9240 else
9241
9242 cat >>confdefs.h <<_ACEOF
9243 #define caddr_t char *
9244 _ACEOF
9245
9246 fi
9247
9248
9249
9250 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9251 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9252 gcc_header_sys_mman_h=yes
9253 else
9254 gcc_header_sys_mman_h=no
9255 fi
9256
9257 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9258 if test "x$ac_cv_func_mmap" = x""yes; then :
9259 gcc_func_mmap=yes
9260 else
9261 gcc_func_mmap=no
9262 fi
9263
9264 if test "$gcc_header_sys_mman_h" != yes \
9265 || test "$gcc_func_mmap" != yes; then
9266 gcc_cv_func_mmap_file=no
9267 gcc_cv_func_mmap_dev_zero=no
9268 gcc_cv_func_mmap_anon=no
9269 else
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9271 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9272 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9273 $as_echo_n "(cached) " >&6
9274 else
9275 # Add a system to this blacklist if
9276 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9277 # memory area containing the same data that you'd get if you applied
9278 # read() to the same fd. The only system known to have a problem here
9279 # is VMS, where text files have record structure.
9280 case "$host_os" in
9281 *vms* | ultrix*)
9282 gcc_cv_func_mmap_file=no ;;
9283 *)
9284 gcc_cv_func_mmap_file=yes;;
9285 esac
9286 fi
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9288 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9290 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9291 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9292 $as_echo_n "(cached) " >&6
9293 else
9294 # Add a system to this blacklist if it has mmap() but /dev/zero
9295 # does not exist, or if mmapping /dev/zero does not give anonymous
9296 # zeroed pages with both the following properties:
9297 # 1. If you map N consecutive pages in with one call, and then
9298 # unmap any subset of those pages, the pages that were not
9299 # explicitly unmapped remain accessible.
9300 # 2. If you map two adjacent blocks of memory and then unmap them
9301 # both at once, they must both go away.
9302 # Systems known to be in this category are Windows (all variants),
9303 # VMS, and Darwin.
9304 case "$host_os" in
9305 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9306 gcc_cv_func_mmap_dev_zero=no ;;
9307 *)
9308 gcc_cv_func_mmap_dev_zero=yes;;
9309 esac
9310 fi
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9312 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9313
9314 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9316 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9317 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9318 $as_echo_n "(cached) " >&6
9319 else
9320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9321 /* end confdefs.h. */
9322 #include <sys/types.h>
9323 #include <sys/mman.h>
9324 #include <unistd.h>
9325
9326 #ifndef MAP_ANONYMOUS
9327 #define MAP_ANONYMOUS MAP_ANON
9328 #endif
9329
9330 int
9331 main ()
9332 {
9333 int n = MAP_ANONYMOUS;
9334 ;
9335 return 0;
9336 }
9337 _ACEOF
9338 if ac_fn_c_try_compile "$LINENO"; then :
9339 gcc_cv_decl_map_anon=yes
9340 else
9341 gcc_cv_decl_map_anon=no
9342 fi
9343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9344 fi
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9346 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9347
9348 if test $gcc_cv_decl_map_anon = no; then
9349 gcc_cv_func_mmap_anon=no
9350 else
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9352 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9353 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9354 $as_echo_n "(cached) " >&6
9355 else
9356 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9357 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9358 # doesn't give anonymous zeroed pages with the same properties listed
9359 # above for use of /dev/zero.
9360 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9361 case "$host_os" in
9362 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9363 gcc_cv_func_mmap_anon=no ;;
9364 *)
9365 gcc_cv_func_mmap_anon=yes;;
9366 esac
9367 fi
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9369 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9370 fi
9371 fi
9372
9373 if test $gcc_cv_func_mmap_file = yes; then
9374
9375 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9376
9377 fi
9378 if test $gcc_cv_func_mmap_dev_zero = yes; then
9379
9380 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9381
9382 fi
9383 if test $gcc_cv_func_mmap_anon = yes; then
9384
9385 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9386
9387 fi
9388
9389
9390 case "${host}" in
9391 *-*-*vms*)
9392 # Under VMS, vfork works very differently than on Unix. The standard test
9393 # won't work, and it isn't easily adaptable. It makes more sense to
9394 # just force it.
9395 ac_cv_func_vfork_works=yes
9396 ;;
9397 esac
9398 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9399 if test "x$ac_cv_type_pid_t" = x""yes; then :
9400
9401 else
9402
9403 cat >>confdefs.h <<_ACEOF
9404 #define pid_t int
9405 _ACEOF
9406
9407 fi
9408
9409 for ac_header in vfork.h
9410 do :
9411 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9412 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9413 cat >>confdefs.h <<_ACEOF
9414 #define HAVE_VFORK_H 1
9415 _ACEOF
9416
9417 fi
9418 done
9419
9420 for ac_func in fork vfork
9421 do :
9422 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9423 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9424 eval as_val=\$$as_ac_var
9425 if test "x$as_val" = x""yes; then :
9426 cat >>confdefs.h <<_ACEOF
9427 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9428 _ACEOF
9429
9430 fi
9431 done
9432
9433 if test "x$ac_cv_func_fork" = xyes; then
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9435 $as_echo_n "checking for working fork... " >&6; }
9436 if test "${ac_cv_func_fork_works+set}" = set; then :
9437 $as_echo_n "(cached) " >&6
9438 else
9439 if test "$cross_compiling" = yes; then :
9440 ac_cv_func_fork_works=cross
9441 else
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9444 $ac_includes_default
9445 int
9446 main ()
9447 {
9448
9449 /* By Ruediger Kuhlmann. */
9450 return fork () < 0;
9451
9452 ;
9453 return 0;
9454 }
9455 _ACEOF
9456 if ac_fn_c_try_run "$LINENO"; then :
9457 ac_cv_func_fork_works=yes
9458 else
9459 ac_cv_func_fork_works=no
9460 fi
9461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9462 conftest.$ac_objext conftest.beam conftest.$ac_ext
9463 fi
9464
9465 fi
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9467 $as_echo "$ac_cv_func_fork_works" >&6; }
9468
9469 else
9470 ac_cv_func_fork_works=$ac_cv_func_fork
9471 fi
9472 if test "x$ac_cv_func_fork_works" = xcross; then
9473 case $host in
9474 *-*-amigaos* | *-*-msdosdjgpp*)
9475 # Override, as these systems have only a dummy fork() stub
9476 ac_cv_func_fork_works=no
9477 ;;
9478 *)
9479 ac_cv_func_fork_works=yes
9480 ;;
9481 esac
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9483 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9484 fi
9485 ac_cv_func_vfork_works=$ac_cv_func_vfork
9486 if test "x$ac_cv_func_vfork" = xyes; then
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9488 $as_echo_n "checking for working vfork... " >&6; }
9489 if test "${ac_cv_func_vfork_works+set}" = set; then :
9490 $as_echo_n "(cached) " >&6
9491 else
9492 if test "$cross_compiling" = yes; then :
9493 ac_cv_func_vfork_works=cross
9494 else
9495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9496 /* end confdefs.h. */
9497 /* Thanks to Paul Eggert for this test. */
9498 $ac_includes_default
9499 #include <sys/wait.h>
9500 #ifdef HAVE_VFORK_H
9501 # include <vfork.h>
9502 #endif
9503 /* On some sparc systems, changes by the child to local and incoming
9504 argument registers are propagated back to the parent. The compiler
9505 is told about this with #include <vfork.h>, but some compilers
9506 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9507 static variable whose address is put into a register that is
9508 clobbered by the vfork. */
9509 static void
9510 #ifdef __cplusplus
9511 sparc_address_test (int arg)
9512 # else
9513 sparc_address_test (arg) int arg;
9514 #endif
9515 {
9516 static pid_t child;
9517 if (!child) {
9518 child = vfork ();
9519 if (child < 0) {
9520 perror ("vfork");
9521 _exit(2);
9522 }
9523 if (!child) {
9524 arg = getpid();
9525 write(-1, "", 0);
9526 _exit (arg);
9527 }
9528 }
9529 }
9530
9531 int
9532 main ()
9533 {
9534 pid_t parent = getpid ();
9535 pid_t child;
9536
9537 sparc_address_test (0);
9538
9539 child = vfork ();
9540
9541 if (child == 0) {
9542 /* Here is another test for sparc vfork register problems. This
9543 test uses lots of local variables, at least as many local
9544 variables as main has allocated so far including compiler
9545 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9546 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9547 reuse the register of parent for one of the local variables,
9548 since it will think that parent can't possibly be used any more
9549 in this routine. Assigning to the local variable will thus
9550 munge parent in the parent process. */
9551 pid_t
9552 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9553 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9554 /* Convince the compiler that p..p7 are live; otherwise, it might
9555 use the same hardware register for all 8 local variables. */
9556 if (p != p1 || p != p2 || p != p3 || p != p4
9557 || p != p5 || p != p6 || p != p7)
9558 _exit(1);
9559
9560 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9561 from child file descriptors. If the child closes a descriptor
9562 before it execs or exits, this munges the parent's descriptor
9563 as well. Test for this by closing stdout in the child. */
9564 _exit(close(fileno(stdout)) != 0);
9565 } else {
9566 int status;
9567 struct stat st;
9568
9569 while (wait(&status) != child)
9570 ;
9571 return (
9572 /* Was there some problem with vforking? */
9573 child < 0
9574
9575 /* Did the child fail? (This shouldn't happen.) */
9576 || status
9577
9578 /* Did the vfork/compiler bug occur? */
9579 || parent != getpid()
9580
9581 /* Did the file descriptor bug occur? */
9582 || fstat(fileno(stdout), &st) != 0
9583 );
9584 }
9585 }
9586 _ACEOF
9587 if ac_fn_c_try_run "$LINENO"; then :
9588 ac_cv_func_vfork_works=yes
9589 else
9590 ac_cv_func_vfork_works=no
9591 fi
9592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9593 conftest.$ac_objext conftest.beam conftest.$ac_ext
9594 fi
9595
9596 fi
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9598 $as_echo "$ac_cv_func_vfork_works" >&6; }
9599
9600 fi;
9601 if test "x$ac_cv_func_fork_works" = xcross; then
9602 ac_cv_func_vfork_works=$ac_cv_func_vfork
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9604 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9605 fi
9606
9607 if test "x$ac_cv_func_vfork_works" = xyes; then
9608
9609 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9610
9611 else
9612
9613 $as_echo "#define vfork fork" >>confdefs.h
9614
9615 fi
9616 if test "x$ac_cv_func_fork_works" = xyes; then
9617
9618 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9619
9620 fi
9621
9622
9623 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9624 # iconv() prototype.
9625 ac_ext=cpp
9626 ac_cpp='$CXXCPP $CPPFLAGS'
9627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9630
9631
9632 if test "X$prefix" = "XNONE"; then
9633 acl_final_prefix="$ac_default_prefix"
9634 else
9635 acl_final_prefix="$prefix"
9636 fi
9637 if test "X$exec_prefix" = "XNONE"; then
9638 acl_final_exec_prefix='${prefix}'
9639 else
9640 acl_final_exec_prefix="$exec_prefix"
9641 fi
9642 acl_save_prefix="$prefix"
9643 prefix="$acl_final_prefix"
9644 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9645 prefix="$acl_save_prefix"
9646
9647
9648 # Check whether --with-gnu-ld was given.
9649 if test "${with_gnu_ld+set}" = set; then :
9650 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9651 else
9652 with_gnu_ld=no
9653 fi
9654
9655 # Prepare PATH_SEPARATOR.
9656 # The user is always right.
9657 if test "${PATH_SEPARATOR+set}" != set; then
9658 echo "#! /bin/sh" >conf$$.sh
9659 echo "exit 0" >>conf$$.sh
9660 chmod +x conf$$.sh
9661 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9662 PATH_SEPARATOR=';'
9663 else
9664 PATH_SEPARATOR=:
9665 fi
9666 rm -f conf$$.sh
9667 fi
9668 ac_prog=ld
9669 if test "$GCC" = yes; then
9670 # Check if gcc -print-prog-name=ld gives a path.
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9672 $as_echo_n "checking for ld used by GCC... " >&6; }
9673 case $host in
9674 *-*-mingw*)
9675 # gcc leaves a trailing carriage return which upsets mingw
9676 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9677 *)
9678 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9679 esac
9680 case $ac_prog in
9681 # Accept absolute paths.
9682 [\\/]* | [A-Za-z]:[\\/]*)
9683 re_direlt='/[^/][^/]*/\.\./'
9684 # Canonicalize the path of ld
9685 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9686 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9687 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9688 done
9689 test -z "$LD" && LD="$ac_prog"
9690 ;;
9691 "")
9692 # If it fails, then pretend we aren't using GCC.
9693 ac_prog=ld
9694 ;;
9695 *)
9696 # If it is relative, then search for the first ld in PATH.
9697 with_gnu_ld=unknown
9698 ;;
9699 esac
9700 elif test "$with_gnu_ld" = yes; then
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9702 $as_echo_n "checking for GNU ld... " >&6; }
9703 else
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9705 $as_echo_n "checking for non-GNU ld... " >&6; }
9706 fi
9707 if test "${acl_cv_path_LD+set}" = set; then :
9708 $as_echo_n "(cached) " >&6
9709 else
9710 if test -z "$LD"; then
9711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9712 for ac_dir in $PATH; do
9713 test -z "$ac_dir" && ac_dir=.
9714 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9715 acl_cv_path_LD="$ac_dir/$ac_prog"
9716 # Check to see if the program is GNU ld. I'd rather use --version,
9717 # but apparently some GNU ld's only accept -v.
9718 # Break only if it was the GNU/non-GNU ld that we prefer.
9719 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9720 test "$with_gnu_ld" != no && break
9721 else
9722 test "$with_gnu_ld" != yes && break
9723 fi
9724 fi
9725 done
9726 IFS="$ac_save_ifs"
9727 else
9728 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9729 fi
9730 fi
9731
9732 LD="$acl_cv_path_LD"
9733 if test -n "$LD"; then
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9735 $as_echo "$LD" >&6; }
9736 else
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9738 $as_echo "no" >&6; }
9739 fi
9740 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9742 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9743 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9744 $as_echo_n "(cached) " >&6
9745 else
9746 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9747 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9748 acl_cv_prog_gnu_ld=yes
9749 else
9750 acl_cv_prog_gnu_ld=no
9751 fi
9752 fi
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9754 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9755 with_gnu_ld=$acl_cv_prog_gnu_ld
9756
9757
9758
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9760 $as_echo_n "checking for shared library run path origin... " >&6; }
9761 if test "${acl_cv_rpath+set}" = set; then :
9762 $as_echo_n "(cached) " >&6
9763 else
9764
9765 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9766 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9767 . ./conftest.sh
9768 rm -f ./conftest.sh
9769 acl_cv_rpath=done
9770
9771 fi
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9773 $as_echo "$acl_cv_rpath" >&6; }
9774 wl="$acl_cv_wl"
9775 libext="$acl_cv_libext"
9776 shlibext="$acl_cv_shlibext"
9777 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9778 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9779 hardcode_direct="$acl_cv_hardcode_direct"
9780 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9781 # Check whether --enable-rpath was given.
9782 if test "${enable_rpath+set}" = set; then :
9783 enableval=$enable_rpath; :
9784 else
9785 enable_rpath=yes
9786 fi
9787
9788
9789
9790
9791
9792
9793
9794
9795 use_additional=yes
9796
9797 acl_save_prefix="$prefix"
9798 prefix="$acl_final_prefix"
9799 acl_save_exec_prefix="$exec_prefix"
9800 exec_prefix="$acl_final_exec_prefix"
9801
9802 eval additional_includedir=\"$includedir\"
9803 eval additional_libdir=\"$libdir\"
9804
9805 exec_prefix="$acl_save_exec_prefix"
9806 prefix="$acl_save_prefix"
9807
9808
9809 # Check whether --with-libiconv-prefix was given.
9810 if test "${with_libiconv_prefix+set}" = set; then :
9811 withval=$with_libiconv_prefix;
9812 if test "X$withval" = "Xno"; then
9813 use_additional=no
9814 else
9815 if test "X$withval" = "X"; then
9816
9817 acl_save_prefix="$prefix"
9818 prefix="$acl_final_prefix"
9819 acl_save_exec_prefix="$exec_prefix"
9820 exec_prefix="$acl_final_exec_prefix"
9821
9822 eval additional_includedir=\"$includedir\"
9823 eval additional_libdir=\"$libdir\"
9824
9825 exec_prefix="$acl_save_exec_prefix"
9826 prefix="$acl_save_prefix"
9827
9828 else
9829 additional_includedir="$withval/include"
9830 additional_libdir="$withval/lib"
9831 fi
9832 fi
9833
9834 fi
9835
9836 LIBICONV=
9837 LTLIBICONV=
9838 INCICONV=
9839 rpathdirs=
9840 ltrpathdirs=
9841 names_already_handled=
9842 names_next_round='iconv '
9843 while test -n "$names_next_round"; do
9844 names_this_round="$names_next_round"
9845 names_next_round=
9846 for name in $names_this_round; do
9847 already_handled=
9848 for n in $names_already_handled; do
9849 if test "$n" = "$name"; then
9850 already_handled=yes
9851 break
9852 fi
9853 done
9854 if test -z "$already_handled"; then
9855 names_already_handled="$names_already_handled $name"
9856 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9857 eval value=\"\$HAVE_LIB$uppername\"
9858 if test -n "$value"; then
9859 if test "$value" = yes; then
9860 eval value=\"\$LIB$uppername\"
9861 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9862 eval value=\"\$LTLIB$uppername\"
9863 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9864 else
9865 :
9866 fi
9867 else
9868 found_dir=
9869 found_la=
9870 found_so=
9871 found_a=
9872 if test $use_additional = yes; then
9873 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9874 found_dir="$additional_libdir"
9875 found_so="$additional_libdir/lib$name.$shlibext"
9876 if test -f "$additional_libdir/lib$name.la"; then
9877 found_la="$additional_libdir/lib$name.la"
9878 fi
9879 else
9880 if test -f "$additional_libdir/lib$name.$libext"; then
9881 found_dir="$additional_libdir"
9882 found_a="$additional_libdir/lib$name.$libext"
9883 if test -f "$additional_libdir/lib$name.la"; then
9884 found_la="$additional_libdir/lib$name.la"
9885 fi
9886 fi
9887 fi
9888 fi
9889 if test "X$found_dir" = "X"; then
9890 for x in $LDFLAGS $LTLIBICONV; do
9891
9892 acl_save_prefix="$prefix"
9893 prefix="$acl_final_prefix"
9894 acl_save_exec_prefix="$exec_prefix"
9895 exec_prefix="$acl_final_exec_prefix"
9896 eval x=\"$x\"
9897 exec_prefix="$acl_save_exec_prefix"
9898 prefix="$acl_save_prefix"
9899
9900 case "$x" in
9901 -L*)
9902 dir=`echo "X$x" | sed -e 's/^X-L//'`
9903 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9904 found_dir="$dir"
9905 found_so="$dir/lib$name.$shlibext"
9906 if test -f "$dir/lib$name.la"; then
9907 found_la="$dir/lib$name.la"
9908 fi
9909 else
9910 if test -f "$dir/lib$name.$libext"; then
9911 found_dir="$dir"
9912 found_a="$dir/lib$name.$libext"
9913 if test -f "$dir/lib$name.la"; then
9914 found_la="$dir/lib$name.la"
9915 fi
9916 fi
9917 fi
9918 ;;
9919 esac
9920 if test "X$found_dir" != "X"; then
9921 break
9922 fi
9923 done
9924 fi
9925 if test "X$found_dir" != "X"; then
9926 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9927 if test "X$found_so" != "X"; then
9928 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9929 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9930 else
9931 haveit=
9932 for x in $ltrpathdirs; do
9933 if test "X$x" = "X$found_dir"; then
9934 haveit=yes
9935 break
9936 fi
9937 done
9938 if test -z "$haveit"; then
9939 ltrpathdirs="$ltrpathdirs $found_dir"
9940 fi
9941 if test "$hardcode_direct" = yes; then
9942 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9943 else
9944 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9945 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9946 haveit=
9947 for x in $rpathdirs; do
9948 if test "X$x" = "X$found_dir"; then
9949 haveit=yes
9950 break
9951 fi
9952 done
9953 if test -z "$haveit"; then
9954 rpathdirs="$rpathdirs $found_dir"
9955 fi
9956 else
9957 haveit=
9958 for x in $LDFLAGS $LIBICONV; do
9959
9960 acl_save_prefix="$prefix"
9961 prefix="$acl_final_prefix"
9962 acl_save_exec_prefix="$exec_prefix"
9963 exec_prefix="$acl_final_exec_prefix"
9964 eval x=\"$x\"
9965 exec_prefix="$acl_save_exec_prefix"
9966 prefix="$acl_save_prefix"
9967
9968 if test "X$x" = "X-L$found_dir"; then
9969 haveit=yes
9970 break
9971 fi
9972 done
9973 if test -z "$haveit"; then
9974 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9975 fi
9976 if test "$hardcode_minus_L" != no; then
9977 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9978 else
9979 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9980 fi
9981 fi
9982 fi
9983 fi
9984 else
9985 if test "X$found_a" != "X"; then
9986 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9987 else
9988 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9989 fi
9990 fi
9991 additional_includedir=
9992 case "$found_dir" in
9993 */lib | */lib/)
9994 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9995 additional_includedir="$basedir/include"
9996 ;;
9997 esac
9998 if test "X$additional_includedir" != "X"; then
9999 if test "X$additional_includedir" != "X/usr/include"; then
10000 haveit=
10001 if test "X$additional_includedir" = "X/usr/local/include"; then
10002 if test -n "$GCC"; then
10003 case $host_os in
10004 linux*) haveit=yes;;
10005 esac
10006 fi
10007 fi
10008 if test -z "$haveit"; then
10009 for x in $CPPFLAGS $INCICONV; do
10010
10011 acl_save_prefix="$prefix"
10012 prefix="$acl_final_prefix"
10013 acl_save_exec_prefix="$exec_prefix"
10014 exec_prefix="$acl_final_exec_prefix"
10015 eval x=\"$x\"
10016 exec_prefix="$acl_save_exec_prefix"
10017 prefix="$acl_save_prefix"
10018
10019 if test "X$x" = "X-I$additional_includedir"; then
10020 haveit=yes
10021 break
10022 fi
10023 done
10024 if test -z "$haveit"; then
10025 if test -d "$additional_includedir"; then
10026 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10027 fi
10028 fi
10029 fi
10030 fi
10031 fi
10032 if test -n "$found_la"; then
10033 save_libdir="$libdir"
10034 case "$found_la" in
10035 */* | *\\*) . "$found_la" ;;
10036 *) . "./$found_la" ;;
10037 esac
10038 libdir="$save_libdir"
10039 for dep in $dependency_libs; do
10040 case "$dep" in
10041 -L*)
10042 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10043 if test "X$additional_libdir" != "X/usr/lib"; then
10044 haveit=
10045 if test "X$additional_libdir" = "X/usr/local/lib"; then
10046 if test -n "$GCC"; then
10047 case $host_os in
10048 linux*) haveit=yes;;
10049 esac
10050 fi
10051 fi
10052 if test -z "$haveit"; then
10053 haveit=
10054 for x in $LDFLAGS $LIBICONV; do
10055
10056 acl_save_prefix="$prefix"
10057 prefix="$acl_final_prefix"
10058 acl_save_exec_prefix="$exec_prefix"
10059 exec_prefix="$acl_final_exec_prefix"
10060 eval x=\"$x\"
10061 exec_prefix="$acl_save_exec_prefix"
10062 prefix="$acl_save_prefix"
10063
10064 if test "X$x" = "X-L$additional_libdir"; then
10065 haveit=yes
10066 break
10067 fi
10068 done
10069 if test -z "$haveit"; then
10070 if test -d "$additional_libdir"; then
10071 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10072 fi
10073 fi
10074 haveit=
10075 for x in $LDFLAGS $LTLIBICONV; do
10076
10077 acl_save_prefix="$prefix"
10078 prefix="$acl_final_prefix"
10079 acl_save_exec_prefix="$exec_prefix"
10080 exec_prefix="$acl_final_exec_prefix"
10081 eval x=\"$x\"
10082 exec_prefix="$acl_save_exec_prefix"
10083 prefix="$acl_save_prefix"
10084
10085 if test "X$x" = "X-L$additional_libdir"; then
10086 haveit=yes
10087 break
10088 fi
10089 done
10090 if test -z "$haveit"; then
10091 if test -d "$additional_libdir"; then
10092 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10093 fi
10094 fi
10095 fi
10096 fi
10097 ;;
10098 -R*)
10099 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10100 if test "$enable_rpath" != no; then
10101 haveit=
10102 for x in $rpathdirs; do
10103 if test "X$x" = "X$dir"; then
10104 haveit=yes
10105 break
10106 fi
10107 done
10108 if test -z "$haveit"; then
10109 rpathdirs="$rpathdirs $dir"
10110 fi
10111 haveit=
10112 for x in $ltrpathdirs; do
10113 if test "X$x" = "X$dir"; then
10114 haveit=yes
10115 break
10116 fi
10117 done
10118 if test -z "$haveit"; then
10119 ltrpathdirs="$ltrpathdirs $dir"
10120 fi
10121 fi
10122 ;;
10123 -l*)
10124 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10125 ;;
10126 *.la)
10127 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10128 ;;
10129 *)
10130 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10131 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10132 ;;
10133 esac
10134 done
10135 fi
10136 else
10137 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10138 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10139 fi
10140 fi
10141 fi
10142 done
10143 done
10144 if test "X$rpathdirs" != "X"; then
10145 if test -n "$hardcode_libdir_separator"; then
10146 alldirs=
10147 for found_dir in $rpathdirs; do
10148 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10149 done
10150 acl_save_libdir="$libdir"
10151 libdir="$alldirs"
10152 eval flag=\"$hardcode_libdir_flag_spec\"
10153 libdir="$acl_save_libdir"
10154 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10155 else
10156 for found_dir in $rpathdirs; do
10157 acl_save_libdir="$libdir"
10158 libdir="$found_dir"
10159 eval flag=\"$hardcode_libdir_flag_spec\"
10160 libdir="$acl_save_libdir"
10161 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10162 done
10163 fi
10164 fi
10165 if test "X$ltrpathdirs" != "X"; then
10166 for found_dir in $ltrpathdirs; do
10167 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10168 done
10169 fi
10170
10171
10172
10173
10174
10175
10176
10177 am_save_CPPFLAGS="$CPPFLAGS"
10178
10179 for element in $INCICONV; do
10180 haveit=
10181 for x in $CPPFLAGS; do
10182
10183 acl_save_prefix="$prefix"
10184 prefix="$acl_final_prefix"
10185 acl_save_exec_prefix="$exec_prefix"
10186 exec_prefix="$acl_final_exec_prefix"
10187 eval x=\"$x\"
10188 exec_prefix="$acl_save_exec_prefix"
10189 prefix="$acl_save_prefix"
10190
10191 if test "X$x" = "X$element"; then
10192 haveit=yes
10193 break
10194 fi
10195 done
10196 if test -z "$haveit"; then
10197 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10198 fi
10199 done
10200
10201
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10203 $as_echo_n "checking for iconv... " >&6; }
10204 if test "${am_cv_func_iconv+set}" = set; then :
10205 $as_echo_n "(cached) " >&6
10206 else
10207
10208 am_cv_func_iconv="no, consider installing GNU libiconv"
10209 am_cv_lib_iconv=no
10210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10211 /* end confdefs.h. */
10212 #include <stdlib.h>
10213 #include <iconv.h>
10214 int
10215 main ()
10216 {
10217 iconv_t cd = iconv_open("","");
10218 iconv(cd,NULL,NULL,NULL,NULL);
10219 iconv_close(cd);
10220 ;
10221 return 0;
10222 }
10223 _ACEOF
10224 if ac_fn_cxx_try_link "$LINENO"; then :
10225 am_cv_func_iconv=yes
10226 fi
10227 rm -f core conftest.err conftest.$ac_objext \
10228 conftest$ac_exeext conftest.$ac_ext
10229 if test "$am_cv_func_iconv" != yes; then
10230 am_save_LIBS="$LIBS"
10231 LIBS="$LIBS $LIBICONV"
10232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10233 /* end confdefs.h. */
10234 #include <stdlib.h>
10235 #include <iconv.h>
10236 int
10237 main ()
10238 {
10239 iconv_t cd = iconv_open("","");
10240 iconv(cd,NULL,NULL,NULL,NULL);
10241 iconv_close(cd);
10242 ;
10243 return 0;
10244 }
10245 _ACEOF
10246 if ac_fn_cxx_try_link "$LINENO"; then :
10247 am_cv_lib_iconv=yes
10248 am_cv_func_iconv=yes
10249 fi
10250 rm -f core conftest.err conftest.$ac_objext \
10251 conftest$ac_exeext conftest.$ac_ext
10252 LIBS="$am_save_LIBS"
10253 fi
10254
10255 fi
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10257 $as_echo "$am_cv_func_iconv" >&6; }
10258 if test "$am_cv_func_iconv" = yes; then
10259
10260 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10261
10262 fi
10263 if test "$am_cv_lib_iconv" = yes; then
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10265 $as_echo_n "checking how to link with libiconv... " >&6; }
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10267 $as_echo "$LIBICONV" >&6; }
10268 else
10269 CPPFLAGS="$am_save_CPPFLAGS"
10270 LIBICONV=
10271 LTLIBICONV=
10272 fi
10273
10274
10275
10276 if test "$am_cv_func_iconv" = yes; then
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10278 $as_echo_n "checking for iconv declaration... " >&6; }
10279 if test "${am_cv_proto_iconv+set}" = set; then :
10280 $as_echo_n "(cached) " >&6
10281 else
10282
10283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10284 /* end confdefs.h. */
10285
10286 #include <stdlib.h>
10287 #include <iconv.h>
10288 extern
10289 #ifdef __cplusplus
10290 "C"
10291 #endif
10292 #if defined(__STDC__) || defined(__cplusplus)
10293 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10294 #else
10295 size_t iconv();
10296 #endif
10297
10298 int
10299 main ()
10300 {
10301
10302 ;
10303 return 0;
10304 }
10305 _ACEOF
10306 if ac_fn_cxx_try_compile "$LINENO"; then :
10307 am_cv_proto_iconv_arg1=""
10308 else
10309 am_cv_proto_iconv_arg1="const"
10310 fi
10311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10312 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);"
10313 fi
10314
10315 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10317 }$am_cv_proto_iconv" >&5
10318 $as_echo "${ac_t:-
10319 }$am_cv_proto_iconv" >&6; }
10320
10321 cat >>confdefs.h <<_ACEOF
10322 #define ICONV_CONST $am_cv_proto_iconv_arg1
10323 _ACEOF
10324
10325 fi
10326
10327 ac_ext=c
10328 ac_cpp='$CPP $CPPFLAGS'
10329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10332
10333
10334 # Until we have in-tree GNU iconv:
10335 LIBICONV_DEP=
10336
10337
10338
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10340 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10341 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10342 $as_echo_n "(cached) " >&6
10343 else
10344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10345 /* end confdefs.h. */
10346 #include <locale.h>
10347 int
10348 main ()
10349 {
10350 return LC_MESSAGES
10351 ;
10352 return 0;
10353 }
10354 _ACEOF
10355 if ac_fn_c_try_link "$LINENO"; then :
10356 am_cv_val_LC_MESSAGES=yes
10357 else
10358 am_cv_val_LC_MESSAGES=no
10359 fi
10360 rm -f core conftest.err conftest.$ac_objext \
10361 conftest$ac_exeext conftest.$ac_ext
10362 fi
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10364 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10365 if test $am_cv_val_LC_MESSAGES = yes; then
10366
10367 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10368
10369 fi
10370
10371
10372
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10374 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10375 if test "${am_cv_langinfo_codeset+set}" = set; then :
10376 $as_echo_n "(cached) " >&6
10377 else
10378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10379 /* end confdefs.h. */
10380 #include <langinfo.h>
10381 int
10382 main ()
10383 {
10384 char* cs = nl_langinfo(CODESET);
10385 ;
10386 return 0;
10387 }
10388 _ACEOF
10389 if ac_fn_c_try_link "$LINENO"; then :
10390 am_cv_langinfo_codeset=yes
10391 else
10392 am_cv_langinfo_codeset=no
10393 fi
10394 rm -f core conftest.err conftest.$ac_objext \
10395 conftest$ac_exeext conftest.$ac_ext
10396
10397 fi
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10399 $as_echo "$am_cv_langinfo_codeset" >&6; }
10400 if test $am_cv_langinfo_codeset = yes; then
10401
10402 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10403
10404 fi
10405
10406
10407 # We will need to find libiberty.h and ansidecl.h
10408 saved_CFLAGS="$CFLAGS"
10409 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10410 saved_CXXFLAGS="$CXXFLAGS"
10411 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10412 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10413 strsignal strstr stpcpy strverscmp \
10414 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10415 free basename getopt clock getpagesize ffs clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10416 do
10417 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10419 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10420 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10421 $as_echo_n "(cached) " >&6
10422 else
10423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10424 /* end confdefs.h. */
10425 #undef $ac_tr_decl
10426 #define $ac_tr_decl 1
10427
10428 #include "ansidecl.h"
10429 #include "system.h"
10430
10431 int
10432 main ()
10433 {
10434 #ifndef $ac_func
10435 char *(*pfn) = (char *(*)) $ac_func ;
10436 #endif
10437 ;
10438 return 0;
10439 }
10440 _ACEOF
10441 if ac_fn_c_try_compile "$LINENO"; then :
10442 eval "gcc_cv_have_decl_$ac_func=yes"
10443 else
10444 eval "gcc_cv_have_decl_$ac_func=no"
10445 fi
10446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10447 fi
10448
10449 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10451 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10452 #define $ac_tr_decl 1
10453 _ACEOF
10454
10455 else
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10457 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10458 #define $ac_tr_decl 0
10459 _ACEOF
10460
10461 fi
10462
10463 done
10464
10465
10466 for ac_func in getrlimit setrlimit getrusage
10467 do
10468 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10470 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10471 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10472 $as_echo_n "(cached) " >&6
10473 else
10474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475 /* end confdefs.h. */
10476 #undef $ac_tr_decl
10477 #define $ac_tr_decl 1
10478
10479 #include "ansidecl.h"
10480 #include "system.h"
10481 #ifdef HAVE_SYS_RESOURCE_H
10482 #include <sys/resource.h>
10483 #endif
10484
10485
10486 int
10487 main ()
10488 {
10489 #ifndef $ac_func
10490 char *(*pfn) = (char *(*)) $ac_func ;
10491 #endif
10492 ;
10493 return 0;
10494 }
10495 _ACEOF
10496 if ac_fn_c_try_compile "$LINENO"; then :
10497 eval "gcc_cv_have_decl_$ac_func=yes"
10498 else
10499 eval "gcc_cv_have_decl_$ac_func=no"
10500 fi
10501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10502 fi
10503
10504 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10506 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10507 #define $ac_tr_decl 1
10508 _ACEOF
10509
10510 else
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10513 #define $ac_tr_decl 0
10514 _ACEOF
10515
10516 fi
10517
10518 done
10519
10520
10521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522 /* end confdefs.h. */
10523
10524 #include "ansidecl.h"
10525 #include "system.h"
10526 #ifdef HAVE_SYS_RESOURCE_H
10527 #include <sys/resource.h>
10528 #endif
10529
10530 int
10531 main ()
10532 {
10533 rlim_t l = 0;
10534 ;
10535 return 0;
10536 }
10537 _ACEOF
10538 if ac_fn_c_try_compile "$LINENO"; then :
10539
10540 else
10541
10542 $as_echo "#define rlim_t long" >>confdefs.h
10543
10544 fi
10545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10546
10547 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10548 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10549 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10550 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10551 for ac_func in ldgetname
10552 do
10553 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10555 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10556 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10557 $as_echo_n "(cached) " >&6
10558 else
10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10561 #undef $ac_tr_decl
10562 #define $ac_tr_decl 1
10563
10564 #include "ansidecl.h"
10565 #include "system.h"
10566 #ifdef HAVE_LDFCN_H
10567 #undef FREAD
10568 #undef FWRITE
10569 #include <ldfcn.h>
10570 #endif
10571
10572
10573 int
10574 main ()
10575 {
10576 #ifndef $ac_func
10577 char *(*pfn) = (char *(*)) $ac_func ;
10578 #endif
10579 ;
10580 return 0;
10581 }
10582 _ACEOF
10583 if ac_fn_c_try_compile "$LINENO"; then :
10584 eval "gcc_cv_have_decl_$ac_func=yes"
10585 else
10586 eval "gcc_cv_have_decl_$ac_func=no"
10587 fi
10588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10589 fi
10590
10591 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10593 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10594 #define $ac_tr_decl 1
10595 _ACEOF
10596
10597 else
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10599 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10600 #define $ac_tr_decl 0
10601 _ACEOF
10602
10603 fi
10604
10605 done
10606
10607
10608 for ac_func in times
10609 do
10610 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10612 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10613 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10614 $as_echo_n "(cached) " >&6
10615 else
10616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10617 /* end confdefs.h. */
10618 #undef $ac_tr_decl
10619 #define $ac_tr_decl 1
10620
10621 #include "ansidecl.h"
10622 #include "system.h"
10623 #ifdef HAVE_SYS_TIMES_H
10624 #include <sys/times.h>
10625 #endif
10626
10627
10628 int
10629 main ()
10630 {
10631 #ifndef $ac_func
10632 char *(*pfn) = (char *(*)) $ac_func ;
10633 #endif
10634 ;
10635 return 0;
10636 }
10637 _ACEOF
10638 if ac_fn_c_try_compile "$LINENO"; then :
10639 eval "gcc_cv_have_decl_$ac_func=yes"
10640 else
10641 eval "gcc_cv_have_decl_$ac_func=no"
10642 fi
10643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10644 fi
10645
10646 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10648 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10649 #define $ac_tr_decl 1
10650 _ACEOF
10651
10652 else
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10654 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10655 #define $ac_tr_decl 0
10656 _ACEOF
10657
10658 fi
10659
10660 done
10661
10662
10663 for ac_func in sigaltstack
10664 do
10665 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10667 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10668 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10669 $as_echo_n "(cached) " >&6
10670 else
10671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672 /* end confdefs.h. */
10673 #undef $ac_tr_decl
10674 #define $ac_tr_decl 1
10675
10676 #include "ansidecl.h"
10677 #include "system.h"
10678 #include <signal.h>
10679
10680
10681 int
10682 main ()
10683 {
10684 #ifndef $ac_func
10685 char *(*pfn) = (char *(*)) $ac_func ;
10686 #endif
10687 ;
10688 return 0;
10689 }
10690 _ACEOF
10691 if ac_fn_c_try_compile "$LINENO"; then :
10692 eval "gcc_cv_have_decl_$ac_func=yes"
10693 else
10694 eval "gcc_cv_have_decl_$ac_func=no"
10695 fi
10696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10697 fi
10698
10699 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10701 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10702 #define $ac_tr_decl 1
10703 _ACEOF
10704
10705 else
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10707 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10708 #define $ac_tr_decl 0
10709 _ACEOF
10710
10711 fi
10712
10713 done
10714
10715
10716 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10717 # prototype.
10718 ac_ext=cpp
10719 ac_cpp='$CXXCPP $CPPFLAGS'
10720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10723
10724 for ac_func in madvise
10725 do
10726 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10728 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10729 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10730 $as_echo_n "(cached) " >&6
10731 else
10732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733 /* end confdefs.h. */
10734 #undef $ac_tr_decl
10735 #define $ac_tr_decl 1
10736
10737 #include "ansidecl.h"
10738 #include "system.h"
10739
10740
10741 int
10742 main ()
10743 {
10744 #ifndef $ac_func
10745 char *(*pfn) = (char *(*)) $ac_func ;
10746 #endif
10747 ;
10748 return 0;
10749 }
10750 _ACEOF
10751 if ac_fn_cxx_try_compile "$LINENO"; then :
10752 eval "gcc_cv_have_decl_$ac_func=yes"
10753 else
10754 eval "gcc_cv_have_decl_$ac_func=no"
10755 fi
10756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10757 fi
10758
10759 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10761 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10762 #define $ac_tr_decl 1
10763 _ACEOF
10764
10765 else
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10767 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10768 #define $ac_tr_decl 0
10769 _ACEOF
10770
10771 fi
10772
10773 done
10774
10775 ac_ext=c
10776 ac_cpp='$CPP $CPPFLAGS'
10777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10780
10781
10782 # More time-related stuff.
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10784 $as_echo_n "checking for struct tms... " >&6; }
10785 if test "${ac_cv_struct_tms+set}" = set; then :
10786 $as_echo_n "(cached) " >&6
10787 else
10788
10789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h. */
10791
10792 #include "ansidecl.h"
10793 #include "system.h"
10794 #ifdef HAVE_SYS_TIMES_H
10795 #include <sys/times.h>
10796 #endif
10797
10798 int
10799 main ()
10800 {
10801 struct tms tms;
10802 ;
10803 return 0;
10804 }
10805 _ACEOF
10806 if ac_fn_c_try_compile "$LINENO"; then :
10807 ac_cv_struct_tms=yes
10808 else
10809 ac_cv_struct_tms=no
10810 fi
10811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10812 fi
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10814 $as_echo "$ac_cv_struct_tms" >&6; }
10815 if test $ac_cv_struct_tms = yes; then
10816
10817 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10818
10819 fi
10820
10821 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10822 # revisit after autoconf 2.50.
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10824 $as_echo_n "checking for clock_t... " >&6; }
10825 if test "${gcc_cv_type_clock_t+set}" = set; then :
10826 $as_echo_n "(cached) " >&6
10827 else
10828
10829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830 /* end confdefs.h. */
10831
10832 #include "ansidecl.h"
10833 #include "system.h"
10834
10835 int
10836 main ()
10837 {
10838 clock_t x;
10839 ;
10840 return 0;
10841 }
10842 _ACEOF
10843 if ac_fn_c_try_compile "$LINENO"; then :
10844 gcc_cv_type_clock_t=yes
10845 else
10846 gcc_cv_type_clock_t=no
10847 fi
10848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10849 fi
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10851 $as_echo "$gcc_cv_type_clock_t" >&6; }
10852 if test $gcc_cv_type_clock_t = yes; then
10853
10854 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10855
10856 fi
10857
10858 # Check if F_SETLKW is supported by fcntl.
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10860 $as_echo_n "checking for F_SETLKW... " >&6; }
10861 if test "${ac_cv_f_setlkw+set}" = set; then :
10862 $as_echo_n "(cached) " >&6
10863 else
10864
10865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10866 /* end confdefs.h. */
10867
10868 #include <fcntl.h>
10869 int
10870 main ()
10871 {
10872
10873 struct flock fl;
10874 fl.l_whence = 0;
10875 fl.l_start = 0;
10876 fl.l_len = 0;
10877 fl.l_pid = 0;
10878 return fcntl (1, F_SETLKW, &fl);
10879 ;
10880 return 0;
10881 }
10882 _ACEOF
10883 if ac_fn_c_try_compile "$LINENO"; then :
10884 ac_cv_f_setlkw=yes
10885 else
10886 ac_cv_f_setlkw=no
10887 fi
10888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10889 fi
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10891 $as_echo "$ac_cv_f_setlkw" >&6; }
10892 if test $ac_cv_f_setlkw = yes; then
10893
10894 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10895
10896 fi
10897
10898 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10899 CFLAGS="$saved_CFLAGS"
10900 CXXFLAGS="$saved_CXXFLAGS"
10901
10902 # mkdir takes a single argument on some systems.
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10904 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10905 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10906 $as_echo_n "(cached) " >&6
10907 else
10908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10909 /* end confdefs.h. */
10910
10911 #include <sys/types.h>
10912 #ifdef HAVE_SYS_STAT_H
10913 # include <sys/stat.h>
10914 #endif
10915 #ifdef HAVE_UNISTD_H
10916 # include <unistd.h>
10917 #endif
10918 #ifdef HAVE_DIRECT_H
10919 # include <direct.h>
10920 #endif
10921 int
10922 main ()
10923 {
10924 mkdir ("foo", 0);
10925 ;
10926 return 0;
10927 }
10928 _ACEOF
10929 if ac_fn_c_try_compile "$LINENO"; then :
10930 gcc_cv_mkdir_takes_one_arg=no
10931 else
10932 gcc_cv_mkdir_takes_one_arg=yes
10933 fi
10934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10935 fi
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10937 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10938 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10939
10940 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10941
10942 fi
10943
10944
10945 # File extensions
10946 manext='.1'
10947 objext='.o'
10948
10949
10950
10951 # With Setjmp/Longjmp based exception handling.
10952 # Check whether --enable-sjlj-exceptions was given.
10953 if test "${enable_sjlj_exceptions+set}" = set; then :
10954 enableval=$enable_sjlj_exceptions; case $target in
10955 *-*-hpux10*)
10956 if test $enableval != yes; then
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10958 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10959 enableval=yes
10960 fi
10961 ;;
10962 esac
10963 force_sjlj_exceptions=yes
10964 else
10965 case $target in
10966 *-*-hpux10*)
10967 force_sjlj_exceptions=yes
10968 enableval=yes
10969 ;;
10970 *)
10971 force_sjlj_exceptions=no
10972 ;;
10973 esac
10974 fi
10975
10976 if test $force_sjlj_exceptions = yes; then
10977 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10978
10979 cat >>confdefs.h <<_ACEOF
10980 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10981 _ACEOF
10982
10983 fi
10984
10985 # --------------------------------------------------------
10986 # Build, host, and target specific configuration fragments
10987 # --------------------------------------------------------
10988
10989 # Collect build-machine-specific information.
10990 . ${srcdir}/config.build
10991
10992 # Collect host-machine-specific information.
10993 . ${srcdir}/config.host
10994
10995 target_gtfiles=
10996
10997 # Collect target-machine-specific information.
10998 . ${srcdir}/config.gcc
10999
11000 extra_objs="${host_extra_objs} ${extra_objs}"
11001 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11002
11003 # Default the target-machine variables that were not explicitly set.
11004 if test x"$tm_file" = x
11005 then tm_file=$cpu_type/$cpu_type.h; fi
11006
11007 if test x"$extra_headers" = x
11008 then extra_headers=; fi
11009
11010 if test x$md_file = x
11011 then md_file=$cpu_type/$cpu_type.md; fi
11012
11013 if test x$out_file = x
11014 then out_file=$cpu_type/$cpu_type.c; fi
11015
11016 if test x"$tmake_file" = x
11017 then tmake_file=$cpu_type/t-$cpu_type
11018 fi
11019
11020 # Support --enable-initfini-array.
11021 if test x$enable_initfini_array != xno; then
11022 tm_file="${tm_file} initfini-array.h"
11023 fi
11024
11025 if test x"$dwarf2" = xyes
11026 then tm_file="$tm_file tm-dwarf2.h"
11027 fi
11028
11029 # Say what files are being used for the output code and MD file.
11030 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11031 echo "Using \`$srcdir/config/$md_file' as machine description file."
11032
11033 # If any of the xm_file variables contain nonexistent files, warn
11034 # about them and drop them.
11035
11036 bx=
11037 for x in $build_xm_file; do
11038 if test -f $srcdir/config/$x
11039 then bx="$bx $x"
11040 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11041 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11042 fi
11043 done
11044 build_xm_file="$bx"
11045
11046 hx=
11047 for x in $host_xm_file; do
11048 if test -f $srcdir/config/$x
11049 then hx="$hx $x"
11050 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11051 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11052 fi
11053 done
11054 host_xm_file="$hx"
11055
11056 tx=
11057 for x in $xm_file; do
11058 if test -f $srcdir/config/$x
11059 then tx="$tx $x"
11060 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11061 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11062 fi
11063 done
11064 xm_file="$tx"
11065
11066 count=a
11067 for f in $tm_file; do
11068 count=${count}x
11069 done
11070 if test $count = ax; then
11071 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11072 else
11073 echo "Using the following target machine macro files:"
11074 for f in $tm_file; do
11075 echo " $srcdir/config/$f"
11076 done
11077 fi
11078
11079 if test x$need_64bit_hwint = xyes; then
11080
11081 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11082
11083 fi
11084
11085 if test x$use_long_long_for_widest_fast_int = xyes; then
11086
11087 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11088
11089 fi
11090
11091 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11092
11093 cat >>confdefs.h <<_ACEOF
11094 #define HAVE_GNU_LD $gnu_ld_bool
11095 _ACEOF
11096
11097
11098 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11099
11100 cat >>confdefs.h <<_ACEOF
11101 #define HAVE_GNU_AS $gnu_as_bool
11102 _ACEOF
11103
11104
11105 count=a
11106 for f in $host_xm_file; do
11107 count=${count}x
11108 done
11109 if test $count = a; then
11110 :
11111 elif test $count = ax; then
11112 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11113 else
11114 echo "Using the following host machine macro files:"
11115 for f in $host_xm_file; do
11116 echo " $srcdir/config/$f"
11117 done
11118 fi
11119 echo "Using ${out_host_hook_obj} for host machine hooks."
11120
11121 if test "$host_xm_file" != "$build_xm_file"; then
11122 count=a
11123 for f in $build_xm_file; do
11124 count=${count}x
11125 done
11126 if test $count = a; then
11127 :
11128 elif test $count = ax; then
11129 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11130 else
11131 echo "Using the following build machine macro files:"
11132 for f in $build_xm_file; do
11133 echo " $srcdir/config/$f"
11134 done
11135 fi
11136 fi
11137
11138 if test -n "$configured_native_system_header_dir"; then
11139 native_system_header_dir=$configured_native_system_header_dir
11140 fi
11141 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11142
11143
11144 case ${host} in
11145 powerpc*-*-darwin*)
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11147 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11148 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11149 $as_echo_n "(cached) " >&6
11150 else
11151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11152 /* end confdefs.h. */
11153
11154 #include <sys/cdefs.h>
11155 #include <sys/signal.h>
11156 #include <ucontext.h>
11157 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11158
11159 _ACEOF
11160 if ac_fn_c_try_compile "$LINENO"; then :
11161 gcc_cv_mcontext_underscores=no
11162 else
11163 gcc_cv_mcontext_underscores=yes
11164 fi
11165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11166 fi
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11168 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11169 if test $gcc_cv_mcontext_underscores = yes; then
11170
11171 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11172
11173 fi
11174 ;;
11175 esac
11176
11177 # ---------
11178 # Threading
11179 # ---------
11180
11181 # Check if a valid thread package
11182 case ${enable_threads} in
11183 "" | no)
11184 # No threads
11185 target_thread_file='single'
11186 ;;
11187 yes)
11188 # default
11189 target_thread_file='single'
11190 ;;
11191 aix | dce | lynx | mipssde | posix | rtems | \
11192 single | tpf | vxworks | win32)
11193 target_thread_file=${enable_threads}
11194 ;;
11195 *)
11196 echo "${enable_threads} is an unknown thread package" 1>&2
11197 exit 1
11198 ;;
11199 esac
11200
11201 if test x${thread_file} = x; then
11202 # No thread file set by target-specific clauses in config.gcc,
11203 # so use file chosen by default logic above
11204 thread_file=${target_thread_file}
11205 fi
11206
11207 # --------
11208 # UNSORTED
11209 # --------
11210
11211 use_cxa_atexit=no
11212 if test x$enable___cxa_atexit = xyes || \
11213 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11214 if test x$host = x$target; then
11215 case $host in
11216 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11217 # keyed to flag_use_cxa_atexit
11218 *-*-mingw32*)
11219 use_cxa_atexit=yes
11220 ;;
11221 powerpc-ibm-aix*)
11222 use_cxa_atexit=yes
11223 ;;
11224 *)
11225 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11226 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11227 use_cxa_atexit=yes
11228 else
11229 echo "__cxa_atexit can't be enabled on this target"
11230 fi
11231
11232 ;;
11233 esac
11234 else
11235 # We can't check for __cxa_atexit when building a cross, so assume
11236 # it is available
11237 use_cxa_atexit=yes
11238 fi
11239 if test x$use_cxa_atexit = xyes; then
11240
11241 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11242
11243 fi
11244 fi
11245
11246 # Look for a file containing extra machine modes.
11247 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11248 extra_modes_file='$(srcdir)'/config/${extra_modes}
11249
11250
11251 cat >>confdefs.h <<_ACEOF
11252 #define EXTRA_MODES_FILE "config/$extra_modes"
11253 _ACEOF
11254
11255 fi
11256
11257 # Convert extra_options into a form suitable for Makefile use.
11258 extra_opt_files=
11259 all_opt_files=
11260 for f in $extra_options; do
11261 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11262 all_opt_files="$all_opt_files $srcdir/config/$f"
11263 done
11264
11265
11266 # auto-host.h is the file containing items generated by autoconf and is
11267 # the first file included by config.h.
11268 # If host=build, it is correct to have bconfig include auto-host.h
11269 # as well. If host!=build, we are in error and need to do more
11270 # work to find out the build config parameters.
11271 if test x$host = x$build
11272 then
11273 build_auto=auto-host.h
11274 else
11275 # We create a subdir, then run autoconf in the subdir.
11276 # To prevent recursion we set host and build for the new
11277 # invocation of configure to the build for this invocation
11278 # of configure.
11279 tempdir=build.$$
11280 rm -rf $tempdir
11281 mkdir $tempdir
11282 cd $tempdir
11283 case ${srcdir} in
11284 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11285 *) realsrcdir=../${srcdir};;
11286 esac
11287 saved_CFLAGS="${CFLAGS}"
11288 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11289 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11290 ${realsrcdir}/configure \
11291 --enable-languages=${enable_languages-all} \
11292 --target=$target_alias --host=$build_alias --build=$build_alias
11293 CFLAGS="${saved_CFLAGS}"
11294
11295 # We just finished tests for the build machine, so rename
11296 # the file auto-build.h in the gcc directory.
11297 mv auto-host.h ../auto-build.h
11298 cd ..
11299 rm -rf $tempdir
11300 build_auto=auto-build.h
11301 fi
11302
11303
11304 tm_file="${tm_file} defaults.h"
11305 tm_p_file="${tm_p_file} tm-preds.h"
11306 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11307 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11308 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11309 # put this back in temporarily.
11310 xm_file="auto-host.h ansidecl.h ${xm_file}"
11311
11312 # --------
11313 # UNSORTED
11314 # --------
11315
11316 # Compile in configure arguments.
11317 if test -f configargs.h ; then
11318 # Being re-configured.
11319 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11320 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11321 else
11322 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11323 fi
11324
11325 # Double all backslashes and backslash all quotes to turn
11326 # gcc_config_arguments into a C string.
11327 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11328 $gcc_config_arguments
11329 EOF
11330 gcc_config_arguments_str=`cat conftest.out`
11331 rm -f conftest.out
11332
11333 cat > configargs.h <<EOF
11334 /* Generated automatically. */
11335 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11336 static const char thread_model[] = "$thread_file";
11337
11338 static const struct {
11339 const char *name, *value;
11340 } configure_default_options[] = $configure_default_options;
11341 EOF
11342
11343 gcc_BASEVER=`cat $srcdir/BASE-VER`
11344 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11345 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11346 if test -f $srcdir/REVISION ; then
11347 gcc_REVISION=`cat $srcdir/REVISION`
11348 else
11349 gcc_REVISION=""
11350 fi
11351 cat > plugin-version.h <<EOF
11352 #include "configargs.h"
11353
11354 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11355 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11356 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11357 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11358
11359 static char basever[] = "$gcc_BASEVER";
11360 static char datestamp[] = "$gcc_DATESTAMP";
11361 static char devphase[] = "$gcc_DEVPHASE";
11362 static char revision[] = "$gcc_REVISION";
11363
11364 /* FIXME plugins: We should make the version information more precise.
11365 One way to do is to add a checksum. */
11366
11367 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11368 devphase, revision,
11369 configuration_arguments};
11370 EOF
11371
11372 # Internationalization
11373 # If we haven't got the data from the intl directory,
11374 # assume NLS is disabled.
11375 USE_NLS=no
11376 LIBINTL=
11377 LIBINTL_DEP=
11378 INCINTL=
11379 XGETTEXT=
11380 GMSGFMT=
11381 POSUB=
11382
11383 if test -f ../intl/config.intl; then
11384 . ../intl/config.intl
11385 fi
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11387 $as_echo_n "checking whether NLS is requested... " >&6; }
11388 if test x"$USE_NLS" != xyes; then
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11390 $as_echo "no" >&6; }
11391 else
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11393 $as_echo "yes" >&6; }
11394
11395 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11396
11397
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11399 $as_echo_n "checking for catalogs to be installed... " >&6; }
11400 # Look for .po and .gmo files in the source directory.
11401 CATALOGS=
11402 XLINGUAS=
11403 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11404 # If there aren't any .gmo files the shell will give us the
11405 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11406 # weeded out.
11407 case "$cat" in *\**)
11408 continue;;
11409 esac
11410 # The quadruple backslash is collapsed to a double backslash
11411 # by the backticks, then collapsed again by the double quotes,
11412 # leaving us with one backslash in the sed expression (right
11413 # before the dot that mustn't act as a wildcard).
11414 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11415 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11416 # The user is allowed to set LINGUAS to a list of languages to
11417 # install catalogs for. If it's empty that means "all of them."
11418 if test "x$LINGUAS" = x; then
11419 CATALOGS="$CATALOGS $cat"
11420 XLINGUAS="$XLINGUAS $lang"
11421 else
11422 case "$LINGUAS" in *$lang*)
11423 CATALOGS="$CATALOGS $cat"
11424 XLINGUAS="$XLINGUAS $lang"
11425 ;;
11426 esac
11427 fi
11428 done
11429 LINGUAS="$XLINGUAS"
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11431 $as_echo "$LINGUAS" >&6; }
11432
11433
11434 DATADIRNAME=share
11435
11436 INSTOBJEXT=.mo
11437
11438 GENCAT=gencat
11439
11440 CATOBJEXT=.gmo
11441
11442 fi
11443
11444 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11445 # -liconv on the link line twice.
11446 case "$LIBINTL" in *$LIBICONV*)
11447 LIBICONV= ;;
11448 esac
11449
11450 # Check whether --enable-secureplt was given.
11451 if test "${enable_secureplt+set}" = set; then :
11452 enableval=$enable_secureplt;
11453 fi
11454
11455
11456 # Check whether --enable-leading-mingw64-underscores was given.
11457 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11458 enableval=$enable_leading_mingw64_underscores;
11459 fi
11460
11461 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11462
11463 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11464
11465 fi
11466
11467 # Check whether --enable-cld was given.
11468 if test "${enable_cld+set}" = set; then :
11469 enableval=$enable_cld;
11470 else
11471 enable_cld=no
11472 fi
11473
11474
11475 # Check whether --enable-frame-pointer was given.
11476 if test "${enable_frame_pointer+set}" = set; then :
11477 enableval=$enable_frame_pointer;
11478 else
11479
11480 case $target_os in
11481 linux* | darwin[8912]*)
11482 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11483 # DWARF2.
11484 enable_frame_pointer=no
11485 ;;
11486 *)
11487 enable_frame_pointer=yes
11488 ;;
11489 esac
11490
11491 fi
11492
11493
11494 # Windows32 Registry support for specifying GCC installation paths.
11495 # Check whether --enable-win32-registry was given.
11496 if test "${enable_win32_registry+set}" = set; then :
11497 enableval=$enable_win32_registry;
11498 fi
11499
11500
11501 case $host_os in
11502 win32 | pe | cygwin* | mingw32* | uwin*)
11503 if test "x$enable_win32_registry" != xno; then
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11505 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11506 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11507 $as_echo_n "(cached) " >&6
11508 else
11509 ac_func_search_save_LIBS=$LIBS
11510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11511 /* end confdefs.h. */
11512
11513 /* Override any GCC internal prototype to avoid an error.
11514 Use char because int might match the return type of a GCC
11515 builtin and then its argument prototype would still apply. */
11516 #ifdef __cplusplus
11517 extern "C"
11518 #endif
11519 char RegOpenKeyExA ();
11520 int
11521 main ()
11522 {
11523 return RegOpenKeyExA ();
11524 ;
11525 return 0;
11526 }
11527 _ACEOF
11528 for ac_lib in '' advapi32; do
11529 if test -z "$ac_lib"; then
11530 ac_res="none required"
11531 else
11532 ac_res=-l$ac_lib
11533 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11534 fi
11535 if ac_fn_c_try_link "$LINENO"; then :
11536 ac_cv_search_RegOpenKeyExA=$ac_res
11537 fi
11538 rm -f core conftest.err conftest.$ac_objext \
11539 conftest$ac_exeext
11540 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11541 break
11542 fi
11543 done
11544 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11545
11546 else
11547 ac_cv_search_RegOpenKeyExA=no
11548 fi
11549 rm conftest.$ac_ext
11550 LIBS=$ac_func_search_save_LIBS
11551 fi
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11553 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11554 ac_res=$ac_cv_search_RegOpenKeyExA
11555 if test "$ac_res" != no; then :
11556 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11557
11558 else
11559 enable_win32_registry=no
11560 fi
11561
11562 fi
11563
11564 if test "x$enable_win32_registry" != xno; then
11565
11566 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11567
11568
11569 if test "x$enable_win32_registry" != xyes \
11570 && test "x$enable_win32_registry" != x; then
11571
11572 cat >>confdefs.h <<_ACEOF
11573 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11574 _ACEOF
11575
11576 fi
11577 fi
11578 ;;
11579 esac
11580
11581 # Get an absolute path to the GCC top-level source directory
11582 holddir=`${PWDCMD-pwd}`
11583 cd $srcdir
11584 topdir=`${PWDCMD-pwd}`
11585 cd $holddir
11586
11587 # Conditionalize the makefile for this host machine.
11588 xmake_file=
11589 for f in ${host_xmake_file}
11590 do
11591 if test -f ${srcdir}/config/$f
11592 then
11593 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11594 fi
11595 done
11596
11597 # Conditionalize the makefile for this target machine.
11598 tmake_file_=
11599 for f in ${tmake_file}
11600 do
11601 if test -f ${srcdir}/config/$f
11602 then
11603 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11604 fi
11605 done
11606 tmake_file="${tmake_file_}"
11607
11608 out_object_file=`basename $out_file .c`.o
11609 common_out_object_file=`basename $common_out_file .c`.o
11610
11611 tm_file_list="options.h"
11612 tm_include_list="options.h insn-constants.h"
11613 for f in $tm_file; do
11614 case $f in
11615 ./* )
11616 f=`echo $f | sed 's/^..//'`
11617 tm_file_list="${tm_file_list} $f"
11618 tm_include_list="${tm_include_list} $f"
11619 ;;
11620 defaults.h )
11621 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11622 tm_include_list="${tm_include_list} $f"
11623 ;;
11624 * )
11625 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11626 tm_include_list="${tm_include_list} config/$f"
11627 ;;
11628 esac
11629 done
11630
11631 tm_p_file_list=
11632 tm_p_include_list=
11633 for f in $tm_p_file; do
11634 case $f in
11635 tm-preds.h )
11636 tm_p_file_list="${tm_p_file_list} $f"
11637 tm_p_include_list="${tm_p_include_list} $f"
11638 ;;
11639 * )
11640 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11641 tm_p_include_list="${tm_p_include_list} config/$f"
11642 esac
11643 done
11644
11645 xm_file_list=
11646 xm_include_list=
11647 for f in $xm_file; do
11648 case $f in
11649 ansidecl.h )
11650 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11651 xm_include_list="${xm_include_list} $f"
11652 ;;
11653 auto-host.h )
11654 xm_file_list="${xm_file_list} $f"
11655 xm_include_list="${xm_include_list} $f"
11656 ;;
11657 * )
11658 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11659 xm_include_list="${xm_include_list} config/$f"
11660 ;;
11661 esac
11662 done
11663
11664 host_xm_file_list=
11665 host_xm_include_list=
11666 for f in $host_xm_file; do
11667 case $f in
11668 ansidecl.h )
11669 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11670 host_xm_include_list="${host_xm_include_list} $f"
11671 ;;
11672 auto-host.h )
11673 host_xm_file_list="${host_xm_file_list} $f"
11674 host_xm_include_list="${host_xm_include_list} $f"
11675 ;;
11676 * )
11677 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11678 host_xm_include_list="${host_xm_include_list} config/$f"
11679 ;;
11680 esac
11681 done
11682
11683 build_xm_file_list=
11684 for f in $build_xm_file; do
11685 case $f in
11686 ansidecl.h )
11687 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11688 build_xm_include_list="${build_xm_include_list} $f"
11689 ;;
11690 auto-build.h | auto-host.h )
11691 build_xm_file_list="${build_xm_file_list} $f"
11692 build_xm_include_list="${build_xm_include_list} $f"
11693 ;;
11694 * )
11695 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11696 build_xm_include_list="${build_xm_include_list} config/$f"
11697 ;;
11698 esac
11699 done
11700
11701 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11702 # cross-compiler which does not use the native headers and libraries.
11703 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11704 CROSS=
11705 ALL=all.internal
11706 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11707
11708 if test "x$with_build_sysroot" != x; then
11709 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11710 else
11711 # This value is used, even on a native system, because
11712 # CROSS_SYSTEM_HEADER_DIR is just
11713 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11714 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11715 fi
11716
11717 if test x$host != x$target
11718 then
11719 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11720 ALL=all.cross
11721 SYSTEM_HEADER_DIR=$build_system_header_dir
11722 case "$host","$target" in
11723 # Darwin crosses can use the host system's libraries and headers,
11724 # because of the fat library support. Of course, it must be the
11725 # same version of Darwin on both sides. Allow the user to
11726 # just say --target=foo-darwin without a version number to mean
11727 # "the version on this system".
11728 *-*-darwin*,*-*-darwin*)
11729 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11730 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11731 if test $hostos = $targetos -o $targetos = darwin ; then
11732 CROSS=
11733 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11734 with_headers=yes
11735 fi
11736 ;;
11737
11738 i?86-*-*,x86_64-*-* \
11739 | powerpc*-*-*,powerpc64*-*-*)
11740 CROSS="$CROSS -DNATIVE_CROSS" ;;
11741 esac
11742
11743 case $target in
11744 *-*-mingw*)
11745 if test "x$with_headers" = x; then
11746 with_headers=yes
11747 fi
11748 ;;
11749 *)
11750 ;;
11751 esac
11752 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11753 SYSTEM_HEADER_DIR=$build_system_header_dir
11754 fi
11755
11756 # If this is a cross-compiler that does not
11757 # have its own set of headers then define
11758 # inhibit_libc
11759
11760 # If this is using newlib, without having the headers available now,
11761 # then define inhibit_libc in LIBGCC2_CFLAGS.
11762 # This prevents libgcc2 from containing any code which requires libc
11763 # support.
11764 : ${inhibit_libc=false}
11765 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11766 test x$with_newlib = xyes ; } &&
11767 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11768 inhibit_libc=true
11769 fi
11770
11771
11772 # When building gcc with a cross-compiler, we need to adjust things so
11773 # that the generator programs are still built with the native compiler.
11774 # Also, we cannot run fixincludes.
11775
11776 # These are the normal (build=host) settings:
11777 CC_FOR_BUILD='$(CC)'
11778 CXX_FOR_BUILD='$(CXX)'
11779 BUILD_CFLAGS='$(ALL_CFLAGS)'
11780 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11781 BUILD_LDFLAGS='$(LDFLAGS)'
11782 STMP_FIXINC=stmp-fixinc
11783
11784 # And these apply if build != host, or we are generating coverage data
11785 if test x$build != x$host || test "x$coverage_flags" != x
11786 then
11787 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11788 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11789 fi
11790
11791 # Expand extra_headers to include complete path.
11792 # This substitutes for lots of t-* files.
11793 extra_headers_list=
11794 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11795 for file in ${extra_headers} ; do
11796 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11797 done
11798
11799 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11800 if test x"$use_gcc_tgmath" = xyes
11801 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11802 fi
11803
11804 # Define collect2 in Makefile.
11805 case $host_can_use_collect2 in
11806 no) collect2= ;;
11807 *) collect2='collect2$(exeext)' ;;
11808 esac
11809
11810
11811 # Add a definition of USE_COLLECT2 if system wants one.
11812 case $use_collect2 in
11813 no) use_collect2= ;;
11814 "") ;;
11815 *)
11816 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11817 xm_defines="${xm_defines} USE_COLLECT2"
11818 case $host_can_use_collect2 in
11819 no)
11820 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11821 ;;
11822 esac
11823 ;;
11824 esac
11825
11826
11827 cat >>confdefs.h <<_ACEOF
11828 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11829 _ACEOF
11830
11831
11832 # ---------------------------
11833 # Assembler & linker features
11834 # ---------------------------
11835
11836 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11837 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11838 # However when ld-new is first executed from the build tree, libtool will
11839 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11840 # to the build tree. While doing this we need to use the previous-stage
11841 # linker, or we have an infinite loop. The presence of a shell script as
11842 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11843 # the gcc/collect-ld script. So we need to know how libtool works, or
11844 # exec-tool will fail.
11845
11846
11847 case `pwd` in
11848 *\ * | *\ *)
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11850 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11851 esac
11852
11853
11854
11855 macro_version='2.2.7a'
11856 macro_revision='1.3134'
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870 ltmain="$ac_aux_dir/ltmain.sh"
11871
11872 # Backslashify metacharacters that are still active within
11873 # double-quoted strings.
11874 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11875
11876 # Same as above, but do not quote variable references.
11877 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11878
11879 # Sed substitution to delay expansion of an escaped shell variable in a
11880 # double_quote_subst'ed string.
11881 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11882
11883 # Sed substitution to delay expansion of an escaped single quote.
11884 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11885
11886 # Sed substitution to avoid accidental globbing in evaled expressions
11887 no_glob_subst='s/\*/\\\*/g'
11888
11889 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11890 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11891 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11892
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11894 $as_echo_n "checking how to print strings... " >&6; }
11895 # Test print first, because it will be a builtin if present.
11896 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11897 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11898 ECHO='print -r --'
11899 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11900 ECHO='printf %s\n'
11901 else
11902 # Use this function as a fallback that always works.
11903 func_fallback_echo ()
11904 {
11905 eval 'cat <<_LTECHO_EOF
11906 $1
11907 _LTECHO_EOF'
11908 }
11909 ECHO='func_fallback_echo'
11910 fi
11911
11912 # func_echo_all arg...
11913 # Invoke $ECHO with all args, space-separated.
11914 func_echo_all ()
11915 {
11916 $ECHO ""
11917 }
11918
11919 case "$ECHO" in
11920 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11921 $as_echo "printf" >&6; } ;;
11922 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11923 $as_echo "print -r" >&6; } ;;
11924 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11925 $as_echo "cat" >&6; } ;;
11926 esac
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11942 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11943 if test "${ac_cv_path_SED+set}" = set; then :
11944 $as_echo_n "(cached) " >&6
11945 else
11946 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11947 for ac_i in 1 2 3 4 5 6 7; do
11948 ac_script="$ac_script$as_nl$ac_script"
11949 done
11950 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11951 { ac_script=; unset ac_script;}
11952 if test -z "$SED"; then
11953 ac_path_SED_found=false
11954 # Loop through the user's path and test for each of PROGNAME-LIST
11955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11956 for as_dir in $PATH
11957 do
11958 IFS=$as_save_IFS
11959 test -z "$as_dir" && as_dir=.
11960 for ac_prog in sed gsed; do
11961 for ac_exec_ext in '' $ac_executable_extensions; do
11962 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11963 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11964 # Check for GNU ac_path_SED and select it if it is found.
11965 # Check for GNU $ac_path_SED
11966 case `"$ac_path_SED" --version 2>&1` in
11967 *GNU*)
11968 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11969 *)
11970 ac_count=0
11971 $as_echo_n 0123456789 >"conftest.in"
11972 while :
11973 do
11974 cat "conftest.in" "conftest.in" >"conftest.tmp"
11975 mv "conftest.tmp" "conftest.in"
11976 cp "conftest.in" "conftest.nl"
11977 $as_echo '' >> "conftest.nl"
11978 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11979 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11980 as_fn_arith $ac_count + 1 && ac_count=$as_val
11981 if test $ac_count -gt ${ac_path_SED_max-0}; then
11982 # Best one so far, save it but keep looking for a better one
11983 ac_cv_path_SED="$ac_path_SED"
11984 ac_path_SED_max=$ac_count
11985 fi
11986 # 10*(2^10) chars as input seems more than enough
11987 test $ac_count -gt 10 && break
11988 done
11989 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11990 esac
11991
11992 $ac_path_SED_found && break 3
11993 done
11994 done
11995 done
11996 IFS=$as_save_IFS
11997 if test -z "$ac_cv_path_SED"; then
11998 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11999 fi
12000 else
12001 ac_cv_path_SED=$SED
12002 fi
12003
12004 fi
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12006 $as_echo "$ac_cv_path_SED" >&6; }
12007 SED="$ac_cv_path_SED"
12008 rm -f conftest.sed
12009
12010 test -z "$SED" && SED=sed
12011 Xsed="$SED -e 1s/^X//"
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12024 $as_echo_n "checking for fgrep... " >&6; }
12025 if test "${ac_cv_path_FGREP+set}" = set; then :
12026 $as_echo_n "(cached) " >&6
12027 else
12028 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12029 then ac_cv_path_FGREP="$GREP -F"
12030 else
12031 if test -z "$FGREP"; then
12032 ac_path_FGREP_found=false
12033 # Loop through the user's path and test for each of PROGNAME-LIST
12034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12035 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12036 do
12037 IFS=$as_save_IFS
12038 test -z "$as_dir" && as_dir=.
12039 for ac_prog in fgrep; do
12040 for ac_exec_ext in '' $ac_executable_extensions; do
12041 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12042 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12043 # Check for GNU ac_path_FGREP and select it if it is found.
12044 # Check for GNU $ac_path_FGREP
12045 case `"$ac_path_FGREP" --version 2>&1` in
12046 *GNU*)
12047 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12048 *)
12049 ac_count=0
12050 $as_echo_n 0123456789 >"conftest.in"
12051 while :
12052 do
12053 cat "conftest.in" "conftest.in" >"conftest.tmp"
12054 mv "conftest.tmp" "conftest.in"
12055 cp "conftest.in" "conftest.nl"
12056 $as_echo 'FGREP' >> "conftest.nl"
12057 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12058 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12059 as_fn_arith $ac_count + 1 && ac_count=$as_val
12060 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12061 # Best one so far, save it but keep looking for a better one
12062 ac_cv_path_FGREP="$ac_path_FGREP"
12063 ac_path_FGREP_max=$ac_count
12064 fi
12065 # 10*(2^10) chars as input seems more than enough
12066 test $ac_count -gt 10 && break
12067 done
12068 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12069 esac
12070
12071 $ac_path_FGREP_found && break 3
12072 done
12073 done
12074 done
12075 IFS=$as_save_IFS
12076 if test -z "$ac_cv_path_FGREP"; then
12077 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12078 fi
12079 else
12080 ac_cv_path_FGREP=$FGREP
12081 fi
12082
12083 fi
12084 fi
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12086 $as_echo "$ac_cv_path_FGREP" >&6; }
12087 FGREP="$ac_cv_path_FGREP"
12088
12089
12090 test -z "$GREP" && GREP=grep
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110 # Check whether --with-gnu-ld was given.
12111 if test "${with_gnu_ld+set}" = set; then :
12112 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12113 else
12114 with_gnu_ld=no
12115 fi
12116
12117 ac_prog=ld
12118 if test "$GCC" = yes; then
12119 # Check if gcc -print-prog-name=ld gives a path.
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12121 $as_echo_n "checking for ld used by $CC... " >&6; }
12122 case $host in
12123 *-*-mingw*)
12124 # gcc leaves a trailing carriage return which upsets mingw
12125 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12126 *)
12127 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12128 esac
12129 case $ac_prog in
12130 # Accept absolute paths.
12131 [\\/]* | ?:[\\/]*)
12132 re_direlt='/[^/][^/]*/\.\./'
12133 # Canonicalize the pathname of ld
12134 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12135 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12136 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12137 done
12138 test -z "$LD" && LD="$ac_prog"
12139 ;;
12140 "")
12141 # If it fails, then pretend we aren't using GCC.
12142 ac_prog=ld
12143 ;;
12144 *)
12145 # If it is relative, then search for the first ld in PATH.
12146 with_gnu_ld=unknown
12147 ;;
12148 esac
12149 elif test "$with_gnu_ld" = yes; then
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12151 $as_echo_n "checking for GNU ld... " >&6; }
12152 else
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12154 $as_echo_n "checking for non-GNU ld... " >&6; }
12155 fi
12156 if test "${lt_cv_path_LD+set}" = set; then :
12157 $as_echo_n "(cached) " >&6
12158 else
12159 if test -z "$LD"; then
12160 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12161 for ac_dir in $PATH; do
12162 IFS="$lt_save_ifs"
12163 test -z "$ac_dir" && ac_dir=.
12164 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12165 lt_cv_path_LD="$ac_dir/$ac_prog"
12166 # Check to see if the program is GNU ld. I'd rather use --version,
12167 # but apparently some variants of GNU ld only accept -v.
12168 # Break only if it was the GNU/non-GNU ld that we prefer.
12169 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12170 *GNU* | *'with BFD'*)
12171 test "$with_gnu_ld" != no && break
12172 ;;
12173 *)
12174 test "$with_gnu_ld" != yes && break
12175 ;;
12176 esac
12177 fi
12178 done
12179 IFS="$lt_save_ifs"
12180 else
12181 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12182 fi
12183 fi
12184
12185 LD="$lt_cv_path_LD"
12186 if test -n "$LD"; then
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12188 $as_echo "$LD" >&6; }
12189 else
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12191 $as_echo "no" >&6; }
12192 fi
12193 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12195 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12196 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12197 $as_echo_n "(cached) " >&6
12198 else
12199 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12200 case `$LD -v 2>&1 </dev/null` in
12201 *GNU* | *'with BFD'*)
12202 lt_cv_prog_gnu_ld=yes
12203 ;;
12204 *)
12205 lt_cv_prog_gnu_ld=no
12206 ;;
12207 esac
12208 fi
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12210 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12211 with_gnu_ld=$lt_cv_prog_gnu_ld
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12222 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12223 if test "${lt_cv_path_NM+set}" = set; then :
12224 $as_echo_n "(cached) " >&6
12225 else
12226 if test -n "$NM"; then
12227 # Let the user override the test.
12228 lt_cv_path_NM="$NM"
12229 else
12230 lt_nm_to_check="${ac_tool_prefix}nm"
12231 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12232 lt_nm_to_check="$lt_nm_to_check nm"
12233 fi
12234 for lt_tmp_nm in $lt_nm_to_check; do
12235 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12236 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12237 IFS="$lt_save_ifs"
12238 test -z "$ac_dir" && ac_dir=.
12239 tmp_nm="$ac_dir/$lt_tmp_nm"
12240 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12241 # Check to see if the nm accepts a BSD-compat flag.
12242 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12243 # nm: unknown option "B" ignored
12244 # Tru64's nm complains that /dev/null is an invalid object file
12245 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12246 */dev/null* | *'Invalid file or object type'*)
12247 lt_cv_path_NM="$tmp_nm -B"
12248 break
12249 ;;
12250 *)
12251 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12252 */dev/null*)
12253 lt_cv_path_NM="$tmp_nm -p"
12254 break
12255 ;;
12256 *)
12257 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12258 continue # so that we can try to find one that supports BSD flags
12259 ;;
12260 esac
12261 ;;
12262 esac
12263 fi
12264 done
12265 IFS="$lt_save_ifs"
12266 done
12267 : ${lt_cv_path_NM=no}
12268 fi
12269 fi
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12271 $as_echo "$lt_cv_path_NM" >&6; }
12272 if test "$lt_cv_path_NM" != "no"; then
12273 NM="$lt_cv_path_NM"
12274 else
12275 # Didn't find any BSD compatible name lister, look for dumpbin.
12276 if test -n "$DUMPBIN"; then :
12277 # Let the user override the test.
12278 else
12279 if test -n "$ac_tool_prefix"; then
12280 for ac_prog in dumpbin "link -dump"
12281 do
12282 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12283 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12285 $as_echo_n "checking for $ac_word... " >&6; }
12286 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12287 $as_echo_n "(cached) " >&6
12288 else
12289 if test -n "$DUMPBIN"; then
12290 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12291 else
12292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12293 for as_dir in $PATH
12294 do
12295 IFS=$as_save_IFS
12296 test -z "$as_dir" && as_dir=.
12297 for ac_exec_ext in '' $ac_executable_extensions; do
12298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12299 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12301 break 2
12302 fi
12303 done
12304 done
12305 IFS=$as_save_IFS
12306
12307 fi
12308 fi
12309 DUMPBIN=$ac_cv_prog_DUMPBIN
12310 if test -n "$DUMPBIN"; then
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12312 $as_echo "$DUMPBIN" >&6; }
12313 else
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12315 $as_echo "no" >&6; }
12316 fi
12317
12318
12319 test -n "$DUMPBIN" && break
12320 done
12321 fi
12322 if test -z "$DUMPBIN"; then
12323 ac_ct_DUMPBIN=$DUMPBIN
12324 for ac_prog in dumpbin "link -dump"
12325 do
12326 # Extract the first word of "$ac_prog", so it can be a program name with args.
12327 set dummy $ac_prog; ac_word=$2
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12329 $as_echo_n "checking for $ac_word... " >&6; }
12330 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12331 $as_echo_n "(cached) " >&6
12332 else
12333 if test -n "$ac_ct_DUMPBIN"; then
12334 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12335 else
12336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12337 for as_dir in $PATH
12338 do
12339 IFS=$as_save_IFS
12340 test -z "$as_dir" && as_dir=.
12341 for ac_exec_ext in '' $ac_executable_extensions; do
12342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12343 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12345 break 2
12346 fi
12347 done
12348 done
12349 IFS=$as_save_IFS
12350
12351 fi
12352 fi
12353 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12354 if test -n "$ac_ct_DUMPBIN"; then
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12356 $as_echo "$ac_ct_DUMPBIN" >&6; }
12357 else
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12359 $as_echo "no" >&6; }
12360 fi
12361
12362
12363 test -n "$ac_ct_DUMPBIN" && break
12364 done
12365
12366 if test "x$ac_ct_DUMPBIN" = x; then
12367 DUMPBIN=":"
12368 else
12369 case $cross_compiling:$ac_tool_warned in
12370 yes:)
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12373 ac_tool_warned=yes ;;
12374 esac
12375 DUMPBIN=$ac_ct_DUMPBIN
12376 fi
12377 fi
12378
12379 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12380 *COFF*)
12381 DUMPBIN="$DUMPBIN -symbols"
12382 ;;
12383 *)
12384 DUMPBIN=:
12385 ;;
12386 esac
12387 fi
12388
12389 if test "$DUMPBIN" != ":"; then
12390 NM="$DUMPBIN"
12391 fi
12392 fi
12393 test -z "$NM" && NM=nm
12394
12395
12396
12397
12398
12399
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12401 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12402 if test "${lt_cv_nm_interface+set}" = set; then :
12403 $as_echo_n "(cached) " >&6
12404 else
12405 lt_cv_nm_interface="BSD nm"
12406 echo "int some_variable = 0;" > conftest.$ac_ext
12407 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12408 (eval "$ac_compile" 2>conftest.err)
12409 cat conftest.err >&5
12410 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12411 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12412 cat conftest.err >&5
12413 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12414 cat conftest.out >&5
12415 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12416 lt_cv_nm_interface="MS dumpbin"
12417 fi
12418 rm -f conftest*
12419 fi
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12421 $as_echo "$lt_cv_nm_interface" >&6; }
12422
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12424 $as_echo_n "checking whether ln -s works... " >&6; }
12425 LN_S=$as_ln_s
12426 if test "$LN_S" = "ln -s"; then
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12428 $as_echo "yes" >&6; }
12429 else
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12431 $as_echo "no, using $LN_S" >&6; }
12432 fi
12433
12434 # find the maximum length of command line arguments
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12436 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12437 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12438 $as_echo_n "(cached) " >&6
12439 else
12440 i=0
12441 teststring="ABCD"
12442
12443 case $build_os in
12444 msdosdjgpp*)
12445 # On DJGPP, this test can blow up pretty badly due to problems in libc
12446 # (any single argument exceeding 2000 bytes causes a buffer overrun
12447 # during glob expansion). Even if it were fixed, the result of this
12448 # check would be larger than it should be.
12449 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12450 ;;
12451
12452 gnu*)
12453 # Under GNU Hurd, this test is not required because there is
12454 # no limit to the length of command line arguments.
12455 # Libtool will interpret -1 as no limit whatsoever
12456 lt_cv_sys_max_cmd_len=-1;
12457 ;;
12458
12459 cygwin* | mingw* | cegcc*)
12460 # On Win9x/ME, this test blows up -- it succeeds, but takes
12461 # about 5 minutes as the teststring grows exponentially.
12462 # Worse, since 9x/ME are not pre-emptively multitasking,
12463 # you end up with a "frozen" computer, even though with patience
12464 # the test eventually succeeds (with a max line length of 256k).
12465 # Instead, let's just punt: use the minimum linelength reported by
12466 # all of the supported platforms: 8192 (on NT/2K/XP).
12467 lt_cv_sys_max_cmd_len=8192;
12468 ;;
12469
12470 mint*)
12471 # On MiNT this can take a long time and run out of memory.
12472 lt_cv_sys_max_cmd_len=8192;
12473 ;;
12474
12475 amigaos*)
12476 # On AmigaOS with pdksh, this test takes hours, literally.
12477 # So we just punt and use a minimum line length of 8192.
12478 lt_cv_sys_max_cmd_len=8192;
12479 ;;
12480
12481 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12482 # This has been around since 386BSD, at least. Likely further.
12483 if test -x /sbin/sysctl; then
12484 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12485 elif test -x /usr/sbin/sysctl; then
12486 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12487 else
12488 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12489 fi
12490 # And add a safety zone
12491 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12492 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12493 ;;
12494
12495 interix*)
12496 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12497 lt_cv_sys_max_cmd_len=196608
12498 ;;
12499
12500 osf*)
12501 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12502 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12503 # nice to cause kernel panics so lets avoid the loop below.
12504 # First set a reasonable default.
12505 lt_cv_sys_max_cmd_len=16384
12506 #
12507 if test -x /sbin/sysconfig; then
12508 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12509 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12510 esac
12511 fi
12512 ;;
12513 sco3.2v5*)
12514 lt_cv_sys_max_cmd_len=102400
12515 ;;
12516 sysv5* | sco5v6* | sysv4.2uw2*)
12517 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12518 if test -n "$kargmax"; then
12519 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12520 else
12521 lt_cv_sys_max_cmd_len=32768
12522 fi
12523 ;;
12524 *)
12525 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12526 if test -n "$lt_cv_sys_max_cmd_len"; then
12527 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12528 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12529 else
12530 # Make teststring a little bigger before we do anything with it.
12531 # a 1K string should be a reasonable start.
12532 for i in 1 2 3 4 5 6 7 8 ; do
12533 teststring=$teststring$teststring
12534 done
12535 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12536 # If test is not a shell built-in, we'll probably end up computing a
12537 # maximum length that is only half of the actual maximum length, but
12538 # we can't tell.
12539 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12540 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12541 test $i != 17 # 1/2 MB should be enough
12542 do
12543 i=`expr $i + 1`
12544 teststring=$teststring$teststring
12545 done
12546 # Only check the string length outside the loop.
12547 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12548 teststring=
12549 # Add a significant safety factor because C++ compilers can tack on
12550 # massive amounts of additional arguments before passing them to the
12551 # linker. It appears as though 1/2 is a usable value.
12552 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12553 fi
12554 ;;
12555 esac
12556
12557 fi
12558
12559 if test -n $lt_cv_sys_max_cmd_len ; then
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12561 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12562 else
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12564 $as_echo "none" >&6; }
12565 fi
12566 max_cmd_len=$lt_cv_sys_max_cmd_len
12567
12568
12569
12570
12571
12572
12573 : ${CP="cp -f"}
12574 : ${MV="mv -f"}
12575 : ${RM="rm -f"}
12576
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12578 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12579 # Try some XSI features
12580 xsi_shell=no
12581 ( _lt_dummy="a/b/c"
12582 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12583 = c,a/b,, \
12584 && eval 'test $(( 1 + 1 )) -eq 2 \
12585 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12586 && xsi_shell=yes
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12588 $as_echo "$xsi_shell" >&6; }
12589
12590
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12592 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12593 lt_shell_append=no
12594 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12595 >/dev/null 2>&1 \
12596 && lt_shell_append=yes
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12598 $as_echo "$lt_shell_append" >&6; }
12599
12600
12601 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12602 lt_unset=unset
12603 else
12604 lt_unset=false
12605 fi
12606
12607
12608
12609
12610
12611 # test EBCDIC or ASCII
12612 case `echo X|tr X '\101'` in
12613 A) # ASCII based system
12614 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12615 lt_SP2NL='tr \040 \012'
12616 lt_NL2SP='tr \015\012 \040\040'
12617 ;;
12618 *) # EBCDIC based system
12619 lt_SP2NL='tr \100 \n'
12620 lt_NL2SP='tr \r\n \100\100'
12621 ;;
12622 esac
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12633 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12634 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12635 $as_echo_n "(cached) " >&6
12636 else
12637 lt_cv_ld_reload_flag='-r'
12638 fi
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12640 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12641 reload_flag=$lt_cv_ld_reload_flag
12642 case $reload_flag in
12643 "" | " "*) ;;
12644 *) reload_flag=" $reload_flag" ;;
12645 esac
12646 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12647 case $host_os in
12648 darwin*)
12649 if test "$GCC" = yes; then
12650 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12651 else
12652 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12653 fi
12654 ;;
12655 esac
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665 if test -n "$ac_tool_prefix"; then
12666 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12667 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12669 $as_echo_n "checking for $ac_word... " >&6; }
12670 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12671 $as_echo_n "(cached) " >&6
12672 else
12673 if test -n "$OBJDUMP"; then
12674 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12675 else
12676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12677 for as_dir in $PATH
12678 do
12679 IFS=$as_save_IFS
12680 test -z "$as_dir" && as_dir=.
12681 for ac_exec_ext in '' $ac_executable_extensions; do
12682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12683 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12685 break 2
12686 fi
12687 done
12688 done
12689 IFS=$as_save_IFS
12690
12691 fi
12692 fi
12693 OBJDUMP=$ac_cv_prog_OBJDUMP
12694 if test -n "$OBJDUMP"; then
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12696 $as_echo "$OBJDUMP" >&6; }
12697 else
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12699 $as_echo "no" >&6; }
12700 fi
12701
12702
12703 fi
12704 if test -z "$ac_cv_prog_OBJDUMP"; then
12705 ac_ct_OBJDUMP=$OBJDUMP
12706 # Extract the first word of "objdump", so it can be a program name with args.
12707 set dummy objdump; ac_word=$2
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12709 $as_echo_n "checking for $ac_word... " >&6; }
12710 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12711 $as_echo_n "(cached) " >&6
12712 else
12713 if test -n "$ac_ct_OBJDUMP"; then
12714 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12715 else
12716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12717 for as_dir in $PATH
12718 do
12719 IFS=$as_save_IFS
12720 test -z "$as_dir" && as_dir=.
12721 for ac_exec_ext in '' $ac_executable_extensions; do
12722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12723 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12725 break 2
12726 fi
12727 done
12728 done
12729 IFS=$as_save_IFS
12730
12731 fi
12732 fi
12733 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12734 if test -n "$ac_ct_OBJDUMP"; then
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12736 $as_echo "$ac_ct_OBJDUMP" >&6; }
12737 else
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12739 $as_echo "no" >&6; }
12740 fi
12741
12742 if test "x$ac_ct_OBJDUMP" = x; then
12743 OBJDUMP="false"
12744 else
12745 case $cross_compiling:$ac_tool_warned in
12746 yes:)
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12749 ac_tool_warned=yes ;;
12750 esac
12751 OBJDUMP=$ac_ct_OBJDUMP
12752 fi
12753 else
12754 OBJDUMP="$ac_cv_prog_OBJDUMP"
12755 fi
12756
12757 test -z "$OBJDUMP" && OBJDUMP=objdump
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12768 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12769 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12770 $as_echo_n "(cached) " >&6
12771 else
12772 lt_cv_file_magic_cmd='$MAGIC_CMD'
12773 lt_cv_file_magic_test_file=
12774 lt_cv_deplibs_check_method='unknown'
12775 # Need to set the preceding variable on all platforms that support
12776 # interlibrary dependencies.
12777 # 'none' -- dependencies not supported.
12778 # `unknown' -- same as none, but documents that we really don't know.
12779 # 'pass_all' -- all dependencies passed with no checks.
12780 # 'test_compile' -- check by making test program.
12781 # 'file_magic [[regex]]' -- check by looking for files in library path
12782 # which responds to the $file_magic_cmd with a given extended regex.
12783 # If you have `file' or equivalent on your system and you're not sure
12784 # whether `pass_all' will *always* work, you probably want this one.
12785
12786 case $host_os in
12787 aix[4-9]*)
12788 lt_cv_deplibs_check_method=pass_all
12789 ;;
12790
12791 beos*)
12792 lt_cv_deplibs_check_method=pass_all
12793 ;;
12794
12795 bsdi[45]*)
12796 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12797 lt_cv_file_magic_cmd='/usr/bin/file -L'
12798 lt_cv_file_magic_test_file=/shlib/libc.so
12799 ;;
12800
12801 cygwin*)
12802 # func_win32_libid is a shell function defined in ltmain.sh
12803 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12804 lt_cv_file_magic_cmd='func_win32_libid'
12805 ;;
12806
12807 mingw* | pw32*)
12808 # Base MSYS/MinGW do not provide the 'file' command needed by
12809 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12810 # unless we find 'file', for example because we are cross-compiling.
12811 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12812 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12813 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12814 lt_cv_file_magic_cmd='func_win32_libid'
12815 else
12816 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12817 lt_cv_file_magic_cmd='$OBJDUMP -f'
12818 fi
12819 ;;
12820
12821 cegcc*)
12822 # use the weaker test based on 'objdump'. See mingw*.
12823 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12824 lt_cv_file_magic_cmd='$OBJDUMP -f'
12825 ;;
12826
12827 darwin* | rhapsody*)
12828 lt_cv_deplibs_check_method=pass_all
12829 ;;
12830
12831 freebsd* | dragonfly*)
12832 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12833 case $host_cpu in
12834 i*86 )
12835 # Not sure whether the presence of OpenBSD here was a mistake.
12836 # Let's accept both of them until this is cleared up.
12837 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12838 lt_cv_file_magic_cmd=/usr/bin/file
12839 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12840 ;;
12841 esac
12842 else
12843 lt_cv_deplibs_check_method=pass_all
12844 fi
12845 ;;
12846
12847 gnu*)
12848 lt_cv_deplibs_check_method=pass_all
12849 ;;
12850
12851 haiku*)
12852 lt_cv_deplibs_check_method=pass_all
12853 ;;
12854
12855 hpux10.20* | hpux11*)
12856 lt_cv_file_magic_cmd=/usr/bin/file
12857 case $host_cpu in
12858 ia64*)
12859 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12860 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12861 ;;
12862 hppa*64*)
12863 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]'
12864 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12865 ;;
12866 *)
12867 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12868 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12869 ;;
12870 esac
12871 ;;
12872
12873 interix[3-9]*)
12874 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12875 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12876 ;;
12877
12878 irix5* | irix6* | nonstopux*)
12879 case $LD in
12880 *-32|*"-32 ") libmagic=32-bit;;
12881 *-n32|*"-n32 ") libmagic=N32;;
12882 *-64|*"-64 ") libmagic=64-bit;;
12883 *) libmagic=never-match;;
12884 esac
12885 lt_cv_deplibs_check_method=pass_all
12886 ;;
12887
12888 # This must be Linux ELF.
12889 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12890 lt_cv_deplibs_check_method=pass_all
12891 ;;
12892
12893 netbsd*)
12894 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12895 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12896 else
12897 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12898 fi
12899 ;;
12900
12901 newos6*)
12902 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12903 lt_cv_file_magic_cmd=/usr/bin/file
12904 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12905 ;;
12906
12907 *nto* | *qnx*)
12908 lt_cv_deplibs_check_method=pass_all
12909 ;;
12910
12911 openbsd*)
12912 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12913 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12914 else
12915 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12916 fi
12917 ;;
12918
12919 osf3* | osf4* | osf5*)
12920 lt_cv_deplibs_check_method=pass_all
12921 ;;
12922
12923 rdos*)
12924 lt_cv_deplibs_check_method=pass_all
12925 ;;
12926
12927 solaris*)
12928 lt_cv_deplibs_check_method=pass_all
12929 ;;
12930
12931 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12932 lt_cv_deplibs_check_method=pass_all
12933 ;;
12934
12935 sysv4 | sysv4.3*)
12936 case $host_vendor in
12937 motorola)
12938 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]'
12939 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12940 ;;
12941 ncr)
12942 lt_cv_deplibs_check_method=pass_all
12943 ;;
12944 sequent)
12945 lt_cv_file_magic_cmd='/bin/file'
12946 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12947 ;;
12948 sni)
12949 lt_cv_file_magic_cmd='/bin/file'
12950 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12951 lt_cv_file_magic_test_file=/lib/libc.so
12952 ;;
12953 siemens)
12954 lt_cv_deplibs_check_method=pass_all
12955 ;;
12956 pc)
12957 lt_cv_deplibs_check_method=pass_all
12958 ;;
12959 esac
12960 ;;
12961
12962 tpf*)
12963 lt_cv_deplibs_check_method=pass_all
12964 ;;
12965 esac
12966
12967 fi
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12969 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12970 file_magic_cmd=$lt_cv_file_magic_cmd
12971 deplibs_check_method=$lt_cv_deplibs_check_method
12972 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985 if test -n "$ac_tool_prefix"; then
12986 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12987 set dummy ${ac_tool_prefix}ar; ac_word=$2
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12989 $as_echo_n "checking for $ac_word... " >&6; }
12990 if test "${ac_cv_prog_AR+set}" = set; then :
12991 $as_echo_n "(cached) " >&6
12992 else
12993 if test -n "$AR"; then
12994 ac_cv_prog_AR="$AR" # Let the user override the test.
12995 else
12996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12997 for as_dir in $PATH
12998 do
12999 IFS=$as_save_IFS
13000 test -z "$as_dir" && as_dir=.
13001 for ac_exec_ext in '' $ac_executable_extensions; do
13002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13003 ac_cv_prog_AR="${ac_tool_prefix}ar"
13004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13005 break 2
13006 fi
13007 done
13008 done
13009 IFS=$as_save_IFS
13010
13011 fi
13012 fi
13013 AR=$ac_cv_prog_AR
13014 if test -n "$AR"; then
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13016 $as_echo "$AR" >&6; }
13017 else
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13019 $as_echo "no" >&6; }
13020 fi
13021
13022
13023 fi
13024 if test -z "$ac_cv_prog_AR"; then
13025 ac_ct_AR=$AR
13026 # Extract the first word of "ar", so it can be a program name with args.
13027 set dummy ar; ac_word=$2
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13029 $as_echo_n "checking for $ac_word... " >&6; }
13030 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13031 $as_echo_n "(cached) " >&6
13032 else
13033 if test -n "$ac_ct_AR"; then
13034 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13035 else
13036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13037 for as_dir in $PATH
13038 do
13039 IFS=$as_save_IFS
13040 test -z "$as_dir" && as_dir=.
13041 for ac_exec_ext in '' $ac_executable_extensions; do
13042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13043 ac_cv_prog_ac_ct_AR="ar"
13044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13045 break 2
13046 fi
13047 done
13048 done
13049 IFS=$as_save_IFS
13050
13051 fi
13052 fi
13053 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13054 if test -n "$ac_ct_AR"; then
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13056 $as_echo "$ac_ct_AR" >&6; }
13057 else
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13059 $as_echo "no" >&6; }
13060 fi
13061
13062 if test "x$ac_ct_AR" = x; then
13063 AR="false"
13064 else
13065 case $cross_compiling:$ac_tool_warned in
13066 yes:)
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13069 ac_tool_warned=yes ;;
13070 esac
13071 AR=$ac_ct_AR
13072 fi
13073 else
13074 AR="$ac_cv_prog_AR"
13075 fi
13076
13077 test -z "$AR" && AR=ar
13078 test -z "$AR_FLAGS" && AR_FLAGS=cru
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090 if test -n "$ac_tool_prefix"; then
13091 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13092 set dummy ${ac_tool_prefix}strip; ac_word=$2
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13094 $as_echo_n "checking for $ac_word... " >&6; }
13095 if test "${ac_cv_prog_STRIP+set}" = set; then :
13096 $as_echo_n "(cached) " >&6
13097 else
13098 if test -n "$STRIP"; then
13099 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13100 else
13101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13102 for as_dir in $PATH
13103 do
13104 IFS=$as_save_IFS
13105 test -z "$as_dir" && as_dir=.
13106 for ac_exec_ext in '' $ac_executable_extensions; do
13107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13108 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13110 break 2
13111 fi
13112 done
13113 done
13114 IFS=$as_save_IFS
13115
13116 fi
13117 fi
13118 STRIP=$ac_cv_prog_STRIP
13119 if test -n "$STRIP"; then
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13121 $as_echo "$STRIP" >&6; }
13122 else
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13124 $as_echo "no" >&6; }
13125 fi
13126
13127
13128 fi
13129 if test -z "$ac_cv_prog_STRIP"; then
13130 ac_ct_STRIP=$STRIP
13131 # Extract the first word of "strip", so it can be a program name with args.
13132 set dummy strip; ac_word=$2
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13134 $as_echo_n "checking for $ac_word... " >&6; }
13135 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13136 $as_echo_n "(cached) " >&6
13137 else
13138 if test -n "$ac_ct_STRIP"; then
13139 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13140 else
13141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13142 for as_dir in $PATH
13143 do
13144 IFS=$as_save_IFS
13145 test -z "$as_dir" && as_dir=.
13146 for ac_exec_ext in '' $ac_executable_extensions; do
13147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13148 ac_cv_prog_ac_ct_STRIP="strip"
13149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13150 break 2
13151 fi
13152 done
13153 done
13154 IFS=$as_save_IFS
13155
13156 fi
13157 fi
13158 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13159 if test -n "$ac_ct_STRIP"; then
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13161 $as_echo "$ac_ct_STRIP" >&6; }
13162 else
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13164 $as_echo "no" >&6; }
13165 fi
13166
13167 if test "x$ac_ct_STRIP" = x; then
13168 STRIP=":"
13169 else
13170 case $cross_compiling:$ac_tool_warned in
13171 yes:)
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13174 ac_tool_warned=yes ;;
13175 esac
13176 STRIP=$ac_ct_STRIP
13177 fi
13178 else
13179 STRIP="$ac_cv_prog_STRIP"
13180 fi
13181
13182 test -z "$STRIP" && STRIP=:
13183
13184
13185
13186
13187
13188
13189 if test -n "$ac_tool_prefix"; then
13190 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13191 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13193 $as_echo_n "checking for $ac_word... " >&6; }
13194 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13195 $as_echo_n "(cached) " >&6
13196 else
13197 if test -n "$RANLIB"; then
13198 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13199 else
13200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13201 for as_dir in $PATH
13202 do
13203 IFS=$as_save_IFS
13204 test -z "$as_dir" && as_dir=.
13205 for ac_exec_ext in '' $ac_executable_extensions; do
13206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13207 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13209 break 2
13210 fi
13211 done
13212 done
13213 IFS=$as_save_IFS
13214
13215 fi
13216 fi
13217 RANLIB=$ac_cv_prog_RANLIB
13218 if test -n "$RANLIB"; then
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13220 $as_echo "$RANLIB" >&6; }
13221 else
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13223 $as_echo "no" >&6; }
13224 fi
13225
13226
13227 fi
13228 if test -z "$ac_cv_prog_RANLIB"; then
13229 ac_ct_RANLIB=$RANLIB
13230 # Extract the first word of "ranlib", so it can be a program name with args.
13231 set dummy ranlib; ac_word=$2
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13233 $as_echo_n "checking for $ac_word... " >&6; }
13234 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13235 $as_echo_n "(cached) " >&6
13236 else
13237 if test -n "$ac_ct_RANLIB"; then
13238 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13239 else
13240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13241 for as_dir in $PATH
13242 do
13243 IFS=$as_save_IFS
13244 test -z "$as_dir" && as_dir=.
13245 for ac_exec_ext in '' $ac_executable_extensions; do
13246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13247 ac_cv_prog_ac_ct_RANLIB="ranlib"
13248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13249 break 2
13250 fi
13251 done
13252 done
13253 IFS=$as_save_IFS
13254
13255 fi
13256 fi
13257 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13258 if test -n "$ac_ct_RANLIB"; then
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13260 $as_echo "$ac_ct_RANLIB" >&6; }
13261 else
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13263 $as_echo "no" >&6; }
13264 fi
13265
13266 if test "x$ac_ct_RANLIB" = x; then
13267 RANLIB=":"
13268 else
13269 case $cross_compiling:$ac_tool_warned in
13270 yes:)
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13273 ac_tool_warned=yes ;;
13274 esac
13275 RANLIB=$ac_ct_RANLIB
13276 fi
13277 else
13278 RANLIB="$ac_cv_prog_RANLIB"
13279 fi
13280
13281 test -z "$RANLIB" && RANLIB=:
13282
13283
13284
13285
13286
13287
13288 # Determine commands to create old-style static archives.
13289 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13290 old_postinstall_cmds='chmod 644 $oldlib'
13291 old_postuninstall_cmds=
13292
13293 if test -n "$RANLIB"; then
13294 case $host_os in
13295 openbsd*)
13296 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13297 ;;
13298 *)
13299 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13300 ;;
13301 esac
13302 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13303 fi
13304
13305 case $host_os in
13306 darwin*)
13307 lock_old_archive_extraction=yes ;;
13308 *)
13309 lock_old_archive_extraction=no ;;
13310 esac
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
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 # If no C compiler was specified, use CC.
13351 LTCC=${LTCC-"$CC"}
13352
13353 # If no C compiler flags were specified, use CFLAGS.
13354 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13355
13356 # Allow CC to be a program name with arguments.
13357 compiler=$CC
13358
13359
13360 # Check for command to grab the raw symbol name followed by C symbol from nm.
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13362 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13363 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13364 $as_echo_n "(cached) " >&6
13365 else
13366
13367 # These are sane defaults that work on at least a few old systems.
13368 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13369
13370 # Character class describing NM global symbol codes.
13371 symcode='[BCDEGRST]'
13372
13373 # Regexp to match symbols that can be accessed directly from C.
13374 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13375
13376 # Define system-specific variables.
13377 case $host_os in
13378 aix*)
13379 symcode='[BCDT]'
13380 ;;
13381 cygwin* | mingw* | pw32* | cegcc*)
13382 symcode='[ABCDGISTW]'
13383 ;;
13384 hpux*)
13385 if test "$host_cpu" = ia64; then
13386 symcode='[ABCDEGRST]'
13387 fi
13388 ;;
13389 irix* | nonstopux*)
13390 symcode='[BCDEGRST]'
13391 ;;
13392 osf*)
13393 symcode='[BCDEGQRST]'
13394 ;;
13395 solaris*)
13396 symcode='[BDRT]'
13397 ;;
13398 sco3.2v5*)
13399 symcode='[DT]'
13400 ;;
13401 sysv4.2uw2*)
13402 symcode='[DT]'
13403 ;;
13404 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13405 symcode='[ABDT]'
13406 ;;
13407 sysv4)
13408 symcode='[DFNSTU]'
13409 ;;
13410 esac
13411
13412 # If we're using GNU nm, then use its standard symbol codes.
13413 case `$NM -V 2>&1` in
13414 *GNU* | *'with BFD'*)
13415 symcode='[ABCDGIRSTW]' ;;
13416 esac
13417
13418 # Transform an extracted symbol line into a proper C declaration.
13419 # Some systems (esp. on ia64) link data and code symbols differently,
13420 # so use this general approach.
13421 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13422
13423 # Transform an extracted symbol line into symbol name and symbol address
13424 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13425 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'"
13426
13427 # Handle CRLF in mingw tool chain
13428 opt_cr=
13429 case $build_os in
13430 mingw*)
13431 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13432 ;;
13433 esac
13434
13435 # Try without a prefix underscore, then with it.
13436 for ac_symprfx in "" "_"; do
13437
13438 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13439 symxfrm="\\1 $ac_symprfx\\2 \\2"
13440
13441 # Write the raw and C identifiers.
13442 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13443 # Fake it for dumpbin and say T for any non-static function
13444 # and D for any global variable.
13445 # Also find C++ and __fastcall symbols from MSVC++,
13446 # which start with @ or ?.
13447 lt_cv_sys_global_symbol_pipe="$AWK '"\
13448 " {last_section=section; section=\$ 3};"\
13449 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13450 " \$ 0!~/External *\|/{next};"\
13451 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13452 " {if(hide[section]) next};"\
13453 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13454 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13455 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13456 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13457 " ' prfx=^$ac_symprfx"
13458 else
13459 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13460 fi
13461
13462 # Check to see that the pipe works correctly.
13463 pipe_works=no
13464
13465 rm -f conftest*
13466 cat > conftest.$ac_ext <<_LT_EOF
13467 #ifdef __cplusplus
13468 extern "C" {
13469 #endif
13470 char nm_test_var;
13471 void nm_test_func(void);
13472 void nm_test_func(void){}
13473 #ifdef __cplusplus
13474 }
13475 #endif
13476 int main(){nm_test_var='a';nm_test_func();return(0);}
13477 _LT_EOF
13478
13479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13480 (eval $ac_compile) 2>&5
13481 ac_status=$?
13482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13483 test $ac_status = 0; }; then
13484 # Now try to grab the symbols.
13485 nlist=conftest.nm
13486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13487 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13488 ac_status=$?
13489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13490 test $ac_status = 0; } && test -s "$nlist"; then
13491 # Try sorting and uniquifying the output.
13492 if sort "$nlist" | uniq > "$nlist"T; then
13493 mv -f "$nlist"T "$nlist"
13494 else
13495 rm -f "$nlist"T
13496 fi
13497
13498 # Make sure that we snagged all the symbols we need.
13499 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13500 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13501 cat <<_LT_EOF > conftest.$ac_ext
13502 #ifdef __cplusplus
13503 extern "C" {
13504 #endif
13505
13506 _LT_EOF
13507 # Now generate the symbol file.
13508 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13509
13510 cat <<_LT_EOF >> conftest.$ac_ext
13511
13512 /* The mapping between symbol names and symbols. */
13513 const struct {
13514 const char *name;
13515 void *address;
13516 }
13517 lt__PROGRAM__LTX_preloaded_symbols[] =
13518 {
13519 { "@PROGRAM@", (void *) 0 },
13520 _LT_EOF
13521 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13522 cat <<\_LT_EOF >> conftest.$ac_ext
13523 {0, (void *) 0}
13524 };
13525
13526 /* This works around a problem in FreeBSD linker */
13527 #ifdef FREEBSD_WORKAROUND
13528 static const void *lt_preloaded_setup() {
13529 return lt__PROGRAM__LTX_preloaded_symbols;
13530 }
13531 #endif
13532
13533 #ifdef __cplusplus
13534 }
13535 #endif
13536 _LT_EOF
13537 # Now try linking the two files.
13538 mv conftest.$ac_objext conftstm.$ac_objext
13539 lt_save_LIBS="$LIBS"
13540 lt_save_CFLAGS="$CFLAGS"
13541 LIBS="conftstm.$ac_objext"
13542 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13544 (eval $ac_link) 2>&5
13545 ac_status=$?
13546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13547 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13548 pipe_works=yes
13549 fi
13550 LIBS="$lt_save_LIBS"
13551 CFLAGS="$lt_save_CFLAGS"
13552 else
13553 echo "cannot find nm_test_func in $nlist" >&5
13554 fi
13555 else
13556 echo "cannot find nm_test_var in $nlist" >&5
13557 fi
13558 else
13559 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13560 fi
13561 else
13562 echo "$progname: failed program was:" >&5
13563 cat conftest.$ac_ext >&5
13564 fi
13565 rm -rf conftest* conftst*
13566
13567 # Do not use the global_symbol_pipe unless it works.
13568 if test "$pipe_works" = yes; then
13569 break
13570 else
13571 lt_cv_sys_global_symbol_pipe=
13572 fi
13573 done
13574
13575 fi
13576
13577 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13578 lt_cv_sys_global_symbol_to_cdecl=
13579 fi
13580 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13582 $as_echo "failed" >&6; }
13583 else
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13585 $as_echo "ok" >&6; }
13586 fi
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609 # Check whether --enable-libtool-lock was given.
13610 if test "${enable_libtool_lock+set}" = set; then :
13611 enableval=$enable_libtool_lock;
13612 fi
13613
13614 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13615
13616 # Some flags need to be propagated to the compiler or linker for good
13617 # libtool support.
13618 case $host in
13619 ia64-*-hpux*)
13620 # Find out which ABI we are using.
13621 echo 'int i;' > conftest.$ac_ext
13622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13623 (eval $ac_compile) 2>&5
13624 ac_status=$?
13625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13626 test $ac_status = 0; }; then
13627 case `/usr/bin/file conftest.$ac_objext` in
13628 *ELF-32*)
13629 HPUX_IA64_MODE="32"
13630 ;;
13631 *ELF-64*)
13632 HPUX_IA64_MODE="64"
13633 ;;
13634 esac
13635 fi
13636 rm -rf conftest*
13637 ;;
13638 *-*-irix6*)
13639 # Find out which ABI we are using.
13640 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13642 (eval $ac_compile) 2>&5
13643 ac_status=$?
13644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13645 test $ac_status = 0; }; then
13646 if test "$lt_cv_prog_gnu_ld" = yes; then
13647 case `/usr/bin/file conftest.$ac_objext` in
13648 *32-bit*)
13649 LD="${LD-ld} -melf32bsmip"
13650 ;;
13651 *N32*)
13652 LD="${LD-ld} -melf32bmipn32"
13653 ;;
13654 *64-bit*)
13655 LD="${LD-ld} -melf64bmip"
13656 ;;
13657 esac
13658 else
13659 case `/usr/bin/file conftest.$ac_objext` in
13660 *32-bit*)
13661 LD="${LD-ld} -32"
13662 ;;
13663 *N32*)
13664 LD="${LD-ld} -n32"
13665 ;;
13666 *64-bit*)
13667 LD="${LD-ld} -64"
13668 ;;
13669 esac
13670 fi
13671 fi
13672 rm -rf conftest*
13673 ;;
13674
13675 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13676 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13677 # Find out which ABI we are using.
13678 echo 'int i;' > conftest.$ac_ext
13679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13680 (eval $ac_compile) 2>&5
13681 ac_status=$?
13682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13683 test $ac_status = 0; }; then
13684 case `/usr/bin/file conftest.o` in
13685 *32-bit*)
13686 case $host in
13687 x86_64-*kfreebsd*-gnu)
13688 LD="${LD-ld} -m elf_i386_fbsd"
13689 ;;
13690 x86_64-*linux*)
13691 case `/usr/bin/file conftest.o` in
13692 *x86-64*)
13693 LD="${LD-ld} -m elf32_x86_64"
13694 ;;
13695 *)
13696 LD="${LD-ld} -m elf_i386"
13697 ;;
13698 esac
13699 ;;
13700 powerpc64le-*linux*)
13701 LD="${LD-ld} -m elf32lppclinux"
13702 ;;
13703 powerpc64-*linux*)
13704 LD="${LD-ld} -m elf32ppclinux"
13705 ;;
13706 s390x-*linux*)
13707 LD="${LD-ld} -m elf_s390"
13708 ;;
13709 sparc64-*linux*)
13710 LD="${LD-ld} -m elf32_sparc"
13711 ;;
13712 esac
13713 ;;
13714 *64-bit*)
13715 case $host in
13716 x86_64-*kfreebsd*-gnu)
13717 LD="${LD-ld} -m elf_x86_64_fbsd"
13718 ;;
13719 x86_64-*linux*)
13720 LD="${LD-ld} -m elf_x86_64"
13721 ;;
13722 powerpcle-*linux*)
13723 LD="${LD-ld} -m elf64lppc"
13724 ;;
13725 powerpc-*linux*)
13726 LD="${LD-ld} -m elf64ppc"
13727 ;;
13728 s390*-*linux*|s390*-*tpf*)
13729 LD="${LD-ld} -m elf64_s390"
13730 ;;
13731 sparc*-*linux*)
13732 LD="${LD-ld} -m elf64_sparc"
13733 ;;
13734 esac
13735 ;;
13736 esac
13737 fi
13738 rm -rf conftest*
13739 ;;
13740
13741 *-*-sco3.2v5*)
13742 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13743 SAVE_CFLAGS="$CFLAGS"
13744 CFLAGS="$CFLAGS -belf"
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13746 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13747 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13748 $as_echo_n "(cached) " >&6
13749 else
13750 ac_ext=c
13751 ac_cpp='$CPP $CPPFLAGS'
13752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13755
13756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13757 /* end confdefs.h. */
13758
13759 int
13760 main ()
13761 {
13762
13763 ;
13764 return 0;
13765 }
13766 _ACEOF
13767 if ac_fn_c_try_link "$LINENO"; then :
13768 lt_cv_cc_needs_belf=yes
13769 else
13770 lt_cv_cc_needs_belf=no
13771 fi
13772 rm -f core conftest.err conftest.$ac_objext \
13773 conftest$ac_exeext conftest.$ac_ext
13774 ac_ext=c
13775 ac_cpp='$CPP $CPPFLAGS'
13776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13779
13780 fi
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13782 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13783 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13784 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13785 CFLAGS="$SAVE_CFLAGS"
13786 fi
13787 ;;
13788 sparc*-*solaris*)
13789 # Find out which ABI we are using.
13790 echo 'int i;' > conftest.$ac_ext
13791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13792 (eval $ac_compile) 2>&5
13793 ac_status=$?
13794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13795 test $ac_status = 0; }; then
13796 case `/usr/bin/file conftest.o` in
13797 *64-bit*)
13798 case $lt_cv_prog_gnu_ld in
13799 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13800 *)
13801 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13802 LD="${LD-ld} -64"
13803 fi
13804 ;;
13805 esac
13806 ;;
13807 esac
13808 fi
13809 rm -rf conftest*
13810 ;;
13811 esac
13812
13813 need_locks="$enable_libtool_lock"
13814
13815
13816 case $host_os in
13817 rhapsody* | darwin*)
13818 if test -n "$ac_tool_prefix"; then
13819 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13820 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13822 $as_echo_n "checking for $ac_word... " >&6; }
13823 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13824 $as_echo_n "(cached) " >&6
13825 else
13826 if test -n "$DSYMUTIL"; then
13827 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13828 else
13829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13830 for as_dir in $PATH
13831 do
13832 IFS=$as_save_IFS
13833 test -z "$as_dir" && as_dir=.
13834 for ac_exec_ext in '' $ac_executable_extensions; do
13835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13836 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13838 break 2
13839 fi
13840 done
13841 done
13842 IFS=$as_save_IFS
13843
13844 fi
13845 fi
13846 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13847 if test -n "$DSYMUTIL"; then
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13849 $as_echo "$DSYMUTIL" >&6; }
13850 else
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13852 $as_echo "no" >&6; }
13853 fi
13854
13855
13856 fi
13857 if test -z "$ac_cv_prog_DSYMUTIL"; then
13858 ac_ct_DSYMUTIL=$DSYMUTIL
13859 # Extract the first word of "dsymutil", so it can be a program name with args.
13860 set dummy dsymutil; ac_word=$2
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13862 $as_echo_n "checking for $ac_word... " >&6; }
13863 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13864 $as_echo_n "(cached) " >&6
13865 else
13866 if test -n "$ac_ct_DSYMUTIL"; then
13867 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13868 else
13869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13870 for as_dir in $PATH
13871 do
13872 IFS=$as_save_IFS
13873 test -z "$as_dir" && as_dir=.
13874 for ac_exec_ext in '' $ac_executable_extensions; do
13875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13876 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13878 break 2
13879 fi
13880 done
13881 done
13882 IFS=$as_save_IFS
13883
13884 fi
13885 fi
13886 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13887 if test -n "$ac_ct_DSYMUTIL"; then
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13889 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13890 else
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13892 $as_echo "no" >&6; }
13893 fi
13894
13895 if test "x$ac_ct_DSYMUTIL" = x; then
13896 DSYMUTIL=":"
13897 else
13898 case $cross_compiling:$ac_tool_warned in
13899 yes:)
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13902 ac_tool_warned=yes ;;
13903 esac
13904 DSYMUTIL=$ac_ct_DSYMUTIL
13905 fi
13906 else
13907 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13908 fi
13909
13910 if test -n "$ac_tool_prefix"; then
13911 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13912 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13914 $as_echo_n "checking for $ac_word... " >&6; }
13915 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13916 $as_echo_n "(cached) " >&6
13917 else
13918 if test -n "$NMEDIT"; then
13919 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13920 else
13921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13922 for as_dir in $PATH
13923 do
13924 IFS=$as_save_IFS
13925 test -z "$as_dir" && as_dir=.
13926 for ac_exec_ext in '' $ac_executable_extensions; do
13927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13928 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13930 break 2
13931 fi
13932 done
13933 done
13934 IFS=$as_save_IFS
13935
13936 fi
13937 fi
13938 NMEDIT=$ac_cv_prog_NMEDIT
13939 if test -n "$NMEDIT"; then
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13941 $as_echo "$NMEDIT" >&6; }
13942 else
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13944 $as_echo "no" >&6; }
13945 fi
13946
13947
13948 fi
13949 if test -z "$ac_cv_prog_NMEDIT"; then
13950 ac_ct_NMEDIT=$NMEDIT
13951 # Extract the first word of "nmedit", so it can be a program name with args.
13952 set dummy nmedit; ac_word=$2
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13954 $as_echo_n "checking for $ac_word... " >&6; }
13955 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13956 $as_echo_n "(cached) " >&6
13957 else
13958 if test -n "$ac_ct_NMEDIT"; then
13959 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13960 else
13961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13962 for as_dir in $PATH
13963 do
13964 IFS=$as_save_IFS
13965 test -z "$as_dir" && as_dir=.
13966 for ac_exec_ext in '' $ac_executable_extensions; do
13967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13968 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13970 break 2
13971 fi
13972 done
13973 done
13974 IFS=$as_save_IFS
13975
13976 fi
13977 fi
13978 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13979 if test -n "$ac_ct_NMEDIT"; then
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13981 $as_echo "$ac_ct_NMEDIT" >&6; }
13982 else
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13984 $as_echo "no" >&6; }
13985 fi
13986
13987 if test "x$ac_ct_NMEDIT" = x; then
13988 NMEDIT=":"
13989 else
13990 case $cross_compiling:$ac_tool_warned in
13991 yes:)
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13994 ac_tool_warned=yes ;;
13995 esac
13996 NMEDIT=$ac_ct_NMEDIT
13997 fi
13998 else
13999 NMEDIT="$ac_cv_prog_NMEDIT"
14000 fi
14001
14002 if test -n "$ac_tool_prefix"; then
14003 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14004 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14006 $as_echo_n "checking for $ac_word... " >&6; }
14007 if test "${ac_cv_prog_LIPO+set}" = set; then :
14008 $as_echo_n "(cached) " >&6
14009 else
14010 if test -n "$LIPO"; then
14011 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14012 else
14013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14014 for as_dir in $PATH
14015 do
14016 IFS=$as_save_IFS
14017 test -z "$as_dir" && as_dir=.
14018 for ac_exec_ext in '' $ac_executable_extensions; do
14019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14020 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14022 break 2
14023 fi
14024 done
14025 done
14026 IFS=$as_save_IFS
14027
14028 fi
14029 fi
14030 LIPO=$ac_cv_prog_LIPO
14031 if test -n "$LIPO"; then
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14033 $as_echo "$LIPO" >&6; }
14034 else
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14036 $as_echo "no" >&6; }
14037 fi
14038
14039
14040 fi
14041 if test -z "$ac_cv_prog_LIPO"; then
14042 ac_ct_LIPO=$LIPO
14043 # Extract the first word of "lipo", so it can be a program name with args.
14044 set dummy lipo; ac_word=$2
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14046 $as_echo_n "checking for $ac_word... " >&6; }
14047 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14048 $as_echo_n "(cached) " >&6
14049 else
14050 if test -n "$ac_ct_LIPO"; then
14051 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14052 else
14053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14054 for as_dir in $PATH
14055 do
14056 IFS=$as_save_IFS
14057 test -z "$as_dir" && as_dir=.
14058 for ac_exec_ext in '' $ac_executable_extensions; do
14059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14060 ac_cv_prog_ac_ct_LIPO="lipo"
14061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14062 break 2
14063 fi
14064 done
14065 done
14066 IFS=$as_save_IFS
14067
14068 fi
14069 fi
14070 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14071 if test -n "$ac_ct_LIPO"; then
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14073 $as_echo "$ac_ct_LIPO" >&6; }
14074 else
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14076 $as_echo "no" >&6; }
14077 fi
14078
14079 if test "x$ac_ct_LIPO" = x; then
14080 LIPO=":"
14081 else
14082 case $cross_compiling:$ac_tool_warned in
14083 yes:)
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14086 ac_tool_warned=yes ;;
14087 esac
14088 LIPO=$ac_ct_LIPO
14089 fi
14090 else
14091 LIPO="$ac_cv_prog_LIPO"
14092 fi
14093
14094 if test -n "$ac_tool_prefix"; then
14095 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14096 set dummy ${ac_tool_prefix}otool; ac_word=$2
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14098 $as_echo_n "checking for $ac_word... " >&6; }
14099 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14100 $as_echo_n "(cached) " >&6
14101 else
14102 if test -n "$OTOOL"; then
14103 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14104 else
14105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14106 for as_dir in $PATH
14107 do
14108 IFS=$as_save_IFS
14109 test -z "$as_dir" && as_dir=.
14110 for ac_exec_ext in '' $ac_executable_extensions; do
14111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14112 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14114 break 2
14115 fi
14116 done
14117 done
14118 IFS=$as_save_IFS
14119
14120 fi
14121 fi
14122 OTOOL=$ac_cv_prog_OTOOL
14123 if test -n "$OTOOL"; then
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14125 $as_echo "$OTOOL" >&6; }
14126 else
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14128 $as_echo "no" >&6; }
14129 fi
14130
14131
14132 fi
14133 if test -z "$ac_cv_prog_OTOOL"; then
14134 ac_ct_OTOOL=$OTOOL
14135 # Extract the first word of "otool", so it can be a program name with args.
14136 set dummy otool; ac_word=$2
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14138 $as_echo_n "checking for $ac_word... " >&6; }
14139 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14140 $as_echo_n "(cached) " >&6
14141 else
14142 if test -n "$ac_ct_OTOOL"; then
14143 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14144 else
14145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14146 for as_dir in $PATH
14147 do
14148 IFS=$as_save_IFS
14149 test -z "$as_dir" && as_dir=.
14150 for ac_exec_ext in '' $ac_executable_extensions; do
14151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14152 ac_cv_prog_ac_ct_OTOOL="otool"
14153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14154 break 2
14155 fi
14156 done
14157 done
14158 IFS=$as_save_IFS
14159
14160 fi
14161 fi
14162 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14163 if test -n "$ac_ct_OTOOL"; then
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14165 $as_echo "$ac_ct_OTOOL" >&6; }
14166 else
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14168 $as_echo "no" >&6; }
14169 fi
14170
14171 if test "x$ac_ct_OTOOL" = x; then
14172 OTOOL=":"
14173 else
14174 case $cross_compiling:$ac_tool_warned in
14175 yes:)
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14178 ac_tool_warned=yes ;;
14179 esac
14180 OTOOL=$ac_ct_OTOOL
14181 fi
14182 else
14183 OTOOL="$ac_cv_prog_OTOOL"
14184 fi
14185
14186 if test -n "$ac_tool_prefix"; then
14187 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14188 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14190 $as_echo_n "checking for $ac_word... " >&6; }
14191 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14192 $as_echo_n "(cached) " >&6
14193 else
14194 if test -n "$OTOOL64"; then
14195 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14196 else
14197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14198 for as_dir in $PATH
14199 do
14200 IFS=$as_save_IFS
14201 test -z "$as_dir" && as_dir=.
14202 for ac_exec_ext in '' $ac_executable_extensions; do
14203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14204 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14206 break 2
14207 fi
14208 done
14209 done
14210 IFS=$as_save_IFS
14211
14212 fi
14213 fi
14214 OTOOL64=$ac_cv_prog_OTOOL64
14215 if test -n "$OTOOL64"; then
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14217 $as_echo "$OTOOL64" >&6; }
14218 else
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14220 $as_echo "no" >&6; }
14221 fi
14222
14223
14224 fi
14225 if test -z "$ac_cv_prog_OTOOL64"; then
14226 ac_ct_OTOOL64=$OTOOL64
14227 # Extract the first word of "otool64", so it can be a program name with args.
14228 set dummy otool64; ac_word=$2
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14230 $as_echo_n "checking for $ac_word... " >&6; }
14231 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14232 $as_echo_n "(cached) " >&6
14233 else
14234 if test -n "$ac_ct_OTOOL64"; then
14235 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14236 else
14237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14238 for as_dir in $PATH
14239 do
14240 IFS=$as_save_IFS
14241 test -z "$as_dir" && as_dir=.
14242 for ac_exec_ext in '' $ac_executable_extensions; do
14243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14244 ac_cv_prog_ac_ct_OTOOL64="otool64"
14245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14246 break 2
14247 fi
14248 done
14249 done
14250 IFS=$as_save_IFS
14251
14252 fi
14253 fi
14254 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14255 if test -n "$ac_ct_OTOOL64"; then
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14257 $as_echo "$ac_ct_OTOOL64" >&6; }
14258 else
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14260 $as_echo "no" >&6; }
14261 fi
14262
14263 if test "x$ac_ct_OTOOL64" = x; then
14264 OTOOL64=":"
14265 else
14266 case $cross_compiling:$ac_tool_warned in
14267 yes:)
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14270 ac_tool_warned=yes ;;
14271 esac
14272 OTOOL64=$ac_ct_OTOOL64
14273 fi
14274 else
14275 OTOOL64="$ac_cv_prog_OTOOL64"
14276 fi
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
14303
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14305 $as_echo_n "checking for -single_module linker flag... " >&6; }
14306 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14307 $as_echo_n "(cached) " >&6
14308 else
14309 lt_cv_apple_cc_single_mod=no
14310 if test -z "${LT_MULTI_MODULE}"; then
14311 # By default we will add the -single_module flag. You can override
14312 # by either setting the environment variable LT_MULTI_MODULE
14313 # non-empty at configure time, or by adding -multi_module to the
14314 # link flags.
14315 rm -rf libconftest.dylib*
14316 echo "int foo(void){return 1;}" > conftest.c
14317 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14318 -dynamiclib -Wl,-single_module conftest.c" >&5
14319 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14320 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14321 _lt_result=$?
14322 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14323 lt_cv_apple_cc_single_mod=yes
14324 else
14325 cat conftest.err >&5
14326 fi
14327 rm -rf libconftest.dylib*
14328 rm -f conftest.*
14329 fi
14330 fi
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14332 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14334 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14335 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14336 $as_echo_n "(cached) " >&6
14337 else
14338 lt_cv_ld_exported_symbols_list=no
14339 save_LDFLAGS=$LDFLAGS
14340 echo "_main" > conftest.sym
14341 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h. */
14344
14345 int
14346 main ()
14347 {
14348
14349 ;
14350 return 0;
14351 }
14352 _ACEOF
14353 if ac_fn_c_try_link "$LINENO"; then :
14354 lt_cv_ld_exported_symbols_list=yes
14355 else
14356 lt_cv_ld_exported_symbols_list=no
14357 fi
14358 rm -f core conftest.err conftest.$ac_objext \
14359 conftest$ac_exeext conftest.$ac_ext
14360 LDFLAGS="$save_LDFLAGS"
14361
14362 fi
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14364 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14366 $as_echo_n "checking for -force_load linker flag... " >&6; }
14367 if test "${lt_cv_ld_force_load+set}" = set; then :
14368 $as_echo_n "(cached) " >&6
14369 else
14370 lt_cv_ld_force_load=no
14371 cat > conftest.c << _LT_EOF
14372 int forced_loaded() { return 2;}
14373 _LT_EOF
14374 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14375 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14376 echo "$AR cru libconftest.a conftest.o" >&5
14377 $AR cru libconftest.a conftest.o 2>&5
14378 cat > conftest.c << _LT_EOF
14379 int main() { return 0;}
14380 _LT_EOF
14381 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14382 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14383 _lt_result=$?
14384 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14385 lt_cv_ld_force_load=yes
14386 else
14387 cat conftest.err >&5
14388 fi
14389 rm -f conftest.err libconftest.a conftest conftest.c
14390 rm -rf conftest.dSYM
14391
14392 fi
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14394 $as_echo "$lt_cv_ld_force_load" >&6; }
14395 case $host_os in
14396 rhapsody* | darwin1.[012])
14397 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14398 darwin1.*)
14399 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14400 darwin*) # darwin 5.x on
14401 # if running on 10.5 or later, the deployment target defaults
14402 # to the OS version, if on x86, and 10.4, the deployment
14403 # target defaults to 10.4. Don't you love it?
14404 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14405 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14406 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14407 10.[012]*)
14408 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14409 10.*)
14410 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14411 esac
14412 ;;
14413 esac
14414 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14415 _lt_dar_single_mod='$single_module'
14416 fi
14417 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14418 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14419 else
14420 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14421 fi
14422 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14423 _lt_dsymutil='~$DSYMUTIL $lib || :'
14424 else
14425 _lt_dsymutil=
14426 fi
14427 ;;
14428 esac
14429
14430 for ac_header in dlfcn.h
14431 do :
14432 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14433 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14434 cat >>confdefs.h <<_ACEOF
14435 #define HAVE_DLFCN_H 1
14436 _ACEOF
14437
14438 fi
14439 done
14440
14441
14442
14443
14444
14445 # Set options
14446
14447
14448
14449 enable_dlopen=no
14450
14451
14452 enable_win32_dll=no
14453
14454
14455 # Check whether --enable-shared was given.
14456 if test "${enable_shared+set}" = set; then :
14457 enableval=$enable_shared; p=${PACKAGE-default}
14458 case $enableval in
14459 yes) enable_shared=yes ;;
14460 no) enable_shared=no ;;
14461 *)
14462 enable_shared=no
14463 # Look at the argument we got. We use all the common list separators.
14464 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14465 for pkg in $enableval; do
14466 IFS="$lt_save_ifs"
14467 if test "X$pkg" = "X$p"; then
14468 enable_shared=yes
14469 fi
14470 done
14471 IFS="$lt_save_ifs"
14472 ;;
14473 esac
14474 else
14475 enable_shared=yes
14476 fi
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486 # Check whether --enable-static was given.
14487 if test "${enable_static+set}" = set; then :
14488 enableval=$enable_static; p=${PACKAGE-default}
14489 case $enableval in
14490 yes) enable_static=yes ;;
14491 no) enable_static=no ;;
14492 *)
14493 enable_static=no
14494 # Look at the argument we got. We use all the common list separators.
14495 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14496 for pkg in $enableval; do
14497 IFS="$lt_save_ifs"
14498 if test "X$pkg" = "X$p"; then
14499 enable_static=yes
14500 fi
14501 done
14502 IFS="$lt_save_ifs"
14503 ;;
14504 esac
14505 else
14506 enable_static=yes
14507 fi
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518 # Check whether --with-pic was given.
14519 if test "${with_pic+set}" = set; then :
14520 withval=$with_pic; pic_mode="$withval"
14521 else
14522 pic_mode=default
14523 fi
14524
14525
14526 test -z "$pic_mode" && pic_mode=default
14527
14528
14529
14530
14531
14532
14533
14534 # Check whether --enable-fast-install was given.
14535 if test "${enable_fast_install+set}" = set; then :
14536 enableval=$enable_fast_install; p=${PACKAGE-default}
14537 case $enableval in
14538 yes) enable_fast_install=yes ;;
14539 no) enable_fast_install=no ;;
14540 *)
14541 enable_fast_install=no
14542 # Look at the argument we got. We use all the common list separators.
14543 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14544 for pkg in $enableval; do
14545 IFS="$lt_save_ifs"
14546 if test "X$pkg" = "X$p"; then
14547 enable_fast_install=yes
14548 fi
14549 done
14550 IFS="$lt_save_ifs"
14551 ;;
14552 esac
14553 else
14554 enable_fast_install=yes
14555 fi
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567 # This can be used to rebuild libtool when needed
14568 LIBTOOL_DEPS="$ltmain"
14569
14570 # Always use our own libtool.
14571 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
14597
14598 test -z "$LN_S" && LN_S="ln -s"
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613 if test -n "${ZSH_VERSION+set}" ; then
14614 setopt NO_GLOB_SUBST
14615 fi
14616
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14618 $as_echo_n "checking for objdir... " >&6; }
14619 if test "${lt_cv_objdir+set}" = set; then :
14620 $as_echo_n "(cached) " >&6
14621 else
14622 rm -f .libs 2>/dev/null
14623 mkdir .libs 2>/dev/null
14624 if test -d .libs; then
14625 lt_cv_objdir=.libs
14626 else
14627 # MS-DOS does not allow filenames that begin with a dot.
14628 lt_cv_objdir=_libs
14629 fi
14630 rmdir .libs 2>/dev/null
14631 fi
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14633 $as_echo "$lt_cv_objdir" >&6; }
14634 objdir=$lt_cv_objdir
14635
14636
14637
14638
14639
14640 cat >>confdefs.h <<_ACEOF
14641 #define LT_OBJDIR "$lt_cv_objdir/"
14642 _ACEOF
14643
14644
14645
14646
14647 case $host_os in
14648 aix3*)
14649 # AIX sometimes has problems with the GCC collect2 program. For some
14650 # reason, if we set the COLLECT_NAMES environment variable, the problems
14651 # vanish in a puff of smoke.
14652 if test "X${COLLECT_NAMES+set}" != Xset; then
14653 COLLECT_NAMES=
14654 export COLLECT_NAMES
14655 fi
14656 ;;
14657 esac
14658
14659 # Global variables:
14660 ofile=libtool
14661 can_build_shared=yes
14662
14663 # All known linkers require a `.a' archive for static linking (except MSVC,
14664 # which needs '.lib').
14665 libext=a
14666
14667 with_gnu_ld="$lt_cv_prog_gnu_ld"
14668
14669 old_CC="$CC"
14670 old_CFLAGS="$CFLAGS"
14671
14672 # Set sane defaults for various variables
14673 test -z "$CC" && CC=cc
14674 test -z "$LTCC" && LTCC=$CC
14675 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14676 test -z "$LD" && LD=ld
14677 test -z "$ac_objext" && ac_objext=o
14678
14679 for cc_temp in $compiler""; do
14680 case $cc_temp in
14681 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14682 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14683 \-*) ;;
14684 *) break;;
14685 esac
14686 done
14687 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14688
14689
14690 # Only perform the check for file, if the check method requires it
14691 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14692 case $deplibs_check_method in
14693 file_magic*)
14694 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14696 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14697 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14698 $as_echo_n "(cached) " >&6
14699 else
14700 case $MAGIC_CMD in
14701 [\\/*] | ?:[\\/]*)
14702 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14703 ;;
14704 *)
14705 lt_save_MAGIC_CMD="$MAGIC_CMD"
14706 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14707 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14708 for ac_dir in $ac_dummy; do
14709 IFS="$lt_save_ifs"
14710 test -z "$ac_dir" && ac_dir=.
14711 if test -f $ac_dir/${ac_tool_prefix}file; then
14712 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14713 if test -n "$file_magic_test_file"; then
14714 case $deplibs_check_method in
14715 "file_magic "*)
14716 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14717 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14718 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14719 $EGREP "$file_magic_regex" > /dev/null; then
14720 :
14721 else
14722 cat <<_LT_EOF 1>&2
14723
14724 *** Warning: the command libtool uses to detect shared libraries,
14725 *** $file_magic_cmd, produces output that libtool cannot recognize.
14726 *** The result is that libtool may fail to recognize shared libraries
14727 *** as such. This will affect the creation of libtool libraries that
14728 *** depend on shared libraries, but programs linked with such libtool
14729 *** libraries will work regardless of this problem. Nevertheless, you
14730 *** may want to report the problem to your system manager and/or to
14731 *** bug-libtool@gnu.org
14732
14733 _LT_EOF
14734 fi ;;
14735 esac
14736 fi
14737 break
14738 fi
14739 done
14740 IFS="$lt_save_ifs"
14741 MAGIC_CMD="$lt_save_MAGIC_CMD"
14742 ;;
14743 esac
14744 fi
14745
14746 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14747 if test -n "$MAGIC_CMD"; then
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14749 $as_echo "$MAGIC_CMD" >&6; }
14750 else
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14752 $as_echo "no" >&6; }
14753 fi
14754
14755
14756
14757
14758
14759 if test -z "$lt_cv_path_MAGIC_CMD"; then
14760 if test -n "$ac_tool_prefix"; then
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14762 $as_echo_n "checking for file... " >&6; }
14763 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14764 $as_echo_n "(cached) " >&6
14765 else
14766 case $MAGIC_CMD in
14767 [\\/*] | ?:[\\/]*)
14768 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14769 ;;
14770 *)
14771 lt_save_MAGIC_CMD="$MAGIC_CMD"
14772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14773 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14774 for ac_dir in $ac_dummy; do
14775 IFS="$lt_save_ifs"
14776 test -z "$ac_dir" && ac_dir=.
14777 if test -f $ac_dir/file; then
14778 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14779 if test -n "$file_magic_test_file"; then
14780 case $deplibs_check_method in
14781 "file_magic "*)
14782 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14783 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14784 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14785 $EGREP "$file_magic_regex" > /dev/null; then
14786 :
14787 else
14788 cat <<_LT_EOF 1>&2
14789
14790 *** Warning: the command libtool uses to detect shared libraries,
14791 *** $file_magic_cmd, produces output that libtool cannot recognize.
14792 *** The result is that libtool may fail to recognize shared libraries
14793 *** as such. This will affect the creation of libtool libraries that
14794 *** depend on shared libraries, but programs linked with such libtool
14795 *** libraries will work regardless of this problem. Nevertheless, you
14796 *** may want to report the problem to your system manager and/or to
14797 *** bug-libtool@gnu.org
14798
14799 _LT_EOF
14800 fi ;;
14801 esac
14802 fi
14803 break
14804 fi
14805 done
14806 IFS="$lt_save_ifs"
14807 MAGIC_CMD="$lt_save_MAGIC_CMD"
14808 ;;
14809 esac
14810 fi
14811
14812 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14813 if test -n "$MAGIC_CMD"; then
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14815 $as_echo "$MAGIC_CMD" >&6; }
14816 else
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14818 $as_echo "no" >&6; }
14819 fi
14820
14821
14822 else
14823 MAGIC_CMD=:
14824 fi
14825 fi
14826
14827 fi
14828 ;;
14829 esac
14830
14831 # Use C for the default configuration in the libtool script
14832
14833 lt_save_CC="$CC"
14834 ac_ext=c
14835 ac_cpp='$CPP $CPPFLAGS'
14836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14839
14840
14841 # Source file extension for C test sources.
14842 ac_ext=c
14843
14844 # Object file extension for compiled C test sources.
14845 objext=o
14846 objext=$objext
14847
14848 # Code to be used in simple compile tests
14849 lt_simple_compile_test_code="int some_variable = 0;"
14850
14851 # Code to be used in simple link tests
14852 lt_simple_link_test_code='int main(){return(0);}'
14853
14854
14855
14856
14857
14858
14859
14860 # If no C compiler was specified, use CC.
14861 LTCC=${LTCC-"$CC"}
14862
14863 # If no C compiler flags were specified, use CFLAGS.
14864 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14865
14866 # Allow CC to be a program name with arguments.
14867 compiler=$CC
14868
14869 # Save the default compiler, since it gets overwritten when the other
14870 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14871 compiler_DEFAULT=$CC
14872
14873 # save warnings/boilerplate of simple test code
14874 ac_outfile=conftest.$ac_objext
14875 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14876 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14877 _lt_compiler_boilerplate=`cat conftest.err`
14878 $RM conftest*
14879
14880 ac_outfile=conftest.$ac_objext
14881 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14882 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14883 _lt_linker_boilerplate=`cat conftest.err`
14884 $RM -r conftest*
14885
14886
14887 ## CAVEAT EMPTOR:
14888 ## There is no encapsulation within the following macros, do not change
14889 ## the running order or otherwise move them around unless you know exactly
14890 ## what you are doing...
14891 if test -n "$compiler"; then
14892
14893 lt_prog_compiler_no_builtin_flag=
14894
14895 if test "$GCC" = yes; then
14896 case $cc_basename in
14897 nvcc*)
14898 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14899 *)
14900 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14901 esac
14902
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14904 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14905 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14906 $as_echo_n "(cached) " >&6
14907 else
14908 lt_cv_prog_compiler_rtti_exceptions=no
14909 ac_outfile=conftest.$ac_objext
14910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14911 lt_compiler_flag="-fno-rtti -fno-exceptions"
14912 # Insert the option either (1) after the last *FLAGS variable, or
14913 # (2) before a word containing "conftest.", or (3) at the end.
14914 # Note that $ac_compile itself does not contain backslashes and begins
14915 # with a dollar sign (not a hyphen), so the echo should work correctly.
14916 # The option is referenced via a variable to avoid confusing sed.
14917 lt_compile=`echo "$ac_compile" | $SED \
14918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14920 -e 's:$: $lt_compiler_flag:'`
14921 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14922 (eval "$lt_compile" 2>conftest.err)
14923 ac_status=$?
14924 cat conftest.err >&5
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 if (exit $ac_status) && test -s "$ac_outfile"; then
14927 # The compiler can only warn and ignore the option if not recognized
14928 # So say no if there are warnings other than the usual output.
14929 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14930 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14931 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14932 lt_cv_prog_compiler_rtti_exceptions=yes
14933 fi
14934 fi
14935 $RM conftest*
14936
14937 fi
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14939 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14940
14941 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14942 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14943 else
14944 :
14945 fi
14946
14947 fi
14948
14949
14950
14951
14952
14953
14954 lt_prog_compiler_wl=
14955 lt_prog_compiler_pic=
14956 lt_prog_compiler_static=
14957
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14959 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14960
14961 if test "$GCC" = yes; then
14962 lt_prog_compiler_wl='-Wl,'
14963 lt_prog_compiler_static='-static'
14964
14965 case $host_os in
14966 aix*)
14967 # All AIX code is PIC.
14968 if test "$host_cpu" = ia64; then
14969 # AIX 5 now supports IA64 processor
14970 lt_prog_compiler_static='-Bstatic'
14971 fi
14972 lt_prog_compiler_pic='-fPIC'
14973 ;;
14974
14975 amigaos*)
14976 case $host_cpu in
14977 powerpc)
14978 # see comment about AmigaOS4 .so support
14979 lt_prog_compiler_pic='-fPIC'
14980 ;;
14981 m68k)
14982 # FIXME: we need at least 68020 code to build shared libraries, but
14983 # adding the `-m68020' flag to GCC prevents building anything better,
14984 # like `-m68040'.
14985 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14986 ;;
14987 esac
14988 ;;
14989
14990 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14991 # PIC is the default for these OSes.
14992 ;;
14993
14994 mingw* | cygwin* | pw32* | os2* | cegcc*)
14995 # This hack is so that the source file can tell whether it is being
14996 # built for inclusion in a dll (and should export symbols for example).
14997 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14998 # (--disable-auto-import) libraries
14999 lt_prog_compiler_pic='-DDLL_EXPORT'
15000 ;;
15001
15002 darwin* | rhapsody*)
15003 # PIC is the default on this platform
15004 # Common symbols not allowed in MH_DYLIB files
15005 lt_prog_compiler_pic='-fno-common'
15006 ;;
15007
15008 haiku*)
15009 # PIC is the default for Haiku.
15010 # The "-static" flag exists, but is broken.
15011 lt_prog_compiler_static=
15012 ;;
15013
15014 hpux*)
15015 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15016 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15017 # sets the default TLS model and affects inlining.
15018 case $host_cpu in
15019 hppa*64*)
15020 # +Z the default
15021 ;;
15022 *)
15023 lt_prog_compiler_pic='-fPIC'
15024 ;;
15025 esac
15026 ;;
15027
15028 interix[3-9]*)
15029 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15030 # Instead, we relocate shared libraries at runtime.
15031 ;;
15032
15033 msdosdjgpp*)
15034 # Just because we use GCC doesn't mean we suddenly get shared libraries
15035 # on systems that don't support them.
15036 lt_prog_compiler_can_build_shared=no
15037 enable_shared=no
15038 ;;
15039
15040 *nto* | *qnx*)
15041 # QNX uses GNU C++, but need to define -shared option too, otherwise
15042 # it will coredump.
15043 lt_prog_compiler_pic='-fPIC -shared'
15044 ;;
15045
15046 sysv4*MP*)
15047 if test -d /usr/nec; then
15048 lt_prog_compiler_pic=-Kconform_pic
15049 fi
15050 ;;
15051
15052 *)
15053 lt_prog_compiler_pic='-fPIC'
15054 ;;
15055 esac
15056
15057 case $cc_basename in
15058 nvcc*) # Cuda Compiler Driver 2.2
15059 lt_prog_compiler_wl='-Xlinker '
15060 lt_prog_compiler_pic='-Xcompiler -fPIC'
15061 ;;
15062 esac
15063 else
15064 # PORTME Check for flag to pass linker flags through the system compiler.
15065 case $host_os in
15066 aix*)
15067 lt_prog_compiler_wl='-Wl,'
15068 if test "$host_cpu" = ia64; then
15069 # AIX 5 now supports IA64 processor
15070 lt_prog_compiler_static='-Bstatic'
15071 else
15072 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15073 fi
15074 ;;
15075
15076 mingw* | cygwin* | pw32* | os2* | cegcc*)
15077 # This hack is so that the source file can tell whether it is being
15078 # built for inclusion in a dll (and should export symbols for example).
15079 lt_prog_compiler_pic='-DDLL_EXPORT'
15080 ;;
15081
15082 hpux9* | hpux10* | hpux11*)
15083 lt_prog_compiler_wl='-Wl,'
15084 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15085 # not for PA HP-UX.
15086 case $host_cpu in
15087 hppa*64*|ia64*)
15088 # +Z the default
15089 ;;
15090 *)
15091 lt_prog_compiler_pic='+Z'
15092 ;;
15093 esac
15094 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15095 lt_prog_compiler_static='${wl}-a ${wl}archive'
15096 ;;
15097
15098 irix5* | irix6* | nonstopux*)
15099 lt_prog_compiler_wl='-Wl,'
15100 # PIC (with -KPIC) is the default.
15101 lt_prog_compiler_static='-non_shared'
15102 ;;
15103
15104 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15105 case $cc_basename in
15106 # old Intel for x86_64 which still supported -KPIC.
15107 ecc*)
15108 lt_prog_compiler_wl='-Wl,'
15109 lt_prog_compiler_pic='-KPIC'
15110 lt_prog_compiler_static='-static'
15111 ;;
15112 # icc used to be incompatible with GCC.
15113 # ICC 10 doesn't accept -KPIC any more.
15114 icc* | ifort*)
15115 lt_prog_compiler_wl='-Wl,'
15116 lt_prog_compiler_pic='-fPIC'
15117 lt_prog_compiler_static='-static'
15118 ;;
15119 # Lahey Fortran 8.1.
15120 lf95*)
15121 lt_prog_compiler_wl='-Wl,'
15122 lt_prog_compiler_pic='--shared'
15123 lt_prog_compiler_static='--static'
15124 ;;
15125 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15126 # Portland Group compilers (*not* the Pentium gcc compiler,
15127 # which looks to be a dead project)
15128 lt_prog_compiler_wl='-Wl,'
15129 lt_prog_compiler_pic='-fpic'
15130 lt_prog_compiler_static='-Bstatic'
15131 ;;
15132 ccc*)
15133 lt_prog_compiler_wl='-Wl,'
15134 # All Alpha code is PIC.
15135 lt_prog_compiler_static='-non_shared'
15136 ;;
15137 xl* | bgxl* | bgf* | mpixl*)
15138 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15139 lt_prog_compiler_wl='-Wl,'
15140 lt_prog_compiler_pic='-qpic'
15141 lt_prog_compiler_static='-qstaticlink'
15142 ;;
15143 *)
15144 case `$CC -V 2>&1 | sed 5q` in
15145 *Sun\ F* | *Sun*Fortran*)
15146 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15147 lt_prog_compiler_pic='-KPIC'
15148 lt_prog_compiler_static='-Bstatic'
15149 lt_prog_compiler_wl=''
15150 ;;
15151 *Sun\ C*)
15152 # Sun C 5.9
15153 lt_prog_compiler_pic='-KPIC'
15154 lt_prog_compiler_static='-Bstatic'
15155 lt_prog_compiler_wl='-Wl,'
15156 ;;
15157 esac
15158 ;;
15159 esac
15160 ;;
15161
15162 newsos6)
15163 lt_prog_compiler_pic='-KPIC'
15164 lt_prog_compiler_static='-Bstatic'
15165 ;;
15166
15167 *nto* | *qnx*)
15168 # QNX uses GNU C++, but need to define -shared option too, otherwise
15169 # it will coredump.
15170 lt_prog_compiler_pic='-fPIC -shared'
15171 ;;
15172
15173 osf3* | osf4* | osf5*)
15174 lt_prog_compiler_wl='-Wl,'
15175 # All OSF/1 code is PIC.
15176 lt_prog_compiler_static='-non_shared'
15177 ;;
15178
15179 rdos*)
15180 lt_prog_compiler_static='-non_shared'
15181 ;;
15182
15183 solaris*)
15184 lt_prog_compiler_pic='-KPIC'
15185 lt_prog_compiler_static='-Bstatic'
15186 case $cc_basename in
15187 f77* | f90* | f95*)
15188 lt_prog_compiler_wl='-Qoption ld ';;
15189 *)
15190 lt_prog_compiler_wl='-Wl,';;
15191 esac
15192 ;;
15193
15194 sunos4*)
15195 lt_prog_compiler_wl='-Qoption ld '
15196 lt_prog_compiler_pic='-PIC'
15197 lt_prog_compiler_static='-Bstatic'
15198 ;;
15199
15200 sysv4 | sysv4.2uw2* | sysv4.3*)
15201 lt_prog_compiler_wl='-Wl,'
15202 lt_prog_compiler_pic='-KPIC'
15203 lt_prog_compiler_static='-Bstatic'
15204 ;;
15205
15206 sysv4*MP*)
15207 if test -d /usr/nec ;then
15208 lt_prog_compiler_pic='-Kconform_pic'
15209 lt_prog_compiler_static='-Bstatic'
15210 fi
15211 ;;
15212
15213 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15214 lt_prog_compiler_wl='-Wl,'
15215 lt_prog_compiler_pic='-KPIC'
15216 lt_prog_compiler_static='-Bstatic'
15217 ;;
15218
15219 unicos*)
15220 lt_prog_compiler_wl='-Wl,'
15221 lt_prog_compiler_can_build_shared=no
15222 ;;
15223
15224 uts4*)
15225 lt_prog_compiler_pic='-pic'
15226 lt_prog_compiler_static='-Bstatic'
15227 ;;
15228
15229 *)
15230 lt_prog_compiler_can_build_shared=no
15231 ;;
15232 esac
15233 fi
15234
15235 case $host_os in
15236 # For platforms which do not support PIC, -DPIC is meaningless:
15237 *djgpp*)
15238 lt_prog_compiler_pic=
15239 ;;
15240 *)
15241 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15242 ;;
15243 esac
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15245 $as_echo "$lt_prog_compiler_pic" >&6; }
15246
15247
15248
15249
15250
15251
15252 #
15253 # Check to make sure the PIC flag actually works.
15254 #
15255 if test -n "$lt_prog_compiler_pic"; then
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15257 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15258 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15259 $as_echo_n "(cached) " >&6
15260 else
15261 lt_cv_prog_compiler_pic_works=no
15262 ac_outfile=conftest.$ac_objext
15263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15264 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15265 # Insert the option either (1) after the last *FLAGS variable, or
15266 # (2) before a word containing "conftest.", or (3) at the end.
15267 # Note that $ac_compile itself does not contain backslashes and begins
15268 # with a dollar sign (not a hyphen), so the echo should work correctly.
15269 # The option is referenced via a variable to avoid confusing sed.
15270 lt_compile=`echo "$ac_compile" | $SED \
15271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15273 -e 's:$: $lt_compiler_flag:'`
15274 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15275 (eval "$lt_compile" 2>conftest.err)
15276 ac_status=$?
15277 cat conftest.err >&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 if (exit $ac_status) && test -s "$ac_outfile"; then
15280 # The compiler can only warn and ignore the option if not recognized
15281 # So say no if there are warnings other than the usual output.
15282 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15283 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15284 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15285 lt_cv_prog_compiler_pic_works=yes
15286 fi
15287 fi
15288 $RM conftest*
15289
15290 fi
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15292 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15293
15294 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15295 case $lt_prog_compiler_pic in
15296 "" | " "*) ;;
15297 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15298 esac
15299 else
15300 lt_prog_compiler_pic=
15301 lt_prog_compiler_can_build_shared=no
15302 fi
15303
15304 fi
15305
15306
15307
15308
15309
15310
15311 #
15312 # Check to make sure the static flag actually works.
15313 #
15314 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15316 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15317 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15318 $as_echo_n "(cached) " >&6
15319 else
15320 lt_cv_prog_compiler_static_works=no
15321 save_LDFLAGS="$LDFLAGS"
15322 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15323 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15324 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15325 # The linker can only warn and ignore the option if not recognized
15326 # So say no if there are warnings
15327 if test -s conftest.err; then
15328 # Append any errors to the config.log.
15329 cat conftest.err 1>&5
15330 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15331 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15332 if diff conftest.exp conftest.er2 >/dev/null; then
15333 lt_cv_prog_compiler_static_works=yes
15334 fi
15335 else
15336 lt_cv_prog_compiler_static_works=yes
15337 fi
15338 fi
15339 $RM -r conftest*
15340 LDFLAGS="$save_LDFLAGS"
15341
15342 fi
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15344 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15345
15346 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15347 :
15348 else
15349 lt_prog_compiler_static=
15350 fi
15351
15352
15353
15354
15355
15356
15357
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15359 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15360 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15361 $as_echo_n "(cached) " >&6
15362 else
15363 lt_cv_prog_compiler_c_o=no
15364 $RM -r conftest 2>/dev/null
15365 mkdir conftest
15366 cd conftest
15367 mkdir out
15368 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15369
15370 lt_compiler_flag="-o out/conftest2.$ac_objext"
15371 # Insert the option either (1) after the last *FLAGS variable, or
15372 # (2) before a word containing "conftest.", or (3) at the end.
15373 # Note that $ac_compile itself does not contain backslashes and begins
15374 # with a dollar sign (not a hyphen), so the echo should work correctly.
15375 lt_compile=`echo "$ac_compile" | $SED \
15376 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15378 -e 's:$: $lt_compiler_flag:'`
15379 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15380 (eval "$lt_compile" 2>out/conftest.err)
15381 ac_status=$?
15382 cat out/conftest.err >&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15385 then
15386 # The compiler can only warn and ignore the option if not recognized
15387 # So say no if there are warnings
15388 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15389 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15390 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15391 lt_cv_prog_compiler_c_o=yes
15392 fi
15393 fi
15394 chmod u+w . 2>&5
15395 $RM conftest*
15396 # SGI C++ compiler will create directory out/ii_files/ for
15397 # template instantiation
15398 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15399 $RM out/* && rmdir out
15400 cd ..
15401 $RM -r conftest
15402 $RM conftest*
15403
15404 fi
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15406 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15407
15408
15409
15410
15411
15412
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15414 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15415 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15416 $as_echo_n "(cached) " >&6
15417 else
15418 lt_cv_prog_compiler_c_o=no
15419 $RM -r conftest 2>/dev/null
15420 mkdir conftest
15421 cd conftest
15422 mkdir out
15423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15424
15425 lt_compiler_flag="-o out/conftest2.$ac_objext"
15426 # Insert the option either (1) after the last *FLAGS variable, or
15427 # (2) before a word containing "conftest.", or (3) at the end.
15428 # Note that $ac_compile itself does not contain backslashes and begins
15429 # with a dollar sign (not a hyphen), so the echo should work correctly.
15430 lt_compile=`echo "$ac_compile" | $SED \
15431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15433 -e 's:$: $lt_compiler_flag:'`
15434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15435 (eval "$lt_compile" 2>out/conftest.err)
15436 ac_status=$?
15437 cat out/conftest.err >&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15440 then
15441 # The compiler can only warn and ignore the option if not recognized
15442 # So say no if there are warnings
15443 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15444 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15445 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15446 lt_cv_prog_compiler_c_o=yes
15447 fi
15448 fi
15449 chmod u+w . 2>&5
15450 $RM conftest*
15451 # SGI C++ compiler will create directory out/ii_files/ for
15452 # template instantiation
15453 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15454 $RM out/* && rmdir out
15455 cd ..
15456 $RM -r conftest
15457 $RM conftest*
15458
15459 fi
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15461 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15462
15463
15464
15465
15466 hard_links="nottested"
15467 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15468 # do not overwrite the value of need_locks provided by the user
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15470 $as_echo_n "checking if we can lock with hard links... " >&6; }
15471 hard_links=yes
15472 $RM conftest*
15473 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15474 touch conftest.a
15475 ln conftest.a conftest.b 2>&5 || hard_links=no
15476 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15478 $as_echo "$hard_links" >&6; }
15479 if test "$hard_links" = no; then
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15481 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15482 need_locks=warn
15483 fi
15484 else
15485 need_locks=no
15486 fi
15487
15488
15489
15490
15491
15492
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15494 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15495
15496 runpath_var=
15497 allow_undefined_flag=
15498 always_export_symbols=no
15499 archive_cmds=
15500 archive_expsym_cmds=
15501 compiler_needs_object=no
15502 enable_shared_with_static_runtimes=no
15503 export_dynamic_flag_spec=
15504 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15505 hardcode_automatic=no
15506 hardcode_direct=no
15507 hardcode_direct_absolute=no
15508 hardcode_libdir_flag_spec=
15509 hardcode_libdir_flag_spec_ld=
15510 hardcode_libdir_separator=
15511 hardcode_minus_L=no
15512 hardcode_shlibpath_var=unsupported
15513 inherit_rpath=no
15514 link_all_deplibs=unknown
15515 module_cmds=
15516 module_expsym_cmds=
15517 old_archive_from_new_cmds=
15518 old_archive_from_expsyms_cmds=
15519 thread_safe_flag_spec=
15520 whole_archive_flag_spec=
15521 # include_expsyms should be a list of space-separated symbols to be *always*
15522 # included in the symbol list
15523 include_expsyms=
15524 # exclude_expsyms can be an extended regexp of symbols to exclude
15525 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15526 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15527 # as well as any symbol that contains `d'.
15528 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15529 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15530 # platforms (ab)use it in PIC code, but their linkers get confused if
15531 # the symbol is explicitly referenced. Since portable code cannot
15532 # rely on this symbol name, it's probably fine to never include it in
15533 # preloaded symbol tables.
15534 # Exclude shared library initialization/finalization symbols.
15535 extract_expsyms_cmds=
15536
15537 case $host_os in
15538 cygwin* | mingw* | pw32* | cegcc*)
15539 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15540 # When not using gcc, we currently assume that we are using
15541 # Microsoft Visual C++.
15542 if test "$GCC" != yes; then
15543 with_gnu_ld=no
15544 fi
15545 ;;
15546 interix*)
15547 # we just hope/assume this is gcc and not c89 (= MSVC++)
15548 with_gnu_ld=yes
15549 ;;
15550 openbsd*)
15551 with_gnu_ld=no
15552 ;;
15553 esac
15554
15555 ld_shlibs=yes
15556
15557 # On some targets, GNU ld is compatible enough with the native linker
15558 # that we're better off using the native interface for both.
15559 lt_use_gnu_ld_interface=no
15560 if test "$with_gnu_ld" = yes; then
15561 case $host_os in
15562 aix*)
15563 # The AIX port of GNU ld has always aspired to compatibility
15564 # with the native linker. However, as the warning in the GNU ld
15565 # block says, versions before 2.19.5* couldn't really create working
15566 # shared libraries, regardless of the interface used.
15567 case `$LD -v 2>&1` in
15568 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15569 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15570 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15571 *)
15572 lt_use_gnu_ld_interface=yes
15573 ;;
15574 esac
15575 ;;
15576 *)
15577 lt_use_gnu_ld_interface=yes
15578 ;;
15579 esac
15580 fi
15581
15582 if test "$lt_use_gnu_ld_interface" = yes; then
15583 # If archive_cmds runs LD, not CC, wlarc should be empty
15584 wlarc='${wl}'
15585
15586 # Set some defaults for GNU ld with shared library support. These
15587 # are reset later if shared libraries are not supported. Putting them
15588 # here allows them to be overridden if necessary.
15589 runpath_var=LD_RUN_PATH
15590 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15591 export_dynamic_flag_spec='${wl}--export-dynamic'
15592 # ancient GNU ld didn't support --whole-archive et. al.
15593 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15594 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15595 else
15596 whole_archive_flag_spec=
15597 fi
15598 supports_anon_versioning=no
15599 case `$LD -v 2>&1` in
15600 *GNU\ gold*) supports_anon_versioning=yes ;;
15601 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15602 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15603 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15604 *\ 2.11.*) ;; # other 2.11 versions
15605 *) supports_anon_versioning=yes ;;
15606 esac
15607
15608 # See if GNU ld supports shared libraries.
15609 case $host_os in
15610 aix[3-9]*)
15611 # On AIX/PPC, the GNU linker is very broken
15612 if test "$host_cpu" != ia64; then
15613 ld_shlibs=no
15614 cat <<_LT_EOF 1>&2
15615
15616 *** Warning: the GNU linker, at least up to release 2.19, is reported
15617 *** to be unable to reliably create shared libraries on AIX.
15618 *** Therefore, libtool is disabling shared libraries support. If you
15619 *** really care for shared libraries, you may want to install binutils
15620 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15621 *** You will then need to restart the configuration process.
15622
15623 _LT_EOF
15624 fi
15625 ;;
15626
15627 amigaos*)
15628 case $host_cpu in
15629 powerpc)
15630 # see comment about AmigaOS4 .so support
15631 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15632 archive_expsym_cmds=''
15633 ;;
15634 m68k)
15635 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)'
15636 hardcode_libdir_flag_spec='-L$libdir'
15637 hardcode_minus_L=yes
15638 ;;
15639 esac
15640 ;;
15641
15642 beos*)
15643 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15644 allow_undefined_flag=unsupported
15645 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15646 # support --undefined. This deserves some investigation. FIXME
15647 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15648 else
15649 ld_shlibs=no
15650 fi
15651 ;;
15652
15653 cygwin* | mingw* | pw32* | cegcc*)
15654 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15655 # as there is no search path for DLLs.
15656 hardcode_libdir_flag_spec='-L$libdir'
15657 export_dynamic_flag_spec='${wl}--export-all-symbols'
15658 allow_undefined_flag=unsupported
15659 always_export_symbols=no
15660 enable_shared_with_static_runtimes=yes
15661 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15662
15663 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15665 # If the export-symbols file already is a .def file (1st line
15666 # is EXPORTS), use it as is; otherwise, prepend...
15667 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15668 cp $export_symbols $output_objdir/$soname.def;
15669 else
15670 echo EXPORTS > $output_objdir/$soname.def;
15671 cat $export_symbols >> $output_objdir/$soname.def;
15672 fi~
15673 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15674 else
15675 ld_shlibs=no
15676 fi
15677 ;;
15678
15679 haiku*)
15680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15681 link_all_deplibs=yes
15682 ;;
15683
15684 interix[3-9]*)
15685 hardcode_direct=no
15686 hardcode_shlibpath_var=no
15687 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15688 export_dynamic_flag_spec='${wl}-E'
15689 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15690 # Instead, shared libraries are loaded at an image base (0x10000000 by
15691 # default) and relocated if they conflict, which is a slow very memory
15692 # consuming and fragmenting process. To avoid this, we pick a random,
15693 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15694 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15695 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15696 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'
15697 ;;
15698
15699 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15700 tmp_diet=no
15701 if test "$host_os" = linux-dietlibc; then
15702 case $cc_basename in
15703 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15704 esac
15705 fi
15706 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15707 && test "$tmp_diet" = no
15708 then
15709 tmp_addflag=
15710 tmp_sharedflag='-shared'
15711 case $cc_basename,$host_cpu in
15712 pgcc*) # Portland Group C compiler
15713 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'
15714 tmp_addflag=' $pic_flag'
15715 ;;
15716 pgf77* | pgf90* | pgf95* | pgfortran*)
15717 # Portland Group f77 and f90 compilers
15718 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'
15719 tmp_addflag=' $pic_flag -Mnomain' ;;
15720 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15721 tmp_addflag=' -i_dynamic' ;;
15722 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15723 tmp_addflag=' -i_dynamic -nofor_main' ;;
15724 ifc* | ifort*) # Intel Fortran compiler
15725 tmp_addflag=' -nofor_main' ;;
15726 lf95*) # Lahey Fortran 8.1
15727 whole_archive_flag_spec=
15728 tmp_sharedflag='--shared' ;;
15729 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15730 tmp_sharedflag='-qmkshrobj'
15731 tmp_addflag= ;;
15732 nvcc*) # Cuda Compiler Driver 2.2
15733 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'
15734 compiler_needs_object=yes
15735 ;;
15736 esac
15737 case `$CC -V 2>&1 | sed 5q` in
15738 *Sun\ C*) # Sun C 5.9
15739 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'
15740 compiler_needs_object=yes
15741 tmp_sharedflag='-G' ;;
15742 *Sun\ F*) # Sun Fortran 8.3
15743 tmp_sharedflag='-G' ;;
15744 esac
15745 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15746
15747 if test "x$supports_anon_versioning" = xyes; then
15748 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15749 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15750 echo "local: *; };" >> $output_objdir/$libname.ver~
15751 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15752 fi
15753
15754 case $cc_basename in
15755 xlf* | bgf* | bgxlf* | mpixlf*)
15756 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15757 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15758 hardcode_libdir_flag_spec=
15759 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15760 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15761 if test "x$supports_anon_versioning" = xyes; then
15762 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15763 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15764 echo "local: *; };" >> $output_objdir/$libname.ver~
15765 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15766 fi
15767 ;;
15768 esac
15769 else
15770 ld_shlibs=no
15771 fi
15772 ;;
15773
15774 netbsd*)
15775 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15776 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15777 wlarc=
15778 else
15779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15780 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15781 fi
15782 ;;
15783
15784 solaris*)
15785 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15786 ld_shlibs=no
15787 cat <<_LT_EOF 1>&2
15788
15789 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15790 *** create shared libraries on Solaris systems. Therefore, libtool
15791 *** is disabling shared libraries support. We urge you to upgrade GNU
15792 *** binutils to release 2.9.1 or newer. Another option is to modify
15793 *** your PATH or compiler configuration so that the native linker is
15794 *** used, and then restart.
15795
15796 _LT_EOF
15797 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15798 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15799 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15800 else
15801 ld_shlibs=no
15802 fi
15803 ;;
15804
15805 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15806 case `$LD -v 2>&1` in
15807 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15808 ld_shlibs=no
15809 cat <<_LT_EOF 1>&2
15810
15811 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15812 *** reliably create shared libraries on SCO systems. Therefore, libtool
15813 *** is disabling shared libraries support. We urge you to upgrade GNU
15814 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15815 *** your PATH or compiler configuration so that the native linker is
15816 *** used, and then restart.
15817
15818 _LT_EOF
15819 ;;
15820 *)
15821 # For security reasons, it is highly recommended that you always
15822 # use absolute paths for naming shared libraries, and exclude the
15823 # DT_RUNPATH tag from executables and libraries. But doing so
15824 # requires that you compile everything twice, which is a pain.
15825 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15826 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15828 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15829 else
15830 ld_shlibs=no
15831 fi
15832 ;;
15833 esac
15834 ;;
15835
15836 sunos4*)
15837 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15838 wlarc=
15839 hardcode_direct=yes
15840 hardcode_shlibpath_var=no
15841 ;;
15842
15843 *)
15844 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15846 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15847 else
15848 ld_shlibs=no
15849 fi
15850 ;;
15851 esac
15852
15853 if test "$ld_shlibs" = no; then
15854 runpath_var=
15855 hardcode_libdir_flag_spec=
15856 export_dynamic_flag_spec=
15857 whole_archive_flag_spec=
15858 fi
15859 else
15860 # PORTME fill in a description of your system's linker (not GNU ld)
15861 case $host_os in
15862 aix3*)
15863 allow_undefined_flag=unsupported
15864 always_export_symbols=yes
15865 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'
15866 # Note: this linker hardcodes the directories in LIBPATH if there
15867 # are no directories specified by -L.
15868 hardcode_minus_L=yes
15869 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15870 # Neither direct hardcoding nor static linking is supported with a
15871 # broken collect2.
15872 hardcode_direct=unsupported
15873 fi
15874 ;;
15875
15876 aix[4-9]*)
15877 if test "$host_cpu" = ia64; then
15878 # On IA64, the linker does run time linking by default, so we don't
15879 # have to do anything special.
15880 aix_use_runtimelinking=no
15881 exp_sym_flag='-Bexport'
15882 no_entry_flag=""
15883 else
15884 # If we're using GNU nm, then we don't want the "-C" option.
15885 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15886 # Also, AIX nm treats weak defined symbols like other global
15887 # defined symbols, whereas GNU nm marks them as "W".
15888 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15889 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'
15890 else
15891 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'
15892 fi
15893 aix_use_runtimelinking=no
15894
15895 # Test if we are trying to use run time linking or normal
15896 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15897 # need to do runtime linking.
15898 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15899 for ld_flag in $LDFLAGS; do
15900 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15901 aix_use_runtimelinking=yes
15902 break
15903 fi
15904 done
15905 ;;
15906 esac
15907
15908 exp_sym_flag='-bexport'
15909 no_entry_flag='-bnoentry'
15910 fi
15911
15912 # When large executables or shared objects are built, AIX ld can
15913 # have problems creating the table of contents. If linking a library
15914 # or program results in "error TOC overflow" add -mminimal-toc to
15915 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15916 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15917
15918 archive_cmds=''
15919 hardcode_direct=yes
15920 hardcode_direct_absolute=yes
15921 hardcode_libdir_separator=':'
15922 link_all_deplibs=yes
15923 file_list_spec='${wl}-f,'
15924
15925 if test "$GCC" = yes; then
15926 case $host_os in aix4.[012]|aix4.[012].*)
15927 # We only want to do this on AIX 4.2 and lower, the check
15928 # below for broken collect2 doesn't work under 4.3+
15929 collect2name=`${CC} -print-prog-name=collect2`
15930 if test -f "$collect2name" &&
15931 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15932 then
15933 # We have reworked collect2
15934 :
15935 else
15936 # We have old collect2
15937 hardcode_direct=unsupported
15938 # It fails to find uninstalled libraries when the uninstalled
15939 # path is not listed in the libpath. Setting hardcode_minus_L
15940 # to unsupported forces relinking
15941 hardcode_minus_L=yes
15942 hardcode_libdir_flag_spec='-L$libdir'
15943 hardcode_libdir_separator=
15944 fi
15945 ;;
15946 esac
15947 shared_flag='-shared'
15948 if test "$aix_use_runtimelinking" = yes; then
15949 shared_flag="$shared_flag "'${wl}-G'
15950 fi
15951 else
15952 # not using gcc
15953 if test "$host_cpu" = ia64; then
15954 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15955 # chokes on -Wl,-G. The following line is correct:
15956 shared_flag='-G'
15957 else
15958 if test "$aix_use_runtimelinking" = yes; then
15959 shared_flag='${wl}-G'
15960 else
15961 shared_flag='${wl}-bM:SRE'
15962 fi
15963 fi
15964 fi
15965
15966 export_dynamic_flag_spec='${wl}-bexpall'
15967 # It seems that -bexpall does not export symbols beginning with
15968 # underscore (_), so it is better to generate a list of symbols to export.
15969 always_export_symbols=yes
15970 if test "$aix_use_runtimelinking" = yes; then
15971 # Warning - without using the other runtime loading flags (-brtl),
15972 # -berok will link without error, but may produce a broken library.
15973 allow_undefined_flag='-berok'
15974 # Determine the default libpath from the value encoded in an
15975 # empty executable.
15976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15977 /* end confdefs.h. */
15978
15979 int
15980 main ()
15981 {
15982
15983 ;
15984 return 0;
15985 }
15986 _ACEOF
15987 if ac_fn_c_try_link "$LINENO"; then :
15988
15989 lt_aix_libpath_sed='
15990 /Import File Strings/,/^$/ {
15991 /^0/ {
15992 s/^0 *\(.*\)$/\1/
15993 p
15994 }
15995 }'
15996 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15997 # Check for a 64-bit object if we didn't find anything.
15998 if test -z "$aix_libpath"; then
15999 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16000 fi
16001 fi
16002 rm -f core conftest.err conftest.$ac_objext \
16003 conftest$ac_exeext conftest.$ac_ext
16004 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16005
16006 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16007 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"
16008 else
16009 if test "$host_cpu" = ia64; then
16010 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16011 allow_undefined_flag="-z nodefs"
16012 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"
16013 else
16014 # Determine the default libpath from the value encoded in an
16015 # empty executable.
16016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16017 /* end confdefs.h. */
16018
16019 int
16020 main ()
16021 {
16022
16023 ;
16024 return 0;
16025 }
16026 _ACEOF
16027 if ac_fn_c_try_link "$LINENO"; then :
16028
16029 lt_aix_libpath_sed='
16030 /Import File Strings/,/^$/ {
16031 /^0/ {
16032 s/^0 *\(.*\)$/\1/
16033 p
16034 }
16035 }'
16036 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16037 # Check for a 64-bit object if we didn't find anything.
16038 if test -z "$aix_libpath"; then
16039 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16040 fi
16041 fi
16042 rm -f core conftest.err conftest.$ac_objext \
16043 conftest$ac_exeext conftest.$ac_ext
16044 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16045
16046 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16047 # Warning - without using the other run time loading flags,
16048 # -berok will link without error, but may produce a broken library.
16049 no_undefined_flag=' ${wl}-bernotok'
16050 allow_undefined_flag=' ${wl}-berok'
16051 if test "$with_gnu_ld" = yes; then
16052 # We only use this code for GNU lds that support --whole-archive.
16053 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16054 else
16055 # Exported symbols can be pulled into shared objects from archives
16056 whole_archive_flag_spec='$convenience'
16057 fi
16058 archive_cmds_need_lc=yes
16059 # This is similar to how AIX traditionally builds its shared libraries.
16060 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'
16061 fi
16062 fi
16063 ;;
16064
16065 amigaos*)
16066 case $host_cpu in
16067 powerpc)
16068 # see comment about AmigaOS4 .so support
16069 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16070 archive_expsym_cmds=''
16071 ;;
16072 m68k)
16073 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)'
16074 hardcode_libdir_flag_spec='-L$libdir'
16075 hardcode_minus_L=yes
16076 ;;
16077 esac
16078 ;;
16079
16080 bsdi[45]*)
16081 export_dynamic_flag_spec=-rdynamic
16082 ;;
16083
16084 cygwin* | mingw* | pw32* | cegcc*)
16085 # When not using gcc, we currently assume that we are using
16086 # Microsoft Visual C++.
16087 # hardcode_libdir_flag_spec is actually meaningless, as there is
16088 # no search path for DLLs.
16089 hardcode_libdir_flag_spec=' '
16090 allow_undefined_flag=unsupported
16091 # Tell ltmain to make .lib files, not .a files.
16092 libext=lib
16093 # Tell ltmain to make .dll files, not .so files.
16094 shrext_cmds=".dll"
16095 # FIXME: Setting linknames here is a bad hack.
16096 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16097 # The linker will automatically build a .lib file if we build a DLL.
16098 old_archive_from_new_cmds='true'
16099 # FIXME: Should let the user specify the lib program.
16100 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16101 fix_srcfile_path='`cygpath -w "$srcfile"`'
16102 enable_shared_with_static_runtimes=yes
16103 ;;
16104
16105 darwin* | rhapsody*)
16106
16107
16108 archive_cmds_need_lc=no
16109 hardcode_direct=no
16110 hardcode_automatic=yes
16111 hardcode_shlibpath_var=unsupported
16112 if test "$lt_cv_ld_force_load" = "yes"; then
16113 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\"`'
16114 else
16115 whole_archive_flag_spec=''
16116 fi
16117 link_all_deplibs=yes
16118 allow_undefined_flag="$_lt_dar_allow_undefined"
16119 case $cc_basename in
16120 ifort*) _lt_dar_can_shared=yes ;;
16121 *) _lt_dar_can_shared=$GCC ;;
16122 esac
16123 if test "$_lt_dar_can_shared" = "yes"; then
16124 output_verbose_link_cmd=func_echo_all
16125 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16126 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16127 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}"
16128 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}"
16129
16130 else
16131 ld_shlibs=no
16132 fi
16133
16134 ;;
16135
16136 dgux*)
16137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16138 hardcode_libdir_flag_spec='-L$libdir'
16139 hardcode_shlibpath_var=no
16140 ;;
16141
16142 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16143 # support. Future versions do this automatically, but an explicit c++rt0.o
16144 # does not break anything, and helps significantly (at the cost of a little
16145 # extra space).
16146 freebsd2.2*)
16147 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16148 hardcode_libdir_flag_spec='-R$libdir'
16149 hardcode_direct=yes
16150 hardcode_shlibpath_var=no
16151 ;;
16152
16153 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16154 freebsd2.*)
16155 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16156 hardcode_direct=yes
16157 hardcode_minus_L=yes
16158 hardcode_shlibpath_var=no
16159 ;;
16160
16161 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16162 freebsd* | dragonfly*)
16163 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16164 hardcode_libdir_flag_spec='-R$libdir'
16165 hardcode_direct=yes
16166 hardcode_shlibpath_var=no
16167 ;;
16168
16169 hpux9*)
16170 if test "$GCC" = yes; then
16171 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'
16172 else
16173 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'
16174 fi
16175 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16176 hardcode_libdir_separator=:
16177 hardcode_direct=yes
16178
16179 # hardcode_minus_L: Not really in the search PATH,
16180 # but as the default location of the library.
16181 hardcode_minus_L=yes
16182 export_dynamic_flag_spec='${wl}-E'
16183 ;;
16184
16185 hpux10*)
16186 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16187 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16188 else
16189 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16190 fi
16191 if test "$with_gnu_ld" = no; then
16192 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16193 hardcode_libdir_flag_spec_ld='+b $libdir'
16194 hardcode_libdir_separator=:
16195 hardcode_direct=yes
16196 hardcode_direct_absolute=yes
16197 export_dynamic_flag_spec='${wl}-E'
16198 # hardcode_minus_L: Not really in the search PATH,
16199 # but as the default location of the library.
16200 hardcode_minus_L=yes
16201 fi
16202 ;;
16203
16204 hpux11*)
16205 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16206 case $host_cpu in
16207 hppa*64*)
16208 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16209 ;;
16210 ia64*)
16211 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16212 ;;
16213 *)
16214 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16215 ;;
16216 esac
16217 else
16218 case $host_cpu in
16219 hppa*64*)
16220 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16221 ;;
16222 ia64*)
16223 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16224 ;;
16225 *)
16226
16227 # Older versions of the 11.00 compiler do not understand -b yet
16228 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16230 $as_echo_n "checking if $CC understands -b... " >&6; }
16231 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16232 $as_echo_n "(cached) " >&6
16233 else
16234 lt_cv_prog_compiler__b=no
16235 save_LDFLAGS="$LDFLAGS"
16236 LDFLAGS="$LDFLAGS -b"
16237 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16238 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16239 # The linker can only warn and ignore the option if not recognized
16240 # So say no if there are warnings
16241 if test -s conftest.err; then
16242 # Append any errors to the config.log.
16243 cat conftest.err 1>&5
16244 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16246 if diff conftest.exp conftest.er2 >/dev/null; then
16247 lt_cv_prog_compiler__b=yes
16248 fi
16249 else
16250 lt_cv_prog_compiler__b=yes
16251 fi
16252 fi
16253 $RM -r conftest*
16254 LDFLAGS="$save_LDFLAGS"
16255
16256 fi
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16258 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16259
16260 if test x"$lt_cv_prog_compiler__b" = xyes; then
16261 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16262 else
16263 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16264 fi
16265
16266 ;;
16267 esac
16268 fi
16269 if test "$with_gnu_ld" = no; then
16270 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16271 hardcode_libdir_separator=:
16272
16273 case $host_cpu in
16274 hppa*64*|ia64*)
16275 hardcode_direct=no
16276 hardcode_shlibpath_var=no
16277 ;;
16278 *)
16279 hardcode_direct=yes
16280 hardcode_direct_absolute=yes
16281 export_dynamic_flag_spec='${wl}-E'
16282
16283 # hardcode_minus_L: Not really in the search PATH,
16284 # but as the default location of the library.
16285 hardcode_minus_L=yes
16286 ;;
16287 esac
16288 fi
16289 ;;
16290
16291 irix5* | irix6* | nonstopux*)
16292 if test "$GCC" = yes; then
16293 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'
16294 # Try to use the -exported_symbol ld option, if it does not
16295 # work, assume that -exports_file does not work either and
16296 # implicitly export all symbols.
16297 save_LDFLAGS="$LDFLAGS"
16298 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16300 /* end confdefs.h. */
16301 int foo(void) {}
16302 _ACEOF
16303 if ac_fn_c_try_link "$LINENO"; then :
16304 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'
16305
16306 fi
16307 rm -f core conftest.err conftest.$ac_objext \
16308 conftest$ac_exeext conftest.$ac_ext
16309 LDFLAGS="$save_LDFLAGS"
16310 else
16311 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'
16312 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'
16313 fi
16314 archive_cmds_need_lc='no'
16315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16316 hardcode_libdir_separator=:
16317 inherit_rpath=yes
16318 link_all_deplibs=yes
16319 ;;
16320
16321 netbsd*)
16322 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16323 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16324 else
16325 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16326 fi
16327 hardcode_libdir_flag_spec='-R$libdir'
16328 hardcode_direct=yes
16329 hardcode_shlibpath_var=no
16330 ;;
16331
16332 newsos6)
16333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16334 hardcode_direct=yes
16335 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16336 hardcode_libdir_separator=:
16337 hardcode_shlibpath_var=no
16338 ;;
16339
16340 *nto* | *qnx*)
16341 ;;
16342
16343 openbsd*)
16344 if test -f /usr/libexec/ld.so; then
16345 hardcode_direct=yes
16346 hardcode_shlibpath_var=no
16347 hardcode_direct_absolute=yes
16348 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16349 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16350 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16351 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16352 export_dynamic_flag_spec='${wl}-E'
16353 else
16354 case $host_os in
16355 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16356 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16357 hardcode_libdir_flag_spec='-R$libdir'
16358 ;;
16359 *)
16360 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16361 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16362 ;;
16363 esac
16364 fi
16365 else
16366 ld_shlibs=no
16367 fi
16368 ;;
16369
16370 os2*)
16371 hardcode_libdir_flag_spec='-L$libdir'
16372 hardcode_minus_L=yes
16373 allow_undefined_flag=unsupported
16374 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'
16375 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16376 ;;
16377
16378 osf3*)
16379 if test "$GCC" = yes; then
16380 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16381 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'
16382 else
16383 allow_undefined_flag=' -expect_unresolved \*'
16384 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'
16385 fi
16386 archive_cmds_need_lc='no'
16387 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16388 hardcode_libdir_separator=:
16389 ;;
16390
16391 osf4* | osf5*) # as osf3* with the addition of -msym flag
16392 if test "$GCC" = yes; then
16393 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16394 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'
16395 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16396 else
16397 allow_undefined_flag=' -expect_unresolved \*'
16398 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'
16399 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~
16400 $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'
16401
16402 # Both c and cxx compiler support -rpath directly
16403 hardcode_libdir_flag_spec='-rpath $libdir'
16404 fi
16405 archive_cmds_need_lc='no'
16406 hardcode_libdir_separator=:
16407 ;;
16408
16409 solaris*)
16410 no_undefined_flag=' -z defs'
16411 if test "$GCC" = yes; then
16412 wlarc='${wl}'
16413 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16414 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16415 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16416 else
16417 case `$CC -V 2>&1` in
16418 *"Compilers 5.0"*)
16419 wlarc=''
16420 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16421 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16422 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16423 ;;
16424 *)
16425 wlarc='${wl}'
16426 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16427 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16428 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16429 ;;
16430 esac
16431 fi
16432 hardcode_libdir_flag_spec='-R$libdir'
16433 hardcode_shlibpath_var=no
16434 case $host_os in
16435 solaris2.[0-5] | solaris2.[0-5].*) ;;
16436 *)
16437 # The compiler driver will combine and reorder linker options,
16438 # but understands `-z linker_flag'. GCC discards it without `$wl',
16439 # but is careful enough not to reorder.
16440 # Supported since Solaris 2.6 (maybe 2.5.1?)
16441 if test "$GCC" = yes; then
16442 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16443 else
16444 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16445 fi
16446 ;;
16447 esac
16448 link_all_deplibs=yes
16449 ;;
16450
16451 sunos4*)
16452 if test "x$host_vendor" = xsequent; then
16453 # Use $CC to link under sequent, because it throws in some extra .o
16454 # files that make .init and .fini sections work.
16455 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16456 else
16457 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16458 fi
16459 hardcode_libdir_flag_spec='-L$libdir'
16460 hardcode_direct=yes
16461 hardcode_minus_L=yes
16462 hardcode_shlibpath_var=no
16463 ;;
16464
16465 sysv4)
16466 case $host_vendor in
16467 sni)
16468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16469 hardcode_direct=yes # is this really true???
16470 ;;
16471 siemens)
16472 ## LD is ld it makes a PLAMLIB
16473 ## CC just makes a GrossModule.
16474 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16475 reload_cmds='$CC -r -o $output$reload_objs'
16476 hardcode_direct=no
16477 ;;
16478 motorola)
16479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16480 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16481 ;;
16482 esac
16483 runpath_var='LD_RUN_PATH'
16484 hardcode_shlibpath_var=no
16485 ;;
16486
16487 sysv4.3*)
16488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16489 hardcode_shlibpath_var=no
16490 export_dynamic_flag_spec='-Bexport'
16491 ;;
16492
16493 sysv4*MP*)
16494 if test -d /usr/nec; then
16495 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16496 hardcode_shlibpath_var=no
16497 runpath_var=LD_RUN_PATH
16498 hardcode_runpath_var=yes
16499 ld_shlibs=yes
16500 fi
16501 ;;
16502
16503 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16504 no_undefined_flag='${wl}-z,text'
16505 archive_cmds_need_lc=no
16506 hardcode_shlibpath_var=no
16507 runpath_var='LD_RUN_PATH'
16508
16509 if test "$GCC" = yes; then
16510 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16511 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16512 else
16513 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16514 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16515 fi
16516 ;;
16517
16518 sysv5* | sco3.2v5* | sco5v6*)
16519 # Note: We can NOT use -z defs as we might desire, because we do not
16520 # link with -lc, and that would cause any symbols used from libc to
16521 # always be unresolved, which means just about no library would
16522 # ever link correctly. If we're not using GNU ld we use -z text
16523 # though, which does catch some bad symbols but isn't as heavy-handed
16524 # as -z defs.
16525 no_undefined_flag='${wl}-z,text'
16526 allow_undefined_flag='${wl}-z,nodefs'
16527 archive_cmds_need_lc=no
16528 hardcode_shlibpath_var=no
16529 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16530 hardcode_libdir_separator=':'
16531 link_all_deplibs=yes
16532 export_dynamic_flag_spec='${wl}-Bexport'
16533 runpath_var='LD_RUN_PATH'
16534
16535 if test "$GCC" = yes; then
16536 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16537 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16538 else
16539 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16540 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16541 fi
16542 ;;
16543
16544 uts4*)
16545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16546 hardcode_libdir_flag_spec='-L$libdir'
16547 hardcode_shlibpath_var=no
16548 ;;
16549
16550 *)
16551 ld_shlibs=no
16552 ;;
16553 esac
16554
16555 if test x$host_vendor = xsni; then
16556 case $host in
16557 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16558 export_dynamic_flag_spec='${wl}-Blargedynsym'
16559 ;;
16560 esac
16561 fi
16562 fi
16563
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16565 $as_echo "$ld_shlibs" >&6; }
16566 test "$ld_shlibs" = no && can_build_shared=no
16567
16568 with_gnu_ld=$with_gnu_ld
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584 #
16585 # Do we need to explicitly link libc?
16586 #
16587 case "x$archive_cmds_need_lc" in
16588 x|xyes)
16589 # Assume -lc should be added
16590 archive_cmds_need_lc=yes
16591
16592 if test "$enable_shared" = yes && test "$GCC" = yes; then
16593 case $archive_cmds in
16594 *'~'*)
16595 # FIXME: we may have to deal with multi-command sequences.
16596 ;;
16597 '$CC '*)
16598 # Test whether the compiler implicitly links with -lc since on some
16599 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16600 # to ld, don't add -lc before -lgcc.
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16602 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16603 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16604 $as_echo_n "(cached) " >&6
16605 else
16606 $RM conftest*
16607 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16608
16609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16610 (eval $ac_compile) 2>&5
16611 ac_status=$?
16612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16613 test $ac_status = 0; } 2>conftest.err; then
16614 soname=conftest
16615 lib=conftest
16616 libobjs=conftest.$ac_objext
16617 deplibs=
16618 wl=$lt_prog_compiler_wl
16619 pic_flag=$lt_prog_compiler_pic
16620 compiler_flags=-v
16621 linker_flags=-v
16622 verstring=
16623 output_objdir=.
16624 libname=conftest
16625 lt_save_allow_undefined_flag=$allow_undefined_flag
16626 allow_undefined_flag=
16627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16628 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16629 ac_status=$?
16630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16631 test $ac_status = 0; }
16632 then
16633 lt_cv_archive_cmds_need_lc=no
16634 else
16635 lt_cv_archive_cmds_need_lc=yes
16636 fi
16637 allow_undefined_flag=$lt_save_allow_undefined_flag
16638 else
16639 cat conftest.err 1>&5
16640 fi
16641 $RM conftest*
16642
16643 fi
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16645 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16646 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16647 ;;
16648 esac
16649 fi
16650 ;;
16651 esac
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
16807
16808
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16810 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16811
16812 if test "$GCC" = yes; then
16813 case $host_os in
16814 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16815 *) lt_awk_arg="/^libraries:/" ;;
16816 esac
16817 case $host_os in
16818 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16819 *) lt_sed_strip_eq="s,=/,/,g" ;;
16820 esac
16821 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16822 case $lt_search_path_spec in
16823 *\;*)
16824 # if the path contains ";" then we assume it to be the separator
16825 # otherwise default to the standard path separator (i.e. ":") - it is
16826 # assumed that no part of a normal pathname contains ";" but that should
16827 # okay in the real world where ";" in dirpaths is itself problematic.
16828 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16829 ;;
16830 *)
16831 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16832 ;;
16833 esac
16834 # Ok, now we have the path, separated by spaces, we can step through it
16835 # and add multilib dir if necessary.
16836 lt_tmp_lt_search_path_spec=
16837 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16838 for lt_sys_path in $lt_search_path_spec; do
16839 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16840 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16841 else
16842 test -d "$lt_sys_path" && \
16843 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16844 fi
16845 done
16846 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16847 BEGIN {RS=" "; FS="/|\n";} {
16848 lt_foo="";
16849 lt_count=0;
16850 for (lt_i = NF; lt_i > 0; lt_i--) {
16851 if ($lt_i != "" && $lt_i != ".") {
16852 if ($lt_i == "..") {
16853 lt_count++;
16854 } else {
16855 if (lt_count == 0) {
16856 lt_foo="/" $lt_i lt_foo;
16857 } else {
16858 lt_count--;
16859 }
16860 }
16861 }
16862 }
16863 if (lt_foo != "") { lt_freq[lt_foo]++; }
16864 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16865 }'`
16866 # AWK program above erroneously prepends '/' to C:/dos/paths
16867 # for these hosts.
16868 case $host_os in
16869 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16870 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16871 esac
16872 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16873 else
16874 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16875 fi
16876 library_names_spec=
16877 libname_spec='lib$name'
16878 soname_spec=
16879 shrext_cmds=".so"
16880 postinstall_cmds=
16881 postuninstall_cmds=
16882 finish_cmds=
16883 finish_eval=
16884 shlibpath_var=
16885 shlibpath_overrides_runpath=unknown
16886 version_type=none
16887 dynamic_linker="$host_os ld.so"
16888 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16889 need_lib_prefix=unknown
16890 hardcode_into_libs=no
16891
16892 # when you set need_version to no, make sure it does not cause -set_version
16893 # flags to be left without arguments
16894 need_version=unknown
16895
16896 case $host_os in
16897 aix3*)
16898 version_type=linux
16899 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16900 shlibpath_var=LIBPATH
16901
16902 # AIX 3 has no versioning support, so we append a major version to the name.
16903 soname_spec='${libname}${release}${shared_ext}$major'
16904 ;;
16905
16906 aix[4-9]*)
16907 version_type=linux
16908 need_lib_prefix=no
16909 need_version=no
16910 hardcode_into_libs=yes
16911 if test "$host_cpu" = ia64; then
16912 # AIX 5 supports IA64
16913 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16914 shlibpath_var=LD_LIBRARY_PATH
16915 else
16916 # With GCC up to 2.95.x, collect2 would create an import file
16917 # for dependence libraries. The import file would start with
16918 # the line `#! .'. This would cause the generated library to
16919 # depend on `.', always an invalid library. This was fixed in
16920 # development snapshots of GCC prior to 3.0.
16921 case $host_os in
16922 aix4 | aix4.[01] | aix4.[01].*)
16923 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16924 echo ' yes '
16925 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16926 :
16927 else
16928 can_build_shared=no
16929 fi
16930 ;;
16931 esac
16932 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16933 # soname into executable. Probably we can add versioning support to
16934 # collect2, so additional links can be useful in future.
16935 if test "$aix_use_runtimelinking" = yes; then
16936 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16937 # instead of lib<name>.a to let people know that these are not
16938 # typical AIX shared libraries.
16939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16940 else
16941 # We preserve .a as extension for shared libraries through AIX4.2
16942 # and later when we are not doing run time linking.
16943 library_names_spec='${libname}${release}.a $libname.a'
16944 soname_spec='${libname}${release}${shared_ext}$major'
16945 fi
16946 shlibpath_var=LIBPATH
16947 fi
16948 ;;
16949
16950 amigaos*)
16951 case $host_cpu in
16952 powerpc)
16953 # Since July 2007 AmigaOS4 officially supports .so libraries.
16954 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16956 ;;
16957 m68k)
16958 library_names_spec='$libname.ixlibrary $libname.a'
16959 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16960 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'
16961 ;;
16962 esac
16963 ;;
16964
16965 beos*)
16966 library_names_spec='${libname}${shared_ext}'
16967 dynamic_linker="$host_os ld.so"
16968 shlibpath_var=LIBRARY_PATH
16969 ;;
16970
16971 bsdi[45]*)
16972 version_type=linux
16973 need_version=no
16974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16975 soname_spec='${libname}${release}${shared_ext}$major'
16976 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16977 shlibpath_var=LD_LIBRARY_PATH
16978 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16979 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16980 # the default ld.so.conf also contains /usr/contrib/lib and
16981 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16982 # libtool to hard-code these into programs
16983 ;;
16984
16985 cygwin* | mingw* | pw32* | cegcc*)
16986 version_type=windows
16987 shrext_cmds=".dll"
16988 need_version=no
16989 need_lib_prefix=no
16990
16991 case $GCC,$host_os in
16992 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16993 library_names_spec='$libname.dll.a'
16994 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16995 postinstall_cmds='base_file=`basename \${file}`~
16996 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16997 dldir=$destdir/`dirname \$dlpath`~
16998 test -d \$dldir || mkdir -p \$dldir~
16999 $install_prog $dir/$dlname \$dldir/$dlname~
17000 chmod a+x \$dldir/$dlname~
17001 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17002 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17003 fi'
17004 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17005 dlpath=$dir/\$dldll~
17006 $RM \$dlpath'
17007 shlibpath_overrides_runpath=yes
17008
17009 case $host_os in
17010 cygwin*)
17011 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17012 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17013
17014 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17015 ;;
17016 mingw* | cegcc*)
17017 # MinGW DLLs use traditional 'lib' prefix
17018 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17019 ;;
17020 pw32*)
17021 # pw32 DLLs use 'pw' prefix rather than 'lib'
17022 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17023 ;;
17024 esac
17025 ;;
17026
17027 *)
17028 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17029 ;;
17030 esac
17031 dynamic_linker='Win32 ld.exe'
17032 # FIXME: first we should search . and the directory the executable is in
17033 shlibpath_var=PATH
17034 ;;
17035
17036 darwin* | rhapsody*)
17037 dynamic_linker="$host_os dyld"
17038 version_type=darwin
17039 need_lib_prefix=no
17040 need_version=no
17041 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17042 soname_spec='${libname}${release}${major}$shared_ext'
17043 shlibpath_overrides_runpath=yes
17044 shlibpath_var=DYLD_LIBRARY_PATH
17045 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17046
17047 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17048 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17049 ;;
17050
17051 dgux*)
17052 version_type=linux
17053 need_lib_prefix=no
17054 need_version=no
17055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17056 soname_spec='${libname}${release}${shared_ext}$major'
17057 shlibpath_var=LD_LIBRARY_PATH
17058 ;;
17059
17060 freebsd* | dragonfly*)
17061 # DragonFly does not have aout. When/if they implement a new
17062 # versioning mechanism, adjust this.
17063 if test -x /usr/bin/objformat; then
17064 objformat=`/usr/bin/objformat`
17065 else
17066 case $host_os in
17067 freebsd[23].*) objformat=aout ;;
17068 *) objformat=elf ;;
17069 esac
17070 fi
17071 version_type=freebsd-$objformat
17072 case $version_type in
17073 freebsd-elf*)
17074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17075 need_version=no
17076 need_lib_prefix=no
17077 ;;
17078 freebsd-*)
17079 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17080 need_version=yes
17081 ;;
17082 esac
17083 shlibpath_var=LD_LIBRARY_PATH
17084 case $host_os in
17085 freebsd2.*)
17086 shlibpath_overrides_runpath=yes
17087 ;;
17088 freebsd3.[01]* | freebsdelf3.[01]*)
17089 shlibpath_overrides_runpath=yes
17090 hardcode_into_libs=yes
17091 ;;
17092 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17093 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17094 shlibpath_overrides_runpath=no
17095 hardcode_into_libs=yes
17096 ;;
17097 *) # from 4.6 on, and DragonFly
17098 shlibpath_overrides_runpath=yes
17099 hardcode_into_libs=yes
17100 ;;
17101 esac
17102 ;;
17103
17104 gnu*)
17105 version_type=linux
17106 need_lib_prefix=no
17107 need_version=no
17108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17109 soname_spec='${libname}${release}${shared_ext}$major'
17110 shlibpath_var=LD_LIBRARY_PATH
17111 hardcode_into_libs=yes
17112 ;;
17113
17114 haiku*)
17115 version_type=linux
17116 need_lib_prefix=no
17117 need_version=no
17118 dynamic_linker="$host_os runtime_loader"
17119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17120 soname_spec='${libname}${release}${shared_ext}$major'
17121 shlibpath_var=LIBRARY_PATH
17122 shlibpath_overrides_runpath=yes
17123 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17124 hardcode_into_libs=yes
17125 ;;
17126
17127 hpux9* | hpux10* | hpux11*)
17128 # Give a soname corresponding to the major version so that dld.sl refuses to
17129 # link against other versions.
17130 version_type=sunos
17131 need_lib_prefix=no
17132 need_version=no
17133 case $host_cpu in
17134 ia64*)
17135 shrext_cmds='.so'
17136 hardcode_into_libs=yes
17137 dynamic_linker="$host_os dld.so"
17138 shlibpath_var=LD_LIBRARY_PATH
17139 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17141 soname_spec='${libname}${release}${shared_ext}$major'
17142 if test "X$HPUX_IA64_MODE" = X32; then
17143 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17144 else
17145 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17146 fi
17147 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17148 ;;
17149 hppa*64*)
17150 shrext_cmds='.sl'
17151 hardcode_into_libs=yes
17152 dynamic_linker="$host_os dld.sl"
17153 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17154 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156 soname_spec='${libname}${release}${shared_ext}$major'
17157 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17158 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17159 ;;
17160 *)
17161 shrext_cmds='.sl'
17162 dynamic_linker="$host_os dld.sl"
17163 shlibpath_var=SHLIB_PATH
17164 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17166 soname_spec='${libname}${release}${shared_ext}$major'
17167 ;;
17168 esac
17169 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17170 postinstall_cmds='chmod 555 $lib'
17171 # or fails outright, so override atomically:
17172 install_override_mode=555
17173 ;;
17174
17175 interix[3-9]*)
17176 version_type=linux
17177 need_lib_prefix=no
17178 need_version=no
17179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17180 soname_spec='${libname}${release}${shared_ext}$major'
17181 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17182 shlibpath_var=LD_LIBRARY_PATH
17183 shlibpath_overrides_runpath=no
17184 hardcode_into_libs=yes
17185 ;;
17186
17187 irix5* | irix6* | nonstopux*)
17188 case $host_os in
17189 nonstopux*) version_type=nonstopux ;;
17190 *)
17191 if test "$lt_cv_prog_gnu_ld" = yes; then
17192 version_type=linux
17193 else
17194 version_type=irix
17195 fi ;;
17196 esac
17197 need_lib_prefix=no
17198 need_version=no
17199 soname_spec='${libname}${release}${shared_ext}$major'
17200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17201 case $host_os in
17202 irix5* | nonstopux*)
17203 libsuff= shlibsuff=
17204 ;;
17205 *)
17206 case $LD in # libtool.m4 will add one of these switches to LD
17207 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17208 libsuff= shlibsuff= libmagic=32-bit;;
17209 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17210 libsuff=32 shlibsuff=N32 libmagic=N32;;
17211 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17212 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17213 *) libsuff= shlibsuff= libmagic=never-match;;
17214 esac
17215 ;;
17216 esac
17217 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17218 shlibpath_overrides_runpath=no
17219 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17220 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17221 hardcode_into_libs=yes
17222 ;;
17223
17224 # No shared lib support for Linux oldld, aout, or coff.
17225 linux*oldld* | linux*aout* | linux*coff*)
17226 dynamic_linker=no
17227 ;;
17228
17229 # This must be Linux ELF.
17230 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17231 version_type=linux
17232 need_lib_prefix=no
17233 need_version=no
17234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17235 soname_spec='${libname}${release}${shared_ext}$major'
17236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17237 shlibpath_var=LD_LIBRARY_PATH
17238 shlibpath_overrides_runpath=no
17239
17240 # Some binutils ld are patched to set DT_RUNPATH
17241 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17242 $as_echo_n "(cached) " >&6
17243 else
17244 lt_cv_shlibpath_overrides_runpath=no
17245 save_LDFLAGS=$LDFLAGS
17246 save_libdir=$libdir
17247 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17248 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17250 /* end confdefs.h. */
17251
17252 int
17253 main ()
17254 {
17255
17256 ;
17257 return 0;
17258 }
17259 _ACEOF
17260 if ac_fn_c_try_link "$LINENO"; then :
17261 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17262 lt_cv_shlibpath_overrides_runpath=yes
17263 fi
17264 fi
17265 rm -f core conftest.err conftest.$ac_objext \
17266 conftest$ac_exeext conftest.$ac_ext
17267 LDFLAGS=$save_LDFLAGS
17268 libdir=$save_libdir
17269
17270 fi
17271
17272 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17273
17274 # This implies no fast_install, which is unacceptable.
17275 # Some rework will be needed to allow for fast_install
17276 # before this can be enabled.
17277 hardcode_into_libs=yes
17278
17279 # Append ld.so.conf contents to the search path
17280 if test -f /etc/ld.so.conf; then
17281 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' ' '`
17282 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17283 fi
17284
17285 # We used to test for /lib/ld.so.1 and disable shared libraries on
17286 # powerpc, because MkLinux only supported shared libraries with the
17287 # GNU dynamic linker. Since this was broken with cross compilers,
17288 # most powerpc-linux boxes support dynamic linking these days and
17289 # people can always --disable-shared, the test was removed, and we
17290 # assume the GNU/Linux dynamic linker is in use.
17291 dynamic_linker='GNU/Linux ld.so'
17292 ;;
17293
17294 netbsd*)
17295 version_type=sunos
17296 need_lib_prefix=no
17297 need_version=no
17298 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17301 dynamic_linker='NetBSD (a.out) ld.so'
17302 else
17303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17304 soname_spec='${libname}${release}${shared_ext}$major'
17305 dynamic_linker='NetBSD ld.elf_so'
17306 fi
17307 shlibpath_var=LD_LIBRARY_PATH
17308 shlibpath_overrides_runpath=yes
17309 hardcode_into_libs=yes
17310 ;;
17311
17312 newsos6)
17313 version_type=linux
17314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17315 shlibpath_var=LD_LIBRARY_PATH
17316 shlibpath_overrides_runpath=yes
17317 ;;
17318
17319 *nto* | *qnx*)
17320 version_type=qnx
17321 need_lib_prefix=no
17322 need_version=no
17323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17324 soname_spec='${libname}${release}${shared_ext}$major'
17325 shlibpath_var=LD_LIBRARY_PATH
17326 shlibpath_overrides_runpath=no
17327 hardcode_into_libs=yes
17328 dynamic_linker='ldqnx.so'
17329 ;;
17330
17331 openbsd*)
17332 version_type=sunos
17333 sys_lib_dlsearch_path_spec="/usr/lib"
17334 need_lib_prefix=no
17335 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17336 case $host_os in
17337 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17338 *) need_version=no ;;
17339 esac
17340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17342 shlibpath_var=LD_LIBRARY_PATH
17343 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17344 case $host_os in
17345 openbsd2.[89] | openbsd2.[89].*)
17346 shlibpath_overrides_runpath=no
17347 ;;
17348 *)
17349 shlibpath_overrides_runpath=yes
17350 ;;
17351 esac
17352 else
17353 shlibpath_overrides_runpath=yes
17354 fi
17355 ;;
17356
17357 os2*)
17358 libname_spec='$name'
17359 shrext_cmds=".dll"
17360 need_lib_prefix=no
17361 library_names_spec='$libname${shared_ext} $libname.a'
17362 dynamic_linker='OS/2 ld.exe'
17363 shlibpath_var=LIBPATH
17364 ;;
17365
17366 osf3* | osf4* | osf5*)
17367 version_type=osf
17368 need_lib_prefix=no
17369 need_version=no
17370 soname_spec='${libname}${release}${shared_ext}$major'
17371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372 shlibpath_var=LD_LIBRARY_PATH
17373 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17374 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17375 ;;
17376
17377 rdos*)
17378 dynamic_linker=no
17379 ;;
17380
17381 solaris*)
17382 version_type=linux
17383 need_lib_prefix=no
17384 need_version=no
17385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17386 soname_spec='${libname}${release}${shared_ext}$major'
17387 shlibpath_var=LD_LIBRARY_PATH
17388 shlibpath_overrides_runpath=yes
17389 hardcode_into_libs=yes
17390 # ldd complains unless libraries are executable
17391 postinstall_cmds='chmod +x $lib'
17392 ;;
17393
17394 sunos4*)
17395 version_type=sunos
17396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17397 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17398 shlibpath_var=LD_LIBRARY_PATH
17399 shlibpath_overrides_runpath=yes
17400 if test "$with_gnu_ld" = yes; then
17401 need_lib_prefix=no
17402 fi
17403 need_version=yes
17404 ;;
17405
17406 sysv4 | sysv4.3*)
17407 version_type=linux
17408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17409 soname_spec='${libname}${release}${shared_ext}$major'
17410 shlibpath_var=LD_LIBRARY_PATH
17411 case $host_vendor in
17412 sni)
17413 shlibpath_overrides_runpath=no
17414 need_lib_prefix=no
17415 runpath_var=LD_RUN_PATH
17416 ;;
17417 siemens)
17418 need_lib_prefix=no
17419 ;;
17420 motorola)
17421 need_lib_prefix=no
17422 need_version=no
17423 shlibpath_overrides_runpath=no
17424 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17425 ;;
17426 esac
17427 ;;
17428
17429 sysv4*MP*)
17430 if test -d /usr/nec ;then
17431 version_type=linux
17432 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17433 soname_spec='$libname${shared_ext}.$major'
17434 shlibpath_var=LD_LIBRARY_PATH
17435 fi
17436 ;;
17437
17438 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17439 version_type=freebsd-elf
17440 need_lib_prefix=no
17441 need_version=no
17442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17443 soname_spec='${libname}${release}${shared_ext}$major'
17444 shlibpath_var=LD_LIBRARY_PATH
17445 shlibpath_overrides_runpath=yes
17446 hardcode_into_libs=yes
17447 if test "$with_gnu_ld" = yes; then
17448 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17449 else
17450 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17451 case $host_os in
17452 sco3.2v5*)
17453 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17454 ;;
17455 esac
17456 fi
17457 sys_lib_dlsearch_path_spec='/usr/lib'
17458 ;;
17459
17460 tpf*)
17461 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17462 version_type=linux
17463 need_lib_prefix=no
17464 need_version=no
17465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17466 shlibpath_var=LD_LIBRARY_PATH
17467 shlibpath_overrides_runpath=no
17468 hardcode_into_libs=yes
17469 ;;
17470
17471 uts4*)
17472 version_type=linux
17473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17474 soname_spec='${libname}${release}${shared_ext}$major'
17475 shlibpath_var=LD_LIBRARY_PATH
17476 ;;
17477
17478 *)
17479 dynamic_linker=no
17480 ;;
17481 esac
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17483 $as_echo "$dynamic_linker" >&6; }
17484 test "$dynamic_linker" = no && can_build_shared=no
17485
17486 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17487 if test "$GCC" = yes; then
17488 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17489 fi
17490
17491 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17492 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17493 fi
17494 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17495 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17496 fi
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
17587
17588
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17590 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17591 hardcode_action=
17592 if test -n "$hardcode_libdir_flag_spec" ||
17593 test -n "$runpath_var" ||
17594 test "X$hardcode_automatic" = "Xyes" ; then
17595
17596 # We can hardcode non-existent directories.
17597 if test "$hardcode_direct" != no &&
17598 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17599 # have to relink, otherwise we might link with an installed library
17600 # when we should be linking with a yet-to-be-installed one
17601 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17602 test "$hardcode_minus_L" != no; then
17603 # Linking always hardcodes the temporary library directory.
17604 hardcode_action=relink
17605 else
17606 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17607 hardcode_action=immediate
17608 fi
17609 else
17610 # We cannot hardcode anything, or else we can only hardcode existing
17611 # directories.
17612 hardcode_action=unsupported
17613 fi
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17615 $as_echo "$hardcode_action" >&6; }
17616
17617 if test "$hardcode_action" = relink ||
17618 test "$inherit_rpath" = yes; then
17619 # Fast installation is not supported
17620 enable_fast_install=no
17621 elif test "$shlibpath_overrides_runpath" = yes ||
17622 test "$enable_shared" = no; then
17623 # Fast installation is not necessary
17624 enable_fast_install=needless
17625 fi
17626
17627
17628
17629
17630
17631
17632 if test "x$enable_dlopen" != xyes; then
17633 enable_dlopen=unknown
17634 enable_dlopen_self=unknown
17635 enable_dlopen_self_static=unknown
17636 else
17637 lt_cv_dlopen=no
17638 lt_cv_dlopen_libs=
17639
17640 case $host_os in
17641 beos*)
17642 lt_cv_dlopen="load_add_on"
17643 lt_cv_dlopen_libs=
17644 lt_cv_dlopen_self=yes
17645 ;;
17646
17647 mingw* | pw32* | cegcc*)
17648 lt_cv_dlopen="LoadLibrary"
17649 lt_cv_dlopen_libs=
17650 ;;
17651
17652 cygwin*)
17653 lt_cv_dlopen="dlopen"
17654 lt_cv_dlopen_libs=
17655 ;;
17656
17657 darwin*)
17658 # if libdl is installed we need to link against it
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17660 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17661 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17662 $as_echo_n "(cached) " >&6
17663 else
17664 ac_check_lib_save_LIBS=$LIBS
17665 LIBS="-ldl $LIBS"
17666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17667 /* end confdefs.h. */
17668
17669 /* Override any GCC internal prototype to avoid an error.
17670 Use char because int might match the return type of a GCC
17671 builtin and then its argument prototype would still apply. */
17672 #ifdef __cplusplus
17673 extern "C"
17674 #endif
17675 char dlopen ();
17676 int
17677 main ()
17678 {
17679 return dlopen ();
17680 ;
17681 return 0;
17682 }
17683 _ACEOF
17684 if ac_fn_c_try_link "$LINENO"; then :
17685 ac_cv_lib_dl_dlopen=yes
17686 else
17687 ac_cv_lib_dl_dlopen=no
17688 fi
17689 rm -f core conftest.err conftest.$ac_objext \
17690 conftest$ac_exeext conftest.$ac_ext
17691 LIBS=$ac_check_lib_save_LIBS
17692 fi
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17694 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17695 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17696 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17697 else
17698
17699 lt_cv_dlopen="dyld"
17700 lt_cv_dlopen_libs=
17701 lt_cv_dlopen_self=yes
17702
17703 fi
17704
17705 ;;
17706
17707 *)
17708 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17709 if test "x$ac_cv_func_shl_load" = x""yes; then :
17710 lt_cv_dlopen="shl_load"
17711 else
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17713 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17714 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17715 $as_echo_n "(cached) " >&6
17716 else
17717 ac_check_lib_save_LIBS=$LIBS
17718 LIBS="-ldld $LIBS"
17719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17720 /* end confdefs.h. */
17721
17722 /* Override any GCC internal prototype to avoid an error.
17723 Use char because int might match the return type of a GCC
17724 builtin and then its argument prototype would still apply. */
17725 #ifdef __cplusplus
17726 extern "C"
17727 #endif
17728 char shl_load ();
17729 int
17730 main ()
17731 {
17732 return shl_load ();
17733 ;
17734 return 0;
17735 }
17736 _ACEOF
17737 if ac_fn_c_try_link "$LINENO"; then :
17738 ac_cv_lib_dld_shl_load=yes
17739 else
17740 ac_cv_lib_dld_shl_load=no
17741 fi
17742 rm -f core conftest.err conftest.$ac_objext \
17743 conftest$ac_exeext conftest.$ac_ext
17744 LIBS=$ac_check_lib_save_LIBS
17745 fi
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17747 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17748 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17749 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17750 else
17751 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17752 if test "x$ac_cv_func_dlopen" = x""yes; then :
17753 lt_cv_dlopen="dlopen"
17754 else
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17756 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17757 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17758 $as_echo_n "(cached) " >&6
17759 else
17760 ac_check_lib_save_LIBS=$LIBS
17761 LIBS="-ldl $LIBS"
17762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17763 /* end confdefs.h. */
17764
17765 /* Override any GCC internal prototype to avoid an error.
17766 Use char because int might match the return type of a GCC
17767 builtin and then its argument prototype would still apply. */
17768 #ifdef __cplusplus
17769 extern "C"
17770 #endif
17771 char dlopen ();
17772 int
17773 main ()
17774 {
17775 return dlopen ();
17776 ;
17777 return 0;
17778 }
17779 _ACEOF
17780 if ac_fn_c_try_link "$LINENO"; then :
17781 ac_cv_lib_dl_dlopen=yes
17782 else
17783 ac_cv_lib_dl_dlopen=no
17784 fi
17785 rm -f core conftest.err conftest.$ac_objext \
17786 conftest$ac_exeext conftest.$ac_ext
17787 LIBS=$ac_check_lib_save_LIBS
17788 fi
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17790 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17791 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17792 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17793 else
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17795 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17796 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17797 $as_echo_n "(cached) " >&6
17798 else
17799 ac_check_lib_save_LIBS=$LIBS
17800 LIBS="-lsvld $LIBS"
17801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17802 /* end confdefs.h. */
17803
17804 /* Override any GCC internal prototype to avoid an error.
17805 Use char because int might match the return type of a GCC
17806 builtin and then its argument prototype would still apply. */
17807 #ifdef __cplusplus
17808 extern "C"
17809 #endif
17810 char dlopen ();
17811 int
17812 main ()
17813 {
17814 return dlopen ();
17815 ;
17816 return 0;
17817 }
17818 _ACEOF
17819 if ac_fn_c_try_link "$LINENO"; then :
17820 ac_cv_lib_svld_dlopen=yes
17821 else
17822 ac_cv_lib_svld_dlopen=no
17823 fi
17824 rm -f core conftest.err conftest.$ac_objext \
17825 conftest$ac_exeext conftest.$ac_ext
17826 LIBS=$ac_check_lib_save_LIBS
17827 fi
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17829 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17830 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17831 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17832 else
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17834 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17835 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17836 $as_echo_n "(cached) " >&6
17837 else
17838 ac_check_lib_save_LIBS=$LIBS
17839 LIBS="-ldld $LIBS"
17840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17841 /* end confdefs.h. */
17842
17843 /* Override any GCC internal prototype to avoid an error.
17844 Use char because int might match the return type of a GCC
17845 builtin and then its argument prototype would still apply. */
17846 #ifdef __cplusplus
17847 extern "C"
17848 #endif
17849 char dld_link ();
17850 int
17851 main ()
17852 {
17853 return dld_link ();
17854 ;
17855 return 0;
17856 }
17857 _ACEOF
17858 if ac_fn_c_try_link "$LINENO"; then :
17859 ac_cv_lib_dld_dld_link=yes
17860 else
17861 ac_cv_lib_dld_dld_link=no
17862 fi
17863 rm -f core conftest.err conftest.$ac_objext \
17864 conftest$ac_exeext conftest.$ac_ext
17865 LIBS=$ac_check_lib_save_LIBS
17866 fi
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17868 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17869 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17870 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17871 fi
17872
17873
17874 fi
17875
17876
17877 fi
17878
17879
17880 fi
17881
17882
17883 fi
17884
17885
17886 fi
17887
17888 ;;
17889 esac
17890
17891 if test "x$lt_cv_dlopen" != xno; then
17892 enable_dlopen=yes
17893 else
17894 enable_dlopen=no
17895 fi
17896
17897 case $lt_cv_dlopen in
17898 dlopen)
17899 save_CPPFLAGS="$CPPFLAGS"
17900 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17901
17902 save_LDFLAGS="$LDFLAGS"
17903 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17904
17905 save_LIBS="$LIBS"
17906 LIBS="$lt_cv_dlopen_libs $LIBS"
17907
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17909 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17910 if test "${lt_cv_dlopen_self+set}" = set; then :
17911 $as_echo_n "(cached) " >&6
17912 else
17913 if test "$cross_compiling" = yes; then :
17914 lt_cv_dlopen_self=cross
17915 else
17916 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17917 lt_status=$lt_dlunknown
17918 cat > conftest.$ac_ext <<_LT_EOF
17919 #line 17919 "configure"
17920 #include "confdefs.h"
17921
17922 #if HAVE_DLFCN_H
17923 #include <dlfcn.h>
17924 #endif
17925
17926 #include <stdio.h>
17927
17928 #ifdef RTLD_GLOBAL
17929 # define LT_DLGLOBAL RTLD_GLOBAL
17930 #else
17931 # ifdef DL_GLOBAL
17932 # define LT_DLGLOBAL DL_GLOBAL
17933 # else
17934 # define LT_DLGLOBAL 0
17935 # endif
17936 #endif
17937
17938 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17939 find out it does not work in some platform. */
17940 #ifndef LT_DLLAZY_OR_NOW
17941 # ifdef RTLD_LAZY
17942 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17943 # else
17944 # ifdef DL_LAZY
17945 # define LT_DLLAZY_OR_NOW DL_LAZY
17946 # else
17947 # ifdef RTLD_NOW
17948 # define LT_DLLAZY_OR_NOW RTLD_NOW
17949 # else
17950 # ifdef DL_NOW
17951 # define LT_DLLAZY_OR_NOW DL_NOW
17952 # else
17953 # define LT_DLLAZY_OR_NOW 0
17954 # endif
17955 # endif
17956 # endif
17957 # endif
17958 #endif
17959
17960 /* When -fvisbility=hidden is used, assume the code has been annotated
17961 correspondingly for the symbols needed. */
17962 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17963 void fnord () __attribute__((visibility("default")));
17964 #endif
17965
17966 void fnord () { int i=42; }
17967 int main ()
17968 {
17969 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17970 int status = $lt_dlunknown;
17971
17972 if (self)
17973 {
17974 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17975 else
17976 {
17977 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17978 else puts (dlerror ());
17979 }
17980 /* dlclose (self); */
17981 }
17982 else
17983 puts (dlerror ());
17984
17985 return status;
17986 }
17987 _LT_EOF
17988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17989 (eval $ac_link) 2>&5
17990 ac_status=$?
17991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17992 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17993 (./conftest; exit; ) >&5 2>/dev/null
17994 lt_status=$?
17995 case x$lt_status in
17996 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17997 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17998 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17999 esac
18000 else :
18001 # compilation failed
18002 lt_cv_dlopen_self=no
18003 fi
18004 fi
18005 rm -fr conftest*
18006
18007
18008 fi
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18010 $as_echo "$lt_cv_dlopen_self" >&6; }
18011
18012 if test "x$lt_cv_dlopen_self" = xyes; then
18013 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18015 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18016 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18017 $as_echo_n "(cached) " >&6
18018 else
18019 if test "$cross_compiling" = yes; then :
18020 lt_cv_dlopen_self_static=cross
18021 else
18022 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18023 lt_status=$lt_dlunknown
18024 cat > conftest.$ac_ext <<_LT_EOF
18025 #line 18025 "configure"
18026 #include "confdefs.h"
18027
18028 #if HAVE_DLFCN_H
18029 #include <dlfcn.h>
18030 #endif
18031
18032 #include <stdio.h>
18033
18034 #ifdef RTLD_GLOBAL
18035 # define LT_DLGLOBAL RTLD_GLOBAL
18036 #else
18037 # ifdef DL_GLOBAL
18038 # define LT_DLGLOBAL DL_GLOBAL
18039 # else
18040 # define LT_DLGLOBAL 0
18041 # endif
18042 #endif
18043
18044 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18045 find out it does not work in some platform. */
18046 #ifndef LT_DLLAZY_OR_NOW
18047 # ifdef RTLD_LAZY
18048 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18049 # else
18050 # ifdef DL_LAZY
18051 # define LT_DLLAZY_OR_NOW DL_LAZY
18052 # else
18053 # ifdef RTLD_NOW
18054 # define LT_DLLAZY_OR_NOW RTLD_NOW
18055 # else
18056 # ifdef DL_NOW
18057 # define LT_DLLAZY_OR_NOW DL_NOW
18058 # else
18059 # define LT_DLLAZY_OR_NOW 0
18060 # endif
18061 # endif
18062 # endif
18063 # endif
18064 #endif
18065
18066 /* When -fvisbility=hidden is used, assume the code has been annotated
18067 correspondingly for the symbols needed. */
18068 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18069 void fnord () __attribute__((visibility("default")));
18070 #endif
18071
18072 void fnord () { int i=42; }
18073 int main ()
18074 {
18075 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18076 int status = $lt_dlunknown;
18077
18078 if (self)
18079 {
18080 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18081 else
18082 {
18083 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18084 else puts (dlerror ());
18085 }
18086 /* dlclose (self); */
18087 }
18088 else
18089 puts (dlerror ());
18090
18091 return status;
18092 }
18093 _LT_EOF
18094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18095 (eval $ac_link) 2>&5
18096 ac_status=$?
18097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18098 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18099 (./conftest; exit; ) >&5 2>/dev/null
18100 lt_status=$?
18101 case x$lt_status in
18102 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18103 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18104 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18105 esac
18106 else :
18107 # compilation failed
18108 lt_cv_dlopen_self_static=no
18109 fi
18110 fi
18111 rm -fr conftest*
18112
18113
18114 fi
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18116 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18117 fi
18118
18119 CPPFLAGS="$save_CPPFLAGS"
18120 LDFLAGS="$save_LDFLAGS"
18121 LIBS="$save_LIBS"
18122 ;;
18123 esac
18124
18125 case $lt_cv_dlopen_self in
18126 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18127 *) enable_dlopen_self=unknown ;;
18128 esac
18129
18130 case $lt_cv_dlopen_self_static in
18131 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18132 *) enable_dlopen_self_static=unknown ;;
18133 esac
18134 fi
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152 striplib=
18153 old_striplib=
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18155 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18156 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18157 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18158 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18160 $as_echo "yes" >&6; }
18161 else
18162 # FIXME - insert some real tests, host_os isn't really good enough
18163 case $host_os in
18164 darwin*)
18165 if test -n "$STRIP" ; then
18166 striplib="$STRIP -x"
18167 old_striplib="$STRIP -S"
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18169 $as_echo "yes" >&6; }
18170 else
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18172 $as_echo "no" >&6; }
18173 fi
18174 ;;
18175 *)
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18177 $as_echo "no" >&6; }
18178 ;;
18179 esac
18180 fi
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193 # Report which library types will actually be built
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18195 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18197 $as_echo "$can_build_shared" >&6; }
18198
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18200 $as_echo_n "checking whether to build shared libraries... " >&6; }
18201 test "$can_build_shared" = "no" && enable_shared=no
18202
18203 # On AIX, shared libraries and static libraries use the same namespace, and
18204 # are all built from PIC.
18205 case $host_os in
18206 aix3*)
18207 test "$enable_shared" = yes && enable_static=no
18208 if test -n "$RANLIB"; then
18209 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18210 postinstall_cmds='$RANLIB $lib'
18211 fi
18212 ;;
18213
18214 aix[4-9]*)
18215 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18216 test "$enable_shared" = yes && enable_static=no
18217 fi
18218 ;;
18219 esac
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18221 $as_echo "$enable_shared" >&6; }
18222
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18224 $as_echo_n "checking whether to build static libraries... " >&6; }
18225 # Make sure either enable_shared or enable_static is yes.
18226 test "$enable_shared" = yes || enable_static=yes
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18228 $as_echo "$enable_static" >&6; }
18229
18230
18231
18232
18233 fi
18234 ac_ext=c
18235 ac_cpp='$CPP $CPPFLAGS'
18236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18239
18240 CC="$lt_save_CC"
18241
18242 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18243 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18244 (test "X$CXX" != "Xg++"))) ; then
18245 ac_ext=cpp
18246 ac_cpp='$CXXCPP $CPPFLAGS'
18247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18251 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18252 if test -z "$CXXCPP"; then
18253 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18254 $as_echo_n "(cached) " >&6
18255 else
18256 # Double quotes because CXXCPP needs to be expanded
18257 for CXXCPP in "$CXX -E" "/lib/cpp"
18258 do
18259 ac_preproc_ok=false
18260 for ac_cxx_preproc_warn_flag in '' yes
18261 do
18262 # Use a header file that comes with gcc, so configuring glibc
18263 # with a fresh cross-compiler works.
18264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18265 # <limits.h> exists even on freestanding compilers.
18266 # On the NeXT, cc -E runs the code through the compiler's parser,
18267 # not just through cpp. "Syntax error" is here to catch this case.
18268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18269 /* end confdefs.h. */
18270 #ifdef __STDC__
18271 # include <limits.h>
18272 #else
18273 # include <assert.h>
18274 #endif
18275 Syntax error
18276 _ACEOF
18277 if ac_fn_cxx_try_cpp "$LINENO"; then :
18278
18279 else
18280 # Broken: fails on valid input.
18281 continue
18282 fi
18283 rm -f conftest.err conftest.$ac_ext
18284
18285 # OK, works on sane cases. Now check whether nonexistent headers
18286 # can be detected and how.
18287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18288 /* end confdefs.h. */
18289 #include <ac_nonexistent.h>
18290 _ACEOF
18291 if ac_fn_cxx_try_cpp "$LINENO"; then :
18292 # Broken: success on invalid input.
18293 continue
18294 else
18295 # Passes both tests.
18296 ac_preproc_ok=:
18297 break
18298 fi
18299 rm -f conftest.err conftest.$ac_ext
18300
18301 done
18302 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18303 rm -f conftest.err conftest.$ac_ext
18304 if $ac_preproc_ok; then :
18305 break
18306 fi
18307
18308 done
18309 ac_cv_prog_CXXCPP=$CXXCPP
18310
18311 fi
18312 CXXCPP=$ac_cv_prog_CXXCPP
18313 else
18314 ac_cv_prog_CXXCPP=$CXXCPP
18315 fi
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18317 $as_echo "$CXXCPP" >&6; }
18318 ac_preproc_ok=false
18319 for ac_cxx_preproc_warn_flag in '' yes
18320 do
18321 # Use a header file that comes with gcc, so configuring glibc
18322 # with a fresh cross-compiler works.
18323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18324 # <limits.h> exists even on freestanding compilers.
18325 # On the NeXT, cc -E runs the code through the compiler's parser,
18326 # not just through cpp. "Syntax error" is here to catch this case.
18327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18328 /* end confdefs.h. */
18329 #ifdef __STDC__
18330 # include <limits.h>
18331 #else
18332 # include <assert.h>
18333 #endif
18334 Syntax error
18335 _ACEOF
18336 if ac_fn_cxx_try_cpp "$LINENO"; then :
18337
18338 else
18339 # Broken: fails on valid input.
18340 continue
18341 fi
18342 rm -f conftest.err conftest.$ac_ext
18343
18344 # OK, works on sane cases. Now check whether nonexistent headers
18345 # can be detected and how.
18346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18347 /* end confdefs.h. */
18348 #include <ac_nonexistent.h>
18349 _ACEOF
18350 if ac_fn_cxx_try_cpp "$LINENO"; then :
18351 # Broken: success on invalid input.
18352 continue
18353 else
18354 # Passes both tests.
18355 ac_preproc_ok=:
18356 break
18357 fi
18358 rm -f conftest.err conftest.$ac_ext
18359
18360 done
18361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18362 rm -f conftest.err conftest.$ac_ext
18363 if $ac_preproc_ok; then :
18364
18365 else
18366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18368 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18369 See \`config.log' for more details." "$LINENO" 5; }
18370 fi
18371
18372 ac_ext=c
18373 ac_cpp='$CPP $CPPFLAGS'
18374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18377
18378 else
18379 _lt_caught_CXX_error=yes
18380 fi
18381
18382 ac_ext=cpp
18383 ac_cpp='$CXXCPP $CPPFLAGS'
18384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18387
18388 archive_cmds_need_lc_CXX=no
18389 allow_undefined_flag_CXX=
18390 always_export_symbols_CXX=no
18391 archive_expsym_cmds_CXX=
18392 compiler_needs_object_CXX=no
18393 export_dynamic_flag_spec_CXX=
18394 hardcode_direct_CXX=no
18395 hardcode_direct_absolute_CXX=no
18396 hardcode_libdir_flag_spec_CXX=
18397 hardcode_libdir_flag_spec_ld_CXX=
18398 hardcode_libdir_separator_CXX=
18399 hardcode_minus_L_CXX=no
18400 hardcode_shlibpath_var_CXX=unsupported
18401 hardcode_automatic_CXX=no
18402 inherit_rpath_CXX=no
18403 module_cmds_CXX=
18404 module_expsym_cmds_CXX=
18405 link_all_deplibs_CXX=unknown
18406 old_archive_cmds_CXX=$old_archive_cmds
18407 reload_flag_CXX=$reload_flag
18408 reload_cmds_CXX=$reload_cmds
18409 no_undefined_flag_CXX=
18410 whole_archive_flag_spec_CXX=
18411 enable_shared_with_static_runtimes_CXX=no
18412
18413 # Source file extension for C++ test sources.
18414 ac_ext=cpp
18415
18416 # Object file extension for compiled C++ test sources.
18417 objext=o
18418 objext_CXX=$objext
18419
18420 # No sense in running all these tests if we already determined that
18421 # the CXX compiler isn't working. Some variables (like enable_shared)
18422 # are currently assumed to apply to all compilers on this platform,
18423 # and will be corrupted by setting them based on a non-working compiler.
18424 if test "$_lt_caught_CXX_error" != yes; then
18425 # Code to be used in simple compile tests
18426 lt_simple_compile_test_code="int some_variable = 0;"
18427
18428 # Code to be used in simple link tests
18429 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18430
18431 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18432
18433
18434
18435
18436
18437
18438 # If no C compiler was specified, use CC.
18439 LTCC=${LTCC-"$CC"}
18440
18441 # If no C compiler flags were specified, use CFLAGS.
18442 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18443
18444 # Allow CC to be a program name with arguments.
18445 compiler=$CC
18446
18447
18448 # save warnings/boilerplate of simple test code
18449 ac_outfile=conftest.$ac_objext
18450 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18451 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18452 _lt_compiler_boilerplate=`cat conftest.err`
18453 $RM conftest*
18454
18455 ac_outfile=conftest.$ac_objext
18456 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18457 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18458 _lt_linker_boilerplate=`cat conftest.err`
18459 $RM -r conftest*
18460
18461
18462 # Allow CC to be a program name with arguments.
18463 lt_save_CC=$CC
18464 lt_save_LD=$LD
18465 lt_save_GCC=$GCC
18466 GCC=$GXX
18467 lt_save_with_gnu_ld=$with_gnu_ld
18468 lt_save_path_LD=$lt_cv_path_LD
18469 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18470 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18471 else
18472 $as_unset lt_cv_prog_gnu_ld
18473 fi
18474 if test -n "${lt_cv_path_LDCXX+set}"; then
18475 lt_cv_path_LD=$lt_cv_path_LDCXX
18476 else
18477 $as_unset lt_cv_path_LD
18478 fi
18479 test -z "${LDCXX+set}" || LD=$LDCXX
18480 CC=${CXX-"c++"}
18481 compiler=$CC
18482 compiler_CXX=$CC
18483 for cc_temp in $compiler""; do
18484 case $cc_temp in
18485 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18486 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18487 \-*) ;;
18488 *) break;;
18489 esac
18490 done
18491 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18492
18493
18494 if test -n "$compiler"; then
18495 # We don't want -fno-exception when compiling C++ code, so set the
18496 # no_builtin_flag separately
18497 if test "$GXX" = yes; then
18498 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18499 else
18500 lt_prog_compiler_no_builtin_flag_CXX=
18501 fi
18502
18503 if test "$GXX" = yes; then
18504 # Set up default GNU C++ configuration
18505
18506
18507
18508 # Check whether --with-gnu-ld was given.
18509 if test "${with_gnu_ld+set}" = set; then :
18510 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18511 else
18512 with_gnu_ld=no
18513 fi
18514
18515 ac_prog=ld
18516 if test "$GCC" = yes; then
18517 # Check if gcc -print-prog-name=ld gives a path.
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18519 $as_echo_n "checking for ld used by $CC... " >&6; }
18520 case $host in
18521 *-*-mingw*)
18522 # gcc leaves a trailing carriage return which upsets mingw
18523 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18524 *)
18525 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18526 esac
18527 case $ac_prog in
18528 # Accept absolute paths.
18529 [\\/]* | ?:[\\/]*)
18530 re_direlt='/[^/][^/]*/\.\./'
18531 # Canonicalize the pathname of ld
18532 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18533 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18534 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18535 done
18536 test -z "$LD" && LD="$ac_prog"
18537 ;;
18538 "")
18539 # If it fails, then pretend we aren't using GCC.
18540 ac_prog=ld
18541 ;;
18542 *)
18543 # If it is relative, then search for the first ld in PATH.
18544 with_gnu_ld=unknown
18545 ;;
18546 esac
18547 elif test "$with_gnu_ld" = yes; then
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18549 $as_echo_n "checking for GNU ld... " >&6; }
18550 else
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18552 $as_echo_n "checking for non-GNU ld... " >&6; }
18553 fi
18554 if test "${lt_cv_path_LD+set}" = set; then :
18555 $as_echo_n "(cached) " >&6
18556 else
18557 if test -z "$LD"; then
18558 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18559 for ac_dir in $PATH; do
18560 IFS="$lt_save_ifs"
18561 test -z "$ac_dir" && ac_dir=.
18562 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18563 lt_cv_path_LD="$ac_dir/$ac_prog"
18564 # Check to see if the program is GNU ld. I'd rather use --version,
18565 # but apparently some variants of GNU ld only accept -v.
18566 # Break only if it was the GNU/non-GNU ld that we prefer.
18567 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18568 *GNU* | *'with BFD'*)
18569 test "$with_gnu_ld" != no && break
18570 ;;
18571 *)
18572 test "$with_gnu_ld" != yes && break
18573 ;;
18574 esac
18575 fi
18576 done
18577 IFS="$lt_save_ifs"
18578 else
18579 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18580 fi
18581 fi
18582
18583 LD="$lt_cv_path_LD"
18584 if test -n "$LD"; then
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18586 $as_echo "$LD" >&6; }
18587 else
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18589 $as_echo "no" >&6; }
18590 fi
18591 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18593 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18594 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18595 $as_echo_n "(cached) " >&6
18596 else
18597 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18598 case `$LD -v 2>&1 </dev/null` in
18599 *GNU* | *'with BFD'*)
18600 lt_cv_prog_gnu_ld=yes
18601 ;;
18602 *)
18603 lt_cv_prog_gnu_ld=no
18604 ;;
18605 esac
18606 fi
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18608 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18609 with_gnu_ld=$lt_cv_prog_gnu_ld
18610
18611
18612
18613
18614
18615
18616
18617 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18618 # archiving commands below assume that GNU ld is being used.
18619 if test "$with_gnu_ld" = yes; then
18620 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18621 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'
18622
18623 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18624 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18625
18626 # If archive_cmds runs LD, not CC, wlarc should be empty
18627 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18628 # investigate it a little bit more. (MM)
18629 wlarc='${wl}'
18630
18631 # ancient GNU ld didn't support --whole-archive et. al.
18632 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18633 $GREP 'no-whole-archive' > /dev/null; then
18634 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18635 else
18636 whole_archive_flag_spec_CXX=
18637 fi
18638 else
18639 with_gnu_ld=no
18640 wlarc=
18641
18642 # A generic and very simple default shared library creation
18643 # command for GNU C++ for the case where it uses the native
18644 # linker, instead of GNU ld. If possible, this setting should
18645 # overridden to take advantage of the native linker features on
18646 # the platform it is being used on.
18647 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18648 fi
18649
18650 # Commands to make compiler produce verbose output that lists
18651 # what "hidden" libraries, object files and flags are used when
18652 # linking a shared library.
18653 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18654
18655 else
18656 GXX=no
18657 with_gnu_ld=no
18658 wlarc=
18659 fi
18660
18661 # PORTME: fill in a description of your system's C++ link characteristics
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18663 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18664 ld_shlibs_CXX=yes
18665 case $host_os in
18666 aix3*)
18667 # FIXME: insert proper C++ library support
18668 ld_shlibs_CXX=no
18669 ;;
18670 aix[4-9]*)
18671 if test "$host_cpu" = ia64; then
18672 # On IA64, the linker does run time linking by default, so we don't
18673 # have to do anything special.
18674 aix_use_runtimelinking=no
18675 exp_sym_flag='-Bexport'
18676 no_entry_flag=""
18677 else
18678 aix_use_runtimelinking=no
18679
18680 # Test if we are trying to use run time linking or normal
18681 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18682 # need to do runtime linking.
18683 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18684 for ld_flag in $LDFLAGS; do
18685 case $ld_flag in
18686 *-brtl*)
18687 aix_use_runtimelinking=yes
18688 break
18689 ;;
18690 esac
18691 done
18692 ;;
18693 esac
18694
18695 exp_sym_flag='-bexport'
18696 no_entry_flag='-bnoentry'
18697 fi
18698
18699 # When large executables or shared objects are built, AIX ld can
18700 # have problems creating the table of contents. If linking a library
18701 # or program results in "error TOC overflow" add -mminimal-toc to
18702 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18703 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18704
18705 archive_cmds_CXX=''
18706 hardcode_direct_CXX=yes
18707 hardcode_direct_absolute_CXX=yes
18708 hardcode_libdir_separator_CXX=':'
18709 link_all_deplibs_CXX=yes
18710 file_list_spec_CXX='${wl}-f,'
18711
18712 if test "$GXX" = yes; then
18713 case $host_os in aix4.[012]|aix4.[012].*)
18714 # We only want to do this on AIX 4.2 and lower, the check
18715 # below for broken collect2 doesn't work under 4.3+
18716 collect2name=`${CC} -print-prog-name=collect2`
18717 if test -f "$collect2name" &&
18718 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18719 then
18720 # We have reworked collect2
18721 :
18722 else
18723 # We have old collect2
18724 hardcode_direct_CXX=unsupported
18725 # It fails to find uninstalled libraries when the uninstalled
18726 # path is not listed in the libpath. Setting hardcode_minus_L
18727 # to unsupported forces relinking
18728 hardcode_minus_L_CXX=yes
18729 hardcode_libdir_flag_spec_CXX='-L$libdir'
18730 hardcode_libdir_separator_CXX=
18731 fi
18732 esac
18733 shared_flag='-shared'
18734 if test "$aix_use_runtimelinking" = yes; then
18735 shared_flag="$shared_flag "'${wl}-G'
18736 fi
18737 else
18738 # not using gcc
18739 if test "$host_cpu" = ia64; then
18740 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18741 # chokes on -Wl,-G. The following line is correct:
18742 shared_flag='-G'
18743 else
18744 if test "$aix_use_runtimelinking" = yes; then
18745 shared_flag='${wl}-G'
18746 else
18747 shared_flag='${wl}-bM:SRE'
18748 fi
18749 fi
18750 fi
18751
18752 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18753 # It seems that -bexpall does not export symbols beginning with
18754 # underscore (_), so it is better to generate a list of symbols to
18755 # export.
18756 always_export_symbols_CXX=yes
18757 if test "$aix_use_runtimelinking" = yes; then
18758 # Warning - without using the other runtime loading flags (-brtl),
18759 # -berok will link without error, but may produce a broken library.
18760 allow_undefined_flag_CXX='-berok'
18761 # Determine the default libpath from the value encoded in an empty
18762 # executable.
18763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18764 /* end confdefs.h. */
18765
18766 int
18767 main ()
18768 {
18769
18770 ;
18771 return 0;
18772 }
18773 _ACEOF
18774 if ac_fn_cxx_try_link "$LINENO"; then :
18775
18776 lt_aix_libpath_sed='
18777 /Import File Strings/,/^$/ {
18778 /^0/ {
18779 s/^0 *\(.*\)$/\1/
18780 p
18781 }
18782 }'
18783 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18784 # Check for a 64-bit object if we didn't find anything.
18785 if test -z "$aix_libpath"; then
18786 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18787 fi
18788 fi
18789 rm -f core conftest.err conftest.$ac_objext \
18790 conftest$ac_exeext conftest.$ac_ext
18791 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18792
18793 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18794
18795 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"
18796 else
18797 if test "$host_cpu" = ia64; then
18798 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18799 allow_undefined_flag_CXX="-z nodefs"
18800 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"
18801 else
18802 # Determine the default libpath from the value encoded in an
18803 # empty executable.
18804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18805 /* end confdefs.h. */
18806
18807 int
18808 main ()
18809 {
18810
18811 ;
18812 return 0;
18813 }
18814 _ACEOF
18815 if ac_fn_cxx_try_link "$LINENO"; then :
18816
18817 lt_aix_libpath_sed='
18818 /Import File Strings/,/^$/ {
18819 /^0/ {
18820 s/^0 *\(.*\)$/\1/
18821 p
18822 }
18823 }'
18824 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18825 # Check for a 64-bit object if we didn't find anything.
18826 if test -z "$aix_libpath"; then
18827 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18828 fi
18829 fi
18830 rm -f core conftest.err conftest.$ac_objext \
18831 conftest$ac_exeext conftest.$ac_ext
18832 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18833
18834 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18835 # Warning - without using the other run time loading flags,
18836 # -berok will link without error, but may produce a broken library.
18837 no_undefined_flag_CXX=' ${wl}-bernotok'
18838 allow_undefined_flag_CXX=' ${wl}-berok'
18839 if test "$with_gnu_ld" = yes; then
18840 # We only use this code for GNU lds that support --whole-archive.
18841 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18842 else
18843 # Exported symbols can be pulled into shared objects from archives
18844 whole_archive_flag_spec_CXX='$convenience'
18845 fi
18846 archive_cmds_need_lc_CXX=yes
18847 # This is similar to how AIX traditionally builds its shared
18848 # libraries.
18849 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'
18850 fi
18851 fi
18852 ;;
18853
18854 beos*)
18855 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18856 allow_undefined_flag_CXX=unsupported
18857 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18858 # support --undefined. This deserves some investigation. FIXME
18859 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18860 else
18861 ld_shlibs_CXX=no
18862 fi
18863 ;;
18864
18865 chorus*)
18866 case $cc_basename in
18867 *)
18868 # FIXME: insert proper C++ library support
18869 ld_shlibs_CXX=no
18870 ;;
18871 esac
18872 ;;
18873
18874 cygwin* | mingw* | pw32* | cegcc*)
18875 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18876 # as there is no search path for DLLs.
18877 hardcode_libdir_flag_spec_CXX='-L$libdir'
18878 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18879 allow_undefined_flag_CXX=unsupported
18880 always_export_symbols_CXX=no
18881 enable_shared_with_static_runtimes_CXX=yes
18882
18883 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18884 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'
18885 # If the export-symbols file already is a .def file (1st line
18886 # is EXPORTS), use it as is; otherwise, prepend...
18887 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18888 cp $export_symbols $output_objdir/$soname.def;
18889 else
18890 echo EXPORTS > $output_objdir/$soname.def;
18891 cat $export_symbols >> $output_objdir/$soname.def;
18892 fi~
18893 $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'
18894 else
18895 ld_shlibs_CXX=no
18896 fi
18897 ;;
18898 darwin* | rhapsody*)
18899
18900
18901 archive_cmds_need_lc_CXX=no
18902 hardcode_direct_CXX=no
18903 hardcode_automatic_CXX=yes
18904 hardcode_shlibpath_var_CXX=unsupported
18905 if test "$lt_cv_ld_force_load" = "yes"; then
18906 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\"`'
18907 else
18908 whole_archive_flag_spec_CXX=''
18909 fi
18910 link_all_deplibs_CXX=yes
18911 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18912 case $cc_basename in
18913 ifort*) _lt_dar_can_shared=yes ;;
18914 *) _lt_dar_can_shared=$GCC ;;
18915 esac
18916 if test "$_lt_dar_can_shared" = "yes"; then
18917 output_verbose_link_cmd=func_echo_all
18918 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}"
18919 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18920 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}"
18921 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}"
18922 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18923 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}"
18924 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}"
18925 fi
18926
18927 else
18928 ld_shlibs_CXX=no
18929 fi
18930
18931 ;;
18932
18933 dgux*)
18934 case $cc_basename in
18935 ec++*)
18936 # FIXME: insert proper C++ library support
18937 ld_shlibs_CXX=no
18938 ;;
18939 ghcx*)
18940 # Green Hills C++ Compiler
18941 # FIXME: insert proper C++ library support
18942 ld_shlibs_CXX=no
18943 ;;
18944 *)
18945 # FIXME: insert proper C++ library support
18946 ld_shlibs_CXX=no
18947 ;;
18948 esac
18949 ;;
18950
18951 freebsd2.*)
18952 # C++ shared libraries reported to be fairly broken before
18953 # switch to ELF
18954 ld_shlibs_CXX=no
18955 ;;
18956
18957 freebsd-elf*)
18958 archive_cmds_need_lc_CXX=no
18959 ;;
18960
18961 freebsd* | dragonfly*)
18962 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18963 # conventions
18964 ld_shlibs_CXX=yes
18965 ;;
18966
18967 gnu*)
18968 ;;
18969
18970 haiku*)
18971 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18972 link_all_deplibs_CXX=yes
18973 ;;
18974
18975 hpux9*)
18976 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18977 hardcode_libdir_separator_CXX=:
18978 export_dynamic_flag_spec_CXX='${wl}-E'
18979 hardcode_direct_CXX=yes
18980 hardcode_minus_L_CXX=yes # Not in the search PATH,
18981 # but as the default
18982 # location of the library.
18983
18984 case $cc_basename in
18985 CC*)
18986 # FIXME: insert proper C++ library support
18987 ld_shlibs_CXX=no
18988 ;;
18989 aCC*)
18990 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'
18991 # Commands to make compiler produce verbose output that lists
18992 # what "hidden" libraries, object files and flags are used when
18993 # linking a shared library.
18994 #
18995 # There doesn't appear to be a way to prevent this compiler from
18996 # explicitly linking system object files so we need to strip them
18997 # from the output so that they don't get included in the library
18998 # dependencies.
18999 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"'
19000 ;;
19001 *)
19002 if test "$GXX" = yes; then
19003 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'
19004 else
19005 # FIXME: insert proper C++ library support
19006 ld_shlibs_CXX=no
19007 fi
19008 ;;
19009 esac
19010 ;;
19011
19012 hpux10*|hpux11*)
19013 if test $with_gnu_ld = no; then
19014 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19015 hardcode_libdir_separator_CXX=:
19016
19017 case $host_cpu in
19018 hppa*64*|ia64*)
19019 ;;
19020 *)
19021 export_dynamic_flag_spec_CXX='${wl}-E'
19022 ;;
19023 esac
19024 fi
19025 case $host_cpu in
19026 hppa*64*|ia64*)
19027 hardcode_direct_CXX=no
19028 hardcode_shlibpath_var_CXX=no
19029 ;;
19030 *)
19031 hardcode_direct_CXX=yes
19032 hardcode_direct_absolute_CXX=yes
19033 hardcode_minus_L_CXX=yes # Not in the search PATH,
19034 # but as the default
19035 # location of the library.
19036 ;;
19037 esac
19038
19039 case $cc_basename in
19040 CC*)
19041 # FIXME: insert proper C++ library support
19042 ld_shlibs_CXX=no
19043 ;;
19044 aCC*)
19045 case $host_cpu in
19046 hppa*64*)
19047 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19048 ;;
19049 ia64*)
19050 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19051 ;;
19052 *)
19053 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19054 ;;
19055 esac
19056 # Commands to make compiler produce verbose output that lists
19057 # what "hidden" libraries, object files and flags are used when
19058 # linking a shared library.
19059 #
19060 # There doesn't appear to be a way to prevent this compiler from
19061 # explicitly linking system object files so we need to strip them
19062 # from the output so that they don't get included in the library
19063 # dependencies.
19064 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"'
19065 ;;
19066 *)
19067 if test "$GXX" = yes; then
19068 if test $with_gnu_ld = no; then
19069 case $host_cpu in
19070 hppa*64*)
19071 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19072 ;;
19073 ia64*)
19074 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19075 ;;
19076 *)
19077 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'
19078 ;;
19079 esac
19080 fi
19081 else
19082 # FIXME: insert proper C++ library support
19083 ld_shlibs_CXX=no
19084 fi
19085 ;;
19086 esac
19087 ;;
19088
19089 interix[3-9]*)
19090 hardcode_direct_CXX=no
19091 hardcode_shlibpath_var_CXX=no
19092 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19093 export_dynamic_flag_spec_CXX='${wl}-E'
19094 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19095 # Instead, shared libraries are loaded at an image base (0x10000000 by
19096 # default) and relocated if they conflict, which is a slow very memory
19097 # consuming and fragmenting process. To avoid this, we pick a random,
19098 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19099 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19100 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'
19101 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'
19102 ;;
19103 irix5* | irix6*)
19104 case $cc_basename in
19105 CC*)
19106 # SGI C++
19107 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'
19108
19109 # Archives containing C++ object files must be created using
19110 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19111 # necessary to make sure instantiated templates are included
19112 # in the archive.
19113 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19114 ;;
19115 *)
19116 if test "$GXX" = yes; then
19117 if test "$with_gnu_ld" = no; then
19118 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'
19119 else
19120 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'
19121 fi
19122 fi
19123 link_all_deplibs_CXX=yes
19124 ;;
19125 esac
19126 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19127 hardcode_libdir_separator_CXX=:
19128 inherit_rpath_CXX=yes
19129 ;;
19130
19131 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19132 case $cc_basename in
19133 KCC*)
19134 # Kuck and Associates, Inc. (KAI) C++ Compiler
19135
19136 # KCC will only create a shared library if the output file
19137 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19138 # to its proper name (with version) after linking.
19139 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'
19140 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'
19141 # Commands to make compiler produce verbose output that lists
19142 # what "hidden" libraries, object files and flags are used when
19143 # linking a shared library.
19144 #
19145 # There doesn't appear to be a way to prevent this compiler from
19146 # explicitly linking system object files so we need to strip them
19147 # from the output so that they don't get included in the library
19148 # dependencies.
19149 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"'
19150
19151 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19152 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19153
19154 # Archives containing C++ object files must be created using
19155 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19156 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19157 ;;
19158 icpc* | ecpc* )
19159 # Intel C++
19160 with_gnu_ld=yes
19161 # version 8.0 and above of icpc choke on multiply defined symbols
19162 # if we add $predep_objects and $postdep_objects, however 7.1 and
19163 # earlier do not add the objects themselves.
19164 case `$CC -V 2>&1` in
19165 *"Version 7."*)
19166 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19167 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'
19168 ;;
19169 *) # Version 8.0 or newer
19170 tmp_idyn=
19171 case $host_cpu in
19172 ia64*) tmp_idyn=' -i_dynamic';;
19173 esac
19174 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19175 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'
19176 ;;
19177 esac
19178 archive_cmds_need_lc_CXX=no
19179 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19180 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19181 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19182 ;;
19183 pgCC* | pgcpp*)
19184 # Portland Group C++ compiler
19185 case `$CC -V` in
19186 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19187 prelink_cmds_CXX='tpldir=Template.dir~
19188 rm -rf $tpldir~
19189 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19190 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19191 old_archive_cmds_CXX='tpldir=Template.dir~
19192 rm -rf $tpldir~
19193 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19194 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19195 $RANLIB $oldlib'
19196 archive_cmds_CXX='tpldir=Template.dir~
19197 rm -rf $tpldir~
19198 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19199 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19200 archive_expsym_cmds_CXX='tpldir=Template.dir~
19201 rm -rf $tpldir~
19202 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19203 $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'
19204 ;;
19205 *) # Version 6 and above use weak symbols
19206 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19207 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'
19208 ;;
19209 esac
19210
19211 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19212 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19213 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'
19214 ;;
19215 cxx*)
19216 # Compaq C++
19217 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19218 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
19219
19220 runpath_var=LD_RUN_PATH
19221 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19222 hardcode_libdir_separator_CXX=:
19223
19224 # Commands to make compiler produce verbose output that lists
19225 # what "hidden" libraries, object files and flags are used when
19226 # linking a shared library.
19227 #
19228 # There doesn't appear to be a way to prevent this compiler from
19229 # explicitly linking system object files so we need to strip them
19230 # from the output so that they don't get included in the library
19231 # dependencies.
19232 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'
19233 ;;
19234 xl* | mpixl* | bgxl*)
19235 # IBM XL 8.0 on PPC, with GNU ld
19236 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19237 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19238 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19239 if test "x$supports_anon_versioning" = xyes; then
19240 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19241 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19242 echo "local: *; };" >> $output_objdir/$libname.ver~
19243 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19244 fi
19245 ;;
19246 *)
19247 case `$CC -V 2>&1 | sed 5q` in
19248 *Sun\ C*)
19249 # Sun C++ 5.9
19250 no_undefined_flag_CXX=' -zdefs'
19251 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19252 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'
19253 hardcode_libdir_flag_spec_CXX='-R$libdir'
19254 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'
19255 compiler_needs_object_CXX=yes
19256
19257 # Not sure whether something based on
19258 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19259 # would be better.
19260 output_verbose_link_cmd='func_echo_all'
19261
19262 # Archives containing C++ object files must be created using
19263 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19264 # necessary to make sure instantiated templates are included
19265 # in the archive.
19266 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19267 ;;
19268 esac
19269 ;;
19270 esac
19271 ;;
19272
19273 lynxos*)
19274 # FIXME: insert proper C++ library support
19275 ld_shlibs_CXX=no
19276 ;;
19277
19278 m88k*)
19279 # FIXME: insert proper C++ library support
19280 ld_shlibs_CXX=no
19281 ;;
19282
19283 mvs*)
19284 case $cc_basename in
19285 cxx*)
19286 # FIXME: insert proper C++ library support
19287 ld_shlibs_CXX=no
19288 ;;
19289 *)
19290 # FIXME: insert proper C++ library support
19291 ld_shlibs_CXX=no
19292 ;;
19293 esac
19294 ;;
19295
19296 netbsd*)
19297 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19298 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19299 wlarc=
19300 hardcode_libdir_flag_spec_CXX='-R$libdir'
19301 hardcode_direct_CXX=yes
19302 hardcode_shlibpath_var_CXX=no
19303 fi
19304 # Workaround some broken pre-1.5 toolchains
19305 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19306 ;;
19307
19308 *nto* | *qnx*)
19309 ld_shlibs_CXX=yes
19310 ;;
19311
19312 openbsd2*)
19313 # C++ shared libraries are fairly broken
19314 ld_shlibs_CXX=no
19315 ;;
19316
19317 openbsd*)
19318 if test -f /usr/libexec/ld.so; then
19319 hardcode_direct_CXX=yes
19320 hardcode_shlibpath_var_CXX=no
19321 hardcode_direct_absolute_CXX=yes
19322 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19323 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19324 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19325 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19326 export_dynamic_flag_spec_CXX='${wl}-E'
19327 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19328 fi
19329 output_verbose_link_cmd=func_echo_all
19330 else
19331 ld_shlibs_CXX=no
19332 fi
19333 ;;
19334
19335 osf3* | osf4* | osf5*)
19336 case $cc_basename in
19337 KCC*)
19338 # Kuck and Associates, Inc. (KAI) C++ Compiler
19339
19340 # KCC will only create a shared library if the output file
19341 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19342 # to its proper name (with version) after linking.
19343 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'
19344
19345 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19346 hardcode_libdir_separator_CXX=:
19347
19348 # Archives containing C++ object files must be created using
19349 # the KAI C++ compiler.
19350 case $host in
19351 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19352 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19353 esac
19354 ;;
19355 RCC*)
19356 # Rational C++ 2.4.1
19357 # FIXME: insert proper C++ library support
19358 ld_shlibs_CXX=no
19359 ;;
19360 cxx*)
19361 case $host in
19362 osf3*)
19363 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19364 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'
19365 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19366 ;;
19367 *)
19368 allow_undefined_flag_CXX=' -expect_unresolved \*'
19369 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'
19370 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19371 echo "-hidden">> $lib.exp~
19372 $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~
19373 $RM $lib.exp'
19374 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19375 ;;
19376 esac
19377
19378 hardcode_libdir_separator_CXX=:
19379
19380 # Commands to make compiler produce verbose output that lists
19381 # what "hidden" libraries, object files and flags are used when
19382 # linking a shared library.
19383 #
19384 # There doesn't appear to be a way to prevent this compiler from
19385 # explicitly linking system object files so we need to strip them
19386 # from the output so that they don't get included in the library
19387 # dependencies.
19388 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"'
19389 ;;
19390 *)
19391 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19392 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19393 case $host in
19394 osf3*)
19395 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'
19396 ;;
19397 *)
19398 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'
19399 ;;
19400 esac
19401
19402 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19403 hardcode_libdir_separator_CXX=:
19404
19405 # Commands to make compiler produce verbose output that lists
19406 # what "hidden" libraries, object files and flags are used when
19407 # linking a shared library.
19408 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19409
19410 else
19411 # FIXME: insert proper C++ library support
19412 ld_shlibs_CXX=no
19413 fi
19414 ;;
19415 esac
19416 ;;
19417
19418 psos*)
19419 # FIXME: insert proper C++ library support
19420 ld_shlibs_CXX=no
19421 ;;
19422
19423 sunos4*)
19424 case $cc_basename in
19425 CC*)
19426 # Sun C++ 4.x
19427 # FIXME: insert proper C++ library support
19428 ld_shlibs_CXX=no
19429 ;;
19430 lcc*)
19431 # Lucid
19432 # FIXME: insert proper C++ library support
19433 ld_shlibs_CXX=no
19434 ;;
19435 *)
19436 # FIXME: insert proper C++ library support
19437 ld_shlibs_CXX=no
19438 ;;
19439 esac
19440 ;;
19441
19442 solaris*)
19443 case $cc_basename in
19444 CC*)
19445 # Sun C++ 4.2, 5.x and Centerline C++
19446 archive_cmds_need_lc_CXX=yes
19447 no_undefined_flag_CXX=' -zdefs'
19448 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19449 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19450 $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'
19451
19452 hardcode_libdir_flag_spec_CXX='-R$libdir'
19453 hardcode_shlibpath_var_CXX=no
19454 case $host_os in
19455 solaris2.[0-5] | solaris2.[0-5].*) ;;
19456 *)
19457 # The compiler driver will combine and reorder linker options,
19458 # but understands `-z linker_flag'.
19459 # Supported since Solaris 2.6 (maybe 2.5.1?)
19460 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19461 ;;
19462 esac
19463 link_all_deplibs_CXX=yes
19464
19465 output_verbose_link_cmd='func_echo_all'
19466
19467 # Archives containing C++ object files must be created using
19468 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19469 # necessary to make sure instantiated templates are included
19470 # in the archive.
19471 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19472 ;;
19473 gcx*)
19474 # Green Hills C++ Compiler
19475 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19476
19477 # The C++ compiler must be used to create the archive.
19478 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19479 ;;
19480 *)
19481 # GNU C++ compiler with Solaris linker
19482 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19483 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19484 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19485 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19486 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19487 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19488
19489 # Commands to make compiler produce verbose output that lists
19490 # what "hidden" libraries, object files and flags are used when
19491 # linking a shared library.
19492 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19493 else
19494 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19495 # platform.
19496 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19497 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19498 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19499
19500 # Commands to make compiler produce verbose output that lists
19501 # what "hidden" libraries, object files and flags are used when
19502 # linking a shared library.
19503 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19504 fi
19505
19506 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19507 case $host_os in
19508 solaris2.[0-5] | solaris2.[0-5].*) ;;
19509 *)
19510 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19511 ;;
19512 esac
19513 fi
19514 ;;
19515 esac
19516 ;;
19517
19518 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19519 no_undefined_flag_CXX='${wl}-z,text'
19520 archive_cmds_need_lc_CXX=no
19521 hardcode_shlibpath_var_CXX=no
19522 runpath_var='LD_RUN_PATH'
19523
19524 case $cc_basename in
19525 CC*)
19526 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19527 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19528 ;;
19529 *)
19530 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19531 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19532 ;;
19533 esac
19534 ;;
19535
19536 sysv5* | sco3.2v5* | sco5v6*)
19537 # Note: We can NOT use -z defs as we might desire, because we do not
19538 # link with -lc, and that would cause any symbols used from libc to
19539 # always be unresolved, which means just about no library would
19540 # ever link correctly. If we're not using GNU ld we use -z text
19541 # though, which does catch some bad symbols but isn't as heavy-handed
19542 # as -z defs.
19543 no_undefined_flag_CXX='${wl}-z,text'
19544 allow_undefined_flag_CXX='${wl}-z,nodefs'
19545 archive_cmds_need_lc_CXX=no
19546 hardcode_shlibpath_var_CXX=no
19547 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19548 hardcode_libdir_separator_CXX=':'
19549 link_all_deplibs_CXX=yes
19550 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19551 runpath_var='LD_RUN_PATH'
19552
19553 case $cc_basename in
19554 CC*)
19555 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19556 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19557 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19558 '"$old_archive_cmds_CXX"
19559 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19560 '"$reload_cmds_CXX"
19561 ;;
19562 *)
19563 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19564 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19565 ;;
19566 esac
19567 ;;
19568
19569 tandem*)
19570 case $cc_basename in
19571 NCC*)
19572 # NonStop-UX NCC 3.20
19573 # FIXME: insert proper C++ library support
19574 ld_shlibs_CXX=no
19575 ;;
19576 *)
19577 # FIXME: insert proper C++ library support
19578 ld_shlibs_CXX=no
19579 ;;
19580 esac
19581 ;;
19582
19583 vxworks*)
19584 # FIXME: insert proper C++ library support
19585 ld_shlibs_CXX=no
19586 ;;
19587
19588 *)
19589 # FIXME: insert proper C++ library support
19590 ld_shlibs_CXX=no
19591 ;;
19592 esac
19593
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19595 $as_echo "$ld_shlibs_CXX" >&6; }
19596 test "$ld_shlibs_CXX" = no && can_build_shared=no
19597
19598 GCC_CXX="$GXX"
19599 LD_CXX="$LD"
19600
19601 ## CAVEAT EMPTOR:
19602 ## There is no encapsulation within the following macros, do not change
19603 ## the running order or otherwise move them around unless you know exactly
19604 ## what you are doing...
19605 # Dependencies to place before and after the object being linked:
19606 predep_objects_CXX=
19607 postdep_objects_CXX=
19608 predeps_CXX=
19609 postdeps_CXX=
19610 compiler_lib_search_path_CXX=
19611
19612 cat > conftest.$ac_ext <<_LT_EOF
19613 class Foo
19614 {
19615 public:
19616 Foo (void) { a = 0; }
19617 private:
19618 int a;
19619 };
19620 _LT_EOF
19621
19622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19623 (eval $ac_compile) 2>&5
19624 ac_status=$?
19625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19626 test $ac_status = 0; }; then
19627 # Parse the compiler output and extract the necessary
19628 # objects, libraries and library flags.
19629
19630 # Sentinel used to keep track of whether or not we are before
19631 # the conftest object file.
19632 pre_test_object_deps_done=no
19633
19634 for p in `eval "$output_verbose_link_cmd"`; do
19635 case $p in
19636
19637 -L* | -R* | -l*)
19638 # Some compilers place space between "-{L,R}" and the path.
19639 # Remove the space.
19640 if test $p = "-L" ||
19641 test $p = "-R"; then
19642 prev=$p
19643 continue
19644 else
19645 prev=
19646 fi
19647
19648 if test "$pre_test_object_deps_done" = no; then
19649 case $p in
19650 -L* | -R*)
19651 # Internal compiler library paths should come after those
19652 # provided the user. The postdeps already come after the
19653 # user supplied libs so there is no need to process them.
19654 if test -z "$compiler_lib_search_path_CXX"; then
19655 compiler_lib_search_path_CXX="${prev}${p}"
19656 else
19657 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19658 fi
19659 ;;
19660 # The "-l" case would never come before the object being
19661 # linked, so don't bother handling this case.
19662 esac
19663 else
19664 if test -z "$postdeps_CXX"; then
19665 postdeps_CXX="${prev}${p}"
19666 else
19667 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19668 fi
19669 fi
19670 ;;
19671
19672 *.$objext)
19673 # This assumes that the test object file only shows up
19674 # once in the compiler output.
19675 if test "$p" = "conftest.$objext"; then
19676 pre_test_object_deps_done=yes
19677 continue
19678 fi
19679
19680 if test "$pre_test_object_deps_done" = no; then
19681 if test -z "$predep_objects_CXX"; then
19682 predep_objects_CXX="$p"
19683 else
19684 predep_objects_CXX="$predep_objects_CXX $p"
19685 fi
19686 else
19687 if test -z "$postdep_objects_CXX"; then
19688 postdep_objects_CXX="$p"
19689 else
19690 postdep_objects_CXX="$postdep_objects_CXX $p"
19691 fi
19692 fi
19693 ;;
19694
19695 *) ;; # Ignore the rest.
19696
19697 esac
19698 done
19699
19700 # Clean up.
19701 rm -f a.out a.exe
19702 else
19703 echo "libtool.m4: error: problem compiling CXX test program"
19704 fi
19705
19706 $RM -f confest.$objext
19707
19708 # PORTME: override above test on systems where it is broken
19709 case $host_os in
19710 interix[3-9]*)
19711 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19712 # hack all around it, let's just trust "g++" to DTRT.
19713 predep_objects_CXX=
19714 postdep_objects_CXX=
19715 postdeps_CXX=
19716 ;;
19717
19718 linux*)
19719 case `$CC -V 2>&1 | sed 5q` in
19720 *Sun\ C*)
19721 # Sun C++ 5.9
19722
19723 # The more standards-conforming stlport4 library is
19724 # incompatible with the Cstd library. Avoid specifying
19725 # it if it's in CXXFLAGS. Ignore libCrun as
19726 # -library=stlport4 depends on it.
19727 case " $CXX $CXXFLAGS " in
19728 *" -library=stlport4 "*)
19729 solaris_use_stlport4=yes
19730 ;;
19731 esac
19732
19733 if test "$solaris_use_stlport4" != yes; then
19734 postdeps_CXX='-library=Cstd -library=Crun'
19735 fi
19736 ;;
19737 esac
19738 ;;
19739
19740 solaris*)
19741 case $cc_basename in
19742 CC*)
19743 # The more standards-conforming stlport4 library is
19744 # incompatible with the Cstd library. Avoid specifying
19745 # it if it's in CXXFLAGS. Ignore libCrun as
19746 # -library=stlport4 depends on it.
19747 case " $CXX $CXXFLAGS " in
19748 *" -library=stlport4 "*)
19749 solaris_use_stlport4=yes
19750 ;;
19751 esac
19752
19753 # Adding this requires a known-good setup of shared libraries for
19754 # Sun compiler versions before 5.6, else PIC objects from an old
19755 # archive will be linked into the output, leading to subtle bugs.
19756 if test "$solaris_use_stlport4" != yes; then
19757 postdeps_CXX='-library=Cstd -library=Crun'
19758 fi
19759 ;;
19760 esac
19761 ;;
19762 esac
19763
19764
19765 case " $postdeps_CXX " in
19766 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19767 esac
19768 compiler_lib_search_dirs_CXX=
19769 if test -n "${compiler_lib_search_path_CXX}"; then
19770 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19771 fi
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
19801
19802
19803 lt_prog_compiler_wl_CXX=
19804 lt_prog_compiler_pic_CXX=
19805 lt_prog_compiler_static_CXX=
19806
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19808 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19809
19810 # C++ specific cases for pic, static, wl, etc.
19811 if test "$GXX" = yes; then
19812 lt_prog_compiler_wl_CXX='-Wl,'
19813 lt_prog_compiler_static_CXX='-static'
19814
19815 case $host_os in
19816 aix*)
19817 # All AIX code is PIC.
19818 if test "$host_cpu" = ia64; then
19819 # AIX 5 now supports IA64 processor
19820 lt_prog_compiler_static_CXX='-Bstatic'
19821 fi
19822 lt_prog_compiler_pic_CXX='-fPIC'
19823 ;;
19824
19825 amigaos*)
19826 case $host_cpu in
19827 powerpc)
19828 # see comment about AmigaOS4 .so support
19829 lt_prog_compiler_pic_CXX='-fPIC'
19830 ;;
19831 m68k)
19832 # FIXME: we need at least 68020 code to build shared libraries, but
19833 # adding the `-m68020' flag to GCC prevents building anything better,
19834 # like `-m68040'.
19835 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19836 ;;
19837 esac
19838 ;;
19839
19840 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19841 # PIC is the default for these OSes.
19842 ;;
19843 mingw* | cygwin* | os2* | pw32* | cegcc*)
19844 # This hack is so that the source file can tell whether it is being
19845 # built for inclusion in a dll (and should export symbols for example).
19846 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19847 # (--disable-auto-import) libraries
19848 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19849 ;;
19850 darwin* | rhapsody*)
19851 # PIC is the default on this platform
19852 # Common symbols not allowed in MH_DYLIB files
19853 lt_prog_compiler_pic_CXX='-fno-common'
19854 ;;
19855 *djgpp*)
19856 # DJGPP does not support shared libraries at all
19857 lt_prog_compiler_pic_CXX=
19858 ;;
19859 haiku*)
19860 # PIC is the default for Haiku.
19861 # The "-static" flag exists, but is broken.
19862 lt_prog_compiler_static_CXX=
19863 ;;
19864 interix[3-9]*)
19865 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19866 # Instead, we relocate shared libraries at runtime.
19867 ;;
19868 sysv4*MP*)
19869 if test -d /usr/nec; then
19870 lt_prog_compiler_pic_CXX=-Kconform_pic
19871 fi
19872 ;;
19873 hpux*)
19874 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19875 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19876 # sets the default TLS model and affects inlining.
19877 case $host_cpu in
19878 hppa*64*)
19879 ;;
19880 *)
19881 lt_prog_compiler_pic_CXX='-fPIC'
19882 ;;
19883 esac
19884 ;;
19885 *qnx* | *nto*)
19886 # QNX uses GNU C++, but need to define -shared option too, otherwise
19887 # it will coredump.
19888 lt_prog_compiler_pic_CXX='-fPIC -shared'
19889 ;;
19890 *)
19891 lt_prog_compiler_pic_CXX='-fPIC'
19892 ;;
19893 esac
19894 else
19895 case $host_os in
19896 aix[4-9]*)
19897 # All AIX code is PIC.
19898 if test "$host_cpu" = ia64; then
19899 # AIX 5 now supports IA64 processor
19900 lt_prog_compiler_static_CXX='-Bstatic'
19901 else
19902 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19903 fi
19904 ;;
19905 chorus*)
19906 case $cc_basename in
19907 cxch68*)
19908 # Green Hills C++ Compiler
19909 # _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"
19910 ;;
19911 esac
19912 ;;
19913 dgux*)
19914 case $cc_basename in
19915 ec++*)
19916 lt_prog_compiler_pic_CXX='-KPIC'
19917 ;;
19918 ghcx*)
19919 # Green Hills C++ Compiler
19920 lt_prog_compiler_pic_CXX='-pic'
19921 ;;
19922 *)
19923 ;;
19924 esac
19925 ;;
19926 freebsd* | dragonfly*)
19927 # FreeBSD uses GNU C++
19928 ;;
19929 hpux9* | hpux10* | hpux11*)
19930 case $cc_basename in
19931 CC*)
19932 lt_prog_compiler_wl_CXX='-Wl,'
19933 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19934 if test "$host_cpu" != ia64; then
19935 lt_prog_compiler_pic_CXX='+Z'
19936 fi
19937 ;;
19938 aCC*)
19939 lt_prog_compiler_wl_CXX='-Wl,'
19940 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19941 case $host_cpu in
19942 hppa*64*|ia64*)
19943 # +Z the default
19944 ;;
19945 *)
19946 lt_prog_compiler_pic_CXX='+Z'
19947 ;;
19948 esac
19949 ;;
19950 *)
19951 ;;
19952 esac
19953 ;;
19954 interix*)
19955 # This is c89, which is MS Visual C++ (no shared libs)
19956 # Anyone wants to do a port?
19957 ;;
19958 irix5* | irix6* | nonstopux*)
19959 case $cc_basename in
19960 CC*)
19961 lt_prog_compiler_wl_CXX='-Wl,'
19962 lt_prog_compiler_static_CXX='-non_shared'
19963 # CC pic flag -KPIC is the default.
19964 ;;
19965 *)
19966 ;;
19967 esac
19968 ;;
19969 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19970 case $cc_basename in
19971 KCC*)
19972 # KAI C++ Compiler
19973 lt_prog_compiler_wl_CXX='--backend -Wl,'
19974 lt_prog_compiler_pic_CXX='-fPIC'
19975 ;;
19976 ecpc* )
19977 # old Intel C++ for x86_64 which still supported -KPIC.
19978 lt_prog_compiler_wl_CXX='-Wl,'
19979 lt_prog_compiler_pic_CXX='-KPIC'
19980 lt_prog_compiler_static_CXX='-static'
19981 ;;
19982 icpc* )
19983 # Intel C++, used to be incompatible with GCC.
19984 # ICC 10 doesn't accept -KPIC any more.
19985 lt_prog_compiler_wl_CXX='-Wl,'
19986 lt_prog_compiler_pic_CXX='-fPIC'
19987 lt_prog_compiler_static_CXX='-static'
19988 ;;
19989 pgCC* | pgcpp*)
19990 # Portland Group C++ compiler
19991 lt_prog_compiler_wl_CXX='-Wl,'
19992 lt_prog_compiler_pic_CXX='-fpic'
19993 lt_prog_compiler_static_CXX='-Bstatic'
19994 ;;
19995 cxx*)
19996 # Compaq C++
19997 # Make sure the PIC flag is empty. It appears that all Alpha
19998 # Linux and Compaq Tru64 Unix objects are PIC.
19999 lt_prog_compiler_pic_CXX=
20000 lt_prog_compiler_static_CXX='-non_shared'
20001 ;;
20002 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20003 # IBM XL 8.0, 9.0 on PPC and BlueGene
20004 lt_prog_compiler_wl_CXX='-Wl,'
20005 lt_prog_compiler_pic_CXX='-qpic'
20006 lt_prog_compiler_static_CXX='-qstaticlink'
20007 ;;
20008 *)
20009 case `$CC -V 2>&1 | sed 5q` in
20010 *Sun\ C*)
20011 # Sun C++ 5.9
20012 lt_prog_compiler_pic_CXX='-KPIC'
20013 lt_prog_compiler_static_CXX='-Bstatic'
20014 lt_prog_compiler_wl_CXX='-Qoption ld '
20015 ;;
20016 esac
20017 ;;
20018 esac
20019 ;;
20020 lynxos*)
20021 ;;
20022 m88k*)
20023 ;;
20024 mvs*)
20025 case $cc_basename in
20026 cxx*)
20027 lt_prog_compiler_pic_CXX='-W c,exportall'
20028 ;;
20029 *)
20030 ;;
20031 esac
20032 ;;
20033 netbsd*)
20034 ;;
20035 *qnx* | *nto*)
20036 # QNX uses GNU C++, but need to define -shared option too, otherwise
20037 # it will coredump.
20038 lt_prog_compiler_pic_CXX='-fPIC -shared'
20039 ;;
20040 osf3* | osf4* | osf5*)
20041 case $cc_basename in
20042 KCC*)
20043 lt_prog_compiler_wl_CXX='--backend -Wl,'
20044 ;;
20045 RCC*)
20046 # Rational C++ 2.4.1
20047 lt_prog_compiler_pic_CXX='-pic'
20048 ;;
20049 cxx*)
20050 # Digital/Compaq C++
20051 lt_prog_compiler_wl_CXX='-Wl,'
20052 # Make sure the PIC flag is empty. It appears that all Alpha
20053 # Linux and Compaq Tru64 Unix objects are PIC.
20054 lt_prog_compiler_pic_CXX=
20055 lt_prog_compiler_static_CXX='-non_shared'
20056 ;;
20057 *)
20058 ;;
20059 esac
20060 ;;
20061 psos*)
20062 ;;
20063 solaris*)
20064 case $cc_basename in
20065 CC*)
20066 # Sun C++ 4.2, 5.x and Centerline C++
20067 lt_prog_compiler_pic_CXX='-KPIC'
20068 lt_prog_compiler_static_CXX='-Bstatic'
20069 lt_prog_compiler_wl_CXX='-Qoption ld '
20070 ;;
20071 gcx*)
20072 # Green Hills C++ Compiler
20073 lt_prog_compiler_pic_CXX='-PIC'
20074 ;;
20075 *)
20076 ;;
20077 esac
20078 ;;
20079 sunos4*)
20080 case $cc_basename in
20081 CC*)
20082 # Sun C++ 4.x
20083 lt_prog_compiler_pic_CXX='-pic'
20084 lt_prog_compiler_static_CXX='-Bstatic'
20085 ;;
20086 lcc*)
20087 # Lucid
20088 lt_prog_compiler_pic_CXX='-pic'
20089 ;;
20090 *)
20091 ;;
20092 esac
20093 ;;
20094 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20095 case $cc_basename in
20096 CC*)
20097 lt_prog_compiler_wl_CXX='-Wl,'
20098 lt_prog_compiler_pic_CXX='-KPIC'
20099 lt_prog_compiler_static_CXX='-Bstatic'
20100 ;;
20101 esac
20102 ;;
20103 tandem*)
20104 case $cc_basename in
20105 NCC*)
20106 # NonStop-UX NCC 3.20
20107 lt_prog_compiler_pic_CXX='-KPIC'
20108 ;;
20109 *)
20110 ;;
20111 esac
20112 ;;
20113 vxworks*)
20114 ;;
20115 *)
20116 lt_prog_compiler_can_build_shared_CXX=no
20117 ;;
20118 esac
20119 fi
20120
20121 case $host_os in
20122 # For platforms which do not support PIC, -DPIC is meaningless:
20123 *djgpp*)
20124 lt_prog_compiler_pic_CXX=
20125 ;;
20126 *)
20127 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20128 ;;
20129 esac
20130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20131 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20132
20133
20134
20135 #
20136 # Check to make sure the PIC flag actually works.
20137 #
20138 if test -n "$lt_prog_compiler_pic_CXX"; then
20139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20140 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20141 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20142 $as_echo_n "(cached) " >&6
20143 else
20144 lt_cv_prog_compiler_pic_works_CXX=no
20145 ac_outfile=conftest.$ac_objext
20146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20147 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20148 # Insert the option either (1) after the last *FLAGS variable, or
20149 # (2) before a word containing "conftest.", or (3) at the end.
20150 # Note that $ac_compile itself does not contain backslashes and begins
20151 # with a dollar sign (not a hyphen), so the echo should work correctly.
20152 # The option is referenced via a variable to avoid confusing sed.
20153 lt_compile=`echo "$ac_compile" | $SED \
20154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20156 -e 's:$: $lt_compiler_flag:'`
20157 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20158 (eval "$lt_compile" 2>conftest.err)
20159 ac_status=$?
20160 cat conftest.err >&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 if (exit $ac_status) && test -s "$ac_outfile"; then
20163 # The compiler can only warn and ignore the option if not recognized
20164 # So say no if there are warnings other than the usual output.
20165 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20166 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20167 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20168 lt_cv_prog_compiler_pic_works_CXX=yes
20169 fi
20170 fi
20171 $RM conftest*
20172
20173 fi
20174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20175 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20176
20177 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20178 case $lt_prog_compiler_pic_CXX in
20179 "" | " "*) ;;
20180 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20181 esac
20182 else
20183 lt_prog_compiler_pic_CXX=
20184 lt_prog_compiler_can_build_shared_CXX=no
20185 fi
20186
20187 fi
20188
20189
20190
20191 #
20192 # Check to make sure the static flag actually works.
20193 #
20194 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20196 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20197 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20198 $as_echo_n "(cached) " >&6
20199 else
20200 lt_cv_prog_compiler_static_works_CXX=no
20201 save_LDFLAGS="$LDFLAGS"
20202 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20203 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20204 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20205 # The linker can only warn and ignore the option if not recognized
20206 # So say no if there are warnings
20207 if test -s conftest.err; then
20208 # Append any errors to the config.log.
20209 cat conftest.err 1>&5
20210 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20211 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20212 if diff conftest.exp conftest.er2 >/dev/null; then
20213 lt_cv_prog_compiler_static_works_CXX=yes
20214 fi
20215 else
20216 lt_cv_prog_compiler_static_works_CXX=yes
20217 fi
20218 fi
20219 $RM -r conftest*
20220 LDFLAGS="$save_LDFLAGS"
20221
20222 fi
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20224 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20225
20226 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20227 :
20228 else
20229 lt_prog_compiler_static_CXX=
20230 fi
20231
20232
20233
20234
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20236 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20237 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20238 $as_echo_n "(cached) " >&6
20239 else
20240 lt_cv_prog_compiler_c_o_CXX=no
20241 $RM -r conftest 2>/dev/null
20242 mkdir conftest
20243 cd conftest
20244 mkdir out
20245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20246
20247 lt_compiler_flag="-o out/conftest2.$ac_objext"
20248 # Insert the option either (1) after the last *FLAGS variable, or
20249 # (2) before a word containing "conftest.", or (3) at the end.
20250 # Note that $ac_compile itself does not contain backslashes and begins
20251 # with a dollar sign (not a hyphen), so the echo should work correctly.
20252 lt_compile=`echo "$ac_compile" | $SED \
20253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20255 -e 's:$: $lt_compiler_flag:'`
20256 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20257 (eval "$lt_compile" 2>out/conftest.err)
20258 ac_status=$?
20259 cat out/conftest.err >&5
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20262 then
20263 # The compiler can only warn and ignore the option if not recognized
20264 # So say no if there are warnings
20265 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20266 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20267 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20268 lt_cv_prog_compiler_c_o_CXX=yes
20269 fi
20270 fi
20271 chmod u+w . 2>&5
20272 $RM conftest*
20273 # SGI C++ compiler will create directory out/ii_files/ for
20274 # template instantiation
20275 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20276 $RM out/* && rmdir out
20277 cd ..
20278 $RM -r conftest
20279 $RM conftest*
20280
20281 fi
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20283 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20284
20285
20286
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20288 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20289 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20290 $as_echo_n "(cached) " >&6
20291 else
20292 lt_cv_prog_compiler_c_o_CXX=no
20293 $RM -r conftest 2>/dev/null
20294 mkdir conftest
20295 cd conftest
20296 mkdir out
20297 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20298
20299 lt_compiler_flag="-o out/conftest2.$ac_objext"
20300 # Insert the option either (1) after the last *FLAGS variable, or
20301 # (2) before a word containing "conftest.", or (3) at the end.
20302 # Note that $ac_compile itself does not contain backslashes and begins
20303 # with a dollar sign (not a hyphen), so the echo should work correctly.
20304 lt_compile=`echo "$ac_compile" | $SED \
20305 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20307 -e 's:$: $lt_compiler_flag:'`
20308 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20309 (eval "$lt_compile" 2>out/conftest.err)
20310 ac_status=$?
20311 cat out/conftest.err >&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20314 then
20315 # The compiler can only warn and ignore the option if not recognized
20316 # So say no if there are warnings
20317 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20318 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20319 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20320 lt_cv_prog_compiler_c_o_CXX=yes
20321 fi
20322 fi
20323 chmod u+w . 2>&5
20324 $RM conftest*
20325 # SGI C++ compiler will create directory out/ii_files/ for
20326 # template instantiation
20327 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20328 $RM out/* && rmdir out
20329 cd ..
20330 $RM -r conftest
20331 $RM conftest*
20332
20333 fi
20334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20335 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20336
20337
20338
20339
20340 hard_links="nottested"
20341 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20342 # do not overwrite the value of need_locks provided by the user
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20344 $as_echo_n "checking if we can lock with hard links... " >&6; }
20345 hard_links=yes
20346 $RM conftest*
20347 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20348 touch conftest.a
20349 ln conftest.a conftest.b 2>&5 || hard_links=no
20350 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20352 $as_echo "$hard_links" >&6; }
20353 if test "$hard_links" = no; then
20354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20355 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20356 need_locks=warn
20357 fi
20358 else
20359 need_locks=no
20360 fi
20361
20362
20363
20364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20365 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20366
20367 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20368 case $host_os in
20369 aix[4-9]*)
20370 # If we're using GNU nm, then we don't want the "-C" option.
20371 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20372 # Also, AIX nm treats weak defined symbols like other global defined
20373 # symbols, whereas GNU nm marks them as "W".
20374 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20375 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'
20376 else
20377 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'
20378 fi
20379 ;;
20380 pw32*)
20381 export_symbols_cmds_CXX="$ltdll_cmds"
20382 ;;
20383 cygwin* | mingw* | cegcc*)
20384 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'
20385 ;;
20386 *)
20387 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20388 ;;
20389 esac
20390 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20391
20392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20393 $as_echo "$ld_shlibs_CXX" >&6; }
20394 test "$ld_shlibs_CXX" = no && can_build_shared=no
20395
20396 with_gnu_ld_CXX=$with_gnu_ld
20397
20398
20399
20400
20401
20402
20403 #
20404 # Do we need to explicitly link libc?
20405 #
20406 case "x$archive_cmds_need_lc_CXX" in
20407 x|xyes)
20408 # Assume -lc should be added
20409 archive_cmds_need_lc_CXX=yes
20410
20411 if test "$enable_shared" = yes && test "$GCC" = yes; then
20412 case $archive_cmds_CXX in
20413 *'~'*)
20414 # FIXME: we may have to deal with multi-command sequences.
20415 ;;
20416 '$CC '*)
20417 # Test whether the compiler implicitly links with -lc since on some
20418 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20419 # to ld, don't add -lc before -lgcc.
20420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20421 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20422 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20423 $as_echo_n "(cached) " >&6
20424 else
20425 $RM conftest*
20426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20427
20428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20429 (eval $ac_compile) 2>&5
20430 ac_status=$?
20431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20432 test $ac_status = 0; } 2>conftest.err; then
20433 soname=conftest
20434 lib=conftest
20435 libobjs=conftest.$ac_objext
20436 deplibs=
20437 wl=$lt_prog_compiler_wl_CXX
20438 pic_flag=$lt_prog_compiler_pic_CXX
20439 compiler_flags=-v
20440 linker_flags=-v
20441 verstring=
20442 output_objdir=.
20443 libname=conftest
20444 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20445 allow_undefined_flag_CXX=
20446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20447 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20448 ac_status=$?
20449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20450 test $ac_status = 0; }
20451 then
20452 lt_cv_archive_cmds_need_lc_CXX=no
20453 else
20454 lt_cv_archive_cmds_need_lc_CXX=yes
20455 fi
20456 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20457 else
20458 cat conftest.err 1>&5
20459 fi
20460 $RM conftest*
20461
20462 fi
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20464 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20465 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20466 ;;
20467 esac
20468 fi
20469 ;;
20470 esac
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
20532
20533
20534
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20536 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20537
20538 library_names_spec=
20539 libname_spec='lib$name'
20540 soname_spec=
20541 shrext_cmds=".so"
20542 postinstall_cmds=
20543 postuninstall_cmds=
20544 finish_cmds=
20545 finish_eval=
20546 shlibpath_var=
20547 shlibpath_overrides_runpath=unknown
20548 version_type=none
20549 dynamic_linker="$host_os ld.so"
20550 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20551 need_lib_prefix=unknown
20552 hardcode_into_libs=no
20553
20554 # when you set need_version to no, make sure it does not cause -set_version
20555 # flags to be left without arguments
20556 need_version=unknown
20557
20558 case $host_os in
20559 aix3*)
20560 version_type=linux
20561 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20562 shlibpath_var=LIBPATH
20563
20564 # AIX 3 has no versioning support, so we append a major version to the name.
20565 soname_spec='${libname}${release}${shared_ext}$major'
20566 ;;
20567
20568 aix[4-9]*)
20569 version_type=linux
20570 need_lib_prefix=no
20571 need_version=no
20572 hardcode_into_libs=yes
20573 if test "$host_cpu" = ia64; then
20574 # AIX 5 supports IA64
20575 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20576 shlibpath_var=LD_LIBRARY_PATH
20577 else
20578 # With GCC up to 2.95.x, collect2 would create an import file
20579 # for dependence libraries. The import file would start with
20580 # the line `#! .'. This would cause the generated library to
20581 # depend on `.', always an invalid library. This was fixed in
20582 # development snapshots of GCC prior to 3.0.
20583 case $host_os in
20584 aix4 | aix4.[01] | aix4.[01].*)
20585 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20586 echo ' yes '
20587 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20588 :
20589 else
20590 can_build_shared=no
20591 fi
20592 ;;
20593 esac
20594 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20595 # soname into executable. Probably we can add versioning support to
20596 # collect2, so additional links can be useful in future.
20597 if test "$aix_use_runtimelinking" = yes; then
20598 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20599 # instead of lib<name>.a to let people know that these are not
20600 # typical AIX shared libraries.
20601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20602 else
20603 # We preserve .a as extension for shared libraries through AIX4.2
20604 # and later when we are not doing run time linking.
20605 library_names_spec='${libname}${release}.a $libname.a'
20606 soname_spec='${libname}${release}${shared_ext}$major'
20607 fi
20608 shlibpath_var=LIBPATH
20609 fi
20610 ;;
20611
20612 amigaos*)
20613 case $host_cpu in
20614 powerpc)
20615 # Since July 2007 AmigaOS4 officially supports .so libraries.
20616 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20618 ;;
20619 m68k)
20620 library_names_spec='$libname.ixlibrary $libname.a'
20621 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20622 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'
20623 ;;
20624 esac
20625 ;;
20626
20627 beos*)
20628 library_names_spec='${libname}${shared_ext}'
20629 dynamic_linker="$host_os ld.so"
20630 shlibpath_var=LIBRARY_PATH
20631 ;;
20632
20633 bsdi[45]*)
20634 version_type=linux
20635 need_version=no
20636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20637 soname_spec='${libname}${release}${shared_ext}$major'
20638 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20639 shlibpath_var=LD_LIBRARY_PATH
20640 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20641 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20642 # the default ld.so.conf also contains /usr/contrib/lib and
20643 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20644 # libtool to hard-code these into programs
20645 ;;
20646
20647 cygwin* | mingw* | pw32* | cegcc*)
20648 version_type=windows
20649 shrext_cmds=".dll"
20650 need_version=no
20651 need_lib_prefix=no
20652
20653 case $GCC,$host_os in
20654 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20655 library_names_spec='$libname.dll.a'
20656 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20657 postinstall_cmds='base_file=`basename \${file}`~
20658 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20659 dldir=$destdir/`dirname \$dlpath`~
20660 test -d \$dldir || mkdir -p \$dldir~
20661 $install_prog $dir/$dlname \$dldir/$dlname~
20662 chmod a+x \$dldir/$dlname~
20663 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20664 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20665 fi'
20666 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20667 dlpath=$dir/\$dldll~
20668 $RM \$dlpath'
20669 shlibpath_overrides_runpath=yes
20670
20671 case $host_os in
20672 cygwin*)
20673 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20674 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20675
20676 ;;
20677 mingw* | cegcc*)
20678 # MinGW DLLs use traditional 'lib' prefix
20679 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20680 ;;
20681 pw32*)
20682 # pw32 DLLs use 'pw' prefix rather than 'lib'
20683 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20684 ;;
20685 esac
20686 ;;
20687
20688 *)
20689 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20690 ;;
20691 esac
20692 dynamic_linker='Win32 ld.exe'
20693 # FIXME: first we should search . and the directory the executable is in
20694 shlibpath_var=PATH
20695 ;;
20696
20697 darwin* | rhapsody*)
20698 dynamic_linker="$host_os dyld"
20699 version_type=darwin
20700 need_lib_prefix=no
20701 need_version=no
20702 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20703 soname_spec='${libname}${release}${major}$shared_ext'
20704 shlibpath_overrides_runpath=yes
20705 shlibpath_var=DYLD_LIBRARY_PATH
20706 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20707
20708 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20709 ;;
20710
20711 dgux*)
20712 version_type=linux
20713 need_lib_prefix=no
20714 need_version=no
20715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20716 soname_spec='${libname}${release}${shared_ext}$major'
20717 shlibpath_var=LD_LIBRARY_PATH
20718 ;;
20719
20720 freebsd* | dragonfly*)
20721 # DragonFly does not have aout. When/if they implement a new
20722 # versioning mechanism, adjust this.
20723 if test -x /usr/bin/objformat; then
20724 objformat=`/usr/bin/objformat`
20725 else
20726 case $host_os in
20727 freebsd[23].*) objformat=aout ;;
20728 *) objformat=elf ;;
20729 esac
20730 fi
20731 version_type=freebsd-$objformat
20732 case $version_type in
20733 freebsd-elf*)
20734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20735 need_version=no
20736 need_lib_prefix=no
20737 ;;
20738 freebsd-*)
20739 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20740 need_version=yes
20741 ;;
20742 esac
20743 shlibpath_var=LD_LIBRARY_PATH
20744 case $host_os in
20745 freebsd2.*)
20746 shlibpath_overrides_runpath=yes
20747 ;;
20748 freebsd3.[01]* | freebsdelf3.[01]*)
20749 shlibpath_overrides_runpath=yes
20750 hardcode_into_libs=yes
20751 ;;
20752 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20753 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20754 shlibpath_overrides_runpath=no
20755 hardcode_into_libs=yes
20756 ;;
20757 *) # from 4.6 on, and DragonFly
20758 shlibpath_overrides_runpath=yes
20759 hardcode_into_libs=yes
20760 ;;
20761 esac
20762 ;;
20763
20764 gnu*)
20765 version_type=linux
20766 need_lib_prefix=no
20767 need_version=no
20768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20769 soname_spec='${libname}${release}${shared_ext}$major'
20770 shlibpath_var=LD_LIBRARY_PATH
20771 hardcode_into_libs=yes
20772 ;;
20773
20774 haiku*)
20775 version_type=linux
20776 need_lib_prefix=no
20777 need_version=no
20778 dynamic_linker="$host_os runtime_loader"
20779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20780 soname_spec='${libname}${release}${shared_ext}$major'
20781 shlibpath_var=LIBRARY_PATH
20782 shlibpath_overrides_runpath=yes
20783 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20784 hardcode_into_libs=yes
20785 ;;
20786
20787 hpux9* | hpux10* | hpux11*)
20788 # Give a soname corresponding to the major version so that dld.sl refuses to
20789 # link against other versions.
20790 version_type=sunos
20791 need_lib_prefix=no
20792 need_version=no
20793 case $host_cpu in
20794 ia64*)
20795 shrext_cmds='.so'
20796 hardcode_into_libs=yes
20797 dynamic_linker="$host_os dld.so"
20798 shlibpath_var=LD_LIBRARY_PATH
20799 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20801 soname_spec='${libname}${release}${shared_ext}$major'
20802 if test "X$HPUX_IA64_MODE" = X32; then
20803 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20804 else
20805 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20806 fi
20807 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20808 ;;
20809 hppa*64*)
20810 shrext_cmds='.sl'
20811 hardcode_into_libs=yes
20812 dynamic_linker="$host_os dld.sl"
20813 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20814 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20816 soname_spec='${libname}${release}${shared_ext}$major'
20817 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20818 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20819 ;;
20820 *)
20821 shrext_cmds='.sl'
20822 dynamic_linker="$host_os dld.sl"
20823 shlibpath_var=SHLIB_PATH
20824 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20826 soname_spec='${libname}${release}${shared_ext}$major'
20827 ;;
20828 esac
20829 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20830 postinstall_cmds='chmod 555 $lib'
20831 # or fails outright, so override atomically:
20832 install_override_mode=555
20833 ;;
20834
20835 interix[3-9]*)
20836 version_type=linux
20837 need_lib_prefix=no
20838 need_version=no
20839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20840 soname_spec='${libname}${release}${shared_ext}$major'
20841 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20842 shlibpath_var=LD_LIBRARY_PATH
20843 shlibpath_overrides_runpath=no
20844 hardcode_into_libs=yes
20845 ;;
20846
20847 irix5* | irix6* | nonstopux*)
20848 case $host_os in
20849 nonstopux*) version_type=nonstopux ;;
20850 *)
20851 if test "$lt_cv_prog_gnu_ld" = yes; then
20852 version_type=linux
20853 else
20854 version_type=irix
20855 fi ;;
20856 esac
20857 need_lib_prefix=no
20858 need_version=no
20859 soname_spec='${libname}${release}${shared_ext}$major'
20860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20861 case $host_os in
20862 irix5* | nonstopux*)
20863 libsuff= shlibsuff=
20864 ;;
20865 *)
20866 case $LD in # libtool.m4 will add one of these switches to LD
20867 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20868 libsuff= shlibsuff= libmagic=32-bit;;
20869 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20870 libsuff=32 shlibsuff=N32 libmagic=N32;;
20871 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20872 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20873 *) libsuff= shlibsuff= libmagic=never-match;;
20874 esac
20875 ;;
20876 esac
20877 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20878 shlibpath_overrides_runpath=no
20879 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20880 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20881 hardcode_into_libs=yes
20882 ;;
20883
20884 # No shared lib support for Linux oldld, aout, or coff.
20885 linux*oldld* | linux*aout* | linux*coff*)
20886 dynamic_linker=no
20887 ;;
20888
20889 # This must be Linux ELF.
20890 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20891 version_type=linux
20892 need_lib_prefix=no
20893 need_version=no
20894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20895 soname_spec='${libname}${release}${shared_ext}$major'
20896 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20897 shlibpath_var=LD_LIBRARY_PATH
20898 shlibpath_overrides_runpath=no
20899
20900 # Some binutils ld are patched to set DT_RUNPATH
20901 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20902 $as_echo_n "(cached) " >&6
20903 else
20904 lt_cv_shlibpath_overrides_runpath=no
20905 save_LDFLAGS=$LDFLAGS
20906 save_libdir=$libdir
20907 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20908 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20910 /* end confdefs.h. */
20911
20912 int
20913 main ()
20914 {
20915
20916 ;
20917 return 0;
20918 }
20919 _ACEOF
20920 if ac_fn_cxx_try_link "$LINENO"; then :
20921 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20922 lt_cv_shlibpath_overrides_runpath=yes
20923 fi
20924 fi
20925 rm -f core conftest.err conftest.$ac_objext \
20926 conftest$ac_exeext conftest.$ac_ext
20927 LDFLAGS=$save_LDFLAGS
20928 libdir=$save_libdir
20929
20930 fi
20931
20932 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20933
20934 # This implies no fast_install, which is unacceptable.
20935 # Some rework will be needed to allow for fast_install
20936 # before this can be enabled.
20937 hardcode_into_libs=yes
20938
20939 # Append ld.so.conf contents to the search path
20940 if test -f /etc/ld.so.conf; then
20941 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' ' '`
20942 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20943 fi
20944
20945 # We used to test for /lib/ld.so.1 and disable shared libraries on
20946 # powerpc, because MkLinux only supported shared libraries with the
20947 # GNU dynamic linker. Since this was broken with cross compilers,
20948 # most powerpc-linux boxes support dynamic linking these days and
20949 # people can always --disable-shared, the test was removed, and we
20950 # assume the GNU/Linux dynamic linker is in use.
20951 dynamic_linker='GNU/Linux ld.so'
20952 ;;
20953
20954 netbsd*)
20955 version_type=sunos
20956 need_lib_prefix=no
20957 need_version=no
20958 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20961 dynamic_linker='NetBSD (a.out) ld.so'
20962 else
20963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20964 soname_spec='${libname}${release}${shared_ext}$major'
20965 dynamic_linker='NetBSD ld.elf_so'
20966 fi
20967 shlibpath_var=LD_LIBRARY_PATH
20968 shlibpath_overrides_runpath=yes
20969 hardcode_into_libs=yes
20970 ;;
20971
20972 newsos6)
20973 version_type=linux
20974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20975 shlibpath_var=LD_LIBRARY_PATH
20976 shlibpath_overrides_runpath=yes
20977 ;;
20978
20979 *nto* | *qnx*)
20980 version_type=qnx
20981 need_lib_prefix=no
20982 need_version=no
20983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20984 soname_spec='${libname}${release}${shared_ext}$major'
20985 shlibpath_var=LD_LIBRARY_PATH
20986 shlibpath_overrides_runpath=no
20987 hardcode_into_libs=yes
20988 dynamic_linker='ldqnx.so'
20989 ;;
20990
20991 openbsd*)
20992 version_type=sunos
20993 sys_lib_dlsearch_path_spec="/usr/lib"
20994 need_lib_prefix=no
20995 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20996 case $host_os in
20997 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20998 *) need_version=no ;;
20999 esac
21000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21002 shlibpath_var=LD_LIBRARY_PATH
21003 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21004 case $host_os in
21005 openbsd2.[89] | openbsd2.[89].*)
21006 shlibpath_overrides_runpath=no
21007 ;;
21008 *)
21009 shlibpath_overrides_runpath=yes
21010 ;;
21011 esac
21012 else
21013 shlibpath_overrides_runpath=yes
21014 fi
21015 ;;
21016
21017 os2*)
21018 libname_spec='$name'
21019 shrext_cmds=".dll"
21020 need_lib_prefix=no
21021 library_names_spec='$libname${shared_ext} $libname.a'
21022 dynamic_linker='OS/2 ld.exe'
21023 shlibpath_var=LIBPATH
21024 ;;
21025
21026 osf3* | osf4* | osf5*)
21027 version_type=osf
21028 need_lib_prefix=no
21029 need_version=no
21030 soname_spec='${libname}${release}${shared_ext}$major'
21031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21032 shlibpath_var=LD_LIBRARY_PATH
21033 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21034 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21035 ;;
21036
21037 rdos*)
21038 dynamic_linker=no
21039 ;;
21040
21041 solaris*)
21042 version_type=linux
21043 need_lib_prefix=no
21044 need_version=no
21045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21046 soname_spec='${libname}${release}${shared_ext}$major'
21047 shlibpath_var=LD_LIBRARY_PATH
21048 shlibpath_overrides_runpath=yes
21049 hardcode_into_libs=yes
21050 # ldd complains unless libraries are executable
21051 postinstall_cmds='chmod +x $lib'
21052 ;;
21053
21054 sunos4*)
21055 version_type=sunos
21056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21057 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21058 shlibpath_var=LD_LIBRARY_PATH
21059 shlibpath_overrides_runpath=yes
21060 if test "$with_gnu_ld" = yes; then
21061 need_lib_prefix=no
21062 fi
21063 need_version=yes
21064 ;;
21065
21066 sysv4 | sysv4.3*)
21067 version_type=linux
21068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21069 soname_spec='${libname}${release}${shared_ext}$major'
21070 shlibpath_var=LD_LIBRARY_PATH
21071 case $host_vendor in
21072 sni)
21073 shlibpath_overrides_runpath=no
21074 need_lib_prefix=no
21075 runpath_var=LD_RUN_PATH
21076 ;;
21077 siemens)
21078 need_lib_prefix=no
21079 ;;
21080 motorola)
21081 need_lib_prefix=no
21082 need_version=no
21083 shlibpath_overrides_runpath=no
21084 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21085 ;;
21086 esac
21087 ;;
21088
21089 sysv4*MP*)
21090 if test -d /usr/nec ;then
21091 version_type=linux
21092 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21093 soname_spec='$libname${shared_ext}.$major'
21094 shlibpath_var=LD_LIBRARY_PATH
21095 fi
21096 ;;
21097
21098 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21099 version_type=freebsd-elf
21100 need_lib_prefix=no
21101 need_version=no
21102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21103 soname_spec='${libname}${release}${shared_ext}$major'
21104 shlibpath_var=LD_LIBRARY_PATH
21105 shlibpath_overrides_runpath=yes
21106 hardcode_into_libs=yes
21107 if test "$with_gnu_ld" = yes; then
21108 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21109 else
21110 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21111 case $host_os in
21112 sco3.2v5*)
21113 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21114 ;;
21115 esac
21116 fi
21117 sys_lib_dlsearch_path_spec='/usr/lib'
21118 ;;
21119
21120 tpf*)
21121 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21122 version_type=linux
21123 need_lib_prefix=no
21124 need_version=no
21125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21126 shlibpath_var=LD_LIBRARY_PATH
21127 shlibpath_overrides_runpath=no
21128 hardcode_into_libs=yes
21129 ;;
21130
21131 uts4*)
21132 version_type=linux
21133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21134 soname_spec='${libname}${release}${shared_ext}$major'
21135 shlibpath_var=LD_LIBRARY_PATH
21136 ;;
21137
21138 *)
21139 dynamic_linker=no
21140 ;;
21141 esac
21142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21143 $as_echo "$dynamic_linker" >&6; }
21144 test "$dynamic_linker" = no && can_build_shared=no
21145
21146 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21147 if test "$GCC" = yes; then
21148 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21149 fi
21150
21151 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21152 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21153 fi
21154 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21155 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21156 fi
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
21192
21193
21194
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21196 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21197 hardcode_action_CXX=
21198 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21199 test -n "$runpath_var_CXX" ||
21200 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21201
21202 # We can hardcode non-existent directories.
21203 if test "$hardcode_direct_CXX" != no &&
21204 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21205 # have to relink, otherwise we might link with an installed library
21206 # when we should be linking with a yet-to-be-installed one
21207 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21208 test "$hardcode_minus_L_CXX" != no; then
21209 # Linking always hardcodes the temporary library directory.
21210 hardcode_action_CXX=relink
21211 else
21212 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21213 hardcode_action_CXX=immediate
21214 fi
21215 else
21216 # We cannot hardcode anything, or else we can only hardcode existing
21217 # directories.
21218 hardcode_action_CXX=unsupported
21219 fi
21220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21221 $as_echo "$hardcode_action_CXX" >&6; }
21222
21223 if test "$hardcode_action_CXX" = relink ||
21224 test "$inherit_rpath_CXX" = yes; then
21225 # Fast installation is not supported
21226 enable_fast_install=no
21227 elif test "$shlibpath_overrides_runpath" = yes ||
21228 test "$enable_shared" = no; then
21229 # Fast installation is not necessary
21230 enable_fast_install=needless
21231 fi
21232
21233
21234
21235
21236
21237
21238
21239 fi # test -n "$compiler"
21240
21241 CC=$lt_save_CC
21242 LDCXX=$LD
21243 LD=$lt_save_LD
21244 GCC=$lt_save_GCC
21245 with_gnu_ld=$lt_save_with_gnu_ld
21246 lt_cv_path_LDCXX=$lt_cv_path_LD
21247 lt_cv_path_LD=$lt_save_path_LD
21248 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21249 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21250 fi # test "$_lt_caught_CXX_error" != yes
21251
21252 ac_ext=c
21253 ac_cpp='$CPP $CPPFLAGS'
21254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273 # Only expand once:
21274
21275
21276
21277
21278
21279 # Identify the assembler which will work hand-in-glove with the newly
21280 # built GCC, so that we can examine its features. This is the assembler
21281 # which will be driven by the driver program.
21282 #
21283 # If build != host, and we aren't building gas in-tree, we identify a
21284 # build->target assembler and hope that it will have the same features
21285 # as the host->target assembler we'll be using.
21286 gcc_cv_gas_major_version=
21287 gcc_cv_gas_minor_version=
21288 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21289
21290 if test "${gcc_cv_as+set}" = set; then :
21291
21292 else
21293
21294 if test -x "$DEFAULT_ASSEMBLER"; then
21295 gcc_cv_as="$DEFAULT_ASSEMBLER"
21296 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21297 && test -f ../gas/Makefile \
21298 && test x$build = x$host; then
21299 gcc_cv_as=../gas/as-new$build_exeext
21300 elif test -x as$build_exeext; then
21301 # Build using assembler in the current directory.
21302 gcc_cv_as=./as$build_exeext
21303 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21304 gcc_cv_as="$AS_FOR_TARGET"
21305 else
21306 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21307 set dummy $AS_FOR_TARGET; ac_word=$2
21308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21309 $as_echo_n "checking for $ac_word... " >&6; }
21310 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21311 $as_echo_n "(cached) " >&6
21312 else
21313 case $gcc_cv_as in
21314 [\\/]* | ?:[\\/]*)
21315 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21316 ;;
21317 *)
21318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21319 for as_dir in $PATH
21320 do
21321 IFS=$as_save_IFS
21322 test -z "$as_dir" && as_dir=.
21323 for ac_exec_ext in '' $ac_executable_extensions; do
21324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21325 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21327 break 2
21328 fi
21329 done
21330 done
21331 IFS=$as_save_IFS
21332
21333 ;;
21334 esac
21335 fi
21336 gcc_cv_as=$ac_cv_path_gcc_cv_as
21337 if test -n "$gcc_cv_as"; then
21338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21339 $as_echo "$gcc_cv_as" >&6; }
21340 else
21341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21342 $as_echo "no" >&6; }
21343 fi
21344
21345
21346 fi
21347 fi
21348
21349 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21350
21351 case "$ORIGINAL_AS_FOR_TARGET" in
21352 ./as | ./as$build_exeext) ;;
21353 *) ac_config_files="$ac_config_files as:exec-tool.in"
21354 ;;
21355 esac
21356
21357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21358 $as_echo_n "checking what assembler to use... " >&6; }
21359 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21360 # Single tree build which includes gas. We want to prefer it
21361 # over whatever linker top-level may have detected, since
21362 # we'll use what we're building after installation anyway.
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21364 $as_echo "newly built gas" >&6; }
21365 in_tree_gas=yes
21366 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21367 for f in $gcc_cv_as_bfd_srcdir/configure \
21368 $gcc_cv_as_gas_srcdir/configure \
21369 $gcc_cv_as_gas_srcdir/configure.in \
21370 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21371 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21372 if test x$gcc_cv_gas_version != x; then
21373 break
21374 fi
21375 done
21376 case $gcc_cv_gas_version in
21377 VERSION=[0-9]*) ;;
21378 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21379 esac
21380 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21381 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21382 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21383 case $gcc_cv_gas_patch_version in
21384 "") gcc_cv_gas_patch_version="0" ;;
21385 esac
21386 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21387 + $gcc_cv_gas_minor_version \) \* 1000 \
21388 + $gcc_cv_gas_patch_version`
21389
21390 in_tree_gas_is_elf=no
21391 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21392 || (grep 'obj_format = multi' ../gas/Makefile \
21393 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21394 then
21395 in_tree_gas_is_elf=yes
21396 fi
21397 else
21398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21399 $as_echo "$gcc_cv_as" >&6; }
21400 in_tree_gas=no
21401 fi
21402
21403 # Identify the linker which will work hand-in-glove with the newly
21404 # built GCC, so that we can examine its features. This is the linker
21405 # which will be driven by the driver program.
21406 #
21407 # If build != host, and we aren't building gas in-tree, we identify a
21408 # build->target linker and hope that it will have the same features
21409 # as the host->target linker we'll be using.
21410 gcc_cv_gld_major_version=
21411 gcc_cv_gld_minor_version=
21412 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21413 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21414
21415 if test "${gcc_cv_ld+set}" = set; then :
21416
21417 else
21418
21419 if test -x "$DEFAULT_LINKER"; then
21420 gcc_cv_ld="$DEFAULT_LINKER"
21421 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21422 && test -f ../ld/Makefile \
21423 && test x$build = x$host; then
21424 gcc_cv_ld=../ld/ld-new$build_exeext
21425 elif test -x collect-ld$build_exeext; then
21426 # Build using linker in the current directory.
21427 gcc_cv_ld=./collect-ld$build_exeext
21428 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21429 gcc_cv_ld="$LD_FOR_TARGET"
21430 else
21431 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21432 set dummy $LD_FOR_TARGET; ac_word=$2
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21434 $as_echo_n "checking for $ac_word... " >&6; }
21435 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21436 $as_echo_n "(cached) " >&6
21437 else
21438 case $gcc_cv_ld in
21439 [\\/]* | ?:[\\/]*)
21440 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21441 ;;
21442 *)
21443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21444 for as_dir in $PATH
21445 do
21446 IFS=$as_save_IFS
21447 test -z "$as_dir" && as_dir=.
21448 for ac_exec_ext in '' $ac_executable_extensions; do
21449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21450 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21452 break 2
21453 fi
21454 done
21455 done
21456 IFS=$as_save_IFS
21457
21458 ;;
21459 esac
21460 fi
21461 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21462 if test -n "$gcc_cv_ld"; then
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21464 $as_echo "$gcc_cv_ld" >&6; }
21465 else
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21467 $as_echo "no" >&6; }
21468 fi
21469
21470
21471 fi
21472 fi
21473
21474 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21475 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21476 # if the PLUGIN_LD is set ld-new, just have it as ld
21477 # as that is the installed named.
21478 if test x$PLUGIN_LD_SUFFIX = xld-new \
21479 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21480 PLUGIN_LD_SUFFIX=ld
21481 fi
21482
21483 # Check whether --with-plugin-ld was given.
21484 if test "${with_plugin_ld+set}" = set; then :
21485 withval=$with_plugin_ld; if test x"$withval" != x; then
21486 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21487 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21488 fi
21489 fi
21490
21491
21492
21493 cat >>confdefs.h <<_ACEOF
21494 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21495 _ACEOF
21496
21497
21498 # Check to see if we are using gold instead of ld
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21500 $as_echo_n "checking whether we are using gold... " >&6; }
21501 ld_is_gold=no
21502 if test x$gcc_cv_ld != x; then
21503 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21504 | grep "GNU gold" > /dev/null; then
21505 ld_is_gold=yes
21506 fi
21507 fi
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21509 $as_echo "$ld_is_gold" >&6; }
21510
21511 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21512
21513 case "$ORIGINAL_LD_FOR_TARGET" in
21514 ./collect-ld | ./collect-ld$build_exeext) ;;
21515 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21516 ;;
21517 esac
21518
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21520 $as_echo_n "checking what linker to use... " >&6; }
21521 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21522 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21523 # Single tree build which includes ld. We want to prefer it
21524 # over whatever linker top-level may have detected, since
21525 # we'll use what we're building after installation anyway.
21526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21527 $as_echo "newly built ld" >&6; }
21528 in_tree_ld=yes
21529 in_tree_ld_is_elf=no
21530 if (grep 'EMUL = .*elf' ../ld/Makefile \
21531 || grep 'EMUL = .*linux' ../ld/Makefile \
21532 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21533 in_tree_ld_is_elf=yes
21534 elif test "$ld_is_gold" = yes; then
21535 in_tree_ld_is_elf=yes
21536 fi
21537 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
21538 do
21539 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21540 if test x$gcc_cv_gld_version != x; then
21541 break
21542 fi
21543 done
21544 case $gcc_cv_gld_version in
21545 VERSION=[0-9]*) ;;
21546 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21547 esac
21548 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21549 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21550 else
21551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21552 $as_echo "$gcc_cv_ld" >&6; }
21553 in_tree_ld=no
21554 fi
21555
21556 # Figure out what nm we will be using.
21557 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21558 if test "${gcc_cv_nm+set}" = set; then :
21559
21560 else
21561
21562 if test -f $gcc_cv_binutils_srcdir/configure.in \
21563 && test -f ../binutils/Makefile \
21564 && test x$build = x$host; then
21565 gcc_cv_nm=../binutils/nm-new$build_exeext
21566 elif test -x nm$build_exeext; then
21567 gcc_cv_nm=./nm$build_exeext
21568 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21569 gcc_cv_nm="$NM_FOR_TARGET"
21570 else
21571 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21572 set dummy $NM_FOR_TARGET; ac_word=$2
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21574 $as_echo_n "checking for $ac_word... " >&6; }
21575 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21576 $as_echo_n "(cached) " >&6
21577 else
21578 case $gcc_cv_nm in
21579 [\\/]* | ?:[\\/]*)
21580 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21581 ;;
21582 *)
21583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21584 for as_dir in $PATH
21585 do
21586 IFS=$as_save_IFS
21587 test -z "$as_dir" && as_dir=.
21588 for ac_exec_ext in '' $ac_executable_extensions; do
21589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21590 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21592 break 2
21593 fi
21594 done
21595 done
21596 IFS=$as_save_IFS
21597
21598 ;;
21599 esac
21600 fi
21601 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21602 if test -n "$gcc_cv_nm"; then
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21604 $as_echo "$gcc_cv_nm" >&6; }
21605 else
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21607 $as_echo "no" >&6; }
21608 fi
21609
21610
21611 fi
21612 fi
21613
21614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21615 $as_echo_n "checking what nm to use... " >&6; }
21616 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21617 # Single tree build which includes binutils.
21618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21619 $as_echo "newly built nm" >&6; }
21620 in_tree_nm=yes
21621 else
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21623 $as_echo "$gcc_cv_nm" >&6; }
21624 in_tree_nm=no
21625 fi
21626
21627 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21628
21629 case "$ORIGINAL_NM_FOR_TARGET" in
21630 ./nm | ./nm$build_exeext) ;;
21631 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21632 ;;
21633 esac
21634
21635
21636 # Figure out what objdump we will be using.
21637 if test "${gcc_cv_objdump+set}" = set; then :
21638
21639 else
21640
21641 if test -f $gcc_cv_binutils_srcdir/configure.in \
21642 && test -f ../binutils/Makefile \
21643 && test x$build = x$host; then
21644 # Single tree build which includes binutils.
21645 gcc_cv_objdump=../binutils/objdump$build_exeext
21646 elif test -x objdump$build_exeext; then
21647 gcc_cv_objdump=./objdump$build_exeext
21648 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21649 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21650 else
21651 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21652 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21654 $as_echo_n "checking for $ac_word... " >&6; }
21655 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21656 $as_echo_n "(cached) " >&6
21657 else
21658 case $gcc_cv_objdump in
21659 [\\/]* | ?:[\\/]*)
21660 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21661 ;;
21662 *)
21663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21664 for as_dir in $PATH
21665 do
21666 IFS=$as_save_IFS
21667 test -z "$as_dir" && as_dir=.
21668 for ac_exec_ext in '' $ac_executable_extensions; do
21669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21670 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21672 break 2
21673 fi
21674 done
21675 done
21676 IFS=$as_save_IFS
21677
21678 ;;
21679 esac
21680 fi
21681 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21682 if test -n "$gcc_cv_objdump"; then
21683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21684 $as_echo "$gcc_cv_objdump" >&6; }
21685 else
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21687 $as_echo "no" >&6; }
21688 fi
21689
21690
21691 fi
21692 fi
21693
21694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21695 $as_echo_n "checking what objdump to use... " >&6; }
21696 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21697 # Single tree build which includes binutils.
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21699 $as_echo "newly built objdump" >&6; }
21700 elif test x$gcc_cv_objdump = x; then
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21702 $as_echo "not found" >&6; }
21703 else
21704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21705 $as_echo "$gcc_cv_objdump" >&6; }
21706 fi
21707
21708 # Figure out what readelf we will be using.
21709 if test "${gcc_cv_readelf+set}" = set; then :
21710
21711 else
21712
21713 if test -f $gcc_cv_binutils_srcdir/configure.in \
21714 && test -f ../binutils/Makefile \
21715 && test x$build = x$host; then
21716 # Single tree build which includes binutils.
21717 gcc_cv_readelf=../binutils/readelf$build_exeext
21718 elif test -x readelf$build_exeext; then
21719 gcc_cv_readelf=./readelf$build_exeext
21720 else
21721 # Extract the first word of "readelf", so it can be a program name with args.
21722 set dummy readelf; ac_word=$2
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21724 $as_echo_n "checking for $ac_word... " >&6; }
21725 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21726 $as_echo_n "(cached) " >&6
21727 else
21728 case $gcc_cv_readelf in
21729 [\\/]* | ?:[\\/]*)
21730 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21731 ;;
21732 *)
21733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21734 for as_dir in $PATH
21735 do
21736 IFS=$as_save_IFS
21737 test -z "$as_dir" && as_dir=.
21738 for ac_exec_ext in '' $ac_executable_extensions; do
21739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21740 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21742 break 2
21743 fi
21744 done
21745 done
21746 IFS=$as_save_IFS
21747
21748 ;;
21749 esac
21750 fi
21751 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21752 if test -n "$gcc_cv_readelf"; then
21753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21754 $as_echo "$gcc_cv_readelf" >&6; }
21755 else
21756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21757 $as_echo "no" >&6; }
21758 fi
21759
21760
21761 fi
21762 fi
21763
21764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21765 $as_echo_n "checking what readelf to use... " >&6; }
21766 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21767 # Single tree build which includes binutils.
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21769 $as_echo "newly built readelf" >&6; }
21770 elif test x$gcc_cv_readelf = x; then
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21772 $as_echo "not found" >&6; }
21773 else
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21775 $as_echo "$gcc_cv_readelf" >&6; }
21776 fi
21777
21778 # Figure out what assembler alignment features are present.
21779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21780 $as_echo_n "checking assembler flags... " >&6; }
21781 if test "${gcc_cv_as_flags+set}" = set; then :
21782 $as_echo_n "(cached) " >&6
21783 else
21784 case "$target" in
21785 i[34567]86-*-linux*)
21786 gcc_cv_as_flags=--32
21787 ;;
21788 x86_64-*-linux-gnux32)
21789 gcc_cv_as_flags=--x32
21790 ;;
21791 x86_64-*-linux*)
21792 gcc_cv_as_flags=--64
21793 ;;
21794 powerpc*-*-darwin*)
21795 gcc_cv_as_flags="-arch ppc"
21796 ;;
21797 *)
21798 gcc_cv_as_flags=" "
21799 ;;
21800 esac
21801 fi
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21803 $as_echo "$gcc_cv_as_flags" >&6; }
21804
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21806 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21807 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21808 $as_echo_n "(cached) " >&6
21809 else
21810 gcc_cv_as_balign_and_p2align=no
21811 if test $in_tree_gas = yes; then
21812 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21813 then gcc_cv_as_balign_and_p2align=yes
21814 fi
21815 elif test x$gcc_cv_as != x; then
21816 $as_echo '.balign 4
21817 .p2align 2' > conftest.s
21818 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21820 (eval $ac_try) 2>&5
21821 ac_status=$?
21822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21823 test $ac_status = 0; }; }
21824 then
21825 gcc_cv_as_balign_and_p2align=yes
21826 else
21827 echo "configure: failed program was" >&5
21828 cat conftest.s >&5
21829 fi
21830 rm -f conftest.o conftest.s
21831 fi
21832 fi
21833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21834 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21835 if test $gcc_cv_as_balign_and_p2align = yes; then
21836
21837 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21838
21839 fi
21840
21841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21842 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21843 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21844 $as_echo_n "(cached) " >&6
21845 else
21846 gcc_cv_as_max_skip_p2align=no
21847 if test $in_tree_gas = yes; then
21848 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21849 then gcc_cv_as_max_skip_p2align=yes
21850 fi
21851 elif test x$gcc_cv_as != x; then
21852 $as_echo '.p2align 4,,7' > conftest.s
21853 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21855 (eval $ac_try) 2>&5
21856 ac_status=$?
21857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21858 test $ac_status = 0; }; }
21859 then
21860 gcc_cv_as_max_skip_p2align=yes
21861 else
21862 echo "configure: failed program was" >&5
21863 cat conftest.s >&5
21864 fi
21865 rm -f conftest.o conftest.s
21866 fi
21867 fi
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21869 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21870 if test $gcc_cv_as_max_skip_p2align = yes; then
21871
21872 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21873
21874 fi
21875
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21877 $as_echo_n "checking assembler for .literal16... " >&6; }
21878 if test "${gcc_cv_as_literal16+set}" = set; then :
21879 $as_echo_n "(cached) " >&6
21880 else
21881 gcc_cv_as_literal16=no
21882 if test $in_tree_gas = yes; then
21883 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21884 then gcc_cv_as_literal16=yes
21885 fi
21886 elif test x$gcc_cv_as != x; then
21887 $as_echo '.literal16' > conftest.s
21888 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21890 (eval $ac_try) 2>&5
21891 ac_status=$?
21892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21893 test $ac_status = 0; }; }
21894 then
21895 gcc_cv_as_literal16=yes
21896 else
21897 echo "configure: failed program was" >&5
21898 cat conftest.s >&5
21899 fi
21900 rm -f conftest.o conftest.s
21901 fi
21902 fi
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21904 $as_echo "$gcc_cv_as_literal16" >&6; }
21905 if test $gcc_cv_as_literal16 = yes; then
21906
21907 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21908
21909 fi
21910
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21912 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21913 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21914 $as_echo_n "(cached) " >&6
21915 else
21916 gcc_cv_as_subsection_m1=no
21917 if test $in_tree_gas = yes; then
21918 if test $in_tree_gas_is_elf = yes \
21919 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21920 then gcc_cv_as_subsection_m1=yes
21921 fi
21922 elif test x$gcc_cv_as != x; then
21923 $as_echo 'conftest_label1: .word 0
21924 .subsection -1
21925 conftest_label2: .word 0
21926 .previous' > conftest.s
21927 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21929 (eval $ac_try) 2>&5
21930 ac_status=$?
21931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21932 test $ac_status = 0; }; }
21933 then
21934 if test x$gcc_cv_nm != x; then
21935 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21936 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21937 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21938 then :
21939 else gcc_cv_as_subsection_m1=yes
21940 fi
21941 rm -f conftest.nm1 conftest.nm2
21942 fi
21943 else
21944 echo "configure: failed program was" >&5
21945 cat conftest.s >&5
21946 fi
21947 rm -f conftest.o conftest.s
21948 fi
21949 fi
21950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21951 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21952 if test $gcc_cv_as_subsection_m1 = yes; then
21953
21954 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21955
21956 fi
21957
21958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21959 $as_echo_n "checking assembler for .weak... " >&6; }
21960 if test "${gcc_cv_as_weak+set}" = set; then :
21961 $as_echo_n "(cached) " >&6
21962 else
21963 gcc_cv_as_weak=no
21964 if test $in_tree_gas = yes; then
21965 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21966 then gcc_cv_as_weak=yes
21967 fi
21968 elif test x$gcc_cv_as != x; then
21969 $as_echo ' .weak foobar' > conftest.s
21970 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21972 (eval $ac_try) 2>&5
21973 ac_status=$?
21974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21975 test $ac_status = 0; }; }
21976 then
21977 gcc_cv_as_weak=yes
21978 else
21979 echo "configure: failed program was" >&5
21980 cat conftest.s >&5
21981 fi
21982 rm -f conftest.o conftest.s
21983 fi
21984 fi
21985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21986 $as_echo "$gcc_cv_as_weak" >&6; }
21987 if test $gcc_cv_as_weak = yes; then
21988
21989 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21990
21991 fi
21992
21993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21994 $as_echo_n "checking assembler for .weakref... " >&6; }
21995 if test "${gcc_cv_as_weakref+set}" = set; then :
21996 $as_echo_n "(cached) " >&6
21997 else
21998 gcc_cv_as_weakref=no
21999 if test $in_tree_gas = yes; then
22000 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22001 then gcc_cv_as_weakref=yes
22002 fi
22003 elif test x$gcc_cv_as != x; then
22004 $as_echo ' .weakref foobar, barfnot' > conftest.s
22005 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22007 (eval $ac_try) 2>&5
22008 ac_status=$?
22009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22010 test $ac_status = 0; }; }
22011 then
22012 gcc_cv_as_weakref=yes
22013 else
22014 echo "configure: failed program was" >&5
22015 cat conftest.s >&5
22016 fi
22017 rm -f conftest.o conftest.s
22018 fi
22019 fi
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22021 $as_echo "$gcc_cv_as_weakref" >&6; }
22022 if test $gcc_cv_as_weakref = yes; then
22023
22024 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22025
22026 fi
22027
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22029 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22030 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22031 $as_echo_n "(cached) " >&6
22032 else
22033 gcc_cv_as_nsubspa_comdat=no
22034 if test $in_tree_gas = yes; then
22035 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22036 then gcc_cv_as_nsubspa_comdat=yes
22037 fi
22038 elif test x$gcc_cv_as != x; then
22039 $as_echo ' .SPACE $TEXT$
22040 .NSUBSPA $CODE$,COMDAT' > conftest.s
22041 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22043 (eval $ac_try) 2>&5
22044 ac_status=$?
22045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22046 test $ac_status = 0; }; }
22047 then
22048 gcc_cv_as_nsubspa_comdat=yes
22049 else
22050 echo "configure: failed program was" >&5
22051 cat conftest.s >&5
22052 fi
22053 rm -f conftest.o conftest.s
22054 fi
22055 fi
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22057 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22058 if test $gcc_cv_as_nsubspa_comdat = yes; then
22059
22060 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22061
22062 fi
22063
22064 # .hidden needs to be supported in both the assembler and the linker,
22065 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22066 # This is irritatingly difficult to feature test for; we have to check the
22067 # date string after the version number. If we've got an in-tree
22068 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22069 # to be safe.
22070 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22072 $as_echo_n "checking assembler for .hidden... " >&6; }
22073 if test "${gcc_cv_as_hidden+set}" = set; then :
22074 $as_echo_n "(cached) " >&6
22075 else
22076 gcc_cv_as_hidden=no
22077 if test $in_tree_gas = yes; then
22078 if test $in_tree_gas_is_elf = yes \
22079 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22080 then gcc_cv_as_hidden=yes
22081 fi
22082 elif test x$gcc_cv_as != x; then
22083 $as_echo ' .hidden foobar
22084 foobar:' > conftest.s
22085 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22087 (eval $ac_try) 2>&5
22088 ac_status=$?
22089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22090 test $ac_status = 0; }; }
22091 then
22092
22093 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22094 # STV_HIDDEN, so disable .hidden support if so.
22095 case "${target}" in
22096 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22097 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22098 cat > conftest.s <<EOF
22099 .globl hidden
22100 .hidden hidden
22101 hidden:
22102 .globl default
22103 .set default,hidden
22104 EOF
22105 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22106 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22107 grep '\.hidden default' > /dev/null; then
22108 gcc_cv_as_hidden=no
22109 else
22110 gcc_cv_as_hidden=yes
22111 fi
22112 else
22113 # Assume bug is present if objdump is missing.
22114 gcc_cv_as_hidden=no
22115 fi
22116 ;;
22117 *)
22118 gcc_cv_as_hidden=yes
22119 ;;
22120 esac
22121 else
22122 echo "configure: failed program was" >&5
22123 cat conftest.s >&5
22124 fi
22125 rm -f conftest.o conftest.s
22126 fi
22127 fi
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22129 $as_echo "$gcc_cv_as_hidden" >&6; }
22130
22131 case "${target}" in
22132 *-*-darwin*)
22133 # Darwin as has some visibility support, though with a different syntax.
22134 gcc_cv_as_hidden=yes
22135 ;;
22136 esac
22137
22138 # gnu_indirect_function type is an extension proposed at
22139 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22140 # selection of function implementation
22141 # Check whether --enable-gnu-indirect-function was given.
22142 if test "${enable_gnu_indirect_function+set}" = set; then :
22143 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22144 yes | no) ;;
22145 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22146 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22147 esac
22148 else
22149 enable_gnu_indirect_function="$default_gnu_indirect_function"
22150 fi
22151
22152
22153 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22154
22155 cat >>confdefs.h <<_ACEOF
22156 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22157 _ACEOF
22158
22159
22160
22161 if test $in_tree_ld != yes ; then
22162 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22163 if echo "$ld_ver" | grep GNU > /dev/null; then
22164 if test x"$ld_is_gold" = xyes; then
22165 # GNU gold --version looks like this:
22166 #
22167 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22168 #
22169 # We extract the binutils version which is more familiar and specific
22170 # than the gold version.
22171 ld_vers=`echo $ld_ver | sed -n \
22172 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22173 else
22174 # GNU ld --version looks like this:
22175 #
22176 # GNU ld (GNU Binutils) 2.21.51.20110225
22177 ld_vers=`echo $ld_ver | sed -n \
22178 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22179 fi
22180 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'`
22181 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22182 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22183 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22184 else
22185 case "${target}" in
22186 *-*-solaris2*)
22187 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22188 # format.
22189 #
22190 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22191 # /usr/ccs/bin/ld has been configured.
22192 ld_ver=`$gcc_cv_ld -V 2>&1`
22193 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22194 ld_vers=`echo $ld_ver | sed -n \
22195 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22196 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22197 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22198 fi
22199 ;;
22200 esac
22201 fi
22202 fi
22203
22204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22205 $as_echo_n "checking linker for .hidden support... " >&6; }
22206 if test "${gcc_cv_ld_hidden+set}" = set; then :
22207 $as_echo_n "(cached) " >&6
22208 else
22209 if test $in_tree_ld = yes ; then
22210 gcc_cv_ld_hidden=no
22211 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 \
22212 && test $in_tree_ld_is_elf = yes; then
22213 gcc_cv_ld_hidden=yes
22214 fi
22215 else
22216 gcc_cv_ld_hidden=yes
22217 if test x"$ld_is_gold" = xyes; then
22218 :
22219 elif echo "$ld_ver" | grep GNU > /dev/null; then
22220 case "${target}" in
22221 mmix-knuth-mmixware)
22222 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22223 gcc_cv_ld_hidden=no
22224 ;;
22225 esac
22226 if test 0"$ld_date" -lt 20020404; then
22227 if test -n "$ld_date"; then
22228 # If there was date string, but was earlier than 2002-04-04, fail
22229 gcc_cv_ld_hidden=no
22230 elif test -z "$ld_vers"; then
22231 # If there was no date string nor ld version number, something is wrong
22232 gcc_cv_ld_hidden=no
22233 else
22234 test -z "$ld_vers_patch" && ld_vers_patch=0
22235 if test "$ld_vers_major" -lt 2; then
22236 gcc_cv_ld_hidden=no
22237 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22238 gcc_cv_ld_hidden="no"
22239 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22240 gcc_cv_ld_hidden=no
22241 fi
22242 fi
22243 fi
22244 else
22245 case "${target}" in
22246 *-*-darwin*)
22247 # Darwin ld has some visibility support.
22248 gcc_cv_ld_hidden=yes
22249 ;;
22250 hppa64*-*-hpux* | ia64*-*-hpux*)
22251 gcc_cv_ld_hidden=yes
22252 ;;
22253 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22254 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22255 # .symbolic was only added in Solaris 9 12/02.
22256 gcc_cv_ld_hidden=yes
22257 ;;
22258 *)
22259 gcc_cv_ld_hidden=no
22260 ;;
22261 esac
22262 fi
22263 fi
22264 fi
22265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22266 $as_echo "$gcc_cv_ld_hidden" >&6; }
22267 libgcc_visibility=no
22268
22269
22270 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22271 libgcc_visibility=yes
22272
22273 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22274
22275 fi
22276
22277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22278 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22279 gcc_cv_ld_ro_rw_mix=unknown
22280 if test $in_tree_ld = yes ; then
22281 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 \
22282 && test $in_tree_ld_is_elf = yes; then
22283 gcc_cv_ld_ro_rw_mix=read-write
22284 fi
22285 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22286 echo '.section myfoosect, "a"' > conftest1.s
22287 echo '.section myfoosect, "aw"' > conftest2.s
22288 echo '.byte 1' >> conftest2.s
22289 echo '.section myfoosect, "a"' > conftest3.s
22290 echo '.byte 0' >> conftest3.s
22291 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22292 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22293 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22294 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22295 conftest2.o conftest3.o > /dev/null 2>&1; then
22296 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22297 | sed -e '/myfoosect/!d' -e N`
22298 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22299 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22300 gcc_cv_ld_ro_rw_mix=read-only
22301 else
22302 gcc_cv_ld_ro_rw_mix=read-write
22303 fi
22304 fi
22305 fi
22306 rm -f conftest.* conftest[123].*
22307 fi
22308 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22309
22310 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22311
22312 fi
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22314 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22315
22316 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22317 case "${target}" in
22318 *-*-solaris2*)
22319 #
22320 # Solaris 2 ld -V output looks like this for a regular version:
22321 #
22322 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22323 #
22324 # but test versions add stuff at the end:
22325 #
22326 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22327 #
22328 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22329 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22330 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22331 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22332 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22333 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22334 fi
22335 ;;
22336 esac
22337 fi
22338
22339 # Check whether --enable-initfini-array was given.
22340 if test "${enable_initfini_array+set}" = set; then :
22341 enableval=$enable_initfini_array;
22342 else
22343
22344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22345 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22346 if test "${gcc_cv_initfini_array+set}" = set; then :
22347 $as_echo_n "(cached) " >&6
22348 else
22349 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22350 case "${target}" in
22351 ia64-*)
22352 if test "$cross_compiling" = yes; then :
22353 gcc_cv_initfini_array=no
22354 else
22355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22356 /* end confdefs.h. */
22357
22358 #ifndef __ELF__
22359 #error Not an ELF OS
22360 #endif
22361 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22362 if it can be used. */
22363 static int x = -1;
22364 int main (void) { return x; }
22365 int foo (void) { x = 0; }
22366 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22367
22368 _ACEOF
22369 if ac_fn_c_try_run "$LINENO"; then :
22370 gcc_cv_initfini_array=yes
22371 else
22372 gcc_cv_initfini_array=no
22373 fi
22374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22375 conftest.$ac_objext conftest.beam conftest.$ac_ext
22376 fi
22377 ;;
22378 *)
22379 gcc_cv_initfini_array=no
22380 if test $in_tree_ld = yes ; then
22381 if test "$gcc_cv_gld_major_version" -eq 2 \
22382 -a "$gcc_cv_gld_minor_version" -ge 22 \
22383 -o "$gcc_cv_gld_major_version" -gt 2 \
22384 && test $in_tree_ld_is_elf = yes; then
22385 gcc_cv_initfini_array=yes
22386 fi
22387 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22388 cat > conftest.s <<\EOF
22389 .section .dtors,"a",%progbits
22390 .balign 4
22391 .byte 'A', 'A', 'A', 'A'
22392 .section .ctors,"a",%progbits
22393 .balign 4
22394 .byte 'B', 'B', 'B', 'B'
22395 .section .fini_array.65530,"a",%progbits
22396 .balign 4
22397 .byte 'C', 'C', 'C', 'C'
22398 .section .init_array.65530,"a",%progbits
22399 .balign 4
22400 .byte 'D', 'D', 'D', 'D'
22401 .section .dtors.64528,"a",%progbits
22402 .balign 4
22403 .byte 'E', 'E', 'E', 'E'
22404 .section .ctors.64528,"a",%progbits
22405 .balign 4
22406 .byte 'F', 'F', 'F', 'F'
22407 .section .fini_array.01005,"a",%progbits
22408 .balign 4
22409 .byte 'G', 'G', 'G', 'G'
22410 .section .init_array.01005,"a",%progbits
22411 .balign 4
22412 .byte 'H', 'H', 'H', 'H'
22413 .text
22414 .globl _start
22415 _start:
22416 EOF
22417 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22418 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22419 && $gcc_cv_objdump -s -j .init_array conftest \
22420 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22421 && $gcc_cv_objdump -s -j .fini_array conftest \
22422 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22423 gcc_cv_initfini_array=yes
22424 fi
22425 rm -f conftest conftest.*
22426 fi
22427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22428 /* end confdefs.h. */
22429
22430 #ifndef __ELF__
22431 # error Not an ELF OS
22432 #endif
22433 #include <stdlib.h>
22434 #if defined __GLIBC_PREREQ
22435 # if __GLIBC_PREREQ (2, 4)
22436 # else
22437 # error GLIBC 2.4 required
22438 # endif
22439 #else
22440 # if defined __sun__ && defined __svr4__
22441 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22442 # else
22443 # error The C library not known to support .init_array/.fini_array
22444 # endif
22445 #endif
22446
22447 _ACEOF
22448 if ac_fn_c_try_cpp "$LINENO"; then :
22449
22450 else
22451 gcc_cv_initfini_array=no
22452 fi
22453 rm -f conftest.err conftest.$ac_ext;;
22454 esac
22455 else
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22457 $as_echo_n "checking cross compile... guessing... " >&6; }
22458 gcc_cv_initfini_array=no
22459 fi
22460 fi
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22462 $as_echo "$gcc_cv_initfini_array" >&6; }
22463 enable_initfini_array=$gcc_cv_initfini_array
22464
22465 fi
22466
22467 if test $enable_initfini_array = yes; then
22468
22469 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22470
22471 fi
22472
22473 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22475 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22476 if test "${gcc_cv_as_leb128+set}" = set; then :
22477 $as_echo_n "(cached) " >&6
22478 else
22479 gcc_cv_as_leb128=no
22480 if test $in_tree_gas = yes; then
22481 if test $in_tree_gas_is_elf = yes \
22482 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22483 then gcc_cv_as_leb128=yes
22484 fi
22485 elif test x$gcc_cv_as != x; then
22486 $as_echo ' .data
22487 .uleb128 L2 - L1
22488 L1:
22489 .uleb128 1280
22490 .sleb128 -1010
22491 L2:' > conftest.s
22492 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22494 (eval $ac_try) 2>&5
22495 ac_status=$?
22496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22497 test $ac_status = 0; }; }
22498 then
22499 # GAS versions before 2.11 do not support uleb128,
22500 # despite appearing to.
22501 # ??? There exists an elf-specific test that will crash
22502 # the assembler. Perhaps it's better to figure out whether
22503 # arbitrary sections are supported and try the test.
22504 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22505 if echo "$as_ver" | grep GNU > /dev/null; then
22506 as_vers=`echo $as_ver | sed -n \
22507 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22508 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22509 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22510 if test $as_major -eq 2 && test $as_minor -lt 11
22511 then :
22512 else gcc_cv_as_leb128=yes
22513 fi
22514 fi
22515 else
22516 echo "configure: failed program was" >&5
22517 cat conftest.s >&5
22518 fi
22519 rm -f conftest.o conftest.s
22520 fi
22521 fi
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22523 $as_echo "$gcc_cv_as_leb128" >&6; }
22524 if test $gcc_cv_as_leb128 = yes; then
22525
22526 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22527
22528 fi
22529
22530 # Check if we have assembler support for unwind directives.
22531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22532 $as_echo_n "checking assembler for cfi directives... " >&6; }
22533 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22534 $as_echo_n "(cached) " >&6
22535 else
22536 gcc_cv_as_cfi_directive=no
22537 if test x$gcc_cv_as != x; then
22538 $as_echo ' .text
22539 .cfi_startproc
22540 .cfi_offset 0, 0
22541 .cfi_same_value 1
22542 .cfi_def_cfa 1, 2
22543 .cfi_escape 1, 2, 3, 4, 5
22544 .cfi_endproc' > conftest.s
22545 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22547 (eval $ac_try) 2>&5
22548 ac_status=$?
22549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22550 test $ac_status = 0; }; }
22551 then
22552 case "$target" in
22553 *-*-solaris*)
22554 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22555 # read-only and read-write sections, we need to make sure that the
22556 # assembler used emits read-write .eh_frame sections.
22557 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22558 if test "x$gcc_cv_objdump" != x; then
22559 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22560 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22561 gcc_cv_as_cfi_directive=no
22562 else
22563 case "$target" in
22564 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22565 # On Solaris/x86, make sure that GCC and gas agree on using
22566 # read-only .eh_frame sections for 64-bit.
22567 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22568 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22569 sed -e /.eh_frame/!d -e N | \
22570 grep READONLY > /dev/null; then
22571 gcc_cv_as_cfi_directive=yes
22572 else
22573 gcc_cv_as_cfi_directive=no
22574 fi
22575 ;;
22576 *)
22577 gcc_cv_as_cfi_directive=yes
22578 ;;
22579 esac
22580 fi
22581 else
22582 # no objdump, err on the side of caution
22583 gcc_cv_as_cfi_directive=no
22584 fi
22585 else
22586 gcc_cv_as_cfi_directive=yes
22587 fi
22588 ;;
22589 *-*-*)
22590 gcc_cv_as_cfi_directive=yes
22591 ;;
22592 esac
22593 else
22594 echo "configure: failed program was" >&5
22595 cat conftest.s >&5
22596 fi
22597 rm -f conftest.o conftest.s
22598 fi
22599 fi
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22601 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22602
22603 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22605 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22606 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22607 $as_echo_n "(cached) " >&6
22608 else
22609 gcc_cv_as_cfi_advance_working=no
22610 if test x$gcc_cv_as != x; then
22611 $as_echo ' .text
22612 .cfi_startproc
22613 .cfi_adjust_cfa_offset 64
22614 .skip 75040, 0
22615 .cfi_adjust_cfa_offset 128
22616 .cfi_endproc' > conftest.s
22617 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22619 (eval $ac_try) 2>&5
22620 ac_status=$?
22621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22622 test $ac_status = 0; }; }
22623 then
22624
22625 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22626 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22627 gcc_cv_as_cfi_advance_working=yes
22628 fi
22629
22630 else
22631 echo "configure: failed program was" >&5
22632 cat conftest.s >&5
22633 fi
22634 rm -f conftest.o conftest.s
22635 fi
22636 fi
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22638 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22639
22640 else
22641 # no objdump, err on the side of caution
22642 gcc_cv_as_cfi_advance_working=no
22643 fi
22644
22645
22646 cat >>confdefs.h <<_ACEOF
22647 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22648 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22649 _ACEOF
22650
22651
22652
22653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22654 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22655 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22656 $as_echo_n "(cached) " >&6
22657 else
22658 gcc_cv_as_cfi_personality_directive=no
22659 if test x$gcc_cv_as != x; then
22660 $as_echo ' .text
22661 .cfi_startproc
22662 .cfi_personality 0, symbol
22663 .cfi_endproc' > conftest.s
22664 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22666 (eval $ac_try) 2>&5
22667 ac_status=$?
22668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22669 test $ac_status = 0; }; }
22670 then
22671 gcc_cv_as_cfi_personality_directive=yes
22672 else
22673 echo "configure: failed program was" >&5
22674 cat conftest.s >&5
22675 fi
22676 rm -f conftest.o conftest.s
22677 fi
22678 fi
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22680 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22681
22682
22683 cat >>confdefs.h <<_ACEOF
22684 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22685 then echo 1; else echo 0; fi`
22686 _ACEOF
22687
22688
22689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22690 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22691 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22692 $as_echo_n "(cached) " >&6
22693 else
22694 gcc_cv_as_cfi_sections_directive=no
22695 if test x$gcc_cv_as != x; then
22696 $as_echo ' .text
22697 .cfi_sections .debug_frame, .eh_frame
22698 .cfi_startproc
22699 .cfi_endproc' > conftest.s
22700 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22702 (eval $ac_try) 2>&5
22703 ac_status=$?
22704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22705 test $ac_status = 0; }; }
22706 then
22707 case $target_os in
22708 win32 | pe | cygwin* | mingw32* | uwin*)
22709 # Need to check that we generated the correct relocation for the
22710 # .debug_frame section. This was fixed for binutils 2.21.
22711 gcc_cv_as_cfi_sections_directive=no
22712 if test "x$gcc_cv_objdump" != x; then
22713 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22714 grep secrel > /dev/null; then
22715 gcc_cv_as_cfi_sections_directive=yes
22716 fi
22717 fi
22718 ;;
22719 *)
22720 gcc_cv_as_cfi_sections_directive=yes
22721 ;;
22722 esac
22723 else
22724 echo "configure: failed program was" >&5
22725 cat conftest.s >&5
22726 fi
22727 rm -f conftest.o conftest.s
22728 fi
22729 fi
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22731 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22732
22733
22734
22735 cat >>confdefs.h <<_ACEOF
22736 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22737 then echo 1; else echo 0; fi`
22738 _ACEOF
22739
22740
22741 # GAS versions up to and including 2.11.0 may mis-optimize
22742 # .eh_frame data.
22743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22744 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22745 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22746 $as_echo_n "(cached) " >&6
22747 else
22748 gcc_cv_as_eh_frame=no
22749 if test $in_tree_gas = yes; then
22750 if test $in_tree_gas_is_elf = yes \
22751 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22752 then gcc_cv_as_eh_frame=yes
22753 fi
22754 elif test x$gcc_cv_as != x; then
22755 $as_echo ' .text
22756 .LFB1:
22757 .4byte 0
22758 .L1:
22759 .4byte 0
22760 .LFE1:
22761 .section .eh_frame,"aw",@progbits
22762 __FRAME_BEGIN__:
22763 .4byte .LECIE1-.LSCIE1
22764 .LSCIE1:
22765 .4byte 0x0
22766 .byte 0x1
22767 .ascii "z\0"
22768 .byte 0x1
22769 .byte 0x78
22770 .byte 0x1a
22771 .byte 0x0
22772 .byte 0x4
22773 .4byte 1
22774 .p2align 1
22775 .LECIE1:
22776 .LSFDE1:
22777 .4byte .LEFDE1-.LASFDE1
22778 .LASFDE1:
22779 .4byte .LASFDE1-__FRAME_BEGIN__
22780 .4byte .LFB1
22781 .4byte .LFE1-.LFB1
22782 .byte 0x4
22783 .4byte .LFE1-.LFB1
22784 .byte 0x4
22785 .4byte .L1-.LFB1
22786 .LEFDE1:' > conftest.s
22787 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22789 (eval $ac_try) 2>&5
22790 ac_status=$?
22791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22792 test $ac_status = 0; }; }
22793 then
22794 cat > conftest.lit <<EOF
22795 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22796 0010 01000000 12000000 18000000 00000000 ................
22797 0020 08000000 04080000 0044 .........D
22798 EOF
22799 cat > conftest.big <<EOF
22800 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22801 0010 00000001 00000012 00000018 00000000 ................
22802 0020 00000008 04000000 0844 .........D
22803 EOF
22804 # If the assembler didn't choke, and we can objdump,
22805 # and we got the correct data, then succeed.
22806 # The text in the here-document typically retains its unix-style line
22807 # endings, while the output of objdump will use host line endings.
22808 # Therefore, use diff -b for the comparisons.
22809 if test x$gcc_cv_objdump != x \
22810 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22811 | tail -3 > conftest.got \
22812 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22813 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22814 then
22815 gcc_cv_as_eh_frame=yes
22816 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22818 (eval $ac_try) 2>&5
22819 ac_status=$?
22820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22821 test $ac_status = 0; }; }; then
22822 gcc_cv_as_eh_frame=buggy
22823 else
22824 # Uh oh, what do we do now?
22825 gcc_cv_as_eh_frame=no
22826 fi
22827 else
22828 echo "configure: failed program was" >&5
22829 cat conftest.s >&5
22830 fi
22831 rm -f conftest.o conftest.s
22832 fi
22833 fi
22834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22835 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22836
22837
22838 if test $gcc_cv_as_eh_frame = buggy; then
22839
22840 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22841
22842 fi
22843
22844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22845 $as_echo_n "checking assembler for section merging support... " >&6; }
22846 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22847 $as_echo_n "(cached) " >&6
22848 else
22849 gcc_cv_as_shf_merge=no
22850 if test $in_tree_gas = yes; then
22851 if test $in_tree_gas_is_elf = yes \
22852 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22853 then gcc_cv_as_shf_merge=yes
22854 fi
22855 elif test x$gcc_cv_as != x; then
22856 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22857 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22859 (eval $ac_try) 2>&5
22860 ac_status=$?
22861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22862 test $ac_status = 0; }; }
22863 then
22864 gcc_cv_as_shf_merge=yes
22865 else
22866 echo "configure: failed program was" >&5
22867 cat conftest.s >&5
22868 fi
22869 rm -f conftest.o conftest.s
22870 fi
22871 fi
22872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22873 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22874
22875 if test $gcc_cv_as_shf_merge = no; then
22876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22877 $as_echo_n "checking assembler for section merging support... " >&6; }
22878 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22879 $as_echo_n "(cached) " >&6
22880 else
22881 gcc_cv_as_shf_merge=no
22882 if test $in_tree_gas = yes; then
22883 if test $in_tree_gas_is_elf = yes \
22884 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22885 then gcc_cv_as_shf_merge=yes
22886 fi
22887 elif test x$gcc_cv_as != x; then
22888 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22889 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22891 (eval $ac_try) 2>&5
22892 ac_status=$?
22893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22894 test $ac_status = 0; }; }
22895 then
22896 gcc_cv_as_shf_merge=yes
22897 else
22898 echo "configure: failed program was" >&5
22899 cat conftest.s >&5
22900 fi
22901 rm -f conftest.o conftest.s
22902 fi
22903 fi
22904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22905 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22906
22907 fi
22908
22909 cat >>confdefs.h <<_ACEOF
22910 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22911 _ACEOF
22912
22913
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22915 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22916 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22917 $as_echo_n "(cached) " >&6
22918 else
22919 gcc_cv_as_comdat_group=no
22920 if test $in_tree_gas = yes; then
22921 if test $in_tree_gas_is_elf = yes \
22922 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22923 then gcc_cv_as_comdat_group=yes
22924 fi
22925 elif test x$gcc_cv_as != x; then
22926 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22927 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22929 (eval $ac_try) 2>&5
22930 ac_status=$?
22931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22932 test $ac_status = 0; }; }
22933 then
22934 gcc_cv_as_comdat_group=yes
22935 else
22936 echo "configure: failed program was" >&5
22937 cat conftest.s >&5
22938 fi
22939 rm -f conftest.o conftest.s
22940 fi
22941 fi
22942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22943 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22944
22945 if test $gcc_cv_as_comdat_group = yes; then
22946 gcc_cv_as_comdat_group_percent=no
22947 gcc_cv_as_comdat_group_group=no
22948 else
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22950 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22951 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22952 $as_echo_n "(cached) " >&6
22953 else
22954 gcc_cv_as_comdat_group_percent=no
22955 if test $in_tree_gas = yes; then
22956 if test $in_tree_gas_is_elf = yes \
22957 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22958 then gcc_cv_as_comdat_group_percent=yes
22959 fi
22960 elif test x$gcc_cv_as != x; then
22961 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22962 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22964 (eval $ac_try) 2>&5
22965 ac_status=$?
22966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22967 test $ac_status = 0; }; }
22968 then
22969 gcc_cv_as_comdat_group_percent=yes
22970 else
22971 echo "configure: failed program was" >&5
22972 cat conftest.s >&5
22973 fi
22974 rm -f conftest.o conftest.s
22975 fi
22976 fi
22977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22978 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22979
22980 if test $gcc_cv_as_comdat_group_percent = yes; then
22981 gcc_cv_as_comdat_group_group=no
22982 else
22983 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22984 gcc_cv_as_comdat_group_group=no
22985 fi
22986 case "${target}" in
22987 # Sun as uses a completely different syntax.
22988 *-*-solaris2*)
22989 case "${target}" in
22990 sparc*-*-solaris2*)
22991 conftest_s='
22992 .group foo,".text%foo",#comdat
22993 .section ".text%foo", #alloc,#execinstr,#progbits
22994 .globl foo
22995 foo:
22996 '
22997 ;;
22998 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22999 conftest_s='
23000 .group foo,.text%foo,#comdat
23001 .section .text%foo, "ax", @progbits
23002 .globl foo
23003 foo:
23004 '
23005 ;;
23006 esac
23007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23008 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23009 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23010 $as_echo_n "(cached) " >&6
23011 else
23012 gcc_cv_as_comdat_group_group=no
23013 if test x$gcc_cv_as != x; then
23014 $as_echo "$conftest_s" > conftest.s
23015 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23017 (eval $ac_try) 2>&5
23018 ac_status=$?
23019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23020 test $ac_status = 0; }; }
23021 then
23022 gcc_cv_as_comdat_group_group=yes
23023 else
23024 echo "configure: failed program was" >&5
23025 cat conftest.s >&5
23026 fi
23027 rm -f conftest.o conftest.s
23028 fi
23029 fi
23030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23031 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23032
23033 ;;
23034 esac
23035 fi
23036 fi
23037 if test x"$ld_is_gold" = xyes; then
23038 comdat_group=yes
23039 elif test $in_tree_ld = yes ; then
23040 comdat_group=no
23041 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 \
23042 && test $in_tree_ld_is_elf = yes; then
23043 comdat_group=yes
23044 fi
23045 elif echo "$ld_ver" | grep GNU > /dev/null; then
23046 comdat_group=yes
23047 if test 0"$ld_date" -lt 20050308; then
23048 if test -n "$ld_date"; then
23049 # If there was date string, but was earlier than 2005-03-08, fail
23050 comdat_group=no
23051 elif test "$ld_vers_major" -lt 2; then
23052 comdat_group=no
23053 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23054 comdat_group=no
23055 fi
23056 fi
23057 else
23058 case "${target}" in
23059 *-*-solaris2.1[1-9]*)
23060 comdat_group=no
23061 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23062 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23063 # version 1.688.
23064 #
23065 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23066 # least ld version 1.2267.
23067 if test "$ld_vers_major" -gt 1; then
23068 comdat_group=yes
23069 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23070 comdat_group=yes
23071 elif test "$ld_vers_minor" -ge 2267; then
23072 comdat_group=yes
23073 fi
23074 ;;
23075 *)
23076 # Assume linkers other than GNU ld don't support COMDAT group.
23077 comdat_group=no
23078 ;;
23079 esac
23080 fi
23081 # Allow overriding the automatic COMDAT group tests above.
23082 # Check whether --enable-comdat was given.
23083 if test "${enable_comdat+set}" = set; then :
23084 enableval=$enable_comdat; comdat_group="$enable_comdat"
23085 fi
23086
23087 if test $comdat_group = no; then
23088 gcc_cv_as_comdat_group=no
23089 gcc_cv_as_comdat_group_percent=no
23090 gcc_cv_as_comdat_group_group=no
23091 fi
23092
23093 cat >>confdefs.h <<_ACEOF
23094 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23095 || test $gcc_cv_as_comdat_group_percent = yes \
23096 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23097 _ACEOF
23098
23099
23100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23101 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23102 if test "${gcc_cv_as_discriminator+set}" = set; then :
23103 $as_echo_n "(cached) " >&6
23104 else
23105 gcc_cv_as_discriminator=no
23106 if test $in_tree_gas = yes; then
23107 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23108 then gcc_cv_as_discriminator=yes
23109 fi
23110 elif test x$gcc_cv_as != x; then
23111 $as_echo ' .text
23112 .file 1 "conf.c"
23113 .loc 1 1 0 discriminator 1' > conftest.s
23114 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23116 (eval $ac_try) 2>&5
23117 ac_status=$?
23118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23119 test $ac_status = 0; }; }
23120 then
23121 gcc_cv_as_discriminator=yes
23122 else
23123 echo "configure: failed program was" >&5
23124 cat conftest.s >&5
23125 fi
23126 rm -f conftest.o conftest.s
23127 fi
23128 fi
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23130 $as_echo "$gcc_cv_as_discriminator" >&6; }
23131 if test $gcc_cv_as_discriminator = yes; then
23132
23133 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23134
23135 fi
23136
23137 # Thread-local storage - the check is heavily parameterized.
23138 conftest_s=
23139 tls_first_major=
23140 tls_first_minor=
23141 tls_as_opt=
23142 case "$target" in
23143 alpha*-*-*)
23144 conftest_s='
23145 .section ".tdata","awT",@progbits
23146 foo: .long 25
23147 .text
23148 ldq $27,__tls_get_addr($29) !literal!1
23149 lda $16,foo($29) !tlsgd!1
23150 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23151 ldq $27,__tls_get_addr($29) !literal!2
23152 lda $16,foo($29) !tlsldm!2
23153 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23154 ldq $1,foo($29) !gotdtprel
23155 ldah $2,foo($29) !dtprelhi
23156 lda $3,foo($2) !dtprello
23157 lda $4,foo($29) !dtprel
23158 ldq $1,foo($29) !gottprel
23159 ldah $2,foo($29) !tprelhi
23160 lda $3,foo($2) !tprello
23161 lda $4,foo($29) !tprel'
23162 tls_first_major=2
23163 tls_first_minor=13
23164 tls_as_opt=--fatal-warnings
23165 ;;
23166 cris-*-*|crisv32-*-*)
23167 conftest_s='
23168 .section ".tdata","awT",@progbits
23169 x: .long 25
23170 .text
23171 move.d x:IE,$r10
23172 nop'
23173 tls_first_major=2
23174 tls_first_minor=20
23175 tls_as_opt=--fatal-warnings
23176 ;;
23177 frv*-*-*)
23178 conftest_s='
23179 .section ".tdata","awT",@progbits
23180 x: .long 25
23181 .text
23182 call #gettlsoff(x)'
23183 tls_first_major=2
23184 tls_first_minor=14
23185 ;;
23186 hppa*-*-linux*)
23187 conftest_s='
23188 t1: .reg %r20
23189 t2: .reg %r21
23190 gp: .reg %r19
23191 .section ".tdata","awT",@progbits
23192 foo: .long 25
23193 .text
23194 .align 4
23195 addil LT%foo-$tls_gdidx$,gp
23196 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23197 b __tls_get_addr
23198 nop
23199 addil LT%foo-$tls_ldidx$,gp
23200 b __tls_get_addr
23201 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23202 addil LR%foo-$tls_dtpoff$,%ret0
23203 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23204 mfctl %cr27,%t1
23205 addil LT%foo-$tls_ieoff$,gp
23206 ldw RT%foo-$tls_ieoff$(%r1),%t2
23207 add %t1,%t2,%t3
23208 mfctl %cr27,%t1
23209 addil LR%foo-$tls_leoff$,%t1
23210 ldo RR%foo-$tls_leoff$(%r1),%t2'
23211 tls_first_major=2
23212 tls_first_minor=15
23213 tls_as_opt=--fatal-warnings
23214 ;;
23215 arm*-*-*)
23216 conftest_s='
23217 .section ".tdata","awT",%progbits
23218 foo: .long 25
23219 .text
23220 .word foo(gottpoff)
23221 .word foo(tpoff)
23222 .word foo(tlsgd)
23223 .word foo(tlsldm)
23224 .word foo(tlsldo)'
23225 tls_first_major=2
23226 tls_first_minor=17
23227 ;;
23228 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23229 case "$target" in
23230 i[34567]86-*-solaris2.*)
23231 on_solaris=yes
23232 tga_func=___tls_get_addr
23233 ;;
23234 x86_64-*-solaris2.1[0-9]*)
23235 on_solaris=yes
23236 tga_func=__tls_get_addr
23237 ;;
23238 *)
23239 on_solaris=no
23240 ;;
23241 esac
23242 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23243 conftest_s='
23244 .section .tdata,"awt",@progbits'
23245 tls_first_major=0
23246 tls_first_minor=0
23247
23248 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23249
23250 else
23251 conftest_s='
23252 .section ".tdata","awT",@progbits'
23253 tls_first_major=2
23254 tls_first_minor=14
23255 tls_as_opt="--fatal-warnings"
23256 fi
23257 conftest_s="$conftest_s
23258 foo: .long 25
23259 .text
23260 movl %gs:0, %eax
23261 leal foo@tlsgd(,%ebx,1), %eax
23262 leal foo@tlsldm(%ebx), %eax
23263 leal foo@dtpoff(%eax), %edx
23264 movl foo@gottpoff(%ebx), %eax
23265 subl foo@gottpoff(%ebx), %eax
23266 addl foo@gotntpoff(%ebx), %eax
23267 movl foo@indntpoff, %eax
23268 movl \$foo@tpoff, %eax
23269 subl \$foo@tpoff, %eax
23270 leal foo@ntpoff(%ecx), %eax"
23271 ;;
23272 x86_64-*-*)
23273 conftest_s='
23274 .section ".tdata","awT",@progbits
23275 foo: .long 25
23276 .text
23277 movq %fs:0, %rax
23278 leaq foo@TLSGD(%rip), %rdi
23279 leaq foo@TLSLD(%rip), %rdi
23280 leaq foo@DTPOFF(%rax), %rdx
23281 movq foo@GOTTPOFF(%rip), %rax
23282 movq $foo@TPOFF, %rax'
23283 tls_first_major=2
23284 tls_first_minor=14
23285 tls_as_opt=--fatal-warnings
23286 ;;
23287 ia64-*-*)
23288 conftest_s='
23289 .section ".tdata","awT",@progbits
23290 foo: data8 25
23291 .text
23292 addl r16 = @ltoff(@dtpmod(foo#)), gp
23293 addl r17 = @ltoff(@dtprel(foo#)), gp
23294 addl r18 = @ltoff(@tprel(foo#)), gp
23295 addl r19 = @dtprel(foo#), gp
23296 adds r21 = @dtprel(foo#), r13
23297 movl r23 = @dtprel(foo#)
23298 addl r20 = @tprel(foo#), gp
23299 adds r22 = @tprel(foo#), r13
23300 movl r24 = @tprel(foo#)'
23301 tls_first_major=2
23302 tls_first_minor=13
23303 tls_as_opt=--fatal-warnings
23304 ;;
23305 microblaze*-*-*)
23306 conftest_s='
23307 .section .tdata,"awT",@progbits
23308 x:
23309 .word 2
23310 .text
23311 addik r5,r20,x@TLSGD
23312 addik r5,r20,x@TLSLDM'
23313 tls_first_major=2
23314 tls_first_minor=20
23315 tls_as_opt='--fatal-warnings'
23316 ;;
23317 mips*-*-*)
23318 conftest_s='
23319 .section .tdata,"awT",@progbits
23320 x:
23321 .word 2
23322 .text
23323 addiu $4, $28, %tlsgd(x)
23324 addiu $4, $28, %tlsldm(x)
23325 lui $4, %dtprel_hi(x)
23326 addiu $4, $4, %dtprel_lo(x)
23327 lw $4, %gottprel(x)($28)
23328 lui $4, %tprel_hi(x)
23329 addiu $4, $4, %tprel_lo(x)'
23330 tls_first_major=2
23331 tls_first_minor=16
23332 tls_as_opt='-32 --fatal-warnings'
23333 ;;
23334 m68k-*-*)
23335 conftest_s='
23336 .section .tdata,"awT",@progbits
23337 x:
23338 .word 2
23339 .text
23340 foo:
23341 move.l x@TLSGD(%a5),%a0
23342 move.l x@TLSLDM(%a5),%a0
23343 move.l x@TLSLDO(%a5),%a0
23344 move.l x@TLSIE(%a5),%a0
23345 move.l x@TLSLE(%a5),%a0'
23346 tls_first_major=2
23347 tls_first_minor=19
23348 tls_as_opt='--fatal-warnings'
23349 ;;
23350 aarch64*-*-*)
23351 conftest_s='
23352 .section ".tdata","awT",%progbits
23353 foo: .long 25
23354 .text
23355 adrp x0, :tlsgd:x
23356 add x0, x0, #:tlsgd_lo12:x
23357 bl __tls_get_addr
23358 nop'
23359 tls_first_major=2
23360 tls_first_minor=20
23361 tls_as_opt='--fatal-warnings'
23362 ;;
23363 powerpc-ibm-aix*)
23364 conftest_s='
23365 .extern __get_tpointer
23366 .toc
23367 LC..1:
23368 .tc a[TC],a[TL]@le
23369 .csect .text[PR]
23370 .tlstest:
23371 lwz 9,LC..1(2)
23372 bla __get_tpointer
23373 lwzx 3,9,3
23374 .globl a
23375 .csect a[TL],4
23376 a:
23377 .space 4'
23378 tls_first_major=0
23379 tls_first_minor=0
23380 ;;
23381 powerpc64*-*-*)
23382 conftest_s='
23383 .section ".tdata","awT",@progbits
23384 .align 3
23385 ld0: .space 8
23386 ld1: .space 8
23387 x1: .space 8
23388 x2: .space 8
23389 x3: .space 8
23390 .text
23391 addi 3,2,ld0@got@tlsgd
23392 bl .__tls_get_addr
23393 nop
23394 addi 3,2,ld1@toc
23395 bl .__tls_get_addr
23396 nop
23397 addi 3,2,x1@got@tlsld
23398 bl .__tls_get_addr
23399 nop
23400 addi 9,3,x1@dtprel
23401 bl .__tls_get_addr
23402 nop
23403 addis 9,3,x2@dtprel@ha
23404 addi 9,9,x2@dtprel@l
23405 bl .__tls_get_addr
23406 nop
23407 ld 9,x3@got@dtprel(2)
23408 add 9,9,3
23409 bl .__tls_get_addr
23410 nop'
23411 tls_first_major=2
23412 tls_first_minor=14
23413 tls_as_opt="-a64 --fatal-warnings"
23414 ;;
23415 powerpc*-*-*)
23416 conftest_s='
23417 .section ".tdata","awT",@progbits
23418 .align 2
23419 ld0: .space 4
23420 ld1: .space 4
23421 x1: .space 4
23422 x2: .space 4
23423 x3: .space 4
23424 .text
23425 addi 3,31,ld0@got@tlsgd
23426 bl __tls_get_addr
23427 addi 3,31,x1@got@tlsld
23428 bl __tls_get_addr
23429 addi 9,3,x1@dtprel
23430 addis 9,3,x2@dtprel@ha
23431 addi 9,9,x2@dtprel@l
23432 lwz 9,x3@got@tprel(31)
23433 add 9,9,x@tls
23434 addi 9,2,x1@tprel
23435 addis 9,2,x2@tprel@ha
23436 addi 9,9,x2@tprel@l'
23437 tls_first_major=2
23438 tls_first_minor=14
23439 tls_as_opt="-a32 --fatal-warnings"
23440 ;;
23441 s390-*-*)
23442 conftest_s='
23443 .section ".tdata","awT",@progbits
23444 foo: .long 25
23445 .text
23446 .long foo@TLSGD
23447 .long foo@TLSLDM
23448 .long foo@DTPOFF
23449 .long foo@NTPOFF
23450 .long foo@GOTNTPOFF
23451 .long foo@INDNTPOFF
23452 l %r1,foo@GOTNTPOFF(%r12)
23453 l %r1,0(%r1):tls_load:foo
23454 bas %r14,0(%r1,%r13):tls_gdcall:foo
23455 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23456 tls_first_major=2
23457 tls_first_minor=14
23458 tls_as_opt="-m31 --fatal-warnings"
23459 ;;
23460 s390x-*-*)
23461 conftest_s='
23462 .section ".tdata","awT",@progbits
23463 foo: .long 25
23464 .text
23465 .quad foo@TLSGD
23466 .quad foo@TLSLDM
23467 .quad foo@DTPOFF
23468 .quad foo@NTPOFF
23469 .quad foo@GOTNTPOFF
23470 lg %r1,foo@GOTNTPOFF(%r12)
23471 larl %r1,foo@INDNTPOFF
23472 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23473 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23474 tls_first_major=2
23475 tls_first_minor=14
23476 tls_as_opt="-m64 -Aesame --fatal-warnings"
23477 ;;
23478 sh-*-* | sh[34]-*-*)
23479 conftest_s='
23480 .section ".tdata","awT",@progbits
23481 foo: .long 25
23482 .text
23483 .long foo@TLSGD
23484 .long foo@TLSLDM
23485 .long foo@DTPOFF
23486 .long foo@GOTTPOFF
23487 .long foo@TPOFF'
23488 tls_first_major=2
23489 tls_first_minor=13
23490 tls_as_opt=--fatal-warnings
23491 ;;
23492 sparc*-*-*)
23493 case "$target" in
23494 sparc*-sun-solaris2.*)
23495 on_solaris=yes
23496 tga_func=__tls_get_addr
23497 ;;
23498 *)
23499 on_solaris=no
23500 ;;
23501 esac
23502 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23503 conftest_s='
23504 .section ".tdata",#alloc,#write,#tls'
23505 tls_first_major=0
23506 tls_first_minor=0
23507 else
23508 conftest_s='
23509 .section ".tdata","awT",@progbits'
23510 tls_first_major=2
23511 tls_first_minor=14
23512 tls_as_opt="-32 --fatal-warnings"
23513 fi
23514 conftest_s="$conftest_s
23515 foo: .long 25
23516 .text
23517 sethi %tgd_hi22(foo), %o0
23518 add %o0, %tgd_lo10(foo), %o1
23519 add %l7, %o1, %o0, %tgd_add(foo)
23520 call __tls_get_addr, %tgd_call(foo)
23521 sethi %tldm_hi22(foo), %l1
23522 add %l1, %tldm_lo10(foo), %l2
23523 add %l7, %l2, %o0, %tldm_add(foo)
23524 call __tls_get_addr, %tldm_call(foo)
23525 sethi %tldo_hix22(foo), %l3
23526 xor %l3, %tldo_lox10(foo), %l4
23527 add %o0, %l4, %l5, %tldo_add(foo)
23528 sethi %tie_hi22(foo), %o3
23529 add %o3, %tie_lo10(foo), %o3
23530 ld [%l7 + %o3], %o2, %tie_ld(foo)
23531 add %g7, %o2, %o4, %tie_add(foo)
23532 sethi %tle_hix22(foo), %l1
23533 xor %l1, %tle_lox10(foo), %o5
23534 ld [%g7 + %o5], %o1"
23535 ;;
23536 tilepro*-*-*)
23537 conftest_s='
23538 .section ".tdata","awT",@progbits
23539 foo: .long 25
23540 .text
23541 addli r0, zero, tls_gd(foo)
23542 auli r0, zero, tls_gd_ha16(foo)
23543 addli r0, r0, tls_gd_lo16(foo)
23544 jal __tls_get_addr
23545 addli r0, zero, tls_ie(foo)
23546 auli r0, r0, tls_ie_ha16(foo)
23547 addli r0, r0, tls_ie_lo16(foo)'
23548 tls_first_major=2
23549 tls_first_minor=22
23550 tls_as_opt="--fatal-warnings"
23551 ;;
23552 tilegx*-*-*)
23553 conftest_s='
23554 .section ".tdata","awT",@progbits
23555 foo: .long 25
23556 .text
23557 shl16insli r0, zero, hw0_last_tls_gd(foo)
23558 shl16insli r0, zero, hw1_last_tls_gd(foo)
23559 shl16insli r0, r0, hw0_tls_gd(foo)
23560 jal __tls_get_addr
23561 shl16insli r0, zero, hw1_last_tls_ie(foo)
23562 shl16insli r0, r0, hw0_tls_ie(foo)'
23563 tls_first_major=2
23564 tls_first_minor=22
23565 tls_as_opt="--fatal-warnings"
23566 ;;
23567 xtensa*-*-*)
23568 conftest_s='
23569 .section ".tdata","awT",@progbits
23570 foo: .long 25
23571 .text
23572 movi a8, foo@TLSFUNC
23573 movi a10, foo@TLSARG
23574 callx8.tls a8, foo@TLSCALL'
23575 tls_first_major=2
23576 tls_first_minor=19
23577 ;;
23578 esac
23579 set_have_as_tls=no
23580 if test "x$enable_tls" = xno ; then
23581 : # TLS explicitly disabled.
23582 elif test "x$enable_tls" = xyes ; then
23583 set_have_as_tls=yes # TLS explicitly enabled.
23584 elif test -z "$tls_first_major"; then
23585 : # If we don't have a check, assume no support.
23586 else
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23588 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23589 if test "${gcc_cv_as_tls+set}" = set; then :
23590 $as_echo_n "(cached) " >&6
23591 else
23592 gcc_cv_as_tls=no
23593 if test $in_tree_gas = yes; then
23594 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23595 then gcc_cv_as_tls=yes
23596 fi
23597 elif test x$gcc_cv_as != x; then
23598 $as_echo "$conftest_s" > conftest.s
23599 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23601 (eval $ac_try) 2>&5
23602 ac_status=$?
23603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23604 test $ac_status = 0; }; }
23605 then
23606 gcc_cv_as_tls=yes
23607 else
23608 echo "configure: failed program was" >&5
23609 cat conftest.s >&5
23610 fi
23611 rm -f conftest.o conftest.s
23612 fi
23613 fi
23614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23615 $as_echo "$gcc_cv_as_tls" >&6; }
23616 if test $gcc_cv_as_tls = yes; then
23617 set_have_as_tls=yes
23618 fi
23619 fi
23620 case "$target" in
23621 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23622 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23623 # Sun style that Sun ld and GCC don't support any longer.
23624 *-*-solaris2.*)
23625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23626 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23627 ld_tls_support=no
23628 # Check ld and ld.so.1 TLS support.
23629 if echo "$ld_ver" | grep GNU > /dev/null; then
23630 # Assume all interesting versions of GNU ld have TLS support.
23631 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23632 ld_tls_support=yes
23633 else
23634 case "$target" in
23635 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23636 i?86-*-solaris2.9)
23637 min_tls_ld_vers_minor=374
23638 ;;
23639 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23640 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23641 min_tls_ld_vers_minor=343
23642 ;;
23643 esac
23644 if test "$ld_vers_major" -gt 1 || \
23645 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23646 ld_tls_support=yes
23647 else
23648 set_have_as_tls=no
23649 fi
23650 fi
23651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23652 $as_echo "$ld_tls_support" >&6; }
23653
23654 save_LIBS="$LIBS"
23655 save_LDFLAGS="$LDFLAGS"
23656 LIBS=
23657 LDFLAGS=
23658
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23660 $as_echo_n "checking library containing $tga_func... " >&6; }
23661 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23662 # (32-bit x86) only lived in libthread, so check for that. Keep
23663 # set_have_as_tls if found, disable if not.
23664 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23666 $as_echo_n "checking for library containing $tga_func... " >&6; }
23667 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23668 $as_echo_n "(cached) " >&6
23669 else
23670 ac_func_search_save_LIBS=$LIBS
23671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23672 /* end confdefs.h. */
23673
23674 /* Override any GCC internal prototype to avoid an error.
23675 Use char because int might match the return type of a GCC
23676 builtin and then its argument prototype would still apply. */
23677 #ifdef __cplusplus
23678 extern "C"
23679 #endif
23680 char $tga_func ();
23681 int
23682 main ()
23683 {
23684 return $tga_func ();
23685 ;
23686 return 0;
23687 }
23688 _ACEOF
23689 for ac_lib in '' thread; do
23690 if test -z "$ac_lib"; then
23691 ac_res="none required"
23692 else
23693 ac_res=-l$ac_lib
23694 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23695 fi
23696 if ac_fn_c_try_link "$LINENO"; then :
23697 eval "$as_ac_Search=\$ac_res"
23698 fi
23699 rm -f core conftest.err conftest.$ac_objext \
23700 conftest$ac_exeext
23701 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23702 break
23703 fi
23704 done
23705 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23706
23707 else
23708 eval "$as_ac_Search=no"
23709 fi
23710 rm conftest.$ac_ext
23711 LIBS=$ac_func_search_save_LIBS
23712 fi
23713 eval ac_res=\$$as_ac_Search
23714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23715 $as_echo "$ac_res" >&6; }
23716 eval ac_res=\$$as_ac_Search
23717 if test "$ac_res" != no; then :
23718 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23719
23720 else
23721 set_have_as_tls=no
23722 fi
23723
23724 # Clear LIBS if we cannot support TLS.
23725 if test $set_have_as_tls = no; then
23726 LIBS=
23727 fi
23728 # Always define LIB_TLS_SPEC, even without TLS support.
23729
23730 cat >>confdefs.h <<_ACEOF
23731 #define LIB_TLS_SPEC "$LIBS"
23732 _ACEOF
23733
23734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23735 $as_echo "$LIBS" >&6; }
23736
23737 LIBS="$save_LIBS"
23738 LDFLAGS="$save_LDFLAGS"
23739 ;;
23740 esac
23741 if test $set_have_as_tls = yes ; then
23742
23743 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23744
23745 fi
23746
23747 # Target-specific assembler checks.
23748
23749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23750 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23751 gcc_cv_ld_static_dynamic=no
23752 gcc_cv_ld_static_option='-Bstatic'
23753 gcc_cv_ld_dynamic_option='-Bdynamic'
23754 if test $in_tree_ld = yes ; then
23755 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
23756 gcc_cv_ld_static_dynamic=yes
23757 fi
23758 elif test x$gcc_cv_ld != x; then
23759 # Check if linker supports -Bstatic/-Bdynamic option
23760 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23761 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23762 gcc_cv_ld_static_dynamic=yes
23763 else
23764 case "$target" in
23765 # AIX ld uses -b flags
23766 *-*-aix4.[23]* | *-*-aix[5-9]*)
23767 gcc_cv_ld_static_dynamic=yes
23768 gcc_cv_ld_static_option="-bstatic"
23769 gcc_cv_ld_dynamic_option="-bdynamic"
23770 ;;
23771 # HP-UX ld uses -a flags to select between shared and archive.
23772 *-*-hpux*)
23773 if test x"$gnu_ld" = xno; then
23774 gcc_cv_ld_static_dynamic=yes
23775 gcc_cv_ld_static_option="-aarchive_shared"
23776 gcc_cv_ld_dynamic_option="-adefault"
23777 fi
23778 ;;
23779 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23780 *-*-solaris2*)
23781 gcc_cv_ld_static_dynamic=yes
23782 ;;
23783 esac
23784 fi
23785 fi
23786 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23787
23788 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23789
23790
23791 cat >>confdefs.h <<_ACEOF
23792 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23793 _ACEOF
23794
23795
23796 cat >>confdefs.h <<_ACEOF
23797 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23798 _ACEOF
23799
23800 fi
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23802 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23803
23804 if test x"$demangler_in_ld" = xyes; then
23805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23806 $as_echo_n "checking linker --demangle support... " >&6; }
23807 gcc_cv_ld_demangle=no
23808 if test $in_tree_ld = yes; then
23809 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 \
23810 gcc_cv_ld_demangle=yes
23811 fi
23812 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23813 # Check if the GNU linker supports --demangle option
23814 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23815 gcc_cv_ld_demangle=yes
23816 fi
23817 fi
23818 if test x"$gcc_cv_ld_demangle" = xyes; then
23819
23820 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23821
23822 fi
23823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23824 $as_echo "$gcc_cv_ld_demangle" >&6; }
23825 fi
23826
23827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23828 $as_echo_n "checking linker plugin support... " >&6; }
23829 gcc_cv_lto_plugin=0
23830 if test -f liblto_plugin.la; then
23831 save_ld_ver="$ld_ver"
23832 save_ld_vers_major="$ld_vers_major"
23833 save_ld_vers_minor="$ld_vers_minor"
23834 save_ld_is_gold="$ld_is_gold"
23835
23836 ld_is_gold=no
23837
23838 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23839 ld_ver="GNU ld"
23840 # FIXME: ld_is_gold?
23841 ld_vers_major="$gcc_cv_gld_major_version"
23842 ld_vers_minor="$gcc_cv_gld_minor_version"
23843 else
23844 # Determine plugin linker version.
23845 # FIXME: Partial duplicate from above, generalize.
23846 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23847 if echo "$ld_ver" | grep GNU > /dev/null; then
23848 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23849 ld_is_gold=yes
23850 ld_vers=`echo $ld_ver | sed -n \
23851 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23852 else
23853 ld_vers=`echo $ld_ver | sed -n \
23854 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23855 fi
23856 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23857 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23858 fi
23859 fi
23860
23861 # Determine plugin support.
23862 if echo "$ld_ver" | grep GNU > /dev/null; then
23863 # Require GNU ld or gold 2.21+ for plugin support by default.
23864 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23865 gcc_cv_lto_plugin=2
23866 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23867 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23868 gcc_cv_lto_plugin=1
23869 fi
23870 fi
23871
23872 ld_ver="$save_ld_ver"
23873 ld_vers_major="$save_ld_vers_major"
23874 ld_vers_minor="$save_ld_vers_minor"
23875 ld_is_gold="$save_ld_is_gold"
23876 fi
23877
23878 cat >>confdefs.h <<_ACEOF
23879 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23880 _ACEOF
23881
23882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23883 $as_echo "$gcc_cv_lto_plugin" >&6; }
23884
23885 case "$target" in
23886 # All TARGET_ABI_OSF targets.
23887 alpha*-*-linux* | alpha*-*-*bsd*)
23888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23889 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23890 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23891 $as_echo_n "(cached) " >&6
23892 else
23893 gcc_cv_as_alpha_explicit_relocs=no
23894 if test $in_tree_gas = yes; then
23895 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23896 then gcc_cv_as_alpha_explicit_relocs=yes
23897 fi
23898 elif test x$gcc_cv_as != x; then
23899 $as_echo ' .set nomacro
23900 .text
23901 extbl $3, $2, $3 !lituse_bytoff!1
23902 ldq $2, a($29) !literal!1
23903 ldq $4, b($29) !literal!2
23904 ldq_u $3, 0($2) !lituse_base!1
23905 ldq $27, f($29) !literal!5
23906 jsr $26, ($27), f !lituse_jsr!5
23907 ldah $29, 0($26) !gpdisp!3
23908 lda $0, c($29) !gprel
23909 ldah $1, d($29) !gprelhigh
23910 lda $1, d($1) !gprellow
23911 lda $29, 0($29) !gpdisp!3' > conftest.s
23912 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23914 (eval $ac_try) 2>&5
23915 ac_status=$?
23916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23917 test $ac_status = 0; }; }
23918 then
23919 gcc_cv_as_alpha_explicit_relocs=yes
23920 else
23921 echo "configure: failed program was" >&5
23922 cat conftest.s >&5
23923 fi
23924 rm -f conftest.o conftest.s
23925 fi
23926 fi
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23928 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23929 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23930
23931 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23932
23933 fi
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23935 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23936 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23937 $as_echo_n "(cached) " >&6
23938 else
23939 gcc_cv_as_alpha_jsrdirect_relocs=no
23940 if test $in_tree_gas = yes; then
23941 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23942 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23943 fi
23944 elif test x$gcc_cv_as != x; then
23945 $as_echo ' .set nomacro
23946 .text
23947 ldq $27, a($29) !literal!1
23948 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23949 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23951 (eval $ac_try) 2>&5
23952 ac_status=$?
23953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23954 test $ac_status = 0; }; }
23955 then
23956 gcc_cv_as_alpha_jsrdirect_relocs=yes
23957 else
23958 echo "configure: failed program was" >&5
23959 cat conftest.s >&5
23960 fi
23961 rm -f conftest.o conftest.s
23962 fi
23963 fi
23964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23965 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23966 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23967
23968 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23969
23970 fi
23971 ;;
23972
23973 cris-*-*)
23974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23975 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23976 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23977 $as_echo_n "(cached) " >&6
23978 else
23979 gcc_cv_as_cris_no_mul_bug=no
23980 if test $in_tree_gas = yes; then
23981 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23982 then gcc_cv_as_cris_no_mul_bug=yes
23983 fi
23984 elif test x$gcc_cv_as != x; then
23985 $as_echo '.text' > conftest.s
23986 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23988 (eval $ac_try) 2>&5
23989 ac_status=$?
23990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23991 test $ac_status = 0; }; }
23992 then
23993 gcc_cv_as_cris_no_mul_bug=yes
23994 else
23995 echo "configure: failed program was" >&5
23996 cat conftest.s >&5
23997 fi
23998 rm -f conftest.o conftest.s
23999 fi
24000 fi
24001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24002 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24003 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24004
24005 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24006
24007 fi
24008 ;;
24009
24010 sparc*-*-*)
24011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24012 $as_echo_n "checking assembler for .register... " >&6; }
24013 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24014 $as_echo_n "(cached) " >&6
24015 else
24016 gcc_cv_as_sparc_register_op=no
24017 if test x$gcc_cv_as != x; then
24018 $as_echo '.register %g2, #scratch' > conftest.s
24019 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24021 (eval $ac_try) 2>&5
24022 ac_status=$?
24023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24024 test $ac_status = 0; }; }
24025 then
24026 gcc_cv_as_sparc_register_op=yes
24027 else
24028 echo "configure: failed program was" >&5
24029 cat conftest.s >&5
24030 fi
24031 rm -f conftest.o conftest.s
24032 fi
24033 fi
24034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24035 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24036 if test $gcc_cv_as_sparc_register_op = yes; then
24037
24038 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24039
24040 fi
24041
24042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24043 $as_echo_n "checking assembler for #nobits... " >&6; }
24044 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24045 $as_echo_n "(cached) " >&6
24046 else
24047 gcc_cv_as_sparc_nobits=no
24048 if test x$gcc_cv_as != x; then
24049 $as_echo '.section "nobits",#alloc,#write,#nobits
24050 .section "progbits",#alloc,#write,#progbits' > conftest.s
24051 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24053 (eval $ac_try) 2>&5
24054 ac_status=$?
24055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24056 test $ac_status = 0; }; }
24057 then
24058 gcc_cv_as_sparc_nobits=yes
24059 else
24060 echo "configure: failed program was" >&5
24061 cat conftest.s >&5
24062 fi
24063 rm -f conftest.o conftest.s
24064 fi
24065 fi
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24067 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24068
24069
24070 cat >>confdefs.h <<_ACEOF
24071 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24072 _ACEOF
24073
24074
24075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24076 $as_echo_n "checking assembler for -relax option... " >&6; }
24077 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24078 $as_echo_n "(cached) " >&6
24079 else
24080 gcc_cv_as_sparc_relax=no
24081 if test x$gcc_cv_as != x; then
24082 $as_echo '.text' > conftest.s
24083 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24085 (eval $ac_try) 2>&5
24086 ac_status=$?
24087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24088 test $ac_status = 0; }; }
24089 then
24090 gcc_cv_as_sparc_relax=yes
24091 else
24092 echo "configure: failed program was" >&5
24093 cat conftest.s >&5
24094 fi
24095 rm -f conftest.o conftest.s
24096 fi
24097 fi
24098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24099 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24100 if test $gcc_cv_as_sparc_relax = yes; then
24101
24102 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24103
24104 fi
24105
24106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24107 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24108 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24109 $as_echo_n "(cached) " >&6
24110 else
24111 gcc_cv_as_sparc_gotdata_op=no
24112 if test x$gcc_cv_as != x; then
24113 $as_echo '.text
24114 .align 4
24115 foo:
24116 nop
24117 bar:
24118 sethi %gdop_hix22(foo), %g1
24119 xor %g1, %gdop_lox10(foo), %g1
24120 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24121 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24123 (eval $ac_try) 2>&5
24124 ac_status=$?
24125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24126 test $ac_status = 0; }; }
24127 then
24128 if test x$gcc_cv_ld != x \
24129 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24130 if test x$gcc_cv_objdump != x; then
24131 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24132 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24133 gcc_cv_as_sparc_gotdata_op=no
24134 else
24135 gcc_cv_as_sparc_gotdata_op=yes
24136 fi
24137 fi
24138 fi
24139 rm -f conftest
24140 else
24141 echo "configure: failed program was" >&5
24142 cat conftest.s >&5
24143 fi
24144 rm -f conftest.o conftest.s
24145 fi
24146 fi
24147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24148 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24149 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24150
24151 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24152
24153 fi
24154
24155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24156 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24157 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24158 $as_echo_n "(cached) " >&6
24159 else
24160 gcc_cv_as_sparc_ua_pcrel=no
24161 if test x$gcc_cv_as != x; then
24162 $as_echo '.text
24163 foo:
24164 nop
24165 .data
24166 .align 4
24167 .byte 0
24168 .uaword %r_disp32(foo)' > conftest.s
24169 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24171 (eval $ac_try) 2>&5
24172 ac_status=$?
24173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24174 test $ac_status = 0; }; }
24175 then
24176 if test x$gcc_cv_ld != x \
24177 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24178 gcc_cv_as_sparc_ua_pcrel=yes
24179 fi
24180 rm -f conftest
24181 else
24182 echo "configure: failed program was" >&5
24183 cat conftest.s >&5
24184 fi
24185 rm -f conftest.o conftest.s
24186 fi
24187 fi
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24189 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24190 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24191
24192 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24193
24194
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24196 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24197 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24198 $as_echo_n "(cached) " >&6
24199 else
24200 gcc_cv_as_sparc_ua_pcrel_hidden=no
24201 if test x$gcc_cv_as != x; then
24202 $as_echo '.data
24203 .align 4
24204 .byte 0x31
24205 .uaword %r_disp32(foo)
24206 .byte 0x32, 0x33, 0x34
24207 .global foo
24208 .hidden foo
24209 foo:
24210 .skip 4' > conftest.s
24211 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24213 (eval $ac_try) 2>&5
24214 ac_status=$?
24215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24216 test $ac_status = 0; }; }
24217 then
24218 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24219 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24220 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24221 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24222 if $gcc_cv_objdump -R conftest 2> /dev/null \
24223 | grep 'DISP32' > /dev/null 2>&1; then
24224 :
24225 else
24226 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24227 fi
24228 fi
24229 rm -f conftest
24230 else
24231 echo "configure: failed program was" >&5
24232 cat conftest.s >&5
24233 fi
24234 rm -f conftest.o conftest.s
24235 fi
24236 fi
24237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24238 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24239 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24240
24241 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24242
24243 fi
24244
24245 fi # unaligned pcrel relocs
24246
24247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24248 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24249 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24250 $as_echo_n "(cached) " >&6
24251 else
24252 gcc_cv_as_sparc_offsetable_lo10=no
24253 if test x$gcc_cv_as != x; then
24254 $as_echo '.text
24255 or %g1, %lo(ab) + 12, %g1
24256 or %g1, %lo(ab + 12), %g1' > conftest.s
24257 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24259 (eval $ac_try) 2>&5
24260 ac_status=$?
24261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24262 test $ac_status = 0; }; }
24263 then
24264 if test x$gcc_cv_objdump != x \
24265 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24266 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24267 gcc_cv_as_sparc_offsetable_lo10=yes
24268 fi
24269 else
24270 echo "configure: failed program was" >&5
24271 cat conftest.s >&5
24272 fi
24273 rm -f conftest.o conftest.s
24274 fi
24275 fi
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24277 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24278 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24279
24280 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24281
24282 fi
24283
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24285 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24286 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24287 $as_echo_n "(cached) " >&6
24288 else
24289 gcc_cv_as_sparc_fmaf=no
24290 if test x$gcc_cv_as != x; then
24291 $as_echo '.text
24292 .register %g2, #scratch
24293 .register %g3, #scratch
24294 .align 4
24295 fmaddd %f0, %f2, %f4, %f6
24296 addxccc %g1, %g2, %g3
24297 fsrl32 %f2, %f4, %f8
24298 fnaddd %f10, %f12, %f14' > conftest.s
24299 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24301 (eval $ac_try) 2>&5
24302 ac_status=$?
24303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24304 test $ac_status = 0; }; }
24305 then
24306 gcc_cv_as_sparc_fmaf=yes
24307 else
24308 echo "configure: failed program was" >&5
24309 cat conftest.s >&5
24310 fi
24311 rm -f conftest.o conftest.s
24312 fi
24313 fi
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24315 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24316 if test $gcc_cv_as_sparc_fmaf = yes; then
24317
24318 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24319
24320 fi
24321
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24323 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24324 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24325 $as_echo_n "(cached) " >&6
24326 else
24327 gcc_cv_as_sparc_sparc4=no
24328 if test x$gcc_cv_as != x; then
24329 $as_echo '.text
24330 .register %g2, #scratch
24331 .register %g3, #scratch
24332 .align 4
24333 cxbe %g2, %g3, 1f
24334 1: cwbneg %g2, %g3, 1f
24335 1: sha1
24336 md5
24337 aes_kexpand0 %f4, %f6, %f8
24338 des_round %f38, %f40, %f42, %f44
24339 camellia_f %f54, %f56, %f58, %f60
24340 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24341 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24343 (eval $ac_try) 2>&5
24344 ac_status=$?
24345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24346 test $ac_status = 0; }; }
24347 then
24348 gcc_cv_as_sparc_sparc4=yes
24349 else
24350 echo "configure: failed program was" >&5
24351 cat conftest.s >&5
24352 fi
24353 rm -f conftest.o conftest.s
24354 fi
24355 fi
24356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24357 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24358 if test $gcc_cv_as_sparc_sparc4 = yes; then
24359
24360 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24361
24362 fi
24363
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24365 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24366 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24367 $as_echo_n "(cached) " >&6
24368 else
24369 gcc_cv_as_sparc_leon=no
24370 if test x$gcc_cv_as != x; then
24371 $as_echo '.text
24372 .register %g2, #scratch
24373 .register %g3, #scratch
24374 .align 4
24375 smac %g2, %g3, %g1
24376 umac %g2, %g3, %g1
24377 cas [%g2], %g3, %g1' > conftest.s
24378 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24380 (eval $ac_try) 2>&5
24381 ac_status=$?
24382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24383 test $ac_status = 0; }; }
24384 then
24385 gcc_cv_as_sparc_leon=yes
24386 else
24387 echo "configure: failed program was" >&5
24388 cat conftest.s >&5
24389 fi
24390 rm -f conftest.o conftest.s
24391 fi
24392 fi
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24394 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24395 if test $gcc_cv_as_sparc_leon = yes; then
24396
24397 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24398
24399 fi
24400 ;;
24401
24402 i[34567]86-*-* | x86_64-*-*)
24403 case $target_os in
24404 cygwin*)
24405 # Full C++ conformance when using a shared libstdc++-v3 requires some
24406 # support from the Cygwin DLL, which in more recent versions exports
24407 # wrappers to aid in interposing and redirecting operators new, delete,
24408 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24409 # are configuring for a version of Cygwin that exports the wrappers.
24410 if test x$host = x$target && test x$host_cpu = xi686; then
24411 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24412 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24413 gcc_ac_cygwin_dll_wrappers=yes
24414 else
24415 gcc_ac_cygwin_dll_wrappers=no
24416 fi
24417
24418 else
24419 # Can't check presence of libc functions during cross-compile, so
24420 # we just have to assume we're building for an up-to-date target.
24421 gcc_ac_cygwin_dll_wrappers=yes
24422 fi
24423
24424 cat >>confdefs.h <<_ACEOF
24425 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24426 _ACEOF
24427
24428 esac
24429 case $target_os in
24430 cygwin* | pe | mingw32* | interix*)
24431 # Recent binutils allows the three-operand form of ".comm" on PE. This
24432 # definition is used unconditionally to initialise the default state of
24433 # the target option variable that governs usage of the feature.
24434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24435 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24436 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24437 $as_echo_n "(cached) " >&6
24438 else
24439 gcc_cv_as_comm_has_align=no
24440 if test $in_tree_gas = yes; then
24441 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24442 then gcc_cv_as_comm_has_align=yes
24443 fi
24444 elif test x$gcc_cv_as != x; then
24445 $as_echo '.comm foo,1,32' > conftest.s
24446 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24448 (eval $ac_try) 2>&5
24449 ac_status=$?
24450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24451 test $ac_status = 0; }; }
24452 then
24453 gcc_cv_as_comm_has_align=yes
24454 else
24455 echo "configure: failed program was" >&5
24456 cat conftest.s >&5
24457 fi
24458 rm -f conftest.o conftest.s
24459 fi
24460 fi
24461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24462 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24463
24464
24465 cat >>confdefs.h <<_ACEOF
24466 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24467 _ACEOF
24468
24469 # Used for DWARF 2 in PE
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24471 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24472 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24473 $as_echo_n "(cached) " >&6
24474 else
24475 gcc_cv_as_ix86_pe_secrel32=no
24476 if test $in_tree_gas = yes; then
24477 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24478 then gcc_cv_as_ix86_pe_secrel32=yes
24479 fi
24480 elif test x$gcc_cv_as != x; then
24481 $as_echo '.text
24482 foo: nop
24483 .data
24484 .secrel32 foo' > conftest.s
24485 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24487 (eval $ac_try) 2>&5
24488 ac_status=$?
24489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24490 test $ac_status = 0; }; }
24491 then
24492 if test x$gcc_cv_ld != x \
24493 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24494 gcc_cv_as_ix86_pe_secrel32=yes
24495 fi
24496 rm -f conftest
24497 else
24498 echo "configure: failed program was" >&5
24499 cat conftest.s >&5
24500 fi
24501 rm -f conftest.o conftest.s
24502 fi
24503 fi
24504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24505 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24506 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24507
24508 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24509
24510 fi
24511 # Test if the assembler supports the extended form of the .section
24512 # directive that specifies section alignment. LTO support uses this,
24513 # but normally only after installation, so we warn but don't fail the
24514 # configure if LTO is enabled but the assembler does not support it.
24515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24516 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24517 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24518 $as_echo_n "(cached) " >&6
24519 else
24520 gcc_cv_as_section_has_align=no
24521 if test $in_tree_gas = yes; then
24522 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24523 then gcc_cv_as_section_has_align=yes
24524 fi
24525 elif test x$gcc_cv_as != x; then
24526 $as_echo '.section lto_test,"dr0"' > conftest.s
24527 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24529 (eval $ac_try) 2>&5
24530 ac_status=$?
24531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24532 test $ac_status = 0; }; }
24533 then
24534 gcc_cv_as_section_has_align=yes
24535 else
24536 echo "configure: failed program was" >&5
24537 cat conftest.s >&5
24538 fi
24539 rm -f conftest.o conftest.s
24540 fi
24541 fi
24542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24543 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24544
24545 if test x$gcc_cv_as_section_has_align != xyes; then
24546 case ",$enable_languages," in
24547 *,lto,*)
24548 { $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
24549 $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;}
24550 ;;
24551 esac
24552 fi
24553 # Test if the assembler supports the section flag 'e' for specifying
24554 # an excluded section.
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24556 $as_echo_n "checking assembler for .section with e... " >&6; }
24557 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24558 $as_echo_n "(cached) " >&6
24559 else
24560 gcc_cv_as_section_has_e=no
24561 if test $in_tree_gas = yes; then
24562 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24563 then gcc_cv_as_section_has_e=yes
24564 fi
24565 elif test x$gcc_cv_as != x; then
24566 $as_echo '.section foo1,"e"
24567 .byte 0,0,0,0' > conftest.s
24568 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24570 (eval $ac_try) 2>&5
24571 ac_status=$?
24572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24573 test $ac_status = 0; }; }
24574 then
24575 gcc_cv_as_section_has_e=yes
24576 else
24577 echo "configure: failed program was" >&5
24578 cat conftest.s >&5
24579 fi
24580 rm -f conftest.o conftest.s
24581 fi
24582 fi
24583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24584 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24585
24586
24587 cat >>confdefs.h <<_ACEOF
24588 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24589 _ACEOF
24590
24591 ;;
24592 esac
24593
24594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24595 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24596 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24597 $as_echo_n "(cached) " >&6
24598 else
24599 gcc_cv_as_ix86_filds=no
24600 if test x$gcc_cv_as != x; then
24601 $as_echo 'filds mem; fists mem' > conftest.s
24602 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24604 (eval $ac_try) 2>&5
24605 ac_status=$?
24606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24607 test $ac_status = 0; }; }
24608 then
24609 gcc_cv_as_ix86_filds=yes
24610 else
24611 echo "configure: failed program was" >&5
24612 cat conftest.s >&5
24613 fi
24614 rm -f conftest.o conftest.s
24615 fi
24616 fi
24617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24618 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24619 if test $gcc_cv_as_ix86_filds = yes; then
24620
24621 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24622
24623 fi
24624
24625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24626 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24627 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24628 $as_echo_n "(cached) " >&6
24629 else
24630 gcc_cv_as_ix86_fildq=no
24631 if test x$gcc_cv_as != x; then
24632 $as_echo 'fildq mem; fistpq mem' > conftest.s
24633 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24635 (eval $ac_try) 2>&5
24636 ac_status=$?
24637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24638 test $ac_status = 0; }; }
24639 then
24640 gcc_cv_as_ix86_fildq=yes
24641 else
24642 echo "configure: failed program was" >&5
24643 cat conftest.s >&5
24644 fi
24645 rm -f conftest.o conftest.s
24646 fi
24647 fi
24648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24649 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24650 if test $gcc_cv_as_ix86_fildq = yes; then
24651
24652 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24653
24654 fi
24655
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24657 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24658 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24659 $as_echo_n "(cached) " >&6
24660 else
24661 gcc_cv_as_ix86_cmov_sun_syntax=no
24662 if test x$gcc_cv_as != x; then
24663 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24664 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24666 (eval $ac_try) 2>&5
24667 ac_status=$?
24668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24669 test $ac_status = 0; }; }
24670 then
24671 gcc_cv_as_ix86_cmov_sun_syntax=yes
24672 else
24673 echo "configure: failed program was" >&5
24674 cat conftest.s >&5
24675 fi
24676 rm -f conftest.o conftest.s
24677 fi
24678 fi
24679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24680 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24681 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24682
24683 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24684
24685 fi
24686
24687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24688 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24689 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24690 $as_echo_n "(cached) " >&6
24691 else
24692 gcc_cv_as_ix86_ffreep=no
24693 if test x$gcc_cv_as != x; then
24694 $as_echo 'ffreep %st(1)' > conftest.s
24695 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24697 (eval $ac_try) 2>&5
24698 ac_status=$?
24699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24700 test $ac_status = 0; }; }
24701 then
24702 gcc_cv_as_ix86_ffreep=yes
24703 else
24704 echo "configure: failed program was" >&5
24705 cat conftest.s >&5
24706 fi
24707 rm -f conftest.o conftest.s
24708 fi
24709 fi
24710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24711 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24712 if test $gcc_cv_as_ix86_ffreep = yes; then
24713
24714 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24715
24716 fi
24717
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24719 $as_echo_n "checking assembler for .quad directive... " >&6; }
24720 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24721 $as_echo_n "(cached) " >&6
24722 else
24723 gcc_cv_as_ix86_quad=no
24724 if test x$gcc_cv_as != x; then
24725 $as_echo '.quad 0' > conftest.s
24726 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24728 (eval $ac_try) 2>&5
24729 ac_status=$?
24730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24731 test $ac_status = 0; }; }
24732 then
24733 gcc_cv_as_ix86_quad=yes
24734 else
24735 echo "configure: failed program was" >&5
24736 cat conftest.s >&5
24737 fi
24738 rm -f conftest.o conftest.s
24739 fi
24740 fi
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24742 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24743 if test $gcc_cv_as_ix86_quad = yes; then
24744
24745 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24746
24747 fi
24748
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24750 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24751 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24752 $as_echo_n "(cached) " >&6
24753 else
24754 gcc_cv_as_ix86_sahf=no
24755 if test x$gcc_cv_as != x; then
24756 $as_echo '.code64
24757 sahf' > conftest.s
24758 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24760 (eval $ac_try) 2>&5
24761 ac_status=$?
24762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24763 test $ac_status = 0; }; }
24764 then
24765 gcc_cv_as_ix86_sahf=yes
24766 else
24767 echo "configure: failed program was" >&5
24768 cat conftest.s >&5
24769 fi
24770 rm -f conftest.o conftest.s
24771 fi
24772 fi
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24774 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24775 if test $gcc_cv_as_ix86_sahf = yes; then
24776
24777 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24778
24779 fi
24780
24781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24782 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24783 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24784 $as_echo_n "(cached) " >&6
24785 else
24786 gcc_cv_as_ix86_interunit_movq=no
24787 if test x$gcc_cv_as != x; then
24788 $as_echo '.code64
24789 movq %mm0, %rax
24790 movq %rax, %xmm0' > conftest.s
24791 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24793 (eval $ac_try) 2>&5
24794 ac_status=$?
24795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24796 test $ac_status = 0; }; }
24797 then
24798 gcc_cv_as_ix86_interunit_movq=yes
24799 else
24800 echo "configure: failed program was" >&5
24801 cat conftest.s >&5
24802 fi
24803 rm -f conftest.o conftest.s
24804 fi
24805 fi
24806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24807 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24808
24809
24810 cat >>confdefs.h <<_ACEOF
24811 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
24812 _ACEOF
24813
24814
24815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24816 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24817 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24818 $as_echo_n "(cached) " >&6
24819 else
24820 gcc_cv_as_ix86_hle=no
24821 if test x$gcc_cv_as != x; then
24822 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24823 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24825 (eval $ac_try) 2>&5
24826 ac_status=$?
24827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24828 test $ac_status = 0; }; }
24829 then
24830 gcc_cv_as_ix86_hle=yes
24831 else
24832 echo "configure: failed program was" >&5
24833 cat conftest.s >&5
24834 fi
24835 rm -f conftest.o conftest.s
24836 fi
24837 fi
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24839 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24840 if test $gcc_cv_as_ix86_hle = yes; then
24841
24842 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24843
24844 fi
24845
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24847 $as_echo_n "checking assembler for swap suffix... " >&6; }
24848 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24849 $as_echo_n "(cached) " >&6
24850 else
24851 gcc_cv_as_ix86_swap=no
24852 if test x$gcc_cv_as != x; then
24853 $as_echo 'movl.s %esp, %ebp' > conftest.s
24854 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24856 (eval $ac_try) 2>&5
24857 ac_status=$?
24858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24859 test $ac_status = 0; }; }
24860 then
24861 gcc_cv_as_ix86_swap=yes
24862 else
24863 echo "configure: failed program was" >&5
24864 cat conftest.s >&5
24865 fi
24866 rm -f conftest.o conftest.s
24867 fi
24868 fi
24869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24870 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24871 if test $gcc_cv_as_ix86_swap = yes; then
24872
24873 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24874
24875 fi
24876
24877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24878 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24879 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24880 $as_echo_n "(cached) " >&6
24881 else
24882 gcc_cv_as_ix86_diff_sect_delta=no
24883 if test x$gcc_cv_as != x; then
24884 $as_echo '.section .rodata
24885 .L1:
24886 .long .L2-.L1
24887 .long .L3-.L1
24888 .text
24889 .L3: nop
24890 .L2: nop' > conftest.s
24891 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24893 (eval $ac_try) 2>&5
24894 ac_status=$?
24895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24896 test $ac_status = 0; }; }
24897 then
24898 gcc_cv_as_ix86_diff_sect_delta=yes
24899 else
24900 echo "configure: failed program was" >&5
24901 cat conftest.s >&5
24902 fi
24903 rm -f conftest.o conftest.s
24904 fi
24905 fi
24906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24907 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24908 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24909
24910 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24911
24912 fi
24913
24914 # These two are used unconditionally by i386.[ch]; it is to be defined
24915 # to 1 if the feature is present, 0 otherwise.
24916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24917 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24918 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24919 $as_echo_n "(cached) " >&6
24920 else
24921 gcc_cv_as_ix86_gotoff_in_data=no
24922 if test $in_tree_gas = yes; then
24923 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24924 then gcc_cv_as_ix86_gotoff_in_data=yes
24925 fi
24926 elif test x$gcc_cv_as != x; then
24927 $as_echo ' .text
24928 .L0:
24929 nop
24930 .data
24931 .long .L0@GOTOFF' > conftest.s
24932 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24934 (eval $ac_try) 2>&5
24935 ac_status=$?
24936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24937 test $ac_status = 0; }; }
24938 then
24939 gcc_cv_as_ix86_gotoff_in_data=yes
24940 else
24941 echo "configure: failed program was" >&5
24942 cat conftest.s >&5
24943 fi
24944 rm -f conftest.o conftest.s
24945 fi
24946 fi
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24948 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24949
24950
24951 cat >>confdefs.h <<_ACEOF
24952 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24953 _ACEOF
24954
24955
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24957 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24958 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24959 $as_echo_n "(cached) " >&6
24960 else
24961 gcc_cv_as_ix86_rep_lock_prefix=no
24962 if test x$gcc_cv_as != x; then
24963 $as_echo 'rep movsl
24964 rep ret
24965 rep nop
24966 rep bsf %ecx, %eax
24967 rep bsr %ecx, %eax
24968 lock addl %edi, (%eax,%esi)
24969 lock orl $0, (%esp)' > conftest.s
24970 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24972 (eval $ac_try) 2>&5
24973 ac_status=$?
24974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24975 test $ac_status = 0; }; }
24976 then
24977 gcc_cv_as_ix86_rep_lock_prefix=yes
24978 else
24979 echo "configure: failed program was" >&5
24980 cat conftest.s >&5
24981 fi
24982 rm -f conftest.o conftest.s
24983 fi
24984 fi
24985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24986 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24987 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24988
24989 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24990
24991 fi
24992
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24994 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24995 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24996 $as_echo_n "(cached) " >&6
24997 else
24998 gcc_cv_as_ix86_tlsgdplt=no
24999 if test x$gcc_cv_as != x; then
25000 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25001 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25003 (eval $ac_try) 2>&5
25004 ac_status=$?
25005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25006 test $ac_status = 0; }; }
25007 then
25008 if test x$gcc_cv_ld != x \
25009 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25010 gcc_cv_as_ix86_tlsgdplt=yes
25011 fi
25012 rm -f conftest
25013 else
25014 echo "configure: failed program was" >&5
25015 cat conftest.s >&5
25016 fi
25017 rm -f conftest.o conftest.s
25018 fi
25019 fi
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25021 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25022 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25023
25024 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25025
25026 fi
25027
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25029 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25030 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25031 $as_echo_n "(cached) " >&6
25032 else
25033 gcc_cv_as_ix86_tlsldmplt=no
25034 if test x$gcc_cv_as != x; then
25035 $as_echo 'tls_ld:
25036 call tls_ld@tlsldmplt' > conftest.s
25037 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25039 (eval $ac_try) 2>&5
25040 ac_status=$?
25041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25042 test $ac_status = 0; }; }
25043 then
25044 if test x$gcc_cv_ld != x \
25045 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25046 gcc_cv_as_ix86_tlsldmplt=yes
25047 fi
25048 rm -f conftest
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_ix86_tlsldmplt" >&5
25057 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25058 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25059
25060 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25061
25062 fi
25063
25064 ;;
25065
25066 ia64*-*-*)
25067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25068 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25069 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25070 $as_echo_n "(cached) " >&6
25071 else
25072 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25073 if test $in_tree_gas = yes; then
25074 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25075 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25076 fi
25077 elif test x$gcc_cv_as != x; then
25078 $as_echo ' .text
25079 addl r15 = @ltoffx(x#), gp
25080 ;;
25081 ld8.mov r16 = [r15], x#' > conftest.s
25082 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25084 (eval $ac_try) 2>&5
25085 ac_status=$?
25086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25087 test $ac_status = 0; }; }
25088 then
25089 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25090 else
25091 echo "configure: failed program was" >&5
25092 cat conftest.s >&5
25093 fi
25094 rm -f conftest.o conftest.s
25095 fi
25096 fi
25097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25098 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25099 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25100
25101 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25102
25103 fi
25104
25105 ;;
25106
25107 powerpc*-*-*)
25108 case $target in
25109 *-*-aix*) conftest_s=' .machine "pwr5"
25110 .csect .text[PR]
25111 mfcr 3,128';;
25112 *-*-darwin*)
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25114 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25115 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25116 $as_echo_n "(cached) " >&6
25117 else
25118 gcc_cv_as_machine_directive=no
25119 if test x$gcc_cv_as != x; then
25120 $as_echo ' .machine ppc7400' > conftest.s
25121 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25123 (eval $ac_try) 2>&5
25124 ac_status=$?
25125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25126 test $ac_status = 0; }; }
25127 then
25128 gcc_cv_as_machine_directive=yes
25129 else
25130 echo "configure: failed program was" >&5
25131 cat conftest.s >&5
25132 fi
25133 rm -f conftest.o conftest.s
25134 fi
25135 fi
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25137 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25138
25139 if test x$gcc_cv_as_machine_directive != xyes; then
25140 echo "*** This target requires an assembler supporting \".machine\"" >&2
25141 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25142 test x$build = x$target && exit 1
25143 fi
25144 conftest_s=' .text
25145 mfcr r3,128';;
25146 *) conftest_s=' .machine power4
25147 .text
25148 mfcr 3,128';;
25149 esac
25150
25151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25152 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25153 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25154 $as_echo_n "(cached) " >&6
25155 else
25156 gcc_cv_as_powerpc_mfcrf=no
25157 if test $in_tree_gas = yes; then
25158 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25159 then gcc_cv_as_powerpc_mfcrf=yes
25160 fi
25161 elif test x$gcc_cv_as != x; then
25162 $as_echo "$conftest_s" > conftest.s
25163 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25165 (eval $ac_try) 2>&5
25166 ac_status=$?
25167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25168 test $ac_status = 0; }; }
25169 then
25170 gcc_cv_as_powerpc_mfcrf=yes
25171 else
25172 echo "configure: failed program was" >&5
25173 cat conftest.s >&5
25174 fi
25175 rm -f conftest.o conftest.s
25176 fi
25177 fi
25178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25179 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25180 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25181
25182 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25183
25184 fi
25185
25186 case $target in
25187 *-*-aix*) conftest_s=' .machine "pwr5"
25188 .csect .text[PR]
25189 popcntb 3,3';;
25190 *) conftest_s=' .machine power5
25191 .text
25192 popcntb 3,3';;
25193 esac
25194
25195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25196 $as_echo_n "checking assembler for popcntb support... " >&6; }
25197 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25198 $as_echo_n "(cached) " >&6
25199 else
25200 gcc_cv_as_powerpc_popcntb=no
25201 if test $in_tree_gas = yes; then
25202 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25203 then gcc_cv_as_powerpc_popcntb=yes
25204 fi
25205 elif test x$gcc_cv_as != x; then
25206 $as_echo "$conftest_s" > conftest.s
25207 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25209 (eval $ac_try) 2>&5
25210 ac_status=$?
25211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25212 test $ac_status = 0; }; }
25213 then
25214 gcc_cv_as_powerpc_popcntb=yes
25215 else
25216 echo "configure: failed program was" >&5
25217 cat conftest.s >&5
25218 fi
25219 rm -f conftest.o conftest.s
25220 fi
25221 fi
25222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25223 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25224 if test $gcc_cv_as_powerpc_popcntb = yes; then
25225
25226 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25227
25228 fi
25229
25230 case $target in
25231 *-*-aix*) conftest_s=' .machine "pwr5x"
25232 .csect .text[PR]
25233 frin 1,1';;
25234 *) conftest_s=' .machine power5
25235 .text
25236 frin 1,1';;
25237 esac
25238
25239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25240 $as_echo_n "checking assembler for fp round support... " >&6; }
25241 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25242 $as_echo_n "(cached) " >&6
25243 else
25244 gcc_cv_as_powerpc_fprnd=no
25245 if test $in_tree_gas = yes; then
25246 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25247 then gcc_cv_as_powerpc_fprnd=yes
25248 fi
25249 elif test x$gcc_cv_as != x; then
25250 $as_echo "$conftest_s" > conftest.s
25251 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25253 (eval $ac_try) 2>&5
25254 ac_status=$?
25255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25256 test $ac_status = 0; }; }
25257 then
25258 gcc_cv_as_powerpc_fprnd=yes
25259 else
25260 echo "configure: failed program was" >&5
25261 cat conftest.s >&5
25262 fi
25263 rm -f conftest.o conftest.s
25264 fi
25265 fi
25266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25267 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25268 if test $gcc_cv_as_powerpc_fprnd = yes; then
25269
25270 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25271
25272 fi
25273
25274 case $target in
25275 *-*-aix*) conftest_s=' .machine "pwr6"
25276 .csect .text[PR]
25277 mffgpr 1,3';;
25278 *) conftest_s=' .machine power6
25279 .text
25280 mffgpr 1,3';;
25281 esac
25282
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25284 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25285 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25286 $as_echo_n "(cached) " >&6
25287 else
25288 gcc_cv_as_powerpc_mfpgpr=no
25289 if test $in_tree_gas = yes; then
25290 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25291 then gcc_cv_as_powerpc_mfpgpr=yes
25292 fi
25293 elif test x$gcc_cv_as != x; then
25294 $as_echo "$conftest_s" > conftest.s
25295 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25297 (eval $ac_try) 2>&5
25298 ac_status=$?
25299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25300 test $ac_status = 0; }; }
25301 then
25302 gcc_cv_as_powerpc_mfpgpr=yes
25303 else
25304 echo "configure: failed program was" >&5
25305 cat conftest.s >&5
25306 fi
25307 rm -f conftest.o conftest.s
25308 fi
25309 fi
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25311 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25312 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25313
25314 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25315
25316 fi
25317
25318 case $target in
25319 *-*-aix*) conftest_s=' .csect .text[PR]
25320 LCF..0:
25321 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25322 *-*-darwin*)
25323 conftest_s=' .text
25324 LCF0:
25325 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25326 *) conftest_s=' .text
25327 .LCF0:
25328 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25329 esac
25330
25331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25332 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25333 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25334 $as_echo_n "(cached) " >&6
25335 else
25336 gcc_cv_as_powerpc_rel16=no
25337 if test $in_tree_gas = yes; then
25338 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25339 then gcc_cv_as_powerpc_rel16=yes
25340 fi
25341 elif test x$gcc_cv_as != x; then
25342 $as_echo "$conftest_s" > conftest.s
25343 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25345 (eval $ac_try) 2>&5
25346 ac_status=$?
25347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25348 test $ac_status = 0; }; }
25349 then
25350 gcc_cv_as_powerpc_rel16=yes
25351 else
25352 echo "configure: failed program was" >&5
25353 cat conftest.s >&5
25354 fi
25355 rm -f conftest.o conftest.s
25356 fi
25357 fi
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25359 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25360 if test $gcc_cv_as_powerpc_rel16 = yes; then
25361
25362 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25363
25364 fi
25365
25366 case $target in
25367 *-*-aix*) conftest_s=' .machine "pwr6"
25368 .csect .text[PR]
25369 cmpb 3,4,5';;
25370 *) conftest_s=' .machine power6
25371 .text
25372 cmpb 3,4,5';;
25373 esac
25374
25375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25376 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25377 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25378 $as_echo_n "(cached) " >&6
25379 else
25380 gcc_cv_as_powerpc_cmpb=no
25381 if test $in_tree_gas = yes; then
25382 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25383 then gcc_cv_as_powerpc_cmpb=yes
25384 fi
25385 elif test x$gcc_cv_as != x; then
25386 $as_echo "$conftest_s" > conftest.s
25387 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -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_powerpc_cmpb=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_powerpc_cmpb" >&5
25403 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25404 if test $gcc_cv_as_powerpc_cmpb = yes; then
25405
25406 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25407
25408 fi
25409
25410 case $target in
25411 *-*-aix*) conftest_s=' .machine "pwr6"
25412 .csect .text[PR]
25413 dadd 1,2,3';;
25414 *) conftest_s=' .machine power6
25415 .text
25416 dadd 1,2,3';;
25417 esac
25418
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25420 $as_echo_n "checking assembler for decimal float support... " >&6; }
25421 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25422 $as_echo_n "(cached) " >&6
25423 else
25424 gcc_cv_as_powerpc_dfp=no
25425 if test $in_tree_gas = yes; then
25426 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25427 then gcc_cv_as_powerpc_dfp=yes
25428 fi
25429 elif test x$gcc_cv_as != x; then
25430 $as_echo "$conftest_s" > conftest.s
25431 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25433 (eval $ac_try) 2>&5
25434 ac_status=$?
25435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25436 test $ac_status = 0; }; }
25437 then
25438 gcc_cv_as_powerpc_dfp=yes
25439 else
25440 echo "configure: failed program was" >&5
25441 cat conftest.s >&5
25442 fi
25443 rm -f conftest.o conftest.s
25444 fi
25445 fi
25446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25447 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25448 if test $gcc_cv_as_powerpc_dfp = yes; then
25449
25450 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25451
25452 fi
25453
25454 case $target in
25455 *-*-aix*) conftest_s=' .machine "pwr7"
25456 .csect .text[PR]
25457 lxvd2x 1,2,3';;
25458 *) conftest_s=' .machine power7
25459 .text
25460 lxvd2x 1,2,3';;
25461 esac
25462
25463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25464 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25465 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25466 $as_echo_n "(cached) " >&6
25467 else
25468 gcc_cv_as_powerpc_vsx=no
25469 if test $in_tree_gas = yes; then
25470 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25471 then gcc_cv_as_powerpc_vsx=yes
25472 fi
25473 elif test x$gcc_cv_as != x; then
25474 $as_echo "$conftest_s" > conftest.s
25475 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25477 (eval $ac_try) 2>&5
25478 ac_status=$?
25479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25480 test $ac_status = 0; }; }
25481 then
25482 gcc_cv_as_powerpc_vsx=yes
25483 else
25484 echo "configure: failed program was" >&5
25485 cat conftest.s >&5
25486 fi
25487 rm -f conftest.o conftest.s
25488 fi
25489 fi
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25491 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25492 if test $gcc_cv_as_powerpc_vsx = yes; then
25493
25494 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25495
25496 fi
25497
25498 case $target in
25499 *-*-aix*) conftest_s=' .machine "pwr7"
25500 .csect .text[PR]
25501 popcntd 3,3';;
25502 *) conftest_s=' .machine power7
25503 .text
25504 popcntd 3,3';;
25505 esac
25506
25507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25508 $as_echo_n "checking assembler for popcntd support... " >&6; }
25509 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25510 $as_echo_n "(cached) " >&6
25511 else
25512 gcc_cv_as_powerpc_popcntd=no
25513 if test $in_tree_gas = yes; then
25514 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25515 then gcc_cv_as_powerpc_popcntd=yes
25516 fi
25517 elif test x$gcc_cv_as != x; then
25518 $as_echo "$conftest_s" > conftest.s
25519 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25521 (eval $ac_try) 2>&5
25522 ac_status=$?
25523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25524 test $ac_status = 0; }; }
25525 then
25526 gcc_cv_as_powerpc_popcntd=yes
25527 else
25528 echo "configure: failed program was" >&5
25529 cat conftest.s >&5
25530 fi
25531 rm -f conftest.o conftest.s
25532 fi
25533 fi
25534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25535 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25536 if test $gcc_cv_as_powerpc_popcntd = yes; then
25537
25538 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25539
25540 fi
25541
25542 case $target in
25543 *-*-aix*) conftest_s=' .machine "pwr8"
25544 .csect .text[PR]';;
25545 *) conftest_s=' .machine power8
25546 .text';;
25547 esac
25548
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25550 $as_echo_n "checking assembler for power8 support... " >&6; }
25551 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25552 $as_echo_n "(cached) " >&6
25553 else
25554 gcc_cv_as_powerpc_power8=no
25555 if test $in_tree_gas = yes; then
25556 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25557 then gcc_cv_as_powerpc_power8=yes
25558 fi
25559 elif test x$gcc_cv_as != x; then
25560 $as_echo "$conftest_s" > conftest.s
25561 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25563 (eval $ac_try) 2>&5
25564 ac_status=$?
25565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25566 test $ac_status = 0; }; }
25567 then
25568 gcc_cv_as_powerpc_power8=yes
25569 else
25570 echo "configure: failed program was" >&5
25571 cat conftest.s >&5
25572 fi
25573 rm -f conftest.o conftest.s
25574 fi
25575 fi
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25577 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25578 if test $gcc_cv_as_powerpc_power8 = yes; then
25579
25580 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25581
25582 fi
25583
25584 case $target in
25585 *-*-aix*) conftest_s=' .csect .text[PR]
25586 lwsync';;
25587 *) conftest_s=' .text
25588 lwsync';;
25589 esac
25590
25591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25592 $as_echo_n "checking assembler for lwsync support... " >&6; }
25593 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25594 $as_echo_n "(cached) " >&6
25595 else
25596 gcc_cv_as_powerpc_lwsync=no
25597 if test $in_tree_gas = yes; then
25598 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25599 then gcc_cv_as_powerpc_lwsync=yes
25600 fi
25601 elif test x$gcc_cv_as != x; then
25602 $as_echo "$conftest_s" > conftest.s
25603 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25605 (eval $ac_try) 2>&5
25606 ac_status=$?
25607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25608 test $ac_status = 0; }; }
25609 then
25610 gcc_cv_as_powerpc_lwsync=yes
25611 else
25612 echo "configure: failed program was" >&5
25613 cat conftest.s >&5
25614 fi
25615 rm -f conftest.o conftest.s
25616 fi
25617 fi
25618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25619 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25620 if test $gcc_cv_as_powerpc_lwsync = yes; then
25621
25622 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25623
25624 fi
25625
25626 case $target in
25627 *-*-aix*) conftest_s=' .machine "476"
25628 .csect .text[PR]
25629 dci 0';;
25630 *) conftest_s=' .machine "476"
25631 .text
25632 dci 0';;
25633 esac
25634
25635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25636 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25637 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25638 $as_echo_n "(cached) " >&6
25639 else
25640 gcc_cv_as_powerpc_dci=no
25641 if test $in_tree_gas = yes; then
25642 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25643 then gcc_cv_as_powerpc_dci=yes
25644 fi
25645 elif test x$gcc_cv_as != x; then
25646 $as_echo "$conftest_s" > conftest.s
25647 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25649 (eval $ac_try) 2>&5
25650 ac_status=$?
25651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25652 test $ac_status = 0; }; }
25653 then
25654 gcc_cv_as_powerpc_dci=yes
25655 else
25656 echo "configure: failed program was" >&5
25657 cat conftest.s >&5
25658 fi
25659 rm -f conftest.o conftest.s
25660 fi
25661 fi
25662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25663 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25664 if test $gcc_cv_as_powerpc_dci = yes; then
25665
25666 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25667
25668 fi
25669
25670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25671 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25672 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25673 $as_echo_n "(cached) " >&6
25674 else
25675 gcc_cv_as_powerpc_gnu_attribute=no
25676 if test $in_tree_gas = yes; then
25677 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25678 then gcc_cv_as_powerpc_gnu_attribute=yes
25679 fi
25680 elif test x$gcc_cv_as != x; then
25681 $as_echo '.gnu_attribute 4,1' > conftest.s
25682 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25684 (eval $ac_try) 2>&5
25685 ac_status=$?
25686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25687 test $ac_status = 0; }; }
25688 then
25689 gcc_cv_as_powerpc_gnu_attribute=yes
25690 else
25691 echo "configure: failed program was" >&5
25692 cat conftest.s >&5
25693 fi
25694 rm -f conftest.o conftest.s
25695 fi
25696 fi
25697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25698 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25699 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25700
25701 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25702
25703 fi
25704
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25706 $as_echo_n "checking assembler for tls marker support... " >&6; }
25707 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25708 $as_echo_n "(cached) " >&6
25709 else
25710 gcc_cv_as_powerpc_tls_markers=no
25711 if test $in_tree_gas = yes; then
25712 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25713 then gcc_cv_as_powerpc_tls_markers=yes
25714 fi
25715 elif test x$gcc_cv_as != x; then
25716 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25717 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25719 (eval $ac_try) 2>&5
25720 ac_status=$?
25721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25722 test $ac_status = 0; }; }
25723 then
25724 gcc_cv_as_powerpc_tls_markers=yes
25725 else
25726 echo "configure: failed program was" >&5
25727 cat conftest.s >&5
25728 fi
25729 rm -f conftest.o conftest.s
25730 fi
25731 fi
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25733 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25734 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25735
25736 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25737
25738 fi
25739
25740 case $target in
25741 *-*-aix*)
25742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25743 $as_echo_n "checking assembler for .ref support... " >&6; }
25744 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25745 $as_echo_n "(cached) " >&6
25746 else
25747 gcc_cv_as_aix_ref=no
25748 if test $in_tree_gas = yes; then
25749 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25750 then gcc_cv_as_aix_ref=yes
25751 fi
25752 elif test x$gcc_cv_as != x; then
25753 $as_echo ' .csect stuff[rw]
25754 stuff:
25755 .long 1
25756 .extern sym
25757 .ref sym
25758 ' > conftest.s
25759 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25761 (eval $ac_try) 2>&5
25762 ac_status=$?
25763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25764 test $ac_status = 0; }; }
25765 then
25766 gcc_cv_as_aix_ref=yes
25767 else
25768 echo "configure: failed program was" >&5
25769 cat conftest.s >&5
25770 fi
25771 rm -f conftest.o conftest.s
25772 fi
25773 fi
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25775 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25776 if test $gcc_cv_as_aix_ref = yes; then
25777
25778 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25779
25780 fi
25781 ;;
25782 esac
25783 ;;
25784
25785 mips*-*-*)
25786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25787 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25788 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25789 $as_echo_n "(cached) " >&6
25790 else
25791 gcc_cv_as_mips_explicit_relocs=no
25792 if test $in_tree_gas = yes; then
25793 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25794 then gcc_cv_as_mips_explicit_relocs=yes
25795 fi
25796 elif test x$gcc_cv_as != x; then
25797 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25798 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25800 (eval $ac_try) 2>&5
25801 ac_status=$?
25802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25803 test $ac_status = 0; }; }
25804 then
25805 gcc_cv_as_mips_explicit_relocs=yes
25806 else
25807 echo "configure: failed program was" >&5
25808 cat conftest.s >&5
25809 fi
25810 rm -f conftest.o conftest.s
25811 fi
25812 fi
25813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25814 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25815 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25816 if test x$target_cpu_default = x
25817 then target_cpu_default=MASK_EXPLICIT_RELOCS
25818 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25819 fi
25820 fi
25821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25822 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25823 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25824 $as_echo_n "(cached) " >&6
25825 else
25826 gcc_cv_as_mips_no_shared=no
25827 if test $in_tree_gas = yes; then
25828 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25829 then gcc_cv_as_mips_no_shared=yes
25830 fi
25831 elif test x$gcc_cv_as != x; then
25832 $as_echo 'nop' > conftest.s
25833 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25835 (eval $ac_try) 2>&5
25836 ac_status=$?
25837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25838 test $ac_status = 0; }; }
25839 then
25840 gcc_cv_as_mips_no_shared=yes
25841 else
25842 echo "configure: failed program was" >&5
25843 cat conftest.s >&5
25844 fi
25845 rm -f conftest.o conftest.s
25846 fi
25847 fi
25848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25849 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25850 if test $gcc_cv_as_mips_no_shared = yes; then
25851
25852 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25853
25854 fi
25855
25856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25857 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25858 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25859 $as_echo_n "(cached) " >&6
25860 else
25861 gcc_cv_as_mips_gnu_attribute=no
25862 if test $in_tree_gas = yes; then
25863 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25864 then gcc_cv_as_mips_gnu_attribute=yes
25865 fi
25866 elif test x$gcc_cv_as != x; then
25867 $as_echo '.gnu_attribute 4,1' > conftest.s
25868 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25870 (eval $ac_try) 2>&5
25871 ac_status=$?
25872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25873 test $ac_status = 0; }; }
25874 then
25875 gcc_cv_as_mips_gnu_attribute=yes
25876 else
25877 echo "configure: failed program was" >&5
25878 cat conftest.s >&5
25879 fi
25880 rm -f conftest.o conftest.s
25881 fi
25882 fi
25883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25884 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25885 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25886
25887 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25888
25889 fi
25890
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
25892 $as_echo_n "checking assembler for .micromips support... " >&6; }
25893 if test "${gcc_cv_as_micromips_support+set}" = set; then :
25894 $as_echo_n "(cached) " >&6
25895 else
25896 gcc_cv_as_micromips_support=no
25897 if test x$gcc_cv_as != x; then
25898 $as_echo '.set micromips' > conftest.s
25899 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25901 (eval $ac_try) 2>&5
25902 ac_status=$?
25903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25904 test $ac_status = 0; }; }
25905 then
25906 gcc_cv_as_micromips_support=yes
25907 else
25908 echo "configure: failed program was" >&5
25909 cat conftest.s >&5
25910 fi
25911 rm -f conftest.o conftest.s
25912 fi
25913 fi
25914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
25915 $as_echo "$gcc_cv_as_micromips_support" >&6; }
25916 if test $gcc_cv_as_micromips_support = yes; then
25917
25918 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
25919
25920 fi
25921
25922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25923 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25924 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25925 $as_echo_n "(cached) " >&6
25926 else
25927 gcc_cv_as_mips_dtprelword=no
25928 if test $in_tree_gas = yes; then
25929 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25930 then gcc_cv_as_mips_dtprelword=yes
25931 fi
25932 elif test x$gcc_cv_as != x; then
25933 $as_echo '.section .tdata,"awT",@progbits
25934 x:
25935 .word 2
25936 .text
25937 .dtprelword x+0x8000' > conftest.s
25938 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25940 (eval $ac_try) 2>&5
25941 ac_status=$?
25942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25943 test $ac_status = 0; }; }
25944 then
25945 gcc_cv_as_mips_dtprelword=yes
25946 else
25947 echo "configure: failed program was" >&5
25948 cat conftest.s >&5
25949 fi
25950 rm -f conftest.o conftest.s
25951 fi
25952 fi
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25954 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25955 if test $gcc_cv_as_mips_dtprelword = yes; then
25956
25957 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25958
25959 fi
25960
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25962 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25963 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25964 $as_echo_n "(cached) " >&6
25965 else
25966 gcc_cv_as_mips_dspr1_mult=no
25967 if test x$gcc_cv_as != x; then
25968 $as_echo ' .set mips32r2
25969 .set nodspr2
25970 .set dsp
25971 madd $ac3,$4,$5
25972 maddu $ac3,$4,$5
25973 msub $ac3,$4,$5
25974 msubu $ac3,$4,$5
25975 mult $ac3,$4,$5
25976 multu $ac3,$4,$5' > conftest.s
25977 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25979 (eval $ac_try) 2>&5
25980 ac_status=$?
25981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25982 test $ac_status = 0; }; }
25983 then
25984 gcc_cv_as_mips_dspr1_mult=yes
25985 else
25986 echo "configure: failed program was" >&5
25987 cat conftest.s >&5
25988 fi
25989 rm -f conftest.o conftest.s
25990 fi
25991 fi
25992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25993 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25994 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25995
25996 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25997
25998 fi
25999
26000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26001 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26002 gcc_cv_as_ld_jalr_reloc=no
26003 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26004 if test $in_tree_ld = yes ; then
26005 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 \
26006 && test $in_tree_ld_is_elf = yes; then
26007 gcc_cv_as_ld_jalr_reloc=yes
26008 fi
26009 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26010 echo ' .ent x' > conftest.s
26011 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
26012 echo ' ld $25,%call16(y)($28)' >> conftest.s
26013 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26014 echo '1: jalr $25' >> conftest.s
26015 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26016 echo '1: jalr $25' >> conftest.s
26017 echo ' .end x' >> conftest.s
26018 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26019 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26020 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26021 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26022 gcc_cv_as_ld_jalr_reloc=yes
26023 fi
26024 fi
26025 rm -f conftest.*
26026 fi
26027 fi
26028 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26029 if test x$target_cpu_default = x; then
26030 target_cpu_default=MASK_RELAX_PIC_CALLS
26031 else
26032 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26033 fi
26034 fi
26035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26036 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26037
26038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26039 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26040 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26041 $as_echo_n "(cached) " >&6
26042 else
26043 gcc_cv_ld_mips_personality_relaxation=no
26044 if test $in_tree_ld = yes ; then
26045 if test "$gcc_cv_gld_major_version" -eq 2 \
26046 -a "$gcc_cv_gld_minor_version" -ge 21 \
26047 -o "$gcc_cv_gld_major_version" -gt 2; then
26048 gcc_cv_ld_mips_personality_relaxation=yes
26049 fi
26050 elif test x$gcc_cv_as != x \
26051 -a x$gcc_cv_ld != x \
26052 -a x$gcc_cv_readelf != x ; then
26053 cat > conftest.s <<EOF
26054 .cfi_startproc
26055 .cfi_personality 0x80,indirect_ptr
26056 .ent test
26057 test:
26058 nop
26059 .end test
26060 .cfi_endproc
26061
26062 .section .data,"aw",@progbits
26063 indirect_ptr:
26064 .dc.a personality
26065 EOF
26066 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26067 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26068 if $gcc_cv_readelf -d conftest 2>&1 \
26069 | grep TEXTREL > /dev/null 2>&1; then
26070 :
26071 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26072 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26073 :
26074 else
26075 gcc_cv_ld_mips_personality_relaxation=yes
26076 fi
26077 fi
26078 fi
26079 rm -f conftest.s conftest.o conftest
26080 fi
26081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26082 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26083 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26084
26085 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26086
26087 fi
26088
26089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26090 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26091 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26092 $as_echo_n "(cached) " >&6
26093 else
26094 gcc_cv_as_mips_nan=no
26095 if test x$gcc_cv_as != x; then
26096 $as_echo '' > conftest.s
26097 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26099 (eval $ac_try) 2>&5
26100 ac_status=$?
26101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26102 test $ac_status = 0; }; }
26103 then
26104 gcc_cv_as_mips_nan=yes
26105 else
26106 echo "configure: failed program was" >&5
26107 cat conftest.s >&5
26108 fi
26109 rm -f conftest.o conftest.s
26110 fi
26111 fi
26112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26113 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26114 if test $gcc_cv_as_mips_nan = yes; then
26115
26116 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26117
26118 fi
26119 if test x$gcc_cv_as_mips_nan = xno \
26120 && test x$with_nan != x; then
26121 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26122 fi
26123 ;;
26124 esac
26125
26126 # Mips and HP-UX need the GNU assembler.
26127 # Linux on IA64 might be able to use the Intel assembler.
26128
26129 case "$target" in
26130 mips*-*-* | *-*-hpux* )
26131 if test x$gas_flag = xyes \
26132 || test x"$host" != x"$build" \
26133 || test ! -x "$gcc_cv_as" \
26134 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26135 :
26136 else
26137 echo "*** This configuration requires the GNU assembler" >&2
26138 exit 1
26139 fi
26140 ;;
26141 esac
26142
26143 # ??? Not all targets support dwarf2 debug_line, even within a version
26144 # of gas. Moreover, we need to emit a valid instruction to trigger any
26145 # info to the output file. So, as supported targets are added to gas 2.11,
26146 # add some instruction here to (also) show we expect this might work.
26147 # ??? Once 2.11 is released, probably need to add first known working
26148 # version to the per-target configury.
26149 case "$cpu_type" in
26150 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26151 | mips | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 \
26152 | xtensa)
26153 insn="nop"
26154 ;;
26155 ia64 | s390)
26156 insn="nop 0"
26157 ;;
26158 mmix)
26159 insn="swym 0"
26160 ;;
26161 esac
26162 if test x"$insn" != x; then
26163 conftest_s="\
26164 .file 1 \"conftest.s\"
26165 .loc 1 3 0
26166 $insn"
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26168 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26169 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26170 $as_echo_n "(cached) " >&6
26171 else
26172 gcc_cv_as_dwarf2_debug_line=no
26173 if test $in_tree_gas = yes; then
26174 if test $in_tree_gas_is_elf = yes \
26175 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26176 then gcc_cv_as_dwarf2_debug_line=yes
26177 fi
26178 elif test x$gcc_cv_as != x; then
26179 $as_echo "$conftest_s" > conftest.s
26180 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26182 (eval $ac_try) 2>&5
26183 ac_status=$?
26184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26185 test $ac_status = 0; }; }
26186 then
26187 if test x$gcc_cv_objdump != x \
26188 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26189 | grep debug_line > /dev/null 2>&1; then
26190 gcc_cv_as_dwarf2_debug_line=yes
26191 fi
26192 else
26193 echo "configure: failed program was" >&5
26194 cat conftest.s >&5
26195 fi
26196 rm -f conftest.o conftest.s
26197 fi
26198 fi
26199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26200 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26201
26202
26203 # The .debug_line file table must be in the exact order that
26204 # we specified the files, since these indices are also used
26205 # by DW_AT_decl_file. Approximate this test by testing if
26206 # the assembler bitches if the same index is assigned twice.
26207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26208 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26209 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26210 $as_echo_n "(cached) " >&6
26211 else
26212 gcc_cv_as_dwarf2_file_buggy=no
26213 if test x$gcc_cv_as != x; then
26214 $as_echo ' .file 1 "foo.s"
26215 .file 1 "bar.s"' > conftest.s
26216 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26218 (eval $ac_try) 2>&5
26219 ac_status=$?
26220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26221 test $ac_status = 0; }; }
26222 then
26223 gcc_cv_as_dwarf2_file_buggy=yes
26224 else
26225 echo "configure: failed program was" >&5
26226 cat conftest.s >&5
26227 fi
26228 rm -f conftest.o conftest.s
26229 fi
26230 fi
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26232 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26233
26234
26235 if test $gcc_cv_as_dwarf2_debug_line = yes \
26236 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26237
26238 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26239
26240 fi
26241
26242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26243 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26244 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26245 $as_echo_n "(cached) " >&6
26246 else
26247 gcc_cv_as_gdwarf2_flag=no
26248 if test $in_tree_gas = yes; then
26249 if test $in_tree_gas_is_elf = yes \
26250 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26251 then gcc_cv_as_gdwarf2_flag=yes
26252 fi
26253 elif test x$gcc_cv_as != x; then
26254 $as_echo "$insn" > conftest.s
26255 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26257 (eval $ac_try) 2>&5
26258 ac_status=$?
26259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26260 test $ac_status = 0; }; }
26261 then
26262 gcc_cv_as_gdwarf2_flag=yes
26263 else
26264 echo "configure: failed program was" >&5
26265 cat conftest.s >&5
26266 fi
26267 rm -f conftest.o conftest.s
26268 fi
26269 fi
26270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26271 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26272 if test $gcc_cv_as_gdwarf2_flag = yes; then
26273
26274 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26275
26276 fi
26277
26278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26279 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26280 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26281 $as_echo_n "(cached) " >&6
26282 else
26283 gcc_cv_as_gstabs_flag=no
26284 if test $in_tree_gas = yes; then
26285 if test $in_tree_gas_is_elf = yes \
26286 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26287 then gcc_cv_as_gstabs_flag=yes
26288 fi
26289 elif test x$gcc_cv_as != x; then
26290 $as_echo "$insn" > conftest.s
26291 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26293 (eval $ac_try) 2>&5
26294 ac_status=$?
26295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26296 test $ac_status = 0; }; }
26297 then
26298 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26299 # and warns about it, but still exits successfully. So check for
26300 # this.
26301 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26303 (eval $ac_try) 2>&5
26304 ac_status=$?
26305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26306 test $ac_status = 0; }; }
26307 then :
26308 else gcc_cv_as_gstabs_flag=yes
26309 fi
26310 else
26311 echo "configure: failed program was" >&5
26312 cat conftest.s >&5
26313 fi
26314 rm -f conftest.o conftest.s
26315 fi
26316 fi
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26318 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26319 if test $gcc_cv_as_gstabs_flag = yes; then
26320
26321 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26322
26323 fi
26324
26325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26326 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26327 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26328 $as_echo_n "(cached) " >&6
26329 else
26330 gcc_cv_as_debug_prefix_map_flag=no
26331 if test $in_tree_gas = yes; then
26332 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26333 then gcc_cv_as_debug_prefix_map_flag=yes
26334 fi
26335 elif test x$gcc_cv_as != x; then
26336 $as_echo "$insn" > conftest.s
26337 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26339 (eval $ac_try) 2>&5
26340 ac_status=$?
26341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26342 test $ac_status = 0; }; }
26343 then
26344 gcc_cv_as_debug_prefix_map_flag=yes
26345 else
26346 echo "configure: failed program was" >&5
26347 cat conftest.s >&5
26348 fi
26349 rm -f conftest.o conftest.s
26350 fi
26351 fi
26352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26353 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26354 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26355
26356 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26357
26358 fi
26359 fi
26360
26361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26362 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26363 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26364 $as_echo_n "(cached) " >&6
26365 else
26366 gcc_cv_as_lcomm_with_alignment=no
26367 if test x$gcc_cv_as != x; then
26368 $as_echo '.lcomm bar,4,16' > conftest.s
26369 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26371 (eval $ac_try) 2>&5
26372 ac_status=$?
26373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26374 test $ac_status = 0; }; }
26375 then
26376 gcc_cv_as_lcomm_with_alignment=yes
26377 else
26378 echo "configure: failed program was" >&5
26379 cat conftest.s >&5
26380 fi
26381 rm -f conftest.o conftest.s
26382 fi
26383 fi
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26385 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26386 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26387
26388 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26389
26390 fi
26391
26392 if test x$with_sysroot = x && test x$host = x$target \
26393 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26394 && test "$prefix" != "NONE"; then
26395
26396 cat >>confdefs.h <<_ACEOF
26397 #define PREFIX_INCLUDE_DIR "$prefix/include"
26398 _ACEOF
26399
26400 fi
26401
26402 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26403 if test "x$with_headers" != x; then
26404 target_header_dir=$with_headers
26405 elif test "x$with_sysroot" = x; then
26406 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26407 elif test "x$with_build_sysroot" != "x"; then
26408 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26409 elif test "x$with_sysroot" = xyes; then
26410 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26411 else
26412 target_header_dir="${with_sysroot}${native_system_header_dir}"
26413 fi
26414 else
26415 target_header_dir=${native_system_header_dir}
26416 fi
26417
26418 # Determine the version of glibc, if any, used on the target.
26419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26420 $as_echo_n "checking for target glibc version... " >&6; }
26421
26422 # Check whether --with-glibc-version was given.
26423 if test "${with_glibc_version+set}" = set; then :
26424 withval=$with_glibc_version;
26425 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26426 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26427 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26428 else
26429 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
26430 fi
26431 else
26432
26433 glibc_version_major=0
26434 glibc_version_minor=0
26435 if test -f $target_header_dir/features.h \
26436 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26437 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26438 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26439 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26440 fi
26441 fi
26442
26443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26444 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26445
26446 # Check whether --enable-gnu-unique-object was given.
26447 if test "${enable_gnu_unique_object+set}" = set; then :
26448 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26449 yes | no) ;;
26450 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26451 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26452 esac
26453 else
26454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26455 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26456 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26457 $as_echo_n "(cached) " >&6
26458 else
26459 gcc_cv_as_gnu_unique_object=no
26460 if test $in_tree_gas = yes; then
26461 if test $in_tree_gas_is_elf = yes \
26462 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26463 then gcc_cv_as_gnu_unique_object=yes
26464 fi
26465 elif test x$gcc_cv_as != x; then
26466 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26467 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26469 (eval $ac_try) 2>&5
26470 ac_status=$?
26471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26472 test $ac_status = 0; }; }
26473 then
26474 gcc_cv_as_gnu_unique_object=yes
26475 else
26476 echo "configure: failed program was" >&5
26477 cat conftest.s >&5
26478 fi
26479 rm -f conftest.o conftest.s
26480 fi
26481 fi
26482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26483 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26484 if test $gcc_cv_as_gnu_unique_object = yes; then
26485 # We need to unquote above to to use the definition from config.gcc.
26486 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26487
26488 if test $glibc_version_major -gt 2 \
26489 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26490 enable_gnu_unique_object=yes
26491 fi
26492
26493 fi
26494 fi
26495
26496 if test x$enable_gnu_unique_object = xyes; then
26497
26498 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26499
26500 fi
26501
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26503 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26504 if test "${gcc_cv_as_line_zero+set}" = set; then :
26505 $as_echo_n "(cached) " >&6
26506 else
26507 gcc_cv_as_line_zero=no
26508 if test $in_tree_gas = yes; then
26509 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26510 then gcc_cv_as_line_zero=yes
26511 fi
26512 elif test "x$gcc_cv_as" != x; then
26513 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26514 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26516 (eval $ac_try) 2>&5
26517 ac_status=$?
26518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26519 test $ac_status = 0; }; } &&
26520 test "x`cat conftest.out`" = x
26521 then
26522 gcc_cv_as_line_zero=yes
26523 else
26524 echo "configure: failed program was" >&5
26525 cat conftest.s >&5
26526 echo "configure: error output was" >&5
26527 cat conftest.out >&5
26528 fi
26529 rm -f conftest.o conftest.s conftest.out
26530 fi
26531 fi
26532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26533 $as_echo "$gcc_cv_as_line_zero" >&6; }
26534 if test "x$gcc_cv_as_line_zero" = xyes; then
26535
26536 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26537
26538 fi
26539
26540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26541 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26542 gcc_cv_ld_eh_frame_hdr=no
26543 if test $in_tree_ld = yes ; then
26544 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 \
26545 && test $in_tree_ld_is_elf = yes; then
26546 gcc_cv_ld_eh_frame_hdr=yes
26547 fi
26548 elif test x$gcc_cv_ld != x; then
26549 if echo "$ld_ver" | grep GNU > /dev/null; then
26550 # Check if linker supports --eh-frame-hdr option
26551 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26552 gcc_cv_ld_eh_frame_hdr=yes
26553 fi
26554 else
26555 case "$target" in
26556 *-*-solaris2*)
26557 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26558 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26559 gcc_cv_ld_eh_frame_hdr=yes
26560 fi
26561 ;;
26562 esac
26563 fi
26564 fi
26565
26566 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26567
26568 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26569
26570 fi
26571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26572 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26573
26574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26575 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26576 gcc_cv_ld_eh_frame_ciev3=no
26577 if test $in_tree_ld = yes ; then
26578 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 \
26579 && test $in_tree_ld_is_elf = yes; then
26580 gcc_cv_ld_eh_frame_ciev3=yes
26581 fi
26582 elif test x$gcc_cv_ld != x; then
26583 if echo "$ld_ver" | grep GNU > /dev/null; then
26584 gcc_cv_ld_eh_frame_ciev3=yes
26585 if test 0"$ld_date" -lt 20040513; then
26586 if test -n "$ld_date"; then
26587 # If there was date string, but was earlier than 2004-05-13, fail
26588 gcc_cv_ld_eh_frame_ciev3=no
26589 elif test "$ld_vers_major" -lt 2; then
26590 gcc_cv_ld_eh_frame_ciev3=no
26591 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26592 gcc_cv_ld_eh_frame_ciev3=no
26593 fi
26594 fi
26595 else
26596 case "$target" in
26597 *-*-solaris2*)
26598 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26599 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26600 gcc_cv_ld_eh_frame_ciev3=yes
26601 fi
26602 ;;
26603 esac
26604 fi
26605 fi
26606
26607 cat >>confdefs.h <<_ACEOF
26608 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26609 _ACEOF
26610
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26612 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26613
26614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26615 $as_echo_n "checking linker position independent executable support... " >&6; }
26616 gcc_cv_ld_pie=no
26617 if test $in_tree_ld = yes ; then
26618 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 \
26619 && test $in_tree_ld_is_elf = yes; then
26620 gcc_cv_ld_pie=yes
26621 fi
26622 elif test x$gcc_cv_ld != x; then
26623 # Check if linker supports -pie option
26624 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26625 gcc_cv_ld_pie=yes
26626 fi
26627 fi
26628 if test x"$gcc_cv_ld_pie" = xyes; then
26629
26630 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26631
26632 fi
26633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26634 $as_echo "$gcc_cv_ld_pie" >&6; }
26635
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26637 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26638 gcc_cv_ld_eh_gc_sections=no
26639 if test $in_tree_ld = yes ; then
26640 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 \
26641 && test $in_tree_ld_is_elf = yes; then
26642 gcc_cv_ld_eh_gc_sections=yes
26643 fi
26644 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26645 cat > conftest.s <<EOF
26646 .section .text
26647 .globl _start
26648 .type _start, @function
26649 _start:
26650 .long foo
26651 .size _start, .-_start
26652 .section .text.foo,"ax",@progbits
26653 .type foo, @function
26654 foo:
26655 .long 0
26656 .size foo, .-foo
26657 .section .gcc_except_table.foo,"a",@progbits
26658 .L0:
26659 .long 0
26660 .section .eh_frame,"a",@progbits
26661 .long .L0
26662 EOF
26663 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26664 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26665 | grep "gc-sections option ignored" > /dev/null; then
26666 gcc_cv_ld_eh_gc_sections=no
26667 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26668 | grep gcc_except_table > /dev/null; then
26669 gcc_cv_ld_eh_gc_sections=yes
26670 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26671 if test x$gcc_cv_as_comdat_group != xyes; then
26672 gcc_cv_ld_eh_gc_sections=no
26673 cat > conftest.s <<EOF
26674 .section .text
26675 .globl _start
26676 .type _start, @function
26677 _start:
26678 .long foo
26679 .size _start, .-_start
26680 .section .gnu.linkonce.t.foo,"ax",@progbits
26681 .type foo, @function
26682 foo:
26683 .long 0
26684 .size foo, .-foo
26685 .section .gcc_except_table.foo,"a",@progbits
26686 .L0:
26687 .long 0
26688 .section .eh_frame,"a",@progbits
26689 .long .L0
26690 EOF
26691 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26692 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26693 | grep "gc-sections option ignored" > /dev/null; then
26694 gcc_cv_ld_eh_gc_sections=no
26695 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26696 | grep gcc_except_table > /dev/null; then
26697 gcc_cv_ld_eh_gc_sections=yes
26698 fi
26699 fi
26700 fi
26701 fi
26702 fi
26703 rm -f conftest.s conftest.o conftest
26704 fi
26705 case "$target" in
26706 hppa*-*-linux*)
26707 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26708 gcc_cv_ld_eh_gc_sections=no
26709 ;;
26710 esac
26711 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26712
26713 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26714
26715 fi
26716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26717 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26718
26719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26720 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26721 gcc_cv_ld_eh_gc_sections_bug=no
26722 if test $in_tree_ld = yes ; then
26723 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 \
26724 && test $in_tree_ld_is_elf = yes; then
26725 gcc_cv_ld_eh_gc_sections_bug=yes
26726 fi
26727 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
26728 gcc_cv_ld_eh_gc_sections_bug=yes
26729 cat > conftest.s <<EOF
26730 .section .text
26731 .globl _start
26732 .type _start, @function
26733 _start:
26734 .long foo
26735 .size _start, .-_start
26736 .section .text.startup.foo,"ax",@progbits
26737 .type foo, @function
26738 foo:
26739 .long 0
26740 .size foo, .-foo
26741 .section .gcc_except_table.foo,"a",@progbits
26742 .L0:
26743 .long 0
26744 .section .eh_frame,"a",@progbits
26745 .long .L0
26746 EOF
26747 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26748 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26749 | grep "gc-sections option ignored" > /dev/null; then
26750 :
26751 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26752 | grep gcc_except_table > /dev/null; then
26753 gcc_cv_ld_eh_gc_sections_bug=no
26754 fi
26755 fi
26756 rm -f conftest.s conftest.o conftest
26757 fi
26758 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26759
26760 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26761
26762 fi
26763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26764 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26765
26766 # --------
26767 # UNSORTED
26768 # --------
26769
26770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26771 $as_echo_n "checking linker --as-needed support... " >&6; }
26772 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26773 $as_echo_n "(cached) " >&6
26774 else
26775 gcc_cv_ld_as_needed=no
26776 gcc_cv_ld_as_needed_option='--as-needed'
26777 gcc_cv_ld_no_as_needed_option='--no-as-needed'
26778 if test $in_tree_ld = yes ; then
26779 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 \
26780 && test $in_tree_ld_is_elf = yes; then
26781 gcc_cv_ld_as_needed=yes
26782 fi
26783 elif test x$gcc_cv_ld != x; then
26784 # Check if linker supports --as-needed and --no-as-needed options
26785 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26786 gcc_cv_ld_as_needed=yes
26787 else
26788 case "$target" in
26789 # Solaris 2 ld always supports -z ignore/-z record.
26790 *-*-solaris2*)
26791 gcc_cv_ld_as_needed=yes
26792 gcc_cv_ld_as_needed_option="-z ignore"
26793 gcc_cv_ld_no_as_needed_option="-z record"
26794 ;;
26795 esac
26796 fi
26797 fi
26798 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
26799 # dl_iterate_phdr, i.e. since Solaris 11.
26800 case "$target" in
26801 *-*-solaris2.1[1-9]*)
26802 case "$target" in
26803 i?86-*-* | x86_64-*-*)
26804 if echo "$ld_ver" | grep GNU > /dev/null; then
26805 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
26806 gcc_cv_ld_as_needed=no
26807 fi
26808 ;;
26809 esac
26810 ;;
26811 *-*-solaris2*)
26812 gcc_cv_ld_as_needed=no
26813 ;;
26814 esac
26815
26816 fi
26817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26818 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26819 if test x"$gcc_cv_ld_as_needed" = xyes; then
26820
26821 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26822
26823
26824 cat >>confdefs.h <<_ACEOF
26825 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
26826 _ACEOF
26827
26828
26829 cat >>confdefs.h <<_ACEOF
26830 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
26831 _ACEOF
26832
26833 fi
26834
26835 case "$target:$tm_file" in
26836 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26837 case "$target" in
26838 *le-*-linux*)
26839 emul_name="-melf64lppc"
26840 ;;
26841 *-*-linux*)
26842 emul_name="-melf64ppc"
26843 ;;
26844 *-*-freebsd*)
26845 emul_name="-melf64ppc_fbsd"
26846 ;;
26847 esac
26848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26849 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26850 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26851 $as_echo_n "(cached) " >&6
26852 else
26853 gcc_cv_ld_no_dot_syms=no
26854 if test x"$ld_is_gold" = xyes; then
26855 gcc_cv_ld_no_dot_syms=yes
26856 elif test $in_tree_ld = yes ; then
26857 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
26858 gcc_cv_ld_no_dot_syms=yes
26859 fi
26860 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26861 cat > conftest1.s <<EOF
26862 .text
26863 bl .foo
26864 EOF
26865 cat > conftest2.s <<EOF
26866 .section ".opd","aw"
26867 .align 3
26868 .globl foo
26869 .type foo,@function
26870 foo:
26871 .quad .LEfoo,.TOC.@tocbase,0
26872 .text
26873 .LEfoo:
26874 blr
26875 .size foo,.-.LEfoo
26876 EOF
26877 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26878 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26879 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26880 gcc_cv_ld_no_dot_syms=yes
26881 fi
26882 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26883 fi
26884
26885 fi
26886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26887 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26888 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26889
26890 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26891
26892 fi
26893
26894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26895 $as_echo_n "checking linker large toc support... " >&6; }
26896 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26897 $as_echo_n "(cached) " >&6
26898 else
26899 gcc_cv_ld_large_toc=no
26900 if test x"$ld_is_gold" = xyes; then
26901 gcc_cv_ld_large_toc=yes
26902 elif test $in_tree_ld = yes ; then
26903 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
26904 gcc_cv_ld_large_toc=yes
26905 fi
26906 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26907 cat > conftest.s <<EOF
26908 .section ".tbss","awT",@nobits
26909 .align 3
26910 ie0: .space 8
26911 .global _start
26912 .text
26913 _start:
26914 addis 9,13,ie0@got@tprel@ha
26915 ld 9,ie0@got@tprel@l(9)
26916 EOF
26917 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26918 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26919 gcc_cv_ld_large_toc=yes
26920 fi
26921 rm -f conftest conftest.o conftest.s
26922 fi
26923
26924 fi
26925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26926 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26927 if test x"$gcc_cv_ld_large_toc" = xyes; then
26928
26929 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26930
26931 fi
26932 ;;
26933 esac
26934
26935 case "$target" in
26936 *-*-aix*)
26937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26938 $as_echo_n "checking linker large toc support... " >&6; }
26939 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26940 $as_echo_n "(cached) " >&6
26941 else
26942 gcc_cv_ld_large_toc=no
26943 if test x$gcc_cv_as != x ; then
26944 cat > conftest.s <<EOF
26945 .toc
26946 LC..1:
26947 .tc a[TC],a[RW]
26948 .extern a[RW]
26949 .csect .text[PR]
26950 .largetoctest:
26951 addis 9,LC..1@u(2)
26952 ld 3,LC..1@l(9)
26953 EOF
26954 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
26955 gcc_cv_ld_large_toc=yes
26956 fi
26957 rm -f conftest conftest.o conftest.s
26958 fi
26959
26960 fi
26961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26962 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26963 if test x"$gcc_cv_ld_large_toc" = xyes; then
26964
26965 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26966
26967 fi
26968 ;;
26969 esac
26970
26971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26972 $as_echo_n "checking linker --build-id support... " >&6; }
26973 if test "${gcc_cv_ld_buildid+set}" = set; then :
26974 $as_echo_n "(cached) " >&6
26975 else
26976 gcc_cv_ld_buildid=no
26977 if test $in_tree_ld = yes ; then
26978 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26979 "$gcc_cv_gld_minor_version" -ge 18 -o \
26980 "$gcc_cv_gld_major_version" -gt 2 \
26981 && test $in_tree_ld_is_elf = yes; then
26982 gcc_cv_ld_buildid=yes
26983 fi
26984 elif test x$gcc_cv_ld != x; then
26985 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26986 gcc_cv_ld_buildid=yes
26987 fi
26988 fi
26989 fi
26990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26991 $as_echo "$gcc_cv_ld_buildid" >&6; }
26992 if test x"$gcc_cv_ld_buildid" = xyes; then
26993
26994 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26995
26996 fi
26997
26998 # Check whether --enable-linker-build-id was given.
26999 if test "${enable_linker_build_id+set}" = set; then :
27000 enableval=$enable_linker_build_id;
27001 else
27002 enable_linker_build_id=no
27003 fi
27004
27005
27006 if test x"$enable_linker_build_id" = xyes; then
27007 if test x"$gcc_cv_ld_buildid" = xyes; then
27008
27009 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27010
27011 else
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27013 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27014 fi
27015 fi
27016
27017 # In binutils 2.21, GNU ld gained support for new emulations fully
27018 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27020 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27021 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27022 $as_echo_n "(cached) " >&6
27023 else
27024 gcc_cv_ld_sol2_emulation=no
27025 if test $in_tree_ld = yes ; then
27026 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27027 "$gcc_cv_gld_minor_version" -ge 21 -o \
27028 "$gcc_cv_gld_major_version" -gt 2 \
27029 && test $in_tree_ld_is_elf = yes; then
27030 gcc_cv_ld_sol2_emulation=yes
27031 fi
27032 elif test x$gcc_cv_ld != x; then
27033 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27034 grep _sol2 > /dev/null; then
27035 gcc_cv_ld_sol2_emulation=yes
27036 fi
27037 fi
27038 fi
27039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27040 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27041 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27042
27043 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27044
27045 fi
27046
27047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27048 $as_echo_n "checking linker --sysroot support... " >&6; }
27049 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27050 $as_echo_n "(cached) " >&6
27051 else
27052 gcc_cv_ld_sysroot=no
27053 if test $in_tree_ld = yes ; then
27054 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
27055 gcc_cv_ld_sysroot=yes
27056 fi
27057 elif test x$gcc_cv_ld != x; then
27058 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27059 gcc_cv_ld_sysroot=yes
27060 fi
27061 fi
27062 fi
27063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27064 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27065 if test x"$gcc_cv_ld_sysroot" = xyes; then
27066
27067 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27068
27069 fi
27070
27071 # Test for stack protector support in target C library.
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27073 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27074 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27075 $as_echo_n "(cached) " >&6
27076 else
27077 gcc_cv_libc_provides_ssp=no
27078 case "$target" in
27079 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27080 # glibc 2.4 and later provides __stack_chk_fail and
27081 # either __stack_chk_guard, or TLS access to stack guard canary.
27082
27083 if test $glibc_version_major -gt 2 \
27084 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27085 gcc_cv_libc_provides_ssp=yes
27086 else
27087
27088 if test -f $target_header_dir/features.h \
27089 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27090 $target_header_dir/features.h > /dev/null; then
27091 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27092 $target_header_dir/features.h > /dev/null && \
27093 test -f $target_header_dir/bits/uClibc_config.h && \
27094 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27095 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27096 gcc_cv_libc_provides_ssp=yes
27097 fi
27098 # all versions of Bionic support stack protector
27099 elif test -f $target_header_dir/sys/cdefs.h \
27100 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27101 $target_header_dir/sys/cdefs.h > /dev/null; then
27102 gcc_cv_libc_provides_ssp=yes
27103 fi
27104 fi
27105 ;;
27106 *-*-gnu*)
27107 # Avoid complicated tests (see
27108 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27109 # simply assert that glibc does provide this, which is true for all
27110 # realistically usable GNU/Hurd configurations.
27111 gcc_cv_libc_provides_ssp=yes;;
27112 *-*-darwin* | *-*-freebsd*)
27113 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27114 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27115 gcc_cv_libc_provides_ssp=yes
27116 else
27117 echo "no __stack_chk_fail on this target"
27118 fi
27119
27120 ;;
27121 *) gcc_cv_libc_provides_ssp=no ;;
27122 esac
27123 fi
27124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27125 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27126
27127 if test x$gcc_cv_libc_provides_ssp = xyes; then
27128
27129 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27130
27131 fi
27132
27133 # Test for <sys/sdt.h> on the target.
27134
27135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27136 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27137 have_sys_sdt_h=no
27138 if test -f $target_header_dir/sys/sdt.h; then
27139 have_sys_sdt_h=yes
27140
27141 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27142
27143 fi
27144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27145 $as_echo "$have_sys_sdt_h" >&6; }
27146
27147 # Check if TFmode long double should be used by default or not.
27148 # Some glibc targets used DFmode long double, but with glibc 2.4
27149 # and later they can use TFmode.
27150 case "$target" in
27151 powerpc*-*-linux* | \
27152 sparc*-*-linux* | \
27153 s390*-*-linux* | \
27154 alpha*-*-linux*)
27155
27156 # Check whether --with-long-double-128 was given.
27157 if test "${with_long_double_128+set}" = set; then :
27158 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27159 else
27160
27161 if test $glibc_version_major -gt 2 \
27162 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27163 gcc_cv_target_ldbl128=yes
27164 else
27165
27166 gcc_cv_target_ldbl128=no
27167 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27168 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27169 && gcc_cv_target_ldbl128=yes
27170
27171 fi
27172 fi
27173
27174 ;;
27175 esac
27176 if test x$gcc_cv_target_ldbl128 = xyes; then
27177
27178 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27179
27180 fi
27181
27182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27183 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27184 gcc_cv_target_dl_iterate_phdr=unknown
27185 case "$target" in
27186 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27187 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27188 # libdl there, both complicating its use and breaking compatibility
27189 # between Solaris 10 updates.
27190 *-*-solaris2.1[1-9]*)
27191 # <link.h> needs both a dl_iterate_phdr declaration and support for
27192 # compilation with largefile support.
27193 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27194 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27195 gcc_cv_target_dl_iterate_phdr=yes
27196 else
27197 gcc_cv_target_dl_iterate_phdr=no
27198 fi
27199 ;;
27200 esac
27201
27202 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27203
27204 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27205
27206 fi
27207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27208 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27209
27210 # We no longer support different GC mechanisms. Emit an error if
27211 # the user configures with --with-gc.
27212
27213 # Check whether --with-gc was given.
27214 if test "${with_gc+set}" = set; then :
27215 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27216 fi
27217
27218
27219 # Libraries to use on the host. This will normally be set by the top
27220 # level Makefile. Here we simply capture the value for our Makefile.
27221 if test -z "${HOST_LIBS+set}"; then
27222 HOST_LIBS=
27223 fi
27224
27225
27226 # Use the system's zlib library.
27227 zlibdir=-L../zlib
27228 zlibinc="-I\$(srcdir)/../zlib"
27229
27230 # Check whether --with-system-zlib was given.
27231 if test "${with_system_zlib+set}" = set; then :
27232 withval=$with_system_zlib; zlibdir=
27233 zlibinc=
27234
27235 fi
27236
27237
27238
27239
27240
27241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27242 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27243 # Check whether --enable-maintainer-mode was given.
27244 if test "${enable_maintainer_mode+set}" = set; then :
27245 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27246 else
27247 maintainer_mode=no
27248 fi
27249
27250
27251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27252 $as_echo "$maintainer_mode" >&6; }
27253
27254 if test "$maintainer_mode" = "yes"; then
27255 MAINT=''
27256 else
27257 MAINT='#'
27258 fi
27259
27260
27261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27262 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27263 # Check whether --enable-link-mutex was given.
27264 if test "${enable_link_mutex+set}" = set; then :
27265 enableval=$enable_link_mutex; do_link_mutex=$enableval
27266 else
27267 do_link_mutex=no
27268 fi
27269
27270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27271 $as_echo "$do_link_mutex" >&6; }
27272
27273 if test "$do_link_mutex" = "yes"; then
27274 DO_LINK_MUTEX=true
27275 else
27276 DO_LINK_MUTEX=false
27277 fi
27278
27279
27280 # --------------
27281 # Language hooks
27282 # --------------
27283
27284 # Make empty files to contain the specs and options for each language.
27285 # Then add #include lines to for a compiler that has specs and/or options.
27286
27287 subdirs=
27288 lang_opt_files=
27289 lang_specs_files=
27290 lang_tree_files=
27291 # These (without "all_") are set in each config-lang.in.
27292 # `language' must be a single word so is spelled singularly.
27293 all_languages=
27294 all_compilers=
27295 all_outputs='Makefile'
27296 # List of language makefile fragments.
27297 all_lang_makefrags=
27298 # Additional files for gengtype
27299 all_gtfiles="$target_gtfiles"
27300
27301 # These are the languages that are set in --enable-languages,
27302 # and are available in the GCC tree.
27303 all_selected_languages=
27304
27305 # Add the language fragments.
27306 # Languages are added via two mechanisms. Some information must be
27307 # recorded in makefile variables, these are defined in config-lang.in.
27308 # We accumulate them and plug them into the main Makefile.
27309 # The other mechanism is a set of hooks for each of the main targets
27310 # like `clean', `install', etc.
27311
27312 language_hooks="Make-hooks"
27313
27314 for lang in ${srcdir}/*/config-lang.in
27315 do
27316 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27317
27318 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27319 if test "x$lang_alias" = x
27320 then
27321 echo "$lang doesn't set \$language." 1>&2
27322 exit 1
27323 fi
27324 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27325 subdirs="$subdirs $subdir"
27326
27327 # $gcc_subdir is where the gcc integration files are to be found
27328 # for a language, both for internal compiler purposes (compiler
27329 # sources implementing front-end to GCC tree converters), and for
27330 # build infrastructure purposes (Make-lang.in, etc.)
27331 #
27332 # This will be <subdir> (relative to $srcdir) if a line like
27333 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27334 # is found in <langdir>/config-lang.in, and will remain <langdir>
27335 # otherwise.
27336 #
27337 # Except for the language alias (fetched above), the regular
27338 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27339 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27340 # only this and the language alias.
27341
27342 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27343 if [ "$gcc_subdir" = "" ]; then
27344 gcc_subdir="$subdir"
27345 fi
27346
27347 case ",$enable_languages," in
27348 *,$lang_alias,*)
27349 all_selected_languages="$all_selected_languages $lang_alias"
27350 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27351 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27352 fi
27353 ;;
27354 esac
27355
27356 language=
27357 boot_language=
27358 compilers=
27359 outputs=
27360 gtfiles=
27361 subdir_requires=
27362 . ${srcdir}/$gcc_subdir/config-lang.in
27363 if test "x$language" = x
27364 then
27365 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27366 exit 1
27367 fi
27368
27369 ok=:
27370 case ",$enable_languages," in
27371 *,$lang_alias,*) ;;
27372 *)
27373 for i in $subdir_requires; do
27374 test -f "${srcdir}/$i/config-lang.in" && continue
27375 ok=false
27376 break
27377 done
27378 ;;
27379 esac
27380 $ok || continue
27381
27382 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27383 if test -f $srcdir/$gcc_subdir/lang.opt; then
27384 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27385 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27386 fi
27387 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27388 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27389 fi
27390 all_languages="$all_languages $language"
27391 all_compilers="$all_compilers $compilers"
27392 all_outputs="$all_outputs $outputs"
27393 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27394 case ",$enable_languages," in
27395 *,lto,*)
27396
27397 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27398
27399 enable_lto=yes
27400
27401 ;;
27402 *) ;;
27403 esac
27404 done
27405
27406 check_languages=
27407 for language in $all_selected_languages
27408 do
27409 check_languages="$check_languages check-$language"
27410 done
27411
27412 # We link each language in with a set of hooks, reached indirectly via
27413 # lang.${target}. Only do so for selected languages.
27414
27415 rm -f Make-hooks
27416 touch Make-hooks
27417 target_list="all.cross start.encap rest.encap tags \
27418 install-common install-man install-info install-pdf install-html dvi \
27419 pdf html uninstall info man srcextra srcman srcinfo \
27420 mostlyclean clean distclean maintainer-clean install-plugin"
27421
27422 for t in $target_list
27423 do
27424 x=
27425 for lang in $all_selected_languages
27426 do
27427 x="$x $lang.$t"
27428 done
27429 echo "lang.$t: $x" >> Make-hooks
27430 done
27431
27432 # --------
27433 # Option include files
27434 # --------
27435
27436 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27437 option_includes="option-includes.mk"
27438
27439
27440 # --------
27441 # UNSORTED
27442 # --------
27443
27444 # Create .gdbinit.
27445
27446 echo "dir ." > .gdbinit
27447 echo "dir ${srcdir}" >> .gdbinit
27448 if test x$gdb_needs_out_file_path = xyes
27449 then
27450 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27451 fi
27452 if test "x$subdirs" != x; then
27453 for s in $subdirs
27454 do
27455 echo "dir ${srcdir}/$s" >> .gdbinit
27456 done
27457 fi
27458 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27459 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27460
27461 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27462
27463
27464
27465 # Find a directory in which to install a shared libgcc.
27466
27467 # Check whether --enable-version-specific-runtime-libs was given.
27468 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27469 enableval=$enable_version_specific_runtime_libs;
27470 fi
27471
27472
27473 # Substitute configuration variables
27474
27475
27476
27477
27478
27479
27480
27481
27482
27483
27484
27485
27486
27487
27488
27489
27490
27491
27492
27493
27494
27495
27496
27497
27498
27499
27500
27501
27502
27503
27504
27505
27506
27507
27508
27509
27510
27511
27512
27513
27514
27515
27516
27517
27518
27519
27520
27521
27522
27523
27524
27525
27526
27527
27528
27529
27530
27531
27532
27533
27534
27535
27536 # Echo link setup.
27537 if test x${build} = x${host} ; then
27538 if test x${host} = x${target} ; then
27539 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27540 else
27541 echo "Links are now set up to build a cross-compiler" 1>&2
27542 echo " from ${host} to ${target}." 1>&2
27543 fi
27544 else
27545 if test x${host} = x${target} ; then
27546 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27547 echo " for ${target}." 1>&2
27548 else
27549 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27550 echo " from ${host} to ${target}." 1>&2
27551 fi
27552 fi
27553
27554
27555
27556
27557
27558
27559
27560
27561
27562 if test "x${CLOOGLIBS}" != "x" ; then
27563
27564 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27565
27566 fi
27567
27568 # Check for plugin support
27569 # Check whether --enable-plugin was given.
27570 if test "${enable_plugin+set}" = set; then :
27571 enableval=$enable_plugin; enable_plugin=$enableval
27572 else
27573 enable_plugin=yes; default_plugin=yes
27574 fi
27575
27576
27577 pluginlibs=
27578
27579 case "${host}" in
27580 *-*-darwin*)
27581 if test x$build = x$host; then
27582 export_sym_check="nm${exeext} -g"
27583 elif test x$host = x$target; then
27584 export_sym_check="$gcc_cv_nm -g"
27585 else
27586 export_sym_check=
27587 fi
27588 ;;
27589 *)
27590 if test x$build = x$host; then
27591 export_sym_check="objdump${exeext} -T"
27592 elif test x$host = x$target; then
27593 export_sym_check="$gcc_cv_objdump -T"
27594 else
27595 export_sym_check=
27596 fi
27597 ;;
27598 esac
27599
27600 if test x"$enable_plugin" = x"yes"; then
27601
27602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27603 $as_echo_n "checking for exported symbols... " >&6; }
27604 if test "x$export_sym_check" != x; then
27605 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27606 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27607 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27608 : # No need to use a flag
27609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27610 $as_echo "yes" >&6; }
27611 else
27612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27613 $as_echo "yes" >&6; }
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27615 $as_echo_n "checking for -rdynamic... " >&6; }
27616 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27617 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27618 plugin_rdynamic=yes
27619 pluginlibs="-rdynamic"
27620 else
27621 plugin_rdynamic=no
27622 enable_plugin=no
27623 fi
27624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27625 $as_echo "$plugin_rdynamic" >&6; }
27626 fi
27627 else
27628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27629 $as_echo "unable to check" >&6; }
27630 fi
27631
27632 # Check -ldl
27633 saved_LIBS="$LIBS"
27634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27635 $as_echo_n "checking for library containing dlopen... " >&6; }
27636 if test "${ac_cv_search_dlopen+set}" = set; then :
27637 $as_echo_n "(cached) " >&6
27638 else
27639 ac_func_search_save_LIBS=$LIBS
27640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27641 /* end confdefs.h. */
27642
27643 /* Override any GCC internal prototype to avoid an error.
27644 Use char because int might match the return type of a GCC
27645 builtin and then its argument prototype would still apply. */
27646 #ifdef __cplusplus
27647 extern "C"
27648 #endif
27649 char dlopen ();
27650 int
27651 main ()
27652 {
27653 return dlopen ();
27654 ;
27655 return 0;
27656 }
27657 _ACEOF
27658 for ac_lib in '' dl; do
27659 if test -z "$ac_lib"; then
27660 ac_res="none required"
27661 else
27662 ac_res=-l$ac_lib
27663 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27664 fi
27665 if ac_fn_c_try_link "$LINENO"; then :
27666 ac_cv_search_dlopen=$ac_res
27667 fi
27668 rm -f core conftest.err conftest.$ac_objext \
27669 conftest$ac_exeext
27670 if test "${ac_cv_search_dlopen+set}" = set; then :
27671 break
27672 fi
27673 done
27674 if test "${ac_cv_search_dlopen+set}" = set; then :
27675
27676 else
27677 ac_cv_search_dlopen=no
27678 fi
27679 rm conftest.$ac_ext
27680 LIBS=$ac_func_search_save_LIBS
27681 fi
27682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27683 $as_echo "$ac_cv_search_dlopen" >&6; }
27684 ac_res=$ac_cv_search_dlopen
27685 if test "$ac_res" != no; then :
27686 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27687
27688 fi
27689
27690 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27691 pluginlibs="$pluginlibs -ldl"
27692 fi
27693 LIBS="$saved_LIBS"
27694
27695 # Check that we can build shared objects with -fPIC -shared
27696 saved_LDFLAGS="$LDFLAGS"
27697 saved_CFLAGS="$CFLAGS"
27698 case "${host}" in
27699 *-*-darwin*)
27700 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27701 CFLAGS="$CFLAGS -fPIC"
27702 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27703 ;;
27704 *)
27705 CFLAGS="$CFLAGS -fPIC"
27706 LDFLAGS="$LDFLAGS -fPIC -shared"
27707 ;;
27708 esac
27709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27710 $as_echo_n "checking for -fPIC -shared... " >&6; }
27711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27712 /* end confdefs.h. */
27713 extern int X;
27714 int
27715 main ()
27716 {
27717 return X == 0;
27718 ;
27719 return 0;
27720 }
27721 _ACEOF
27722 if ac_fn_c_try_link "$LINENO"; then :
27723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27724 $as_echo "yes" >&6; }; have_pic_shared=yes
27725 else
27726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27727 $as_echo "no" >&6; }; have_pic_shared=no
27728 fi
27729 rm -f core conftest.err conftest.$ac_objext \
27730 conftest$ac_exeext conftest.$ac_ext
27731 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27732 pluginlibs=
27733 enable_plugin=no
27734 fi
27735 LDFLAGS="$saved_LDFLAGS"
27736 CFLAGS="$saved_CFLAGS"
27737
27738 # If plugin support had been requested but not available, fail.
27739 if test x"$enable_plugin" = x"no" ; then
27740 if test x"$default_plugin" != x"yes"; then
27741 as_fn_error "
27742 Building GCC with plugin support requires a host that supports
27743 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27744 fi
27745 fi
27746 fi
27747
27748
27749
27750 if test x"$enable_plugin" = x"yes"; then
27751
27752 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27753
27754 fi
27755
27756
27757 # Enable --enable-host-shared
27758 # Check whether --enable-host-shared was given.
27759 if test "${enable_host_shared+set}" = set; then :
27760 enableval=$enable_host_shared; PICFLAG=-fPIC
27761 else
27762 PICFLAG=
27763 fi
27764
27765
27766
27767
27768
27769 # Check whether --enable-libquadmath-support was given.
27770 if test "${enable_libquadmath_support+set}" = set; then :
27771 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27772 else
27773 ENABLE_LIBQUADMATH_SUPPORT=yes
27774 fi
27775
27776 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27777
27778 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27779
27780 fi
27781
27782
27783 # Specify what hash style to use by default.
27784
27785 # Check whether --with-linker-hash-style was given.
27786 if test "${with_linker_hash_style+set}" = set; then :
27787 withval=$with_linker_hash_style; case x"$withval" in
27788 xsysv)
27789 LINKER_HASH_STYLE=sysv
27790 ;;
27791 xgnu)
27792 LINKER_HASH_STYLE=gnu
27793 ;;
27794 xboth)
27795 LINKER_HASH_STYLE=both
27796 ;;
27797 *)
27798 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27799 ;;
27800 esac
27801 else
27802 LINKER_HASH_STYLE=''
27803 fi
27804
27805 if test x"${LINKER_HASH_STYLE}" != x; then
27806
27807 cat >>confdefs.h <<_ACEOF
27808 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27809 _ACEOF
27810
27811 fi
27812
27813 # Configure the subdirectories
27814 # AC_CONFIG_SUBDIRS($subdirs)
27815
27816 # Create the Makefile
27817 # and configure language subdirectories
27818 ac_config_files="$ac_config_files $all_outputs"
27819
27820
27821 ac_config_commands="$ac_config_commands default"
27822
27823 cat >confcache <<\_ACEOF
27824 # This file is a shell script that caches the results of configure
27825 # tests run on this system so they can be shared between configure
27826 # scripts and configure runs, see configure's option --config-cache.
27827 # It is not useful on other systems. If it contains results you don't
27828 # want to keep, you may remove or edit it.
27829 #
27830 # config.status only pays attention to the cache file if you give it
27831 # the --recheck option to rerun configure.
27832 #
27833 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27834 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27835 # following values.
27836
27837 _ACEOF
27838
27839 # The following way of writing the cache mishandles newlines in values,
27840 # but we know of no workaround that is simple, portable, and efficient.
27841 # So, we kill variables containing newlines.
27842 # Ultrix sh set writes to stderr and can't be redirected directly,
27843 # and sets the high bit in the cache file unless we assign to the vars.
27844 (
27845 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27846 eval ac_val=\$$ac_var
27847 case $ac_val in #(
27848 *${as_nl}*)
27849 case $ac_var in #(
27850 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27851 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27852 esac
27853 case $ac_var in #(
27854 _ | IFS | as_nl) ;; #(
27855 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27856 *) { eval $ac_var=; unset $ac_var;} ;;
27857 esac ;;
27858 esac
27859 done
27860
27861 (set) 2>&1 |
27862 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27863 *${as_nl}ac_space=\ *)
27864 # `set' does not quote correctly, so add quotes: double-quote
27865 # substitution turns \\\\ into \\, and sed turns \\ into \.
27866 sed -n \
27867 "s/'/'\\\\''/g;
27868 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27869 ;; #(
27870 *)
27871 # `set' quotes correctly as required by POSIX, so do not add quotes.
27872 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27873 ;;
27874 esac |
27875 sort
27876 ) |
27877 sed '
27878 /^ac_cv_env_/b end
27879 t clear
27880 :clear
27881 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27882 t end
27883 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27884 :end' >>confcache
27885 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27886 if test -w "$cache_file"; then
27887 test "x$cache_file" != "x/dev/null" &&
27888 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27889 $as_echo "$as_me: updating cache $cache_file" >&6;}
27890 cat confcache >$cache_file
27891 else
27892 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27893 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27894 fi
27895 fi
27896 rm -f confcache
27897
27898 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27899 # Let make expand exec_prefix.
27900 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27901
27902 DEFS=-DHAVE_CONFIG_H
27903
27904 ac_libobjs=
27905 ac_ltlibobjs=
27906 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27907 # 1. Remove the extension, and $U if already installed.
27908 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27909 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27910 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27911 # will be set to the directory where LIBOBJS objects are built.
27912 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27913 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27914 done
27915 LIBOBJS=$ac_libobjs
27916
27917 LTLIBOBJS=$ac_ltlibobjs
27918
27919
27920
27921
27922 : ${CONFIG_STATUS=./config.status}
27923 ac_write_fail=0
27924 ac_clean_files_save=$ac_clean_files
27925 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27926 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27927 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27928 as_write_fail=0
27929 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27930 #! $SHELL
27931 # Generated by $as_me.
27932 # Run this file to recreate the current configuration.
27933 # Compiler output produced by configure, useful for debugging
27934 # configure, is in config.log if it exists.
27935
27936 debug=false
27937 ac_cs_recheck=false
27938 ac_cs_silent=false
27939
27940 SHELL=\${CONFIG_SHELL-$SHELL}
27941 export SHELL
27942 _ASEOF
27943 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27944 ## -------------------- ##
27945 ## M4sh Initialization. ##
27946 ## -------------------- ##
27947
27948 # Be more Bourne compatible
27949 DUALCASE=1; export DUALCASE # for MKS sh
27950 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27951 emulate sh
27952 NULLCMD=:
27953 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27954 # is contrary to our usage. Disable this feature.
27955 alias -g '${1+"$@"}'='"$@"'
27956 setopt NO_GLOB_SUBST
27957 else
27958 case `(set -o) 2>/dev/null` in #(
27959 *posix*) :
27960 set -o posix ;; #(
27961 *) :
27962 ;;
27963 esac
27964 fi
27965
27966
27967 as_nl='
27968 '
27969 export as_nl
27970 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27971 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27972 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27973 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27974 # Prefer a ksh shell builtin over an external printf program on Solaris,
27975 # but without wasting forks for bash or zsh.
27976 if test -z "$BASH_VERSION$ZSH_VERSION" \
27977 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27978 as_echo='print -r --'
27979 as_echo_n='print -rn --'
27980 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27981 as_echo='printf %s\n'
27982 as_echo_n='printf %s'
27983 else
27984 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27985 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27986 as_echo_n='/usr/ucb/echo -n'
27987 else
27988 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27989 as_echo_n_body='eval
27990 arg=$1;
27991 case $arg in #(
27992 *"$as_nl"*)
27993 expr "X$arg" : "X\\(.*\\)$as_nl";
27994 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27995 esac;
27996 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27997 '
27998 export as_echo_n_body
27999 as_echo_n='sh -c $as_echo_n_body as_echo'
28000 fi
28001 export as_echo_body
28002 as_echo='sh -c $as_echo_body as_echo'
28003 fi
28004
28005 # The user is always right.
28006 if test "${PATH_SEPARATOR+set}" != set; then
28007 PATH_SEPARATOR=:
28008 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28009 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28010 PATH_SEPARATOR=';'
28011 }
28012 fi
28013
28014
28015 # IFS
28016 # We need space, tab and new line, in precisely that order. Quoting is
28017 # there to prevent editors from complaining about space-tab.
28018 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28019 # splitting by setting IFS to empty value.)
28020 IFS=" "" $as_nl"
28021
28022 # Find who we are. Look in the path if we contain no directory separator.
28023 case $0 in #((
28024 *[\\/]* ) as_myself=$0 ;;
28025 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28026 for as_dir in $PATH
28027 do
28028 IFS=$as_save_IFS
28029 test -z "$as_dir" && as_dir=.
28030 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28031 done
28032 IFS=$as_save_IFS
28033
28034 ;;
28035 esac
28036 # We did not find ourselves, most probably we were run as `sh COMMAND'
28037 # in which case we are not to be found in the path.
28038 if test "x$as_myself" = x; then
28039 as_myself=$0
28040 fi
28041 if test ! -f "$as_myself"; then
28042 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28043 exit 1
28044 fi
28045
28046 # Unset variables that we do not need and which cause bugs (e.g. in
28047 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28048 # suppresses any "Segmentation fault" message there. '((' could
28049 # trigger a bug in pdksh 5.2.14.
28050 for as_var in BASH_ENV ENV MAIL MAILPATH
28051 do eval test x\${$as_var+set} = xset \
28052 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28053 done
28054 PS1='$ '
28055 PS2='> '
28056 PS4='+ '
28057
28058 # NLS nuisances.
28059 LC_ALL=C
28060 export LC_ALL
28061 LANGUAGE=C
28062 export LANGUAGE
28063
28064 # CDPATH.
28065 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28066
28067
28068 # as_fn_error ERROR [LINENO LOG_FD]
28069 # ---------------------------------
28070 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28071 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28072 # script with status $?, using 1 if that was 0.
28073 as_fn_error ()
28074 {
28075 as_status=$?; test $as_status -eq 0 && as_status=1
28076 if test "$3"; then
28077 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28078 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28079 fi
28080 $as_echo "$as_me: error: $1" >&2
28081 as_fn_exit $as_status
28082 } # as_fn_error
28083
28084
28085 # as_fn_set_status STATUS
28086 # -----------------------
28087 # Set $? to STATUS, without forking.
28088 as_fn_set_status ()
28089 {
28090 return $1
28091 } # as_fn_set_status
28092
28093 # as_fn_exit STATUS
28094 # -----------------
28095 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28096 as_fn_exit ()
28097 {
28098 set +e
28099 as_fn_set_status $1
28100 exit $1
28101 } # as_fn_exit
28102
28103 # as_fn_unset VAR
28104 # ---------------
28105 # Portably unset VAR.
28106 as_fn_unset ()
28107 {
28108 { eval $1=; unset $1;}
28109 }
28110 as_unset=as_fn_unset
28111 # as_fn_append VAR VALUE
28112 # ----------------------
28113 # Append the text in VALUE to the end of the definition contained in VAR. Take
28114 # advantage of any shell optimizations that allow amortized linear growth over
28115 # repeated appends, instead of the typical quadratic growth present in naive
28116 # implementations.
28117 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28118 eval 'as_fn_append ()
28119 {
28120 eval $1+=\$2
28121 }'
28122 else
28123 as_fn_append ()
28124 {
28125 eval $1=\$$1\$2
28126 }
28127 fi # as_fn_append
28128
28129 # as_fn_arith ARG...
28130 # ------------------
28131 # Perform arithmetic evaluation on the ARGs, and store the result in the
28132 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28133 # must be portable across $(()) and expr.
28134 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28135 eval 'as_fn_arith ()
28136 {
28137 as_val=$(( $* ))
28138 }'
28139 else
28140 as_fn_arith ()
28141 {
28142 as_val=`expr "$@" || test $? -eq 1`
28143 }
28144 fi # as_fn_arith
28145
28146
28147 if expr a : '\(a\)' >/dev/null 2>&1 &&
28148 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28149 as_expr=expr
28150 else
28151 as_expr=false
28152 fi
28153
28154 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28155 as_basename=basename
28156 else
28157 as_basename=false
28158 fi
28159
28160 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28161 as_dirname=dirname
28162 else
28163 as_dirname=false
28164 fi
28165
28166 as_me=`$as_basename -- "$0" ||
28167 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28168 X"$0" : 'X\(//\)$' \| \
28169 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28170 $as_echo X/"$0" |
28171 sed '/^.*\/\([^/][^/]*\)\/*$/{
28172 s//\1/
28173 q
28174 }
28175 /^X\/\(\/\/\)$/{
28176 s//\1/
28177 q
28178 }
28179 /^X\/\(\/\).*/{
28180 s//\1/
28181 q
28182 }
28183 s/.*/./; q'`
28184
28185 # Avoid depending upon Character Ranges.
28186 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28187 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28188 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28189 as_cr_digits='0123456789'
28190 as_cr_alnum=$as_cr_Letters$as_cr_digits
28191
28192 ECHO_C= ECHO_N= ECHO_T=
28193 case `echo -n x` in #(((((
28194 -n*)
28195 case `echo 'xy\c'` in
28196 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28197 xy) ECHO_C='\c';;
28198 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28199 ECHO_T=' ';;
28200 esac;;
28201 *)
28202 ECHO_N='-n';;
28203 esac
28204
28205 rm -f conf$$ conf$$.exe conf$$.file
28206 if test -d conf$$.dir; then
28207 rm -f conf$$.dir/conf$$.file
28208 else
28209 rm -f conf$$.dir
28210 mkdir conf$$.dir 2>/dev/null
28211 fi
28212 if (echo >conf$$.file) 2>/dev/null; then
28213 if ln -s conf$$.file conf$$ 2>/dev/null; then
28214 as_ln_s='ln -s'
28215 # ... but there are two gotchas:
28216 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28217 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28218 # In both cases, we have to default to `cp -p'.
28219 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28220 as_ln_s='cp -p'
28221 elif ln conf$$.file conf$$ 2>/dev/null; then
28222 as_ln_s=ln
28223 else
28224 as_ln_s='cp -p'
28225 fi
28226 else
28227 as_ln_s='cp -p'
28228 fi
28229 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28230 rmdir conf$$.dir 2>/dev/null
28231
28232
28233 # as_fn_mkdir_p
28234 # -------------
28235 # Create "$as_dir" as a directory, including parents if necessary.
28236 as_fn_mkdir_p ()
28237 {
28238
28239 case $as_dir in #(
28240 -*) as_dir=./$as_dir;;
28241 esac
28242 test -d "$as_dir" || eval $as_mkdir_p || {
28243 as_dirs=
28244 while :; do
28245 case $as_dir in #(
28246 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28247 *) as_qdir=$as_dir;;
28248 esac
28249 as_dirs="'$as_qdir' $as_dirs"
28250 as_dir=`$as_dirname -- "$as_dir" ||
28251 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28252 X"$as_dir" : 'X\(//\)[^/]' \| \
28253 X"$as_dir" : 'X\(//\)$' \| \
28254 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28255 $as_echo X"$as_dir" |
28256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28257 s//\1/
28258 q
28259 }
28260 /^X\(\/\/\)[^/].*/{
28261 s//\1/
28262 q
28263 }
28264 /^X\(\/\/\)$/{
28265 s//\1/
28266 q
28267 }
28268 /^X\(\/\).*/{
28269 s//\1/
28270 q
28271 }
28272 s/.*/./; q'`
28273 test -d "$as_dir" && break
28274 done
28275 test -z "$as_dirs" || eval "mkdir $as_dirs"
28276 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28277
28278
28279 } # as_fn_mkdir_p
28280 if mkdir -p . 2>/dev/null; then
28281 as_mkdir_p='mkdir -p "$as_dir"'
28282 else
28283 test -d ./-p && rmdir ./-p
28284 as_mkdir_p=false
28285 fi
28286
28287 if test -x / >/dev/null 2>&1; then
28288 as_test_x='test -x'
28289 else
28290 if ls -dL / >/dev/null 2>&1; then
28291 as_ls_L_option=L
28292 else
28293 as_ls_L_option=
28294 fi
28295 as_test_x='
28296 eval sh -c '\''
28297 if test -d "$1"; then
28298 test -d "$1/.";
28299 else
28300 case $1 in #(
28301 -*)set "./$1";;
28302 esac;
28303 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28304 ???[sx]*):;;*)false;;esac;fi
28305 '\'' sh
28306 '
28307 fi
28308 as_executable_p=$as_test_x
28309
28310 # Sed expression to map a string onto a valid CPP name.
28311 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28312
28313 # Sed expression to map a string onto a valid variable name.
28314 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28315
28316
28317 exec 6>&1
28318 ## ----------------------------------- ##
28319 ## Main body of $CONFIG_STATUS script. ##
28320 ## ----------------------------------- ##
28321 _ASEOF
28322 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28323
28324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28325 # Save the log message, to keep $0 and so on meaningful, and to
28326 # report actual input values of CONFIG_FILES etc. instead of their
28327 # values after options handling.
28328 ac_log="
28329 This file was extended by $as_me, which was
28330 generated by GNU Autoconf 2.64. Invocation command line was
28331
28332 CONFIG_FILES = $CONFIG_FILES
28333 CONFIG_HEADERS = $CONFIG_HEADERS
28334 CONFIG_LINKS = $CONFIG_LINKS
28335 CONFIG_COMMANDS = $CONFIG_COMMANDS
28336 $ $0 $@
28337
28338 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28339 "
28340
28341 _ACEOF
28342
28343 case $ac_config_files in *"
28344 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28345 esac
28346
28347 case $ac_config_headers in *"
28348 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28349 esac
28350
28351
28352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28353 # Files that config.status was made for.
28354 config_files="$ac_config_files"
28355 config_headers="$ac_config_headers"
28356 config_commands="$ac_config_commands"
28357
28358 _ACEOF
28359
28360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28361 ac_cs_usage="\
28362 \`$as_me' instantiates files and other configuration actions
28363 from templates according to the current configuration. Unless the files
28364 and actions are specified as TAGs, all are instantiated by default.
28365
28366 Usage: $0 [OPTION]... [TAG]...
28367
28368 -h, --help print this help, then exit
28369 -V, --version print version number and configuration settings, then exit
28370 -q, --quiet, --silent
28371 do not print progress messages
28372 -d, --debug don't remove temporary files
28373 --recheck update $as_me by reconfiguring in the same conditions
28374 --file=FILE[:TEMPLATE]
28375 instantiate the configuration file FILE
28376 --header=FILE[:TEMPLATE]
28377 instantiate the configuration header FILE
28378
28379 Configuration files:
28380 $config_files
28381
28382 Configuration headers:
28383 $config_headers
28384
28385 Configuration commands:
28386 $config_commands
28387
28388 Report bugs to the package provider."
28389
28390 _ACEOF
28391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28392 ac_cs_version="\\
28393 config.status
28394 configured by $0, generated by GNU Autoconf 2.64,
28395 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28396
28397 Copyright (C) 2009 Free Software Foundation, Inc.
28398 This config.status script is free software; the Free Software Foundation
28399 gives unlimited permission to copy, distribute and modify it."
28400
28401 ac_pwd='$ac_pwd'
28402 srcdir='$srcdir'
28403 AWK='$AWK'
28404 test -n "\$AWK" || AWK=awk
28405 _ACEOF
28406
28407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28408 # The default lists apply if the user does not specify any file.
28409 ac_need_defaults=:
28410 while test $# != 0
28411 do
28412 case $1 in
28413 --*=*)
28414 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28415 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28416 ac_shift=:
28417 ;;
28418 *)
28419 ac_option=$1
28420 ac_optarg=$2
28421 ac_shift=shift
28422 ;;
28423 esac
28424
28425 case $ac_option in
28426 # Handling of the options.
28427 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28428 ac_cs_recheck=: ;;
28429 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28430 $as_echo "$ac_cs_version"; exit ;;
28431 --debug | --debu | --deb | --de | --d | -d )
28432 debug=: ;;
28433 --file | --fil | --fi | --f )
28434 $ac_shift
28435 case $ac_optarg in
28436 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28437 esac
28438 as_fn_append CONFIG_FILES " '$ac_optarg'"
28439 ac_need_defaults=false;;
28440 --header | --heade | --head | --hea )
28441 $ac_shift
28442 case $ac_optarg in
28443 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28444 esac
28445 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28446 ac_need_defaults=false;;
28447 --he | --h)
28448 # Conflict between --help and --header
28449 as_fn_error "ambiguous option: \`$1'
28450 Try \`$0 --help' for more information.";;
28451 --help | --hel | -h )
28452 $as_echo "$ac_cs_usage"; exit ;;
28453 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28454 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28455 ac_cs_silent=: ;;
28456
28457 # This is an error.
28458 -*) as_fn_error "unrecognized option: \`$1'
28459 Try \`$0 --help' for more information." ;;
28460
28461 *) as_fn_append ac_config_targets " $1"
28462 ac_need_defaults=false ;;
28463
28464 esac
28465 shift
28466 done
28467
28468 ac_configure_extra_args=
28469
28470 if $ac_cs_silent; then
28471 exec 6>/dev/null
28472 ac_configure_extra_args="$ac_configure_extra_args --silent"
28473 fi
28474
28475 _ACEOF
28476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28477 if \$ac_cs_recheck; then
28478 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28479 shift
28480 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28481 CONFIG_SHELL='$SHELL'
28482 export CONFIG_SHELL
28483 exec "\$@"
28484 fi
28485
28486 _ACEOF
28487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28488 exec 5>>config.log
28489 {
28490 echo
28491 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28492 ## Running $as_me. ##
28493 _ASBOX
28494 $as_echo "$ac_log"
28495 } >&5
28496
28497 _ACEOF
28498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28499 #
28500 # INIT-COMMANDS
28501 #
28502 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28503 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28504 subdirs='$subdirs'
28505
28506 _ACEOF
28507
28508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28509
28510 # Handling of arguments.
28511 for ac_config_target in $ac_config_targets
28512 do
28513 case $ac_config_target in
28514 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28515 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
28516 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
28517 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28518 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28519 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28520 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28521 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28522
28523 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28524 esac
28525 done
28526
28527
28528 # If the user did not use the arguments to specify the items to instantiate,
28529 # then the envvar interface is used. Set only those that are not.
28530 # We use the long form for the default assignment because of an extremely
28531 # bizarre bug on SunOS 4.1.3.
28532 if $ac_need_defaults; then
28533 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28534 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28535 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28536 fi
28537
28538 # Have a temporary directory for convenience. Make it in the build tree
28539 # simply because there is no reason against having it here, and in addition,
28540 # creating and moving files from /tmp can sometimes cause problems.
28541 # Hook for its removal unless debugging.
28542 # Note that there is a small window in which the directory will not be cleaned:
28543 # after its creation but before its name has been assigned to `$tmp'.
28544 $debug ||
28545 {
28546 tmp=
28547 trap 'exit_status=$?
28548 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28549 ' 0
28550 trap 'as_fn_exit 1' 1 2 13 15
28551 }
28552 # Create a (secure) tmp directory for tmp files.
28553
28554 {
28555 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28556 test -n "$tmp" && test -d "$tmp"
28557 } ||
28558 {
28559 tmp=./conf$$-$RANDOM
28560 (umask 077 && mkdir "$tmp")
28561 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28562
28563 # Set up the scripts for CONFIG_FILES section.
28564 # No need to generate them if there are no CONFIG_FILES.
28565 # This happens for instance with `./config.status config.h'.
28566 if test -n "$CONFIG_FILES"; then
28567
28568 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28569 ac_cs_awk_getline=:
28570 ac_cs_awk_pipe_init=
28571 ac_cs_awk_read_file='
28572 while ((getline aline < (F[key])) > 0)
28573 print(aline)
28574 close(F[key])'
28575 ac_cs_awk_pipe_fini=
28576 else
28577 ac_cs_awk_getline=false
28578 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28579 ac_cs_awk_read_file='
28580 print "|#_!!_#|"
28581 print "cat " F[key] " &&"
28582 '$ac_cs_awk_pipe_init
28583 # The final `:' finishes the AND list.
28584 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28585 fi
28586 ac_cr=`echo X | tr X '\015'`
28587 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28588 # But we know of no other shell where ac_cr would be empty at this
28589 # point, so we can use a bashism as a fallback.
28590 if test "x$ac_cr" = x; then
28591 eval ac_cr=\$\'\\r\'
28592 fi
28593 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28594 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28595 ac_cs_awk_cr='\r'
28596 else
28597 ac_cs_awk_cr=$ac_cr
28598 fi
28599
28600 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28601 _ACEOF
28602
28603 # Create commands to substitute file output variables.
28604 {
28605 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28606 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28607 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28608 echo "_ACAWK" &&
28609 echo "_ACEOF"
28610 } >conf$$files.sh &&
28611 . ./conf$$files.sh ||
28612 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28613 rm -f conf$$files.sh
28614
28615 {
28616 echo "cat >conf$$subs.awk <<_ACEOF" &&
28617 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28618 echo "_ACEOF"
28619 } >conf$$subs.sh ||
28620 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28621 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28622 ac_delim='%!_!# '
28623 for ac_last_try in false false false false false :; do
28624 . ./conf$$subs.sh ||
28625 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28626
28627 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28628 if test $ac_delim_n = $ac_delim_num; then
28629 break
28630 elif $ac_last_try; then
28631 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28632 else
28633 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28634 fi
28635 done
28636 rm -f conf$$subs.sh
28637
28638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28639 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28640 _ACEOF
28641 sed -n '
28642 h
28643 s/^/S["/; s/!.*/"]=/
28644 p
28645 g
28646 s/^[^!]*!//
28647 :repl
28648 t repl
28649 s/'"$ac_delim"'$//
28650 t delim
28651 :nl
28652 h
28653 s/\(.\{148\}\).*/\1/
28654 t more1
28655 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28656 p
28657 n
28658 b repl
28659 :more1
28660 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28661 p
28662 g
28663 s/.\{148\}//
28664 t nl
28665 :delim
28666 h
28667 s/\(.\{148\}\).*/\1/
28668 t more2
28669 s/["\\]/\\&/g; s/^/"/; s/$/"/
28670 p
28671 b
28672 :more2
28673 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28674 p
28675 g
28676 s/.\{148\}//
28677 t delim
28678 ' <conf$$subs.awk | sed '
28679 /^[^""]/{
28680 N
28681 s/\n//
28682 }
28683 ' >>$CONFIG_STATUS || ac_write_fail=1
28684 rm -f conf$$subs.awk
28685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28686 _ACAWK
28687 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28688 for (key in S) S_is_set[key] = 1
28689 FS = "\a"
28690 \$ac_cs_awk_pipe_init
28691 }
28692 {
28693 line = $ 0
28694 nfields = split(line, field, "@")
28695 substed = 0
28696 len = length(field[1])
28697 for (i = 2; i < nfields; i++) {
28698 key = field[i]
28699 keylen = length(key)
28700 if (S_is_set[key]) {
28701 value = S[key]
28702 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28703 len += length(value) + length(field[++i])
28704 substed = 1
28705 } else
28706 len += 1 + keylen
28707 }
28708 if (nfields == 3 && !substed) {
28709 key = field[2]
28710 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28711 \$ac_cs_awk_read_file
28712 next
28713 }
28714 }
28715 print line
28716 }
28717 \$ac_cs_awk_pipe_fini
28718 _ACAWK
28719 _ACEOF
28720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28721 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28722 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28723 else
28724 cat
28725 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28726 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28727 _ACEOF
28728
28729 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28730 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28731 # trailing colons and then remove the whole line if VPATH becomes empty
28732 # (actually we leave an empty line to preserve line numbers).
28733 if test "x$srcdir" = x.; then
28734 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28735 s/:*\$(srcdir):*/:/
28736 s/:*\${srcdir}:*/:/
28737 s/:*@srcdir@:*/:/
28738 s/^\([^=]*=[ ]*\):*/\1/
28739 s/:*$//
28740 s/^[^=]*=[ ]*$//
28741 }'
28742 fi
28743
28744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28745 fi # test -n "$CONFIG_FILES"
28746
28747 # Set up the scripts for CONFIG_HEADERS section.
28748 # No need to generate them if there are no CONFIG_HEADERS.
28749 # This happens for instance with `./config.status Makefile'.
28750 if test -n "$CONFIG_HEADERS"; then
28751 cat >"$tmp/defines.awk" <<\_ACAWK ||
28752 BEGIN {
28753 _ACEOF
28754
28755 # Transform confdefs.h into an awk script `defines.awk', embedded as
28756 # here-document in config.status, that substitutes the proper values into
28757 # config.h.in to produce config.h.
28758
28759 # Create a delimiter string that does not exist in confdefs.h, to ease
28760 # handling of long lines.
28761 ac_delim='%!_!# '
28762 for ac_last_try in false false :; do
28763 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28764 if test -z "$ac_t"; then
28765 break
28766 elif $ac_last_try; then
28767 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28768 else
28769 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28770 fi
28771 done
28772
28773 # For the awk script, D is an array of macro values keyed by name,
28774 # likewise P contains macro parameters if any. Preserve backslash
28775 # newline sequences.
28776
28777 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28778 sed -n '
28779 s/.\{148\}/&'"$ac_delim"'/g
28780 t rset
28781 :rset
28782 s/^[ ]*#[ ]*define[ ][ ]*/ /
28783 t def
28784 d
28785 :def
28786 s/\\$//
28787 t bsnl
28788 s/["\\]/\\&/g
28789 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28790 D["\1"]=" \3"/p
28791 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28792 d
28793 :bsnl
28794 s/["\\]/\\&/g
28795 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28796 D["\1"]=" \3\\\\\\n"\\/p
28797 t cont
28798 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28799 t cont
28800 d
28801 :cont
28802 n
28803 s/.\{148\}/&'"$ac_delim"'/g
28804 t clear
28805 :clear
28806 s/\\$//
28807 t bsnlc
28808 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28809 d
28810 :bsnlc
28811 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28812 b cont
28813 ' <confdefs.h | sed '
28814 s/'"$ac_delim"'/"\\\
28815 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28816
28817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28818 for (key in D) D_is_set[key] = 1
28819 FS = "\a"
28820 }
28821 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28822 line = \$ 0
28823 split(line, arg, " ")
28824 if (arg[1] == "#") {
28825 defundef = arg[2]
28826 mac1 = arg[3]
28827 } else {
28828 defundef = substr(arg[1], 2)
28829 mac1 = arg[2]
28830 }
28831 split(mac1, mac2, "(") #)
28832 macro = mac2[1]
28833 prefix = substr(line, 1, index(line, defundef) - 1)
28834 if (D_is_set[macro]) {
28835 # Preserve the white space surrounding the "#".
28836 print prefix "define", macro P[macro] D[macro]
28837 next
28838 } else {
28839 # Replace #undef with comments. This is necessary, for example,
28840 # in the case of _POSIX_SOURCE, which is predefined and required
28841 # on some systems where configure will not decide to define it.
28842 if (defundef == "undef") {
28843 print "/*", prefix defundef, macro, "*/"
28844 next
28845 }
28846 }
28847 }
28848 { print }
28849 _ACAWK
28850 _ACEOF
28851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28852 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28853 fi # test -n "$CONFIG_HEADERS"
28854
28855
28856 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28857 shift
28858 for ac_tag
28859 do
28860 case $ac_tag in
28861 :[FHLC]) ac_mode=$ac_tag; continue;;
28862 esac
28863 case $ac_mode$ac_tag in
28864 :[FHL]*:*);;
28865 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28866 :[FH]-) ac_tag=-:-;;
28867 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28868 esac
28869 ac_save_IFS=$IFS
28870 IFS=:
28871 set x $ac_tag
28872 IFS=$ac_save_IFS
28873 shift
28874 ac_file=$1
28875 shift
28876
28877 case $ac_mode in
28878 :L) ac_source=$1;;
28879 :[FH])
28880 ac_file_inputs=
28881 for ac_f
28882 do
28883 case $ac_f in
28884 -) ac_f="$tmp/stdin";;
28885 *) # Look for the file first in the build tree, then in the source tree
28886 # (if the path is not absolute). The absolute path cannot be DOS-style,
28887 # because $ac_f cannot contain `:'.
28888 test -f "$ac_f" ||
28889 case $ac_f in
28890 [\\/$]*) false;;
28891 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28892 esac ||
28893 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28894 esac
28895 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28896 as_fn_append ac_file_inputs " '$ac_f'"
28897 done
28898
28899 # Let's still pretend it is `configure' which instantiates (i.e., don't
28900 # use $as_me), people would be surprised to read:
28901 # /* config.h. Generated by config.status. */
28902 configure_input='Generated from '`
28903 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28904 `' by configure.'
28905 if test x"$ac_file" != x-; then
28906 configure_input="$ac_file. $configure_input"
28907 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28908 $as_echo "$as_me: creating $ac_file" >&6;}
28909 fi
28910 # Neutralize special characters interpreted by sed in replacement strings.
28911 case $configure_input in #(
28912 *\&* | *\|* | *\\* )
28913 ac_sed_conf_input=`$as_echo "$configure_input" |
28914 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28915 *) ac_sed_conf_input=$configure_input;;
28916 esac
28917
28918 case $ac_tag in
28919 *:-:* | *:-) cat >"$tmp/stdin" \
28920 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28921 esac
28922 ;;
28923 esac
28924
28925 ac_dir=`$as_dirname -- "$ac_file" ||
28926 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28927 X"$ac_file" : 'X\(//\)[^/]' \| \
28928 X"$ac_file" : 'X\(//\)$' \| \
28929 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28930 $as_echo X"$ac_file" |
28931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28932 s//\1/
28933 q
28934 }
28935 /^X\(\/\/\)[^/].*/{
28936 s//\1/
28937 q
28938 }
28939 /^X\(\/\/\)$/{
28940 s//\1/
28941 q
28942 }
28943 /^X\(\/\).*/{
28944 s//\1/
28945 q
28946 }
28947 s/.*/./; q'`
28948 as_dir="$ac_dir"; as_fn_mkdir_p
28949 ac_builddir=.
28950
28951 case "$ac_dir" in
28952 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28953 *)
28954 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28955 # A ".." for each directory in $ac_dir_suffix.
28956 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28957 case $ac_top_builddir_sub in
28958 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28959 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28960 esac ;;
28961 esac
28962 ac_abs_top_builddir=$ac_pwd
28963 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28964 # for backward compatibility:
28965 ac_top_builddir=$ac_top_build_prefix
28966
28967 case $srcdir in
28968 .) # We are building in place.
28969 ac_srcdir=.
28970 ac_top_srcdir=$ac_top_builddir_sub
28971 ac_abs_top_srcdir=$ac_pwd ;;
28972 [\\/]* | ?:[\\/]* ) # Absolute name.
28973 ac_srcdir=$srcdir$ac_dir_suffix;
28974 ac_top_srcdir=$srcdir
28975 ac_abs_top_srcdir=$srcdir ;;
28976 *) # Relative name.
28977 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28978 ac_top_srcdir=$ac_top_build_prefix$srcdir
28979 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28980 esac
28981 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28982
28983
28984 case $ac_mode in
28985 :F)
28986 #
28987 # CONFIG_FILE
28988 #
28989
28990 _ACEOF
28991
28992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28993 # If the template does not know about datarootdir, expand it.
28994 # FIXME: This hack should be removed a few years after 2.60.
28995 ac_datarootdir_hack=; ac_datarootdir_seen=
28996 ac_sed_dataroot='
28997 /datarootdir/ {
28998 p
28999 q
29000 }
29001 /@datadir@/p
29002 /@docdir@/p
29003 /@infodir@/p
29004 /@localedir@/p
29005 /@mandir@/p'
29006 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29007 *datarootdir*) ac_datarootdir_seen=yes;;
29008 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29010 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29011 _ACEOF
29012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29013 ac_datarootdir_hack='
29014 s&@datadir@&$datadir&g
29015 s&@docdir@&$docdir&g
29016 s&@infodir@&$infodir&g
29017 s&@localedir@&$localedir&g
29018 s&@mandir@&$mandir&g
29019 s&\\\${datarootdir}&$datarootdir&g' ;;
29020 esac
29021 _ACEOF
29022
29023 # Neutralize VPATH when `$srcdir' = `.'.
29024 # Shell code in configure.ac might set extrasub.
29025 # FIXME: do we really want to maintain this feature?
29026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29027 ac_sed_extra="$ac_vpsub
29028 $extrasub
29029 _ACEOF
29030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29031 :t
29032 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29033 s|@configure_input@|$ac_sed_conf_input|;t t
29034 s&@top_builddir@&$ac_top_builddir_sub&;t t
29035 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29036 s&@srcdir@&$ac_srcdir&;t t
29037 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29038 s&@top_srcdir@&$ac_top_srcdir&;t t
29039 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29040 s&@builddir@&$ac_builddir&;t t
29041 s&@abs_builddir@&$ac_abs_builddir&;t t
29042 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29043 $ac_datarootdir_hack
29044 "
29045 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29046 if $ac_cs_awk_getline; then
29047 $AWK -f "$tmp/subs.awk"
29048 else
29049 $AWK -f "$tmp/subs.awk" | $SHELL
29050 fi >$tmp/out \
29051 || as_fn_error "could not create $ac_file" "$LINENO" 5
29052
29053 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29054 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29055 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29057 which seems to be undefined. Please make sure it is defined." >&5
29058 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29059 which seems to be undefined. Please make sure it is defined." >&2;}
29060
29061 rm -f "$tmp/stdin"
29062 case $ac_file in
29063 -) cat "$tmp/out" && rm -f "$tmp/out";;
29064 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29065 esac \
29066 || as_fn_error "could not create $ac_file" "$LINENO" 5
29067 ;;
29068 :H)
29069 #
29070 # CONFIG_HEADER
29071 #
29072 if test x"$ac_file" != x-; then
29073 {
29074 $as_echo "/* $configure_input */" \
29075 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29076 } >"$tmp/config.h" \
29077 || as_fn_error "could not create $ac_file" "$LINENO" 5
29078 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29079 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29080 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29081 else
29082 rm -f "$ac_file"
29083 mv "$tmp/config.h" "$ac_file" \
29084 || as_fn_error "could not create $ac_file" "$LINENO" 5
29085 fi
29086 else
29087 $as_echo "/* $configure_input */" \
29088 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29089 || as_fn_error "could not create -" "$LINENO" 5
29090 fi
29091 ;;
29092
29093 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29094 $as_echo "$as_me: executing $ac_file commands" >&6;}
29095 ;;
29096 esac
29097
29098
29099 case $ac_file$ac_mode in
29100 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29101 "gccdepdir":C)
29102 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29103 for lang in $subdirs c-family common
29104 do
29105 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29106 done ;;
29107 "as":F) chmod +x as ;;
29108 "collect-ld":F) chmod +x collect-ld ;;
29109 "nm":F) chmod +x nm ;;
29110 "default":C)
29111 case ${CONFIG_HEADERS} in
29112 *auto-host.h:config.in*)
29113 echo > cstamp-h ;;
29114 esac
29115 # Make sure all the subdirs exist.
29116 for d in $subdirs doc build common c-family
29117 do
29118 test -d $d || mkdir $d
29119 done
29120 ;;
29121
29122 esac
29123 done # for ac_tag
29124
29125
29126 as_fn_exit 0
29127 _ACEOF
29128 ac_clean_files=$ac_clean_files_save
29129
29130 test $ac_write_fail = 0 ||
29131 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29132
29133
29134 # configure is writing to config.log, and then calls config.status.
29135 # config.status does its own redirection, appending to config.log.
29136 # Unfortunately, on DOS this fails, as config.log is still kept open
29137 # by configure, so config.status won't be able to write to it; its
29138 # output is simply discarded. So we exec the FD to /dev/null,
29139 # effectively closing config.log, so it can be properly (re)opened and
29140 # appended to by config.status. When coming back to configure, we
29141 # need to make the FD available again.
29142 if test "$no_create" != yes; then
29143 ac_cs_success=:
29144 ac_config_status_args=
29145 test "$silent" = yes &&
29146 ac_config_status_args="$ac_config_status_args --quiet"
29147 exec 5>/dev/null
29148 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29149 exec 5>>config.log
29150 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29151 # would make configure fail if this is the last instruction.
29152 $ac_cs_success || as_fn_exit $?
29153 fi
29154 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29156 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29157 fi
29158
29159